:root {
    --ink: #1a1f36;
    --text: #3c4257;
    --muted: #697386;
    --link-nav: #b4b7bd;
    --line: #e3e8ee;
    --line-strong: #d8dee4;
    --paper: #fff;
    --canvas: #f6f9fc;
    --accent: #ffde00;
    --accent-dark: #ffe911;
    --accent-soft: #f3f2ff;
    --green: #0a8a5f;
    --green-soft: #e3f7ed;
    --amber: #a86400;
    --amber-soft: #fef3e0;
    --red: #cd3d64;
    --red-soft: #fdeaef;
    --black: #000;
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(30, 34, 44, 0.06);
    --shadow: 0 2px 5px -1px rgba(50, 50, 93, 0.11), 0 1px 3px -1px rgba(0, 0, 0, 0.08);
}
* {
    box-sizing: border-box;
}
html {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    background: var(--canvas);
    color: var(--text);
}
body {
    margin: 0;
    min-height: 100vh;
}
.topbar {
    height: 60px;
    background: var(--black);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    padding: 0 max(24px, calc((100vw - 980px) / 2));
    gap: 32px;
    position: sticky;
    top: 0;
    z-index: 5;
}
.topbar.minimal {
    justify-content: space-between;
    color: var(--link-nav);
    font-size: 0.9em;
}
.topbar nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.topbar nav a {
    padding: 8px 12px;
    color: var(--link-nav);
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}
.topbar nav a:hover,
.topbar nav a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.topbar nav form {
    margin-left: auto;
    display: flex;
    align-items: center;
}
.st-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.st-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.st-btn-primary {
    background: var(--accent);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.st-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
.link-button,
.danger-link {
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
}
.link-button {
    color: var(--muted);
    font-size: 0.85em;
}
.link-button:hover {
    color: var(--accent);
}
.page {
    max-width: 980px;
    margin: 0 auto;
    padding: 40px 24px 72px;
}
footer {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 24px 40px;
    color: var(--muted);
    font-size: 0.8em;
    text-align: center;
}
footer a {
    color: var(--muted);
    text-decoration: none;
}
footer a:hover {
    color: var(--ink);
    text-decoration: underline;
}
.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 26px;
}
.page-head h1 {
    font-size: 1.55em;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 6px 0 8px;
    color: var(--ink);
}
.page-head p {
    color: var(--muted);
    margin: 0;
    max-width: 620px;
    line-height: 1.55;
}
.signed-in-as {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.btn-signout {
    border: 1px solid var(--line-strong);
    background: var(--paper);
    color: var(--text);
    font: inherit;
    font-size: 0.8em;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
}
.btn-signout:hover {
    border-color: var(--red);
    color: var(--red);
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 600;
    color: var(--muted);
    font-size: 0.72em;
}
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.metrics article {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.metrics span {
    display: block;
    color: var(--muted);
    font-size: 0.8em;
    font-weight: 500;
}
.metrics strong {
    display: block;
    font-size: 2em;
    font-weight: 600;
    color: var(--ink);
    margin: 6px 0 2px;
    letter-spacing: -0.01em;
}
.metrics small {
    display: block;
    color: var(--muted);
    font-size: 0.78em;
}
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.quick-links {
    display: grid;
    gap: 2px;
}
.quick-links a {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
}
.quick-links a:last-child {
    border-bottom: 0;
}
.quick-links a strong {
    font-weight: 600;
}
.quick-links a span {
    color: var(--muted);
    font-size: 0.85em;
}
.quick-links a:hover strong {
    text-decoration: underline;
}
.basic-link {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}
.basic-link:hover {
    text-decoration: underline;
}
.card h2 {
    color: var(--ink);
    font-weight: 600;
    margin: 16px 0 16px;
    font-size: 1.05em;
    letter-spacing: -0.005em;
}
.card.auth-card h2 {
    margin: 0 0 16px;
}
.primary,
.secondary {
    font: inherit;
    border-radius: var(--radius-sm);
    padding: 9px 16px;
    font-size: 0.85em;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background-color 0.1s ease, border-color 0.1s ease;
}
.primary {
    background: var(--accent);
    color: #000;
    box-shadow: var(--shadow-sm);
}
.primary:hover {
    background: var(--accent-dark);
}
.secondary {
    background: #fff;
    color: var(--ink);
    border-color: var(--line-strong);
}
.secondary:hover {
    background: var(--canvas);
    border-color: var(--muted);
}
.notice {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--ink);
    margin-bottom: 18px;
    font-size: 0.85em;
}
.notice.success {
    background: var(--green-soft);
    color: var(--green);
    border-color: var(--green);
}
.notice.error {
    background: var(--red-soft);
    color: var(--red);
    border-color: var(--red);
}
.notice a {
    color: inherit;
    font-weight: 600;
}
label {
    display: block;
    font-size: 0.82em;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}
input,
select {
    width: 100%;
    border: 1px solid var(--line-strong);
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font: inherit;
    font-size: 0.92em;
    color: var(--ink);
    outline: none;
}
input:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.guide-card {
    margin-bottom: 20px;
}
.steps {
    counter-reset: step;
    list-style: none;
    margin: 12px 0 24px;
    padding: 0;
    display: grid;
    gap: 12px;
}
.steps li {
    counter-increment: step;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--muted);
    font-size: 0.92em;
    line-height: 1.5;
}
.steps li::before {
    content: counter(step);
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--line);
    color: var(--ink);
    font-size: 0.78em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.steps strong {
    color: var(--ink);
}
.step-desc {
    display: block;
    margin-top: 2px;
}
.form-card {
    margin-bottom: 20px;
}
.inline-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1.35fr auto;
    align-items: end;
    gap: 14px;
}
.table-card {
    padding: 0;
    overflow: hidden;
}
.section-title {
    padding: 20px 24px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.section-title h2 {
    margin: 0;
}
.section-title span {
    color: var(--muted);
    font-size: 0.82em;
}
.table-wrap {
    overflow-x: auto;
}
table {
    border-collapse: collapse;
    width: 100%;
}
th {
    text-align: left;
    color: var(--muted);
    font-size: 0.72em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    padding: 12px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--canvas);
}
td {
    padding: 14px 24px;
    font-size: 0.92em;
    border-bottom: 1px solid var(--line);
}
tbody tr:last-child td {
    border-bottom: 0;
}
tbody tr:hover {
    background: var(--canvas);
}
td small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}
.actions {
    text-align: right;
}
.num {
    text-align: right;
}
.danger-link {
    color: var(--red);
    font-size: 0.85em;
}
.status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72em;
    font-weight: 600;
    background: var(--line);
    color: var(--muted);
}
.status.connected {
    background: var(--green-soft);
    color: var(--green);
}
.status.invited {
    background: var(--amber-soft);
    color: var(--amber);
}
.empty {
    text-align: center;
    color: var(--muted);
    padding: 40px;
}
.download,
.subtle-link {
    color: var(--black);
    font-weight: 500;
    text-decoration: none;
}
.download:hover,
.subtle-link:hover {
    text-decoration: underline;
}
.subtle-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 0.85em;
}
.auth-info-stack {
    display: grid;
    gap: 20px;
}
.auth-card {
    align-self: start;
}
.auth-field {
    display: flex;
    gap: 8px;
}
.auth-field input {
    flex: 1;
    min-width: 0;
}
.auth-field .primary {
    white-space: nowrap;
}
.auth-info-stack .card h2 {
    padding: 0;
    margin: 0 0 16px;
}
.hint {
    color: var(--muted);
    font-size: 0.78em;
    line-height: 1.5;
    margin: -8px 0 16px;
}
.auth-footnote {
    color: var(--muted);
    font-size: 0.8em;
    line-height: 1.55;
    text-align: center;
    margin-top: 22px;
}
.plan-card select {
    margin-bottom: 14px;
}
@media (max-width: 850px) {
    html {
        font-size: 14px;
    }
    input,
    select {
        font-size: 16px;
    }
    .topbar {
        height: auto;
        padding: 14px 20px;
        flex-wrap: wrap;
        gap: 12px;
    }
    .topbar nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
    }
    .topbar nav form {
        margin-left: auto;
    }
    .page {
        padding-top: 32px;
    }
    .inline-form {
        grid-template-columns: 1fr 1fr;
    }
    .inline-form button {
        width: 100%;
    }
    .metrics,
    .split {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 560px) {
    .topbar nav a {
        font-size: 0.85em;
        padding: 8px;
    }
    .page-head {
        align-items: flex-start;
        gap: 18px;
        flex-direction: column;
    }
    .inline-form {
        grid-template-columns: 1fr;
    }
    .auth-field {
        flex-direction: column;
    }
    .metrics {
        grid-template-columns: 1fr;
    }
    .card {
        padding: 20px;
    }
    .table-card {
        padding: 0;
    }
    th,
    td {
        padding: 12px 16px;
    }
    .page {
        padding-inline: 16px;
    }
}
dialog {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 48px -12px rgba(26, 31, 54, 0.25), 0 0 0 1px var(--line);
    padding: 28px;
    max-width: 440px;
    width: 90vw;
}
dialog::backdrop {
    background: rgba(26, 31, 54, 0.45);
}
dialog h2 {
    color: var(--ink);
    font-weight: 700;
    margin: 0 0 6px;
    font-size: 1.2em;
    letter-spacing: -0.01em;
}
.dialog-lede {
    color: var(--muted);
    margin: 0 0 18px;
    font-size: 0.92em;
    line-height: 1.5;
}
.dialog-lede strong {
    color: var(--ink);
    font-weight: 600;
}
.price-tiers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 0.9em;
}
.price-tiers li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    background: var(--paper);
    padding: 10px 14px;
    color: var(--muted);
}
.price-tiers li strong {
    color: var(--ink);
    font-weight: 600;
    white-space: nowrap;
}
.price-card {
    position: relative;
    border-color: var(--ink);
}
.price-card .price-tag {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--ink);
    color: #fff;
    font-size: 0.72em;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
}
.price-card .price-sub {
    font-size: 0.85em;
    color: var(--muted);
    margin: -12px 0 16px;
}
.price-card .price-amount {
    font-size: 2rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 20px;
}
.price-card .price-amount span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
}
.price-list {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.price-list li {
    font-size: 0.88em;
    color: var(--text);
    padding-left: 22px;
    position: relative;
}
.price-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--ink);
    font-weight: 700;
}
dialog menu {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
}
dialog menu .secondary {
    padding: 9px 18px;
}
dialog menu .primary {
    padding: 9px 20px;
}
