  @import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&family=Pacifico&display=swap');

  :root{
    --bg: #1B1E24;
    --bg-raised: #22262D;
    --surface: #262B33;
    --surface-hover: #2E333C;
    --border: #383F4A;
    --border-soft: #2E333C;
    --text: #EDEEF1;
    --text-dim: #9199A6;
    --text-faint: #6B7280;
    --amber: #E8A33D;
    --amber-dim: #7A5A28;
    --lightblue: #6FA9D8;
    --yellow: #F2D64B;
    --yellow-dim: #7A6B2E;
    --lightblue-dim: #3A5A70;
    --rose: #C77B7B;
    --alert: #FF5A5F;   /* late / overdue red for the Table: clear on the dark theme */
    --rose-dim: #4A3436;
    --green: #7FBF7F;
    --green-dim: #33402F;
    --info: #7C8FEA;
    --radius: 6px;
  }
  html[data-theme="light"]{
    --bg: #F4F5F7;
    --bg-raised: #FFFFFF;
    --surface: #ECEDF1;
    --surface-hover: #E2E4E9;
    --border: #D5D8DE;
    --border-soft: #E2E4E9;
    --text: #1B1E24;
    --text-dim: #5A6472;
    --text-faint: #8A93A0;
    --amber: #C67A1F;
    --amber-dim: #F0D8B0;
    --lightblue: #3E7CAE;
    --yellow: #C79A00;
    --yellow-dim: #EBDCA0;
    --lightblue-dim: #CFE3F2;
    --rose: #B25A5A;
    --alert: #D92D20;   /* late / overdue red for the Table: clear on the light theme */
    --rose-dim: #F3D9D9;
    --green: #4E9B4E;
    --green-dim: #DCEEDC;
    --info: #3F51C7;
  }

  *{ box-sizing: border-box; }
  html,body{ height:100%; }
  body{
    margin:0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  .mono{ font-family: 'JetBrains Mono', monospace; }
  ::selection{ background: var(--amber-dim); color: var(--text); }

  *{ scrollbar-width: thin; scrollbar-color: var(--border) var(--bg-raised); }
  ::-webkit-scrollbar{ width: 10px; height: 10px; }
  ::-webkit-scrollbar-track{ background: var(--bg-raised); }
  ::-webkit-scrollbar-thumb{ background: var(--border); border-radius: 100px; border: 2px solid var(--bg-raised); }
  ::-webkit-scrollbar-thumb:hover{ background: var(--amber-dim); }

  .config-warning{
    background: #4A3416; border-bottom: 1px solid #7A5A28; color: #F5D9A6;
    padding: 10px 20px; font-size: 13px; text-align:center;
  }
  .config-warning code{ background: rgba(0,0,0,0.25); padding: 1px 6px; border-radius:3px; }

  .app{ display:flex; min-height: 100vh; position:relative; }

  .sidebar{
    width: 280px; flex-shrink:0;
    background: var(--bg-raised);
    border-right: 1px solid var(--border-soft);
    display:flex; flex-direction:column;
    padding: 22px 18px; gap: 4px;
    transition: width 0.2s ease, padding 0.2s ease;
    overflow:hidden;
    position:sticky; top:0; height:100vh; align-self:flex-start;
  }
  .app.sidebar-collapsed .sidebar{ width:0; padding-left:0; padding-right:0; border-right:none; }
  .sidebar-collapse-toggle{
    position:fixed; top:50%; left:280px; transform:translateY(-50%);
    z-index:200; width:20px; height:52px; border-radius:0 8px 8px 0;
    background: var(--surface); border:1px solid var(--border); border-left:none;
    box-shadow: 2px 0 8px rgba(0,0,0,0.25);
    display:flex; align-items:center; justify-content:center; cursor:pointer; color: var(--text-dim);
    transition: left 0.2s ease;
  }
  .sidebar-collapse-toggle:hover{ color: var(--amber); background: var(--surface-hover); }
  /* The toggle normally floats above everything (z-index:200) so it's always reachable at the sidebar edge.
     Now that the burger menu is taller, it can reach up into the toggle's vertical position (screen-center) —
     drop the toggle behind the menu specifically while it's open, so it no longer pokes through the open panel.
     This only affects the toggle vs. the menu; the sidebar itself (z-index:60) still sits above the menu
     (z-index:55), so the "menu emerges from behind the sidebar" effect is unchanged. */
  .app:has(#footMenu.open) .sidebar-collapse-toggle{ z-index:40; }
  .sidebar-collapse-toggle svg{ width:13px; height:13px; transition: transform 0.2s ease; }
  .app.sidebar-collapsed .sidebar-collapse-toggle{ left:0; }
  .app.sidebar-collapsed .sidebar-collapse-toggle svg{ transform: rotate(180deg); }
  .sidebar-divider{ height:1px; background: var(--border-soft); margin: 2px 0; flex-shrink:0; }
  .sidebar-divider-roomy{ margin: 8px 0; }
  .sidebar-spacer{ height: 9px; flex-shrink:0; }
  .wordmark{ font-family:'Fraunces', serif; font-size: 36px; font-weight: 600; }
  .wordmark span{ color: var(--amber); }
  .kohyo-dot{ color: var(--amber); }

  .user-box{ display:flex; align-items:center; justify-content:space-between; gap:8px; padding:6px 4px 10px; }
  .user-box .who{ font-size:11px; color: var(--text-faint); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .user-box .who b{ font-weight:600; color: var(--text-dim); }
  .user-box .signout{ background:none; border:none; color: var(--text-faint); cursor:pointer; padding:3px; display:flex; align-items:center; border-radius:4px; flex:none; }
  .user-box .signout:hover{ color: var(--amber); background: var(--surface); }
  .link-btn{ background:none; border:none; color: var(--text-dim); font-size:11.5px; cursor:pointer; text-decoration:underline; font-family:inherit; padding:0; }
  .link-btn:hover{ color: var(--amber); }
  .link-btn:hover{ color: var(--text); }

  .sidebar-section{ display:flex; flex-direction:column; gap:10px; flex:none; }
  .sidebar-section.grows{ flex:1; min-height:0; }
  .sidebar-section-header{ color: var(--text-dim); font-size: 13.5px; font-weight:600; }
  .sidebar-section-header span svg{ width:15px; height:15px; }
  .video-list{ display:flex; flex-direction:column; gap:3px; overflow-y:auto; }
  .video-item{
    padding: 9px 26px 9px 10px; border-radius: var(--radius); cursor:pointer;
    color: var(--text-dim); display:flex; flex-direction:column; gap:2px;
    border: 1px solid transparent;
  }
  .video-item:hover{ background: var(--surface); color: var(--text); }
  .video-item.active{ background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); }   /* the outline stays as it was; only a subtle white wash marks the open episode */
  .video-item .vt-row{ display:flex; align-items:center; gap:6px; }
  .video-item .vt{ font-size: 13.5px; font-weight: 500; flex:1; min-width:0; }
  /* the RX number and name start in full text colour (white in dark, black in light) and take their section's colour on hover */
  .video-item .vt{ color: var(--text); transition: color .12s; }
  :is(#videoList, #peSideList) .video-item:hover .vt{ color: var(--amber); }
  html[data-theme="light"] .video-list:not(#videoList):not(#peSideList):not(#peSideList .video-list) .video-item:hover .vt{ color: var(--green); }   /* light mode: green everywhere except the Episodes list, which stays orange */
  #reviewList .video-item:hover .vt{ color: var(--rose); }
  #inProgressList .video-item:hover .vt{ color: var(--amber); }
  #recentList .video-item:hover .vt{ color: var(--green); }
  #awaitList .video-item:hover .vt{ color: var(--info); }
  #favoritesList .video-item:hover .vt{ color: var(--yellow); }
  :is(#videoList, #peSideList) .video-item.is-locked:hover .vt{ color: var(--green); }   /* a locked episode in the Episodes list */
  :is(#videoList, #peSideList) .ep-subgroup{ display:flex; flex-direction:column; gap:3px; }
  :is(#videoList, #peSideList) .ep-subgroup + .ep-subgroup{ margin-top:8px; }
  :is(#videoList, #peSideList) .ep-subhead{ font-size:12.5px; padding:2px 10px 2px 2px; } /* title case, not capitals (M-300) */
  :is(#videoList, #peSideList) .ep-sub-count{ color: var(--text-faint, var(--text-dim)); font-weight:500; margin-left:4px; }
  :is(#videoList, #peSideList) .ep-subgroup .video-list{ overflow:visible; }
  .video-item .vd.due-over, .dash-row-sub.due-over{ color: var(--rose); font-weight:600; }
  .video-item .vd.due-soon, .dash-row-sub.due-soon{ color: var(--amber); font-weight:600; }
  .video-item .vd.due-tomorrow, .dash-row-sub.due-tomorrow{ color: var(--text); font-weight:600; }
  .video-item .vd.due-moved, .dash-row-sub.due-moved{ font-style:italic; font-size:11px; color: var(--text-faint); font-weight:400; }
  .reviewer-pill.status-opted_out{ opacity:.6; }
  .optout-switch{ display:flex; align-items:center; gap:10px; margin-top:8px; }
  .tg{ position:relative; width:40px; height:22px; flex:none; border-radius:100px; background: var(--surface); border:1px solid var(--border); cursor:pointer; outline:none; transition: background .2s, border-color .2s; }
  .tg:focus-visible{ box-shadow:0 0 0 2px var(--amber-dim); }
  .tg-knob{ position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background: var(--text-dim); box-shadow:0 1px 3px rgba(0,0,0,0.4); transition: transform .2s, background .2s; }
  .tg.on{ background: rgba(232,163,61,0.25); border-color: var(--amber); }
  .tg.on .tg-knob{ transform: translateX(18px); background: var(--amber); }
  #notesCompletedRow{ margin-top:12px; }
  #notesCompletedRow:empty{ display:none; }   /* an empty row would still add its own gap above the next one */
  #editorCompleteRow{ margin-top:6px; }
  .nc-pill{ display:inline-flex; align-items:center; gap:7px; padding:8px 18px; border-radius:100px; border:1px solid var(--amber); background: rgba(232,163,61,0.12); color: var(--amber); font-weight:600; font-size:13px; cursor:pointer; font-family:inherit; transition: background .15s, color .15s, border-color .15s; }
  .nc-pill:hover{ background: rgba(232,163,61,0.2); }
  .nc-pill.done{ border-color: var(--green); background: var(--green-dim); color: var(--green); cursor:default; }
  .nc-pill.fade{ opacity:0; transition: opacity .6s ease; }
  .nc-pill svg{ width:14px; height:14px; }
  .tg-label{ font-size:12.5px; color: var(--text-dim); }
  .video-item .vd{ font-size: 11.5px; color: var(--text-faint); padding-left:19px; }
  .video-item.active .vt{ color: var(--text); }
  .video-item.favorited{ border-color: var(--yellow-dim); }
  .video-item.review-needed{ border-color: var(--amber); }
  .video-item.review-needed.status-not_started{ border-color: var(--rose-dim); }
  .video-item.review-needed.status-not_started .vt-row svg{ color: var(--rose); }
  .video-item.review-needed.status-in_progress{ border-color: var(--amber-dim); }
  .video-item.review-needed.status-in_progress .vt-row svg{ color: var(--amber); }
  .video-item.recent-done{ border-color: var(--green-dim); }
  .video-item.recent-done .vt-row svg{ color: var(--green); }
  .video-item .vd.due-done{ color: var(--green); font-weight:600; }
  /* Awaiting Video Upload: the section's own colour (--info) for the outline, the icon and the date, as Recently Reviewed uses green */
  .video-item.review-needed.awaiting-upload{ border-color: var(--info); }
  .video-item.awaiting-upload .vt-row svg{ color: var(--info); }
  .video-item .vd.due-await{ color: var(--info); font-weight:600; }
  .video-item.active.review-needed.awaiting-upload{ background: color-mix(in srgb, var(--info) 14%, transparent); }
  .video-item.active, .video-item.active.favorited, .video-item.active.review-needed{ background: color-mix(in srgb, var(--text) 10%, transparent); }
  /* the open episode is washed with the colour of its list, a little softer than a solid highlight */
  .video-item.active.favorited{ background: color-mix(in srgb, var(--yellow) 14%, transparent); }
  .video-item.active.review-needed.status-not_started{ background: color-mix(in srgb, var(--rose) 16%, transparent); }
  .video-item.active.review-needed.status-in_progress{ background: color-mix(in srgb, var(--amber) 14%, transparent); }
  .video-item.active.recent-done{ background: color-mix(in srgb, var(--green) 14%, transparent); }
  .video-item .vt-row svg{ width:13px; height:13px; flex-shrink:0; }
  .reviewer-row{ display:flex; flex-wrap:wrap; gap:8px; margin-top:-6px; }
  #reviewerRow .reviewer-pill{ flex:1 1 130px; }   /* the pills together fill the whole width, like the cards above and below */
  .reviewer-due.clickable{ cursor:pointer; } .reviewer-due.clickable:hover{ border-color: var(--amber-dim); background: color-mix(in srgb, var(--amber) 6%, var(--surface)); }
  .editor-log-row{ margin-top:-6px; max-width:220px; }
  .editor-log-select.status-start .custom-select-trigger{ border-color: var(--rose-dim); color: var(--rose); }
  .editor-log-select.status-inprogress .custom-select-trigger{ border-color: var(--amber-dim); color: var(--amber); }
  .editor-log-select.status-complete .custom-select-trigger{ border-color: var(--green-dim); color: var(--green); }
  .reviewer-pill{
    display:flex; flex-direction:column; align-items:flex-start; gap:2px; padding:8px 14px; border-radius:12px;
    font-size:12.5px; border:1px solid var(--border-soft); background: var(--surface);
    font-family:inherit; cursor:default; text-align:left; min-width:118px;
  }
  .pill-name{ display:flex; align-items:center; gap:5px; font-size:12.5px; font-weight:600; }
  .pill-name svg{ width:13px; height:13px; flex-shrink:0; }
  .pill-status{ font-size:9.5px; font-weight:600; text-transform:uppercase; letter-spacing:0.3px; color: var(--text-faint); }
  .reviewer-pill.status-awaiting{ border-color: var(--rose-dim); background: rgba(199,123,123,0.08); }
  .reviewer-pill.status-awaiting .pill-name{ color: var(--rose); }
  .reviewer-pill.status-not_started{ border-color: var(--rose-dim); background: rgba(199,123,123,0.08); }
  .reviewer-pill.status-not_started .pill-name{ color: var(--rose); }
  .reviewer-pill.status-in_progress{ border-color: var(--amber-dim); background: rgba(232,163,61,0.08); }
  .reviewer-pill.status-in_progress .pill-name{ color: var(--amber); }
  .reviewer-pill.status-complete{ border-color: var(--green); background: rgba(127,191,127,0.1); }
  .reviewer-pill.status-complete .pill-name{ color: var(--green); }
  .reviewer-pill.clickable{ cursor:pointer; }
  .reviewer-pill.clickable:hover{ background: var(--amber); border-color: var(--amber); }
  .reviewer-pill.clickable:hover .pill-name,
  .reviewer-pill.clickable:hover .pill-status,
  .reviewer-pill.clickable:hover .pill-when,
  .reviewer-pill.clickable:hover .pill-when b{ color: #fff; }
  .video-item.dragging{ opacity: 0.45; }
  .video-item[draggable="true"]{ cursor: grab; }
  .video-divider{ height:1px; background: var(--border-soft); margin: 8px 2px; }
  .star-btn{
    background:none; border:none; cursor:pointer; font-size:13px; padding:0;
    color: #4A4F58; line-height:1; flex-shrink:0;
  }
  .star-btn:hover{ color: var(--amber-dim); }
  .star-btn.active{ color: var(--yellow); }
  .empty-note{ color: var(--text-faint); font-size: 12.5px; padding: 6px 10px; }

  .btn-add{
    display:flex; align-items:center; gap:6px; background: transparent;
    border: 1px dashed var(--border); color: var(--text-dim);
    padding: 8px 10px; border-radius: var(--radius); font-size: 12.5px;
    cursor:pointer; font-family: inherit;
  }
  .btn-add:hover{ border-color: var(--amber-dim); color: var(--amber); }
  /* M-349: Offline | Online icon filters above Review's Episodes list */
  .ep-filter{ display:grid; grid-template-columns:1fr 1fr; gap:6px; margin:2px 0 8px; }
  .ep-fbtn{ display:flex; align-items:center; justify-content:center; gap:6px; background:transparent; border:1px solid var(--border); color: var(--text-dim);
    padding:6px 8px; border-radius: var(--radius); font-size:12.5px; font-family:inherit; cursor:pointer; }
  .ep-fbtn svg{ flex:none; }
  .ep-fbtn .ep-fcount{ color: var(--text-faint, var(--text-dim)); font-weight:500; }
  .ep-fbtn.on{ border-color: var(--amber); color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, transparent); font-weight:600; }
  .ep-fbtn.on .ep-fcount{ color: var(--amber); }

  .btn-admin{
    display:flex; align-items:center; justify-content:center; gap:8px; background: none;
    border: 1px solid var(--border-soft); color: var(--text-dim);
    padding: 9px 12px; border-radius: var(--radius); font-size: 12.5px;
    cursor:pointer; font-family: inherit; width:100%;
  }
  .btn-admin svg{ width:17px; height:17px; flex-shrink:0; }
  .btn-admin:hover{ border-color: var(--border); color: var(--text); }
  .sidebar-foot{ margin-top:6px; flex:none; background: var(--bg-raised); padding:10px 0 0; border-top:1px solid var(--border-soft); z-index:5; display:flex; flex-direction:column; gap:4px; }
  .foot-btns{ display:flex; gap:6px; }
  #footMenuBtn{ width:auto; padding:11px 12px; flex:none; }
  #footMenuBtn{ position:relative; }
  .menu-badge{ position:absolute; top:-7px; right:-7px; min-width:20px; height:20px; padding:0 5px; border-radius:10px; background: var(--amber); color:#1B1E24; font-size:11.5px; font-weight:800; line-height:20px; text-align:center; box-shadow:0 0 0 2px var(--bg-raised); pointer-events:none; }
  .menu-badge[hidden]{ display:none; }
  /* the Review / Scheduling slider is the same height as the Dash and menu buttons beside it */
  .foot-btns .ms-track{ padding:0; align-self:stretch; width:76px; height:40px; }
  .foot-btns .ms-knob{ width:34px; height:34px; }
  .foot-btns .ms-knob svg{ width:16px; height:16px; }
  .foot-btns #dashboardSidebarBtn{ flex:1; }
  .foot-menu{ position:fixed; bottom:18px; left:298px; width:230px; background: var(--bg-raised); border:1px solid var(--border); border-radius:10px; padding:6px; box-shadow:8px 0 28px rgba(0,0,0,0.35); display:flex; flex-direction:column; gap:2px; z-index:55;
    visibility:hidden; opacity:0; transform:translateX(-110%); transition: transform .22s ease, opacity .18s ease, visibility .22s; }
  .foot-menu.open{ visibility:visible; opacity:1; transform:none; }
  .sidebar{ z-index:60; }
  .sidebar-top{ display:flex; align-items:center; justify-content:space-between; margin:0 0 4px; padding:0 0 4px; }
  .sidebar-search-btn{ margin-bottom:4px; }   /* the menu slides out from underneath the sidebar */
  .foot-menu .btn-admin{ justify-content:flex-start; border-color: transparent; background:none; height:40px; padding:0 10px; font-size:13px; }
  .foot-menu .btn-admin:hover{ background: var(--surface); }
  .foot-menu .btn-admin.active{ background: rgba(232,163,61,0.10); }
  /* the page you are on: kept in the menu, orange text, not clickable */
  .foot-menu .btn-admin.current, .settings-flyout .btn-admin.current{ color: var(--amber); background:none !important; border-color:transparent; cursor:default; opacity:1; pointer-events:none; }
  .sidebar-foot .btn-admin{ width:100%; justify-content:center; padding:11px 8px; font-size:13px; font-weight:600; gap:8px; color: var(--text); background: var(--surface); border-color: var(--border); }
  .sidebar-foot .btn-admin svg{ width:16px; height:16px; }
  .sidebar-foot .btn-admin:hover{ border-color: var(--amber-dim); color: var(--amber); }
  .sidebar-foot .btn-admin.active{ border-color: var(--amber); color: var(--amber); background: rgba(232,163,61,0.10); }
  /* Review / Schedule slider (iOS-style) above the wordmark */
  .mode-switch{ display:flex; align-items:center; gap:12px; margin-bottom:10px; }
  .ms-track{ position:relative; width:68px; height:32px; flex:none; border-radius:100px; background: var(--surface); border:1px solid var(--border); cursor:pointer; touch-action:none; outline:none; }
  .ms-track:focus-visible{ box-shadow:0 0 0 2px var(--amber-dim); }
  .ms-icon{ position:absolute; top:50%; transform:translateY(-50%); width:15px; height:15px; color: var(--text-faint); display:flex; }
  .ms-icon svg{ width:15px; height:15px; }
  .ms-icon.l{ left:9px; } .ms-icon.r{ right:9px; }
  .ms-knob{ position:absolute; top:2px; left:2px; width:26px; height:26px; border-radius:50%; background: var(--amber); color:#1B1E24; display:flex; align-items:center; justify-content:center; box-shadow:0 1px 4px rgba(0,0,0,0.4); transition: transform .2s ease; }
  .ms-knob svg{ width:14px; height:14px; }
  .ms-knob .kl{ display:flex; } .ms-knob .kr{ display:none; }
  .ms-track.schedule .ms-knob, .ms-track.editor .ms-knob{ transform: translateX(36px); }
  .ms-track.schedule .ms-knob .kl, .ms-track.editor .ms-knob .kl{ display:none; } .ms-track.schedule .ms-knob .kr, .ms-track.editor .ms-knob .kr{ display:flex; }
  .ms-track.dragging .ms-knob{ transition:none; }
  /* Editor mode is blue (the same blue as the Scheduling side); Reviewer mode is amber */
  .ms-track.editor .ms-knob{ background: var(--info); transition: transform .2s ease, background .2s ease; }
  .ms-track.editor{ border-color: color-mix(in srgb, var(--info) 55%, var(--border)); }
  html[data-theme="light"] .ms-track.editor .ms-knob{ color:#fff; }
  .ms-label{ font-size:12.5px; font-weight:600; color: var(--text-dim); letter-spacing:.2px; }
  .area-switch{ display:flex; background: var(--surface); border:1px solid var(--border-soft); border-radius:8px; padding:3px; gap:3px; }
  .area-switch button{ flex:1; background:none; border:none; color: var(--text-dim); padding:7px 0; border-radius:6px; font-size:12.5px; font-weight:600; cursor:pointer; font-family:inherit; }
  .area-switch button.active{ background: var(--amber); color:#1B1E24; }
  /* the sidebar: logo and search stay put, the lists scroll, the account buttons stay at the bottom */
  .sidebar-scroll{ flex:1; min-height:0; overflow-y:auto; overflow-x:hidden; display:flex; flex-direction:column; gap:4px; margin:0 -18px; padding:0 18px; }
  .sidebar-scroll .sidebar-section.grows{ flex:none; }
  .sidebar-scroll #videoList{ overflow:visible; }
  #episodesBody{ display:flex; flex-direction:column; gap:8px; }
  .foot-menu-group{ display:flex; flex-direction:column; gap:2px; padding-bottom:4px; margin-bottom:4px; border-bottom:1px solid var(--border-soft); }
  .settings-flyout{ position:fixed; width:230px; background: var(--bg-raised); border:1px solid var(--border); border-radius:10px; padding:6px 6px 8px; box-shadow:8px 0 28px rgba(0,0,0,0.35); z-index:50; display:flex; flex-direction:column; gap:2px;
    visibility:hidden; opacity:0; transform:translateX(-110%); transition: transform .22s ease, opacity .18s ease, visibility .22s; }
  .settings-flyout.open{ visibility:visible; opacity:1; transform:none; }
  #settingsItemsFlyout{ z-index:45; }
  .settings-flyout .btn-admin{ justify-content:flex-start; border-color: transparent; background:none; height:40px; padding:0 10px; font-size:13px; width:100%; }
  .settings-flyout .btn-admin:hover{ background: var(--surface); }
  .settings-flyout .btn-admin.active{ background: rgba(232,163,61,0.10); }
  .settings-flyout .btn-admin .sf-chev{ margin-left:auto; opacity:.5; }
  .foot-menu .btn-admin .fm-chev{ margin-left:auto; opacity:.5; }
  /* the line above this block is already drawn by the group above it, so this one stays invisible but keeps its 1px (placement unchanged) */
  .foot-menu-bottom{ display:flex; flex-direction:column; gap:2px; margin-top:4px; padding-top:4px; border-top:1px solid transparent; }
  .foot-menu-bottom:first-child{ border-top:none; margin-top:0; padding-top:0; }
  .sidebar-admin-stack{ display:grid; grid-template-columns:1fr 1fr; gap:4px; }
  .sidebar-admin-stack .btn-admin{ padding:8px 6px; white-space:nowrap; gap:6px; font-size:12px; }
  .sidebar-admin-stack .btn-admin svg{ width:14px; height:14px; }
  #adminStatus{ order:3; }
  .btn-admin.active{ border-color: var(--amber); color: var(--amber); background: rgba(232,163,61,0.10); }
  .admin-status{ font-size:11px; color: var(--text-faint); margin-top:-2px; line-height:1.5; }

  .main{ flex:1; padding: 30px 40px 60px; max-width: 1280px; display:flex; flex-direction:column; gap: 24px; }
  .main.sc-wide{ max-width:none; min-width:0; }
  .video-layout{ display:flex; gap:28px; align-items:flex-start; }
  .video-layout-left{ flex: 1.3; min-width:0; display:flex; flex-direction:column; gap:16px; }
  .video-layout-right{ flex: 1; min-width:320px; max-width:440px; display:flex; flex-direction:column; gap:16px; }
  @media (max-width: 1000px){
    .video-layout{ flex-direction:column; }
    .video-layout-right{ max-width:100%; }
  }
  .center-prompt{ color: var(--text-dim); padding-top: 80px; text-align:center; font-family:'Fraunces', serif; font-size: 19px; display:flex; flex-direction:column; gap:18px; align-items:center; }
  .chooser-grid{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; max-width:500px; }
  .chooser-btn{
    background: var(--surface); border:1px solid var(--border-soft); color: var(--text);
    padding: 10px 18px; border-radius: 100px; font-size:14px; cursor:pointer; font-family:'Inter',sans-serif;
  }
  .chooser-btn:hover{ border-color: var(--amber-dim); color: var(--amber); }
  .welcome-title{ font-family:'Fraunces', serif; font-size: 26px; font-weight:600; color: var(--text); }
  .welcome-title.big{ font-size: 44px; }
  .dashboard .welcome-title.big{ font-size: 53px; }
  .welcome-subtitle{ font-size: 14px; color: var(--text-dim); margin-top:-8px; font-family:'Inter',sans-serif; }
  .welcome-subtitle.big{ font-size: 17px; margin-top:-6px; }
  .login-form{ display:flex; flex-direction:column; gap:14px; width:340px; margin-top:10px; }
  .login-form input{
    background: var(--surface); border:1px solid var(--border-soft); color: var(--text);
    padding:14px 16px; border-radius:8px; font-size:16px; font-family:'Inter',sans-serif;
  }
  .login-form input:focus{ outline:none; border-color: var(--amber-dim); }
  .login-form input::placeholder{ color: var(--text-faint); }
  .login-form input:-webkit-autofill,
  .login-form input:-webkit-autofill:hover,
  .login-form input:-webkit-autofill:focus{
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
    box-shadow: 0 0 0 1000px var(--surface) inset;
    caret-color: var(--text);
    transition: background-color 9999s ease-in-out 0s;
  }
  .theme-checkbox{
    appearance: none; -webkit-appearance: none;
    width: 18px !important; height: 18px !important; flex-shrink: 0;
    border: 1.5px solid var(--border); border-radius: 4px;
    background: var(--bg-raised); cursor: pointer; position: relative;
    transition: border-color 0.12s ease;
    padding: 0 !important; margin: 0;
    display: inline-block; vertical-align: middle;
  }
  .theme-checkbox:hover{ border-color: var(--amber-dim); }
  .theme-checkbox:checked{ border-color: var(--amber); }
  .theme-checkbox:checked::after{
    content: ''; position: absolute; left: 5px; top: 1px;
    width: 5px; height: 9px;
    border: solid var(--amber); border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  .theme-checkbox-danger:hover{ border-color: var(--rose-dim); }
  .theme-checkbox-danger:checked{ border-color: var(--rose); }
  .theme-checkbox-danger:checked::after{ border-color: var(--rose); }
  .btn-save.big{ padding:14px 16px; font-size:16px; }
  .login-screen{
    position: fixed; inset: 0;
    display:flex; align-items:center; justify-content:center;
    background: var(--bg); z-index: 90;
  }
  .login-screen .center-prompt{ padding-top:0; }

  .dashboard{ max-width: 1200px; }
  .editor-table-wrap{ overflow-x:auto; border:1px solid var(--border-soft); border-radius: var(--radius); }
  .editor-table{ border-collapse:collapse; width:100%; min-width:600px; table-layout:fixed; }
  .editor-table th{
    text-align:center; font-size:11px; text-transform:uppercase; letter-spacing:0.4px; color: var(--text-faint);
    padding:8px 11px; border-bottom:1px solid var(--border-soft); background: var(--bg-raised);
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  }
  .editor-table th:first-child{ text-align:left; width:170px; }
  .editor-table td{ border-bottom:1px solid var(--border-soft); padding:8px 11px; font-size:13px; }
  .editor-table tr:last-child td{ border-bottom:none; }
  .editor-table tr:hover td{ background: var(--surface); }
  .editor-episode-cell{ font-weight:600; color: var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .editor-episode-stage{ font-weight:400; font-size:11.5px; color: var(--text); margin-top:2px; }
  .editor-cell{ text-align:center; cursor:pointer; }
  .editor-cell svg{ width:21px; height:21px; display:inline-block; vertical-align:middle; }
  .editor-cell:hover{ filter: brightness(1.3); }
  .editor-cell-complete{ color: var(--green); }
  .editor-cell-inprogress{ color: var(--amber); }
  .editor-cell-notstarted{ color: var(--rose); }
  .editor-cell-future{ color: var(--lightblue); }
  .ring-status{
    display:inline-flex; align-items:center; justify-content:center;
    width:34px; height:34px; border-radius:50%; border:2px solid var(--border-soft);
  }
  .ring-status svg{ width:18px; height:18px; flex-shrink:0; display:block; }
  .ring-status.ring-complete{ border-color: var(--green); }
  .ring-status.ring-inprogress{ border-color: var(--amber); }
  .ring-status.ring-notstarted{ border-color: var(--rose); }
  .editor-key-row{ display:flex; gap:14px; margin-top:20px; flex-wrap:wrap; }
  .editor-key-box{ flex:1; min-width:220px; padding:12px 16px; background: var(--bg-raised); border:1px solid var(--border-soft); border-radius: var(--radius); }
  .editor-key-title{ font-size:11px; text-transform:uppercase; letter-spacing:0.4px; color: var(--text-faint); margin-bottom:8px; }
  .editor-key-group{ display:flex; flex-wrap:wrap; align-items:center; gap:16px; }
  .editor-key-item{ display:flex; align-items:center; gap:5px; font-size:12px; color: var(--text); }
  .editor-key-item svg{ width:14px; height:14px; flex-shrink:0; }
  .compare-video-row{ display:flex; gap:24px; margin-top:16px; }
  .compare-video-col{ flex:1; min-width:0; display:flex; flex-direction:column; gap:10px; }
  .custom-select{ position:relative; }
  .note-view-mode-select{ width:50%; }
  .custom-select-trigger{
    width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px;
    background: var(--surface); border:1px solid var(--border-soft); color: var(--text);
    padding:9px 16px; border-radius:6px; font-size:13.5px; font-family:inherit; cursor:pointer; text-align:left;
  }
  .custom-select-trigger:hover{ border-color: var(--amber-dim); }
  .custom-select-trigger svg{ width:14px; height:14px; flex-shrink:0; color: var(--text-faint); }
  .custom-select-menu{
    display:none; position:absolute; top:calc(100% + 4px); left:0; right:0; z-index:20;
    background: var(--bg-raised); border:1px solid var(--border-soft); border-radius:8px;
    max-height:240px; overflow-y:auto; box-shadow:0 8px 24px rgba(0,0,0,0.35);
  }
  .custom-select-menu.open{ display:block; }
  .custom-select-option{ padding:9px 16px; font-size:13.5px; cursor:pointer; color: var(--text-dim); }
  .custom-select-option:hover{ background: var(--surface); color: var(--text); }
  .custom-select-option.selected{ color: var(--amber); font-weight:600; }
  /* Native <select>s are swapped for this same dropdown everywhere (see enhanceSelect) so nothing shows the OS look */
  select[data-enh]{ position:absolute !important; opacity:0; pointer-events:none; width:1px; height:1px; overflow:hidden; }
  .custom-select.enh{ display:inline-block; vertical-align:middle; min-width:96px; max-width:100%; }
  .custom-select.enh .custom-select-trigger{ height:36px; padding:0 12px; font-size:12.5px; }
  .custom-select.enh .custom-select-trigger span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .custom-select.enh.disabled .custom-select-trigger{ opacity:.5; cursor:not-allowed; }
  .custom-select.enh .custom-select-menu{ z-index:600; }
  .custom-select.enh .custom-select-option.hl{ background: var(--surface); color: var(--text); }
  .custom-select-option.disabled{ opacity:.4; pointer-events:none; }
  .modal .custom-select.enh, .field .custom-select.enh{ display:block; width:100%; }
  .modal .custom-select.enh .custom-select-trigger, .field .custom-select.enh .custom-select-trigger{ height:auto; padding:9px 14px; font-size:13.5px; }
  td.cell .custom-select.enh{ display:block; width:100%; }
  td.cell .custom-select.enh .custom-select-trigger{ position:relative; height:28px; padding:0 20px 0 8px; font-size:11.5px; background:transparent; border-color:transparent; justify-content:center; text-align:center; }
  td.cell .custom-select.enh .custom-select-trigger:hover{ background: var(--surface); border-color: var(--border-soft); }
  td.cell .custom-select.enh .custom-select-trigger span{ text-align:center; }
  td.cell .custom-select.enh .custom-select-trigger svg{ position:absolute; right:10px; top:50%; transform:translateY(-50%); width:12px; height:12px; }
  /* Date and time pickers in the site's style (native inputs hidden, kept for .value and events) */
  input[data-enh]{ position:absolute !important; opacity:0; pointer-events:none; width:1px; height:1px; overflow:hidden; }
  .datepick.enh{ display:inline-block; vertical-align:middle; position:relative; max-width:100%; }
  .datepick-trigger{ display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; height:36px; padding:0 12px; background: var(--surface); border:1px solid var(--border-soft); color: var(--text); border-radius:6px; font-size:12.5px; font-family:inherit; cursor:pointer; white-space:nowrap; }
  .datepick-trigger:hover{ border-color: var(--amber-dim); }
  .datepick-trigger svg{ width:14px; height:14px; color: var(--text-faint); flex:none; }
  .datepick-trigger .ph{ color: var(--text-faint); }
  .datepick.enh.disabled .datepick-trigger{ opacity:.5; cursor:not-allowed; }
  .modal .datepick.enh, .field .datepick.enh{ display:block; width:100%; }
  .modal .datepick-trigger, .field .datepick-trigger{ height:auto; padding:9px 14px; font-size:13.5px; }
  td.cell .datepick.enh{ display:block; width:100%; }
  td.cell .datepick-trigger{ height:28px; padding:0 4px; background:transparent; border-color:transparent; justify-content:center; font-size:inherit; font-family:inherit; font-style:inherit; }
  td.cell .datepick-trigger:hover{ background:transparent; border-color:transparent; }
  td.cell .datepick-trigger svg, td.cell .datepick-trigger .dp-y{ display:none; }
  td.cell.st-expect .datepick-trigger{ font-style:italic; color: var(--text-dim); }
  td.cell .datepick-trigger .ph{ color: var(--text-faint); }
  .datepop{ position:fixed; z-index:650; width:264px; background: var(--bg-raised); border:1px solid var(--border-soft); border-radius:10px; box-shadow:0 8px 28px rgba(0,0,0,0.4); padding:10px; user-select:none; }
  .datepop-input{ width:100%; box-sizing:border-box; background: var(--surface); border:1px solid var(--border-soft); color: var(--text); border-radius:6px; padding:8px 10px; font-size:13px; font-family:inherit; outline:none; }
  .datepop-input:focus{ border-color: var(--amber-dim); }
  .datepop-hint{ font-size:11.5px; color: var(--text-faint); margin:4px 2px 8px; min-height:16px; }
  .datepop-hint.ok{ color: var(--green); } .datepop-hint.bad{ color: var(--rose); }
  .datepop-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; font-weight:600; font-size:13px; }
  .datepop-head button{ background:none; border:1px solid var(--border-soft); color: var(--text-dim); border-radius:6px; width:28px; height:28px; cursor:pointer; font-size:14px; }
  .datepop-head button:hover{ color: var(--amber); border-color: var(--amber-dim); }
  .datepop-grid{ display:grid; grid-template-columns: repeat(7, 1fr); gap:2px; text-align:center; }
  .datepop-grid .dow{ font-size:10.5px; color: var(--text-faint); padding:4px 0; }
  .datepop-grid button{ background:none; border:1px solid transparent; color: var(--text); height:32px; border-radius:6px; font-size:12.5px; cursor:pointer; font-family:inherit; }
  .datepop-grid button:hover{ background: var(--surface); }
  .datepop-grid button.out{ color: var(--text-faint); }
  .datepop-grid button.we{ color: var(--text-dim); }
  .datepop-grid button.future, .datepop-grid button.future:hover{ background:none; color: var(--text-faint); opacity:.35; cursor:not-allowed; }
  .datepop-grid button.today{ border-color: var(--amber-dim); }
  .datepop-grid button.sel{ background: var(--amber); color:#1B1E24; font-weight:700; border-color: var(--amber); }
  .datepop-foot{ display:flex; justify-content:space-between; margin-top:8px; }
  .datepop-foot button{ background:none; border:none; color: var(--text-dim); font-size:12px; cursor:pointer; font-family:inherit; padding:4px 6px; border-radius:4px; }
  .datepop-foot button:hover{ color: var(--amber); }
  .datepop-foot button.no-clear, .datepop-foot button.no-clear:hover{ color: var(--text-faint); opacity:.5; cursor:not-allowed; }
  .compare-player{ aspect-ratio: 16/9; }
  .compare-controls-row{ display:flex; align-items:flex-start; gap:16px; margin-top:4px; }
  .compare-panel-controls{ flex:1; min-width:0; display:flex; align-items:center; gap:8px; }
  .compare-panel-controls:first-child{ justify-content:flex-start; }
  .compare-panel-controls:last-child{ justify-content:flex-end; }
  .compare-master-controls{ display:flex; flex-direction:column; align-items:center; gap:8px; flex-shrink:0; }
  .compare-master-transport{ display:flex; align-items:center; gap:8px; }
  .compare-notes-row{ display:flex; gap:24px; margin-top:16px; }
  .compare-notes-feed{ flex:1; min-width:0; max-height: 420px; overflow-y:auto; display:flex; flex-direction:column; gap:8px; padding-right:2px; }
  .mini-transport-btn{
    background: var(--surface); border:1px solid var(--border-soft); color: var(--text-dim);
    height:34px; min-width:34px; border-radius:100px; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:6px;
    padding:0; font-size:11px; font-family:inherit;
  }
  .mini-transport-btn.wide{ padding:0 12px; }
  .mini-transport-btn svg{ width:15px; height:15px; flex-shrink:0; }
  .mini-transport-btn:hover{ color: var(--text); border-color: var(--amber-dim); }
  .mini-transport-btn.active{ background: var(--amber); border-color: var(--amber); color: #1B1E24; font-weight:600; }
  .mini-transport-btn.sync-locked{ background: var(--amber); border-color: var(--amber); color: #1B1E24; }
  .compare-panel-controls .mini-transport-btn{ opacity: 0.6; }
  @media (max-width: 900px){
    .compare-video-row{ flex-direction:column; }
    .compare-controls-row{ flex-direction:column; align-items:center; }
    .compare-notes-row{ flex-direction:column; }
  }
  .dashboard .welcome-title{ margin-bottom: 2px; }
  .dashboard .welcome-title:not(.big){ color: var(--amber); }   /* every section headline on the dashboard is orange (the page's own heading stays white) */
  .reviewer-due{ --c: var(--green); display:flex; align-items:center; gap:12px; flex-wrap:wrap; width:100%; box-sizing:border-box; background: var(--surface); border:1px solid var(--border-soft); border-left:3px solid var(--c); border-radius:8px; padding:8px 14px 8px 10px; margin:10px 0 6px; }
  .reviewer-due.due-soon{ --c: var(--amber); } .reviewer-due.due-over{ --c: var(--rose); }
  .reviewer-due .rd-badge{ display:inline-flex; align-items:center; gap:6px; font-size:10.5px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); border-radius:100px; padding:4px 11px 4px 8px; }
  .reviewer-due .rd-body{ display:flex; flex-direction:column; gap:2px; }
  .reviewer-due .rd-text{ font-size:12.5px; color: var(--text-dim); }
  .reviewer-due .rd-text b{ color: var(--text); font-weight:600; }
  .reviewer-due .rd-extra{ color: var(--c); font-weight:600; font-size:12.5px; }
  .pill-when{ display:block; font-size:10px; color: var(--text-faint); margin-top:1px; white-space:nowrap; }
  .pill-when b{ font-weight:700; } .pill-when b.ok{ color: var(--green); } .pill-when b.late{ color: var(--rose); }
  .health-strip{ margin:0 0 28px; }
  .health-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:10px; }
  .health-mode{ display:inline-flex; background: var(--surface); border:1px solid var(--border-soft); border-radius:8px; padding:2px; gap:2px; }
  .health-mode button{ background:none; border:none; color: var(--text-dim); padding:5px 12px; border-radius:6px; font-size:12px; font-weight:600; cursor:pointer; font-family:inherit; }
  .health-mode button.active{ background: var(--amber); color:#1B1E24; }
  .health-cards{ display:grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap:16px; }
  .health-card{ background: var(--bg-raised); border:1px solid var(--border-soft); border-left:4px solid var(--green); border-radius:8px; padding:14px 16px; text-align:left; font-family:inherit; color: var(--text); }
  .health-card.warn{ border-left-color: var(--amber); } .health-card.bad{ border-left-color: var(--rose); }
  .health-card[data-health-open]{ cursor:pointer; } .health-card[data-health-open]:hover{ border-color: var(--amber-dim); }
  .health-card .hl{ font-size:11.5px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color: var(--text-faint); }
  .health-card .hb{ font-family:'Fraunces', serif; font-size:26px; font-weight:600; margin:6px 0 4px; color: var(--green); }
  .health-card.warn .hb{ color: var(--amber); } .health-card.bad .hb{ color: var(--rose); }
  .health-card .hs{ font-size:12px; color: var(--text-dim); line-height:1.45; }
  .dash-stats{ display:flex; gap:20px; margin-bottom:32px; }
  .dash-stat{
    background: var(--bg-raised); border:1px solid var(--border-soft); border-radius: var(--radius);
    padding: 18px 26px; text-align:center; flex:1;
  }
  .dash-stat.stat-rose{ border-color: var(--rose); }
  .dash-stat.stat-amber{ border-color: var(--amber); }
  .dash-stat.stat-green{ border-color: var(--green); }
  .dash-stat-number{ font-family:'Fraunces', serif; font-size:34px; font-weight:600; line-height:1; }
  .dash-stat-label{ font-size:12.5px; font-weight:700; margin-top:6px; text-transform:uppercase; letter-spacing:0.4px; }
  .dash-stat.stat-rose .dash-stat-label{ color: var(--rose); }
  .dash-stat.stat-amber .dash-stat-label{ color: var(--amber); }
  .dash-stat.stat-green .dash-stat-label{ color: var(--green); }
  .dash-columns{ display:flex; gap:28px; }
  .dash-column{ flex:1; min-width:0; }
  .dash-column-header{ font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; margin-bottom:12px; }
  .dash-list{ display:flex; flex-direction:column; gap:8px; }
  .dash-row{
    background: var(--bg-raised); border:1px solid var(--border-soft); border-radius: var(--radius);
    padding: 12px 14px; cursor:pointer; transition: border-color 0.12s ease, background 0.12s ease;
  }
  .dash-row:hover{ background: var(--surface); border-color: var(--amber-dim); }
  .dash-row.status-not_started{ border-color: var(--rose-dim); background: rgba(199,123,123,0.08); }
  .dash-row.status-not_started .dash-row-title{ color: var(--rose); }
  .dash-row.status-in_progress{ border-color: var(--amber-dim); background: rgba(232,163,61,0.08); }
  .dash-row.status-in_progress .dash-row-title{ color: var(--amber); }
  .dash-row.status-complete{ border-color: var(--green-dim); background: rgba(127,191,127,0.08); }
  .dash-row.status-complete .dash-row-title{ color: var(--green); }
  .dash-row.status-opted_out{ border-color: var(--green-dim); background: rgba(127,191,127,0.08); }
  .dash-row.status-opted_out .dash-row-title{ color: var(--green); }
  .dash-row-title{ font-size:14px; font-weight:600; color: var(--text); display:flex; align-items:center; gap:6px; }
  .dash-row-title svg{ width:14px; height:14px; flex-shrink:0; }
  .dash-row-sub{ font-size:12px; color: var(--text-faint); margin-top:2px; }
  .tie-list{ display:flex; flex-direction:column; gap:6px; }
  .tie-row{ display:grid; grid-template-columns: minmax(180px, 280px) 1fr 80px; gap:14px; align-items:center; padding:6px 10px; background: var(--bg-raised); border:1px solid var(--border-soft); border-radius:8px; cursor:pointer; }
  .tie-row:hover{ border-color: var(--amber-dim); }
  .tie-name{ font-size:13.5px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .tie-stage{ display:block; font-size:11.5px; font-weight:400; color: var(--text-faint); }
  .tie-bar{ height:8px; background: var(--surface); border-radius:4px; overflow:hidden; } .tie-bar span{ display:block; height:100%; background: var(--amber); border-radius:4px; }
  .tie-days{ font-size:13px; font-weight:700; color: var(--amber); text-align:right; }
  .stage-pills{ display:flex; flex-wrap:wrap; gap:8px; }
  .stage-pill{ display:flex; align-items:baseline; gap:8px; background: var(--surface); border:1px solid var(--border-soft); border-radius:10px; padding:8px 14px; font-family:inherit; color: var(--text-dim); cursor:pointer; }
  .stage-pill .stage-n{ font-family:'Fraunces', serif; font-size:24px; font-weight:600; line-height:1; color: var(--amber); } .stage-pill .stage-l{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; }
  .stage-pill.to-cut{ border-color: var(--amber-dim); margin-right:6px; }
  .stage-pill.empty .stage-n{ color: var(--text-faint); } .stage-pill:hover{ border-color: var(--amber-dim); } .stage-pill.active{ border-color: var(--amber); background: var(--amber-dim); color: var(--text); }
  .stage-list{ margin-top:12px; display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap:8px; }
  .manual-nb{ display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:10px 0; font-size:12.5px; color: var(--text-dim); }
  .manual-nb.set{ padding:8px 12px; border:1px solid var(--amber-dim); border-radius:8px; background: color-mix(in srgb, var(--amber) 8%, var(--bg-raised)); }
  .note-imported{ font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; color: var(--amber); border:1px solid var(--amber-dim); border-radius:4px; padding:1px 5px; }
  /* M-264: the Notes log box: always green, title on top, one line per date, admin buttons underneath */
  .manual-nb.set.notes-log{ display:flex; flex-direction:column; align-items:stretch; gap:6px; border-color: color-mix(in srgb, var(--green) 45%, transparent); background: color-mix(in srgb, var(--green) 10%, var(--bg-raised)); text-align:left; }
  .notes-log .mnb-badge{ color: var(--green); } .notes-log .mnb-text{ line-height:1.6; } .notes-log .mnb-by{ color: var(--text-faint); }
  .notes-log .mnb-actions{ display:flex; gap:8px; flex-wrap:wrap; }
  /* M-277: the Notes log as a lined-up table: dates stacked on the left (bold), what happened right-aligned */
  .mnb-table{ width:100%; border-collapse:collapse; font-size:12px; }
  .mnb-table td{ padding:4px 0; border-top:1px solid color-mix(in srgb, var(--green) 22%, transparent); vertical-align:top; }
  .mnb-table tr:first-child td{ border-top:none; }
  .mnb-table .mnb-date{ color: var(--text); font-weight:600; padding-right:12px; font-variant-numeric: tabular-nums; }
  .mnb-table .mnb-what{ text-align:right; color: var(--text-dim); white-space:nowrap; }
  .mnb-badge{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; color: var(--amber); }
  .mnb-text b{ color: var(--text); } .mnb-hint{ font-size:11.5px; color: var(--text-faint); }
  .mnb-btn{ background:none; border:1px solid var(--border-soft); color: var(--text-dim); border-radius:6px; padding:4px 10px; font-family:inherit; font-size:12px; font-weight:600; cursor:pointer; }
  .mnb-btn:hover{ border-color: var(--amber-dim); color: var(--amber); } .mnb-btn.primary{ border-color: var(--amber-dim); color: var(--amber); }
  .show-more-link{ display:block; margin:10px 0 0; background:none; border:none; padding:2px 0; color: var(--amber); font-family:inherit; font-size:12.5px; font-weight:600; cursor:pointer; }
  .show-more-link:hover{ text-decoration:underline; }
  .show-more-link.top{ margin:0 0 10px; }
  .cr-sub{ display:flex; gap:5px; min-width:0; } .cr-stage{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .cr-sep{ flex:none; } .cr-due{ flex:none; white-space:nowrap; }
  .dash-row-sub span.due-over{ color: var(--rose); font-weight:600; } .dash-row-sub span.due-soon{ color: var(--amber); font-weight:600; }
  .dash-row-compact .dash-row-title, .dash-row-compact .dash-row-sub{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .dash-stat.glance-toggle{ cursor:pointer; } .dash-stat.glance-toggle:hover{ border-color: var(--amber-dim); }
  .glance-chev{ display:inline-block; margin-left:6px; transition:transform .15s; font-size:15px; line-height:1; vertical-align:-1px; }

  .dash-row-stage{ color: var(--text-dim); }
  .dash-reviewer-pills{ display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
  .dash-reviewer-pills .reviewer-pill{ padding:5px 10px; cursor:default; min-width:0; width:auto; }
  .dash-reviewer-pills .pill-name{ font-size:11px; }

  .video-header h1{ font-family:'Fraunces', serif; font-weight: 600; font-size: 34px; margin: 0 0 4px; }
  .presence-avatars{ display:flex; align-items:center; gap:-6px; margin-top:8px; flex-shrink:0; }
  .presence-avatar{
    display:inline-flex; align-items:center; justify-content:center;
    width:30px; height:30px; border-radius:50%; background: var(--amber-dim); color: var(--amber);
    font-size:11px; font-weight:700; border:2px solid var(--bg); margin-left:-8px;
  }
  .presence-avatar:first-child{ margin-left:0; }
  .video-meta{ color: var(--text-faint); font-size: 12.5px; }
  .compare-subtitle{ font-family:'Fraunces', serif; font-size: 20px; font-weight: 500; color: var(--text-dim); margin-top: -4px; margin-bottom: 2px; }

  .player-wrap{
    background:#000; border-radius: var(--radius); overflow:hidden;
    border: 1px solid var(--border-soft); aspect-ratio: 16/9;
    display:flex; align-items:center; justify-content:center; position:relative;
  }
  .player-wrap video, .player-wrap iframe{ width:100%; height:100%; display:block; border:none; }
  .player-placeholder{ color: var(--text-faint); font-size: 13px; text-align:center; padding: 20px; }
  .player-placeholder a{ color: var(--amber); }
  .player-open-link{ display:flex; gap:8px; margin-top:-4px; }
  .video-file-meta{ display:flex; flex-direction:column; gap:2px; }
  .video-subhead{ display:flex; flex-direction:column; gap:12px; }
  .vl-block{ display:flex; flex-direction:column; }
  .vl-block .reviewer-row{ margin-top:0; }
  /* no heading, so the Viewer Log fits beside the version row and the note box can start level with the top of the video (alignLiveNotes sizes it) */
  @media (max-width: 1000px){ .vl-block{ min-height:0 !important; } .video-layout-right{ margin-top:0 !important; } }
  .video-filename{ font-size:15px; color: var(--text); font-weight:600; line-height:1.2; }
  .video-file-meta .video-meta{ line-height:1.2; }
  .upload-line strong{ color: var(--amber); }
  .player-loading-overlay{
    position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:10px; background:rgba(0,0,0,0.55); color:#fff; font-size:13px; z-index:4; pointer-events:none;
  }
  .spinner{
    width:32px; height:32px; border-radius:50%;
    border:3px solid rgba(255,255,255,0.25); border-top-color: var(--amber);
    animation: spin 0.8s linear infinite;
  }
  @keyframes spin{ to{ transform: rotate(360deg); } }
  .live-notes-label{ font-size:12px; font-weight:600; color: var(--amber); text-transform:uppercase; letter-spacing:0.6px; padding-bottom:5px; margin:14px 0 8px; border-bottom:1px solid var(--amber); }
  .action-section-label{ font-size:11px; color: var(--text-faint); text-transform:uppercase; letter-spacing:0.5px; margin-bottom:2px; }
  .composer-actions{ display:flex; gap:8px; margin-top:-6px; }
  .composer-actions .rm-imported{ margin-left:auto; }
  /* M-230: Export | Import as two left-aligned columns; Other Actions below a divider, copy link left and the bin right */
  .rv-actrow{ display:grid; grid-template-columns:1fr 1fr; gap:10px 18px; align-items:start; }
  .rv-actcol{ display:flex; flex-direction:column; gap:8px; min-width:0; } .rv-actcol .composer-actions{ margin-top:0; }
  .rv-otheracts{ display:flex; flex-direction:column; gap:8px; margin-top:12px; padding-bottom:12px; border-bottom:1px solid var(--border-soft); } .rv-otheracts .composer-actions{ margin-top:0; } .rv-otheracts .composer-actions .rm-imported{ margin-left:0; }   /* M-241: the line sits under Other Actions; the bin sits next to the link */
  /* M-230: the Review panel's section headings (Editor Progress, Export, Import, Other Actions, Transcript, Keyboard Shortcuts) are orange */
  .video-layout .action-section-label{ color: var(--amber); font-size:12px; font-weight:600; letter-spacing:0.6px; }   /* delete all imported notes sits apart, at the right end of Import Notes (M-187) */
  .action-section-label .act-arrow{ vertical-align: -1px; margin-left: 2px; }
  .import-block{ display:flex; flex-direction:column; gap:16px; }
  .kbd-shortcuts{ display:flex; flex-direction:column; gap:6px; margin-top:-6px; }
  .kbd-shortcut{ font-size:12px; color: var(--text-dim); display:flex; align-items:center; gap:6px; }
  .kbd-key{
    display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 6px;
    background: var(--surface); border:1px solid var(--border-soft); border-radius:4px;
    font-size:11px; font-family: 'JetBrains Mono', monospace; color: var(--text);
  }
  .action-btn{
    display:flex; align-items:center; gap:7px; background: var(--surface); border:1px solid var(--border-soft);
    color: var(--text-dim); padding:9px 16px; border-radius:100px; font-size:13px; cursor:pointer; font-family:inherit;
    text-decoration:none;
  }
  .action-btn.icon-only{ padding:9px; }
  .action-btn:hover{ border-color: var(--amber-dim); color: var(--text); background: var(--surface-hover); }
  .action-btn.icon-only:hover{ border-color: var(--amber-dim); color: var(--amber); }
  .action-btn.rm-imported:hover{ border-color: var(--alert); color: var(--alert); }
  /* tooltips: one floating box drawn by the script in index.html (below the control, left edges aligned) */
  #kTip{ position:fixed; z-index:100000; width:max-content; max-width:260px; white-space:pre-line; text-align:left; font-size:12px; line-height:1.4; font-weight:400; padding:6px 10px; border-radius:6px; background: var(--bg-raised); border:1px solid var(--amber); color: var(--text); pointer-events:none; box-shadow:0 4px 14px rgba(0,0,0,.25); }
  .action-btn svg{ width:15px; height:15px; flex-shrink:0; }

  .timecode-readout{
    display:flex; align-items:center; gap:10px; font-size:13px; color: var(--text-dim);
  }
  .timecode-readout .tc{ font-size:16px; color: var(--amber); letter-spacing:0.5px; }

  .tabs-row{ display:flex; gap:2px; border-bottom: 1px solid var(--border); padding-left:2px; }
  .tab{
    padding: 9px 18px; font-size: 13px; font-weight: 600; color: var(--text-faint);
    background: var(--bg-raised); border: 1px solid var(--border-soft); border-bottom: 1px solid var(--border);
    border-radius: 6px 6px 0 0; cursor:pointer; white-space:nowrap; position:relative;
    margin-bottom: -1px; transition: background 0.12s ease, color 0.12s ease;
  }
  .tab:hover{ background: var(--surface-hover); color: var(--text-dim); }
  .tab.active{
    background: var(--bg); color: var(--amber); border-color: var(--border);
    border-bottom-color: var(--bg); z-index: 2;
  }
  .tab.no-tabs{ background:none; border:none; color: var(--text-faint); cursor:default; margin-bottom:0; }

  .composer{ background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 14px; display:flex; flex-direction:column; gap: 10px; }
  #noteInput{ width:100%; box-sizing:border-box; }
  .composer-head{ display:flex; align-items:center; justify-content:space-between; font-size: 12.5px; color: var(--text-dim); }
  .composer textarea{
    resize: vertical; min-height: 66px; background: var(--bg-raised);
    border: 1px solid var(--border-soft); border-radius: 4px; color: var(--text);
    font-family: inherit; font-size: 13.5px; padding: 10px;
  }
  .composer textarea:focus{ outline:none; border-color: var(--amber-dim); }
  .range-btn{ width:34px; height:34px; flex-shrink:0; margin-right:8px; border-radius:8px; border:1px solid var(--border-soft); background: var(--surface); color: var(--text-dim); cursor:pointer; display:flex; align-items:center; justify-content:center; }
  .range-btn svg{ width:16px; height:16px; }
  .range-btn:hover{ border-color: var(--amber-dim); color: var(--amber); background: var(--surface-hover); }
  .range-btn.on{ border-color: var(--amber); color: var(--amber); }
  .out-row{ display:flex; align-items:center; gap:4px; font-size:12.5px; color: var(--text-dim); }
  /* the note box's top row: formatting on the left, the timecode pill(s) and the In/Out button on the right (M-185) */
  .composer-head .rich-toolbar{ margin:0 !important; }
  .composer-head{ flex-wrap:wrap; gap:8px; }
  .composer-tcs{ display:flex; align-items:center; gap:6px; margin-left:auto; }
  .tc-pill{ box-sizing:content-box; width:9.4ch; padding:4px 9px; border:1px solid var(--amber-dim); border-radius:100px; background:transparent; color: var(--amber); font-size:12.5px; text-align:center; outline:none; }
  .tc-pill:hover{ border-color: var(--amber); }
  .tc-pill:focus{ border-color: var(--amber); background: var(--surface-hover); }
  .composer-tcs .range-btn{ width:28px; height:28px; margin-right:0; }
  .out-dash{ color: var(--text-faint); }
  .composer-foot{ display:flex; align-items:center; justify-content:space-between; }
  .btn-save{ background: var(--amber); color: #1B1E24; border:none; font-weight:600; font-size:13px; padding: 8px 18px; border-radius: 100px; cursor:pointer; font-family:inherit; transition: background 0.2s ease; }
  .btn-save.btn-save-success{ background: var(--green); }
  .btn-save:hover{ background: var(--amber); filter: brightness(1.08); }
  .btn-save.btn-save-success:hover{ background: var(--green); }
  .btn-save:disabled{ opacity:0.4; cursor:not-allowed; }

  .headline-notes-box{ margin-bottom:12px; border:1px solid color-mix(in srgb, var(--amber) 40%, var(--border-soft)); border-radius:6px; background: color-mix(in srgb, var(--amber) 7%, var(--bg-raised)); overflow:hidden; }
  .headline-notes-head{ width:100%; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:10px 14px; background:none; border:none; cursor:pointer; text-align:left; font-family:inherit; }
  .headline-notes-title{ font-weight:700; font-size:13px; letter-spacing:.02em; color: var(--amber); text-transform:uppercase; }
  .headline-notes-body{ padding:0 14px 14px; display:flex; flex-direction:column; gap:10px; border-top:1px solid color-mix(in srgb, var(--amber) 25%, transparent); padding-top:10px; }
  .headline-notes-body .note{ border-left-color: var(--amber); }

  .notes-feed{ display:flex; flex-direction:column; gap:10px; }
  .note{ display:flex; gap:12px; padding: 12px 14px; background: var(--bg-raised); border: 1px solid var(--border-soft); border-left: 3px solid var(--amber-dim); border-radius: 4px; transition: background-color 0.4s ease; }
  .note.note-search-highlight{ background-color: rgba(242, 224, 92, 0.35); }
  .note-body{ flex:1; }
  /* M-258: admin select mode. A tick box on the left of each note; the bar above the feed (under the Notes Summary) with Select all, the count, Edit and Done */
  .note-sel{ flex:none; display:flex; align-items:flex-start; padding-top:2px; cursor:pointer; }
  .note-sel input{ width:16px; height:16px; margin:0; flex:none; accent-color: var(--amber); cursor:pointer; }
  .note-selbar{ display:flex; align-items:center; gap:12px; padding:8px 14px; margin-bottom:10px; background: var(--bg-raised); border:1px solid var(--border-soft); border-left:3px solid var(--amber); border-radius:4px; }
  .note-selbar .note-sel{ padding-top:0; }
  .note-selbar-count{ font-size:12.5px; color: var(--text-dim); }
  .note-selbar-btns{ margin-left:auto; display:flex; gap:8px; }
  .note-selbar-btns button{ padding:5px 14px; font-size:12.5px; }
  .note-selbar-btns button:disabled{ opacity:.45; cursor:default; }
  #selectNotesBtn.active{ border-color: var(--amber); color: var(--amber); }
  .note-top{ display:flex; align-items:center; gap:8px; margin-bottom:3px; flex-wrap:wrap; }
  .note-author{ font-weight:600; font-size: 13px; }
  .author-change{ cursor: pointer; border-radius: 3px; }
  .author-change:hover{ color: var(--amber); text-decoration: underline dotted; text-underline-offset: 3px; }
  .note-time{ font-size: 11px; color: var(--text-faint); }
  .tc-badge{
    font-size: 11.5px; color: var(--amber); border:1px solid var(--amber-dim);
    background: rgba(232,163,61,0.08); padding:1px 8px; border-radius:100px;
    cursor:pointer; font-family:'JetBrains Mono', monospace;
  }
  .tc-badge:hover{ background: rgba(232,163,61,0.18); }
  /* once a note has a status its timecode pill takes the status colour (owner, 2026-11-05) */
  .note.status-done .tc-badge{ color: var(--green); border-color: color-mix(in srgb, var(--green) 55%, transparent); background: color-mix(in srgb, var(--green) 10%, transparent); }
  .note.status-flag .tc-badge{ color: var(--rose); border-color: color-mix(in srgb, var(--rose) 55%, transparent); background: color-mix(in srgb, var(--rose) 10%, transparent); }
  .note.status-olmix .tc-badge{ color: var(--info); border-color: color-mix(in srgb, var(--info) 55%, transparent); background: color-mix(in srgb, var(--info) 10%, transparent); }
  .note.status-done .tc-badge:hover{ background: color-mix(in srgb, var(--green) 22%, transparent); }
  .note.status-flag .tc-badge:hover{ background: color-mix(in srgb, var(--rose) 22%, transparent); }
  .note.status-olmix .tc-badge:hover{ background: color-mix(in srgb, var(--info) 22%, transparent); }
  .note-text{ font-size: 13.5px; color: var(--text); white-space: pre-wrap; }
  .note-inline-actions{ display:inline-flex; align-items:center; gap:4px; }
  .note-inline-actions .note-del, .comment-actions .reply-del{ display:inline-flex; align-items:center; justify-content:center; line-height:1; padding:2px; }
  .comment-actions{ display:inline-flex; align-items:center; gap:4px; vertical-align:middle; margin-left:8px; }
  .reply-actions{ display:inline-flex; align-items:center; gap:4px; vertical-align:middle; margin-left:8px; } .reply-actions .reply-del{ display:inline-flex; align-items:center; justify-content:center; line-height:1; padding:2px; }
  .note-inline-actions .note-del{ align-self:center; }
  .note-del{ background:none; border:none; color: var(--text-faint); cursor:pointer; font-size:15px; align-self:flex-start; padding:2px; }
  .note-del:hover{ color: var(--amber); }
  /* note option icons: one clear orange hover (icon and a firmer orange wash), so it stays orange on the green, red and blue note backgrounds (owner, 2026-11-05) */
  .note .note-del:hover, .note .reply-del:hover, .note .note-action:hover{ background: color-mix(in srgb, var(--amber) 20%, transparent); border-radius:4px; }
  .note-action{ background:none; border:none; cursor:pointer; font-size:14px; align-self:flex-start; padding:2px 3px; color: var(--text-faint); font-family:inherit; line-height:1; }
  .note-action.tick:hover, .note-action.tick.active{ color: var(--green); }
  .note-action.query:hover, .note-action.query.active{ color: var(--amber); }
  .note-action.flag:hover, .note-action.flag.active{ color: var(--rose); }
  .note-selector-wrap{ position:relative; align-self:flex-start; }
  .status-selector-btn{ display:inline-flex; align-items:center; justify-content:center; opacity:0.8; }
  .status-selector-btn.status-none{ opacity:0.45; }
  .status-selector-btn.status-done{ color: var(--green); }
  .status-selector-btn.status-query{ color: var(--amber); }
  .status-selector-btn.status-flag{ color: var(--rose); }
  .status-selector-btn.status-olmix{ color: var(--info); }
  .tag-selector-btn.tag-editorial, .tag-selector-btn.tag-compliance{ color: var(--amber); }
  .note-selector-menu{
    display:none; position:absolute; top:calc(100% + 4px); right:0; z-index:20; min-width:150px;
    background: var(--bg-raised); border:1px solid var(--border-soft); border-radius:8px; padding:4px;
    box-shadow:0 8px 24px rgba(0,0,0,0.35); flex-direction:column; gap:2px;
  }
  .note-selector-menu.open{ display:flex; }
  .note-selector-option{
    display:flex; align-items:center; gap:6px; background:none; border:none; text-align:left;
    padding:7px 10px; border-radius:5px; font-size:12.5px; color: var(--text-dim); cursor:pointer; font-family:inherit;
  }
  .note-selector-option:hover{ background: var(--surface); color: var(--text); }
  .note-selector-option svg{ flex-shrink:0; }
  .note.status-done{ border-left-color: var(--green); background: var(--green-dim); }
  .note.status-done .note-text{ text-decoration: line-through; color: var(--text-dim); }
  .note.status-query{ border-left-color: var(--amber); background: rgba(232,163,61,0.08); }
  .note.status-query .note-text{ font-style: italic; color: var(--amber); }
  .note.status-flag{ border-left-color: var(--rose); background: rgba(199,123,123,0.1); }
  .note.status-flag .note-text{ color: var(--rose); font-weight: 700; }
  .note.status-olmix{ border-left-color: var(--info); background: color-mix(in srgb, var(--info) 9%, transparent); }
  .note.status-olmix .note-text{ text-decoration: line-through; color: var(--text-dim); }
  /* M-275: sign-off. The orange Sign off button at the foot of the status menu (dots above it), and a signed-off note's wider left bar with its status icon in white */
  .note-selector-sep{ text-align:center; color: var(--text-faint); font-size:11px; letter-spacing:2px; line-height:1; padding:2px 0 1px; user-select:none; }
  .note-selector-signoff{ margin:2px 2px 2px; padding:7px 10px; border-radius:6px; border:1px solid var(--amber); background: var(--amber); color:#1B1E24; font-family:inherit; font-size:12.5px; font-weight:700; cursor:pointer; text-align:center; }
  .note-selector-signoff.undo{ background:transparent; color: var(--amber); }
  .note.signed-off{ position:relative; border-left-width:20px; }
  .note-signbar{ position:absolute; left:-20px; top:0; bottom:0; width:20px; display:flex; align-items:center; justify-content:center; color:#fff; pointer-events:auto; }
  .note-signbar svg{ display:block; }
  .editor-log-select.status-signed .custom-select-trigger{ border-color: var(--green); color: #fff; background: var(--green); }
  .ea-chip.ea-signed_off{ color:#fff; background: var(--green); border-color: var(--green); }
  .nc-pill.done.signed{ background: var(--green); color:#fff; }
  .note-reply{ margin-top:8px; padding-left:12px; border-left:2px solid var(--border-soft); font-size:12.5px; color: var(--text-dim); }
  .note-reply strong{ color: var(--text); }
  .reply-del{ background:none; border:none; color: var(--text-faint); cursor:pointer; font-size:13px; padding:0 2px; }
  .reply-del:hover{ color: var(--amber); }
  .note-action.tag-selector-btn:hover, .note-action.status-selector-btn.status-none:hover{ color: var(--amber); opacity:1; }
  .comments-toggle{ background:none; border:none; padding:0; margin-top:6px; font-family:inherit; font-size:11.5px; color: var(--text-faint); cursor:pointer; display:inline-flex; align-items:center; gap:4px; opacity:0.85; }
  .comments-toggle:hover{ color: var(--amber); }
  .link-btn.note-add-expl:hover{ color: var(--amber); }
  .note-comments{ margin-top:8px; padding:8px 10px; border:1px solid var(--amber-dim); border-radius:8px; background: rgba(232,163,61,0.06); display:flex; flex-direction:column; gap:6px; }
  .note-comment{ font-size:12.5px; color: var(--text); }
  .note-comment strong{ color: var(--amber); }
  .note-comment-time{ color: var(--text-faint); font-size:11px; margin-left:6px; }
  .mention{ color: var(--amber); font-weight:600; }
  .mention-menu{
    position:absolute; left:0; right:0; bottom: calc(100% + 4px); z-index:15;
    background: var(--bg-raised); border:1px solid var(--border-soft); border-radius:8px;
    max-height:180px; overflow-y:auto; box-shadow:0 8px 24px rgba(0,0,0,0.35);
  }
  .mention-option{ padding:8px 12px; font-size:13px; cursor:pointer; color: var(--text-dim); }
  .mention-option:hover{ background: var(--surface); color: var(--text); }
  .note-reply-box{ margin-top:8px; padding-left:12px; border-left:2px solid var(--border-soft); display:flex; flex-direction:column; gap:6px; }
  .version-bar{ display:flex; align-items:center; gap:8px; }
  /* the VO Script button: on its own at the far right of the version row, in orange */
  /* the VO Script button is styled exactly like Save note (owner, 2026-11-01) and sits at the top right, level with the episode title */
  .vo-script-btn{ display:inline-flex; align-items:center; gap:6px; background: var(--amber); color:#1B1E24; border:none; border-radius:100px; padding:8px 18px; font-family:inherit; font-size:13px; font-weight:600; cursor:pointer; transition: background 0.2s ease; }
  .vo-script-btn:hover{ background: var(--amber); filter:brightness(1.08); }
  .video-head-right{ display:flex; align-items:center; gap:12px; flex-shrink:0; margin-top:4px; } .video-head-right .presence-avatars{ margin-top:0; }
  .version-select{ width:150px; }
  /* a small round + right of the file name adds a version (owner, 2026-11-05); it replaced the "+ Add Version" button */
  .video-filename-row{ display:flex; align-items:center; gap:8px; min-width:0; }
  .video-filename-row .video-filename{ min-width:0; overflow-wrap:anywhere; }
  .add-version-plus{ flex-shrink:0; width:22px; height:22px; padding:0; border-radius:50%; border:1px solid var(--border); background:transparent; color: var(--amber); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
  .add-version-plus svg{ width:12px; height:12px; }
  .note-edit-box{ display:flex; flex-direction:column; gap:6px; margin-top:10px; }
  .composer .rich-toolbar{ margin-top:8px; }
  .edit-tc-row{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
  .edit-tc-label{ font-size:11.5px; color: var(--text-faint); }
  .edit-tc-input{ width:96px; flex:none; }
  .edit-tc-lock{ font-size:12px; padding:5px 10px; white-space:nowrap; }
  .edit-toggle-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:6px 0; }
  .edit-toggle-label{ display:flex; align-items:center; gap:6px; font-size:12.5px; color: var(--text-dim); cursor:pointer; }
  .edit-toggle-box{ margin-top:8px; }
  @media (max-width: 520px){ .edit-toggle-row{ grid-template-columns:1fr; } }
  .note-reply-box textarea, .note-edit-box textarea{
    background: var(--bg-raised); border:1px solid var(--border-soft); border-radius:4px;
    color: var(--text); font-family:inherit; font-size:13px; padding:8px; min-height:56px; resize:vertical;
  }
  .note-reply-box textarea:focus, .note-edit-box textarea:focus{ outline:none; border-color: var(--amber-dim); }
  .rich-input{
    background: var(--bg-raised); border:1px solid var(--border-soft); border-radius:4px;
    color: var(--text); font-family:inherit; font-size:13px; padding:8px; min-height:56px;
    overflow-y:auto; outline:none;
  }
  .rich-input:focus{ border-color: var(--amber-dim); }
  .rich-input:empty::before{ content: attr(data-placeholder); color: var(--text-faint); }
  .rich-input-disabled{ opacity:0.5; pointer-events:none; }
  .note-label-input{ flex:1; min-width:0; background: var(--surface); border:1px solid var(--border-soft); color: var(--text); border-radius:4px; padding:6px 8px; font-size:12px; font-family:inherit; margin-right:8px; }
  .note-label-input:focus{ outline:none; border-color: var(--amber-dim); }
  .tc-badge.has-label{ font-family:inherit; }
  .tc-badge.unplaced{ border-style:dashed; cursor:default; }
  .note-no-tc{ font-size:11px; color:var(--text-faint); margin-right:6px; font-style:italic; }
  .rich-toolbar{ display:flex; align-items:center; gap:4px; margin-bottom:6px; }
  .rt-btn{
    background: var(--surface); border:1px solid var(--border-soft); color: var(--text-dim);
    width:26px; height:26px; border-radius:4px; cursor:pointer; font-size:12px; font-family:inherit;
    display:flex; align-items:center; justify-content:center;
  }
  .feed-tools{ margin-left:auto; display:inline-flex; align-items:center; gap:6px; }
  .feed-tool-btn{ background: var(--surface); border:1px solid var(--border-soft); color: var(--text-dim); width:28px; height:28px; border-radius:4px; cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0; }
  .feed-tool-btn:hover{ color: var(--text); border-color: var(--amber-dim); }
  .feed-tool-btn.active{ color: var(--amber); border-color: var(--amber); background: rgba(232,163,61,0.10); }
  .rt-divider{ width:1px; height:16px; background: var(--border); margin:0 4px; }
  .rt-btn:hover{ color: var(--text); border-color: var(--amber-dim); }
  .rt-swatch-picker{ position:relative; }
  .rt-color-btn{
    background: var(--surface); border:1px solid var(--border-soft); color: var(--text-dim);
    width:26px; height:26px; border-radius:4px; cursor:pointer; font-size:12px; font-weight:600;
    display:flex; align-items:center; justify-content:center; overflow:hidden; font-family:inherit;
  }
  .rt-color-btn:hover{ border-color: var(--amber-dim); }
  .rt-swatch-popover{
    display:none; position:absolute; top:calc(100% + 4px); left:0; z-index:20; gap:6px; padding:8px;
    background: var(--bg-raised); border:1px solid var(--border-soft); border-radius:8px;
    box-shadow:0 8px 24px rgba(0,0,0,0.35);
  }
  .rt-swatch-popover.open{ display:flex; }
  .rt-swatch{ width:20px; height:20px; border-radius:50%; border:1px solid var(--border-soft); cursor:pointer; padding:0; }
  .rt-swatch:hover{ border-color: var(--text); }
  .highlight-swatch-row{ display:flex; gap:8px; }
  .highlight-swatch-btn{
    width:28px; height:28px; border-radius:50%; border:2px solid var(--border-soft); cursor:pointer;
    background: var(--surface); color: var(--text-faint); font-size:12px;
    display:flex; align-items:center; justify-content:center;
  }
  .highlight-swatch-btn.active{ border-color: var(--text); box-shadow: 0 0 0 2px var(--bg); outline:2px solid var(--text); }
  .rt-highlight-swatch{
    width:13px; height:13px; border-radius:2px; background: linear-gradient(135deg, var(--amber) 50%, transparent 50%);
    border:1px solid var(--border-soft);
  }
  .note-reply-actions{ display:flex; justify-content:flex-end; gap:6px; }
  .feed-empty{ color: var(--text-faint); font-size: 13px; padding: 20px 0; text-align:center; }

  .modal-backdrop{ position:fixed; inset:0; background: rgba(10,11,13,0.65); display:flex; align-items:center; justify-content:center; z-index:300; padding:20px; }
  .modal{ background: var(--bg-raised); border:1px solid var(--border); border-radius: 8px; padding: 22px; width: 400px; display:flex; flex-direction:column; gap:12px; }
  .cmdk-backdrop{
    position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:200;
    display:flex; align-items:flex-start; justify-content:center; padding-top:12vh;
  }
  .cmdk-box{
    background: var(--bg-raised); border:1px solid var(--border); border-radius:10px;
    width:560px; max-width:90vw; max-height:60vh; display:flex; flex-direction:column; overflow:hidden;
    box-shadow:0 20px 60px rgba(0,0,0,0.5);
  }
  .cmdk-box input{
    background:none; border:none; border-bottom:1px solid var(--border-soft); color: var(--text);
    padding:16px 18px; font-size:15px; font-family:inherit; outline:none;
  }
  .cmdk-results{ overflow-y:auto; padding:6px; }
  .cmdk-section-label{ font-size:11px; text-transform:uppercase; letter-spacing:0.4px; color: var(--text-faint); padding:8px 10px 4px; }
  .cmdk-item{ display:flex; flex-direction:column; gap:2px; padding:9px 10px; border-radius:6px; cursor:pointer; }
  .cmdk-item:hover, .cmdk-item.active{ background: var(--surface); }
  .cmdk-item-title{ font-size:13.5px; color: var(--text); }
  .cmdk-item-sub{ font-size:12px; color: var(--text-faint); }
  .cmdk-empty{ padding:20px; text-align:center; color: var(--text-faint); font-size:13px; }
  @keyframes confetti-fall{
    to{ transform: translateY(100vh) rotate(360deg); opacity: 0; }
  }
  .sidebar-search-btn{
    display:flex; align-items:center; gap:8px; width:100%; text-align:left;
    background: var(--surface); border:1px solid var(--border-soft); color: var(--text-faint);
    padding:8px 10px; border-radius: var(--radius); font-size:12.5px; cursor:pointer; font-family:inherit;
  }
  .sidebar-search-btn:hover{ border-color: var(--border); color: var(--text-dim); }
  .sidebar-search-kbd{ margin-left:auto; font-size:11px; border:1px solid var(--border-soft); border-radius:4px; padding:1px 5px; }
  .modal.wide{ width: 560px; max-height: 82vh; overflow-y:auto; }
  .modal h2{ font-family:'Fraunces', serif; font-size:18px; margin:0; }
  .modal-title{ display:inline-flex; align-items:center; gap:9px; }
  .modal-ic{ display:inline-flex; color: var(--amber); }
  .btn-ic{ display:inline-flex; vertical-align:-2px; margin-right:6px; }
  .modal label{ font-size:12px; color: var(--text-dim); }
  .modal input, .modal select, .modal textarea,
  .field input, .field select, .field textarea,
  .add-inline input, .add-inline select{
    background: var(--surface); border:1px solid var(--border-soft); color: var(--text);
    padding:8px 10px; border-radius:4px; font-size:13.5px; font-family: inherit; width:100%; box-sizing:border-box;
  }
  .modal select, .field select, .add-inline select{ padding-right: 36px; }
  .modal textarea, .field textarea{ resize:vertical; box-sizing:border-box; }
  .modal input:focus, .modal textarea:focus,
  .field input:focus, .field select:focus, .field textarea:focus,
  .add-inline input:focus, .add-inline select:focus{ outline:none; border-color: var(--amber-dim); }
  .modal input.theme-checkbox, .field input.theme-checkbox, .add-inline input.theme-checkbox{ width:18px; height:18px; padding:0; flex-shrink:0; }
  .modal-actions{ display:flex; justify-content:flex-end; gap:8px; margin-top:6px; }
  .modal.steps-modal{ padding:0; gap:0; overflow:hidden; }
  .steps-viewport{ overflow:hidden; transition: height .3s ease; }
  .steps-track{ display:flex; align-items:flex-start; transition: transform .38s cubic-bezier(.4,0,.2,1); }
  .steps-track .step{ flex:0 0 100%; box-sizing:border-box; padding:22px; display:flex; flex-direction:column; gap:12px; }
  .steps-dots{ display:flex; justify-content:center; gap:7px; padding:0 0 16px; pointer-events:none; }
  .steps-dots i{ width:7px; height:7px; border-radius:50%; background: var(--border); transition: background .25s; }
  .steps-dots i.on{ background: var(--amber); }
  .btn-ghost{ background:none; border:1px solid var(--border-soft); color: var(--text-dim); padding:7px 14px; border-radius:100px; font-size:12.5px; cursor:pointer; font-family:inherit; }
  .btn-ghost:hover{ color: var(--text); }
  .btn-danger-hover:hover{ background: color-mix(in srgb, var(--rose) 16%, transparent); border-color: var(--rose); color: var(--rose) !important; }
  .field{ display:flex; flex-direction:column; gap:5px; }

  .admin-tabs{ display:flex; gap:4px; border-bottom:1px solid var(--border-soft); margin-bottom: 6px; }
  .admin-tab{ padding:7px 14px; font-size:13px; color: var(--text-faint); cursor:pointer; border-bottom:2px solid transparent; }
  .admin-tab.active{ color: var(--amber); border-bottom-color: var(--amber); }

  .admin-list{ display:flex; flex-direction:column; gap:6px; max-height: 220px; overflow-y:auto; }
  #tabAdminList, #tabAdminListOn{ max-height:none; overflow:visible; min-height:40px; }
  .cut-sec{ margin:0 0 22px; } .cut-sec-h{ margin:0 0 8px; font-size:15px; font-weight:600; color: var(--text); }   /* M-219: Offline and Online sections */   /* M-218: Settings → Cuts lists every phase, no inner scroll */
  .admin-row{ display:flex; align-items:center; justify-content:space-between; background: var(--surface); border:1px solid var(--border-soft); border-radius:4px; padding:8px 10px; gap:8px; }
  .stale-cut-row{ cursor:pointer; }
  .stale-cut-row:hover{ border-color: var(--rose-dim); }
  .outstanding-table-wrap{ overflow-x:auto; max-height:340px; overflow-y:auto; border:1px solid var(--border-soft); border-radius: var(--radius); }
  .outstanding-table{ border-collapse:collapse; width:100%; }
  .outstanding-table th{
    text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:0.4px; color: var(--text-faint);
    padding:9px 12px; border-bottom:1px solid var(--border-soft); background: var(--bg-raised);
    white-space:nowrap; position:sticky; top:0;
  }
  .outstanding-table th[data-sort]{ cursor:pointer; user-select:none; }
  .outstanding-table th[data-sort]:hover{ color: var(--text); }
  .outstanding-table td{ padding:9px 12px; font-size:13px; border-bottom:1px solid var(--border-soft); }
  .outstanding-table tr:last-child td{ border-bottom:none; }
  .outstanding-table-row{ cursor:pointer; }
  .outstanding-table-row:hover td{ background: var(--surface); }
  .outstanding-row-stale td{ background: rgba(199,123,123,0.12); }
  .outstanding-row-stale:hover td{ background: rgba(199,123,123,0.22); }
  .tagged-note-row{
    padding:10px 12px; border-bottom:1px solid var(--border-soft); cursor:pointer;
  }
  .tagged-note-row:hover{ background: var(--surface); }
  .tagged-note-meta{ font-size:11px; color: var(--text-faint); margin-bottom:3px; }
  .tagged-note-text{ font-size:13.5px; color: var(--text); }
  .report-bug-btn{
    position:fixed; bottom:22px; right:22px; z-index:150;
    width:48px; height:48px; border-radius:50%; background: var(--amber); color:#1B1E24;
    border:none; cursor:pointer; display:flex; align-items:center; justify-content:center;
    box-shadow:0 4px 14px rgba(0,0,0,0.35); transition: transform 0.15s ease;
  }
  .report-bug-btn:hover{ transform: scale(1.08); }
  .running-total-row{ display:flex; gap:12px; overflow-x:auto; padding-bottom:10px; }
  .running-total-pill{
    flex-shrink:0; min-width:130px; background: var(--bg-raised); border:1px solid var(--border-soft);
    border-radius:14px; padding:16px 20px; text-align:center;
  }
  .running-total-days{ font-family:'Fraunces', serif; font-size:28px; font-weight:600; color: var(--amber); line-height:1.1; }
  .running-total-label{ font-size:12px; color: var(--text-dim); margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:150px; }
  .chart-type-toggle{ display:flex; gap:6px; }
  .chart-type-btn{
    background: var(--surface); border:1px solid var(--border-soft); color: var(--text-dim);
    padding:4px 12px; border-radius:100px; font-size:12px; cursor:pointer; font-family:inherit;
  }
  .chart-type-btn:hover{ border-color: var(--amber-dim); color: var(--text); }
  .chart-type-btn.active{ background: var(--amber-dim); border-color: var(--amber); color: var(--text); }
  .admin-row-compact{ justify-content:flex-start; }
  .user-row-name{
    background:none; border:none; color: var(--text); font-size:13.5px; font-weight:500; cursor:pointer;
    padding:0; text-align:left; font-family:inherit; flex-shrink:0;
  }
  .user-row-name:hover{ color: var(--amber); text-decoration:underline; }
  .user-row-pill{ flex-shrink:0; }
  .org-filter-row{ display:flex; gap:8px; }
  /* orange subheadings inside a Settings page (Users: Add new user, Current users, Organisations), the same look as the Scheduling settings subheads */
  /* M-278: Add / Edit user: the Privileges ticks side by side under their own subhead */
  .priv-head{ margin-top:16px !important; padding-top:12px; border-top:1px solid var(--border-soft); }
  /* M-281: the Privileges list under User type */
  /* M-282: one column, even spacing; a green tick or a red cross, the text grey when they can't */
  .role-privs{ list-style:none; margin:4px 0 6px; padding:0; display:flex; flex-direction:column; gap:5px; font-size:12.5px; }
  .role-privs li{ display:flex; gap:8px; align-items:baseline; }
  .role-privs li.on{ color: var(--text); } .role-privs li.off{ color: var(--text-faint); }
  .role-privs .rp-mark{ width:12px; flex-shrink:0; font-weight:700; text-align:center; }
  .role-privs li.on .rp-mark{ color: var(--green); } .role-privs li.off .rp-mark{ color: var(--alert); }
  /* M-280: Add / Edit user, two fields to a line (one on a phone) */
  .user-form-row{ display:grid; grid-template-columns:1fr 1fr; gap:10px 14px; margin-top:10px; }
  .user-form-row > .field{ margin:0; min-width:0; }
  .user-form-row input, .user-form-row select{ width:100%; box-sizing:border-box; }
  @media (max-width: 560px){ .user-form-row{ grid-template-columns:1fr; } }
  /* M-279: Link to cuts in an organisation's pop-up */
  .org-link-all{ display:flex; align-items:center; gap:8px; margin:4px 0 8px; font-weight:600; }
  .org-link-list{ display:grid; grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)); gap:6px 16px; margin-bottom:8px; }
  .org-link-cut{ display:flex; align-items:center; gap:8px; font-size:13px; }
  .priv-row{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 22px; }
  .priv-row > .field{ margin:0 !important; width:auto; }
  .priv-row .hint{ margin:0 !important; flex-basis:100%; }
  .admin-subhead{ font-size:11.5px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color: var(--amber); margin:6px 0 6px; }
  .org-filter-pill{
    background: var(--surface); border:1px solid var(--border-soft); color: var(--text-dim);
    padding:5px 12px; border-radius:100px; font-size:12px; cursor:pointer; font-family:inherit;
  }
  .org-filter-pill:hover{ border-color: var(--amber-dim); color: var(--text); }
  /* the dashboard's reviewer dropdowns read like the pills beside them: same size and colour */
  .dashboard-reviewer-filter .custom-select-trigger, .dashboard-reviewer-filter .custom-select-trigger span{ font-size:12px; color: var(--text-dim); }
  .org-filter-pill.active{ background: var(--amber-dim); border-color: var(--amber); color: var(--text); }
  .admin-row[draggable="true"]{ cursor: grab; }
  .admin-row.dragging{ opacity: 0.45; }
  .drag-handle{ color: var(--text-faint); margin-right:8px; cursor:grab; }
  .admin-row .info{ display:flex; flex-direction:column; gap:2px; }
  /* Settings → Cuts: a table with headings (Phase, Reviewer, Include tab, Teams alert), edit and delete on the right */
  .cut-grid{ display:grid; grid-template-columns: 16px 22px minmax(170px,1.3fr) 170px 130px minmax(210px,1fr) minmax(190px,1fr) 90px 90px 64px;   /* M-232: wider so every name, Start and End reads in full */   /* M-218: Reviewer and Include tab wide enough to read every option; M-220: Start and End */ align-items:center; gap:10px; }
  .admin-row.cut-grid{ justify-content:initial; }
  .cut-grid-head{ white-space:nowrap; padding:0 11px 6px; font-size:11px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color: var(--text-faint); }
  .cut-grid-head span:nth-child(8), .cut-grid-head span:nth-child(9), .cut-grid-tick{ text-align:center; }
  .cut-grid-track{ display:flex; justify-content:center; color: var(--text-faint); } .cut-grid-track .sc-check{ gap:0; }   /* M-236: Editor Time column */
  .cut-grid-ph{ display:inline-flex; align-items:center; gap:8px; color: var(--text-faint); } .cut-grid-ph .sc-phsq{ margin-right:0; } .cut-grid-ph .sc-check{ gap:0; }   /* M-235: stopwatch + colour of the cut's phase */ .cut-grid-end{ font-size:12.5px; color: var(--text-dim); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .cut-grid-tick{ display:flex; justify-content:center; margin:0; }
  .cut-grid-select{ font-size:12px; padding:4px 8px; width:100%; background:var(--surface); border:1px solid var(--border-soft); color:var(--text); border-radius:4px; font-family:inherit; }
  .cut-grid-actions{ display:flex; justify-content:flex-end; gap:4px; }
  .cut-grid-actions .icon-btn{ width:28px; height:28px; display:inline-flex; align-items:center; justify-content:center; padding:0; }
  .cut-grid .info{ min-width:0; }
  .cut-grid .primary{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .admin-row .primary{ font-size:13px; font-weight:500; }
  .admin-row .secondary{ font-size:11px; color: var(--text-faint); }
  .admin-row .org-line{ font-size:11.5px; color: var(--text-dim); margin-top:1px; }
  .admin-row .pill-row{ display:flex; gap:5px; margin-top:5px; flex-wrap:wrap; }
  .tag-chip{ display:inline-block; font-size:10.5px; color: var(--text-dim); border:1px solid var(--border-soft); padding:1px 7px; border-radius:100px; margin-right:4px; }
  .tag-picker{ display:flex; flex-wrap:wrap; gap:6px; }
  .reviewer-group{ margin-top:8px; }
  .reviewer-group-label{ font-size:11px; color: var(--text-faint); text-transform:uppercase; letter-spacing:0.4px; }
  .reviewer-group-label-row{ display:flex; align-items:center; gap:7px; margin-bottom:5px; }
  /* M-276: roll-up sections per organisation in the reviewer picker */
  .rv-org-head{ background:none; border:none; padding:2px 0; cursor:pointer; font-family:inherit; color: var(--text-faint); width:100%; text-align:left; }
  .rv-org-head:hover .reviewer-group-label, .rv-org-head:hover{ color: var(--amber); }
  .rv-org .rv-chev{ transition: transform .15s; flex-shrink:0; }
  .rv-org.open .rv-chev{ transform: rotate(90deg); }
  .rv-org:not(.open) > .tag-picker{ display:none; }
  .rv-org-count{ margin-left:auto; font-size:11px; color: var(--amber); }
  .select-all-btn{
    background: var(--surface); border:1px solid var(--border-soft); color: var(--text-faint);
    font-size:11px; width:20px; height:20px; border-radius:4px; cursor:pointer; padding:0;
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
  }
  .select-all-btn:hover{ border-color: var(--amber-dim); color: var(--amber); }
  .tag-pill{ background: var(--surface); border:1px solid var(--border-soft); color: var(--text-dim); font-size:12.5px; padding:6px 14px; border-radius:100px; cursor:pointer; font-family:inherit; }
  .tag-pill:hover{ border-color: var(--amber-dim); color: var(--text); }
  .tag-pill.selected{ background: var(--amber-dim); border-color: var(--amber); color: #F5D9A6; }
  html[data-theme="light"] .tag-pill.selected{ color: #4A3008; }   /* dark text on the light amber fill, so a selected name stays readable in light mode */
  html[data-theme="light"] .tag-pill.selected:hover{ color: #4A3008; }
  .icon-btn{ background:none; border:none; color: var(--text-faint); cursor:pointer; font-size:16px; padding:2px; display:flex; align-items:center; justify-content:center; }
  .bugs-mono, .bugs-mono *{ font-family: ui-monospace, 'SF Mono', Menlo, Consolas, 'Courier New', monospace !important; }
  .rep-actions{ display:flex; gap:8px; flex-shrink:0; margin-left:12px; }
  .rep-btn{ width:36px; height:36px; border-radius:8px; border:1.5px solid var(--border-soft); background: var(--surface); font-size:20px; font-weight:700; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; font-family:inherit; }
  .rep-btn.tick{ color: var(--green); border-color: var(--green); }
  .rep-btn.tick:hover{ background: var(--green); color:#fff; }
  .rep-btn.reopen{ color: var(--amber); border-color: var(--amber-dim); }
  .rep-btn.reopen:hover{ background: var(--amber); color:#111; }
  .rep-btn.del{ color: var(--alert); border-color: var(--alert); }
  .rep-btn.del:hover{ background: var(--alert); color:#fff; }
  .icon-btn svg{ width:16px; height:16px; flex-shrink:0; }
  .icon-btn:hover{ color: var(--rose); }
  .icon-btn.ib-edit:hover{ color: var(--amber); } .icon-btn.ib-archive:hover{ color: var(--info); }   /* M-278: Edit orange, Archive blue; Delete stays red */

  .add-inline{ display:flex; gap:6px; margin-top:8px; }
  .add-inline input{ flex:1; }
  .hint{ font-size:11px; color: var(--text-faint); }
  label.bk-pick{ display:inline-flex; align-items:center; cursor:pointer; margin:0; } .bk-fname{ margin-left:10px; font-size:12px; color: var(--text-dim); }   /* Settings → Data: the backup file picker as a site button (M-210) */
  @keyframes spin-cog{ from{ transform:rotate(0deg); } to{ transform:rotate(360deg); } }
  .spin-cog{ display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; vertical-align:-5px; margin-right:6px; animation: spin-cog 2.2s linear infinite; transform-origin:center; }
  .spin-cog svg{ display:block; }

  .toast{ position:fixed; bottom: 22px; left:50%; transform:translateX(-50%); background: var(--surface); border:1px solid var(--border); color: var(--text); padding: 9px 16px; border-radius:100px; font-size:12.5px; z-index:400; opacity:0; pointer-events:none; transition: opacity 0.2s ease; }
  .toast.show{ opacity:1; }

  @media (max-width: 640px){
    .app{ flex-direction:column; }
    .sidebar{ width:100%; border-right:none; border-bottom:1px solid var(--border-soft); position:static; height:auto; }
    .sidebar-foot{ position:static; }
    .main{ padding: 20px; max-width:100%; }
    .sidebar-collapse-toggle{ display:none; }
  }

  /* Universal hover/focus fill — every button/pill/tab across the app gets a subtle amber background wash to go
     with its existing amber border/text highlight, not just the outline on its own. Written with :where() (zero
     specificity) so any component that already sets its own hover background keeps that instead. */
  :where(
    button, .action-btn, .add-version-plus, .admin-tab, .assign-chip, .btn-add, .btn-admin, .btn-ghost, .btn-save,
    .chart-type-btn, .chooser-btn, .comments-toggle, .custom-select-trigger, .datepick-trigger, .feed-tool-btn,
    .highlight-swatch-btn, .icon-btn, .link-btn, .mini-transport-btn, .nc-pill, .org-filter-pill, .report-bug-btn,
    .reviewer-pill.clickable, .rt-btn, .rt-color-btn, .select-all-btn, .sidebar-collapse-toggle, .sidebar-search-btn,
    .star-btn, .status-selector-btn, .tab, .tab-alerts-btn, .tab-editor-only-toggle, .tag-chip, .tag-pill,
    .tag-selector-btn, .user-row-pill
  ):hover,
  :where(
    button, .action-btn, .add-version-plus, .admin-tab, .assign-chip, .btn-add, .btn-admin, .btn-ghost, .btn-save,
    .chart-type-btn, .chooser-btn, .comments-toggle, .custom-select-trigger, .datepick-trigger, .feed-tool-btn,
    .highlight-swatch-btn, .icon-btn, .link-btn, .mini-transport-btn, .nc-pill, .org-filter-pill, .report-bug-btn,
    .reviewer-pill.clickable, .rt-btn, .rt-color-btn, .select-all-btn, .sidebar-collapse-toggle, .sidebar-search-btn,
    .star-btn, .status-selector-btn, .tab, .tab-alerts-btn, .tab-editor-only-toggle, .tag-chip, .tag-pill,
    .tag-selector-btn, .user-row-pill
  ):focus-visible{
    background: rgba(232,163,61,0.08);
  }

  /* editor actions on the dashboard's Ready to Action rows, and the notes bottleneck flags */
  .dash-row-actions{ display:flex; align-items:center; gap:8px; margin-top:8px; flex-wrap:wrap; }
  .ea-chip{ font-size:11px; font-weight:600; padding:2px 8px; border-radius:100px; border:1px solid var(--border); color: var(--text-dim); }
  .ea-chip.ea-in_progress{ color: var(--amber); border-color: var(--amber); } .ea-chip.ea-complete{ color: var(--green); border-color: var(--green); }
  .ea-btn{ font-family:inherit; font-size:12px; font-weight:600; padding:4px 10px; border-radius:6px; border:1px solid var(--border); background:none; color: var(--text); cursor:pointer; }
  .ea-btn:not(.primary):hover{ border-color: var(--amber); color: var(--amber); background: rgba(232,163,61,0.08); } .ea-btn:hover{ border-color: var(--amber); color: var(--amber); } .ea-btn.primary{ background: var(--amber); border-color: var(--amber); color:#1B1E24; } .ea-btn.primary:hover{ color:#1B1E24; filter:brightness(1.08); }
  .dash-flags{ border:1px solid var(--alert, var(--rose)); border-radius:8px; padding:8px 12px; margin:0 0 12px; font-size:13px; color: var(--alert, var(--rose)); display:flex; flex-direction:column; gap:3px; }


  /* Help: the how-to guides shown inside the site */
  .help-guide{ max-width:860px; margin:0 auto; padding:8px 4px 60px; }
  .guide-jump{ display:flex; align-items:center; gap:12px; margin:0 0 26px; }
  .guide-jump label{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color: var(--text-faint); }
  .guide-body .guide-sub{ font-family:'Fraunces', serif; font-size:21px; line-height:1.3; color: var(--text-dim); margin:-6px 0 22px; }
  .guide-body .guide-card p{ font-size:14px; }
  .guide-cards{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:6px 0 22px; }
  .guide-card{ padding:16px 18px; background: var(--bg-raised); border:1px solid var(--border-soft); border-top:3px solid var(--amber); border-radius:10px; }
  .guide-card-scheduling{ border-top-color: var(--info); }
  .guide-card-head{ display:flex; align-items:center; gap:9px; font-family:'Fraunces', serif; font-size:21px; font-weight:600; color: var(--amber); margin:0 0 8px; }
  .guide-card-scheduling .guide-card-head{ color: var(--info); }
  .guide-card-ic{ display:inline-flex; } .guide-card-ic svg{ width:20px; height:20px; }
  .guide-card p{ margin:0; font-size:14px; line-height:1.6; }
  @media (max-width:640px){ .guide-cards{ grid-template-columns:1fr; } }
  .guide-body h1{ font-family:'Fraunces', serif; font-size:34px; font-weight:600; color: var(--text); margin:0 0 14px; }
  .guide-body h2{ font-family:'Fraunces', serif; font-size:24px; font-weight:600; color: var(--amber); margin:34px 0 10px; scroll-margin-top:16px; }
  .guide-body h3{ font-size:16px; font-weight:700; color: var(--text); margin:22px 0 6px; }
  .guide-body p, .guide-body li{ font-size:14.5px; line-height:1.65; color: var(--text); }
  .guide-body p{ margin:0 0 12px; } .guide-body ul, .guide-body ol{ margin:0 0 14px; padding-left:22px; } .guide-body li{ margin:4px 0; }
  .guide-body code{ font-family:'JetBrains Mono', monospace; font-size:12.5px; background: var(--surface); padding:1px 6px; border-radius:5px; }
  .guide-body a{ color: var(--amber); }
  .guide-body hr{ border:none; border-top:1px solid var(--border-soft); margin:26px 0; }
  .guide-table-wrap{ overflow-x:auto; margin:0 0 16px; }
  .guide-body table{ border-collapse:collapse; width:100%; font-size:13.5px; }
  .guide-body th{ text-align:left; font-size:11.5px; text-transform:uppercase; letter-spacing:.04em; color: var(--text-faint); padding:8px 10px; border-bottom:1px solid var(--border); }
  .guide-body td{ padding:9px 10px; border-bottom:1px solid var(--border-soft); vertical-align:top; line-height:1.55; }

  /* ---------- Latest Features: banner + page ---------- */
  .features-banner{ display:flex; align-items:stretch; background: linear-gradient(90deg, var(--amber), #f2b24f); color:#1a1a1a; animation: fbSlide .35s ease-out; position:relative; z-index:70; }
  .features-banner[hidden]{ display:none; }
  .features-banner .fb-main{ flex:1; display:flex; align-items:center; justify-content:center; gap:10px; background:none; border:none; color:inherit; font:inherit; font-size:14px; padding:10px 16px; cursor:pointer; flex-wrap:wrap; }
  .features-banner .fb-main:hover{ background: rgba(255,255,255,0.18); }
  .features-banner .fb-sub{ opacity:.85; }
  .features-banner .fb-cta{ font-weight:700; text-decoration:underline; }
  .features-banner .fb-x{ background:none; border:none; color:inherit; font-size:22px; line-height:1; padding:0 16px; cursor:pointer; }
  .features-banner .fb-x:hover{ background: rgba(255,255,255,0.25); }
  @keyframes fbSlide{ from{ transform: translateY(-100%); } to{ transform:none; } }
  .features-page h1{ margin-bottom:4px; }
  .feat-entry{ margin-top:28px; padding-top:18px; border-top:1px solid var(--border-soft); }
  .feat-date{ font-size:12px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; color: var(--amber); }
  .feat-entry h2{ margin:4px 0 6px; }
  .feat-intro{ color: var(--text-dim); margin:0 0 14px; }
  .feat-list{ display:flex; flex-direction:column; gap:10px; }
  .feat-item{ display:flex; gap:14px; align-items:flex-start; background: var(--surface); border:1px solid var(--border-soft); border-radius:10px; padding:12px 14px; }
  .feat-emoji{ font-size:24px; line-height:1.2; flex-shrink:0; }
  .feat-head{ font-weight:700; font-size:15px; color: var(--text); text-decoration:none; }
  a.feat-head:hover{ color: var(--amber); }
  .feat-arrow{ color: var(--amber); }
  .feat-text{ color: var(--text-dim); font-size:13.5px; line-height:1.5; margin-top:3px; }
  .feat-ver{ background: var(--amber); color:#1a1a1a; border-radius:100px; padding:2px 9px; letter-spacing:.3px; }

/* Transcript panel (Review, right column) and the Integrations settings page */
.tx-box{ display:flex; flex-direction:column; gap:8px; margin-bottom:10px; }
.tx-note{ font-size:12.5px; color: var(--text-dim); line-height:1.5; }
.tx-err{ font-size:12px; color: var(--alert); line-height:1.4; }
.tx-btn{ align-self:flex-start; font-size:12.5px; }
.tx-head{ display:flex; align-items:center; gap:8px; font-size:12px; color: var(--text-dim); } .tx-head .tx-search{ flex:1; min-width:0; width:auto; }
.tx-icon{ background:none; border:none; color: var(--text-dim); cursor:pointer; padding:4px; border-radius:6px; display:inline-flex; }
.tx-icon:hover{ background: rgba(232,163,61,0.12); color: var(--amber); }
.tx-search{ width:100%; box-sizing:border-box; font-size:12.5px; padding:7px 10px; border-radius:8px; border:1px solid var(--border-soft); background: var(--surface); color: var(--text); font-family:inherit; }
.tx-list{ position:relative; max-height:340px; overflow-y:auto; border:1px solid var(--border-soft); border-radius:8px; background: var(--bg-raised); }
.tx-row{ display:flex; align-items:flex-start; gap:8px; padding:6px 8px; border-left:3px solid transparent; font-size:12.5px; line-height:1.45; }
.tx-row + .tx-row{ border-top:1px solid var(--border-soft); }
.tx-row.cur{ border-left-color: var(--amber); background: rgba(232,163,61,0.10); }
.tx-t{ flex:none; background:none; border:none; color: var(--amber); cursor:pointer; padding:1px 0; font-size:11.5px; font-family:'Courier New', Courier, monospace; font-weight:700; }
.tx-t:hover{ text-decoration:underline; }
.tx-text{ flex:1; min-width:0; color: var(--text); font-family:'Courier New', Courier, monospace; font-size:12.5px; line-height:1.5; }
.tx-text .tx-fixed{ border-bottom:1px dotted var(--amber); }
.tx-text mark{ background: rgba(232,163,61,0.35); color: inherit; border-radius:2px; }
.tx-add{ flex:none; width:20px; height:20px; border-radius:50%; border:1px solid var(--border); background:none; color: var(--text-dim); cursor:pointer; line-height:1; font-size:14px; opacity:0; transition: opacity .12s; }
.tx-row:hover .tx-add, .tx-add:focus-visible{ opacity:1; }
.tx-add:hover{ border-color: var(--amber); color: var(--amber); }
.int-status{ font-size:13px; padding:8px 12px; border-radius:8px; background: var(--surface); border:1px solid var(--border-soft); color: var(--text-dim); }
.int-status.on{ border-color: var(--green-dim); color: var(--text); }
.int-head{ display:flex; align-items:center; gap:10px; margin:0 0 4px; } .int-logo{ flex:none; } .int-title{ margin:0; font-size:20px; font-weight:700; color: var(--text); }   /* Settings → Integrations (M-211) */
.int-sub{ font-size:12.5px; color: var(--text-dim); line-height:1.5; } .int-label{ margin-top:20px; } .int-none{ font-size:12.5px; color: var(--text-faint); }
.int-link{ display:flex; align-items:center; gap:8px; padding:8px 10px; background: var(--surface); border:1px solid var(--border-soft); border-radius:6px; } .int-link-info{ flex:1; min-width:0; font-size:13px; color: var(--text); } .int-x:hover{ color: var(--alert); }
.int-howto{ margin-top:18px; } .int-next{ margin-top:30px; padding-top:20px; border-top:1px solid var(--border-soft); }
.db-choose{ display:inline-flex; align-self:flex-start; width:auto !important; align-items:center; gap:7px; margin-top:8px; font-size:12.5px; padding:6px 12px; }   /* Choose from Dropbox under the video link box (M-253) */
 .int-howto summary{ cursor:pointer; font-size:13px; font-weight:600; color: var(--text); } .int-howto-list{ margin:8px 0 0 18px; line-height:1.7; font-size:12.5px; color: var(--text); }

/* Daily time-log reminder: rose banner (same shape as the New Features one), highlight on the menu entry */
.features-banner.tl-banner{ background: linear-gradient(90deg, var(--rose), #d9a0a0); }
.btn-admin.needs-attention{ position:relative; }
.btn-admin.needs-attention.pulse{ animation: tlPulse 1.1s ease-in-out 4; }
@keyframes tlPulse{ 0%,100%{ box-shadow: 0 0 0 0 rgba(199,123,123,0); background: transparent; } 50%{ box-shadow: 0 0 0 4px rgba(199,123,123,.45); background: rgba(199,123,123,.16); } }
@media (prefers-reduced-motion: reduce){ .btn-admin.needs-attention.pulse{ animation:none; } }

.feat-soon{ margin-top:18px; padding-top:14px; border-top:1px dashed var(--border); }
.feat-soon h3{ margin:0 0 8px; font-size:13px; letter-spacing:.8px; text-transform:uppercase; color: var(--text-faint); }
.feat-soon .feat-item{ opacity:.9; }

.tx-edit{ flex:none; width:20px; height:20px; border-radius:50%; border:none; background:none; color: var(--text-faint); cursor:pointer; line-height:1; font-size:12px; opacity:0; transition: opacity .12s; }
.tx-row:hover .tx-edit, .tx-edit:focus-visible{ opacity:1; } .tx-edit:hover{ color: var(--amber); }
.dict-add{ display:flex; align-items:center; gap:8px; margin-bottom:12px; } .dict-add input{ flex:1; min-width:0; }
.dict-arrow{ color: var(--text-faint); flex:none; }
.dict-list{ max-height:42vh; overflow-y:auto; border-top:1px solid var(--border-soft); }
.dict-row{ display:flex; align-items:center; gap:8px; padding:7px 2px; border-bottom:1px solid var(--border-soft); font-size:13px; }
.dict-from{ color: var(--text-dim); text-decoration:line-through; text-decoration-color: var(--rose); } .dict-to{ color: var(--text); font-weight:600; }
.dict-by{ margin-left:auto; color: var(--text-faint); font-size:11.5px; }
.dict-del{ background:none; border:none; color: var(--text-faint); cursor:pointer; padding:2px 6px; border-radius:6px; } .dict-del:hover{ color: var(--alert); }

/* Vimeo cuts: Kohyo's own slim seek bar under the video (Vimeo's own controls, logo and buttons are switched off) */
.player-click{ position:absolute; inset:0; z-index:1; cursor:pointer; }
.scrub-row{ display:flex; align-items:center; gap:10px; padding:6px 2px 2px; }
.scrub-t{ font-family:'Courier New', Courier, monospace; font-size:12px; color: var(--text-dim); min-width:44px; text-align:center; }
.scrub-btn{ flex:none; width:30px; height:26px; background:none; border:none; color: var(--text); cursor:pointer; border-radius:6px; display:inline-flex; align-items:center; justify-content:center; padding:0; }
.scrub-btn:hover{ background: rgba(232,163,61,0.14); color: var(--amber); } .scrub-btn svg{ width:16px; height:16px; }
#scrub{ flex:1; min-width:0; height:4px; -webkit-appearance:none; appearance:none; background: var(--border); border-radius:2px; outline:none; cursor:pointer; }
#scrub::-webkit-slider-thumb{ -webkit-appearance:none; width:13px; height:13px; border-radius:50%; background: var(--amber); border:none; }
#scrub::-moz-range-thumb{ width:13px; height:13px; border-radius:50%; background: var(--amber); border:none; }

/* Copy notes as a table pop-up */
.tbl-chips{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.tbl-chip{ background: var(--surface); border:1px solid var(--border); color: var(--text-dim); border-radius:999px; padding:5px 12px; font-family:inherit; font-size:12.5px; cursor:pointer; }
.tbl-chip span{ opacity:.7; margin-left:3px; }
.tbl-chip.on{ border-color: var(--amber); background: rgba(232,163,61,0.14); color: var(--text); }
.tbl-preview{ flex:none; background: var(--surface); color: var(--text); border:1px solid var(--border-soft); border-radius:6px; padding:8px; max-height:42vh; overflow:auto; user-select:text; font-size:12px; line-height:1.45; }
.tbl-preview table{ width:100%; border-collapse:collapse; }
.tbl-preview td{ border:1px solid var(--border); padding:4px 8px; vertical-align:top; color: var(--text); }
.tbl-preview td:first-child{ font-weight:700; white-space:nowrap; width:1%; }
.tbl-sub{ font-size:11px; font-weight:700; letter-spacing:.7px; text-transform:uppercase; color: var(--text-faint); margin:6px 0 4px; }
.tbl-heads{ max-height:36vh; min-height:96px; } .hl-entry + .hl-entry{ margin-top:8px; padding-top:8px; border-top:1px solid var(--border-soft); } .hl-entry b{ display:block; margin-bottom:2px; }

.tbl-chips, .tbl-sub{ flex:none; }

/* the play button leads the row of controls under the video and carries the accent */
.action-btn.play-accent{ background: var(--amber); border-color: var(--amber); color:#1B1E24; }
.action-btn.play-accent:hover{ background:#f2b24f; border-color:#f2b24f; color:#1B1E24; }
.scrub-btn#scrubPlay{ color: var(--amber); }

/* the # picker in the note box lists earlier notes */
.hash-option{ display:flex; gap:8px; align-items:baseline; }
.hash-option .mo-tc{ flex:none; color: var(--amber); font-size:11.5px; font-weight:700; }
.hash-option .mo-txt{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mention-option.active{ background: rgba(232,163,61,0.18); }
#mentionMenu:has(.hash-option){ max-height:240px; overflow-y:auto; min-width:300px; }

/* a timecode in a note that points at another note */
.note-ref{ color: var(--amber); font-family:'Courier New', Courier, monospace; font-weight:700; text-decoration:underline dotted; cursor:pointer; }
.note-ref:hover{ text-decoration:underline; }
.note.note-flash{ animation: noteFlash 1.9s ease-out; }
@keyframes noteFlash{ 0%{ box-shadow: 0 0 0 3px var(--amber); background: rgba(232,163,61,0.22); } 100%{ box-shadow: 0 0 0 0 transparent; } }

/* Review page: scrolling down, the video and its controls stop 10px from the top and stay in view while the notes scroll past underneath; scrolling back up returns them to their place */
.player-stick{ position:sticky; top:10px; z-index:15; display:flex; flex-direction:column; gap:16px; background: var(--bg); padding-bottom:10px; }
/* notes scroll behind the pinned video; this strip hides the sliver that showed through the gap above it */
.player-stick::before{ content:''; position:absolute; left:0; right:0; bottom:100%; height:12px; background: var(--bg); pointer-events:none; }
@media (max-width: 700px){ .player-stick{ position:static; } }

/* Show / Hide on the password box */
.pw-wrap{ position:relative; display:block; width:100%; } .pw-wrap input{ width:100%; padding-right:68px; }
.pw-toggle{ position:absolute; right:8px; top:50%; transform:translateY(-50%); background:none; border:none; color: var(--amber); font:inherit; font-size:12.5px; font-weight:600; padding:6px 8px; cursor:pointer; border-radius:6px; }
.pw-toggle:hover{ background: rgba(232,163,61,0.12); }

/* Editor dashboard: quick-launch buttons under the heading */
.quick-launch{ display:flex; flex-wrap:wrap; gap:10px; margin:2px 0 26px; }
.ql-btn{ display:inline-flex; align-items:center; gap:10px; padding:11px 20px; border-radius:100px; background: var(--surface); border:1px solid var(--border); color: var(--text); font:inherit; font-size:14px; font-weight:600; cursor:pointer; }
.ql-btn svg{ width:19px; height:19px; color: var(--amber); flex:none; }
.ql-btn:hover{ border-color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, var(--surface)); }

/* Review page: the right-hand column sticks with the video */
.video-layout-right{ position:sticky; top:10px; z-index:14; }
@media (max-width: 1000px){ .video-layout-right{ position:static !important; } }
.menu-badge-in{ margin-left:auto; min-width:20px; height:20px; padding:0 6px; border-radius:10px; background: var(--amber); color:#1B1E24; font-size:11.5px; font-weight:800; display:inline-flex; align-items:center; justify-content:center; flex:none; }
.btn-admin .menu-badge-in + .sf-chev{ margin-left:8px; }
#settingsBugBadge{ display:contents; } #settingsBugBadge:not(:empty) + .fm-chev, #scheduleNav .btn-admin .menu-badge-in + .fm-chev{ margin-left:8px; }
.edit-tc-lbl{ flex:none; min-width:28px; font-size:12px; font-weight:700; color: var(--amber); text-transform:uppercase; letter-spacing:.4px; }
/* What you are doing today (editor dashboard, from the Weekly Edit Planner) */
.todayplan{ margin:6px 0 4px; }
.tp-row{ display:flex; flex-wrap:wrap; gap:10px; }
.tp-item{ background: color-mix(in srgb, var(--c) 22%, transparent); border-left:4px solid var(--c); border-radius:8px; padding:10px 14px; min-width:180px; cursor:pointer; }
.tp-item b{ display:block; font-size:16px; font-weight:600; } .tp-item span{ display:block; font-size:13px; color: var(--text-dim); }
.tp-days{ display:grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap:10px; margin-top:14px; }
.tp-day{ border:1px solid var(--border-soft); border-radius:10px; padding:8px; } .tp-day .tp-item{ min-width:0; padding:6px 9px; margin-bottom:4px; } .tp-day .tp-item b{ font-size:13px; } .tp-day .tp-item span{ font-size:11.5px; }
.tp-dl{ font-size:12px; font-weight:600; color: var(--text-dim); margin-bottom:5px; }
/* Live preview of other reviewers' notes, between the note box and the Viewer Log */
.live-notes{ display:flex; flex-direction:column; border:1px solid var(--border-soft); border-radius:12px; background: var(--surface); padding:10px 12px; min-height:120px; overflow:hidden; }
.ln-stage{ position:relative; flex:1; min-height:60px; overflow:hidden; }
.ln-card{ position:absolute; inset:0; overflow:hidden; transition: transform .38s ease, opacity .38s ease; transform:translateX(0); font-size:13px; line-height:1.45; }
.ln-card.ln-in{ transform:translateX(105%); opacity:0; } .ln-card.ln-out{ transform:translateX(-105%); opacity:0; } .ln-card.ln-on{ transform:translateX(0); opacity:1; }
.ln-tc{ font-size:12px; color: var(--amber); margin-bottom:4px; } .ln-item{ margin-bottom:6px; } .ln-item b{ font-weight:600; color: var(--text); } .ln-empty{ color: var(--text-dim); font-size:12.5px; }
.live-notes{ position:relative; }
.ln-expand{ position:absolute; top:6px; right:6px; z-index:3; width:24px; height:24px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--border-soft); border-radius:6px; background: var(--bg); color: var(--amber); cursor:pointer; padding:0; } .ln-expand.ln-flip svg{ transform:rotate(180deg); }
.live-notes.ln-open .ln-stage{ flex:none; overflow:visible; } .live-notes.ln-open .ln-card.ln-on{ position:relative; inset:auto; }
.ln-name{ font-weight:600; color: var(--amber); line-height:1.2; } .ln-tc{ font-size:12px; color: var(--text); margin:1px 0 4px; line-height:1.2; }
.ln-cm{ margin:4px 0 0 10px; padding-left:8px; border-left:2px solid var(--border-soft); font-size:12.5px; color: var(--text-dim); } .ln-cm b{ font-weight:600; color: var(--text); }
.snap-row{ display:flex; justify-content:flex-end; margin:-6px 0 -8px; }
.snap-btn{ display:inline-flex; align-items:center; gap:6px; border:1px solid var(--border-soft); border-radius:100px; background: var(--surface); color: var(--amber); font:inherit; font-size:12px; font-weight:600; padding:4px 11px; cursor:pointer; } .snap-btn:hover{ border-color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, var(--surface)); }
.video-layout-right{ scrollbar-width:thin; }
@media (max-width: 1000px){ .video-layout-right{ max-height:none !important; overflow:visible !important; } }
.imp-foot{ margin-top:6px; padding:10px 12px; border-top:1px dashed var(--border); } .imp-head{ font-size:13px; font-weight:600; color: var(--text); } .imp-sub{ font-size:12px; color: var(--text-dim); margin-top:2px; }
#vlExtras{ display:flex; flex-direction:column; gap:8px; margin-top:0; }
.live-notes{ box-sizing:border-box; } .ln-tcrow{ margin:2px 0 5px; line-height:1; } .ln-tcrow .tc-badge{ cursor:default; display:inline-block; }
.ln-name{ color: var(--text) !important; } .ln-tcrow{ margin:4px 0 6px !important; }
/* M-268: Live Notes laid out like the notes under the video: timecode first with the author beside it (13px), then the note at 13.5px, so the note gets the room */
.ln-head{ display:flex; align-items:center; gap:8px; margin:2px 0 3px; flex-wrap:wrap; line-height:1.2; } .ln-head .tc-badge{ cursor:default; } .ln-head .ln-name{ font-size:13px; font-weight:600; }
.ln-text{ font-size:13.5px; } .ln-item + .ln-item{ margin-top:8px; }
/* M-268: the cut's upload date on its own line under the file name, then "Uploaded N days ago" */
.video-file-meta .upload-date{ color: var(--text-dim); }
/* Review page header: the editor line is larger, orange, and sits closer to the episode name */
.video-header h1{ margin-bottom:0 !important; }
.video-header .video-editor{ font-size:15.5px; font-weight:500; color: var(--amber); margin-top:-1px; }
#scheduleNav .btn-admin.flyout-on{ background: var(--surface); color: var(--amber); }
#scheduleNav [data-sched-view="reports"].current, #scheduleNav [data-sched-view="edit"].current{ pointer-events:auto !important; cursor:pointer; }
#scheduleNav .btn-admin .fm-chev{ margin-left:auto; opacity:.5; }
#scheduleNav .btn-admin.flyout-on .fm-chev{ opacity:1; }


/* Locked for Online tab */
.lk-page{ display:flex; flex-direction:column; gap:14px; margin-top:14px; max-width:1200px; }
.lk-card{ background: var(--bg-raised); border:1px solid var(--border-soft); border-radius:12px; padding:14px 16px; }
.lk-grid{ display:grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap:14px; align-items:start; } @media (max-width: 900px){ .lk-grid{ grid-template-columns:1fr; } }
.lk-h{ font-size:15px; font-weight:700; margin:0 0 10px; } .lk-dim{ color: var(--text-dim); font-size:13px; }
.lk-chip{ display:inline-block; background: var(--green); color:#1B1E24; font-weight:700; font-size:12px; border-radius:100px; padding:3px 10px; margin-right:6px; }
.lk-player{ position:relative; aspect-ratio:16/9; background:#000; border-radius:8px; overflow:hidden; }
/* M-289: Online/Mix Timeline rows follow the Table; a date that has passed is green and struck through (like a locked VO line), an overdue deadline red, no date dim */
.lk-row.lk-done .lk-nm, .lk-row.lk-done b{ text-decoration: line-through; color: var(--green); } .lk-row.lk-late b{ color: var(--alert); } .lk-row.lk-none .lk-nm, .lk-row.lk-none b{ color: var(--text-dim); font-weight:400; }
.lk-row{ display:flex; align-items:center; gap:10px; padding:7px 0; border-bottom:1px solid var(--border-soft); font-size:14px; } .lk-row:last-child{ border-bottom:none; } .lk-row b{ margin-left:auto; font-variant-numeric: tabular-nums; }
.lk-dot{ width:9px; height:9px; border-radius:50%; flex:none; } .lk-dot.ok, .lk-dot.done{ background: var(--green); } .lk-dot.exp{ background: var(--amber); } .lk-dot.late{ background: transparent; box-shadow: inset 0 0 0 2px var(--alert); } .lk-dot.none{ background: transparent; box-shadow: inset 0 0 0 1px var(--text-dim); }

.video-item .vd.vd-locked{ color: var(--green); font-weight:700; }
.video-item .vd.vd-olm.late strong{ color: var(--alert); }   /* M-291: the next Online/Mix step is overdue */
.video-item .vd.vd-olm.done strong{ color: var(--green); }

.lk-chip{ font-size:15px !important; padding:6px 16px !important; display:inline-flex !important; align-items:center; gap:7px; } .lk-chip svg{ stroke:#1B1E24; }
.lk-locked{ display:flex; align-items:center; }
.lk-headrow{ display:flex; align-items:center; justify-content:space-between; gap:10px; } .lk-headrow .lk-h{ margin:0 0 10px; } .lk-icons{ display:inline-flex; gap:6px; }
.lk-ico{ display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border:1px solid var(--border-soft); border-radius:8px; background: var(--bg); color: var(--text-dim); cursor:pointer; padding:0; } .lk-ico:hover{ background: var(--amber); border-color: var(--amber); color:#1B1E24; }
.lk-grey{ color: var(--text-faint); font-size:13.5px; }
.note-reply.olm-fbnote, .olm-fbnote{ color: var(--amber); } .olm-fbnote strong{ color: var(--amber); }

/* ---------- One rule for every button on the site (owner, 2026-11-01) ----------
   Two kinds only:
   1. Already orange (filled): on hover it just goes a little brighter, like Save note.
   2. Everything else (plain, or only an orange outline): on hover it turns orange, filled, with dark text, like the VO Live link button.
   Not covered on purpose: form fields (dropdowns, date boxes, checkboxes), tabs and on/off toggles, text links, Table cells and list rows,
   status ticks, red danger buttons and the purple Crystal Ball / Sprinkle Magic buttons. Written with !important so it wins over the older
   per-button hovers in this file, schedule.js and vo.js. */
:is(.btn-save:not(.btn-save-success), .note-selector-signoff:not(.undo), .vo-script-btn, .sc-btn.primary, .ea-btn.primary, .vo-btn.primary, .vo-btn.export, .vo-btn.on, .action-btn.play-accent, .wd-pdf):not(:disabled):hover{
  filter: brightness(1.08) !important;
}
:is(.btn-ghost, .note-selector-signoff.undo, .back-circle, .btn-add, .ep-fbtn, .add-version-plus, .action-btn:not(.play-accent):not(.rm-imported):not(.pe-complete), .sc-btn:not(.primary):not(.danger), .vo-btn:not(.primary):not(.export):not(.on):not(.lock), .ea-btn:not(.primary), .mnb-btn, .rvp-mi:not(.rvp-danger), .feed-tool-btn, .select-all-btn, .chooser-btn, .range-btn, .snap-btn, .tx-add, .vo-cue, .sidebar-foot .btn-admin, .btn-admin.tb-menu):not(:disabled):not(.active):not(.on):not(.selected):hover{
  background: var(--amber) !important; border-color: var(--amber) !important; color: #1B1E24 !important; filter: none !important;
}
:is(.btn-ghost, .note-selector-signoff.undo, .back-circle, .btn-add, .ep-fbtn, .add-version-plus, .action-btn:not(.play-accent):not(.rm-imported):not(.pe-complete), .sc-btn:not(.primary):not(.danger), .vo-btn:not(.primary):not(.export):not(.on):not(.lock), .ea-btn:not(.primary), .mnb-btn, .rvp-mi:not(.rvp-danger), .feed-tool-btn, .select-all-btn, .chooser-btn, .range-btn, .snap-btn, .tx-add, .vo-cue, .sidebar-foot .btn-admin, .btn-admin.tb-menu):not(:disabled):not(.active):not(.on):not(.selected):hover svg{
  color: #1B1E24 !important;
}

/* One back button for the whole site (owner, 2026-11-02, M-193): a round button with a left arrow, just before the page title. */
.back-circle{ float:left; width:34px; height:34px; border-radius:50%; margin:5px 12px 0 0; padding:0; display:inline-flex; align-items:center; justify-content:center; background: var(--surface); border:1px solid var(--border); color: var(--text); cursor:pointer; flex:none; }
.back-circle svg{ width:18px; height:18px; display:block; }
.sc-head .back-circle{ margin-top:10px; }
/* M-233: a Back button always sits on the same line as its page heading, vertically centred on it */
.sc-head > div:has(> .back-circle){ display:flex; flex-wrap:wrap; align-items:center; column-gap:12px; }
.sc-head > div:has(> .back-circle) > .back-circle, .video-header:has(> .back-circle) > .back-circle{ float:none; margin:0; }
.video-header:has(> .back-circle){ display:flex; flex-wrap:wrap; align-items:center; column-gap:12px; }
.video-header:has(> .back-circle) > :not(.back-circle):not(h1){ flex-basis:100%; padding-left:46px; }


/* Review tabs in their Table phase colour (M-202): a coloured top edge and a light tint; the open tab is stronger. */
.tab.tab-phase{ border-top:3px solid var(--phc); background: color-mix(in srgb, var(--phc) 8%, var(--bg-raised)); color: var(--text-dim); }
.tab.tab-phase:hover{ background: color-mix(in srgb, var(--phc) 20%, var(--bg-raised)); color: var(--text); }
.tab.tab-phase.active{ background: color-mix(in srgb, var(--phc) 32%, var(--bg)); color: var(--text); font-weight:700; border-bottom-color: transparent; }
.tab:has(.tab-done){ display:flex; align-items:center; }   /* the tick sits on the middle of the tab name */
.tab .tab-done{ display:inline-flex; align-items:center; justify-content:center; width:16px; height:16px; border-radius:50%; background: var(--green); margin-right:6px; flex:none; }   /* notes complete on this cut (M-254): green on every tab */
/* M-260: a pop-up's Save while it works (spinner) and once saved (green, tick, Done), from modalBusy() */
.btn-save.is-busy, .btn-save.is-done{ opacity:1 !important; display:inline-flex; align-items:center; justify-content:center; gap:6px; cursor:default; }
.btn-save.is-busy{ filter:none !important; }
.btn-save.is-done{ background: var(--green) !important; filter:none !important; transition: background 0.25s ease; }
.btn-spin{ width:14px; height:14px; border-radius:50%; border:2px solid currentColor; border-top-color: transparent; animation: spin 0.7s linear infinite; }
.btn-done{ display:inline-flex; align-items:center; gap:6px; animation: btn-done-in 0.3s ease-out; }
@keyframes btn-done-in{ from{ opacity:0; transform: scale(0.6); } to{ opacity:1; transform: scale(1); } }

/* M-294: the Online/Mix tab (laid out like Locked for Online) and its time-locked side-by-side compare */
.om-headr{ display:inline-flex; align-items:center; gap:8px; } .om-headr .lk-h{ margin:0; } .om-cmpbtn{ height:34px; }
.om-cmp{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; } @media (max-width: 760px){ .om-cmp{ grid-template-columns: 1fr; } }
.om-cmp .lk-headrow{ min-height:34px; margin-bottom:6px; } .om-lbl{ font-size:13.5px; }
.om-transport{ display:flex; justify-content:center; align-items:center; gap:8px; flex-wrap:wrap; margin-top:12px; }
.om-aud svg{ width:16px; height:16px; } .lk-ico.om-aud.on{ background: var(--amber); border-color: var(--amber); color:#1B1E24; }
.om-note{ text-align:center; margin-top:6px; }

/* M-304: the site's areas. An icon rail on the far left (Kohyo., then Review, Edit, Planning, Online) that slides out over the
   sidebar with the names on hover; a top bar (where you are, who is signed in, theme, the ☰ menu at the top right); and the
   sidebar as the open area's context menu only (Review keeps its lists; the others list their pages, like the Planning menu). */
.app{ --rail-w:56px; --tb-h:56px; }
.app.no-rail{ --rail-w:0px; }
.app:not(.signed-in){ --rail-w:0px; --tb-h:0px; }
.app-col{ flex:1; min-width:0; display:flex; flex-direction:column; }
.app-row{ flex:1; display:flex; min-width:0; }
.app .sidebar{ top: var(--tb-h); height: calc(100vh - var(--tb-h)); }
.sidebar-collapse-toggle{ left: calc(var(--rail-w) + 280px); }
.app.sidebar-collapsed .sidebar-collapse-toggle{ left: var(--rail-w); }
.rail{ position:sticky; top:0; height:100vh; width: var(--rail-w); flex:none; align-self:flex-start; z-index:70; }
.app.no-rail .rail, .app:not(.signed-in) .rail{ display:none; }
.rail-panel{ position:absolute; top:0; left:0; bottom:0; width:56px; overflow:hidden; display:flex; flex-direction:column; gap:4px; padding:8px; box-sizing:border-box; background: var(--bg-raised); border-right:1px solid var(--border-soft); transition: width .16s ease, box-shadow .16s ease; }
.rail:not(.rail-hold):hover .rail-panel, .rail:has(:focus-visible) .rail-panel{ width:196px; box-shadow: 10px 0 28px rgba(0,0,0,0.30); transition-delay:1s; }
.rail-logo{ position:relative; height:40px; margin:0 0 10px; padding:0 0 0 8px; border:0; background:none; color: var(--text); font-family:'Fraunces', serif; font-weight:600; font-size:25px; text-align:left; cursor:pointer; white-space:nowrap; }
.rail-logo span span{ color: var(--amber); }
.rail-logo .rl-full{ position:absolute; left:8px; top:50%; transform:translateY(-50%); opacity:0; transition: opacity .12s; }
.rail-logo .rl-short{ transition: opacity .12s; }
.rail:not(.rail-hold):hover .rail-logo .rl-full, .rail:has(:focus-visible) .rail-logo .rl-full{ opacity:1; transition-delay:1s; }
.rail:not(.rail-hold):hover .rail-logo .rl-short, .rail:has(:focus-visible) .rail-logo .rl-short{ opacity:0; transition-delay:1s; }
.rail-items{ display:flex; flex-direction:column; gap:4px; }
.rail-item{ display:flex; align-items:center; gap:14px; height:40px; padding:0 10px; border:0; border-radius:9px; background:none; color: var(--text-dim); font: inherit; font-size:13.5px; font-weight:600; white-space:nowrap; cursor:pointer; text-align:left; }
.rail-item svg{ width:20px; height:20px; flex:none; }
.rail-lbl{ opacity:0; transition: opacity .12s; }
.rail:not(.rail-hold):hover .rail-lbl, .rail:has(:focus-visible) .rail-lbl{ opacity:1; transition-delay:1s; }
.rail-item:hover{ background: var(--surface); color: var(--text); }
.rail-item.on{ background: color-mix(in srgb, var(--amber) 20%, transparent); color: var(--amber); }
.rail-item:focus-visible, .rail-logo:focus-visible{ outline:2px solid var(--amber); outline-offset:-2px; }
.topbar{ position:sticky; top:0; z-index:40; height: var(--tb-h); flex:none; display:flex; align-items:center; gap:14px; padding:0 18px 0 22px; box-sizing:border-box; background: var(--bg-raised); border-bottom:1px solid var(--border-soft); }
.app:not(.signed-in) .topbar{ display:none; }
.tb-wordmark{ font-size:24px; cursor:pointer; display:none; }
.app.no-rail .tb-wordmark{ display:block; }
.crumbs{ display:flex; align-items:center; gap:8px; min-width:0; overflow:hidden; font-size:13.5px; color: var(--text-dim); white-space:nowrap; }
.crumb{ overflow:hidden; text-overflow:ellipsis; }
.crumb-link{ border:0; background:none; font:inherit; color: var(--text-dim); padding:4px 6px; margin:0 -6px; border-radius:6px; cursor:pointer; }
.crumb-link:hover{ color: var(--text); background: var(--surface); }
.crumb-here{ color: var(--text); font-weight:600; }
.crumb-sep{ opacity:.55; flex:none; }
.tb-right{ margin-left:auto; display:flex; align-items:center; gap:10px; flex:none; }
/* M-306: the ☰ menu ends with a line, then Light/dark, then Log out (with who is signed in, faint, on the right) */
.foot-menu-account{ display:flex; flex-direction:column; gap:2px; margin-top:4px; padding-top:4px; border-top:1px solid var(--border-soft); }
.foot-menu-account #userBox{ display:contents; }
.foot-menu .btn-admin .fm-who{ margin-left:auto; padding-left:10px; font-size:11.5px; color: var(--text-faint); max-width:110px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* M-352: the site-wide search bar in the top bar, beside the menu; opens the Ctrl/Cmd+K search */
.tb-search{ display:flex; align-items:center; gap:8px; width:280px; max-width:34vw; height:36px; box-sizing:border-box; padding:0 10px; background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); color: var(--text-faint); font-family:inherit; font-size:13px; cursor:text; text-align:left; }
.tb-search:hover{ border-color: var(--amber-dim); color: var(--text-dim); }
.tb-search:focus-visible{ outline:2px solid var(--amber); outline-offset:1px; }
.tb-search svg{ flex:none; }
.tb-search-ph{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width: 640px){ .tb-search{ width:36px; padding:0; justify-content:center; } .tb-search-ph, .tb-search .sidebar-search-kbd{ display:none; } }
.btn-admin.tb-menu{ position:relative; width:auto; padding:8px 10px; flex:none; color: var(--text); background: var(--surface); border-color: var(--border); }
.btn-admin.tb-menu.active{ border-color: var(--amber); color: var(--amber); }
/* the menu drops down under the ☰; its pop-outs open to its left (placeLeftOf in index.html) */
.foot-menu{ left:auto; bottom:auto; box-shadow:0 12px 28px rgba(0,0,0,0.35); transform: translateY(-6px); }
.settings-flyout{ box-shadow:-8px 8px 28px rgba(0,0,0,0.35); transform: translateX(8px); }
.foot-menu.open, .settings-flyout.open{ transform:none; }
/* Things that stick to the page sit under the top bar, not behind it */
.player-stick, .video-layout-right{ top: calc(var(--tb-h) + 10px); }
@media (max-width: 640px){
  .app{ --rail-w:0px; }
  .rail{ display:none; }
  .app-row{ flex-direction:column; }
  .topbar{ position:static; }
  .app .sidebar{ height:auto; }
  .tb-wordmark{ display:block; }
}
.area-nav{ display:flex; flex-direction:column; gap:1px; padding-top:4px; }
.area-nav[hidden]{ display:none; }
.area-head{ margin:16px 10px 4px; color: var(--text-dim); font-size:11.5px; font-weight:700; letter-spacing:.02em; }
.area-item{ display:flex; align-items:center; gap:10px; width:100%; height:38px; padding:0 10px; border:0; border-radius:8px; background:none; color: var(--text); font: inherit; font-size:13px; text-align:left; cursor:pointer; }
.area-item svg{ width:16px; height:16px; flex:none; color: var(--text-dim); }
.area-item:hover{ background: var(--surface); }
.area-item.current{ background: color-mix(in srgb, var(--amber) 18%, var(--surface)); font-weight:600; }
.area-item.current svg{ color: var(--amber); }
.area-item .menu-badge-in{ margin-left:auto; }
.sidebar.area-nonreview :is(#favoritesWrap, #reviewWrap, #inProgressWrap, #recentWrap, #awaitWrap, #episodesSection, #sidebarScroll > .sidebar-divider){ display:none !important; }
.edit-area{ padding: 8px 0 40px; }
.edit-area-wait{ padding:24px 0; color: var(--text-dim); }
.edit-area-empty{ padding:24px 0; color: var(--text-dim); } .edit-area-empty h2{ color: var(--text); margin:0 0 8px; }
/* M-308: the home Dashboard. The rail's Dashboard icon sits above the areas with a line under it; the page has no sidebar. */
.rail-sep{ height:1px; margin:4px 6px 6px; background: var(--border); flex:none; }
.app.on-home .sidebar, .app.on-home .sidebar-collapse-toggle{ display:none !important; }
.home-hello{ margin-bottom:22px; }
.home-hello .welcome-title.big{ margin-bottom:2px; }
.home-date{ color: var(--text-dim); font-size:14px; }
.home-tiles{ display:grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap:16px; margin-bottom:24px; }
.home-tile{ display:flex; flex-direction:column; align-items:flex-start; gap:8px; padding:20px 18px; border:1px solid var(--border); border-radius:12px; background: var(--bg-raised); color: var(--text); font: inherit; text-align:left; cursor:pointer; transition: border-color .15s, transform .15s; }
.home-tile svg{ width:36px; height:36px; color: var(--amber); stroke-width:1.6; }
.home-tile b{ font-size:18px; }
.home-tile span{ color: var(--text-dim); font-size:12.5px; }
.home-tile:hover{ border-color: var(--amber); transform: translateY(-1px); }
.home-tile:focus-visible{ outline:2px solid var(--amber); outline-offset:2px; }
.home-cards{ display:grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap:16px; }
.home-card{ padding:16px; border:1px solid var(--border-soft); border-radius:10px; background: var(--bg-raised); }
.home-card h3{ margin:0 0 10px; font-size:11.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color: var(--text-dim); }
.hc-big{ font-size:32px; font-weight:700; line-height:1; margin-bottom:10px; }
.hc-big small{ font-size:13px; font-weight:400; color: var(--text-dim); margin-left:6px; }
.hc-line{ display:flex; justify-content:space-between; gap:10px; padding:6px 0; border-top:1px solid var(--border-soft); font-size:13px; }
.home-card h3 + .hc-line, .hc-big + .hc-line{ border-top:0; }
.hc-line[role="button"]{ cursor:pointer; }
.hc-line[role="button"]:hover .hc-l{ color: var(--amber); }
.hc-l, .hc-v{ flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hc-l:not(:has(em)){ flex-shrink:0; }   /* a plain label always shows in full; a cut's name gives way to its due date */
.hc-l em{ font-style:normal; color: var(--text-dim); margin-left:4px; }
.hc-v{ text-align:right; color: var(--text); }
.hc-red{ color: var(--alert) !important; } .hc-amber{ color: var(--amber); } .hc-blue{ color: var(--info); } .hc-green{ color: var(--green); }
.hc-empty{ color: var(--text-dim); font-size:13px; }
/* The Reviewer | Editor slider has the whole foot of the sidebar now (the Dash button went to the rail): the words show beside the icons */
.foot-btns .ms-track.ms-wide{ flex:1; width:auto; height:40px; }
.ms-wide .ms-icon{ width:50%; justify-content:center; align-items:center; gap:6px; height:auto; font-size:12.5px; font-weight:600; }
.ms-wide .ms-icon.l{ left:0; } .ms-wide .ms-icon.r{ right:0; }
.ms-wide .ms-knob{ width:calc(50% - 2px) !important; height:34px; border-radius:100px; gap:6px; font-size:12.5px; font-weight:700; }
.ms-wide .ms-knob .kl, .ms-wide .ms-knob .kr{ align-items:center; gap:6px; }
.ms-track.ms-wide.editor .ms-knob{ transform: translateX(100%); }
.ms-wide .ms-txt{ white-space:nowrap; }

/* ---------- Review cut page (M-311): video, timeline, controls and note box on the left; one notes panel on the right ---------- */
.video-layout{ gap:20px; }
.video-layout-left{ flex: 1.6; }
.video-layout-left > .composer{ margin-top:-4px; }
.rv-edprog{ display:flex; flex-direction:column; gap:8px; }
.rv-tc{ align-self:center; margin-left:6px; font-size:15px; color: var(--amber); letter-spacing:.5px; font-variant-numeric: tabular-nums; }
/* the tab row carries the reviewers' status circles on its right */
.tabs-bar{ display:flex; align-items:flex-end; gap:12px; border-bottom:1px solid var(--border); }
.tabs-bar .tabs-row{ border-bottom:0; flex:1; min-width:0; }
.rv-avatars{ display:flex; align-items:center; gap:8px; padding:0 2px 8px; flex:none; margin:0 !important; }
.rv-av{ --fill: var(--surface-hover); --ink: var(--text); --bf: var(--text-faint); position:relative; width:30px; height:30px; border-radius:50%; border:0; padding:0; display:inline-grid; place-items:center; flex:none;
  font-family:inherit; font-size:10.5px; font-weight:700; line-height:1; letter-spacing:.02em; background: var(--fill); color: var(--ink); cursor:default; }
.rv-av.clickable{ cursor:pointer; } .rv-av.clickable:hover{ filter: brightness(1.1); }
.rv-av.fill-complete{ --fill: var(--green); --ink:#1B1E24; } .rv-av.fill-in_progress{ --fill: var(--amber); --ink:#1B1E24; }
.rv-av.fill-awaiting{ --fill: var(--surface-hover); --ink: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.rv-av.fill-over{ --fill: var(--alert); --ink:#fff; } .rv-av.fill-opted_out{ --fill: var(--surface); --ink: var(--text-faint); opacity:.7; }
.rv-av.badge-complete{ --bf: var(--green); } .rv-av.badge-in_progress{ --bf: var(--amber); } .rv-av.badge-awaiting{ --bf: var(--text-faint); } .rv-av.badge-opted_out{ --bf: var(--border); }
.rv-badge{ position:absolute; right:-4px; bottom:-3px; width:15px; height:15px; border-radius:50%; background: var(--bf); color:#1B1E24; border:2px solid var(--bg); box-sizing:border-box; display:grid; place-items:center; }
.rv-badge svg{ width:9px; height:9px; stroke-width:3; }
.rv-av.here{ box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--green); }
.rv-av.fill-awaiting.here{ box-shadow: inset 0 0 0 1px var(--border), 0 0 0 2px var(--bg), 0 0 0 4px var(--green); }
.rv-av.rv-guest{ --fill: var(--surface); --ink: var(--text-dim); }
.rv-sep{ width:1px; height:22px; background: var(--border); margin:0 2px; }
/* the timeline: markers above the slider, the In/Out band on it */
.scrub-track{ position:relative; flex:1; min-width:0; display:flex; align-items:center; padding-top:22px; touch-action:none; }
.scrub-track #scrub{ flex:1; width:100%; position:relative; z-index:2; }
.scrub-marks{ position:absolute; left:0; right:0; top:0; height:20px; z-index:3; pointer-events:none; }
.tl-mark{ position:absolute; top:1px; transform:translateX(-50%); min-width:18px; height:18px; padding:0 3px; border-radius:9px; border:1.5px solid var(--bg); box-sizing:border-box;
  background: var(--surface-hover); color: var(--text); font-family:inherit; font-size:8.5px; font-weight:700; line-height:1; display:grid; place-items:center; cursor:pointer; pointer-events:auto; transition: transform .12s; }
.tl-mark:hover, .tl-mark.cur{ transform:translateX(-50%) scale(1.25); z-index:4; }
.tl-mark.cur{ box-shadow: 0 0 0 2px var(--amber); }
.tl-mark.st-done{ background: var(--green); color:#1B1E24; } .tl-mark.st-query{ background: var(--amber); color:#1B1E24; }
.tl-mark.st-flag{ background: var(--alert); color:#fff; } .tl-mark.st-olmix{ background: var(--info); color:#fff; }
.tl-span{ position:absolute; top:9px; height:2px; background: var(--text-faint); opacity:.7; pointer-events:none; }
.tl-span.st-done{ background: var(--green); } .tl-span.st-query{ background: var(--amber); } .tl-span.st-flag{ background: var(--alert); } .tl-span.st-olmix{ background: var(--info); }
.scrub-range{ position:absolute; top:24px; bottom:2px; background: color-mix(in srgb, var(--info) 32%, transparent); border-left:2px solid var(--info); border-right:2px solid var(--info); border-radius:3px; z-index:3; pointer-events:none; box-sizing:border-box; }
.scrub-range .sr-h{ position:absolute; top:-5px; bottom:-5px; width:12px; cursor:ew-resize; pointer-events:auto; }
.scrub-range .sr-h[data-h="in"]{ left:-7px; } .scrub-range .sr-h[data-h="out"]{ right:-7px; }
.player-wrap video#nativeVideo{ background:#000; }
/* the notes panel */
.video-layout-right.rv-panel{ flex:1; min-width:320px; max-width:440px; gap:0; height: calc(100vh - var(--tb-h, 0px) - 20px); border:1px solid var(--border-soft); border-radius:12px; background: var(--bg-raised); overflow:hidden; }
.rvp-head{ display:flex; align-items:center; gap:8px; padding:8px 10px; border-bottom:1px solid var(--border-soft); flex:none; }
.rvp-tabs{ display:flex; gap:2px; flex:1; min-width:0; }
.rvp-tab{ background:none; border:0; padding:6px 10px; border-radius:6px; font: inherit; font-size:12.5px; font-weight:500; color: var(--text-dim); cursor:pointer; }
.rvp-tab:hover{ color: var(--text); background: var(--surface); }
.rvp-tab.on{ background: var(--surface); color: var(--text); font-weight:600; }
.rvp-count{ margin-left:5px; font-size:11px; color: var(--text-faint); font-weight:500; }
.rvp-head .feed-tools{ margin-left:0; }
/* M-336: the controls and the timeline in a strip across the foot of the window, under both columns (like Paper Edits); the note box sits straight under the video */
.main:has(#rvStrip){ padding-bottom:0; }
.rv-strip{ position:sticky; bottom:0; z-index:16; background: var(--bg); display:flex; flex-direction:column; gap:2px; padding:8px 0 6px; margin-top:-12px; }
.rv-strip .rv-ctlrow{ margin:0; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; padding:6px 10px; border:1px solid var(--border-soft); border-radius:10px; background: var(--bg-raised); }
.rv-strip .rv-ctlrow > div{ align-items:center; flex-wrap:wrap; }
.rv-pos{ display:inline-flex; align-items:center; margin-left:4px; } .rv-pos .scrub-t{ min-width:0; } .rv-pos-sep{ color: var(--text-faint); padding:0 5px; font-size:12px; }
.rv-strip .rv-scrubrow{ padding:0 8px; }
.video-layout-right.rv-panel{ height: calc(100vh - var(--tb-h, 0px) - 20px - var(--rv-strip-h, 100px)); }
@media (max-width: 1000px){ .video-layout-right.rv-panel{ height:auto; } }
/* M-337: Add version appears inside the current cut's tab while you hover it */
.tab.has-addver{ display:inline-flex; align-items:center; }
.tab .tab-addver{ display:none; align-items:center; gap:4px; margin:-3px 0 -3px 8px; padding:2px 8px; border-radius:999px; border:1px solid var(--amber); background:transparent; color: var(--amber); font: inherit; font-size:11px; font-weight:600; cursor:pointer; line-height:1.4; }
.tab.has-addver:hover .tab-addver, .tab .tab-addver:focus-visible{ display:inline-flex; }
.tab .tab-addver:hover{ background: var(--amber); color:#1B1E24; }
.video-header .upload-date{ margin-top:2px; } .upload-ago{ color: var(--text-faint); }
/* M-338: Notes Completed? sits in the notes panel header, beside the ⋯ menu, on the Notes tab only; green once completed */
.rvp-nc:empty{ display:none; } .rvp-nc{ display:inline-flex; margin-left:4px; }
.rvp-nc .nc-pill{ padding:4px 11px; font-size:12px; gap:5px; white-space:nowrap; } .rvp-nc .nc-pill svg{ width:12px; height:12px; }
/* M-335: the Log tab: the Notes log, then who the notes are needed from and by when */
.rvp-log #rvpLogBox .manual-nb{ margin-top:0; }
.rvp-who{ display:flex; flex-direction:column; gap:6px; padding:8px 12px; margin:10px 0; border:1px solid var(--border-soft); border-radius:8px; background: var(--bg-raised); font-size:12.5px; }
.rvp-who-head{ display:flex; align-items:baseline; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.rvp-who-head .mnb-badge{ color: var(--amber); font-weight:600; }
.rvp-who-by{ color: var(--text); font-weight:600; font-size:12px; }
.rvp-who-table td{ border-top-color: var(--border-soft); }
.rvp-who-table .mnb-date{ white-space:nowrap; }
.rvp-who-table .mnb-what{ white-space:normal; }
.rvp-who-when{ font-size:11px; color: var(--text-faint); }
.rvp-who-dot{ display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:7px; background: var(--text-faint); vertical-align:1px; }
.rvp-who-done .rvp-who-dot{ background: var(--green); } .rvp-who-over .rvp-who-dot{ background: var(--alert); }
.rvp-who-over .rvp-who-when{ color: var(--alert); }
.rvp-menu-wrap{ position:relative; flex:none; }
.rvp-menu{ position:absolute; right:0; top:calc(100% + 6px); width:240px; z-index:30; background: var(--surface); border:1px solid var(--border); border-radius:10px; box-shadow:0 12px 32px rgba(0,0,0,.3); padding:6px; }
.rvp-mh{ font-size:11px; font-weight:600; color: var(--amber); padding:6px 8px 3px; letter-spacing:.03em; }
.rvp-mi{ display:flex; align-items:center; gap:9px; width:100%; text-align:left; background:none; border:1px solid transparent; padding:6px 8px; border-radius:6px; font: inherit; font-size:12.5px; color: var(--text); cursor:pointer; }
.rvp-mi svg{ width:15px; height:15px; flex:none; }
.rvp-mi.active{ color: var(--amber); }
.rvp-mi.rvp-danger{ color: var(--alert); } .rvp-mi.rvp-danger:hover{ background: color-mix(in srgb, var(--alert) 14%, transparent); }
.rvp-msep{ height:1px; background: var(--border-soft); margin:5px 4px; }
.rvp-list{ flex:1; min-height:0; overflow-y:auto; padding:4px 12px 14px; display:flex; flex-direction:column; gap:0; }
.rvp-list[hidden], .rvp-tx[hidden]{ display:none !important; }
.rvp-tx{ flex:1; min-height:0; overflow-y:auto; padding:10px 12px; margin:0; border:0; border-radius:0; }
#vlExtras{ display:flex; flex-direction:column; gap:8px; padding-top:8px; }
#vlExtras:empty{ display:none; }
#vlExtras .manual-nb{ margin:0; }
.rvp-list .notes-feed{ margin-top:8px; }
.rvp-list .note.note-cur{ box-shadow: inset 3px 0 0 var(--amber); background: color-mix(in srgb, var(--amber) 9%, var(--surface)); }
#notesCompletedRow, #editorCompleteRow{ display:flex; justify-content:flex-start; text-align:left; }
/* the Notes log carries the deadline; its colour is the state */
.manual-nb.set.notes-log{ --nl: var(--green); border-color: color-mix(in srgb, var(--nl) 45%, transparent); background: color-mix(in srgb, var(--nl) 10%, var(--bg-raised)); }
.manual-nb.set.notes-log.nl-soon{ --nl: var(--amber); } .manual-nb.set.notes-log.nl-over{ --nl: var(--alert); }
.notes-log .mnb-head{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.notes-log .mnb-badge{ color: var(--nl); }
.nl-state{ display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:700; color: var(--nl); border:1px solid color-mix(in srgb, var(--nl) 60%, transparent); border-radius:100px; padding:2px 8px; white-space:nowrap; }
.notes-log .mnb-table td{ border-top-color: color-mix(in srgb, var(--nl) 22%, transparent); }
.notes-log .mnb-hot .mnb-date, .notes-log .mnb-hot .mnb-what{ color: var(--nl); font-weight:700; }
.mnb-out{ font-size:11.5px; color: var(--text-dim); padding-top:4px; border-top:1px solid color-mix(in srgb, var(--nl) 22%, transparent); }
/* keyboard shortcuts pop-up from the ? button */
.kbd-pop{ position:fixed; z-index:60; width:230px; margin:0; padding:10px 12px; background: var(--surface); border:1px solid var(--border); border-radius:10px; box-shadow:0 12px 32px rgba(0,0,0,.3); gap:6px; }
.kbd-pop[hidden]{ display:none !important; }
.kbd-pop-title{ font-size:12px; font-weight:600; color: var(--amber); margin-bottom:2px; }
/* Edit dashboard: search every paper edit (words and who said it) */
.edit-dash-head{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:14px; }
.edit-dash-head .welcome-title{ margin:0; }
.edit-dash > .welcome-title.big{ font-size:53px; margin-bottom:2px; }   /* M-359: the same size as the Review dashboard title */
.sidebar-sync{ display:flex; flex-direction:column; gap:6px; margin-bottom:4px; } .sidebar-sync[hidden], .sidebar-sync select[hidden], .sidebar-search-btn[hidden]{ display:none; }   /* Edit: Search sync (M-334) */
.ed-search-sum{ font-size:13px; color: var(--text-dim); margin:0 0 12px; }
.ed-search-sum b{ color: var(--amber); }
.ed-res{ margin:0 0 16px; padding:10px 12px; border:1px solid var(--border-soft); border-radius:10px; background: var(--bg-raised); }
.ed-res-head{ display:flex; align-items:baseline; gap:10px; margin-bottom:6px; font-weight:600; }
.ed-res-name{ font-size:12px; font-weight:400; color: var(--text-dim); }
.ed-res-n{ margin-left:auto; font-size:12px; color: var(--text-dim); }
.ed-hit{ display:flex; align-items:baseline; gap:10px; padding:6px 8px; border-radius:6px; cursor:pointer; font-size:13.5px; line-height:1.45; }
.ed-hit:hover, .ed-hit:focus-visible{ background: color-mix(in srgb, var(--amber) 10%, var(--surface)); outline:none; }
.ed-hit-tc{ flex:none; font-family:'Courier New', monospace; font-size:12px; color: var(--text-faint); }
.ed-hit-spk{ flex:none; color: var(--amber); font-weight:700; }
.ed-hit-txt{ min-width:0; color: var(--text); }
.ed-hit mark{ background: color-mix(in srgb, var(--info) 30%, transparent); color: inherit; border-radius:3px; padding:0 2px; }
@media (max-width: 700px){ .ed-hit{ flex-wrap:wrap; gap:4px 8px; } }
@media (max-width: 1000px){
  .video-layout-right.rv-panel{ max-width:100%; height:auto; max-height:80vh; min-width:0; }
  .tabs-bar{ flex-wrap:wrap; } .rv-avatars{ padding-top:6px; }
}

/* M-340: the cut you are on is easy to spot: the other tabs are quieter (plain text, a paler phase colour), the current one has a stronger fill, white bold text and an orange bar along its foot */
.tabs-row .tab:not(.active):not(.no-tabs){ color: var(--text-faint); font-weight:500; }
.tabs-row .tab.tab-phase:not(.active){ background: color-mix(in srgb, var(--phc) 6%, var(--bg-raised)); border-top-color: color-mix(in srgb, var(--phc) 55%, transparent); }
.tabs-row .tab.active{ color: var(--text); font-weight:700; }
.tabs-row .tab.tab-phase.active{ background: color-mix(in srgb, var(--phc) 45%, var(--bg)); }
.tabs-row .tab.active::after{ content:''; position:absolute; left:8px; right:8px; bottom:0; height:3px; border-radius:3px 3px 0 0; background: var(--amber); }

/* M-353 (owner, 2026-11-19): the left menu's text in the hero font (Fraunces, as the wordmark and page titles): the rail's area
   names, the sidebar's page list and its headings, and the Review sidebar's section headings and Offline / Online filters.
   The episode rows themselves stay in Inter. */
.rail-lbl, .area-item > span, .area-head, .sidebar .sidebar-section-header, .ep-fbtn > span:not(.ep-fcount){ font-family:'Fraunces', serif; }
.area-item > span, .rail-lbl{ font-size:14.5px; font-weight:500; }
.area-head{ font-size:13px; font-weight:600; letter-spacing:0; }
.sidebar .sidebar-section-header{ letter-spacing:0; }

/* M-354: the Episodes dashboard (Episodes area's first page) */
.epd{ display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:18px; margin-top:6px; }
.epd-card{ background: var(--surface); border:1px solid var(--border-soft); border-radius:12px; padding:16px 18px; min-width:0; }
.epd-card .sc-h2{ margin:0 0 10px; }
.epd-wide{ grid-column: 1 / -1; }
.epd-status{ display:grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap:12px; }
.epd-stat{ border-top:3px solid var(--border); padding-top:10px; min-width:0; }
.epd-num{ font-family:'Fraunces', serif; font-size:34px; font-weight:600; line-height:1; color: var(--text); }
.epd-lbl{ font-size:12.5px; font-weight:700; margin-top:6px; text-transform:uppercase; letter-spacing:.4px; color: var(--text-dim); }
.epd-sub{ font-size:12.5px; color: var(--text-faint, var(--text-dim)); margin-top:6px; }
.epd-eps{ display:flex; flex-wrap:wrap; gap:4px; margin-top:8px; font-size:11.5px; color: var(--text-dim); }
.epd-eps span{ border:1px solid var(--border-soft); border-radius:6px; padding:1px 6px; }
.epd-eps em{ color: var(--text-faint, var(--text-dim)); }
.epd-faint{ border-top-color: var(--text-faint, var(--border)); }
.epd-rose{ border-top-color: var(--rose); } .epd-rose .epd-num, .epd-rose .epd-lbl{ color: var(--rose); }
.epd-amber{ border-top-color: var(--amber); } .epd-amber .epd-num, .epd-amber .epd-lbl{ color: var(--amber); }
.epd-info{ border-top-color: var(--info); } .epd-info .epd-num, .epd-info .epd-lbl{ color: var(--info); }
.epd-green{ border-top-color: var(--green); } .epd-green .epd-num, .epd-green .epd-lbl{ color: var(--green); }
.epd-tx .epd-num{ font-size:52px; color: var(--amber); }
.epd-bars{ display:flex; flex-direction:column; gap:6px; }
.epd-bar{ display:grid; grid-template-columns: minmax(70px, 34%) 1fr 28px; align-items:center; gap:10px; font-size:13px; }
.epd-bar-l{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color: var(--text); }
.epd-bar-t{ height:10px; border-radius:5px; background: var(--border-soft); overflow:hidden; }
.epd-bar-t i{ display:block; height:100%; border-radius:5px; background: var(--amber); }
.epd-bar-n{ text-align:right; font-variant-numeric: tabular-nums; color: var(--text-dim); }
@media (max-width: 900px){ .epd{ grid-template-columns: 1fr; } .epd-status{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* M-355: the Versions tab in the Review notes panel (every version, newest first; click one to show it) */
.rvp-vers{ gap:6px; padding-top:10px; }
.rvp-ver{ display:flex; align-items:flex-start; gap:12px; width:100%; text-align:left; padding:10px 12px; border:1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface); color: var(--text); font-family:inherit; cursor:pointer; }
.rvp-ver:hover{ border-color: var(--amber-dim); }
.rvp-ver.on{ border-color: var(--amber); background: color-mix(in srgb, var(--amber) 10%, var(--surface)); cursor:default; }
.rvp-ver-id{ font-family:'Fraunces', serif; font-size:20px; font-weight:600; line-height:1.1; min-width:34px; color: var(--text); }
.rvp-ver.on .rvp-ver-id{ color: var(--amber); }
.rvp-ver-body{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.rvp-ver-date{ font-size:12.5px; color: var(--text-dim); }
.rvp-ver-date em{ font-style:normal; color: var(--amber); font-weight:600; }
.rvp-ver-why{ font-size:13px; color: var(--text); overflow-wrap:anywhere; }
.rvp-addver{ justify-content:center; margin-bottom:4px; }

/* M-356 (owner, 2026-11-19): the cut tabs sit like folders in a drawer. A tab that is not open shows only its colour strip;
   hover it and it slides up to show its name, and a click opens it. Only where there is a mouse (touch keeps full tabs). */
@media (hover: hover) and (pointer: fine){
  .tabs-row .tab:not(.active):not(.no-tabs){
    --tuck: 26px;
    border-top: 4px solid var(--phc, var(--text-faint));
    transform: translateY(var(--tuck)); clip-path: inset(0 0 var(--tuck) 0 round 6px 6px 0 0);
    transition: transform .22s cubic-bezier(.2,.8,.3,1.2), clip-path .22s cubic-bezier(.2,.8,.3,1.2), background .12s ease, color .12s ease;
  }
  .tabs-row .tab:not(.active):not(.no-tabs) > *{ opacity:0; transition: opacity .15s ease; }
  .tabs-row .tab:not(.active):not(.no-tabs){ color: transparent !important; }
  .tabs-row .tab:not(.active):not(.no-tabs):hover{ transform: translateY(0); clip-path: inset(-2px -2px 0 -2px round 6px 6px 0 0); color: var(--text) !important; z-index:3; box-shadow: 0 -4px 12px rgba(0,0,0,.18); }
  .tabs-row .tab:not(.active):not(.no-tabs):hover > *{ opacity:1; }
}

/* M-360 (owner, 2026-11-20): the cut page uses the whole width of the window, split 45% video / 55% notes panel
   (it was capped at 1280px with the notes panel at most 440px). Side by side only; under 1000px they still stack. */
.main:has(> .video-layout), .main:has(.video-layout > .video-layout-left){ max-width:none; min-width:0; }
@media (min-width: 1001px){
  .video-layout > .video-layout-left{ flex: 45 1 0; min-width:0; }
  .video-layout > .video-layout-right, .video-layout > .video-layout-right.rv-panel{ flex: 55 1 0; min-width:320px; max-width:none; }
}

/* M-361: the editor and the upload date on one line under the episode title (colours unchanged) */
.video-header .video-meta-row{ display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 16px; }
.video-header .video-meta-row .upload-date{ margin-top:0; }

/* M-362 (owner, 2026-11-20): every cut tab is the same width (long names end in …, the full name is the tooltip), and the open tab
   has no orange bar under its name */
.tabs-row .tab:not(.no-tabs){ flex:0 0 168px; width:168px; box-sizing:border-box; text-align:center; justify-content:center; overflow:hidden; text-overflow:ellipsis; padding-left:12px; padding-right:12px; }
.tabs-row .tab.active::after{ display:none; }

/* M-365: the Notes Completed tick at the top of the Log tab */
.rvp-nc-log:empty{ display:none; } .rvp-nc-log{ display:flex; margin:0 0 10px; }

/* M-366 (owner, 2026-11-20): version cards: content centred, text in the main (white) colour, the date only; the orange card is the
   version showing (no "showing" / "latest" words) */
.rvp-ver{ align-items:center; }
.rvp-ver-date{ color: var(--text); font-size:13px; }

/* M-367 (owner, 2026-11-20): Settings fits the screen with no sideways scroll. Settings → Phases' columns shrink with the window
   (they had fixed minimums adding up to about 1,150px); the head wraps instead of running off the edge. */
.cut-grid{ grid-template-columns: 16px 22px minmax(110px,1.4fr) minmax(108px,1fr) minmax(92px,.8fr) minmax(120px,1.2fr) minmax(110px,1.1fr) 62px 62px 64px; }
.cut-grid > *{ min-width:0; }
.cut-grid-head{ white-space:normal; }
.cut-grid .info .primary{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cut-grid-select{ text-overflow:ellipsis; }
.main.sc-wide .admin-list, .main.sc-wide .cut-list{ max-width:100%; }
/* M-369 (owner, 2026-11-20): the Reviewer column is as wide as its widest choice, Common Story (124px, fixed so the heading lines up with every row) */
.cut-grid{ grid-template-columns: 16px 22px minmax(110px,1.4fr) 124px minmax(92px,.8fr) minmax(120px,1.2fr) minmax(110px,1.1fr) 62px 62px 64px; }
.cut-grid .tab-org-select{ width:100%; }

/* M-371 (owner, 2026-11-20): the cut tabs are still all one width, but that width follows the longest tab name (no fixed 168px),
   so renaming a phase makes every tab grow or shrink with it. Equal columns sized to the widest name; they shrink with … if the row runs out of room. */
.tabs-row{ display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0, 1fr); width:max-content; max-width:100%; }
.tabs-bar .tabs-row{ flex:0 1 auto; }
.tabs-row .tab:not(.no-tabs){ flex:none; width:auto; padding-left:18px; padding-right:18px; }
.tabs-bar > .rv-avatars{ margin-left:auto !important; }   /* M-371: the Viewer Log circles stay at the right end */

/* M-378 (owner, 2026-11-20): Reviewer, Include tab and Start are as wide as their longest choice (index.html measures them into --cg-org / --cg-inc / --cg-start) */
.cut-grid{ grid-template-columns: 16px 22px minmax(110px,1.4fr) var(--cg-org, 124px) var(--cg-inc, minmax(92px,.8fr)) var(--cg-start, minmax(120px,1.2fr)) minmax(110px,1.1fr) 62px 62px 64px; }

/* M-379: End is a drop-down too, as wide as its longest choice */
.cut-grid{ grid-template-columns: 16px 22px minmax(110px,1.4fr) var(--cg-org, 124px) var(--cg-inc, minmax(92px,.8fr)) var(--cg-start, minmax(120px,1.2fr)) var(--cg-end, minmax(110px,1.1fr)) 62px 62px 64px; }

/* M-382 (owner, 2026-11-20): the note markers sit ON the timeline line as small white squares (status colours as before, no initials),
   and the timeline has more room below it at the foot of the page */
.rv-strip{ padding-bottom:18px; }
.scrub-track{ padding-top:8px; padding-bottom:8px; }
.scrub-marks{ top:50%; height:0; }
.tl-mark{ top:-5px; min-width:0; width:10px; height:10px; padding:0; border-radius:2px; border:1px solid var(--bg); background:#fff; font-size:0; }
.tl-mark:hover, .tl-mark.cur{ transform:translateX(-50%) scale(1.4); }
.tl-mark.st-flag, .tl-mark.st-olmix, .tl-mark.st-done, .tl-mark.st-query{ color:transparent; }
.tl-span{ top:-1px; }
.scrub-range{ top:calc(50% - 8px); bottom:auto; height:16px; }

/* M-383 (owner, 2026-11-20): note box — In/Out and timecodes on the left, the label beside them, formatting top right, a tick to save beside the box */
.composer-head{ flex-wrap:nowrap; justify-content:flex-start; gap:8px; }
.composer-head .composer-tcs{ margin-left:0; flex:none; }
.composer-head .note-label-input{ flex:1 1 140px; max-width:260px; margin-right:0; }
.composer-head .rich-toolbar{ margin-left:auto !important; flex:none; }
.composer-body{ display:flex; align-items:stretch; gap:8px; }
.composer-body .rich-input{ width:100%; box-sizing:border-box; }
.composer-tick{ flex:none; width:40px; padding:0 !important; display:grid; place-items:center; border-radius:8px; }
@media (max-width: 1200px){ .composer-head{ flex-wrap:wrap; } }

/* M-384 (owner, 2026-11-20): the timeline is a wide pill (play | timeline | timecode over duration); the other controls sit in a drawer that
   opens from a tab tucked behind the pill's right end (click to open, click again to close). The page fits the window: only the notes scroll. */
.rv-strip .rv-ctlrow{ display:none; }
.rv-pillwrap{ position:relative; padding-top:18px; }
.rv-pill{ position:relative; z-index:2; display:flex; align-items:center; gap:14px; padding:6px 22px 6px 8px; border:1px solid var(--border-soft); border-radius:999px; background: var(--bg-raised); }
.rv-pill #pauseBtn{ flex:none; width:40px; height:40px; border-radius:50%; padding:0; display:grid; place-items:center; }
.rv-pilltrack{ flex:1; min-width:0; display:flex; align-items:center; }
.rv-pilltc{ flex:none; display:flex; flex-direction:column; align-items:flex-end; line-height:1.15; }
.rv-pilltc .rv-tc{ margin:0; font-size:14px; }
.rv-pilldur{ font-size:11px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.rv-drawer-tab{ position:absolute; right:34px; top:0; z-index:1; height:30px; padding:0 16px 12px; border:1px solid var(--border-soft); border-bottom:0; border-radius:10px 10px 0 0;
  background: var(--bg-raised); color: var(--text-dim); cursor:pointer; display:grid; place-items:center; }
.rv-drawer-tab:hover{ color: var(--text); }
.rv-drawer-tab svg{ transition: transform .15s; }
.rv-drawer-tab.on svg{ transform: rotate(180deg); }
.rv-drawer{ position:absolute; right:20px; bottom:calc(100% + 4px); z-index:3; display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; width:max-content; max-width:calc(100% - 20px); box-sizing:border-box;
  padding:8px 10px; border:1px solid var(--border-soft); border-radius:12px; background: var(--bg-raised); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.rv-drawer[hidden]{ display:none !important; }
.rv-drawer-sep{ width:1px; height:22px; background: var(--border); }
.rv-novideo{ padding-top:0; } .rv-novideo .rv-drawer{ position:static; box-shadow:none; justify-content:flex-start; }
.rv-pill .scrub-track{ padding-top:8px; padding-bottom:8px; }
.player-wrap{ margin-left:auto; margin-right:auto; width:100%; }
