@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
:root {
  /* surfaces step up in lightness; borders are white at ~8% */
  --bg: #0f1115; --panel: #171a21; --panel2: #1f232c; --panel3: #262b36; --line: #ffffff14; --line2: #ffffff22;
  --text: #eef0f5; --dim: #a0a6b4; --faint: #6e7484;
  --accent: #7b6cff; --accent2: #948aff; --accent-soft: #7b6cff26;
  --green: #3ccf87; --amber: #f2b942; --red: #f06565; --blue: #58a8ff;
  --radius: 12px; --radius-sm: 8px; --shadow: 0 12px 32px #0009;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
html { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--line2); background: var(--panel2); border-radius: 10px; padding: 7px 14px; min-height: 36px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px; line-height: 1; transition: background .12s, border-color .12s, color .12s, transform .12s, box-shadow .12s; }
button.icon { width: 36px; padding: 0; font-size: 15px; }
button.sm { min-height: 30px; padding: 4px 10px; font-size: 12.5px; border-radius: 8px; }
button:disabled { opacity: .45; cursor: default; transform: none !important; }
button:hover { border-color: #ffffff33; background: var(--panel3); }
button:active { transform: translateY(1px); }
button.primary { background: linear-gradient(180deg, #8678ff, var(--accent)); border-color: #6a5cf0; color: #fff; font-weight: 600; box-shadow: 0 1px 0 #ffffff1f inset, 0 4px 14px #7b6cff33; }
button.primary:hover { background: linear-gradient(180deg, #9488ff, #8577ff); border-color: #7b6cff; box-shadow: 0 1px 0 #ffffff26 inset, 0 6px 18px #7b6cff4d; }
button.success { background: linear-gradient(180deg, #46d98f, var(--green)); border-color: #2fb574; color: #0b2a1b; font-weight: 700; }
button.success:hover { filter: brightness(1.06); }
button.ghost { background: transparent; border-color: transparent; color: var(--dim); }
button.ghost:hover { color: var(--text); background: var(--panel2); }
button.danger { color: var(--red); }
input, textarea, select { background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 12px; outline: none; min-height: 36px; transition: border-color .12s, box-shadow .12s; }
select { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a0a6b4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; }
input[type=range] { padding: 0; min-height: 0; accent-color: var(--accent); }
input[type=checkbox] { min-height: 0; accent-color: var(--accent); }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:focus:not(:focus-visible), input:focus:not(:focus-visible) { outline: none; }
.tc, .num { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

.top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 5; min-width: 0; flex-wrap: wrap; }
.top > * { min-width: 0; }
.top button { white-space: nowrap; }
@media (hover: none) { button { min-height: 40px; } .pill { min-height: 0; } }
.brand { font-weight: 700; letter-spacing: .2px; display: flex; align-items: center; gap: 8px; }
.brand i { width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), #ff6ca8); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-style: normal; font-weight: 800; font-size: 13px; line-height: 1; }
.brand i::before { content: "A"; }
.spacer { flex: 1; }
/* section switcher in the top bar: Videos | Board */
.tabs { display: flex; gap: 2px; background: var(--panel2); border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.tabs a { padding: 5px 14px; border-radius: 99px; color: var(--dim); font-weight: 500; }
.tabs a:hover { color: var(--text); }
.tabs a.on { background: var(--panel3); color: var(--text); font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 16px; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-needs_review { color: var(--blue); background: #58a8ff1f; }
.st-in_progress { color: var(--amber); background: #f2b9421f; }
.st-changes_requested { color: var(--red); background: #f065651f; }
.st-approved { color: var(--green); background: #3ccf871f; }
.avatar { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; background: #4b5168; flex: none; }
.avatar.jp { background: #7b6cff; } .avatar.chris { background: #2aa198; } .avatar.claude { background: #d8822b; }
.muted { color: var(--dim); } .faint { color: var(--faint); }
.modal-bg { position: fixed; inset: 0; background: #000b; display: flex; align-items: center; justify-content: center; z-index: 50; backdrop-filter: blur(2px); }
.modal { background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; padding: 22px; width: min(460px, calc(100vw - 32px)); display: grid; gap: 12px; box-shadow: var(--shadow); max-height: calc(100vh - 32px); overflow: auto; }
.modal h3 { margin: 0; font-size: 17px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--panel3); border: 1px solid var(--line2); padding: 10px 16px; border-radius: 10px; z-index: 60; box-shadow: var(--shadow); }
.empty { color: var(--dim); text-align: center; padding: 48px 20px; border: 1px dashed var(--line2); border-radius: var(--radius); }
.empty h3 { margin: 0 0 8px; color: var(--text); }
@media (max-width: 640px) { .top { gap: 8px; padding: 8px 12px; } .top .tabs { order: 10; flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; } .top input { flex: 1; width: auto !important; min-width: 0; } .brand span, .brand { font-size: 14px; } }
