/* Power Five admin pages (dashboard, music, sign-in). Phone first. */
@font-face { font-family: "Anton"; font-weight: 400; font-display: swap; src: url(../fonts/anton-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(../fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(../fonts/barlow-condensed-latin-800-normal.woff2) format("woff2"); }

:root {
  --bg: #07090F; --panel: #0F1420; --panel2: #151B29; --line: #222B3D; --ink: #EEF1F7; --muted: #A3ADC2;
  --accent: #38E1FF; --accent-ink: #04161B; --gold: #FFC83D; --ok: #4ADE80; --warn: #FBBF24; --bad: #F87171;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px 48px; }

.top { display: flex; align-items: center; gap: 10px; padding: 14px 0; flex-wrap: wrap; }
.brand { font-family: "Anton", Impact, sans-serif; font-size: 26px; letter-spacing: 2px; text-transform: uppercase; margin-right: auto; }
.brand small { display: block; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 3px; color: var(--accent); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tabs a, .tabs button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); font-weight: 600; cursor: pointer; }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tabs form { margin: 0; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 14px 0; }
.card h2 { margin: 0 0 10px; font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 22px; letter-spacing: 1px; text-transform: uppercase; }
.card h3 { margin: 14px 0 8px; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; min-width: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel2); color: var(--ink); font-weight: 700; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: 0.45; cursor: default; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: 0.5px; background: var(--panel2); border: 1px solid var(--line); }
.pill.ok { color: var(--ok); } .pill.warn { color: var(--warn); } .pill.bad { color: var(--bad); } .pill.info { color: var(--accent); }

.weekpick { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.weekpick button { flex: none; min-width: 52px; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; font-weight: 700; position: relative; }
.weekpick button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.weekpick button .dot { position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; border-radius: 50%; }

.media { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .media { grid-template-columns: 300px 1fr; } }
.video { width: 100%; max-width: 300px; aspect-ratio: 9 / 16; border-radius: 14px; background: #000; border: 1px solid var(--line); display: block; margin: 0 auto; }
.empty-video { width: 100%; max-width: 300px; aspect-ratio: 9 / 16; border-radius: 14px; border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px; color: var(--muted); margin: 0 auto; }

.top5 { list-style: none; margin: 0 0 10px; padding: 0; }
.top5 li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.top5 li b { width: 22px; color: var(--muted); }
.top5 li:first-child b { color: var(--gold); }
.top5 li span:last-child { margin-left: auto; font-weight: 700; }

textarea { width: 100%; min-height: 220px; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; resize: vertical; font-size: 15px; }
label.field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); font-weight: 600; }
input[type="text"], input[type="password"], select { min-height: 44px; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; width: 100%; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.check input { width: 20px; height: 20px; }

.progress { height: 10px; border-radius: 999px; background: var(--panel2); overflow: hidden; border: 1px solid var(--line); }
.progress i { display: block; height: 100%; background: var(--accent); transition: width .4s; }
.banner { border-radius: 14px; padding: 12px 14px; background: rgba(56,225,255,0.08); border: 1px solid rgba(56,225,255,0.35); margin: 12px 0; }
.banner.bad { background: rgba(248,113,113,0.08); border-color: rgba(248,113,113,0.4); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 700; z-index: 20; display: none; max-width: 92vw; text-align: center; }
.toast.show { display: block; }

table.weeks { width: 100%; border-collapse: collapse; font-size: 15px; }
table.weeks th, table.weeks td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.weeks th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.tablebox { overflow-x: auto; }

/* music page */
.track { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin: 12px 0; }
.track h3 { margin: 0; font-size: 18px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.wave { position: relative; height: 84px; margin: 10px 0; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); cursor: pointer; touch-action: manipulation; }
.wave canvas { width: 100%; height: 100%; display: block; border-radius: 10px; }
.drops { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.drops li { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px; }
.drops li .t { font-weight: 800; min-width: 70px; }
.drops li .note { width: 100%; font-size: 13px; color: var(--warn); }
.drops .btn { min-height: 40px; padding: 0 12px; }
.clock { font-variant-numeric: tabular-nums; font-weight: 700; }

/* sign-in */
.login { max-width: 380px; margin: 12vh auto 0; padding: 0 16px; }
.login h1 { font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: 44px; letter-spacing: 2px; margin: 0 0 4px; text-transform: uppercase; }
.login form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.err { color: var(--bad); font-weight: 700; margin: 8px 0 0; }

/* public week page (1.1.0) */
.weekpick.links { margin: 4px 0 6px; }
.weekpick.links a { flex: none; min-width: 52px; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; }
.weekpick.links a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rgrid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .rgrid { grid-template-columns: 1fr 1fr; } }
.rcard { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; min-height: 44px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.rcard:hover { border-color: var(--accent); }
.rcard .rname { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 20px; letter-spacing: 1px; text-transform: uppercase; }
.rcard b { color: var(--gold); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chips button { min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; font-weight: 600; font-size: 14px; position: relative; }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips button .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-left: 6px; vertical-align: middle; }
.chips .lbl { width: 100%; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-top: 4px; }

/* logos page (1.2.0) */
.logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
@media (min-width: 600px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lt { background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.lt.drag { border-color: var(--accent); background: rgba(56,225,255,0.08); }
.lt-disc { width: 84px; height: 84px; border-radius: 50%; border: 4px solid var(--line); display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 36%, #FFFFFF 0%, #F2F5F9 58%, #D2D9E3 100%); }
.lt-disc img { width: 76%; height: 76%; object-fit: contain; display: block; }
.lt-disc.empty { background: transparent; border-style: dashed; color: var(--muted); font-family: "Anton", Impact, sans-serif; font-size: 22px; letter-spacing: 1px; }
.lt-name { font-size: 14px; line-height: 1.25; color: var(--muted); overflow-wrap: anywhere; }
.lt-name b { display: block; font-size: 16px; color: var(--ink); }
.lt .row { justify-content: center; gap: 6px; }
.lt .btn { min-height: 40px; padding: 0 12px; font-size: 14px; }

/* dashboard: business / personal switch (1.2.0) */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--panel2); margin: 0 auto 10px; }
.seg button { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; font-weight: 700; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.segwrap { text-align: center; }
