:root {
    --ws-bg: #050505;
    --ws-panel: #101010;
    --ws-panel-soft: #161616;
    --ws-panel-raised: #1d1d1f;
    --ws-border: rgba(255, 255, 255, 0.09);
    --ws-border-strong: rgba(255, 255, 255, 0.16);
    --ws-text: #ffffff;
    --ws-muted: rgba(255, 255, 255, 0.58);
    --ws-subtle: rgba(255, 255, 255, 0.36);
    --ws-accent: #8b7cff;
    --ws-cyan: #3fb7ff;
    --ws-success: #27c084;
    --ws-warning: #ffb454;
    --ws-danger: #ff4d4d;
    --ws-radius: 7px;
    --ws-font: "Montserrat", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-height: 100%;
    background: var(--ws-bg);
    color: var(--ws-text);
    font-family: var(--ws-font);
    letter-spacing: 0;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--ws-bg);
    color: var(--ws-text);
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

input,
textarea,
select {
    width: 100%;
    min-height: 36px;
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius);
    background: rgba(255, 255, 255, 0.045);
    color: var(--ws-text);
    outline: none;
    padding: 0 11px;
    font-size: 13px;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

textarea {
    min-height: 180px;
    padding: 13px;
    resize: vertical;
}

select {
    color-scheme: dark;
}

select option {
    background: #151515;
    color: var(--ws-text);
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(139, 124, 255, 0.75);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(139, 124, 255, 0.14);
}

label {
    display: grid;
    gap: 6px;
    color: var(--ws-muted);
    font-size: 12px;
    font-weight: 500;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid var(--ws-border);
    padding: 11px;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--ws-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.eyebrow {
    margin: 0 0 5px;
    color: var(--ws-accent);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.muted {
    color: var(--ws-muted);
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(139, 124, 255, 0.45);
    border-radius: var(--ws-radius);
    background: rgba(139, 124, 255, 0.12);
    color: #d8d1ff;
    font-weight: 700;
}

.brand-mark.small {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.btn,
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius);
    background: rgba(255, 255, 255, 0.06);
    color: var(--ws-text);
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.btn {
    padding: 0 13px;
    font-weight: 600;
    font-size: 13px;
}

.btn:hover,
.icon-btn:hover {
    border-color: var(--ws-border-strong);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.btn.primary {
    border-color: rgba(139, 124, 255, 0.6);
    background: var(--ws-accent);
    color: #fff;
}

.btn.ghost {
    background: transparent;
}

.btn.danger,
.icon-btn.danger:hover {
    border-color: rgba(255, 77, 77, 0.45);
    background: rgba(255, 77, 77, 0.13);
    color: #ffb3b3;
}

.btn.compact {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
}

.btn.full {
    width: 100%;
}

.icon-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    flex: 0 0 auto;
}

.icon-btn.subtle {
    background: transparent;
}

.icon-btn svg,
.btn svg {
    width: 16px;
    height: 16px;
}

.stack-form {
    display: grid;
    gap: 11px;
}

.stack-form.compact-form {
    gap: 10px;
}

.inline-form {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.form-grid.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-divider {
    height: 1px;
    background: var(--ws-border);
    margin: 4px 0;
}

.notice {
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius);
    padding: 12px 13px;
    margin-bottom: 14px;
    color: var(--ws-muted);
    background: rgba(255, 255, 255, 0.045);
}

.notice.success {
    border-color: rgba(39, 192, 132, 0.36);
    background: rgba(39, 192, 132, 0.1);
    color: #9ff0ce;
}

.notice.danger {
    border-color: rgba(255, 77, 77, 0.36);
    background: rgba(255, 77, 77, 0.1);
    color: #ffb7b7;
}

.notice.warning {
    border-color: rgba(255, 180, 84, 0.38);
    background: rgba(255, 180, 84, 0.1);
    color: #ffdfb3;
}

.code-preview {
    overflow: auto;
    max-height: 260px;
    margin-top: 16px;
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius);
    padding: 14px;
    background: #080808;
    color: #d6d6d6;
}

@media (max-width: 760px) {
    .form-grid.two {
        grid-template-columns: 1fr;
    }
}
