:root {
    --accent: #7b5cc9;
    --accent-light: #a78bff;
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --bg: #f7f7fb;
    --surface: #ffffff;
    --surface-2: #f1f1f6;
    --ink: #1a1a2e;
    --ink-2: #4a4a6a;
    --ink-muted: #8a8aa3;
    --border: #e5e5ee;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(26, 26, 46, 0.06), 0 1px 3px rgba(26, 26, 46, 0.04);
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell {
    max-width: 980px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

.shell__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.shell__brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.shell__brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(123, 92, 201, 0.3);
}

.shell__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.shell__subtitle {
    margin: 2px 0 0;
    font-size: 0.825rem;
    color: var(--ink-muted);
    font-family: var(--font-mono);
}

.shell__host {
    font-family: var(--font-mono);
    font-size: 0.825rem;
    color: var(--ink-muted);
    background: var(--surface);
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.shell__hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.shell__hero h2 {
    margin: 0 0 0.75rem;
    font-size: 1.625rem;
    letter-spacing: -0.02em;
}

.shell__hero p {
    margin: 0;
    color: var(--ink-2);
    font-size: 1rem;
    max-width: 65ch;
}

.shell__panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.shell__panel--error {
    border-color: var(--error);
    background: #fff5f5;
}

.shell__panel h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink-2);
    letter-spacing: -0.01em;
}

.shell__panel code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--surface-2);
    padding: 0.125em 0.375em;
    border-radius: 4px;
}

.shell__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.925rem;
}

.shell__table th {
    text-align: left;
    font-weight: 500;
    color: var(--ink-muted);
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.shell__table td {
    padding: 0.875rem 0.75rem;
    border-bottom: 1px solid var(--surface-2);
}

.shell__table tbody tr:last-child td { border-bottom: none; }
.shell__table tbody tr:hover { background: var(--surface-2); }

.shell__num {
    font-family: var(--font-mono);
    color: var(--ink-muted);
}

.shell__tag {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.shell__tag--on {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.shell__tag--off {
    background: rgba(138, 138, 163, 0.12);
    color: var(--ink-muted);
}

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

.shell__footer {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--ink-muted);
    display: flex;
    gap: 0.75rem;
}

pre {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    background: var(--surface-2);
    padding: 0.875rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 0;
}

@media (max-width: 600px) {
    .shell { padding: 1.5rem 1rem 3rem; }
    .shell__header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .shell__hero { padding: 1.5rem 1.25rem; }
    .shell__panel { padding: 1.25rem 1.25rem; }
    .shell__hero h2 { font-size: 1.375rem; }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #15151f;
        --surface: #1c1c2a;
        --surface-2: #25253a;
        --ink: #f0f0f5;
        --ink-2: #c5c5d5;
        --ink-muted: #8a8aa3;
        --border: #2c2c40;
    }
    .shell__hero, .shell__panel { box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3); }
    .shell__panel--error { background: rgba(239, 68, 68, 0.1); }
}
