/* CTRL design system: shared by every page in this folder.
   Colours are BSD Future Center brand tokens; the dark control-room
   theme is derived from ink, the light theme maps to the BSD system. */

/* ---------- Tokens ---------- */
:root{
  --teal:#00c4ba; --green:#75cf20; --yellow:#ffcd00; --orange:#fcac17; --red:#fa595d;
  --ink:#51545f; --white:#ffffff;
  --pale-teal:#eff9f8; --pale-green:#fafff8; --pale-yellow:#fefaf1;

  --bg:#151820; --bg-2:#1a1e28;
  --surface:rgba(29,33,45,.84); --surface-solid:#1d212d; --surface-raised:#232837;
  --text:#f2f3f6; --text-2:#b9bdc9; --text-3:#7f8493;
  --line:rgba(0,196,186,.30); --line-soft:rgba(185,189,201,.12);
  --grid:rgba(0,196,186,.075);
  --glow:0 0 0 1px rgba(0,196,186,.32), 0 0 24px rgba(0,196,186,.14), inset 0 0 30px rgba(0,196,186,.045);
  --glow-strong:0 0 0 1px rgba(0,196,186,.6), 0 0 34px rgba(0,196,186,.28), inset 0 0 30px rgba(0,196,186,.08);
  --teal-soft:rgba(0,196,186,.14); --green-soft:rgba(117,207,32,.16); --yellow-soft:rgba(255,205,0,.16);
  --orange-soft:rgba(252,172,23,.16); --red-soft:rgba(250,89,93,.16);
  --symbol-alpha:.07; --logo-alpha:.14;
  --teal-text:var(--teal); --green-text:var(--green); --yellow-text:var(--yellow); --orange-text:var(--orange);
  --scrim:rgba(21,24,32,.66);

  --nav-w:62px; --side-w:272px;
  --r-sm:4px; --r-md:8px; --r-lg:16px;
  --f-head:"Quicksand", "Nunito", system-ui, sans-serif;
  --f-sub:"Quicksand", "Nunito", system-ui, sans-serif;
  --f-mono:"Inter", system-ui, sans-serif;
  --f-body:"Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-symbol:"Quicksand", "Nunito", system-ui, sans-serif;
}
:root[data-theme="light"]{
  --bg:#ffffff; --bg-2:#eff9f8;
  --surface:rgba(255,255,255,.88); --surface-solid:#ffffff; --surface-raised:#f4fbfa;
  --text:#51545f; --text-2:#6a6e7b; --text-3:#8d919e;
  --line:rgba(0,196,186,.48); --line-soft:rgba(81,84,95,.13);
  --grid:rgba(81,84,95,.07);
  --glow:0 0 0 1px rgba(0,196,186,.5), 0 0 20px rgba(0,196,186,.18);
  --glow-strong:0 0 0 1px rgba(0,196,186,.85), 0 0 26px rgba(0,196,186,.3);
  --teal-soft:rgba(0,196,186,.12); --green-soft:rgba(117,207,32,.14); --yellow-soft:rgba(255,205,0,.2);
  --orange-soft:rgba(252,172,23,.18); --red-soft:rgba(250,89,93,.14);
  --symbol-alpha:.09; --logo-alpha:.22;
  --teal-text:#00857e; --green-text:#4a9a0c; --yellow-text:#9a7a00; --orange-text:#b46f00;
  --scrim:rgba(81,84,95,.4);
}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; min-height:100vh; background:var(--bg); color:var(--text);
  font-family:var(--f-body); font-size:15px; line-height:1.5; font-weight:400;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
h1,h2{margin:0; font-family:var(--f-head); font-weight:700; letter-spacing:0}
h3{margin:0; font-family:var(--f-sub); font-weight:400; letter-spacing:0}
h1{font-size:28px; line-height:1.2}
h2{font-size:17px; line-height:1.3}
h3{font-size:13px; line-height:1.3}
p{margin:0}
a{color:inherit}
button{font:inherit; color:inherit; cursor:pointer}
.mono{font-family:var(--f-mono); font-variant-numeric:tabular-nums}
:focus-visible{outline:2px solid var(--yellow); outline-offset:2px; border-radius:var(--r-sm)}
.muted{color:var(--text-3)}
.small{font-size:13px}

/* ---------- Atmosphere ---------- */
.atmos{position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden}
.atmos::before{
  content:""; position:absolute; inset:0;
  background-image:linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size:44px 44px; background-position:-1px -1px;
  mask-image:radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 100%);
  -webkit-mask-image:radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 100%);
}
.atmos::after{
  content:""; position:absolute; inset:-20%;
  background:
    radial-gradient(40% 35% at 18% 12%, rgba(0,196,186,.16), transparent 70%),
    radial-gradient(30% 30% at 88% 78%, rgba(117,207,32,.10), transparent 70%),
    radial-gradient(22% 22% at 72% 8%, rgba(255,205,0,.07), transparent 70%);
}
/* two faded BSD hexagon marks (element only, no wordmark), cropped at the top right and bottom left; the code symbols are gone (Miki, 2026-09-28) */
.atmos .logo{position:absolute; width:min(34vw, 560px); aspect-ratio:550/608; background:url(bsd-mark-bg.png) center/contain no-repeat; opacity:var(--logo-alpha)}
.atmos .logo.tr{right:-9vw; top:-12vh}
.atmos .logo.bl{left:-8vw; bottom:-16vh}

/* ---------- Shell ---------- */
.shell{position:relative; z-index:1; display:grid; grid-template-columns:var(--nav-w) minmax(0,1fr) var(--side-w); min-height:100vh}
.shell.no-side{grid-template-columns:var(--nav-w) minmax(0,1fr)}

