/*
 * Mirrors the tokens in SharpMind.Studio/docs/styles.css so the join page and the wiki
 * look like one product. When tokens.css is extracted for the full web app, this file is
 * replaced by it.
 */
:root {
    color-scheme: dark;
    --bg: #080d14;
    --bg-2: #0b1016;
    --panel: #101822;
    --panel-2: #0d141d;
    --line: #1f2a38;
    --line-2: #2b3a4d;
    --text: #e8eff7;
    --muted: #93a7bd;
    --faint: #63758a;
    --blue: #60a5fa;
    --blue-2: #38bdf8;
    --teal: #5eead4;
    --warn: #fbbf24;
    --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

[hidden] {
    display: none !important;
}

html, body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
}

body {
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(60rem 30rem at 50% -20%, rgba(56, 189, 248, 0.08), transparent 70%),
        var(--bg);
}

.card {
    width: 100%;
    max-width: 34rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.card.wide {
    max-width: 76rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: .85rem;
}

.admin-table th,
.admin-table td {
    padding: .55rem .5rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    color: var(--faint);
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.admin-table td button {
    padding: .35rem .6rem;
    font-size: .75rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.brand em { font-style: normal; color: var(--blue); font-weight: 700; }

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 6px;
    background: linear-gradient(140deg, var(--blue), var(--teal));
    color: #06111c;
    font-weight: 800;
}

h1 {
    margin: 0 0 0.4rem;
    font-size: 1.35rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.lede { margin: 0 0 1.25rem; color: var(--muted); }
.lede strong { color: var(--text); }

.facts {
    margin: 0 0 1.25rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel-2);
}

.facts > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.2rem 0;
}

.facts dt { color: var(--faint); font-size: 0.85rem; }
.facts dd { margin: 0; font-family: var(--mono); font-size: 0.9rem; }

.pill {
    display: inline-block;
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: rgba(96, 165, 250, 0.1);
    color: var(--blue);
    font-family: var(--mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.note {
    margin: 0 0 1.5rem;
    padding: 0.75rem 0.9rem;
    border-left: 3px solid var(--warn);
    background: rgba(251, 191, 36, 0.07);
    border-radius: 0 8px 8px 0;
    color: var(--muted);
    font-size: 0.92rem;
}

label {
    display: block;
    margin: 0 0 0.35rem;
    font-size: 0.88rem;
    color: var(--muted);
}

input {
    width: 100%;
    margin-bottom: 0.35rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    background: var(--bg-2);
    color: var(--text);
    font-family: var(--sans);
    font-size: 0.95rem;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--blue-2);
    outline-offset: 2px;
}

.hint {
    margin: 0 0 1rem;
    color: var(--faint);
    font-size: 0.8rem;
}

#confirm { margin-bottom: 1.25rem; }

button {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    color: #06111c;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

button:disabled { opacity: 0.6; cursor: progress; }

.form-error {
    margin: 0 0 0.9rem;
    color: #fca5a5;
    font-size: 0.88rem;
}

.fineprint {
    margin: 1.35rem 0 0;
    color: var(--faint);
    font-size: 0.82rem;
}

.state { margin: 0; }
.state-error h1 { color: #fca5a5; }

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

.link {
    color: var(--blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.link:hover { border-bottom-color: var(--blue); }

@media (prefers-reduced-motion: no-preference) {
    .card { animation: rise 220ms ease-out both; }

    @keyframes rise {
        from { opacity: 0; transform: translateY(6px); }
        to { opacity: 1; transform: none; }
    }
}

/* 404 */
.error-code {
    margin: 0 0 0.35rem;
    font-family: var(--mono);
    font-size: 3rem;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--blue);
}

.links {
    margin: 1.5rem 0 0;
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.92rem;
}

/* account */
.badge {
    display: inline-block;
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
}

.badge-ok {
    color: var(--teal);
    border-color: rgba(94, 234, 212, 0.4);
    background: rgba(94, 234, 212, 0.08);
}

.badge-warn {
    color: var(--warn);
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.08);
}

.actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.actions button {
    width: auto;
    flex: 1 1 auto;
    min-width: 9rem;
}

button.secondary {
    background: transparent;    border-color: var(--line-2);
    color: var(--text);
    font-weight: 600;
}

button.secondary:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.banner {
    margin: 0 0 1.25rem;
    padding: 0.75rem 0.9rem;
    border-left: 3px solid var(--teal);
    background: rgba(94, 234, 212, 0.07);
    border-radius: 0 8px 8px 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.check {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    margin: 0 0 1.1rem;
    color: var(--muted);
    font-size: 0.9rem;
    cursor: pointer;
}

.check input {
    width: auto;
    margin: 0;
    accent-color: var(--blue);
}



.invite-form {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1rem 0;
}
.invite-form input,
.invite-form select {
    flex: 1 1 12rem;
}

.invite-form .checkbox {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    flex: 1 1 12rem;
    font-size: .9rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: .65rem 0;
    font-size: .9rem;
}

.checkbox input {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 0;
    accent-color: var(--blue);
}

.promote-panel {
    margin: 1rem 0;
    padding: .9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel-2);
}

.promote-panel label {
    margin-bottom: .3rem;
}

.promote-panel input {
    margin-bottom: .3rem;
}

.danger-zone {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

.danger-zone h2 {
    margin: 0 0 .35rem;
    color: var(--warn);
    font-size: 1rem;
}

.danger-zone .danger {
    border-color: rgba(251, 113, 133, .5);
    color: #fca5a5;
}

.invite-form .checkbox input {
    flex: 0 0 auto;
}
