/* Shared VidQ theme (indigo "screen" identity) for the hub + builder shell.
   Mirrors the platform shell classes used by boot.js (header bar, tiles, ghost, booting). */
:root{
  --bg:#f4f6fb; --surface:#ffffff; --surface-2:#eef1f8; --text:#1a1e30; --muted:#565c76; --line:#e2e4ef;
  --accent:#4f46e5; --accent-600:#4338ca; --accent-weak:#eef0ff; --ring:rgba(79,70,229,.26);
  --radius:16px; --radius-sm:10px; --shadow-sm:0 2px 8px rgba(26,30,48,.07); --red:#dc2647; --green:#0d9488; --amber:#c2740a;
}
*{ box-sizing:border-box; }
html.booting body{ visibility:hidden; }
body{ margin:0; font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; background:var(--bg); color:var(--text); line-height:1.5; }
body.dark{ --bg:#0b0d18; --surface:#161a2e; --surface-2:#1c2138; --text:#eceefb; --muted:#aab0d2; --line:#282d49; --accent:#818cf8; --accent-600:#a5b0ff; --accent-weak:#1e2340; --ring:rgba(129,140,248,.30); }
a{ color:var(--accent); }
button{ font:inherit; cursor:pointer; }
.wrap{ max-width:1120px; margin:0 auto; padding:0 20px; }
header{ background:var(--surface); border-bottom:1px solid var(--line); }
.bar{ display:flex; align-items:center; gap:12px; padding:14px 0; }
.brand{ display:flex; align-items:center; gap:11px; color:inherit; margin-left:8px; text-decoration:none; padding:4px 8px; border-radius:10px; }
a.brand:hover{ background:var(--accent-weak); }
.chip{ width:30px; height:30px; border-radius:9px; flex:none; display:grid; place-items:center; background:var(--accent-weak); font-size:18px; }
.brand .name{ font-weight:800; font-size:19px; letter-spacing:.3px; }
.spacer{ flex:1; } .who{ color:var(--muted); font-size:14px; }
.ghost{ background:transparent; border:1px solid var(--line); color:var(--text); padding:7px 12px; border-radius:10px; }
.ghost:hover{ background:var(--accent-weak); border-color:var(--accent); }
.classconvene-pill{ display:inline-flex; align-items:center; gap:7px; padding:7px 13px; border:1px solid var(--line); border-radius:999px; background:var(--surface); color:var(--text); font-weight:600; font-size:13.5px; text-decoration:none; }
.classconvene-pill:hover{ background:#e6f4ec; border-color:#7fcaa3; color:#1d2a25; }
h1{ font-size:24px; margin:22px 0 2px; }
.lead{ color:var(--muted); margin:0 0 18px; max-width:760px; }
.primary{ padding:10px 16px; border:0; border-radius:10px; background:var(--accent); color:#fff; font-weight:700; }
.primary:hover{ background:var(--accent-600); }
.primary:disabled{ opacity:.45; cursor:not-allowed; }
.btn{ padding:9px 14px; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--text); font-weight:600; }
.btn:hover{ background:var(--surface-2); } .btn.sm{ padding:6px 10px; font-size:13px; }
.muted{ color:var(--muted); } .hidden{ display:none!important; } .ok{ color:var(--green); font-size:13px; } .err{ color:var(--red); font-size:13px; }
/* tiles (hub) */
.tiles{ display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:16px; margin:18px 0 30px; }
.tile{ display:block; text-align:left; text-decoration:none; color:inherit; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm); padding:20px; transition:transform .12s, box-shadow .12s, border-color .12s; }
.tile:hover{ transform:translateY(-2px); box-shadow:0 10px 26px rgba(26,30,48,.12); border-color:var(--accent); }
.tile.soon{ opacity:.62; pointer-events:none; }
.tile .ic{ width:44px; height:44px; border-radius:12px; background:var(--accent-weak); display:flex; align-items:center; justify-content:center; font-size:22px; margin-bottom:12px; }
.tile h3{ margin:0 0 5px; font-size:17px; } .tile p{ margin:0; color:var(--muted); font-size:14px; }
.tile .tag{ display:inline-block; margin-top:10px; font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); }
/* lesson list (hub) */
.lessons{ display:grid; gap:10px; margin:6px 0 40px; }
.lrow{ display:flex; align-items:center; gap:14px; background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:13px 16px; box-shadow:var(--shadow-sm); }
.lrow .lmain{ flex:1; min-width:0; }
.lrow .lt{ font-weight:700; font-size:15px; }
.lrow .lm{ font-size:12.5px; color:var(--muted); margin-top:2px; }
.lrow .badge{ font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; padding:3px 9px; border-radius:999px; }
.badge.pub{ color:#0d7a5f; background:#d7f5ec; } .badge.draft{ color:#8a5206; background:#fbeccf; }
.empty{ padding:26px; text-align:center; color:var(--muted); background:var(--surface); border:1px dashed var(--line); border-radius:12px; }
footer{ border-top:1px solid var(--line); color:var(--muted); font-size:13px; padding:18px 0 40px; margin-top:8px; }
