:root {
    --surface: #101014;
    --paper: #f6f5f3;
    --accent: #8b5cf6;
}

* { box-sizing: border-box; }

html { background: var(--surface); }

body {
    margin: 0;
    min-width: 320px;
    background: var(--surface);
    color: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

::selection { background: var(--accent); color: var(--paper); }

.site-shell { width: min(100% - 2rem, 72rem); margin-inline: auto; }

.site-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid rgba(246, 245, 243, .12);
    background: rgba(16, 16, 20, .9);
    backdrop-filter: blur(18px);
}

.nav-link {
    display: block;
    border-radius: .75rem;
    color: rgba(246, 245, 243, .62);
    padding: .65rem .8rem;
    transition: background-color .18s ease, color .18s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active { color: var(--paper); background: rgba(246, 245, 243, .09); outline: none; }

.soft-panel {
    background: linear-gradient(145deg, rgba(246, 245, 243, .1), rgba(246, 245, 243, .035));
    box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

.divider { height: 1px; background: rgba(246, 245, 243, .14); }

.form-field {
    width: 100%;
    border: 1px solid rgba(246, 245, 243, .15);
    border-radius: .75rem;
    background: rgba(246, 245, 243, .06);
    color: var(--paper);
    padding: .8rem 1rem;
    font: inherit;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.form-field::placeholder { color: rgba(246, 245, 243, .46); }

.form-field:focus {
    border-color: var(--accent);
    background: rgba(246, 245, 243, .09);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .24);
    outline: none;
}

.form-field option { background: var(--surface); color: var(--paper); }

.notice {
    border-radius: .75rem;
    background: rgba(139, 92, 246, .16);
    color: var(--paper);
    padding: .9rem 1rem;
}

.notice--error { background: rgba(246, 245, 243, .11); }

.dashboard-table { width: 100%; border-collapse: collapse; }
.dashboard-table th { color: rgba(246, 245, 243, .55); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-align: left; text-transform: uppercase; }
.dashboard-table th, .dashboard-table td { border-bottom: 1px solid rgba(246, 245, 243, .12); padding: 1rem .75rem; vertical-align: middle; }
.dashboard-table tr:last-child td { border-bottom: 0; }

@media (max-width: 767px) {
    .site-header .site-shell { position: relative; }
    .nav-links { position: absolute; inset: 5rem 0 auto; background: var(--surface); border-bottom: 1px solid rgba(246, 245, 243, .12); box-shadow: 0 18px 34px rgba(0, 0, 0, .28); }
    .nav-links.is-open { display: block; }
    .dashboard-table { min-width: 42rem; }
}

@media (min-width: 768px) {
    .nav-links { display: block !important; }
}

@media (prefers-reduced-motion: no-preference) {
    .site-page main > section { animation: rise .45s ease-out both; }
    @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}
