:root {
    --bg: #0b0f0b;
    --bg-soft: #141b13;
    --panel: rgba(22, 30, 22, 0.92);
    --panel-2: rgba(34, 45, 33, 0.95);
    --line: rgba(175, 189, 143, 0.14);
    --text: #edf3dd;
    --muted: #a8b18e;
    --accent: #c6a85a;
    --accent-2: #66754b;
    --danger: #ff6b6b;
    --success: #7fd28d;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Tahoma, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(198, 168, 90, 0.14), transparent 28%),
        linear-gradient(135deg, #09110a 0%, #111910 50%, #192117 100%);
    color: var(--text);
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin-top: 0; }
input, select, textarea, button {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    padding: 12px 14px;
    font: inherit;
}
button { cursor: pointer; }
label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; }
.shell.guest-shell { grid-template-columns: 220px 1fr; }
.sidebar {
    padding: 28px;
    background: linear-gradient(180deg, rgba(16, 24, 16, 0.98), rgba(11, 15, 11, 0.9));
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.brand { font-size: 30px; font-weight: 800; letter-spacing: 2px; color: var(--accent); }
.brand-sub { color: var(--muted); margin-top: 6px; }
.nav { display: grid; gap: 10px; margin-top: 30px; }
.nav a {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
}
.main { padding: 28px; }
.guest-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 40px;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
    margin-bottom: 22px;
}
.guest-topbar {
    margin-bottom: 26px;
}
.guest-sidebar {
    padding: 34px 22px;
}
.guest-side-note {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    text-align: center;
}
.panel {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 22px;
    box-shadow: var(--shadow);
}
.compact { max-width: 460px; margin: 8vh auto; }
.centered { display: grid; place-items: center; min-height: 100vh; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.stack { display: grid; gap: 18px; }
.hero {
    min-height: 100%;
    background:
        linear-gradient(150deg, rgba(198, 168, 90, 0.11), transparent 40%),
        linear-gradient(180deg, rgba(15, 20, 14, 0.9), rgba(28, 36, 26, 0.95));
}
.eyebrow {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(198, 168, 90, 0.14);
    color: var(--accent);
    font-size: 12px;
    margin-bottom: 16px;
}
.hero-stats { display: grid; gap: 12px; margin-top: 24px; }
.hero-stats div { padding: 14px; border-radius: 18px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); }
.hero-stats strong, .file-list a { display: block; }
.home-landing {
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
}
.landing-panel {
    width: min(100%, 680px);
    text-align: center;
}
.landing-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 22px;
}
.landing-btn {
    width: 220px;
    text-align: center;
}
.auth-switcher {
    max-width: 980px;
    margin: 0 auto;
}
.auth-single {
    max-width: 520px;
    margin: 0 auto;
}
.auth-page {
    display: flex;
    justify-content: center;
}
.auth-panel {
    width: min(100%, 880px);
    padding: 28px;
}
.auth-copy {
    margin-bottom: 18px;
}
.auth-toggle {
    display: inline-flex;
    width: 100%;
    gap: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    padding: 8px;
    border-radius: 18px;
    margin-bottom: 22px;
}
.auth-toggle-btn {
    flex: 1;
    text-align: center;
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--muted);
    transition: 0.2s ease;
}
.auth-toggle-btn.active {
    background: linear-gradient(135deg, rgba(198, 168, 90, 0.95), rgba(139, 116, 64, 0.95));
    color: #10140d;
    font-weight: 800;
}
.auth-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
}
.auth-single-box {
    max-width: 560px;
    margin: 0 auto;
}
.auth-inline-actions {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}
.btn-light {
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border: 1px solid var(--line);
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.auth-empty {
    min-height: 180px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(198, 168, 90, 0.25);
    border-radius: 22px;
    color: var(--muted);
    background: rgba(255,255,255,0.02);
}
.btn {
    border: none;
    background: linear-gradient(135deg, var(--accent), #8b7440);
    color: #111;
    font-weight: 700;
}
.btn-secondary { background: linear-gradient(135deg, #83946d, #556244); color: var(--text); }
.btn-danger { background: linear-gradient(135deg, #d75f5f, #8b3434); color: #fff; }
.btn-small { padding: 10px 12px; width: auto; }
.btn-block { margin-top: 14px; }
.muted { color: var(--muted); }
.chip, .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.danger-chip, .danger-text { color: var(--danger); }
.badge-success { color: var(--success); }
.badge-warning { color: #ffd36f; }
.badge-danger { color: var(--danger); }
.badge-secondary { color: var(--muted); }
.alert {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
}
.alert.success { color: var(--success); background: rgba(127, 210, 141, 0.08); }
.alert.danger { color: var(--danger); background: rgba(255, 107, 107, 0.08); }
.auth-grid { align-items: start; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 14px;
    margin-bottom: 16px;
}
.table-wrap { overflow-x: auto; }
.inline-form { display: grid; gap: 10px; margin-top: 12px; }
.inline-form.simple { grid-template-columns: 1fr auto; align-items: center; }
.detail-block {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
}
.detail-block strong {
    display: block;
    margin-bottom: 8px;
}
.nav a:hover, .btn:hover { filter: brightness(1.06); }
summary {
    cursor: pointer;
    color: var(--accent);
    margin-bottom: 10px;
}
.check { display: flex; align-items: center; gap: 10px; }
.check input { width: auto; }
.file-list { display: grid; gap: 10px; }
.align-end {
    display: flex;
    align-items: end;
}
.skill-row {
    display: grid;
    grid-template-columns: 230px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
}
.skill-row.missing { border-color: rgba(255,107,107,0.45); background: rgba(255, 107, 107, 0.05); }

@media (max-width: 1100px) {
    .grid.three { grid-template-columns: 1fr 1fr; }
    .span-3 { grid-column: span 2; }
}

@media (max-width: 860px) {
    .shell, .shell.guest-shell { grid-template-columns: 1fr; }
    .sidebar { border-left: none; border-bottom: 1px solid var(--line); }
    .grid.two, .grid.three, .skill-row { grid-template-columns: 1fr; }
    .span-2, .span-3 { grid-column: span 1; }
    .topbar, .section-head { flex-direction: column; }
    .landing-actions { flex-direction: column; align-items: stretch; }
    .landing-btn { width: 100%; }
    .guest-main { min-height: auto; padding: 24px; }
    .auth-toggle { flex-direction: column; }
    .auth-inline-actions { flex-direction: column; }
}
