/* Lock-In Session — minimal finish shared by every page (loaded after each page's own stylesheet).
   Same look as the mix review page: flat near-black, few boxes and borders, pill buttons with a
   white primary, grey selection states. Orange stays for live/playing things, meters and timestamps. */
:root:not(.mt) { /* the meeting room (html.mt) keeps its own translucent glass colours */
  --bg: #070708;
  --glass: #0f0f11;
  --glass-strong: #121214;
  --glass-hover: #161619;
  --glass-btn: rgba(255, 255, 255, .06);
  --glass-btn-hover: rgba(255, 255, 255, .1);
  --card: #0f0f11;
  --card-2: #121214;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .11);
  --stroke: rgba(255, 255, 255, .07);
  --stroke-2: rgba(255, 255, 255, .11);
  --text: #f4f4f5;
  --text-2: #a1a1aa;
  --muted: #6b6b74;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  --flat: rgba(255, 255, 255, .03);
  --flat-hover: rgba(255, 255, 255, .05);
  --sel: rgba(255, 255, 255, .08);
  --m-ease: cubic-bezier(.22, 1, .36, 1);
}
html:not(.mt) body { background: var(--bg); }
body { font-optical-sizing: auto; font-feature-settings: 'cv11', 'ss01', 'ss03'; letter-spacing: -.011em; }
::selection { background: rgba(255, 160, 51, .35); }
h1, h2, h3 { letter-spacing: -.035em; }
h1 { font-weight: 600; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 500; letter-spacing: -.01em; box-shadow: none; transition: background .2s var(--m-ease), color .2s, border-color .2s, transform .2s var(--m-ease); }
.btn:active { transform: scale(.97); }
.btn-primary { background: #fff; color: #070708; border-color: transparent; box-shadow: none; }
.btn-primary:hover { background: #e4e4e7; color: #070708; }
.btn-secondary { background: var(--glass-btn); border-color: transparent; color: var(--text); backdrop-filter: none; -webkit-backdrop-filter: none; }
.btn-secondary:hover { background: var(--glass-btn-hover); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.btn-danger { border-color: transparent; }
:is(.btn, button, a, input, select, textarea):focus-visible { outline: 2px solid rgba(255, 255, 255, .5); outline-offset: 2px; }

/* ---------- Fields ---------- */
.input, .field input, .field select, .field textarea { border-radius: 12px; border-color: transparent; background: rgba(255, 255, 255, .045); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); }
.input::placeholder, .field input::placeholder { color: var(--muted); }
.field > span { font-weight: 500; }

/* ---------- Windows, menus, toasts, switches ---------- */
dialog.modal { border-radius: 20px; border-color: var(--stroke); background: #111113; box-shadow: var(--shadow); backdrop-filter: none; -webkit-backdrop-filter: none; }
dialog.modal[open] { animation: m-pop .3s var(--m-ease); }
dialog.modal::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-head { border-bottom: 0; padding-bottom: 4px; }
.modal-head h3 { font-weight: 600; letter-spacing: -.02em; }
.modal-foot { border-top: 0; padding-top: 4px; }
.ui-dlg { border-radius: 20px; background: #111113; border-color: var(--stroke); }
.ui-dlg .ui-foot button { border-radius: 999px; font-weight: 500; border: 0; }
.ui-dlg .ui-foot .ui-ok { background: #fff; color: #070708; }
.ui-dlg.danger .ui-foot .ui-ok { background: var(--red, #f05252); color: #fff; }
.ui-dlg input:focus, .ui-dlg textarea:focus { border-color: rgba(255, 255, 255, .3); }
.menu-list { border-radius: 14px; border-color: var(--stroke); background: #121214; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-list button, .menu-list a.menu-link { border-radius: 9px; }
.toast { border-radius: 999px; padding: 10px 18px; font-weight: 500; background: #18181b; border-color: var(--stroke); backdrop-filter: none; animation: m-pop .3s var(--m-ease); }
.switch input { border-radius: 999px; }
.switch input:checked { background: var(--accent); }
.seg { padding: 3px; gap: 2px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .04); }
.seg button { border-radius: 999px; font-weight: 500; }
.seg button.active { background: var(--sel); color: var(--text); box-shadow: none; }
.pill { font-weight: 500; }
.empty, .empty-card { color: var(--muted); }
.empty-card { border-color: var(--stroke-2); border-radius: 18px; }
.or::before, .or::after { background: var(--stroke); }
.logo-tag { background: none; padding: 0; color: var(--muted); letter-spacing: .04em; font-weight: 600; }
@keyframes m-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---------- Cards and panels: flat, borderless ---------- */
:is(.panel, .auth-card, .action, .channel, .set-card, .room-card, .reel-card, .up-card, .agenda, .rvw, .pj-tile, .pj-card, .stat, .mini, .atable, .ep-card, .rp-list-wrap) {
  border-color: transparent; background: var(--flat); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
:is(.action, .channel, .room-card, .reel-card, .rvw, .pj-tile, .pj-card):hover { background: var(--flat-hover); border-color: transparent; transform: none; }
.panel-head { border-bottom-color: var(--stroke); }
.panel-head h2 { font-weight: 600; }
.room-row { border-bottom-color: var(--stroke); }
.room-row:hover { background: rgba(255, 255, 255, .02); }
.room-card, .room-card:hover { background: var(--flat); }
.room-card:hover { background: var(--flat-hover); }
.new-card, .pj-new, .rvw-new { background: none; border: 1px dashed var(--stroke-2); color: var(--text-2); }
.new-card:hover, .pj-new:hover, .rvw-new:hover { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .22); color: var(--text); }
.new-card .ic, .pj-new .ic, .rvw-new .ic { color: var(--text-2); }
.see-all { color: var(--text-2); font-weight: 500; }
.see-all:hover { color: var(--text); }

/* ---------- Top nav (website and sign-in) ---------- */
.nav-inner { border-color: transparent; border-radius: 999px; background: rgba(15, 15, 17, .75); }

/* ---------- Sign in ---------- */
.auth-side { border-color: transparent; background: #0d0d0f; border-radius: 20px; }
.auth-card { border-radius: 20px; }
.auth-card h1 { font-weight: 600; letter-spacing: -.04em; }
.btn-google { border: 0; }

/* ---------- Dashboard ---------- */
.dash .side { border-right-color: var(--stroke); background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.side-nav a { border-radius: 10px; }
.side-nav a:hover { background: rgba(255, 255, 255, .04); }
.side-nav a.active, .set-nav button.active { background: var(--sel); color: var(--text); }
.side-nav a.active .ic, .set-nav button.active .ic { color: var(--text); }
.side-user .user-btn { border-radius: 12px; }
.search { border-radius: 999px; border-color: transparent; background: rgba(255, 255, 255, .045); }
.search:focus-within { border-color: rgba(255, 255, 255, .22); }
.join-link { border-radius: 999px; border-color: transparent; background: rgba(255, 255, 255, .04); }
.hello h1 { font-weight: 600; letter-spacing: -.045em; }
.avatar { background: #232327; font-weight: 600; }
.ai { background: rgba(255, 255, 255, .05); border-color: transparent; color: var(--text); }
/* Home tiles */
.tile-ic { background: rgba(255, 255, 255, .045); border-color: transparent; color: var(--text); box-shadow: none; }
.tile:hover .tile-ic { background: rgba(255, 255, 255, .08); border-color: transparent; }
.tile-main .tile-ic, .tile-main:hover .tile-ic { background: #fff; border-color: transparent; color: #070708; }
.ag-head { background: rgba(255, 255, 255, .025); }
.ag-wave { fill: rgba(255, 255, 255, .05); }
.ag-row.is-soon { background: rgba(255, 255, 255, .04); }
/* Sessions and visibility pickers */
.vis-badge { font-weight: 500; }
.vis-badge.public { background: rgba(255, 160, 51, .1); }
.vis { border: 1px solid var(--stroke); }
.vis:has(input:checked) { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04); }
.vis:has(input:checked) .vi { background: #fff; color: #070708; }
.cat-pick label, .kind-pick button, .filter-btn { border-radius: 999px; }
.cat-pick label:has(input:checked), .kind-pick button.active, .filter-btn.active { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
/* Calendar */
.cal-grid { border-color: transparent; border-radius: 16px; }
.cal-cell.today .cal-n { background: #fff; color: #070708; }
.cal-cell.sel { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.cal-chip { background: rgba(255, 255, 255, .07); }
.cal-chip:hover { background: rgba(255, 255, 255, .12); }
.up-card.is-soon { background: rgba(255, 255, 255, .05); border-color: transparent; }
.up-date, .evd-ic, .rvw-ic { background: rgba(255, 255, 255, .05); color: var(--text); }
.ev-row.is-soon { background: rgba(255, 255, 255, .03); }
.soon-count { background: #fff; color: #070708; }
/* Reels */
.reel-art, .re-cover { color: rgba(255, 255, 255, .3); background-color: rgba(255, 255, 255, .03); background-size: cover; background-position: center; background-repeat: no-repeat; }
.re-play { background: rgba(255, 255, 255, .07); color: var(--text); }
.re-play:hover:not(:disabled) { background: #fff; color: #070708; }
.re-drop, .re-note { border-color: var(--stroke-2); background: none; }
.re-drop .ic, .re-note .ic, .re-cover-empty .ic { color: var(--text-2); }
.re-drop:hover, .re-drop.over { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .03); }
.re-tname:focus, .re-tnotes:focus { border-color: rgba(255, 255, 255, .25); }
.rvw-tag { font-weight: 500; border-radius: 999px; }
/* Projects */
.pj-kind { color: var(--muted); font-weight: 600; letter-spacing: .06em; }
.pj-col { border-color: transparent; background: rgba(255, 255, 255, .02); border-radius: 16px; }
.pj-col.over { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .25); }
.pj-card { background: rgba(255, 255, 255, .04); }
.pj-song-title:focus { border-bottom-color: rgba(255, 255, 255, .4); }
/* Admin */
.stat { background: var(--flat); }
.stat .stat-ic { color: var(--text-2); }
.admin-me small { color: var(--muted); }

/* ---------- Public pages: reel, project board, scheduled session ---------- */
.rp-glow, .ep-glow { display: none; }
.rp-bar { max-width: 1132px; }
.rp-private, .ep-pill { border-color: transparent; background: none; padding-left: 0; padding-right: 0; color: var(--muted); font-weight: 500; }
.rp-eyebrow, .ep-eyebrow { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.rp-head h1, .ep-card h1 { font-weight: 600; letter-spacing: -.05em; }
.rp-cover { border-color: transparent; color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .03); box-shadow: none; }
.rp-pp { background: #fff; color: #070708; }
.reel-page:not(.review-page) .rp-player { border-color: transparent; background: rgba(18, 18, 20, .88); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); }
.rp-pp:hover { background: #fff; transform: scale(1.04); }
.rp-track.current { background: rgba(255, 255, 255, .05); }
.rp-foot .ic { display: none; }
.rp-foot a { color: var(--text-2); }
.ep-ic { background: rgba(255, 255, 255, .05); color: var(--text); }

/* ---------- Website ---------- */
.eyebrow, .kicker { color: var(--text-2); }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }

/* ---------- Meeting room: keeps its floating glass, matches buttons and fields ---------- */
.prejoin .btn-primary, #joinBtn { background: #fff; color: #070708; }
.pill-btn { border-radius: 14px; }
.icon-btn { border-radius: 999px; }
.msg.mine .bubble { background: #fff; color: #070708; }
.chip.teacher, .chip.daw { background: rgba(255, 255, 255, .08); color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  dialog.modal[open], .toast { animation: none; }
}

/* Links read as plain text with an underline on hover, not orange */
.ag-foot a, .auth-card a, .rp-foot a { color: var(--text); font-weight: 500; }
.ag-foot a:hover, .auth-card a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hover motion on buttons, everywhere ----------
   Buttons rise a hair and their icon gives a small nudge; white buttons also get a soft glow
   and a quick light sweep. Pressing sinks them back. Nothing moves for "Reduce motion". */
.btn, .rv-v, .seg button, .pj-tabs button, .side-nav a, .set-nav button, .menu-list button, .menu-list a.menu-link, .rp-pp, .pj-status, .pj-mix, .pj-date, .see-all, .icon-btn, .cbtn, .pill-btn, .sb-ico {
  transition: background .2s var(--m-ease), color .2s, border-color .2s, box-shadow .3s var(--m-ease), transform .3s var(--m-ease), filter .2s; }
.btn:hover:not(:disabled) { transform: translateY(-1.5px); }
.btn:active:not(:disabled) { transform: translateY(0) scale(.97); transition-duration: .08s; }
.btn .ic, .side-nav a .ic, .set-nav button .ic, .menu-list .ic, .see-all .ic, .pj-tabs .ic { transition: transform .35s var(--m-ease); }
.btn:hover:not(:disabled) .ic { transform: scale(1.12); }
.btn:hover:not(:disabled) .ic:only-child { transform: scale(1.15) rotate(-6deg); }
.side-nav a:hover .ic, .set-nav button:hover .ic, .menu-list button:hover .ic, .menu-list a.menu-link:hover .ic { transform: translateX(2px); }
.see-all:hover .ic { transform: translateX(3px); }
.pj-tabs button:hover .ic { transform: translateY(-1px); }
/* White main buttons: soft glow and a light sweep */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .9) 48%, rgba(220, 220, 228, .6) 52%, transparent 70%); transform: translateX(-120%); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 8px 24px -8px rgba(255, 255, 255, .45); }
.btn-primary:hover:not(:disabled)::after { transform: translateX(120%); transition: transform .7s var(--m-ease); }
/* Round and small controls */
.rp-pp:hover { box-shadow: 0 8px 26px -6px rgba(255, 255, 255, .45); }
.rv-v:hover, .seg button:hover:not(.active) { transform: translateY(-1px); }
button.pj-status:hover { transform: scale(1.03); filter: brightness(1.1); z-index: 2; }
.pj-mix:hover, button.pj-date:hover { transform: translateY(-1px); }
.icon-btn:hover, .cbtn:hover, .sb-ico:hover { transform: translateY(-2px); }
.pill-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
.icon-btn:active, .cbtn:active, .sb-ico:active, .pill-btn:active, .rp-pp:active { transform: scale(.95); transition-duration: .08s; }
/* Cards you can click lift a touch */
:is(.action, .channel, .room-card, .reel-card, .pj-tile, .pj-card, .rvw, .tile .tile-ic) { transition: background .25s var(--m-ease), transform .35s var(--m-ease), box-shadow .35s var(--m-ease); }
:is(.action, .channel, .room-card, .reel-card, .pj-tile, .pj-card):hover { transform: translateY(-2px); }
.tile:hover .tile-ic { transform: translateY(-3px) scale(1.03); }
.tile-main:hover .tile-ic { box-shadow: 0 12px 30px -8px rgba(255, 255, 255, .4); }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn .ic, .btn-primary::after, .rv-v, .seg button, .side-nav a .ic, .pj-status, .icon-btn, .cbtn, .pill-btn, .sb-ico, .rp-pp,
  .action, .channel, .room-card, .reel-card, .pj-tile, .pj-card, .tile .tile-ic { transition: none !important; transform: none !important; }
  .btn-primary::after { display: none; }
}

/* Touch screens: text boxes at 16px or more, so iPhones don't zoom the page in when you tap one
   (inside the Lock-In app that zoom would stick and push the bottom tabs off screen) */
@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea { font-size: max(16px, 1em) !important; }
}