/* Nav */
.nav{
  position:sticky; top:0; height:100vh; width:var(--nav-w); z-index:30;
  display:flex; flex-direction:column; align-items:center; padding:14px 0 12px;
  background:var(--surface-solid); border-right:1px solid var(--line-soft);
}
/* the BSD mark (design system: mark alone for the smallest sizes, on white) */
.nav .brand{width:40px; height:40px; display:grid; place-items:center; margin-bottom:22px; text-decoration:none}
.nav .brand img{width:100%; height:100%; object-fit:contain; display:block}
.nav ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px; width:100%}
.nav li{display:flex; justify-content:center}
.nav a{
  position:relative; width:54px; height:50px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; border-radius:var(--r-md);
  text-decoration:none; color:var(--text-3); transition:color .2s, background .2s, box-shadow .2s;
}
.nav a .glyph{font-family:var(--f-symbol); font-weight:700; font-size:17px; line-height:1}
.nav a .glyph.small{font-size:12px; letter-spacing:-.04em; line-height:17px}
.nav a .glyph.icon{display:grid; place-items:center; height:17px}
.nav a .glyph.icon svg{width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
.nav a .glyph.icon.fill svg{fill:currentColor; stroke:none}
/* always-visible label under the glyph; the pop-out tip repeats it larger on hover */
.nav a::after{content:attr(data-label); font-family:var(--f-body); font-size:9px; font-weight:500; letter-spacing:.01em; line-height:1; color:inherit; opacity:.85}
.nav a[aria-current="page"]::after{opacity:1}
.nav a:hover{color:var(--text); background:var(--teal-soft)}
.nav a[aria-current="page"]{color:var(--teal-text); background:var(--teal-soft); box-shadow:var(--glow)}
.nav a[aria-current="page"]::before{
  content:""; position:absolute; left:-4px; top:15px; width:3px; height:20px; border-radius:2px; background:var(--teal);
  box-shadow:0 0 10px var(--teal);
}
.nav a .tip{
  position:absolute; left:60px; top:50%; transform:translateY(-50%); white-space:nowrap;
  font-family:var(--f-body); font-size:13px; font-weight:500; color:var(--text);
  background:var(--surface-raised); border:1px solid var(--line); border-radius:var(--r-sm); padding:5px 10px;
  box-shadow:var(--glow); opacity:0; pointer-events:none; transition:opacity .15s; z-index:40;
}
.nav a:hover .tip, .nav a:focus-visible .tip{opacity:1}
.nav .spacer{flex:1}
.nav .theme{
  width:42px; height:42px; border:1px solid var(--line-soft); background:transparent; border-radius:var(--r-md);
  color:var(--text-3); display:grid; place-items:center; transition:color .2s, border-color .2s;
}
.nav .theme:hover{color:var(--teal); border-color:var(--line)}
.nav .theme svg{width:18px; height:18px}
:root[data-theme="light"] .nav .theme .moon{display:none}
:root[data-theme="dark"] .nav .theme .sun{display:none}

/* Main */
.main{min-width:0; padding:26px 28px 48px}
.topbar{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:22px; flex-wrap:wrap}
.topbar .title{display:flex; align-items:baseline; gap:14px; flex-wrap:wrap}
.topbar .sub{font-family:var(--f-sub); color:var(--text-2); font-size:16px}
.topbar .clock{display:flex; gap:14px; align-items:center; color:var(--text-2); font-size:13px; flex-wrap:wrap}
.topbar .clock .t{font-family:var(--f-mono); font-size:15px; color:var(--text)}
.live{display:inline-flex; align-items:center; gap:7px; font-size:12px; color:var(--text-2)}
.live i{width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 8px var(--green); animation:pulse 2.2s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}

section{margin-bottom:26px}
.sec-head{display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:12px; flex-wrap:wrap}
.sec-head .meta{font-size:13px; color:var(--text-3)}
.sec-head .meta b{font-family:var(--f-mono); font-weight:700; color:var(--text-2)}
.sec-head .actions{display:flex; gap:8px; align-items:center; flex-wrap:wrap}

.card{
  position:relative; background:var(--surface); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  border-radius:var(--r-md); box-shadow:var(--glow); padding:16px;
}
.card.strong{box-shadow:var(--glow-strong)}
.card.flat{box-shadow:0 0 0 1px var(--line-soft)}

/* Buttons */
.btn{
  border:1px solid var(--line); background:var(--teal-soft); color:var(--teal-text);
  border-radius:var(--r-sm); padding:6px 12px; font-size:13px; font-weight:500; display:inline-flex; align-items:center; gap:8px;
  transition:background .2s, box-shadow .2s, color .2s, border-color .2s; text-decoration:none; white-space:nowrap;
}
.btn:hover{background:var(--teal); color:var(--white); box-shadow:0 0 16px rgba(0,196,186,.4)}
.btn.ghost{background:transparent; border-color:var(--line-soft); color:var(--text-2)}
.btn.ghost:hover{border-color:var(--line); color:var(--text); background:var(--teal-soft); box-shadow:none}
.btn.small{padding:4px 9px; font-size:12px}
.btn.done{background:var(--green-soft); border-color:var(--green); color:var(--green-text)}
.btn.done:hover{background:var(--green); color:var(--white); box-shadow:0 0 14px rgba(117,207,32,.35)}
.btn.danger{background:var(--red-soft); border-color:var(--red); color:var(--red)}
.btn.danger:hover{background:var(--red); color:var(--white); box-shadow:none}
.btn[disabled]{opacity:.6; cursor:default; box-shadow:none}
.btn[disabled]:hover{background:var(--teal-soft); color:var(--teal-text)}

/* Tags and status */
.tag{display:inline-block; font-size:11px; font-weight:500; padding:2px 7px; border-radius:var(--r-sm); background:var(--teal-soft); color:var(--teal-text); white-space:nowrap}
.tag.green{background:var(--green-soft); color:var(--green-text)}
.tag.yellow{background:var(--yellow-soft); color:var(--yellow-text)}
.tag.orange{background:var(--orange-soft); color:var(--orange-text)}
.tag.red{background:var(--red-soft); color:var(--red)}
.tag.grey{background:var(--line-soft); color:var(--text-2)}
.delta{font-family:var(--f-mono); font-size:12px; font-weight:700}
.delta.up{color:var(--green-text)} .delta.down{color:var(--red)}
.status{display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:500; color:var(--text-2); white-space:nowrap}
.status i{width:7px; height:7px; border-radius:50%; background:var(--text-3)}
.status.running i{background:var(--teal); box-shadow:0 0 8px var(--teal); animation:pulse 1.6s infinite}
.status.done i{background:var(--green)}
.status.review i, .status.queued i{background:var(--yellow)}
.status.error i{background:var(--red)}
.rating{display:inline-flex; gap:3px; vertical-align:middle}
.rating i{width:9px; height:9px; border-radius:2px; background:var(--line-soft)}
.rating i.on{background:var(--teal); box-shadow:0 0 6px var(--teal)}
.rating.hot i.on{background:var(--green); box-shadow:0 0 6px var(--green)}

/* Progress */
.bar{height:5px; border-radius:3px; background:var(--line-soft); margin:10px 0 6px; overflow:hidden}
.bar span{display:block; height:100%; border-radius:3px; background:var(--teal); box-shadow:0 0 8px var(--teal); transition:width .6s ease}
.bar.green span{background:var(--green); box-shadow:0 0 8px var(--green)}
.bar.yellow span{background:var(--yellow); box-shadow:0 0 8px var(--yellow)}
.bar.red span{background:var(--red); box-shadow:none}

/* Grids */
.grid-2{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px}
.grid-3{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px}
.grid-4{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px}
.grid-5{display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px}

/* Briefing */
.briefing{display:grid; grid-template-columns:1.2fr 1fr 1fr 1.1fr; gap:0; padding:0; overflow:hidden}
.briefing > div{padding:18px 20px; border-right:1px solid var(--line-soft)}
.briefing > div:last-child{border-right:0}
.briefing .lead{background:linear-gradient(180deg, var(--teal-soft), transparent 90%)}
.briefing .lead h2{font-size:18px; margin-bottom:4px}
.briefing .lead .date{font-family:var(--f-mono); font-size:12px; color:var(--text-2); margin-bottom:14px}
.briefing h3{color:var(--text-3); margin-bottom:8px}
.briefing .big{font-family:var(--f-mono); font-size:32px; font-weight:700; line-height:1; color:var(--text)}
.briefing .big small{font-family:var(--f-body); font-size:13px; font-weight:400; color:var(--text-2); margin-left:8px}
.briefing ul{list-style:none; margin:10px 0 0; padding:0; display:flex; flex-direction:column; gap:6px; font-size:13px}
.briefing li{display:flex; gap:10px; align-items:baseline; color:var(--text-2)}
.briefing li .t{font-family:var(--f-mono); font-size:12px; color:var(--teal-text); min-width:44px}
.briefing li .p{font-size:11px; color:var(--text-3)}
.rail{position:relative; height:26px; margin-top:6px}
.rail::before{content:""; position:absolute; left:0; right:0; top:12px; height:2px; background:var(--line-soft); border-radius:1px}
.rail .now{position:absolute; top:6px; width:2px; height:14px; background:var(--yellow); box-shadow:0 0 8px var(--yellow)}
.rail .dot{position:absolute; top:8px; width:10px; height:10px; border-radius:50%; background:var(--teal); box-shadow:0 0 8px var(--teal); transform:translateX(-50%)}
.rail .dot.done{background:var(--green); box-shadow:0 0 8px var(--green)}
.rail .h{position:absolute; top:20px; font-family:var(--f-mono); font-size:10px; color:var(--text-3); transform:translateX(-50%)}
.top-post .name{font-weight:500; font-size:14px; line-height:1.35; margin-bottom:8px}
.top-post .stats{display:flex; gap:14px; font-size:12px; color:var(--text-2)}
.top-post .stats b{display:block; font-family:var(--f-mono); font-weight:700; font-size:15px; color:var(--text)}

/* Social cards */
.social .head{display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:10px}
.social .platform{display:flex; align-items:center; gap:9px}
.social .platform i{width:26px; height:26px; border-radius:6px; display:grid; place-items:center; color:var(--white); font-family:var(--f-symbol); font-weight:700; font-size:14px; font-style:normal}
/* platform logos: each brand's own colour behind its white mark */
.social .platform i svg{width:15px; height:15px; fill:#fff; display:block}
.social .platform i.tt{background:#000} .social .platform i.ig{background:#e1306c} .social .platform i.yt{background:#ff0000} .social .platform i.meta{background:#0866ff}
.social .platform h2{font-size:14px}
.social .handle{font-size:12px; color:var(--text-3); font-family:var(--f-mono)}
.social .num{font-family:var(--f-mono); font-size:30px; font-weight:700; line-height:1; margin:6px 0 2px}
.social .lbl{font-size:12px; color:var(--text-3)}
.spark{height:46px; margin:12px -4px 8px}
.spark svg{width:100%; height:100%; overflow:visible}
.spark.tiny{height:22px; width:90px; margin:0}
.mini{display:grid; grid-template-columns:repeat(3,1fr); gap:8px; border-top:1px solid var(--line-soft); padding-top:10px}
.mini div{font-size:11px; color:var(--text-3)}
.mini b{display:block; font-family:var(--f-mono); font-weight:700; font-size:13px; color:var(--text-2); margin-top:2px}

/* Agents */
.agent{padding:14px}
.agent .top{display:flex; justify-content:space-between; align-items:center; margin-bottom:8px}
.agent .avatar{width:32px; height:32px; border-radius:var(--r-md); display:grid; place-items:center; font-family:var(--f-symbol); font-weight:700; font-size:17px; color:var(--white)}
.agent .avatar svg{width:18px; height:18px; fill:none; stroke:#fff; stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
.agent h2{font-size:14px; margin-bottom:2px}
.agent .role{font-family:var(--f-sub); font-size:13px; color:var(--text-3); margin-bottom:10px}
.agent .task{font-size:13px; color:var(--text-2); min-height:38px; line-height:1.4}
.agent .foot{display:flex; justify-content:space-between; font-family:var(--f-mono); font-size:11px; color:var(--text-3)}

/* Kanban */
.kanban{display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px}
.col{padding:10px 10px 12px; transition:box-shadow .2s}
.col.over{box-shadow:var(--glow-strong)}
.col .ch{display:flex; justify-content:space-between; align-items:center; margin:2px 4px 10px}
.col .ch h3{font-size:13px; color:var(--text-2)}
.col .ch b{font-family:var(--f-mono); font-size:11px; font-weight:700; color:var(--text-3)}
.col .items{display:flex; flex-direction:column; gap:8px; min-height:64px; max-height:var(--items-max, none); overflow-y:auto; scrollbar-width:thin; scrollbar-color:var(--line) transparent}
.col .items.scrolls{padding-right:4px; mask-image:linear-gradient(#000 calc(100% - 18px), transparent); -webkit-mask-image:linear-gradient(#000 calc(100% - 18px), transparent)}
.item{background:var(--surface-raised); border:1px solid var(--line-soft); border-left:3px solid var(--teal); border-radius:6px; padding:9px 10px; font-size:13px; line-height:1.35; transition:border-color .2s, transform .2s, opacity .2s}
.item:hover{border-color:var(--line); transform:translateY(-1px)}
.item[draggable="true"]{cursor:grab}
.item.dragging{opacity:.35; transform:none}
.item.green{border-left-color:var(--green)} .item.yellow{border-left-color:var(--yellow)} .item.orange{border-left-color:var(--orange)} .item.red{border-left-color:var(--red)}
.item{position:relative}
/* red dot: an edit finished and has not been opened yet */
.item.has-dot::after{content:""; position:absolute; top:-5px; right:-5px; width:12px; height:12px; border-radius:50%; background:var(--red); border:2px solid var(--surface-solid); box-shadow:0 0 0 2px rgba(250,89,93,.28)}
.cap-text.log{max-height:220px; overflow:auto; font-family:var(--f-mono); font-size:11px; color:var(--text-2)}
.state.error code{font-family:var(--f-mono); font-size:12px}
.state.error b{color:var(--red)}
.item .im{display:flex; justify-content:space-between; align-items:center; margin-top:7px; font-size:11px; color:var(--text-3); gap:8px}
/* Video and Carousel Board cards: the labels wrap onto a second line instead of being cut off (Miki 2026-11-08) */
.item .im{flex-wrap:wrap; align-items:flex-end}
.item .im .tags{display:flex; flex-wrap:wrap; gap:4px; min-width:0; flex:1}
.tag.tpl{background:var(--teal-soft); color:var(--teal-text); font-weight:600}
.item .who{width:20px; height:20px; border-radius:50%; background:var(--teal-soft); color:var(--teal-text); font-family:var(--f-mono); font-size:9px; font-weight:700; display:grid; place-items:center; flex:none}
.item .who.ai{background:var(--green-soft); color:var(--green-text)}
.item .sched{font-family:var(--f-mono); color:var(--green-text)}

/* SOP */
.sop{display:flex; flex-direction:column; gap:8px}
.sop .sh{display:flex; justify-content:space-between; align-items:flex-start; gap:8px}
.sop h2{font-size:14px; line-height:1.3}
.sop .desc{font-size:13px; color:var(--text-2); flex:1}
.sop .info{display:flex; gap:12px; font-family:var(--f-mono); font-size:11px; color:var(--text-3)}
.sop .run{align-self:flex-start; margin-top:4px}
.sop .run[disabled]{cursor:progress; opacity:.85}
.sop .prog{height:3px; border-radius:2px; background:var(--line-soft); overflow:hidden; opacity:0; transition:opacity .2s}
.sop .prog span{display:block; height:100%; width:0; background:var(--teal); box-shadow:0 0 8px var(--teal); transition:width .5s linear}
.sop.running .prog{opacity:1}

/* Tables */
.table-wrap{overflow-x:auto}
.table{width:100%; border-collapse:collapse; font-size:13px}
.table th{text-align:left; font-weight:500; color:var(--text-3); font-size:12px; padding:8px 10px; border-bottom:1px solid var(--line-soft); white-space:nowrap}
.table th button{all:unset; cursor:pointer; display:inline-flex; gap:6px; align-items:center}
.table th button::after{content:""; width:0; height:0; border:4px solid transparent; border-top-color:var(--text-3); opacity:.35; transform:translateY(2px)}
.table th[aria-sort="descending"] button::after{opacity:1; border-top-color:var(--teal)}
.table th[aria-sort="ascending"] button::after{opacity:1; border-top-color:transparent; border-bottom-color:var(--teal); transform:translateY(-2px)}
.table td{padding:10px; border-bottom:1px solid var(--line-soft); color:var(--text-2); vertical-align:middle}
.table td:first-child{color:var(--text); font-weight:500}
.table .n{font-family:var(--f-mono); font-variant-numeric:tabular-nums; white-space:nowrap}
.table tr:last-child td{border-bottom:0}
.table tbody tr:hover td{background:var(--teal-soft)}
.table .sub{display:block; font-size:12px; color:var(--text-3); font-weight:400}

/* Side panel (activity feed, idea bank, suggestions) */
.side{
  position:sticky; top:0; height:100vh; width:var(--side-w); display:flex; flex-direction:column;
  background:var(--surface-solid); border-left:1px solid var(--line-soft);
}
.side .fh{padding:24px 18px 12px; display:flex; justify-content:space-between; align-items:baseline; border-bottom:1px solid var(--line-soft)}
.side ol, .side ul{list-style:none; margin:0; padding:10px 14px; overflow-y:auto; flex:1; display:flex; flex-direction:column; gap:4px}
.side li{display:grid; grid-template-columns:10px 1fr; gap:10px; padding:9px 6px; border-radius:6px; font-size:13px; line-height:1.4; color:var(--text-2); position:relative}
.side li:hover{background:var(--teal-soft)}
.side li i{margin-top:6px; width:8px; height:8px; border-radius:50%; background:var(--teal); box-shadow:0 0 8px var(--teal)}
.side li i.green{background:var(--green); box-shadow:0 0 8px var(--green)}
.side li i.yellow{background:var(--yellow); box-shadow:0 0 8px var(--yellow)}
.side li i.orange{background:var(--orange); box-shadow:0 0 8px var(--orange)}
.side li i.red{background:var(--red); box-shadow:0 0 8px var(--red)}
.side li i.grey{background:var(--text-3); box-shadow:none}
.side li .ft{font-family:var(--f-mono); font-size:11px; color:var(--text-3); margin-bottom:2px}
.side li b{font-weight:500; color:var(--text)}
.side li.new{animation:slide .45s cubic-bezier(.2,.7,.2,1)}
.side li .x{position:absolute; right:4px; top:6px; border:0; background:transparent; color:var(--text-3); font-size:16px; line-height:1; padding:2px 6px; border-radius:var(--r-sm); opacity:0; transition:opacity .15s}
.side li:hover .x, .side li .x:focus-visible{opacity:1}
.side li .x:hover{color:var(--red); background:var(--red-soft)}
@keyframes slide{from{opacity:0; transform:translateX(12px)}to{opacity:1; transform:none}}
.side .ff{padding:10px 18px 16px; border-top:1px solid var(--line-soft); font-size:12px; color:var(--text-3); display:flex; justify-content:space-between; gap:8px; align-items:center}
.side .ff b{font-family:var(--f-mono); font-weight:700; color:var(--text-2)}
.side .empty{padding:28px 14px; font-size:13px; color:var(--text-3); text-align:center; line-height:1.5}

/* Forms */
.field{display:flex; flex-direction:column; gap:6px; font-size:13px; color:var(--text-2)}
.field input, .field select, .field textarea{
  font:inherit; font-size:14px; color:var(--text); background:var(--surface-raised); border:1px solid var(--line-soft);
  border-radius:var(--r-sm); padding:8px 10px; width:100%; transition:border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus{outline:none; border-color:var(--line); box-shadow:0 0 0 3px var(--teal-soft)}
.field textarea{resize:vertical; min-height:96px; line-height:1.5}
.field input[type="datetime-local"]{color-scheme:dark}
:root[data-theme="light"] .field input[type="datetime-local"]{color-scheme:light}
.row{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.row.end{justify-content:flex-end}

/* Chips (filters) */
.chips{display:flex; gap:6px; flex-wrap:wrap}
.chip{border:1px solid var(--line-soft); background:transparent; color:var(--text-2); border-radius:999px; padding:4px 11px; font-size:12px; transition:all .15s}
.chip:hover{border-color:var(--line); color:var(--text)}
.chip[aria-pressed="true"]{border-color:var(--line); background:var(--teal-soft); color:var(--teal-text)}

/* Checklist */
.check{display:flex; gap:10px; align-items:flex-start; font-size:13px; padding:5px 0; color:var(--text-2); cursor:pointer}
.check input{accent-color:var(--teal); margin:3px 0 0; flex:none}
.check.done span{text-decoration:line-through; color:var(--text-3)}

/* Phase stepper */
.phases{display:grid; grid-template-columns:repeat(4,1fr); gap:6px; margin:12px 0 4px}
.phases div{position:relative; height:6px; border-radius:3px; background:var(--line-soft)}
.phases div.done{background:var(--green)}
.phases div.now{background:var(--teal); box-shadow:0 0 8px var(--teal)}
.phase-labels{display:grid; grid-template-columns:repeat(4,1fr); gap:6px; font-size:11px; color:var(--text-3); margin-bottom:12px}
.phase-labels .now{color:var(--teal-text); font-weight:500}
.phase-labels .done{color:var(--text-2)}

/* Hook library */
.hook{display:flex; flex-direction:column; gap:8px}
.hook .formula{font-family:var(--f-head); font-weight:700; font-size:15px; line-height:1.35}
.hook .formula em{font-style:normal; color:var(--teal-text)}
.hook .ex{font-size:13px; color:var(--text-2); border-left:3px solid var(--yellow); padding-left:10px; line-height:1.45}
.hook .hf{display:flex; justify-content:space-between; align-items:center; margin-top:auto; padding-top:4px}
.hook .use{font-size:11px; color:var(--text-3); font-family:var(--f-mono)}

/* Modal */
.modal-bg{position:fixed; inset:0; background:var(--scrim); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); display:none; place-items:center; z-index:40; padding:16px}
.modal-bg.open{display:grid}
.modal{width:min(440px, 100%); background:var(--surface-solid); border-radius:var(--r-lg); box-shadow:var(--glow-strong); padding:22px; display:flex; flex-direction:column; gap:14px}
.modal h2{font-size:18px}
.modal .lead{font-size:13px; color:var(--text-2)}

/* Toast */
.toast{
  position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(16px); opacity:0; z-index:60;
  background:var(--surface-raised); border:1px solid var(--line); box-shadow:var(--glow); color:var(--text);
  padding:10px 16px; border-radius:var(--r-md); font-size:13px; pointer-events:none; transition:opacity .25s, transform .25s; max-width:calc(100% - 32px);
}
.toast.show{opacity:1; transform:translateX(-50%)}

/* Motion */
.rise{opacity:0; transform:translateY(14px); animation:rise .65s cubic-bezier(.2,.7,.2,1) forwards; animation-delay:calc(var(--i, 0) * 70ms)}
@keyframes rise{to{opacity:1; transform:none}}
@media (prefers-reduced-motion: reduce){
  .rise{animation:none; opacity:1; transform:none}
  .side li.new{animation:none}
  .live i, .status.running i{animation:none}
  html{scroll-behavior:auto}
  .toast{transition:none}
}

/* Responsive */
@media (max-width:1240px){
  .grid-5{grid-template-columns:repeat(3,minmax(0,1fr))}
  .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kanban{grid-template-columns:repeat(5,minmax(170px,1fr)); overflow-x:auto; padding-bottom:6px}
  .briefing{grid-template-columns:1fr 1fr}
  .briefing > div:nth-child(2){border-right:0}
  .briefing > div:nth-child(1),.briefing > div:nth-child(2){border-bottom:1px solid var(--line-soft)}
}
@media (max-width:1060px){
  .shell{grid-template-columns:var(--nav-w) minmax(0,1fr)}
  .side{position:static; height:auto; width:auto; grid-column:2; border-left:0; border-top:1px solid var(--line-soft)}
  .side ol, .side ul{max-height:360px}
}
@media (max-width:760px){
  .grid-2,.grid-3,.grid-5{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .shell, .shell.no-side{grid-template-columns:1fr}
  .nav{position:fixed; top:auto; bottom:0; left:0; right:0; width:100%; height:60px; flex-direction:row; padding:0 10px; border-right:0; border-top:1px solid var(--line-soft); z-index:10}
  .nav .brand{display:none} .nav .spacer{display:none} .nav .theme{width:36px; height:36px}
  .nav ul{flex-direction:row; justify-content:space-around; flex:1}
  .nav a{width:46px; height:44px; gap:2px} .nav a .glyph{font-size:15px} .nav a .tip{display:none} .nav a[aria-current="page"]::before{display:none}
  .main{padding:16px 16px 84px}
  .side{grid-column:1; margin-bottom:60px}
  .grid-2,.grid-3,.grid-4,.grid-5{grid-template-columns:1fr}
  .briefing{grid-template-columns:1fr}
  .briefing > div{border-right:0; border-bottom:1px solid var(--line-soft)}
  .briefing > div:last-child{border-bottom:0}
  .atmos .logo{width:60vw}
  .atmos .logo.tr{right:-24vw; top:-10vh}
  .atmos .logo.bl{left:-24vw; bottom:-12vh}
  .toast{bottom:76px}
}

/* Live and sample data badges */
.live-badge{display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:700; letter-spacing:.04em; color:var(--green-text); background:var(--green-soft); border:1px solid rgba(117,207,32,.45); border-radius:999px; padding:2px 8px 2px 7px; white-space:nowrap}
.live-badge i{width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 8px var(--green); animation:pulse 2.2s ease-in-out infinite}
.sample-badge{display:inline-flex; align-items:center; font-size:11px; font-weight:500; color:var(--text-3); background:var(--line-soft); border-radius:999px; padding:2px 8px; white-space:nowrap}
.social .pulled{font-family:var(--f-mono); font-size:11px; color:var(--text-3); margin-top:4px}
@media (prefers-reduced-motion: reduce){ .live-badge i{animation:none} }

/* Loading, empty and error states for live cards */
.spinner{width:22px; height:22px; border-radius:50%; border:2px solid var(--line-soft); border-top-color:var(--teal); animation:spin .8s linear infinite; flex:none}
@keyframes spin{to{transform:rotate(360deg)}}
.state{display:flex; align-items:center; gap:12px; padding:18px 4px; font-size:13px; color:var(--text-2); min-height:96px}
.state.empty{flex-direction:column; justify-content:center; text-align:center; gap:6px; color:var(--text-3)}
.state.empty .sym{font-family:var(--f-symbol); font-weight:700; font-size:34px; color:var(--orange); line-height:1}
.state.empty b{color:var(--text-2); font-weight:500}
.state.error{color:var(--red); flex-wrap:wrap}
.state.error .btn{margin-left:auto}
[hidden]{display:none !important}
@media (prefers-reduced-motion: reduce){ .spinner{animation-duration:2s} }

/* Refresh button */
.btn .icon{display:inline-block; font-size:15px; line-height:1}
.btn.busy .icon{animation:spin 1s linear infinite}
.refresh-wrap{display:inline-flex; align-items:center; gap:10px; flex-wrap:wrap}
.refresh-wrap .stamp{font-family:var(--f-mono); font-size:11px; color:var(--text-3)}

/* Kanban cards that hold a script */
.item.has-script{cursor:pointer; border-color:rgba(117,207,32,.35)}
.item.has-script:hover{border-color:var(--green)}
.item .script-btn{padding:2px 8px; font-size:11px}

/* Pipeline nav badge: ideas waiting to be pulled in */
.nav a .nav-badge{position:absolute; top:4px; right:4px; min-width:16px; height:16px; padding:0 4px; border-radius:8px; background:var(--yellow); color:var(--ink); font-family:var(--f-mono); font-size:10px; font-weight:700; line-height:16px; text-align:center; box-shadow:0 0 8px rgba(255,205,0,.5)}

/* Audience bars (Instagram insights) */
.bars{display:flex; flex-direction:column; gap:6px}
.bars .br{display:grid; grid-template-columns:56px 1fr 44px; gap:8px; align-items:center; font-size:12px; color:var(--text-2)}
.bars .br .track{height:8px; border-radius:4px; background:var(--line-soft); overflow:hidden}
.bars .br .fill{height:100%; border-radius:4px; background:var(--teal); box-shadow:0 0 6px var(--teal)}
.bars .br.green .fill{background:var(--green); box-shadow:0 0 6px var(--green)}
.bars .br.orange .fill{background:var(--orange); box-shadow:0 0 6px var(--orange)}
.bars .br .n{font-family:var(--f-mono); text-align:right; color:var(--text-3)}
.aud h3{color:var(--text-3); margin-bottom:8px}

/* Script viewer (sheet scripts) */
.modal.wide{width:min(1180px, 100%); max-height:92vh}
.modal.wide .script-body{overflow:auto; max-height:calc(92vh - 260px); padding-right:4px}
.script-sec h3{color:var(--text-2); font-weight:700; font-family:var(--f-head); font-size:14px; margin:14px 0 8px}
.script-sec:first-child h3{margin-top:0}
.script-table{width:100%; table-layout:fixed; border-collapse:collapse; font-size:12.5px; line-height:1.45}
.script-table td{overflow-wrap:anywhere}
.script-table th{position:sticky; top:0; background:var(--surface-solid); text-align:left; font-weight:500; color:var(--text-3); font-size:11px; padding:6px 8px; border-bottom:1px solid var(--line-soft); white-space:nowrap; z-index:1}
.script-table td{padding:7px 8px; border-bottom:1px solid var(--line-soft); vertical-align:top; color:var(--text-2)}
.script-table td.scene{color:var(--text); font-weight:700; font-family:var(--f-head)}
.script-table td.time{font-family:var(--f-mono); color:var(--text-3)}
.script-table td .th{color:var(--text); display:block}
.script-table td .en{color:var(--text-3); display:block; font-size:11.5px; margin-top:2px}
.script-table td .el{display:inline-block; font-size:11px; font-weight:500; color:var(--teal-text); background:var(--teal-soft); border-radius:var(--r-sm); padding:1px 6px; margin-bottom:3px}
.script-table td.notes{}
.script-table td .dir{display:block; margin-top:8px; padding-top:6px; border-top:1px dashed var(--line-soft); color:var(--text)}
/* editable script cells */
.script-table .ed{cursor:text; border-radius:4px; padding:1px 3px; margin:-1px -3px; min-width:1em}
.script-table .ed:hover{background:var(--surface-raised)}
.script-table .ed:focus{outline:1px solid var(--teal-text); background:var(--surface-raised)}
.script-table .ed:empty::before{content:attr(data-ph); color:var(--text-3); pointer-events:none}
.script-table td .notes-text, .script-table td .dir-text{display:block; white-space:pre-line}
.script-table input.overlay{width:100%; font:inherit; font-size:12px; padding:5px 7px; border:1px solid var(--line-soft); border-radius:var(--r-sm); background:var(--surface-raised); color:var(--text)}
.script-table input.overlay:focus{outline:1px solid var(--teal-text)}
.script-table td.overlay a{display:inline-block; margin-top:4px; font-size:11.5px; color:var(--teal-text)}
.script-table td .dir b{display:block; font-size:11px; font-weight:500; color:var(--text-3); margin-bottom:2px}
.modal .lead.ref{margin:2px 0 4px; min-height:18px}
.modal .lead.ref span{color:var(--text-3)}
.modal .lead.ref a{color:var(--teal-text); overflow-wrap:anywhere}
.script-table tr.cont td.scene, .script-table tr.cont td.time{color:transparent}
.script-table tr.total td{color:var(--text-3); font-style:italic}
.item .scenes{font-family:var(--f-mono); color:var(--text-3)}
/* keep wide modals inside the viewport; tables scroll inside the modal body */
.modal-bg{overflow:auto}
.modal{min-width:0; max-width:100%}
.modal.wide{width:min(1180px, calc(100vw - 32px))}
.modal.wide .script-body{overflow:auto; -webkit-overflow-scrolling:touch}

/* narrow screens: each script row becomes a labelled block */
@media (max-width:760px){
  .script-table{table-layout:auto}
  .script-table thead{display:none}
  .script-table, .script-table tbody, .script-table tr, .script-table td{display:block; width:100%}
  .script-table tr{border:1px solid var(--line-soft); border-radius:var(--r-md); padding:8px 10px; margin-bottom:8px; background:var(--surface-raised)}
  .script-table td{border:0; padding:4px 0; white-space:normal; max-width:none}
  .script-table td::before{content:attr(data-l); display:block; font-size:10px; color:var(--text-3); letter-spacing:.02em; margin-bottom:1px}
  .script-table td.scene, .script-table td.time{display:inline-block; width:auto; margin-right:14px}
  .script-table tr.cont td.scene, .script-table tr.cont td.time{display:none}
}

/* Sheet footer notes under a script: label | text */
.notes-table{width:100%; table-layout:fixed; border-collapse:collapse; font-size:12.5px; line-height:1.5; margin-top:10px; border-top:1px solid var(--line)}
.notes-table td{padding:8px; border-bottom:1px solid var(--line-soft); vertical-align:top; color:var(--text-2); overflow-wrap:anywhere; white-space:pre-line}
.notes-table td.lbl{color:var(--text); font-weight:500; font-family:var(--f-head)}
.script-table.grid{table-layout:auto}
.script-table.grid td.time{color:var(--text-2)}
@media (max-width:760px){
  .notes-table, .notes-table tbody, .notes-table tr, .notes-table td{display:block; width:100%}
  .notes-table td{border:0; padding:4px 0}
  .notes-table tr{border-bottom:1px solid var(--line-soft); padding:6px 0}
  .notes-table td.lbl:empty{display:none}
}

/* Captions in the script viewer */
.caps .card{padding:12px 14px; display:flex; flex-direction:column; gap:12px}
.cap-block h3{font-family:var(--f-head); font-weight:700; font-size:13px; color:var(--text-2)}
.cap-text{margin:0; font:inherit; font-size:13px; line-height:1.55; color:var(--text); white-space:pre-wrap; overflow-wrap:anywhere; background:var(--surface-raised); border:1px solid var(--line-soft); border-radius:var(--r-sm); padding:10px 12px; overflow:auto}
/* the edit review of a quiz reel lists its captions: one under the other in the 660px window, each box scrolls, and the window itself scrolls (2026-10-12: the text spilled over the Final video row) */
#reviewBg .modal{max-height:92vh; overflow:auto}
#reviewBody .caps{grid-template-columns:1fr}
@media (max-width:1100px){ .caps{grid-template-columns:1fr} }

/* Meta ads */
.social .platform i.fb{background:#1877f2}
.grid-4.social-row{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1240px){ .grid-4.social-row{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:640px){ .grid-4.social-row{grid-template-columns:1fr} }
.ad-thumb{width:44px; height:44px; border-radius:6px; object-fit:cover; background:var(--line-soft); flex:none}
.ad-cell{display:flex; gap:10px; align-items:center}
.ad-cell .ad-name{color:var(--text); font-weight:500; display:block; max-width:360px}

/* Performance: post tables hidden until asked for */
.table-wrap.collapsed{display:none}
.content-toggle{gap:10px}

/* ---------- Sign-in (auth.js + login.html) ---------- */
html.auth-pending body{visibility:hidden}      /* pages stay hidden until the session check passes */
.nav .signout{
  width:42px; border:1px solid var(--line-soft); background:transparent; border-radius:var(--r-md); cursor:pointer;
  color:var(--text-3); display:flex; flex-direction:column; align-items:center; gap:4px; padding:7px 0 6px; margin-bottom:8px;
  font:inherit; transition:color .2s, border-color .2s;
}
.nav .signout svg{width:16px; height:16px}
.nav .signout span{font-size:9px; font-weight:500; line-height:1}
.nav .signout:hover, .nav .signout:focus-visible{color:var(--red); border-color:var(--red)}
.login-wrap{position:relative; z-index:1; min-height:100vh; display:grid; place-items:center; padding:24px 16px}
.login-card{width:100%; max-width:380px; padding:28px 26px 24px; display:flex; flex-direction:column; gap:14px}
.login-brand{display:flex; align-items:center; gap:12px; font-size:12px; color:var(--text-2); margin-bottom:4px}
.login-brand .mark{width:40px; height:40px; flex:none; display:grid; place-items:center}
.login-brand .mark img{width:100%; height:100%; object-fit:contain; display:block}
.login-card h1{font-size:26px}
.login-sub{font-family:var(--f-sub); color:var(--text-2); font-size:15px; margin-top:-8px}
.login-card .field input{padding:10px 12px; font-size:15px}
.login-error{color:var(--red); font-size:13px; background:var(--red-soft); border-radius:var(--r-sm); padding:8px 10px; line-height:1.45}
.login-btn{justify-content:center; padding:10px 14px; font-size:14px; margin-top:2px}
.login-note{font-size:12px; color:var(--text-3); line-height:1.5}
.bars .br > span:first-child{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}

/* trials and revenue card on Overview */
.briefing.biz li .t{min-width:76px}
.briefing.biz .lead .spark{height:44px}
.briefing.biz .bars .br{grid-template-columns:72px 1fr 34px}
.briefing .biz-state{position:absolute; inset:0; z-index:2; display:flex; align-items:center; justify-content:center; gap:12px; padding:20px 28px; text-align:center; font-size:13px; color:var(--text-2); background:var(--surface-solid); border-radius:inherit; line-height:1.5}
.briefing .biz-state.error{color:var(--red)} .briefing .biz-state a{color:var(--teal-text)}

/* "+" in the Ideas column: new video idea with a brief */
.col .col-add{width:20px; height:20px; border-radius:6px; border:1px solid var(--line); background:var(--teal-soft); color:var(--teal-text); font-family:var(--f-head); font-weight:700; font-size:15px; line-height:1; display:grid; place-items:center; cursor:pointer; padding:0; transition:background .2s, color .2s}
.col .col-add:hover{background:var(--teal); color:var(--white)}
#briefForm textarea{min-height:110px}
#briefForm input[type="file"]{padding:6px 8px; font-size:12px}

/* Scripting column: assigned / not assigned groups */
.col .sub h4{font-family:var(--f-body); font-size:11px; font-weight:500; color:var(--text-3); margin:0 4px 6px; display:flex; justify-content:space-between; align-items:center}
.col .sub h4 b{font-family:var(--f-mono); font-size:10px; color:var(--text-3)}
.col .sub + .sub{border-top:1px dashed var(--line-soft); margin-top:12px; padding-top:10px}
.tag.teal{background:var(--teal-soft); color:var(--teal-text)}
/* Video Board: every video card says Long-form or Short-form (Miki 2026-11-08) */
.tag.form-long{background:#51545F; color:#fff; font-weight:600}
.tag.form-short{background:var(--orange-soft); color:var(--orange-text); font-weight:600}
/* YouTube long / Short review: the player with "Adjust this scene" on pause, and the scene notes under it */
.yt-player{position:relative; background:#111; border-radius:12px; overflow:hidden}
.yt-player video{display:block; width:100%; max-height:62vh; background:#111}
.yt-player.vertical video{max-height:70vh}
.yt-player .yt-adj{position:absolute; top:12px; right:12px; box-shadow:0 6px 18px rgba(0,0,0,.35)}
.yt-note{display:flex; gap:8px; align-items:flex-start; margin-top:8px}
.yt-note textarea{flex:1; min-height:54px}
.yt-note .yt-jump{font-variant-numeric:tabular-nums; flex:none}
.yt-note .yt-note-text{flex:1; margin:4px 0 0; white-space:pre-line; font-size:14px}
.yt-note.done{opacity:.92}
.yt-player .scene-pop{background:var(--surface-solid, #fff); color:var(--text, #51545F); border-radius:12px; padding:12px; margin:10px; box-shadow:0 10px 30px rgba(0,0,0,.4)}
.yt-player .scene-pop textarea{width:100%; min-height:64px}
#reviewAdjust.is-waiting{opacity:.55}
/* Task assign select in the script windows */
.assign{font:inherit; font-size:13px; font-weight:500; padding:6px 28px 6px 10px; border:1px solid var(--line); background:var(--teal-soft); color:var(--teal-text); border-radius:var(--r-sm); max-width:190px; cursor:pointer}

/* schedule: calendar, channel ticks, thumbnail picker */
.cal-head{display:flex; justify-content:space-between; align-items:center; margin-top:4px}
.cal-head b{font-family:var(--f-head); font-size:15px}
.cal-grid{display:grid; grid-template-columns:repeat(7,1fr); gap:4px}
.cal-grid .dow{font-size:11px; color:var(--text-3); text-align:center; padding:4px 0}
.cal-grid .day{font:inherit; font-size:13px; color:var(--text); background:var(--surface-raised); border:1px solid var(--line-soft); border-radius:var(--r-sm); padding:9px 0; cursor:pointer}
.cal-grid .day:hover{border-color:var(--teal)}
.cal-grid .day.past{color:var(--text-3); opacity:.45; cursor:default}
.cal-grid .day.today{border-color:var(--teal); color:var(--teal-text); font-weight:700}
/* Vista Social posts already scheduled, on the Pick a day calendar */
.cal-grid .day{position:relative; display:flex; flex-direction:column; align-items:center; gap:3px; min-height:46px}
.vc-dots{display:flex; gap:2px; flex-wrap:wrap; justify-content:center; max-width:90%}
.vc-dots em{font-style:normal; font-size:9px; color:var(--text-3); line-height:6px}
.vc-dot{display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--text-3); flex:none}
.vc-dot.ig{background:#e1306c} .vc-dot.fb{background:#1877f2} .vc-dot.tt{background:var(--text); box-shadow:0 0 0 1px var(--line-soft)} .vc-dot.yt{background:#ff0000}
.vista-cal{display:flex; flex-direction:column; gap:8px; padding-top:10px; border-top:1px solid var(--line-soft)}
.vc-legend{font-size:11px; color:var(--text-3); align-items:center}
.vc-legend .vc-dot{margin-right:4px; vertical-align:middle}
.vc-day{display:flex; flex-direction:column; gap:6px; height:150px; overflow:auto}   /* fixed, so the popup does not jump while pointing at days */
.vc-post{display:grid; grid-template-columns:44px auto 1fr; gap:8px; align-items:start; font-size:12.5px; line-height:1.45}
.vc-post > span:nth-child(2){display:flex; gap:3px; padding-top:5px}
.vc-text{min-width:0; overflow-wrap:anywhere}
.checks{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 14px}
.checks .check{display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text); padding:6px 8px; border:1px solid var(--line-soft); border-radius:var(--r-sm); cursor:pointer}
.checks .check .social{display:inline-flex}
.checks .check .social i{width:18px; height:18px}
.thumbs{display:flex; gap:10px; flex-wrap:wrap}
.thumbs .thumb{display:flex; flex-direction:column; align-items:center; gap:4px; cursor:pointer; border:2px solid transparent; border-radius:var(--r-sm); padding:3px; font-size:11px; color:var(--text-3)}
.thumbs .thumb input{position:absolute; opacity:0; pointer-events:none}
.thumbs .thumb img{width:96px; border-radius:4px; display:block; background:#000}
.thumbs .thumb.picked{border-color:var(--teal); color:var(--teal-text)}
@media (max-width:640px){ .checks{grid-template-columns:1fr} }

/* ---- Research: viral video tables (six rows visible, the rest scroll) and the Analyze breakdown ---- */
.viral-card{padding:0; overflow:hidden}
.viral-wrap{overflow:auto; -webkit-overflow-scrolling:touch}
.viral-wrap thead th{position:sticky; top:0; background:var(--surface-solid); z-index:1}
.viral-table td.vt{max-width:460px}
.viral-table td.vt a{color:var(--text); text-decoration:none; font-weight:500; overflow-wrap:anywhere}
.viral-table td.vt a:hover{color:var(--teal-text); text-decoration:underline}
.viral-table td.vt .sub.th{color:var(--text-2)}
.viral-table td.vt .sub.hook{font-style:italic; margin-top:2px; overflow-wrap:anywhere}
.viral-table td.eng{white-space:nowrap; font-size:12px; color:var(--text-3)}
.viral-table td.eng span{margin-right:10px}
.viral-table td.eng span:last-child{margin-right:0}
.viral-state{margin:0 14px}
.viral-state[hidden]{display:none !important}
.sec-head .meta .btn{margin-left:8px; vertical-align:middle}
.analysis h3{font-size:14px; margin:18px 0 6px; color:var(--teal-text)}
.analysis h3:first-child{margin-top:4px}
.analysis p, .analysis li{font-size:13.5px; line-height:1.55; color:var(--text-2)}
.analysis p b, .analysis li b{color:var(--text)}
.analysis ul, .analysis ol{padding-left:20px; margin:4px 0 8px}
.analysis li{margin:3px 0}
.analysis table.md{width:100%; margin:6px 0 10px; font-size:13px}
.analysis table.md th{text-align:left; font-weight:500; color:var(--text-3); padding:6px 8px; border-bottom:1px solid var(--line-soft)}
.analysis table.md td{padding:6px 8px; border-bottom:1px solid var(--line-soft); vertical-align:top}
.analysis code{font-family:var(--f-mono); font-size:12px}
.file-pick{display:flex; flex-direction:column; gap:6px}
.file-pick input[type="text"]{flex:1; min-width:0}
.chips-list{display:flex; flex-wrap:wrap; gap:6px}
.chip-x{display:inline-flex; align-items:center; gap:4px; font-size:12px; padding:3px 4px 3px 10px; border-radius:999px; background:var(--teal-soft); color:var(--teal-text); max-width:100%}
.chip-x button{border:0; background:transparent; color:inherit; font-size:14px; line-height:1; padding:0 4px; cursor:pointer}
.tpl-pick select{max-width:320px} .tpl-pick small{display:block; margin-top:4px; font-size:12px; line-height:1.45}
/* Pipeline video templates: clickable cards, a red dot when a batch is ready, and the generated scripts */
.tpl-card{cursor:pointer; transition:transform .2s}
.tpl-card:hover{transform:translateY(-2px)}
.tpl-card:focus-visible{outline:2px solid var(--yellow); outline-offset:3px}
.tpl-card.has-dot::after{content:""; position:absolute; top:10px; right:10px; width:14px; height:14px; border-radius:50%; background:var(--red); border:2px solid var(--bg); box-shadow:0 0 0 3px rgba(250,89,93,.25)}
.vf-list{display:flex; flex-direction:column; gap:12px; max-height:62vh; overflow:auto; padding-right:4px}
.vf-script{padding:12px 14px; border-radius:16px; background:var(--surface-raised); box-shadow:inset 0 1px 1px var(--glass-hi, transparent)}
.vf-script h3{font-size:15px; margin:0 0 2px; color:var(--text)}
.vf-hook{display:flex; flex-direction:column; gap:2px; margin:8px 0; padding-left:10px; border-left:3px solid var(--yellow)}
.vf-hook b{font-size:15px; color:var(--text)} .vf-hook span{font-size:12.5px; color:var(--text-3)}
.vf-script summary{cursor:pointer; color:var(--teal-text); font-weight:500}
.vf-script pre{margin-top:8px; max-height:340px; overflow:auto}
.vf-table{overflow-x:auto; margin:8px 0}
.vf-table table{min-width:640px; font-size:13px}
.vf-table td{vertical-align:top; line-height:1.5; padding:7px 8px; border-bottom:1px solid var(--line-soft)}
.vf-table th{text-align:left; font-weight:500; color:var(--text-3); padding:6px 8px; border-bottom:1px solid var(--line-soft)}
#vfResClose{flex:none}
.vf-head{flex:1 1 auto; min-width:0; cursor:pointer; border-radius:10px}
.vf-head:focus-visible{outline:2px solid var(--yellow); outline-offset:3px}
.vf-caret{display:inline-block; width:16px; color:var(--teal-text); transition:transform .2s}
.vf-script.open .vf-caret{transform:rotate(90deg)}
.vf-head:hover h3{color:var(--teal-text)}
#vfResBg .modal > .row:first-child{flex-wrap:nowrap}
#vfResBg .modal > .row:first-child > div{flex:1 1 auto}
#vfResLead{overflow-wrap:anywhere}
/* Research idea bank: clickable ideas and the idea popup */
.side li.bank-idea{cursor:pointer}
.side li.bank-idea:focus-visible{outline:2px solid var(--yellow); outline-offset:1px}
.idea-detail .title-card{display:flex; flex-direction:column; gap:6px; margin:4px 0 10px}
.idea-detail .tc-line{border-left:4px solid var(--text-3); padding:4px 10px; border-radius:4px; background:var(--surface-raised); display:flex; flex-direction:column}
.idea-detail .tc-line b{font-size:16px; color:var(--text)}
.idea-detail .tc-line span{font-size:12.5px; color:var(--text-3)}
.idea-detail a{color:var(--teal-text)}
/* the reference video's analysis inside the Pipeline idea popup */
.ref-analysis{display:flex; flex-direction:column; gap:8px; padding:10px 12px; border-radius:14px; background:var(--surface-raised); box-shadow:inset 0 1px 1px var(--glass-hi, transparent)}
.ref-analysis summary{cursor:pointer; color:var(--teal-text); font-weight:500}
.ref-analysis .analysis{max-height:340px; overflow:auto; margin-top:8px; padding-right:6px}
.modal .del-card{color:var(--text-3)}
.modal .del-card:hover{color:var(--red); border-color:var(--red)}
.viral-table .analyze.ready{background:var(--teal-soft); color:var(--teal-text); border-color:var(--teal-text)}
.viral-table .analyze.busy{opacity:.7; cursor:progress}

/* =====================================================================
   Glass (Apple-style frosted glass, Miki 2026-09-30)
   One self-contained layer over everything above: same structure, BSD colours,
   light and dark. Delete this block to get the previous design back
   (also saved at commit 1a149bd, tag design-before-glass).
   ===================================================================== */
:root, :root[data-theme="dark"]{
  --bg:#11141b;
  --surface:rgba(255,255,255,.055);
  --surface-raised:rgba(255,255,255,.065);
  --glass-strong:rgba(26,30,41,.72);
  --glass-head:rgba(22,26,35,.86);
  --glass-edge:rgba(255,255,255,.10);
  --glass-hi:rgba(255,255,255,.10);
  --glass-hover:rgba(255,255,255,.08);
  --line-soft:rgba(255,255,255,.09);
  --glow:inset 0 1px 0 var(--glass-hi), 0 0 0 1px var(--glass-edge), 0 14px 38px rgba(0,0,0,.30);
  --glow-strong:inset 0 1px 0 var(--glass-hi), 0 0 0 1px rgba(0,196,186,.55), 0 14px 38px rgba(0,0,0,.34);
  --scrim:rgba(10,12,18,.45);
  --glow-teal:rgba(0,196,186,.36); --glow-green:rgba(117,207,32,.22); --glow-yellow:rgba(255,205,0,.15);
  --glass-nav:rgba(26,30,41,.58); --logo-alpha:.10;
  --pill:linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.04));
  --pill-edge:inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 0 1px rgba(255,255,255,.14), 0 6px 18px rgba(0,0,0,.28);
  --blur:blur(26px) saturate(170%);
  --r-sm:8px; --r-md:16px; --r-lg:22px;
  --nav-track:calc(var(--nav-w) + 20px);
}
:root[data-theme="light"]{
  --bg:#f7fafa;
  --surface:rgba(255,255,255,.58);
  --surface-raised:rgba(255,255,255,.66);
  --glass-strong:rgba(255,255,255,.80);
  --glass-head:rgba(255,255,255,.90);
  --glass-edge:rgba(255,255,255,.80);
  --glass-hi:rgba(255,255,255,.95);
  --glass-hover:rgba(255,255,255,.75);
  --line-soft:rgba(81,84,95,.10);
  --glow:inset 0 1px 0 var(--glass-hi), 0 0 0 1px var(--glass-edge), 0 0 0 1.5px rgba(81,84,95,.05), 0 12px 32px rgba(81,84,95,.10);
  --glow-strong:inset 0 1px 0 var(--glass-hi), 0 0 0 1px rgba(0,196,186,.7), 0 12px 32px rgba(81,84,95,.14);
  --scrim:rgba(81,84,95,.22);
  --glow-teal:rgba(0,196,186,.26); --glow-green:rgba(117,207,32,.20); --glow-yellow:rgba(255,205,0,.24);
  --glass-nav:rgba(255,255,255,.60); --logo-alpha:.13;
  --pill:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.62));
  --pill-edge:inset 0 1px 0 #fff, inset 0 -1px 0 rgba(81,84,95,.06), 0 0 0 1px rgba(81,84,95,.11), 0 8px 20px rgba(81,84,95,.16);
}

/* soft BSD colour light behind the glass; the grid is gone, the faded marks stay */
.atmos::before{display:none}
.atmos::after{
  inset:-10%;
  background:
    radial-gradient(38% 42% at 14% 10%, var(--glow-teal), transparent 70%),
    radial-gradient(34% 40% at 90% 84%, var(--glow-green), transparent 70%),
    radial-gradient(26% 30% at 74% 4%, var(--glow-yellow), transparent 70%),
    radial-gradient(30% 34% at 40% 96%, var(--glow-teal), transparent 72%);
  filter:blur(30px);
}

/* glass surfaces */
.card{backdrop-filter:var(--blur); -webkit-backdrop-filter:var(--blur); border-radius:var(--r-lg)}
.card.flat{box-shadow:var(--glow)}
.item{border-radius:12px; border-color:var(--line-soft); box-shadow:inset 0 1px 0 var(--glass-hi)}
.item:hover{border-color:var(--glass-edge); background:var(--glass-hover)}
.item.has-dot::after{border-color:var(--bg)}
.btn{border-radius:10px}
.btn:hover{box-shadow:0 6px 18px rgba(0,196,186,.28)}
.tag{border-radius:999px; padding:2px 9px}
.field input, .field select, .field textarea{backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px)}
.modal-bg{backdrop-filter:blur(10px) saturate(140%); -webkit-backdrop-filter:blur(10px) saturate(140%)}
.modal{background:var(--glass-strong); backdrop-filter:blur(34px) saturate(180%); -webkit-backdrop-filter:blur(34px) saturate(180%); box-shadow:var(--glow)}
.toast{background:var(--glass-strong); backdrop-filter:var(--blur); -webkit-backdrop-filter:var(--blur); border-color:var(--glass-edge); box-shadow:var(--glow); border-radius:14px}
.script-table th, .viral-wrap thead th{background:var(--glass-head); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px)}
.briefing .biz-state{background:var(--glass-strong); backdrop-filter:var(--blur); -webkit-backdrop-filter:var(--blur)}
.table tbody tr:hover td{background:var(--glass-hover)}

/* layout: the nav and side panel float as glass panes with a gap around them */
.shell{grid-template-columns:var(--nav-track) minmax(0,1fr) calc(var(--side-w) + 12px)}
.shell.no-side{grid-template-columns:var(--nav-track) minmax(0,1fr)}
.side{
  top:12px; height:calc(100vh - 24px); margin:12px 12px 12px 0; width:var(--side-w);
  background:var(--surface); backdrop-filter:var(--blur); -webkit-backdrop-filter:var(--blur);
  border-left:0; border-radius:var(--r-lg); box-shadow:var(--glow); overflow:hidden;
}

/* glass sidebar: slim icons, slides wider with the page names on hover or keyboard focus */
.nav{
  top:12px; height:calc(100vh - 24px); margin:12px 0 12px 12px; padding:14px 0 12px;
  align-items:stretch; overflow:hidden; border-right:0; border-radius:var(--r-lg);
  background:var(--surface); backdrop-filter:var(--blur); -webkit-backdrop-filter:var(--blur); box-shadow:var(--glow);
  transition:width .32s cubic-bezier(.2,.7,.2,1), background .32s, box-shadow .32s;
}
.nav:hover, .nav:has(:focus-visible){
  width:212px; background:var(--glass-nav); box-shadow:var(--glow), 0 22px 60px rgba(0,0,0,.22);
  backdrop-filter:blur(30px) saturate(180%); -webkit-backdrop-filter:blur(30px) saturate(180%);
}
.nav .brand{margin:0 0 20px 11px; flex:none}
.nav ul{padding:0 8px; gap:3px}
.nav li{justify-content:stretch}
.nav a{width:100%; height:44px; flex-direction:row; justify-content:flex-start; gap:0; border-radius:12px}
.nav a .glyph{flex:0 0 46px; display:grid; place-items:center}
.nav a::after{font-size:14px; font-weight:500; letter-spacing:0; white-space:nowrap; transition:opacity .2s}
.nav a::after, .nav a[aria-current="page"]::after{opacity:0}
.nav:hover a::after, .nav:hover a[aria-current="page"]::after,
.nav:has(:focus-visible) a::after, .nav:has(:focus-visible) a[aria-current="page"]::after{opacity:1}
.nav a .tip{display:none}
/* hovered page: a small glass pill (light sheen on top, bright edge, soft shadow) instead of a flat fill */
.nav a:hover{
  color:var(--text); background:var(--pill); box-shadow:var(--pill-edge);
  backdrop-filter:blur(14px) saturate(180%); -webkit-backdrop-filter:blur(14px) saturate(180%);
}
.nav a[aria-current="page"]{
  color:var(--teal-text); background:linear-gradient(180deg, rgba(0,196,186,.24), rgba(0,196,186,.10));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22), inset 0 0 0 1px rgba(0,196,186,.40), 0 6px 16px rgba(0,196,186,.14);
}
.nav a[aria-current="page"]::before{display:none}
.nav a .nav-badge{top:5px; left:30px; right:auto}
.nav .theme, .nav .signout{margin-left:10px; flex:none; border-color:var(--line-soft); border-radius:12px}
.nav .theme:hover{background:var(--glass-hover)}
@media (prefers-reduced-motion: reduce){ .nav, .nav a::after{transition:none} }

@media (max-width:1060px){
  .shell{grid-template-columns:var(--nav-track) minmax(0,1fr)}
  .side{position:static; height:auto; width:auto; margin:0 12px 12px 0}
}
/* phones: the nav becomes a floating glass dock at the bottom */
@media (max-width:640px){
  .shell, .shell.no-side{grid-template-columns:1fr}
  .nav, .nav:hover, .nav:has(:focus-visible){
    position:fixed; top:auto; left:10px; right:10px; bottom:10px; width:auto; height:62px; margin:0;
    flex-direction:row; align-items:center; padding:0 8px; border-radius:22px;
  }
  .nav ul{flex-direction:row; justify-content:space-around; padding:0}
  .nav li{justify-content:center}
  .nav a{width:46px; flex-direction:column; justify-content:center; gap:2px}
  .nav a .glyph{flex:none}
  .nav a::after, .nav:hover a::after, .nav a[aria-current="page"]::after, .nav:hover a[aria-current="page"]::after{font-size:9px; opacity:.85}
  .nav a .nav-badge{left:auto; right:2px}
  .nav .theme, .nav .signout{margin-left:0}
  .side{margin:0 0 72px}
}

/* ---------- Liquid glass (Apple iOS 26 style, Miki 2026-09-30) ----------
   Clearer glass with a light-catching rim (bright top-left and bottom-right), a soft inner glow for thickness,
   and capsule-shaped controls. Delete this block to go back to the frosted glass above. */
:root, :root[data-theme="dark"]{
  --surface:rgba(255,255,255,.045);
  --surface-raised:rgba(255,255,255,.06);
  --blur:blur(20px) saturate(190%) brightness(1.06);
  --rim:linear-gradient(145deg, rgba(255,255,255,.70), rgba(255,255,255,.14) 26%, rgba(255,255,255,.03) 55%, rgba(255,255,255,.12) 80%, rgba(255,255,255,.48));
  --glow:inset 0 1px 1px rgba(255,255,255,.20), inset 0 -1px 1px rgba(255,255,255,.07), inset 0 0 26px rgba(255,255,255,.045), 0 18px 44px rgba(0,0,0,.34);
  --glow-strong:inset 0 1px 1px rgba(255,255,255,.20), inset 0 0 26px rgba(0,196,186,.10), 0 0 0 1px rgba(0,196,186,.55), 0 18px 44px rgba(0,0,0,.36);
  --item-glow:inset 0 1px 1px rgba(255,255,255,.16), inset 0 0 14px rgba(255,255,255,.035), 0 6px 16px rgba(0,0,0,.18);
  --glow-teal:rgba(0,196,186,.42); --glow-green:rgba(117,207,32,.26); --glow-yellow:rgba(255,205,0,.17);
  --r-lg:26px;
}
:root[data-theme="light"]{
  --surface:rgba(255,255,255,.34);
  --surface-raised:rgba(255,255,255,.55);
  --blur:blur(20px) saturate(180%) brightness(1.04);
  --rim:linear-gradient(145deg, #fff, rgba(255,255,255,.55) 30%, rgba(81,84,95,.10) 58%, rgba(255,255,255,.5) 80%, #fff);
  --glow:inset 0 1px 1px #fff, inset 0 0 22px rgba(255,255,255,.42), 0 0 0 1px rgba(81,84,95,.05), 0 16px 38px rgba(81,84,95,.13);
  --glow-strong:inset 0 1px 1px #fff, inset 0 0 24px rgba(0,196,186,.12), 0 0 0 1px rgba(0,196,186,.7), 0 16px 38px rgba(81,84,95,.15);
  --item-glow:inset 0 1px 1px #fff, inset 0 0 12px rgba(255,255,255,.6), 0 0 0 1px rgba(81,84,95,.06), 0 6px 14px rgba(81,84,95,.09);
}
/* the rim: a 1px gradient ring drawn on top of each glass pane */
.card::before, .nav::before, .side::before, .modal::before{
  content:""; position:absolute; inset:0; border-radius:inherit; padding:1px; pointer-events:none;
  background:var(--rim);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
}
.modal{position:relative}
/* the highlighted panels (Overview trials and revenue, Ads summary) get the same rim as every other pane, no teal edge */
.card.strong{box-shadow:var(--glow)}
.item{box-shadow:var(--item-glow); border-top-color:transparent; border-right-color:transparent; border-bottom-color:transparent; border-radius:14px}
.item:hover{border-top-color:transparent; border-right-color:transparent; border-bottom-color:transparent; box-shadow:var(--item-glow), 0 0 0 1px var(--glass-edge)}
/* capsules, like the iOS controls; the sidebar page highlights keep their rounded-rectangle shape (Miki) */
.btn, .tag, .assign{border-radius:999px}
.btn.ghost{background:var(--surface-raised); box-shadow:inset 0 1px 1px var(--glass-hi); backdrop-filter:blur(12px) saturate(180%); -webkit-backdrop-filter:blur(12px) saturate(180%)}
.nav .theme{border-radius:50%; background:var(--surface-raised); box-shadow:inset 0 1px 1px var(--glass-hi)}
.nav .signout{border-radius:16px; background:var(--surface-raised); box-shadow:inset 0 1px 1px var(--glass-hi)}
.field input, .field select, .field textarea{border-radius:14px}
@media (max-width:1060px){ .side{position:relative} }
/* schedule window (Miki 2026-10-01): carousel slides stay small on one line; a video gets the whole-video filmstrip with a slider */
#schedThumbs{flex-wrap:nowrap; overflow-x:auto; gap:6px; padding-bottom:2px}
#schedThumbs .thumb{flex:0 0 auto}
#schedThumbs .thumb img{width:64px}
#schedThumbs .scrub{display:flex; gap:14px; align-items:center; width:100%; min-width:0}
.scrub-pick{margin:0; flex:0 0 auto; display:flex; flex-direction:column; align-items:center; gap:4px}
.scrub-pick img{width:84px; border-radius:6px; display:block; background:#000; outline:2px solid var(--teal); outline-offset:2px}
.scrub-pick figcaption{font-family:var(--f-mono); font-size:11px; color:var(--teal-text)}
.scrub-side{flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:6px}
.scrub-strip{position:relative; display:flex; border-radius:6px; overflow:hidden; background:#000}
.scrub-strip img{flex:1 1 0; min-width:0; height:64px; object-fit:cover; display:block}
.scrub-strip input[type=range]{position:absolute; inset:0; width:100%; height:100%; margin:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; -webkit-appearance:none; appearance:none; cursor:pointer}
.scrub-strip input[type=range]:focus{outline:none; box-shadow:none; border:0}
.scrub-strip input[type=range]::-webkit-slider-runnable-track{height:100%; background:transparent}
.scrub-strip input[type=range]::-webkit-slider-thumb{-webkit-appearance:none; width:6px; height:64px; border-radius:3px; background:#fff; box-shadow:0 0 0 2px var(--teal), 0 2px 6px rgba(0,0,0,.4)}
.scrub-strip input[type=range]::-moz-range-thumb{width:6px; height:64px; border:0; border-radius:3px; background:#fff; box-shadow:0 0 0 2px var(--teal)}
.scrub-strip input[type=range]::-moz-range-track{background:transparent}
@media (max-width:560px){ #schedThumbs .scrub{flex-direction:column; align-items:stretch} .scrub-pick{align-self:center} }
/* a modal that scrolls itself: the absolutely placed rim scrolled with the content and drew a line across it; use a fixed inset ring instead */
.modal[style*="overflow"]::before{display:none}
.modal[style*="overflow"]{box-shadow:var(--glow), inset 0 0 0 1px var(--glass-edge)}
/* Sidebar v2 (Miki 2026-10-01): the rail stays slim; hovering a page pops only its name out to the right in a liquid-glass pill.
   The previous sidebar (the whole rail slides open with every name) is git tag "sidebar-expanding": delete this block to get it back. */
@media (min-width:641px){
  .nav, .nav:hover, .nav:has(:focus-visible){
    width:var(--nav-w); overflow:visible; background:var(--surface); box-shadow:var(--glow);
    backdrop-filter:var(--blur); -webkit-backdrop-filter:var(--blur);
  }
  .nav .brand{margin:0 auto 20px}
  .nav ul{padding:0 8px}
  .nav a{justify-content:center}
  .nav a .glyph{flex:0 0 auto}
  .nav a::after, .nav:hover a::after, .nav a[aria-current="page"]::after, .nav:hover a[aria-current="page"]::after{display:none}
  .nav a .nav-badge{top:4px; left:auto; right:4px}
  .nav .theme, .nav .signout{margin-left:auto; margin-right:auto}
  .nav a .tip{
    display:block; position:absolute; left:calc(100% + 16px); top:50%; transform:translate(-6px, -50%) scale(.96); transform-origin:left center;
    padding:7px 14px; border-radius:999px; white-space:nowrap; font-family:var(--f-body); font-size:13px; font-weight:500; color:var(--text);
    background:var(--glass-nav); border:0; box-shadow:var(--pill-edge);
    backdrop-filter:blur(24px) saturate(180%); -webkit-backdrop-filter:blur(24px) saturate(180%);
    opacity:0; pointer-events:none; z-index:60; transition:opacity .16s, transform .22s cubic-bezier(.2,.7,.2,1);
  }
  .nav a:hover .tip, .nav a:focus-visible .tip{opacity:1; transform:translate(0, -50%) scale(1)}
}
@media (prefers-reduced-motion: reduce){ .nav a .tip{transition:none} }

/* Schedule: tick several channels (2026-10-12); one caption box per channel group */
.chk-list{display:flex; flex-wrap:wrap; gap:8px 18px; padding:6px 0 2px}
.chk{display:inline-flex; align-items:center; gap:8px; font-size:14px; cursor:pointer}
.chk input{accent-color:var(--teal); width:16px; height:16px; margin:0}
.cap-group{margin-top:10px}
