@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  color-scheme: dark;
  --bg: #090c14;
  --bg-2: #0f1420;
  --panel: #131a29;
  --panel-2: #1a2235;
  --line: #243049;
  --text: #e8ecf5;
  --muted: #8d97b0;
  --gold: #c8a64b;
  --gold-2: #e6c66d;
  --blue: #3b82f6;
  --red: #e5484d;
  --green: #2fbf71;
  --twitch: #9146ff;
  --kick: #53fc18;
  --radius: 10px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Rajdhani', 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(200, 166, 75, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(59, 130, 246, 0.07), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
}
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); letter-spacing: 0.02em; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: 1.4rem; }

/* --- top bar --- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 24px;
  background: rgba(9, 12, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--text); white-space: nowrap; }
.brand span { color: var(--gold); }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { color: var(--muted); padding: 6px 12px; border-radius: 8px; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--panel); text-decoration: none; }
.me { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.9rem; }
.me img { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); }

main { max-width: 1180px; margin: 0 auto; padding: 32px 24px 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { color: var(--muted); margin: 6px 0 0; }

/* --- buttons & forms --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text);
  font: 600 0.92rem var(--font); cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: #34436a; text-decoration: none; }
.btn-primary { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1406; border-color: transparent; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-twitch { background: var(--twitch); border-color: transparent; color: #fff; font-size: 1rem; padding: 12px 22px; }
.btn-danger { color: #ff9a9d; }
.btn-danger:hover { border-color: var(--red); }
.btn-small { padding: 5px 10px; font-size: 0.82rem; }

label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 4px; font-weight: 500; }
input, select, textarea {
  width: 100%; padding: 9px 11px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text);
  font: 0.95rem var(--font);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(200, 166, 75, 0.5); border-color: var(--gold); }
input[type='color'] { padding: 2px; height: 40px; }
input[type='checkbox'] { width: auto; }
textarea { min-height: 80px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 0.95rem; }
.form-error { color: #ff9a9d; font-size: 0.9rem; min-height: 1.2em; margin: 10px 0 0; }

dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 0; border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel); color: var(--text);
}
dialog::backdrop { background: rgba(3, 5, 10, 0.7); }
dialog form { padding: 22px; }
dialog h2 { margin-bottom: 16px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* --- cards --- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.team-card {
  position: relative; display: block; overflow: hidden;
  padding: 18px 18px 16px 22px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); color: var(--text);
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.team-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent, var(--gold)); }
.team-card:hover { transform: translateY(-2px); border-color: var(--accent, var(--gold)); text-decoration: none; }
.team-card .row { display: flex; align-items: center; gap: 12px; }
.team-card h3 { font-size: 1.3rem; }
.team-card .meta { color: var(--muted); font-size: 0.85rem; margin-top: 10px; display: flex; gap: 12px; flex-wrap: wrap; }

.logo {
  width: 46px; height: 46px; border-radius: 10px; flex: none;
  display: grid; place-items: center; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
  font: 700 0.95rem var(--display); color: var(--accent, var(--gold));
}
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo-lg { width: 72px; height: 72px; font-size: 1.4rem; border-radius: 14px; }

.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--muted);
}
.badge-own { color: #1a1406; background: var(--gold); border-color: transparent; }
.badge-admin { color: var(--gold-2); border-color: rgba(200, 166, 75, 0.5); }

.empty {
  padding: 48px 24px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius);
}

/* --- team page --- */
.team-hero {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 24px; margin-bottom: 28px; border-radius: 14px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent, var(--gold)) 22%, var(--panel)) 0%, var(--panel) 55%);
  border: 1px solid var(--line);
}
.team-hero .info { flex: 1; min-width: 200px; }
.team-hero .meta { color: var(--muted); margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }
.team-hero .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.notes { white-space: pre-wrap; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: -12px 0 28px; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.player {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start;
  padding: 16px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
}
.player h3 { font-size: 1.2rem; }
.player .riot { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.player .links { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.player .tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.player .pnotes { color: var(--muted); font-size: 0.85rem; margin-top: 8px; white-space: pre-wrap; }
.player .tools { display: flex; flex-direction: column; gap: 6px; }

.role {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  font: 700 0.85rem var(--display); letter-spacing: 0.04em;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--role, var(--muted));
}
.role-TOP { --role: #f0a35e; }
.role-JUNGLE { --role: #4cc38a; }
.role-MID { --role: #5aa7ff; }
.role-ADC { --role: #ff6b8b; }
.role-SUPPORT { --role: #c49bff; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  border: 1px solid var(--line); color: var(--text); background: var(--bg-2);
}
.chip:hover { text-decoration: none; border-color: currentColor; }
.chip-twitch { color: #bf9bff; }
.chip-kick { color: var(--kick); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* --- tables --- */
.table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell img { width: 28px; height: 28px; border-radius: 50%; }
.inline-form { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 200px; }
.inline-form select { width: auto; }

/* --- activity --- */
.activity { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.activity li { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); display: flex; gap: 10px; justify-content: space-between; }
.activity li:last-child { border-bottom: 0; }
.activity b { color: var(--text); font-weight: 600; }
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }

/* --- vods --- */
.vod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.vod {
  display: block; overflow: hidden; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.vod:hover { transform: translateY(-2px); border-color: #34436a; text-decoration: none; }
.vod .thumb { position: relative; aspect-ratio: 16 / 9; background: var(--bg-2); }
.vod .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vod .thumb .dur, .vod .thumb .badge { position: absolute; right: 8px; bottom: 8px; }
.vod .dur { background: rgba(0, 0, 0, 0.75); padding: 1px 7px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }
.vod .body { padding: 10px 12px 12px; }
.vod .title { font-weight: 600; font-size: 0.9rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vod .sub { color: var(--muted); font-size: 0.8rem; margin-top: 4px; }
.scan { font-weight: 600; }
.scan-done { color: var(--green); }
.scan-failed { color: #ff9a9d; }
.scan-scanning { color: var(--gold-2); }

.badge-live { background: var(--red); color: #fff; border-color: transparent; }
.live-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--panel); border: 1px solid rgba(229, 72, 77, 0.5); color: var(--text); font-size: 0.85rem;
}
.live-pill span:last-child { color: var(--muted); }
.live-pill:hover { text-decoration: none; border-color: var(--red); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }
.chip .live-dot { width: 7px; height: 7px; }

.stack-form { display: grid; gap: 8px; margin-bottom: 14px; }
.stack-form .form-error { margin: 0; min-height: 0; }

/* --- drafts --- */
.champ { display: inline-grid; place-items: center; flex: none; overflow: hidden; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); font-size: 0.7rem; font-weight: 700; }
.champ img { width: 100%; height: 100%; object-fit: cover; display: block; }
.champ-md { width: 36px; height: 36px; }
.champ-sm { width: 22px; height: 22px; border-radius: 5px; filter: grayscale(0.85) brightness(0.8); }
.champ-pool { width: 28px; height: 28px; border-radius: 6px; }

.drafts { display: grid; gap: 14px; }
.draft { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.draft-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--muted); font-size: 0.85rem; margin-bottom: 12px; }
.draft-meta b { color: var(--text); }
.draft-meta a { margin-left: auto; }
.draft-body { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: start; }
.draft-vs { align-self: center; font: 700 1.1rem var(--display); color: var(--muted); }
.draft-side { display: grid; gap: 6px; }
.side-label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.ally .side-label { color: #7fb4ff; }
.enemy .side-label { color: #ff8f93; }
.bans { display: inline-flex; gap: 3px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 3px; border-radius: 9px; }
.pick b { display: block; font-size: 0.9rem; }
.pick small { display: block; color: var(--muted); font-size: 0.75rem; }
.pick.mine { background: color-mix(in srgb, var(--accent, var(--gold)) 16%, transparent); }
.enemy .pick { flex-direction: row-reverse; text-align: right; }
.enemy .side-label { justify-content: flex-end; }

.pool { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.pool-item { position: relative; }
.pool-item span.n { position: absolute; right: -4px; bottom: -4px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; font-size: 0.65rem; padding: 0 4px; color: var(--text); }

.vod .actions-row { display: flex; gap: 6px; align-items: center; margin-top: 8px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .draft-body { grid-template-columns: 1fr; }
  .draft-vs { justify-self: center; }
  .enemy .pick { flex-direction: row; text-align: left; }
  .enemy .side-label { justify-content: flex-start; }
  .draft-meta a { margin-left: 0; }
}

/* --- tabs --- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 18px; overflow-x: auto; }
.tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted);
  font: 600 0.95rem var(--font); padding: 10px 14px; cursor: pointer; white-space: nowrap;
}
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--text); border-bottom-color: var(--accent, var(--gold)); }
.tabs .count { color: var(--muted); font-weight: 500; margin-left: 4px; }
.tab-panel[hidden] { display: none; }

/* compact hero */
.team-hero.compact { padding: 16px 20px; margin-bottom: 16px; }
.team-hero.compact h1 { font-size: 1.9rem; }
.record { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.record .w { color: var(--green); }
.record .l { color: #ff8f93; }

/* --- compact draft rows --- */
.drow-list { display: grid; gap: 6px; }
.drow { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.drow[open] { border-color: #34436a; }
.drow summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; min-height: 48px;
}
.drow summary::-webkit-details-marker { display: none; }
.drow summary:hover { background: var(--panel-2); border-radius: 10px; }
.drow .when { color: var(--muted); font-size: 0.82rem; width: 88px; flex: none; white-space: nowrap; }
.drow .strip { display: inline-flex; gap: 3px; }
.drow .strip .mine .champ { outline: 2px solid var(--accent, var(--gold)); outline-offset: 1px; }
.drow .vs { color: var(--muted); font: 700 0.8rem var(--display); }
.drow .meta { color: var(--muted); font-size: 0.8rem; margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drow .play { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); }
.drow .play:hover { border-color: var(--gold); text-decoration: none; }
.champ-row { width: 30px; height: 30px; border-radius: 6px; }

.res { flex: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font: 700 0.85rem var(--display); }
.res-win { background: rgba(47, 191, 113, 0.18); color: var(--green); border: 1px solid rgba(47, 191, 113, 0.5); }
.res-loss { background: rgba(229, 72, 77, 0.15); color: #ff8f93; border: 1px solid rgba(229, 72, 77, 0.5); }
.res-none { background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); }

.drow-detail { padding: 4px 12px 12px; border-top: 1px solid var(--line); }
.lanes { display: grid; gap: 2px; margin-top: 8px; }
.lane { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; gap: 8px; }
.lane.head { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.lane.head .side-a { color: #7fb4ff; } .lane.head .side-e { color: #ff8f93; text-align: right; }
.lane-role { text-align: center; color: var(--muted); font: 700 0.75rem var(--display); }
.pl { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.pl b { display: block; font-size: 0.88rem; }
.pl small { display: block; color: var(--muted); font-size: 0.75rem; }
.pl .kda { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 0.85rem; color: var(--text); }
.side-e .pl { flex-direction: row-reverse; text-align: right; }
.side-e .pl .kda { margin-left: 0; margin-right: auto; }
.drow-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 10px; color: var(--muted); font-size: 0.82rem; }
.drow-foot > span:first-child { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.muted { color: var(--muted); }

/* --- roster (compact) --- */
.roster-compact { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.rcard {
  position: relative; display: grid; gap: 8px; padding: 12px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
}
.rcard:hover { border-color: #34436a; text-decoration: none; }
.rcard .top { display: flex; align-items: center; gap: 10px; }
.rcard .top .role { width: 34px; height: 34px; font-size: 0.75rem; }
.rcard h3 { font-size: 1.15rem; }
.rcard .sub { color: var(--muted); font-size: 0.78rem; }
.rcard .line { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 0.82rem; color: var(--muted); }
.rcard .tools { position: absolute; top: 8px; right: 8px; display: none; gap: 4px; }
.rcard:hover .tools { display: flex; }
.wr { font-weight: 600; }
.wr.good { color: var(--green); } .wr.bad { color: #ff8f93; }

/* --- player page --- */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.tile .label { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.tile .value { font: 700 1.6rem var(--display); margin-top: 2px; }
.tile .hint { color: var(--muted); font-size: 0.8rem; }
.two-col { display: grid; grid-template-columns: minmax(280px, 0.9fr) 1.4fr; gap: 18px; align-items: start; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.card h2 { font-size: 1.15rem; margin-bottom: 10px; }
.pool-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.pool-table td, .pool-table th { padding: 6px 4px; text-align: left; }
.pool-table th { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.pool-table td.num, .pool-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pool-table .champ-cell { display: flex; align-items: center; gap: 8px; }
.bar { height: 5px; border-radius: 3px; background: rgba(229, 72, 77, 0.45); overflow: hidden; min-width: 50px; }
.bar > span { display: block; height: 100%; background: var(--green); }
.games { display: grid; gap: 6px; }
.game { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); }
.game .g-main { min-width: 0; }
.game .g-main b { display: block; font-size: 0.9rem; }
.game .g-main small { color: var(--muted); font-size: 0.76rem; }
.game .kda { font-variant-numeric: tabular-nums; font-weight: 600; width: 64px; text-align: right; }
.game .vs-opp { display: flex; align-items: center; gap: 6px; margin-left: auto; color: var(--muted); font-size: 0.8rem; text-align: right; }
.notes-list { display: grid; gap: 8px; margin-top: 10px; }
.note { background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 0.88rem; white-space: pre-wrap; }
.note .who { color: var(--muted); font-size: 0.75rem; margin-top: 4px; display: flex; justify-content: space-between; }

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .drow summary { flex-wrap: wrap; gap: 6px 8px; }
  .drow .meta { margin-left: 0; width: 100%; order: 9; }
  .drow .when { width: auto; }
  .champ-row { width: 26px; height: 26px; }
  .lane { grid-template-columns: 1fr 34px 1fr; }
  .pl small { display: none; }
}

/* --- login --- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card {
  width: min(420px, 100%); text-align: center; padding: 40px 32px;
  border-radius: 16px; background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.login-card h1 span { color: var(--gold); }
.login-card p { color: var(--muted); margin: 10px 0 28px; }
.alert { margin-top: 20px; padding: 10px 12px; border-radius: 8px; font-size: 0.9rem; background: rgba(229, 72, 77, 0.12); border: 1px solid rgba(229, 72, 77, 0.4); color: #ffb3b5; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar { padding: 10px 16px; gap: 12px; flex-wrap: wrap; }
  .nav { order: 3; width: 100%; }
  .me span { display: none; }
  main { padding: 24px 16px 48px; }
  .form-grid { grid-template-columns: 1fr; }
  .roster { grid-template-columns: 1fr; }
  .table th:nth-child(3), .table td:nth-child(3) { display: none; }
}
