  /* The colours come from the theme (theme.css); these two mean the same in every theme. */
  :root { --bad:#e5604d; --good:#58b368; --side-w:15rem; }
  * { box-sizing: border-box; }
  /* An island's wrapper (and its children's) takes no part in the layout: what is inside it is laid
     out as if the wrapper were not there, as the page was before it was split into islands. */
  leptos-island, leptos-children { display:contents; }
  body { margin:0; font:15px/1.5 system-ui, sans-serif; background:var(--bg); color:var(--text); }
  /* The frame: a menu down the side, a bar across the top, and the page. */
  .app { display:flex; min-height:100vh; }
  .side { position:sticky; top:0; align-self:flex-start; height:100vh; width:var(--side-w); flex:0 0 var(--side-w); background:var(--sidebar);
    border-right:1px solid var(--line); display:flex; flex-direction:column; overflow-y:auto; overflow-x:hidden; transition:width .15s, flex-basis .15s; }
  .brandrow { display:flex; align-items:center; gap:.4rem; padding:.9rem .8rem .6rem .9rem; }
  .brand { display:flex; align-items:center; gap:.6rem; flex:1; min-width:0; color:var(--text); text-decoration:none; font-weight:700; font-size:1.05rem; letter-spacing:.01em; }
  .mini-btn { background:transparent; color:var(--faint); padding:.1rem .45rem; font-size:1.1rem; font-weight:400; }
  .mini-btn:hover { color:var(--text); }
  .close-btn { display:none; background:transparent; color:var(--muted); padding:.1rem .5rem; font-size:1.05rem; font-weight:400; }
  .nav-label { padding:.9rem 1rem .25rem; font-size:.7rem; letter-spacing:.09em; text-transform:uppercase; color:var(--faint); white-space:nowrap; }
  .side a.item .fold { margin-left:auto; background:transparent; border:0; color:var(--muted); padding:0 .3rem; font-size:.8rem; }
  .side a.item.sub { padding-left:2.9rem; padding-top:.28rem; padding-bottom:.28rem; font-size:.92em; }
  .side a.item.sub .ico { display:none; }
  .nav-mini .side a.item.sub, .nav-mini .side a.item .fold { display:none; }
  .side a.item { display:flex; align-items:center; gap:.7rem; padding:.42rem .8rem .42rem .75rem; margin:.05rem .4rem; border-radius:6px; color:var(--muted);
    text-decoration:none; border-left:3px solid transparent; white-space:nowrap; cursor:pointer; }
  .side a.item:hover { background:var(--panel); color:var(--text); }
  .side a.item.current { background:var(--panel-hi); color:var(--text); border-left-color:var(--accent); }
  .side a.item.alert .lbl::after { content:'•'; color:var(--bad); margin-left:.4rem; }
  .side a.item.soon .lbl { opacity:.6; }
  .side .ico { width:1.4rem; text-align:center; flex:0 0 1.4rem; font-size:1rem; }
  /* The menu's icons: an outline at rest; filled in under the pointer and on the page one is on. */
  .side .ico { display:flex; align-items:center; justify-content:center; }
  .mi { display:block; overflow:visible; }
  .mi .s { fill:transparent; stroke:currentColor; stroke-width:1.6; stroke-linejoin:round; transition:fill .12s; }
  .mi .c { fill:transparent; stroke:currentColor; stroke-width:1.4; stroke-linejoin:round; }
  .mi .k { fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
  .side a.item:hover { --cut:var(--panel); } .side a.item.current { --cut:var(--panel-hi); }
  .side a.item:hover .mi .s, .side a.item.current .mi .s { fill:currentColor; }
  .side a.item:hover .mi .c, .side a.item.current .mi .c { fill:var(--cut); stroke:var(--cut); stroke-width:.6; }
  .side a.item:hover .mi .k:not(.o), .side a.item.current .mi .k:not(.o) { stroke:var(--cut); }
  .side a.item.current .mi { color:var(--accent); }
  @media (prefers-reduced-motion: reduce) { .mi .s { transition:none; } }
  .side .spacer { flex:1; }
  .nav-mini .side { width:3.6rem; flex-basis:3.6rem; }
  .nav-mini .side .lbl, .nav-mini .nav-label { display:none; }
  /* A heading of the menu that is itself a way somewhere: Services. */
  .side a.item.nav-head { margin-top:.6rem; padding-top:.35rem; padding-bottom:.25rem; font-size:.7rem; letter-spacing:.09em; text-transform:uppercase; color:var(--faint); }
  .side a.item.nav-head .ico { display:none; }
  .side a.item.nav-head .lbl::after { content:'\203a'; margin-left:.45rem; font-size:1rem; line-height:0; opacity:.7; }
  .side a.item.nav-head:hover, .side a.item.nav-head.current { color:var(--text); }
  .nav-mini .side a.item.nav-head .ico { display:flex; }
  .nav-mini .side a.item { justify-content:center; padding-left:0; padding-right:0; }
  .nav-mini .mini-btn { transform:rotate(180deg); }
  .nav-mini .brandrow { flex-direction:column; padding-left:.4rem; padding-right:.4rem; }
  .content { flex:1; min-width:0; display:flex; flex-direction:column; }
  header { position:sticky; top:0; z-index:5; display:flex; align-items:center; gap:.8rem; padding:.6rem 1.4rem; border-bottom:1px solid var(--line);
    background:color-mix(in srgb, var(--bg-deep) 88%, transparent); backdrop-filter:blur(6px); }
  header h1 { font-size:1.15rem; margin:0; font-weight:600; white-space:nowrap; flex:0 1 auto; overflow:hidden; text-overflow:ellipsis; min-width:3rem; }
  #find { position:relative; flex:1 1 12rem; max-width:36rem; margin:0 auto; }
  #q { border-radius:999px; padding:.45rem 1rem; background:var(--bg-deep); }
  #q:focus { outline:2px solid var(--accent); outline-offset:1px; }
  #q-results { position:absolute; left:0; right:0; top:calc(100% + .4rem); background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:.3rem;
    box-shadow:0 10px 30px rgba(0,0,0,.45); z-index:30; max-height:70vh; overflow-y:auto; }
  .hit { display:flex; align-items:center; gap:.5rem; padding:.45rem .6rem; border-radius:6px; }
  .hit:hover, .hit.go { background:var(--panel-hi); }
  .hit.go { cursor:pointer; }
  .hit > :first-child { flex:1; min-width:0; }
  .hit .muted { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .hit button { padding:.15rem .5rem; font-size:.8rem; white-space:nowrap; }
  body.bare #find, .app.bare #find { display:none; }
  .found { animation:found 2.2s ease-out; }
  @keyframes found { from { background:color-mix(in srgb, var(--accent) 35%, transparent); } to { background:transparent; } }
  #menu-btn { display:none; background:transparent; color:var(--text); font-size:1.3rem; padding:.1rem .5rem; }
  main { width:100%; max-width:960px; margin:1.4rem auto; padding:0 1.4rem; }
  body.bare .side, body.bare #menu-btn, body.bare #user, .app.bare .side, .app.bare #menu-btn, .app.bare #user { display:none; }
  #user { position:relative; margin-left:auto; }
  #user-btn { display:flex; align-items:center; gap:.5rem; padding:.25rem .6rem .25rem .3rem; border-radius:999px; }
  /* The shape a person chose for their picture: a circle unless they said otherwise. */
  .sh1 { border-radius:0 !important; } .sh2 { border-radius:18% !important; }
  .sh3 { border-radius:0 !important; clip-path:inset(0 14% round 9%); }
  .sh4 { border-radius:0 !important; clip-path:url(#clip-heart); }
  #loadbar { position:fixed; left:0; top:0; height:3px; width:100%; z-index:70; background:linear-gradient(90deg, transparent, var(--accent), transparent); background-size:40% 100%; background-repeat:no-repeat; animation:loadbar 1.1s linear infinite; }
  #loadbar[hidden], #loadfail[hidden] { display:none; }
  @keyframes loadbar { from { background-position:-40% 0; } to { background-position:140% 0; } }
  #loadfail { position:fixed; left:50%; transform:translateX(-50%); bottom:1rem; z-index:70; max-width:min(40rem, 92vw); background:var(--panel); border:1px solid var(--bad, #e5534b); border-radius:8px; padding:.6rem .8rem; box-shadow:0 6px 24px rgba(0,0,0,.4); }
  #cropper { position:fixed; inset:0; z-index:57; background:rgba(0,0,0,.8); display:flex; align-items:flex-start; justify-content:center; padding:1rem; overflow-y:auto; }
  #cropper[hidden] { display:none; }
  #crop-stage { position:relative; width:min(300px, 80vw); aspect-ratio:1; margin:0 auto; background:#000; border-radius:8px; overflow:hidden; touch-action:none; cursor:grab; user-select:none; }
  #crop-stage img { position:absolute; left:0; top:0; transform-origin:0 0; max-width:none; pointer-events:none; }
  #crop-veil { position:absolute; inset:0; pointer-events:none; }
  .avatar { display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background:var(--accent); color:var(--accent-text); font-weight:700; object-fit:cover; flex:0 0 auto; }
  .who-name { color:var(--text); max-width:11rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  #user-menu { position:absolute; right:0; top:calc(100% + .4rem); min-width:15rem; max-width:calc(100vw - 1rem); background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:.3rem;
    box-shadow:0 10px 30px rgba(0,0,0,.45); z-index:30; }
  #user-menu a[role=menuitem] { text-decoration:none; }
  #user-menu button, #user-menu a[role=menuitem] { display:block; width:100%; text-align:left; background:transparent; color:var(--text); font-weight:400; padding:.5rem .7rem; }
  #user-menu button:hover, #user-menu a[role=menuitem]:hover { background:var(--panel-hi); }
  .role-switch { display:inline-flex; align-items:center; gap:.45rem; cursor:pointer; }
  #user-menu .mini-switch { display:inline-block; width:26px; height:14px; padding:0; border-radius:999px; background:var(--line); position:relative; transition:background .18s ease; }
  #user-menu .mini-switch:hover { background:var(--line); }
  #user-menu .mini-switch::after { content:''; position:absolute; top:2px; left:2px; width:10px; height:10px; border-radius:50%; background:var(--text); transition:transform .18s ease; }
  #user-menu .mini-switch.on, #user-menu .mini-switch.on:hover { background:var(--accent); }
  #user-menu .mini-switch.on::after { transform:translateX(12px); background:var(--accent-text); }
  .user-head { display:flex; align-items:center; gap:.7rem; padding:.6rem .7rem .7rem; border-bottom:1px solid var(--line); margin-bottom:.3rem; }
  .filebtn span { display:inline-block; padding:.5rem .9rem; border-radius:6px; background:var(--accent); color:var(--accent-text); font-weight:600; cursor:pointer; }
  .filebtn span:hover { background:var(--accent-hi); }
  @media (max-width: 560px) { .who-name { display:none; } }
  body.bare main, .app.bare main { max-width:460px; margin-top:4rem; }
  a { color:var(--link); }
  /* A page that is not built yet says what it will be. */
  .soon-page h2 { font-size:1.3rem; }
  .soon-page ul { margin:.4rem 0 0; padding-left:1.2rem; color:var(--muted); }
  .soon-tag { display:inline-block; font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; color:var(--accent-text); background:var(--accent);
    border-radius:4px; padding:.05rem .45rem; margin-left:.5rem; vertical-align:middle; }
  .grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(calc(8.6rem * var(--poster, 1)), 1fr)); gap:1.1rem .9rem; }
  .grid .card { flex:none; }
  #tour { position:fixed; z-index:70; max-width:20rem; background:var(--panel-hi); color:var(--text); border:1px solid var(--accent); border-radius:10px; padding:.9rem 1rem; box-shadow:0 8px 30px rgba(0,0,0,.55); }
  #tour[hidden] { display:none; }
  .tour-on { outline:2px solid var(--accent); outline-offset:3px; border-radius:6px; }
  .help-topic { border-top:1px solid var(--line); padding:.2rem 0; }
  .help-topic summary { cursor:pointer; padding:.55rem 0; font-weight:600; }
  .help-topic p { margin:.2rem 0 .7rem; max-width:52rem; line-height:1.55; color:var(--muted); }
  .btnlink { color:var(--link); text-decoration:none; font-weight:600; }
  .btnlink:hover { text-decoration:underline; }
  .card.opens { cursor:pointer; }
  .card.opens:hover .art, .card.opens:focus .art { border-color:var(--accent); }
  .tp { display:grid; grid-template-columns:minmax(9rem, 17rem) 1fr; gap:2rem; align-items:start; position:relative; }
  .tp-back { position:absolute; inset:-2rem -2rem auto -2rem; height:22rem; background-size:cover; background-position:center 20%; opacity:.18; pointer-events:none; -webkit-mask-image:linear-gradient(#000, transparent); mask-image:linear-gradient(#000, transparent); }
  .tp-poster { aspect-ratio:2/3; border-radius:8px; overflow:hidden; background:var(--panel-hi); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; color:var(--muted); text-align:center; padding:.5rem; position:relative; }
  .tp-poster img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
  .tp h1 { font-size:2rem; margin:0 0 .3rem; line-height:1.15; }
  .tp-ep { font-size:1.25rem; font-weight:600; color:var(--muted); margin:0 0 .5rem; }
  .card-link { color:inherit; text-decoration:none; }
  .card-link:hover, .card-link:focus-visible { text-decoration:underline; color:var(--text); }
  .ep.opens { cursor:pointer; }
  .ep.opens:hover { background:var(--panel-hi); }
  .tp-meta { color:var(--muted); display:flex; gap:.9rem; flex-wrap:wrap; margin-bottom:1rem; }
  .tp-acts { display:flex; gap:.5rem; flex-wrap:wrap; margin:1.1rem 0; }
  .tp-thumbs { display:inline-flex; gap:.25rem; }
  .tp-thumbs button { font-size:1.05rem; padding:.45rem .7rem; }
  .tp-thumbs button.on { color:var(--accent-text); background:var(--accent); border-color:var(--accent); }
  .tp-over { max-width:52rem; line-height:1.55; }
  .scenes { display:flex; gap:.5rem; overflow-x:auto; margin-top:1.6rem; padding-bottom:.4rem; }
  .scene { flex:none; border-radius:6px; background-color:var(--panel); background-repeat:no-repeat; position:relative; }
  .scene span { position:absolute; right:.3rem; bottom:.25rem; font-size:.72rem; background:rgba(0,0,0,.65); color:#fff; padding:0 .3rem; border-radius:4px; }
  .trk-box { margin-top:1.6rem; max-width:52rem; }
  .trk-box summary { cursor:pointer; font-weight:600; }
  .trk-file { margin-top:.7rem; padding:.7rem .9rem; background:var(--panel); border:1px solid var(--line); border-radius:8px; }
  .trk { display:flex; gap:.8rem; font-size:.9rem; padding:.12rem 0; }
  .trk-n { color:var(--muted); min-width:5.2rem; flex:none; }
  .tp-chips { display:flex; gap:.4rem; flex-wrap:wrap; margin-top:1rem; }
  .tp-chips a { background:var(--chip); border-radius:999px; padding:.15rem .7rem; font-size:.8rem; color:var(--muted); text-decoration:none; }
  .tp-chips a:hover { color:var(--text); }
  .tp-tagline { font-style:italic; color:var(--muted); margin:-.2rem 0 .5rem; }
  .tp-facts { font-size:.9rem; margin-top:.8rem; max-width:52rem; }
  .tp-bio { max-width:52rem; line-height:1.55; white-space:pre-line; margin:.6rem 0 0; }
  .tp-chips span { background:var(--chip); border-radius:999px; padding:.15rem .7rem; font-size:.8rem; color:var(--muted); }
  .filmo-list { max-width:52rem; }
  .filmo-age { font-size:.95rem; margin:1.2rem 0 .3rem; color:var(--accent); }
  .filmo-list .filmo-age:first-child { margin-top:.2rem; }
  .filmo-row { display:flex; gap:.9rem; align-items:center; padding:.45rem .3rem; border-top:1px solid var(--line); color:var(--text); text-decoration:none; border-radius:6px;
    transition:background .18s ease, transform .2s var(--spring, ease); }
  .filmo-row:hover { background:var(--panel-hi); transform:translateX(4px); }
  .filmo-row.gone { opacity:.6; }
  .hit-head { font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; padding:.5rem .8rem .1rem; border-top:1px solid var(--line); }
  .hit-person { display:flex; gap:.6rem; align-items:center; color:inherit; text-decoration:none; }
  .hit-face { flex:none; width:1.9rem; height:1.9rem; border-radius:50%; object-fit:cover; background:var(--chip); display:inline-block; }
  .filmo-row.elsewhere { opacity:.55; }
  .filmo-row.elsewhere:hover { opacity:.9; transform:none; }
  .filmo-row.elsewhere button, .filmo-row.elsewhere a { flex:none; }
  .filmo-pic { flex:0 0 2.4rem; width:2.4rem; aspect-ratio:2/3; border-radius:4px; overflow:hidden; background:var(--chip); }
  .filmo-pic img { width:100%; height:100%; object-fit:cover; display:block; }
  .filmo-year { flex:0 0 2.8rem; color:var(--muted); font-variant-numeric:tabular-nums; }
  .ep { display:flex; gap:.9rem; align-items:center; padding:.6rem .2rem; border-top:1px solid var(--line); }
  .ep .n { flex:0 0 2.2rem; color:var(--muted); text-align:right; }
  .ep .w { flex:0 0 1.2rem; color:var(--accent); }
  .ep.gone { opacity:.5; }
  @media (max-width: 700px) { .tp { grid-template-columns:1fr; } .tp-poster { max-width:11rem; } }
  .ov-state { display:flex; gap:.8rem; align-items:center; font-size:1.25rem; font-weight:600; margin-bottom:.4rem; }
  .ov-state .big-dot { width:1rem; height:1rem; border-radius:50%; flex:0 0 auto; }
  .ov-need { display:flex; gap:.8rem; align-items:center; justify-content:space-between; padding:.55rem 0; border-top:1px solid var(--line); }
  .ov-tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(12rem, 1fr)); gap:.8rem; margin-top:1.2rem; }
  .ov-tile { text-align:left; background:var(--panel-hi); color:var(--text); border:1px solid var(--line); border-radius:10px; padding:.9rem 1rem; font-weight:400; min-height:6.2rem; }
  .ov-tile:hover:not(:disabled) { border-color:var(--accent); background:var(--panel-hi); color:var(--text); }
  .ov-tile .t { color:var(--muted); font-size:.8rem; text-transform:uppercase; letter-spacing:.06em; }
  .ov-tile .n { font-size:1.5rem; font-weight:700; margin:.15rem 0; }
  .ov-tile .d { color:var(--muted); font-size:.85rem; }
  .ov-tile.ov-wide { grid-column:1 / -1; min-height:0; }
  .ov-work { display:grid; gap:.45rem; margin-top:.5rem; }
  .ov-work-row { display:grid; grid-template-columns:13rem 1fr 3rem; gap:.9rem; align-items:center; font-size:.92rem; }
  .ov-work-row .kbar { margin:0; height:7px; }
  .ov-work-row b { text-align:right; font-weight:600; }
  @media (max-width:640px) { .ov-work-row { grid-template-columns:1fr 3rem; } .ov-work-row .kbar { grid-column:1 / -1; grid-row:2; } }
  .sub-off { display:none !important; }
  #w-more.stepped > details { border-top:0; padding-top:0; }
  #w-more.stepped > details[data-step]:not([data-step="person"]) > summary { display:none; }
  section.bare-section { background:transparent; border:0; padding:0; margin-bottom:.2rem; }
  .set-key { font-family:ui-monospace, monospace; font-size:.72rem; color:var(--faint); margin-top:.15rem; }
  .folk { display:grid; grid-template-columns:repeat(auto-fill, minmax(9.5rem, 1fr)); gap:1rem; }
  .folk.small { grid-template-columns:repeat(auto-fill, minmax(7rem, 1fr)); }
  .folk-card { background:transparent; color:var(--text); font-weight:400; padding:.4rem; border-radius:10px; text-align:center; }
  .folk-move { min-width:0; } .folk-move > .folk-card { display:block; width:100%; }
  .folk-card:hover:not(:disabled) { background:var(--panel-hi); color:var(--text); }
  .folk-pic { display:flex; align-items:center; justify-content:center; width:100%; height:auto; aspect-ratio:2/3; object-fit:cover; border-radius:8px; background:var(--chip); color:var(--muted); font-size:3rem; font-weight:700; margin-bottom:.45rem; }
  .folk.small .folk-pic { font-size:2rem; }
  .folk-name { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .folk-card .muted { font-size:.8rem; }
  .pill { background:transparent; color:var(--muted); border:1px solid transparent; border-radius:999px; padding:.35rem 1rem; font-weight:600; }
  .pill.on { background:var(--chip); color:var(--text); }
  .fbar { display:flex; gap:.4rem; flex-wrap:wrap; align-items:center; margin:0 0 1rem; }
  .fchip { position:relative; }
  .fbar .fbtn { background:transparent; color:var(--text); border:1px solid var(--line); border-radius:999px; padding:.3rem .85rem; font-weight:400; white-space:nowrap; }
  .fbar .fbtn:hover:not(:disabled) { background:var(--panel-hi); }
  .fchip.on .fbtn { border-color:var(--accent); color:var(--accent); font-weight:600; }
  .fbar .fbtn.fmore { font-weight:600; } .fbar .fbtn.fmore.on { border-color:var(--accent); }
  .fbar .fclear { background:transparent; border:0; color:var(--muted); text-decoration:underline; padding:.3rem .4rem; font-weight:400; }
  .fbar .fclear:hover:not(:disabled) { background:transparent; color:var(--text); }
  .fpop { position:absolute; top:calc(100% + .3rem); left:0; z-index:30; background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:.35rem; min-width:14rem; max-height:21rem; overflow:auto; box-shadow:0 10px 30px rgba(0,0,0,.45); }
  .fpop .fopt { display:flex; justify-content:space-between; gap:1rem; width:100%; text-align:left; background:transparent; border:0; color:var(--text); padding:.4rem .6rem; border-radius:6px; font-weight:400; }
  .fpop .fopt:hover:not(:disabled) { background:var(--panel-hi); }
  .fpop .fopt.on { color:var(--accent); font-weight:600; }
  .fpop .fopt .n { color:var(--muted); font-weight:400; }
  @media (max-width:640px) { .fpop { position:fixed; left:.6rem; right:.6rem; top:auto; bottom:.6rem; max-height:60vh; } }
  .lib-ticks { display:grid; grid-template-columns:repeat(auto-fill, minmax(14rem, 1fr)); gap:.35rem 1.2rem; }
  .lib-ticks label { display:flex; gap:.45rem; align-items:center; font-weight:400; margin:0; }
  .lib-group + .lib-group { margin-top:1rem; }
  .lib-kind { margin:0 0 .45rem; font-size:.8rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
  .pill.who { display:flex; flex-direction:column; align-items:center; gap:.35rem; border-radius:14px; padding:.6rem .9rem .5rem; min-width:5.5rem; }
  .pill.who .avatar { opacity:.75; }
  .pill.who.on .avatar { opacity:1; box-shadow:0 0 0 2px var(--accent); }
  .kpanel { padding:.2rem 0 .4rem; }
  #nodes-list { display:grid; grid-template-columns:repeat(auto-fill, minmax(21rem, 1fr)); gap:.9rem; margin:0 0 1rem; align-items:start; }
  .kcard { border:1px solid var(--line); border-radius:16px; padding:.9rem 1.1rem 1rem; background:var(--panel-hi); display:grid; gap:.15rem; font-size:.95rem; min-width:0; }
  .kcard.away { opacity:.72; }
  .mu-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(10rem, 1fr)); gap:.8rem; }
  .mu-tile { display:grid; gap:.25rem; padding:.7rem; border-radius:14px; background:var(--panel-hi); border:1px solid var(--line); color:var(--text); text-decoration:none; }
  .mu-art { aspect-ratio:1; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:1.8rem; font-weight:700; background:linear-gradient(135deg, var(--accent), var(--panel)); color:#111; }
  .mu-tracks { list-style:none; padding:0; margin:0 0 5rem; display:grid; gap:.2rem; }
  .mu-track { display:flex; gap:.8rem; align-items:center; padding:.55rem .7rem; border-radius:10px; cursor:pointer; }
  .mu-track:hover { background:var(--panel-hi); }
  .mu-track.on { background:var(--panel-hi); box-shadow:inset 3px 0 0 var(--accent); }
  .mu-track.on .mu-title { font-weight:700; }
  .mu-bar { position:fixed; left:0; right:0; bottom:0; z-index:40; display:flex; gap:.8rem; align-items:center; padding:.6rem 1rem; background:var(--panel); border-top:1px solid var(--line); }
  .mu-bar audio { width:min(28rem, 45vw); }
  .guide { overflow-x:auto; border:1px solid var(--line); border-radius:14px; background:var(--panel); }
  .guide-head, .guide-row { display:flex; min-width:max-content; }
  .guide-row { border-top:1px solid var(--line); }
  .guide-row.off { opacity:.5; }
  .guide-ch { flex:0 0 11rem; display:flex; gap:.5rem; align-items:center; padding:.6rem .8rem; position:sticky; left:0; background:var(--panel); z-index:1; color:var(--text); text-decoration:none; }
  .guide-ch b { color:var(--accent); min-width:2.2rem; }
  .guide-times, .guide-line { position:relative; width:1440px; height:2.6rem; }
  .guide-times span { position:absolute; top:.7rem; font-size:.8rem; color:var(--muted); padding-left:.3rem; }
  .guide-prog { position:absolute; top:.3rem; height:2rem; display:flex; align-items:center; padding:0 .5rem; border-radius:8px; background:var(--panel-hi); border:1px solid var(--line); color:var(--text); font-size:.85rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-decoration:none; }
  .guide-prog.on { border-color:var(--accent); }
  .ch-top { display:flex; gap:.6rem; align-items:center; margin-bottom:.6rem; }
  .ch-screen { position:relative; background:#000; border-radius:14px; overflow:hidden; }
  .ch-video { width:100%; max-height:70vh; display:block; background:#000; }
  .ch-slate { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.2rem; background:rgba(0,0,0,.75); }
  .ch-now { margin-top:.6rem; }
  .dl-list { display:grid; gap:.4rem; margin:.4rem 0 1rem; }
  .dl-item { display:flex; align-items:center; gap:.7rem; padding:.6rem .8rem; border:1px solid var(--line); border-radius:12px; background:var(--panel-hi); }
  .dl-player { position:fixed; inset:0; background:#000; z-index:60; display:flex; flex-direction:column; }
  .dl-player video { flex:1; width:100%; min-height:0; background:#000; }
  .dl-player-bar { display:flex; align-items:center; gap:.8rem; padding:.6rem 1rem; color:#fff; }
  .miss-list { width:100%; border-collapse:collapse; margin-top:.4rem; }
  table.list { border-collapse:collapse; width:100%; }
  .table-wrap { overflow-x:auto; }
  .rx-place { display:grid; grid-template-columns:repeat(auto-fit, minmax(10rem, 1fr)); gap:.6rem; }
  .rx-place label { display:flex; flex-direction:column; gap:.2rem; font-size:.85rem; color:var(--muted); }
  .rx-map { height:420px; border-radius:8px; overflow:hidden; background:var(--chip); }
  .rx-table td { vertical-align:top; } .rx-table { font-size:.92em; }
  .rx-meter-now { display:grid; grid-template-columns:repeat(auto-fit, minmax(8rem, 1fr)); gap:.8rem; margin:.6rem 0; }
  .rx-meter-now b { font-size:1.5rem; }
  .rx-spark { width:100%; height:70px; color:var(--accent); background:var(--chip); border-radius:6px; }
  .rx-ok { color:#43a047; font-weight:600; } .rx-mid { color:#e0a020; font-weight:600; } .rx-no { color:#e53935; font-weight:600; }
  table.list th, table.list td { text-align:left; padding:.35rem .6rem; border-bottom:1px solid var(--line); vertical-align:top; }
  table.list th { color:var(--muted); font-weight:500; font-size:.9rem; }
  .calls-table td { text-align:right; font-variant-numeric:tabular-nums; }
  .missing table td, .missing table th { text-align:left; padding:.4rem .5rem; border-bottom:1px solid var(--line); vertical-align:top; }
  .missing table th { color:var(--muted); font-weight:500; font-size:.9rem; }
  .miss-file { word-break:break-all; }
  .pr-sets { display:grid; grid-template-columns:repeat(auto-fill, minmax(17rem, 1fr)); gap:.8rem; }
  .pr-form { max-width:42rem; gap:.6rem; }
  .pr-grid { display:grid; grid-template-columns:1fr 1fr; gap:.6rem .9rem; }
  .pr-grid label { display:grid; gap:.25rem; }
  .pr-wide { grid-column:1 / -1; }
  .ktop { display:flex; align-items:center; justify-content:space-between; gap:.6rem; }
  .kname { font-weight:600; font-size:1.05rem; display:flex; align-items:center; min-width:0; }
  .kseen { display:flex; gap:.5rem; align-items:center; flex-wrap:wrap; margin-bottom:.25rem; }
  .kgear { border-radius:999px; width:2.2rem; height:2.2rem; padding:0; font-size:1.15rem; line-height:1; flex:none; }
  #sheet { position:fixed; inset:0; z-index:55; background:rgba(0,0,0,.6); backdrop-filter:blur(3px); display:flex; align-items:center; justify-content:center; padding:1rem; }
  #sheet[hidden] { display:none; }
  .ksheet { width:min(52rem, 100%); max-height:92vh; overflow-y:auto; background:var(--panel); border:1px solid var(--line); border-radius:20px; padding:1rem 1.4rem 1.1rem; box-shadow:0 20px 60px rgba(0,0,0,.5); }
  .kfoot { display:flex; justify-content:space-between; align-items:center; gap:.8rem; border-top:1px solid var(--line); padding-top:.8rem; margin-top:.4rem; }
  .kpanel .set-row:first-child { border-top:0; }
  .kfigs { display:flex; gap:.6rem 1.6rem; flex-wrap:wrap; padding:.3rem 0 .7rem; border-bottom:1px solid var(--line); }
  .kfig { display:flex; flex-direction:column; min-width:4.5rem; }
  .kfig b { font-size:1.35rem; font-weight:600; line-height:1.2; }
  .kfig span { font-size:.8rem; }
  .kfig.bad b { color:var(--bad); }
  .kbar { height:5px; border-radius:99px; background:var(--line); overflow:hidden; display:flex; margin:.3rem 0 .15rem; max-width:100%; }
  .kbar i { display:block; height:100%; background:var(--good, #3fb950); }
  .kbar i.bad { background:var(--bad); }
  .kbar.big { height:10px; margin:.5rem 0 .3rem; }
  .kbar-said { display:flex; align-items:baseline; gap:.6rem; }
  .kbar-said b { font-size:1.5rem; font-weight:600; line-height:1.1; }
  .kgrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(21rem, 1fr)); gap:.9rem; align-items:start; }
  .kcard.off .kbar i { background:var(--muted); }
  .klog-btn { font-size:.85rem; padding:.25rem .8rem; border-radius:999px; }
  .klog .act-line { font-size:.9rem; }
  .flow { position:relative; display:grid; grid-template-columns:1fr 1fr 1fr; gap:1rem 4.5rem; align-items:center; }
  .flow-col { display:grid; gap:.8rem; align-content:center; position:relative; z-index:1; }
  .flow-head { font-size:.75rem; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
  .flow-card { cursor:pointer; font-size:.9rem; padding:.7rem .9rem .8rem; }
  .flow-card:hover, .flow-card:focus-visible { border-color:var(--accent); outline:none; }
  #flow-lines { position:absolute; inset:0; pointer-events:none; overflow:visible; }
  #flow-lines path { fill:none; stroke:var(--good, #3fb950); stroke-width:2; opacity:.7; }
  #flow-lines path.warn { stroke:var(--warn, #d29922); stroke-dasharray:5 5; }
  @media (max-width:900px) { .flow { grid-template-columns:1fr; } }
  .lib-grid { grid-template-columns:repeat(auto-fill, minmax(15rem, 1fr)); gap:.7rem; }
  .lib-grid .kcard { padding:.7rem .9rem .8rem; }
  .lib-form { display:grid; grid-template-columns:repeat(auto-fit, minmax(16rem, 1fr)); gap:.8rem 1rem; align-items:end; max-width:56rem; margin:.4rem 0 .8rem; }
  .lib-form label { display:grid; gap:.3rem; margin:0; }
  .np-list { display:grid; grid-template-columns:repeat(auto-fill, minmax(19rem, 1fr)); gap:.9rem; align-items:start; }
  .np-none { grid-column:1 / -1; justify-self:center; padding:.9rem 1.6rem; border:1px solid var(--line); border-radius:12px; background:var(--panel-hi); }
  .np-card { position:relative; overflow:hidden; gap:.35rem; }
  .np-top { display:flex; gap:.8rem; align-items:flex-start; }
  .np-poster { flex:0 0 3.4rem; height:5.1rem; border-radius:6px; background:var(--chip); overflow:hidden; }
  .np-poster img { width:100%; height:100%; object-fit:cover; display:block; }
  .np-title { font-weight:600; font-size:1.02rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .np-ep { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .np-bar { margin:.3rem 0 .2rem; height:6px; }
  .np-bar i { background:var(--accent); }
  .np-card.paused .np-bar i { background:var(--muted); }
  .np-line { font-size:.88rem; }
  .np-hot { color:var(--warn, #d29922); border-color:var(--warn, #d29922); }
  .np-glimpse { position:absolute; left:50%; top:0; width:320px; max-width:none; transform:translateX(-50%); background-repeat:no-repeat; opacity:0; pointer-events:none; transition:opacity .15s; z-index:2; border-bottom:1px solid var(--line); }
  .np-card.has-glimpse:hover .np-glimpse, .np-card.has-glimpse:focus-visible .np-glimpse { opacity:1; }
  .pill-n { display:inline-block; min-width:1.2rem; margin-left:.45rem; padding:0 .3rem; border-radius:99px; background:var(--accent); color:var(--accent-text); font-size:.72rem; line-height:1.2rem; text-align:center; }
  .step[hidden] { display:none; }
  #ask { position:fixed; inset:0; z-index:80; background:rgba(0,0,0,.6); backdrop-filter:blur(3px); display:flex; align-items:center; justify-content:center; padding:1rem; }
  .kask { width:min(34rem, 100%); background:var(--panel); border:1px solid var(--line); border-radius:20px; padding:1.3rem 1.4rem 1.1rem; box-shadow:0 20px 60px rgba(0,0,0,.5); }
  .kask-text { line-height:1.5; }
  .kask-acts { display:flex; justify-content:flex-end; gap:.6rem; margin-top:1.1rem; }
  .root-line { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; padding:.55rem 0; border-top:1px solid var(--line); }
  .root-line:first-child { border-top:0; }
  .root-add { display:flex; gap:.5rem; flex-wrap:wrap; align-items:center; padding:.7rem 0 .2rem; border-top:1px solid var(--line); }
  .credit { padding:.6rem 0; border-top:1px solid var(--line); }
  .ep-still { flex:0 0 7rem; width:7rem; aspect-ratio:16/9; object-fit:cover; border-radius:6px; background:var(--chip); }
  .tp-still { display:block; width:min(24rem, 100%); aspect-ratio:16/9; object-fit:cover; border-radius:10px; margin:.8rem 0 .2rem; }
  .kabout-wrap { margin-top:.5rem; }
  .kabout { font-size:.82rem; padding:.2rem .7rem; border-radius:999px; }
  .kabout-body { font-size:.85rem; line-height:1.4; margin-top:.4rem; max-width:44rem; }
  .step .kcard { margin-top:.6rem; max-width:34rem; }
  .ksheet { min-height:min(24rem, 92vh); }
  .tp-folk { margin:1.2rem 0 .4rem; }
  .tp-made { display:flex; gap:.3rem 1.4rem; flex-wrap:wrap; margin-bottom:.8rem; }
  .tp-made a, .face { color:inherit; text-decoration:none; }
  .tp-made a:hover { text-decoration:underline; }
  .tp-cast-head { display:flex; align-items:center; gap:.8rem; margin-bottom:.5rem; }
  .tp-cast-head h3 { margin:0; font-size:1rem; }
  .face-row { display:grid; grid-template-columns:repeat(8, minmax(0, 1fr)); gap:.8rem; }
  .face-grid { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:.7rem .8rem; }
  .face { display:flex; flex-direction:column; align-items:center; text-align:center; gap:.15rem; min-width:0; font-size:.82rem; }
  .face img, .face .face-none { width:4.6rem; height:4.6rem; border-radius:50%; object-fit:cover; background:var(--chip); display:grid; place-items:center; font-size:1.6rem; color:var(--muted); border:2px solid transparent; }
  .face-grid .face img, .face-grid .face .face-none { width:3.4rem; height:3.4rem; font-size:1.2rem; }
  .face.big img, .face.big .face-none { width:8rem; height:8rem; font-size:3rem; }
  .face.big b, .face.big span.muted { display:none; }
  .face:hover img, .face:focus-visible img, .face:hover .face-none { border-color:var(--accent); }
  .face b, .face span.muted { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:500; }
  .cast-top { display:flex; gap:1.4rem; align-items:center; margin-bottom:1.4rem; flex-wrap:wrap; }
  .cast-top h1 { margin:0 0 .2rem; }
  @media (max-width:900px) { .face-row { grid-template-columns:repeat(4, minmax(0, 1fr)); } .face-grid { grid-template-columns:repeat(3, minmax(0, 1fr)); } }
  /* What used to be written on the element itself, so these win as that did. */
  .fit { width:auto !important; }
  .small { font-size:.85rem !important; }
  .tick.tick { display:flex; gap:.4rem; align-items:center; font-weight:400; margin:0; }
  .tick.tick.tall { gap:.6rem; align-items:flex-start; cursor:pointer; }
  .tick-box { margin-top:.2rem; }
  .tick-help { display:block; font-size:.88rem; font-weight:400; }
  .csm-dots { display:inline-flex; gap:3px; vertical-align:middle; }
  .csm-dots i { width:.7rem; height:.7rem; border-radius:50%; background:var(--line); display:block; }
  .csm-dots i.on { background:var(--text); }
  .csm-limits { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); gap:.45rem 1.4rem; }
  .csm-limit { display:flex; align-items:center; justify-content:space-between; gap:.6rem; margin:0; font-weight:400; min-width:0; }
  .csm-limit > span { flex:1 1 auto; min-width:0; }
  .csm-limit select { flex:0 1 13rem; min-width:0; max-width:60%; }
  .csm-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.55rem 0; border-top:1px solid var(--line); }
  .csm-row:first-child { border-top:0; }
  img.spoiler { filter:blur(14px) brightness(.7); clip-path:inset(0 round 6px); }
  .ed-grid { display:grid; grid-template-columns:1fr 1fr; gap:.55rem .9rem; }
  .ed-cell.wide { grid-column:1 / -1; }
  .ed-cell input, .ed-cell textarea { width:100%; }
  .ed-cell textarea { resize:none; line-height:1.4; padding:.5rem .6rem; background:var(--bg); color:var(--text); border:1px solid var(--line); border-radius:6px; font:inherit; }
  .ed-top { display:flex; align-items:center; justify-content:space-between; gap:.5rem; font-size:.85rem; color:var(--muted); margin-bottom:.15rem; }
  .ed-lock { background:none; border:1px solid transparent; border-radius:8px; padding:.05rem .3rem; cursor:pointer; font-size:.85rem; opacity:.45; }
  .ed-lock.on { opacity:1; border-color:var(--line); }
  .ed-lock:hover:not(:disabled), .ed-lock:focus-visible { opacity:1; border-color:var(--accent); }
  .ed-lock:disabled { cursor:default; }
  .ed-offer { font-size:.8rem; margin-top:.15rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .ed-use { background:none; border:0; padding:0; color:var(--accent); cursor:pointer; font-size:.8rem; text-decoration:underline; }
  .ed-x { background:none; border:0; color:inherit; cursor:pointer; padding:0 0 0 .4rem; font-size:.75rem; opacity:.7; }
  .ed-x:hover { opacity:1; }
  .ed-id { display:flex; align-items:center; gap:.6rem; padding:.3rem 0; flex-wrap:wrap; }
  .ed-id-n { flex:0 0 5.5rem; }
  @media (max-width:640px) { .ed-grid { grid-template-columns:1fr; } }
  .art-grid { display:grid; gap:.5rem; }
  .art-tall { grid-template-columns:repeat(6, 1fr); }
  .art-wide { grid-template-columns:repeat(3, 1fr); }
  .art-logo { grid-template-columns:repeat(4, 1fr); }
  /* Badges, laid out by marquee-overlay: each box stacked from its pinned edge; sizes follow the face's height. */
  .ovl { position:absolute; inset:0; pointer-events:none; container-type:size; overflow:hidden; --u:calc(100cqh / 145); }
  .ovl-g { position:absolute; display:flex; flex-direction:column; gap:calc(var(--u) * 1.6); box-sizing:border-box; }
  .ovl-g.down-bottom { flex-direction:column-reverse; }
  .ovl-g.down-middle { justify-content:center; }
  .ovl-g.across-left { align-items:flex-start; } .ovl-g.across-middle { align-items:center; } .ovl-g.across-right { align-items:flex-end; }
  .ovl-g.full { align-items:stretch; }
  .ovl-m { flex:none; font-size:calc(var(--u) * 6.6 * var(--s,1)); font-weight:800; line-height:1.2; padding:.22em .4em; border-radius:.28em; white-space:nowrap; letter-spacing:.02em; max-width:94cqw; overflow:hidden; text-overflow:ellipsis; box-sizing:border-box; }
  .ovl-m.pill { padding:.22em .6em; border-radius:99px; }
  .ovl-m.logo { font-size:calc(var(--u) * 6.6 * .82 * var(--s,1)); text-transform:uppercase; letter-spacing:.1em; border:max(1px, .09em) solid currentColor; }
  .ovl-m.banner { text-align:center; padding:.32em 0; letter-spacing:.14em; text-transform:uppercase; border-radius:0; max-width:none; }
  .ovl-m.bar { align-self:flex-start; height:calc(var(--u) * 2.2 * var(--s,1)); padding:0; border-radius:0; font-size:0; max-width:none; }
  .ovl-m.turn { writing-mode:vertical-rl; padding:.45em .22em; max-width:none; max-height:94cqh; }
  .ovl-m.pic img { display:block; height:1.2em; width:auto; }
  .ovl-m.ghost, .ovl-corner.ghost { opacity:.45; outline:1px dashed currentColor; }
  .ovl-corner { position:absolute; --r:calc(var(--u) * 12.7 * var(--s,1)); --t:calc(var(--u) * 6.6 * .8 * 1.8 * var(--s,1)); width:calc(var(--r) * 4.25); height:var(--t); line-height:var(--t); text-align:center; font-size:calc(var(--u) * 6.6 * .8 * var(--s,1)); font-weight:800; letter-spacing:.12em; text-transform:uppercase; white-space:nowrap; overflow:hidden; box-shadow:0 2px 6px rgba(0,0,0,.35); }
  .ovl-corner.at-tl { left:calc(var(--r) * -1.125); top:calc(var(--r) - var(--t) / 2); transform:rotate(-45deg); }
  .ovl-corner.at-tr { right:calc(var(--r) * -1.125); top:calc(var(--r) - var(--t) / 2); transform:rotate(45deg); }
  .ovl-corner.at-bl { left:calc(var(--r) * -1.125); bottom:calc(var(--r) - var(--t) / 2); transform:rotate(45deg); }
  .ovl-corner.at-br { right:calc(var(--r) * -1.125); bottom:calc(var(--r) - var(--t) / 2); transform:rotate(-45deg); }
  .ovl.editing .ovl-m, .ovl.editing .ovl-corner { pointer-events:auto; cursor:grab; touch-action:none; }
  .ovl .picked { box-shadow:0 0 0 2px var(--accent); outline-offset:2px; }
  .drag-ghost { position:fixed; z-index:9999; pointer-events:none; padding:.3rem .7rem; border-radius:99px; background:var(--accent); color:#1a1408; font-size:.8rem; font-weight:700; box-shadow:0 6px 18px rgba(0,0,0,.5); white-space:nowrap; }
  .card .art .tag { z-index:1; }
  /* A title as a 3D case (crate::case): sized by its box, two wide by three tall, a sixth of its width deep.
     In cqh of the case: width 66.67, depth 10.67, half-depth 5.33, half-width 33.33, half-height 50. */
  .card .art.as-case { overflow:visible; background:transparent; border-color:transparent; box-shadow:none; }
  .case { position:absolute; inset:0; container-type:size; perspective:calc(100cqh * 4.5); --hd:calc(5.33cqh * var(--k, 1)); --dp:calc(10.67cqh * var(--k, 1)); }
  .case::after { content:""; position:absolute; left:8%; right:8%; bottom:-6%; height:8%; background:radial-gradient(ellipse at 50% 0%, rgba(0,0,0,.55), transparent 70%); pointer-events:none; }
  /* Facing whoever points at it, its front sits exactly in the page's plane (the box drawn back by
     the depth the front stands out by), so the browser draws the poster and its badges one to one,
     as sharp as the flat wall, rather than resampling them a little larger. */
  .case-box { position:absolute; inset:0; transform-style:preserve-3d; transform:rotateX(-5deg) rotateY(30deg); transition:transform .5s var(--spring, cubic-bezier(.2,.7,.2,1)); }
  .card:hover .case-box, .card:focus-visible .case-box, .case.facing .case-box { transform:rotateX(0deg) rotateY(0deg) translateZ(calc(-1 * var(--hd))); }
  /* A transparent outline makes the browser smooth a turned face's edges (the tops of the cases were
     jagged); turned, a picture is sampled smoothly too. */
  .case-face { position:absolute; overflow:hidden; backface-visibility:hidden; background:#15171b; outline:1px solid transparent; }
  .case-face > img { image-rendering:auto; }
  .case-face > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
  .case-front { inset:0; transform:translateZ(var(--hd)); border-radius:1px 3px 3px 1px; box-shadow:inset 0 0 0 1px rgba(255,255,255,.06); }
  /* With no poster the front is drawn as a plain one: the title large, high, under the corner
     ribbon and clear of the badges at the sides and foot, on a gentle wash. */
  .case-name { position:absolute; inset:0; display:flex; align-items:flex-start; justify-content:center; text-align:center;
    padding:24cqh 10% 0; color:var(--text); font-size:clamp(.8rem, 9cqh, 1.6rem); font-weight:600; line-height:1.15;
    overflow-wrap:anywhere; background:radial-gradient(120% 70% at 50% 18%, color-mix(in srgb, var(--accent) 14%, #22252b), #15171b 70%); }
  .case-name::after { content:""; position:absolute; left:30%; right:30%; top:calc(24cqh - 3cqh); height:2px; background:var(--accent); opacity:.55; border-radius:1px; }
  .case-back { inset:0; transform:rotateY(180deg) translateZ(var(--hd)); }
  .case-spine { top:0; bottom:0; left:calc(50% - var(--hd)); width:var(--dp); transform:rotateY(-90deg) translateZ(33.33cqh); }
  .case-side { top:0; bottom:0; left:calc(50% - var(--hd)); width:var(--dp); transform:rotateY(90deg) translateZ(33.33cqh); background:linear-gradient(90deg,#2a2724,#3d3934 40%,#2a2724); }
  .case-top, .case-bottom { left:0; right:0; top:calc(50% - var(--hd)); height:var(--dp); background:#24211e; }
  .case-top { transform:rotateX(90deg) translateZ(50cqh); }
  .case-bottom { transform:rotateX(-90deg) translateZ(50cqh); background:#0e0d0c; }
  .case-face > img.case-smear { transform:scale(1.4); filter:blur(6px) brightness(.5) saturate(1.2); }
  .case-spine > img.case-smear { transform:scale(6, 1.2); }
  .case-spine-title { position:absolute; inset:16% 0; writing-mode:vertical-rl; display:flex; align-items:center; justify-content:center; font-size:max(.55rem, 4.2cqh); font-weight:700; color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.6); white-space:nowrap; overflow:hidden; }
  .case-wrap { position:absolute; left:0; right:0; display:block; }
  .case-spine-title small { display:block; font-size:.78em; font-weight:600; opacity:.8; margin-top:.6em; }
  .case.box-set .case-spine-title { gap:.5em; }
  /* A box set's side shows the cases inside it, one band to a season. */
  .case.box-set .case-side { background:repeating-linear-gradient(90deg, #2a2724 0, #3d3934 calc(var(--dp) / var(--k, 1) * .5), #1c1a18 calc(var(--dp) / var(--k, 1) * .5), #1c1a18 calc(var(--dp) / var(--k, 1))); }
  /* An album's jewel case: square and thin (a CD case is about 142 mm across and 10 mm deep),
     clear plastic over the cover with the hinge down the left edge. */
  .case.jewel { --hd:3.5cqh; --dp:7cqh; }
  .case.jewel .case-spine { transform:rotateY(-90deg) translateZ(50cqh); background:#0d0e10; }
  .case.jewel .case-side { transform:rotateY(90deg) translateZ(50cqh); background:linear-gradient(90deg, rgba(220,230,240,.35), rgba(255,255,255,.12) 40%, rgba(220,230,240,.35)); }
  .case.jewel .case-top, .case.jewel .case-bottom { background:linear-gradient(rgba(220,230,240,.3), rgba(255,255,255,.08)); }
  .case.jewel .case-front { border-radius:1px; box-shadow:inset 0 0 0 1px rgba(255,255,255,.18); }
  .case.jewel .case-spine-title { font-size:max(.5rem, 3.4cqh); inset:6% 0; }
  .jewel-hinge { position:absolute; left:0; top:0; bottom:0; width:7%; z-index:2; pointer-events:none;
    background:repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 1px, rgba(255,255,255,.06) 1px 3px), linear-gradient(90deg, rgba(10,12,16,.55), rgba(10,12,16,.2));
    box-shadow:1px 0 0 rgba(255,255,255,.25); }
  .jewel-shine { position:absolute; inset:0; z-index:2; pointer-events:none;
    background:linear-gradient(115deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.04) 28%, transparent 45%, rgba(255,255,255,.07) 72%, transparent 85%); }
  .mu-tile:hover .case-box, .mu-tile:focus-visible .case-box { transform:rotateX(0deg) rotateY(0deg) translateZ(calc(-1 * var(--hd))); }
  .mu-case { position:relative; width:100%; aspect-ratio:1; margin-bottom:.35rem; }
  .mu-head .mu-case { margin:0; }
  /* The title page's case: turned by hand, its back a sleeve with the banner and what it is about. */
  .tp-case-wrap { display:flex; flex-direction:column; align-items:center; gap:.5rem; }
  .tp-case { position:relative; width:100%; aspect-ratio:2/3; cursor:grab; touch-action:pan-y; user-select:none; }
  .tp-case.turning { cursor:grabbing; }
  .tp-case.turning .case-box { transition:none; }
  .tp-case-turns { display:flex; gap:.3rem; }
  .tp-case-turns button { padding:.25rem .6rem; font-size:.8rem; }
  .case-back.sleeve { background:#101114; }
  .case-sleeve { position:absolute; inset:0; display:flex; flex-direction:column; }
  .case-sleeve-pic { position:relative !important; inset:auto !important; width:100%; height:38% !important; object-fit:cover; flex:0 0 auto; }
  .case-sleeve-words { flex:1; padding:5cqh 6cqh; overflow:hidden; color:#e9e6e1; font-size:max(.5rem, 3.3cqh); line-height:1.35; }
  .case-sleeve-words b { display:block; font-size:1.35em; margin-bottom:.5em; color:#fff; }
  .case-sleeve-words p { margin:0; opacity:.88; display:-webkit-box; -webkit-line-clamp:14; -webkit-box-orient:vertical; overflow:hidden; }
  .case.posed.front .case-box { transform:rotateX(-4deg) rotateY(0deg); }
  .case.posed.three .case-box { transform:rotateX(-8deg) rotateY(28deg); }
  .case.posed.spine .case-box { transform:rotateX(-6deg) rotateY(72deg); }
  .case.posed.back .case-box { transform:rotateX(-8deg) rotateY(158deg); }
  .ove-preview { display:flex; flex-direction:column; align-items:center; gap:.5rem; padding:.8rem 0 .9rem; margin-bottom:.8rem; border:1px solid var(--line); border-radius:12px; background:var(--panel-hi); }
  .ove-preview-case { position:relative; width:7.5rem; aspect-ratio:2/3; margin:.4rem 0 .6rem; }
  .ove-preview-case.album { width:9rem; aspect-ratio:1; }
  /* An album's sleeve: square front and back, a thin spine. */
  .ove-sleeve.album { grid-template-columns:1fr .08fr 1fr; }
  .ove-sleeve.album .ove-front, .ove-sleeve.album .ove-back { aspect-ratio:1; }
  @media (prefers-reduced-motion: reduce) {
    .case-box { transition:none; }
    .case.calm .case-box { transform:none !important; }
    .case.calm .case-front { transform:none; }
    .case.calm .case-spine, .case.calm .case-back, .case.calm .case-side, .case.calm .case-top, .case.calm .case-bottom { display:none; }
  }
  /* A row of cases as a carousel: --d is how far a card is from the row's middle (-1 left, 1 right), set as it scrolls. */
  .cards.ring { padding:1.2rem .6rem 1.4rem; gap:1.3rem; perspective:none; }
  .cards.ring .card { transition:opacity .2s; opacity:calc(.45 + .55 * var(--near, 1)); }
  /* Each case keeps the turn it has everywhere else (its spine showing), turning further onto
     its spine the further left of the row's middle it is. */
  .cards.ring .case-box { transform:rotateX(-5deg) rotateY(calc(22deg + max(0, -1 * var(--d, 0)) * 40deg)) translateZ(calc(var(--near, 1) * 4cqh)) scale(calc(.86 + .14 * var(--near, 1))); transition:transform .12s linear; }
  .cards.ring .card:hover .case-box, .cards.ring .card:focus-visible .case-box { transform:rotateX(0deg) rotateY(0deg) translateZ(calc(-1 * var(--hd))); transition:transform .4s var(--spring, cubic-bezier(.2,.7,.2,1)); }
  @media (prefers-reduced-motion: reduce) { .cards.ring .case-box { transition:none; } .cards.ring .card { opacity:1; } }
  /* The profile's choice between cases and the poster wall. */
  .look-choices { display:grid; grid-template-columns:repeat(auto-fit, minmax(14rem, 1fr)); gap:.6rem; }
  .look-choice { display:flex; gap:.8rem; align-items:center; padding:.7rem; border-radius:10px; border:1px solid var(--line); cursor:pointer; margin:0; font-weight:normal; }
  .look-choice.on { border-color:var(--accent); background:color-mix(in srgb, var(--accent) 8%, transparent); }
  .look-choice input { position:absolute; opacity:0; pointer-events:none; }
  .look-choice > span:last-child { display:flex; flex-direction:column; gap:.15rem; }
  .look-pic { display:flex; gap:4px; perspective:200px; flex:none; }
  .look-pic i { display:block; width:16px; height:24px; border-radius:2px; background:linear-gradient(160deg, var(--accent), #5a3b10); }
  .look-pic.cases i { transform:rotateY(28deg); box-shadow:-4px 0 0 #3a2a10; }
  /* The overlay editor: facts, the case laid flat, and the badge picked. */
  .ove { outline:none; container-type:inline-size; user-select:none; -webkit-user-select:none; }
  .ove input, .ove textarea, .ove select { user-select:text; -webkit-user-select:text; }
  .ove-top { display:flex; flex-wrap:wrap; gap:.6rem 1.2rem; align-items:center; margin-bottom:.6rem; }
  .ove-acts { margin-left:auto; }
  .ove-link { display:flex; align-items:center; gap:.8rem; flex-wrap:wrap; padding:.45rem .8rem; border-radius:9px; background:color-mix(in srgb, var(--accent) 8%, transparent); border:1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); font-size:.85rem; margin-bottom:.8rem; }
  .ove-link span { flex:1; min-width:14rem; }
  .ove-body { display:grid; grid-template-columns:15rem minmax(0,1fr) 17rem; grid-template-areas:"facts case side" "facts try side"; gap:.4rem 1.4rem; align-items:start; }
  .ove-facts { grid-area:facts; } .ove-middle { grid-area:case; } .ove-tryarea { grid-area:try; } .ove-side { grid-area:side; }
  @container (max-width:1080px) { .ove-body { grid-template-columns:13.5rem minmax(0,1fr); grid-template-areas:"facts case" "facts try" "side side"; } }
  @container (max-width:640px) {
    .ove-body { grid-template-columns:1fr; grid-template-areas:"case" "facts" "try" "side"; }
    /* The case stays in sight while the facts are scrolled to, so one can be dragged or tapped onto it. */
    .ove-middle { position:sticky; top:0; z-index:3; background:var(--panel); padding:.3rem 0; }
    .ove-chips { flex-wrap:nowrap; overflow-x:auto; padding-bottom:.2rem; }
  }
  .ove-h { font-size:.78rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--accent); }
  .ove-group { margin-top:.55rem; }
  .ove-chips { display:flex; flex-wrap:wrap; gap:.3rem; margin-top:.2rem; }
  .ove-fact { display:inline-flex; gap:.3rem; align-items:center; padding:.2rem .55rem; border-radius:99px; border:1px solid var(--line); background:var(--panel-hi); font-size:.78rem; cursor:grab; touch-action:none; user-select:none; }
  .ove-fact b { color:var(--accent); font-weight:700; }
  .ove-fact.none b { color:var(--muted); font-weight:500; }
  .ove-fact.armed { border-color:var(--accent); box-shadow:0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
  .ove-layer { border-radius:8px; padding:.15rem .3rem; margin-top:.25rem; }
  .ove-layer[open] { background:var(--panel-hi); }
  .ove-layer.off { opacity:.55; }
  .ove-layer summary { display:flex; align-items:center; gap:.4rem; cursor:pointer; list-style:none; font-size:.88rem; }
  .ove-layer summary::-webkit-details-marker { display:none; }
  .ove-layer-name { font-weight:600; }
  .ove-eye { min-height:0; padding:0 .3rem; color:#4cc38a; }
  .ove-layer.off .ove-eye { color:var(--muted); }
  .ove-layer-body { display:flex; flex-direction:column; gap:.3rem; padding:.4rem 0 .3rem 1.6rem; }
  .ove-layer-body .tick { margin:0; font-weight:normal; }
  .ove-sleeve { display:grid; grid-template-columns:1fr .17fr 1fr; column-gap:0; row-gap:.3rem; max-width:620px; margin:0 auto; user-select:none; }
  .ove-sleeve.wide { grid-template-columns:1fr; max-width:680px; }
  .ove-face-label { font-size:.7rem; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); text-align:center; }
  .ove-face { position:relative; overflow:hidden; background:#16181d; }
  .ove-face > img, .ove-back-art img, .ove-mini > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; pointer-events:none; }
  .ove-front { aspect-ratio:2/3; border-radius:0 6px 6px 0; }
  .ove-back { aspect-ratio:2/3; border-radius:6px 0 0 6px; background:#101216; }
  .ove-spine { background:linear-gradient(90deg,#0d0e11,#22252c 55%,#0d0e11); box-shadow:inset 2px 0 0 rgba(0,0,0,.5), inset -2px 0 0 rgba(0,0,0,.5); }
  .ove-thumb { aspect-ratio:16/9; border-radius:8px; }
  .ove-face.armed { cursor:copy; }
  .ove-face-title { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; text-align:center; padding:1rem; color:var(--muted); }
  .ove-spine-title { position:absolute; inset:18% 0; writing-mode:vertical-rl; display:flex; align-items:center; justify-content:center; font-size:.78rem; font-weight:700; color:#ddd; white-space:nowrap; overflow:hidden; }
  .ove-back-art { position:absolute; left:0; right:0; top:0; height:40%; overflow:hidden; }
  .ove-back-art img { filter:blur(3px) brightness(.55); transform:scale(1.1); }
  .ove-back-words { position:absolute; left:8%; right:8%; top:45%; display:flex; flex-direction:column; gap:.45rem; }
  .ove-back-words i { display:block; height:.35rem; border-radius:3px; background:rgba(255,255,255,.14); }
  .ove-back-words i.short { width:60%; }
  .ove-grid { position:absolute; inset:0; pointer-events:none; background-image:linear-gradient(to right, rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.1) 1px, transparent 1px); }
  .ove-grid.strong { background-image:linear-gradient(to right, color-mix(in srgb, var(--accent) 45%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--accent) 45%, transparent) 1px, transparent 1px); }
  .ove-lit { position:absolute; pointer-events:none; box-sizing:border-box; border:2px solid var(--accent); background:color-mix(in srgb, var(--accent) 20%, transparent); border-radius:3px; }
  .ove-hint { text-align:center; font-size:.85rem; min-height:1.3rem; margin:.5rem 0; }
  .ove-try { border-top:1px solid var(--line); padding-top:.6rem; }
  .ove-try-row { display:flex; flex-wrap:wrap; gap:.6rem; justify-content:center; margin-top:.5rem; }
  .ove-try-one { display:flex; flex-direction:column; align-items:center; width:7.4rem; padding:.4rem .3rem; border-radius:10px; border:1px solid transparent; background:transparent; color:inherit; cursor:pointer; min-height:0; }
  .ove-try-one.on { border-color:var(--accent); background:color-mix(in srgb, var(--accent) 8%, transparent); }
  .ove-mini { position:relative; overflow:hidden; border-radius:4px; background:#16181d; width:5.5rem; aspect-ratio:2/3; box-shadow:0 4px 12px rgba(0,0,0,.45); }
  .ove-mini.ove-thumb { width:7rem; aspect-ratio:16/9; }
  .ove-try-title { font-size:.78rem; font-weight:600; margin-top:.3rem; text-align:center; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; }
  .ove-fell { color:var(--accent); }
  .ove-row { display:grid; grid-template-columns:4.6rem minmax(0,1fr); gap:.5rem; align-items:center; padding:.22rem 0; }
  .ove-row input[type=text] { width:100%; min-width:0; box-sizing:border-box; }
  .ove-side .ove-row .flexbar { gap:.3rem; }
  .ove-swatch { width:1.5rem; height:1.5rem; min-height:0; padding:0; border-radius:50%; border:1px solid var(--line); font-size:.7rem; font-weight:800; }
  .ove-colour { width:2rem; height:1.5rem; padding:0; border:1px solid var(--line); border-radius:6px; background:transparent; }
  .pill.small { padding:.18rem .65rem; font-size:.82rem; }
  .flexbar { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; }
  .ident-row { display:flex; align-items:center; gap:.7rem; flex-wrap:wrap; padding:.5rem 0; border-top:1px solid var(--line, rgba(128,128,128,.25)); }
  .ident-path { font-size:.85rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .ident-acts { display:flex; gap:.4rem; flex-wrap:wrap; justify-content:flex-end; }
  .ident-cand { display:flex; align-items:center; gap:.7rem; padding:.35rem 0; border-top:1px solid var(--line, rgba(128,128,128,.25)); }
  .ident-cand img, .ident-noposter { width:38px; height:57px; object-fit:cover; border-radius:5px; background:#0b0d12; flex:0 0 auto; }
  .ident-over { font-size:.85rem; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .tune-play { height:2rem; width:15rem; max-width:100%; }
  .tune-row { display:flex; align-items:center; gap:.7rem; flex-wrap:wrap; padding:.55rem 0; border-top:1px solid var(--line, rgba(128,128,128,.25)); }
  .art-pick { position:relative; padding:0; border:2px solid transparent; border-radius:10px; background:#0b0d12; overflow:hidden; cursor:pointer; display:block; }
  .art-pick img { display:block; width:100%; height:100%; object-fit:cover; }
  .art-tall .art-pick { aspect-ratio:2/3; }
  .art-wide .art-pick { aspect-ratio:16/9; }
  .art-logo .art-pick { aspect-ratio:16/7; background:repeating-conic-gradient(#1b1f2a 0 25%, #12151d 0 50%) 0 0/18px 18px; }
  .art-logo .art-pick img { object-fit:contain; padding:.45rem; }
  .art-pick:hover, .art-pick:focus-visible { border-color:var(--line); }
  .art-pick.on { border-color:var(--accent); }
  .art-tick { position:absolute; top:.3rem; right:.3rem; width:1.3rem; height:1.3rem; border-radius:50%; background:var(--accent); color:#111; font-size:.8rem; font-weight:700; display:grid; place-items:center; }
  .art-foot { display:flex; align-items:center; gap:.6rem; margin-top:.6rem; font-size:.88rem; flex-wrap:wrap; }
  @media (max-width:640px) { .art-tall { grid-template-columns:repeat(4, 1fr); } .art-wide, .art-logo { grid-template-columns:repeat(2, 1fr); } }
  .ksheet .set-row { display:grid; grid-template-columns:1.9rem 1fr; gap:.1rem 0; padding:.5rem 0; }
  .ksheet .set-what { display:contents; }
  .ksheet .set-what > input { grid-column:1; grid-row:1; margin-top:.25rem; justify-self:start; }
  .ksheet .set-what > :not(input) { grid-column:2; grid-row:2; justify-self:start; margin-top:.3rem; }
  .ksheet .set-label { grid-column:2; grid-row:1; }
  .ksheet .set-label .muted { font-size:.82rem; line-height:1.35; }
  @media (max-width:640px) { .ksheet { padding:.8rem .9rem; } }
  .page-tabs { display:flex; gap:.3rem; flex-wrap:wrap; margin:0 0 1rem; }
  .pane-off { display:none !important; }
  h2 .small { font-size:.85rem; font-weight:400; margin-left:.4rem; }
  #me-tabs { display:flex; gap:.3rem; flex-wrap:wrap; margin:0 0 1rem; }
  #me-tabs[hidden] { display:none; }
  .set-row { display:flex; gap:1rem; padding:.9rem 0; border-top:1px solid var(--line); flex-wrap:wrap; align-items:flex-start; }
  .set-label { flex:0 0 16rem; max-width:100%; font-weight:600; }
  .set-label .muted { font-weight:400; font-size:.85rem; margin-top:.2rem; }
  .set-what { flex:1 1 16rem; display:flex; gap:.5rem; align-items:center; flex-wrap:wrap; }
  #server-note { position:fixed; left:50%; bottom:1rem; transform:translateX(-50%); z-index:60; background:var(--panel-hi); color:var(--text); border:1px solid var(--line); border-radius:999px; padding:.45rem 1rem; font-size:.9rem; box-shadow:0 4px 18px rgba(0,0,0,.45); display:flex; gap:.7rem; align-items:center; max-width:92vw; }
  #server-note[hidden] { display:none; }
  #server-note button { padding:.2rem .7rem; }
  #undo { position:fixed; left:50%; transform:translateX(-50%); bottom:1rem; z-index:70; max-width:min(40rem, 92vw); background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:.6rem .7rem .6rem 1rem; display:flex; gap:1rem; align-items:center; box-shadow:0 10px 30px rgba(0,0,0,.45); }
  #undo[hidden] { display:none; }
  .card[hidden] { display:none; }
  #night { position:fixed; inset:0; z-index:55; background:rgba(0,0,0,.72); display:flex; align-items:flex-start; justify-content:center; padding:1rem; overflow-y:auto; }
  #night[hidden] { display:none; }
  #night h3 { font-size:1.15rem; margin:0 0 .9rem; }
  .night-choices { display:flex; flex-wrap:wrap; gap:.6rem; }
  .night-choices button { background:transparent; color:var(--text); border:1px solid var(--line); border-radius:12px; padding:.8rem 1.1rem; font-weight:400; font-size:1rem; }
  .night-choices button:hover:not(:disabled) { background:var(--panel-hi); }
  .night-choices button.on { border-color:var(--accent); color:var(--accent); font-weight:600; }
  .night-choices button.who { display:flex; flex-direction:column; align-items:center; gap:.4rem; min-width:6.5rem; }
  .night-choices button.who .avatar { opacity:.6; }
  .night-choices button.who.on .avatar { opacity:1; box-shadow:0 0 0 2px var(--accent); }
  .night-picks { display:grid; grid-template-columns:repeat(auto-fill, minmax(8.5rem, 1fr)); gap:1rem; }
  #howto { position:fixed; inset:0; z-index:55; background:rgba(0,0,0,.72); display:flex; align-items:flex-start; justify-content:center; padding:1rem; overflow-y:auto; }
  #howto[hidden] { display:none; }
  #adder { position:fixed; inset:0; z-index:55; background:rgba(0,0,0,.72); display:flex; align-items:flex-start; justify-content:center; padding:1rem; overflow-y:auto; }
  #adder[hidden] { display:none; }
  #bday { display:flex; align-items:center; gap:1rem; margin-bottom:1.4rem; padding:1.1rem 1.3rem; border-radius:12px; border:1px solid var(--accent);
    background:linear-gradient(120deg, color-mix(in srgb, var(--accent) 26%, var(--panel)), var(--panel) 70%); }
  #bday[hidden] { display:none; }
  #bday .cake { font-size:2.4rem; line-height:1; }
  #bday .big { font-size:1.35rem; font-weight:700; }
  .add-hit { display:flex; gap:.8rem; padding:.6rem; border-radius:8px; cursor:pointer; align-items:flex-start; }
  .add-hit:hover, .add-hit:focus-visible { background:var(--panel-hi); outline:none; }
  .add-art { flex:0 0 3.4rem; aspect-ratio:2/3; border-radius:5px; overflow:hidden; background:var(--panel-hi); border:1px solid var(--line); position:relative; }
  .add-art img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
  .add-hit .ov { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:.85rem; margin-top:.2rem; }
  .add-tag { font-size:.7rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; background:var(--panel-hi); border:1px solid var(--line); border-radius:4px; padding:.05rem .35rem; margin-left:.4rem; vertical-align:middle; }
  .add-form { display:grid; grid-template-columns:repeat(auto-fit, minmax(14rem, 1fr)); gap:.7rem; margin:.7rem 0; }
  .add-form label { margin:0; font-weight:400; font-size:.85rem; }
  #howto ol { margin:.2rem 0 1rem 1.2rem; padding:0; line-height:1.55; }
  #howto li { margin:.35rem 0; }
  #howto h3 { font-size:1rem; margin:1.1rem 0 .3rem; }
  #howto .flow { background:var(--bg-deep); border:1px solid var(--line); border-radius:8px; padding:.8rem; overflow-x:auto; }
  #howto .flow svg { display:block; margin:0 auto; max-width:100%; height:auto; }
  #switch { position:fixed; inset:0; z-index:50; background:rgba(0,0,0,.72); display:flex; align-items:center; justify-content:center; padding:1rem; }
  .switch-box { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:1.6rem; max-width:44rem; width:100%; max-height:90vh; overflow-y:auto; text-align:center; }
  .switch-box h2 { font-size:1.4rem; margin-bottom:1.2rem; }
  .people { display:flex; flex-wrap:wrap; gap:1rem; justify-content:center; margin-bottom:1rem; }
  .person { background:transparent; color:var(--text); font-weight:400; padding:.6rem; width:7.5rem; border-radius:10px; }
  .person:hover:not(:disabled) { background:var(--panel-hi); color:var(--text); }
  .person small { display:block; color:var(--muted); font-size:.75rem; }
  .person.cannot { opacity:.5; }
  .tiles { display:grid; grid-template-columns:repeat(auto-fill, minmax(8.5rem, 1fr)); gap:.6rem; }
  .tile { background:var(--bg); color:var(--text); border:1px solid var(--line); font-weight:600; padding:.8rem .6rem; text-align:center; }
  .tile small { display:block; font-weight:400; color:var(--muted); margin-top:.15rem; }
  .tile.current { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent); }
  .tile:hover:not(:disabled) { background:var(--panel-hi); color:var(--text); }
  .svc-tabs { display:flex; gap:.3rem; border-bottom:1px solid var(--line); margin-bottom:1rem; }
  .svc-tabs:empty { display:none; }
  .svc-tabs button { background:transparent; color:var(--muted); font-weight:400; border-radius:6px 6px 0 0; border-bottom:2px solid transparent; }
  .svc-tabs button.current { color:var(--text); border-bottom-color:var(--accent); }
  .step { display:flex; gap:.8rem; align-items:flex-start; padding:.7rem 0; border-top:1px solid var(--line); }
  .step:first-of-type { border-top:0; }
  .step .mark { flex:0 0 1.5rem; height:1.5rem; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.85rem; font-weight:700; margin-top:.1rem; }
  .step.done .mark { background:var(--good); color:#0b1a0f; }
  .step.todo .mark { background:var(--accent); color:var(--accent-text); }
  .step.bad .mark { background:var(--bad); color:#fff; }
  .step.na .mark { background:var(--chip); color:var(--muted); }
  .step > div:nth-child(2) { flex:1; min-width:0; }
  .step .acts { display:flex; gap:.4rem; flex-wrap:wrap; }
  .step .acts button { padding:.25rem .6rem; white-space:nowrap; }
  .themes { display:grid; grid-template-columns:repeat(auto-fill, minmax(9.5rem, 1fr)); gap:.6rem; }
  .theme { text-align:left; background:var(--bg); color:var(--text); border:1px solid var(--line); font-weight:400; padding:.5rem .6rem; }
  .theme.current { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent); }
  .theme .sw { display:flex; height:1.1rem; border-radius:4px; overflow:hidden; margin-bottom:.35rem; border:1px solid var(--line); }
  .theme .sw i { flex:1; }
  @media (max-width: 860px) {
    .side { position:fixed; z-index:20; left:0; transform:translateX(-100%); transition:transform .18s; width:var(--side-w) !important; }
    body.nav-open .side { transform:none; box-shadow:0 0 0 100vmax rgba(0,0,0,.5); }
    #menu-btn { display:inline-block; }
    .mini-btn { display:none; }
    .close-btn { display:inline-block; }
    /* Folded or not on a wide screen, the menu on a phone is shown whole. */
    .nav-mini .side .lbl, .nav-mini .nav-label { display:revert; }
    .nav-mini .side a.item { justify-content:flex-start; padding:.42rem .8rem .42rem .75rem; }
    .nav-mini .side a.item.sub { display:flex; padding-left:2.9rem; }
    .nav-mini .side a.item .fold { display:inline-block; }
    .nav-mini .brandrow { flex-direction:row; padding:.9rem .8rem .6rem .9rem; }
    .nav-mini .side a.item.nav-head .ico { display:none; }
    header { padding:.6rem .9rem; } main { padding:0 .9rem; }
    header h1 { display:none; }
    #find { position:static; }
    #q-results { position:fixed; left:.6rem; right:.6rem; top:3.6rem; }
    .hit { flex-wrap:wrap; }
    .hit > :first-child { flex-basis:100%; }
  }
  section { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:1.1rem 1.2rem; margin-bottom:1.2rem; }
  h2 { font-size:1rem; margin:0 0 .8rem; }
  label { display:block; margin:.6rem 0 .2rem; color:var(--muted); }
  input, select { width:100%; padding:.5rem .6rem; background:var(--bg); color:var(--text); border:1px solid var(--line); border-radius:6px; font:inherit; }
  button { padding:.5rem .9rem; border:0; border-radius:6px; background:var(--accent); color:var(--accent-text); font:inherit; font-weight:600; cursor:pointer; }
  button:hover:not(:disabled) { background:var(--accent-hi); }
  button.plain:hover:not(:disabled), .mini-btn:hover, #menu-btn:hover, .theme:hover:not(:disabled) { background:var(--panel-hi); color:var(--text); }
  button.plain { background:transparent; color:var(--muted); border:1px solid var(--line); font-weight:400; }
  /* A link that looks like a button: where a press goes to another page. */
  a.button { display:inline-block; padding:.5rem .9rem; border-radius:6px; background:var(--accent); color:var(--accent-text); font-weight:600; text-decoration:none; cursor:pointer; }
  a.button:hover { background:var(--accent-hi); }
  a.button.plain { background:transparent; color:var(--muted); border:1px solid var(--line); font-weight:400; }
  a.button.plain:hover { background:var(--panel-hi); color:var(--text); }
  a.button[aria-disabled=true] { opacity:.55; pointer-events:none; }
  /* A press is always seen: the button gives under the finger, and while what it started is
     still going it is dimmed, turns a small wheel, and takes no second press. */
  button:active { transform:translateY(1px); filter:brightness(.85); }
  button:disabled { opacity:.55; cursor:default; }
  button.busy, select.busy { opacity:.7; cursor:progress; }
  button.busy::after { content:''; display:inline-block; width:.7em; height:.7em; margin-left:.5em; vertical-align:-.05em;
    border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:turn .7s linear infinite; }
  @keyframes turn { to { transform:rotate(360deg); } }
  .act-list { font-size:.93rem; }
  .act-line { display:grid; grid-template-columns:1.4rem 4.6rem 1fr auto; gap:.6rem; align-items:baseline; padding:.32rem .2rem; border-top:1px solid var(--line); }
  .act-line:nth-child(odd) { background:color-mix(in srgb, var(--bg-deep) 40%, transparent); }
  .act-mark { color:var(--good); text-align:center; font-weight:700; }
  .act-bad .act-mark { color:var(--bad); }
  .act-when { color:var(--muted); white-space:nowrap; }
  .act-what { min-width:0; overflow-wrap:anywhere; }
  .act-node { white-space:nowrap; }
  .mk-ep { border-top:1px solid var(--line); padding:.6rem 0; }
  .mk-head { margin-bottom:.3rem; }
  .mk-line { display:flex; gap:.6rem; align-items:center; flex-wrap:wrap; margin:.3rem 0; }
  .mk-under { opacity:.55; }
  .mk-frame { width:8rem; aspect-ratio:16/9; border-radius:4px; background-color:var(--bg-deep); background-repeat:no-repeat; flex:0 0 auto; }
  .mk-none { border:1px dashed var(--line); }
  .mk-set { display:flex; gap:.4rem; align-items:center; flex-wrap:wrap; margin-top:.4rem; }
  .task-list { list-style:none; margin:.35rem 0 .1rem; padding:0; display:grid; gap:.15rem; font-size:.92rem; }
  .task-list li { display:flex; gap:.5rem; align-items:baseline; }
  .task-mark { flex:0 0 1.1em; text-align:center; font-weight:700; }
  .task-ok .task-mark { color:var(--good, #3fb950); }
  .task-warn .task-mark { color:var(--warn, #d29922); }
  .task-off, .task-off .task-mark { color:var(--muted); }
  .task-now .task-mark::before { content:''; display:inline-block; width:.7em; height:.7em; vertical-align:-.05em;
    border:2px solid var(--accent); border-right-color:transparent; border-radius:50%; animation:turn .7s linear infinite; }
  @media (prefers-reduced-motion: reduce) { .task-now .task-mark::before { animation-duration:2.5s; } }
  @media (prefers-reduced-motion: reduce) { button.busy::after { animation-duration:2.5s; } }
  .row { display:grid; grid-template-columns:1fr 14rem auto; gap:.8rem; align-items:center; padding:.6rem 0; border-top:1px solid var(--line); }
  .row:first-of-type { border-top:0; }
  .key { font-family:ui-monospace, monospace; font-size:.85rem; overflow-wrap:anywhere; }
  .muted { color:var(--muted); font-size:.85rem; }
  .msg { margin-top:.7rem; min-height:1.2rem; }
  .bad { color:var(--bad); } .good { color:var(--good); }
  .dot { display:inline-block; width:.6rem; height:.6rem; border-radius:50%; margin-right:.4rem; }
  .ok { background:var(--good); } .warn { background:var(--accent); } .fail { background:var(--bad); } .dot.off { background:var(--muted); opacity:.45; }
  main.tabbed section[data-tab]:not(.current), main.tabbed .page[data-tab]:not(.current) { display:none; }
  /* Until someone is signed in and a page is chosen, no page shows: otherwise every page flashes
     up, empty and one under another, while the first answers are awaited. */
  body.bare section[data-tab], body.bare .page[data-tab] { display:none; }
  /* Home: rows of posters that scroll sideways, as on a television. */
  .shelf { margin-bottom:1.6rem; }
  .shelf h2 { font-size:1.05rem; margin:0 0 .6rem; display:flex; align-items:baseline; gap:.6rem; }
  .shelf h2 small { color:var(--faint); font-weight:400; font-size:.8rem; }
  .cards { display:flex; gap:.9rem; overflow-x:auto; padding-bottom:.6rem; scroll-snap-type:x proximity; scrollbar-width:thin; }
  .card { flex:0 0 calc(9.2rem * var(--poster, 1)); scroll-snap-align:start; min-width:0; }
  /* The poster-size slider, beside the search; a phone keeps its own size and no slider. */
  .poster-size { display:flex; align-items:center; gap:.35rem; color:var(--muted); }
  .poster-size input { width:6.5rem; accent-color:var(--accent); }
  .poster-size .ps-small { font-size:.7rem; } .poster-size .ps-big { font-size:1.1rem; }
  @media (max-width:900px) { .poster-size { display:none; } }
  .card .art { position:relative; aspect-ratio:2/3; border-radius:6px; overflow:hidden; background:var(--panel-hi); border:1px solid var(--line);
    display:flex; align-items:center; justify-content:center; text-align:center; padding:.5rem; color:var(--muted); font-size:.85rem; }
  .side-card { display:flex; justify-content:space-between; align-items:center; gap:1rem; flex-wrap:wrap; margin-top:.6rem; padding:.6rem .8rem; background:var(--bg-deep, var(--panel)); border:1px solid var(--line); border-radius:8px; }
  .task { padding:.9rem 0; border-top:1px solid var(--line); }
  .task-log summary { cursor:pointer; color:var(--muted); margin-top:.5rem; }
  .task-line { display:grid; grid-template-columns:8rem minmax(8rem,1.2fr) 2fr 6rem; gap:.8rem; padding:.3rem 0; font-size:.86rem; border-top:1px solid var(--line); }
  .task-line.bad-line span:nth-child(3) { color:var(--bad, #e06c6c); }
  .task-file { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  @media (max-width:700px) { .task-line { grid-template-columns:1fr; gap:.1rem; } }
  .rail { position:relative; }
  .rail-top { margin-left:auto; display:flex; gap:.2rem; align-self:center; }
  .rail-top[hidden] { display:none; }
  .rail-s { background:transparent; border:0; color:var(--muted); font-size:1.3rem; line-height:1; padding:.1rem .5rem; border-radius:6px; }
  .rail-s:hover:not(:disabled) { color:var(--text); background:var(--panel-hi); }
  .rail-s:disabled { opacity:.3; }
  .rail-b { position:absolute; top:calc(50% - 2.6rem); z-index:3; width:2.6rem; height:2.6rem; padding:0; border-radius:50%; border:0; background:#fff; color:#111; font-size:1.6rem; line-height:1; box-shadow:0 4px 14px rgba(0,0,0,.5); opacity:0; transition:opacity .15s; }
  .rail-b.left { left:.4rem; } .rail-b.right { right:.4rem; }
  .rail-b[hidden] { display:none; }
  .rail:hover .rail-b, .rail-b:focus-visible { opacity:.95; }
  @media (hover: none) { .rail-b { display:none; } }
  .cmenu { position:fixed; z-index:60; min-width:14rem; max-width:20rem; background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:.35rem; box-shadow:0 14px 40px rgba(0,0,0,.55); }
  .cmenu-h { padding:.45rem .65rem .5rem; border-bottom:1px solid var(--line); margin-bottom:.3rem; font-size:.9rem; }
  .cmenu-h .muted { font-size:.8rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .cmenu button { display:block; width:100%; text-align:left; background:transparent; border:0; color:var(--text); padding:.5rem .65rem; border-radius:6px; font-weight:400; }
  .cmenu button:hover, .cmenu button:focus-visible { background:var(--panel-hi); }
  .card { -webkit-touch-callout:none; }
  .card .art img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
  .card .bar { position:absolute; left:0; right:0; bottom:0; height:4px; background:rgba(0,0,0,.55); }
  .card .bar i { display:block; height:100%; background:var(--accent); }
  .card .tag { position:absolute; top:.35rem; left:.35rem; font-size:.68rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
    background:var(--accent); color:var(--accent-text); border-radius:3px; padding:.05rem .35rem; }
  .card-live { position:absolute; left:.35rem; bottom:.55rem; z-index:2; max-width:calc(100% - .7rem); box-sizing:border-box;
    font-size:.7rem; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-decoration:none;
    background:rgba(0,0,0,.78); color:#fff; border-radius:3px; padding:.12rem .4rem; }
  .card-live.now { background:#c62828; }
  .card-live.now::before { content:""; display:inline-block; width:.45rem; height:.45rem; margin-right:.3rem; border-radius:50%; background:#fff; vertical-align:.05rem; animation:live-pulse 1.6s ease-in-out infinite; }
  .card-live:hover, .card-live:focus-visible { outline:2px solid var(--accent); }
  .live-dot { font-weight:700; color:#e53935; }
  .live-dot::before { content:""; display:inline-block; width:.5rem; height:.5rem; margin-right:.35rem; border-radius:50%; background:currentColor; vertical-align:.05rem; animation:live-pulse 1.6s ease-in-out infinite; }
  @keyframes live-pulse { 50% { opacity:.35; } }
  @media (prefers-reduced-motion: reduce) { .card-live.now::before, .live-dot::before { animation:none; } }
  .card .t { margin-top:.4rem; font-size:.88rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .card .s { font-size:.78rem; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  /* A pick's reason may take two lines. */
  .pick .card .s, #tp-like .card .s, .shelf .card .s { white-space:normal; display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; }
  main:has(.page.current) { max-width:1400px; }
  .empty-home { color:var(--muted); padding:2rem 0; }
  .filters { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:.6rem; }
  .st-tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(8rem, 1fr)); gap:.6rem; }
  .st-tile { border:1px solid var(--line); border-radius:8px; padding:.6rem .8rem; }
  .st-tile b { display:block; font-size:1.5rem; font-weight:600; }
  .st-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(19rem, 1fr)); gap:1.2rem 1.6rem; }
  .st-grid h3 { margin:0 0 .4rem; font-size:.95rem; }
  .st-row { display:grid; grid-template-columns:minmax(0, 11rem) 1fr auto; gap:.5rem; align-items:center; font-size:.85rem; padding:.12rem 0; }
  .st-row > span:first-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .st-bar { height:.55rem; border-radius:3px; background:var(--accent); min-width:2px; }
  .st-cols { display:flex; align-items:flex-end; gap:2px; height:7rem; }
  .st-cols > div { flex:1 1 0; background:var(--accent); border-radius:2px 2px 0 0; min-height:1px; }
  .st-axis { display:flex; justify-content:space-between; font-size:.75rem; color:var(--muted); margin-top:.2rem; }
  .filters select { flex:1 1 9rem; width:auto; }
  .filters input { flex:2 1 12rem; width:auto; }
  /* On a phone: one thing per line, and tabs that scroll sideways instead of squeezing. */
  @media (max-width: 700px) {
    .row { grid-template-columns:1fr; gap:.3rem; }
    nav button { flex:0 0 auto; }
    main { padding:0 .6rem; }
  }
  /* A part of a page that folds away under one line saying how it stands. */
  details.fold > summary { cursor:pointer; list-style-position:outside; margin-left:1rem; }
  details.fold > summary b { font-size:1rem; }
  details.fold[open] > summary { margin-bottom:.7rem; }
  details.fold + details.fold { margin-top:.9rem; padding-top:.9rem; border-top:1px solid var(--line); }
  /* One thing per line, with what can be done to it at the end, on a phone as well. */
  .line { display:flex; justify-content:space-between; align-items:center; gap:.6rem; padding:.35rem 0; border-top:1px solid var(--line); }
  .line:first-child { border-top:0; }
  .line > :first-child { min-width:0; flex:1; overflow-wrap:anywhere; }
  .line select { width:auto; max-width:11rem; padding:.25rem .4rem; }
  .line button { padding:.25rem .6rem; white-space:nowrap; }
  /* ---- Small helpers, in place of style written on an element -------------------------
     One scale of space for every gap and margin: xs .3rem, s .5rem, m .8rem, l 1.2rem,
     xl 1.6rem. Each wins over a part's own rule, as the style written on it did; [hidden]
     still wins over them, being after them. */
  .mt-0{margin-top:0!important} .mb-0{margin-bottom:0!important} .mt-xs{margin-top:.3rem!important}
  .mb-xs{margin-bottom:.3rem!important} .my-xs{margin-top:.3rem!important;margin-bottom:.3rem!important}
  .gap-xs{gap:.3rem!important} .mt-s{margin-top:.5rem!important} .mb-s{margin-bottom:.5rem!important}
  .my-s{margin-top:.5rem!important;margin-bottom:.5rem!important} .gap-s{gap:.5rem!important}
  .mt-m{margin-top:.8rem!important} .mb-m{margin-bottom:.8rem!important}
  .my-m{margin-top:.8rem!important;margin-bottom:.8rem!important} .gap-m{gap:.8rem!important}
  .mt-l{margin-top:1.2rem!important} .mb-l{margin-bottom:1.2rem!important}
  .my-l{margin-top:1.2rem!important;margin-bottom:1.2rem!important} .gap-l{gap:1.2rem!important}
  .mt-xl{margin-top:1.6rem!important} .mb-xl{margin-bottom:1.6rem!important}
  .my-xl{margin-top:1.6rem!important;margin-bottom:1.6rem!important} .gap-xl{gap:1.6rem!important}
  .m-0{margin:0!important} .ml-auto{margin-left:auto!important}
  .py-l{padding-top:1rem!important;padding-bottom:1rem!important} .flex{display:flex!important}
  .grid{display:grid!important} .block{display:block!important} .col{flex-direction:column!important}
  .wrap{flex-wrap:wrap!important} .grow{flex:1!important} .minw-0{min-width:0!important}
  .items-center{align-items:center!important} .items-start{align-items:flex-start!important}
  .justify-end{justify-content:flex-end!important} .justify-between{justify-content:space-between!important}
  .fs-s{font-size:.85rem!important} .fs-m{font-size:.9rem!important} .fw-normal{font-weight:400!important}
  .fw-bold{font-weight:600!important} .inherit{color:inherit!important}
  .break-all{word-break:break-all!important} .break-anywhere{overflow-wrap:anywhere!important}
  .nowrap{white-space:nowrap!important} .text-center{text-align:center!important}
  .text-right{text-align:right!important} .w-auto{width:auto!important} .w-full{width:100%!important}
  .mw-11{max-width:11rem!important} .mw-12{max-width:12rem!important} .mw-14{max-width:14rem!important}
  .mw-16{max-width:16rem!important} .mw-18{max-width:18rem!important} .mw-20{max-width:20rem!important}
  .mw-24{max-width:24rem!important} .mw-28{max-width:28rem!important} .mw-30{max-width:30rem!important}
  .mw-32{max-width:32rem!important} .mw-36{max-width:36rem!important} .mw-40{max-width:40rem!important}
  .mw-44{max-width:44rem!important}
  /* ---- The player: one window over the page, laid out as Plex's ------------------------- */
  .tp-play:not(:disabled) { background:var(--accent); color:var(--accent-text); border-color:var(--accent); font-weight:700; }
  .ep-play { flex:0 0 auto; width:2.2rem; height:2.2rem; border-radius:50%; padding:0; color:var(--accent); opacity:.75; }
  .ep-play:hover { opacity:1; background:var(--chip); }
  .card-play { position:absolute; left:50%; top:50%; width:3.2rem; height:3.2rem; margin:-1.6rem 0 0 -1.6rem; border-radius:50%; border:0; background:rgba(0,0,0,.6); color:#fff; font-size:1.2rem; opacity:0; transition:opacity .15s, transform .15s; cursor:pointer; padding:0 0 0 .2rem; }
  .card:hover .card-play, .card-play:focus-visible { opacity:1; }
  .card-play:hover { background:var(--accent); color:var(--accent-text); transform:scale(1.08); }
  .pl { position:fixed; inset:0; z-index:95; background:#000; color:#fff; overflow:hidden; font-size:1rem; }
  body.pl-open { overflow:hidden; }
  .pl-video { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; background:#000; }
  .pl-video::cue { background:rgba(0,0,0,.62); color:#fff; line-height:1.35; }
  .pl-shade { position:absolute; inset:0; background:linear-gradient(to bottom, rgba(0,0,0,.65), transparent 18%, transparent 55%, rgba(0,0,0,.85)); transition:opacity .3s; }
  .pl-top { position:absolute; top:0; left:0; right:0; display:flex; align-items:center; gap:.4rem; padding:1rem 1.2rem; transition:opacity .3s; }
  .pl-bottom { position:absolute; left:0; right:0; bottom:0; padding:0 2rem 1.1rem; transition:opacity .3s; }
  .pl-idle .pl-top, .pl-idle .pl-bottom, .pl-idle .pl-shade { opacity:0; pointer-events:none; }
  .pl-idle { cursor:none; }
  .pl-head { display:flex; align-items:flex-end; gap:1rem; margin-bottom:.9rem; }
  .pl-thumb { width:4.2rem; aspect-ratio:2/3; object-fit:cover; border-radius:6px; box-shadow:0 6px 20px rgba(0,0,0,.5); }
  .pl-t1 { font-size:1.35rem; font-weight:700; text-shadow:0 1px 6px rgba(0,0,0,.6); }
  .pl-t2 { color:rgba(255,255,255,.75); margin-top:.15rem; }
  .pl-bar { position:relative; height:6px; border-radius:3px; background:rgba(255,255,255,.22); cursor:pointer; touch-action:none; transition:height .15s; }
  .pl-bar:hover, .pl-dragging { height:9px; }
  .pl-bar::before { content:""; position:absolute; left:0; right:0; top:-10px; bottom:-10px; }
  .pl-loaded { position:absolute; left:0; top:0; bottom:0; background:rgba(255,255,255,.3); border-radius:3px; }
  .pl-fill { position:absolute; left:0; top:0; bottom:0; background:var(--accent); border-radius:3px; }
  .pl-knob { position:absolute; top:50%; width:16px; height:16px; margin:-8px 0 0 -8px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 3px rgba(0,0,0,.35); transform:scale(0); transition:transform .15s; }
  .pl-bar:hover .pl-knob, .pl-dragging .pl-knob, .pl-paused .pl-knob { transform:none; }
  .pl-marks { position:absolute; inset:0; pointer-events:none; }
  .pl-mk { position:absolute; top:0; bottom:0; background:rgba(255,255,255,.35); }
  .pl-mk-credits, .pl-mk-break { background:rgba(255,255,255,.18); }
  .pl-mk-mid_credits, .pl-mk-post_credits { background:var(--warn); }
  .pl-ch { position:absolute; top:-2px; bottom:-2px; width:2px; background:rgba(0,0,0,.7); }
  .pl-preview { position:absolute; bottom:22px; display:flex; flex-direction:column; align-items:center; gap:.3rem; pointer-events:none; }
  .pl-pv-pic { border-radius:6px; border:2px solid rgba(255,255,255,.85); box-shadow:0 8px 24px rgba(0,0,0,.6); background-repeat:no-repeat; }
  .pl-pv-t { background:rgba(0,0,0,.75); padding:.15rem .5rem; border-radius:6px; font-variant-numeric:tabular-nums; white-space:nowrap; }
  .pl-times { display:flex; gap:1rem; margin-top:.45rem; font-size:.9rem; color:rgba(255,255,255,.8); font-variant-numeric:tabular-nums; }
  .pl-ctrls { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; margin-top:.4rem; }
  .pl-mid { display:flex; align-items:center; gap:1rem; }
  .pl-side { display:flex; align-items:center; gap:.3rem; }
  .pl-right { justify-content:flex-end; }
  .pl-b { background:transparent; border:0; color:#fff; padding:.4rem; border-radius:50%; display:inline-flex; cursor:pointer; opacity:.9; }
  .pl-b:hover { background:rgba(255,255,255,.14); opacity:1; }
  .pl-b:disabled { opacity:.3; cursor:default; background:transparent; }
  .pl-b.on { color:var(--accent); }
  .pl-ico svg { display:block; }
  .pl-ico .k { fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
  .pl-ico .f { fill:currentColor; }
  .pl-ico .t { fill:currentColor; font-weight:700; font-family:inherit; }
  .pl-big svg { width:40px; height:40px; }
  .pl-vol { width:6.5rem; accent-color:var(--accent); }
  .pl-skip { position:absolute; right:2rem; bottom:9.5rem; background:rgba(20,20,20,.82); color:#fff; border:1px solid rgba(255,255,255,.35); border-radius:8px; padding:.7rem 1.4rem; font-weight:700; font-size:1rem; cursor:pointer; backdrop-filter:blur(6px); }
  .pl-skip:hover { background:#fff; color:#000; }
  .pl-up { position:absolute; right:2rem; bottom:9.5rem; display:flex; flex-direction:column; align-items:flex-end; gap:.5rem; }
  .pl-up-what { color:rgba(255,255,255,.85); text-shadow:0 1px 6px #000; max-width:22rem; text-align:right; }
  .pl-up-row { display:flex; gap:.6rem; }
  .pl-up-no { background:rgba(20,20,20,.82); color:#fff; border:1px solid rgba(255,255,255,.35); border-radius:8px; padding:.7rem 1.1rem; font-weight:600; cursor:pointer; }
  .pl-up-go { position:relative; overflow:hidden; background:rgba(255,255,255,.25); color:#000; border:0; border-radius:8px; padding:.7rem 1.5rem; font-weight:700; cursor:pointer; min-width:11rem; }
  .pl-up-fill { position:absolute; left:0; top:0; bottom:0; width:0; background:#fff; transition:width .25s linear; }
  .pl-up-label { position:relative; mix-blend-mode:difference; color:#fff; }
  .pl-menu { position:absolute; right:2rem; bottom:7.5rem; width:min(21rem, calc(100% - 2rem)); max-height:min(70vh, 34rem); overflow:auto; background:rgba(24,24,24,.96); border:1px solid rgba(255,255,255,.12); border-radius:12px; padding:.4rem 0; box-shadow:0 20px 50px rgba(0,0,0,.6); }
  .pl-mh { padding:.6rem 1rem .3rem; font-size:.78rem; text-transform:uppercase; letter-spacing:.06em; color:rgba(255,255,255,.55); }
  .pl-mi { display:flex; width:100%; gap:.6rem; align-items:center; text-align:left; background:transparent; border:0; color:#fff; padding:.5rem 1rem; cursor:pointer; }
  .pl-mi:hover { background:rgba(255,255,255,.08); }
  .pl-mi-tick { width:1rem; color:var(--accent); }
  .pl-mn { padding:.3rem 1rem .5rem; font-size:.85rem; }
  .pl-chips { display:flex; flex-wrap:wrap; gap:.3rem; padding:.2rem 1rem .4rem; }
  .pl-chips .pill { color:#fff; border-color:rgba(255,255,255,.2); padding:.25rem .7rem; }
  .pl-info { display:flex; justify-content:space-between; gap:1rem; padding:.2rem 1rem; font-size:.88rem; }
  .pl-toast { position:absolute; top:4.5rem; left:50%; transform:translateX(-50%); background:rgba(20,20,20,.88); padding:.5rem 1rem; border-radius:999px; white-space:nowrap; }
  .pl-say { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.6); padding:1rem; }
  .pl-say-box { width:min(32rem, 100%); background:var(--panel); color:var(--text); border:1px solid var(--line); border-radius:18px; padding:1.3rem 1.5rem 1.1rem; box-shadow:0 20px 60px rgba(0,0,0,.6); }
  .pl-say-box h2 { margin:0 0 .6rem; font-size:1.2rem; }
  .pl-say-box p { margin:.4rem 0; line-height:1.5; }
  .pl-say-acts { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:.6rem; margin-top:1rem; }
  .pl-room { position:absolute; right:1rem; top:4rem; width:min(22rem, calc(100% - 2rem)); background:var(--panel); color:var(--text); border:1px solid var(--line); border-radius:16px; padding:1rem 1.1rem; z-index:6; box-shadow:0 20px 60px rgba(0,0,0,.6); display:grid; gap:.5rem; }
  .pl-room-head { display:flex; align-items:center; justify-content:space-between; }
  .pl-room-x { background:transparent; color:var(--muted); border:0; font-size:1rem; }
  .pl-room-code { font-size:2rem; letter-spacing:.35em; font-weight:700; text-align:center; font-family:ui-monospace, monospace; }
  .pl-room-link { display:flex; gap:.4rem; }
  .pl-room-link input { flex:1; min-width:0; font-size:.85rem; }
  .pl-room-who { display:flex; flex-wrap:wrap; gap:.3rem; }
  .pl-room-ctl { display:flex; gap:.4rem; align-items:center; font-size:.9rem; }
  .pl-reel { position:absolute; inset:0; background:#000; z-index:5; display:flex; flex-direction:column; }
  .pl-reel-v { flex:1; width:100%; min-height:0; object-fit:contain; background:#000; }
  .pl-reel-bar { display:flex; align-items:center; gap:.8rem; padding:.7rem 1rem; color:#fff; background:linear-gradient(transparent, rgba(0,0,0,.7)); position:absolute; left:0; right:0; bottom:0; }
  .pl-reel-bar .muted { color:rgba(255,255,255,.75); }
  .pl-reel-skip { background:rgba(255,255,255,.14); color:#fff; border:1px solid rgba(255,255,255,.35); border-radius:999px; padding:.4rem .9rem; }
  .pl-reel-skip:hover, .pl-reel-skip:focus-visible { background:rgba(255,255,255,.26); }
  .pl-here-list { display:flex; flex-wrap:wrap; gap:.5rem; margin:.8rem 0 .2rem; }
  .pl-here { display:flex; align-items:center; gap:.35rem; padding:.45rem .8rem; border:1px solid var(--line); border-radius:999px; cursor:pointer; }
  .pl-here:has(input:checked) { border-color:var(--accent); }
  .pl-always { display:flex; gap:.4rem; align-items:center; margin-top:.8rem; font-size:.9rem; }
  .pl-resume-bar { height:5px; border-radius:3px; background:var(--line); overflow:hidden; margin:.6rem 0; }
  .pl-resume-bar span { display:block; height:100%; background:var(--accent); }
  .pl-spin { position:absolute; left:50%; top:50%; width:54px; height:54px; margin:-27px 0 0 -27px; border-radius:50%; border:4px solid rgba(255,255,255,.2); border-top-color:var(--accent); animation:pl-turn .9s linear infinite; }
  @keyframes pl-turn { to { transform:rotate(360deg); } }
  @media (max-width:640px) {
    .pl-bottom { padding:0 1rem .8rem; }
    .pl-vol, .pl-ends, .pl-thumb { display:none; }
    .pl-mid { gap:.2rem; }
    .pl-skip, .pl-up { right:1rem; bottom:8.5rem; }
  }
  [hidden] { display:none !important; }

  /* ---- Motion -------------------------------------------------------------------------
     Noticeable, and never in the way: things rise into place as they are shown, sheets and
     menus spring open, posters lift under the pointer and press under a finger. Each plays
     whenever its element is shown again (a hidden element starts its animation afresh).
     Everything here stops for anyone whose system asks for less motion. What rises keeps
     nothing of its rising once it has risen (backwards, not both): a part left with a transform
     holds every sheet opened inside it to itself, not to the screen. */
  :root { --spring:cubic-bezier(.2, 1.3, .35, 1); --settle:cubic-bezier(.16, 1, .3, 1); }
  @keyframes m-rise { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }
  @keyframes m-fade { from { opacity:0; } to { opacity:1; } }
  @keyframes m-pop { from { opacity:0; transform:translateY(-6px) scale(.94); } to { opacity:1; transform:none; } }
  @keyframes m-sheet { from { opacity:0; transform:translateY(28px) scale(.96); } to { opacity:1; transform:none; } }
  @keyframes m-card { from { opacity:0; transform:translateY(18px) scale(.96); } to { opacity:1; transform:none; } }
  @keyframes m-shimmer { from { background-position:-200% 0; } to { background-position:200% 0; } }
  @keyframes m-bounce { 0% { opacity:0; transform:scale(.7); } 60% { opacity:1; transform:scale(1.06); } 100% { transform:none; } }

  /* Pages and their parts rise into place. */
  section, .shelf, .tp, .cast-top, #tp-series, #tp-like, #born-with { animation:m-rise .42s var(--settle) backwards; }
  .shelf:nth-of-type(2) { animation-delay:.05s; } .shelf:nth-of-type(3) { animation-delay:.1s; }
  .shelf:nth-of-type(4) { animation-delay:.15s; } .shelf:nth-of-type(n+5) { animation-delay:.2s; }

  /* Posters come in one after another, then lift under the pointer and press under a finger. */
  .card { animation:m-card .45s var(--settle) backwards; }
  .card:nth-child(2) { animation-delay:.03s; } .card:nth-child(3) { animation-delay:.06s; } .card:nth-child(4) { animation-delay:.09s; }
  .card:nth-child(5) { animation-delay:.12s; } .card:nth-child(6) { animation-delay:.15s; } .card:nth-child(7) { animation-delay:.18s; }
  .card:nth-child(8) { animation-delay:.21s; } .card:nth-child(9) { animation-delay:.24s; } .card:nth-child(10) { animation-delay:.27s; }
  .card:nth-child(11) { animation-delay:.3s; } .card:nth-child(12) { animation-delay:.33s; } .card:nth-child(n+13) { animation-delay:.36s; }
  /* No will-change: kept as one picture, the case would be drawn once and only stretched when it
     grows on hover, softening it. */
  .card .art { transition:transform .28s var(--spring), box-shadow .28s ease, border-color .2s ease; }
  .card.opens:hover .art, .card.opens:focus-visible .art { transform:translateY(-6px) scale(1.04); box-shadow:0 16px 34px rgba(0,0,0,.45); border-color:var(--accent); }
  .card.opens:active .art { transform:scale(.96); transition-duration:.1s; }
  .face img, .face .face-none { transition:transform .28s var(--spring), box-shadow .28s ease; }
  .face:hover img, .face:hover .face-none { transform:scale(1.08); box-shadow:0 10px 24px rgba(0,0,0,.4); }

  /* Sheets spring up over a fading veil; menus and choices pop open from where they belong. */
  #sheet { animation:m-fade .22s ease both; }
  #sheet > * { animation:m-sheet .42s var(--spring) both; }
  #user-menu { transform-origin:top right; animation:m-pop .24s var(--spring) both; }
  .fpop { transform-origin:top left; animation:m-pop .22s var(--spring) both; }
  .cmenu { transform-origin:top left; animation:m-pop .2s var(--spring) both; }
  .switch-box { animation:m-sheet .45s var(--spring) both; }
  #bday { animation:m-bounce .6s var(--spring) both; }
  #bday .cake { display:inline-block; animation:m-bounce .8s var(--spring) .25s both; }

  /* Buttons and pills answer a press. */
  button, .pill { transition:background .18s ease, color .18s ease, transform .16s var(--spring), box-shadow .18s ease; }
  button:active:not(:disabled), .pill:active { transform:scale(.95); filter:brightness(.92); }
  .side a.item { transition:background .2s ease, color .2s ease, border-color .2s ease, transform .25s var(--spring); }
  .side a.item:hover { transform:translateX(3px); }

  /* While something is being read: a shimmer where it will be, not words. */
  .skeleton { display:grid; gap:.55rem; padding:.3rem 0; }
  .skeleton i { display:block; height:.8rem; border-radius:999px; background:linear-gradient(90deg, var(--panel-hi) 25%, var(--line) 50%, var(--panel-hi) 75%);
    background-size:200% 100%; animation:m-shimmer 1.3s linear infinite; }
  .skeleton i:nth-child(2) { width:82%; } .skeleton i:nth-child(3) { width:64%; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration:.01ms !important; animation-delay:0s !important; animation-iteration-count:1 !important;
      transition-duration:.01ms !important; }
  }
  /* Live TV: channels from tuners and services, the admin's sources and lineups. */
  .tuned { display:grid; grid-template-columns:repeat(auto-fill, minmax(11rem, 1fr)); gap:.5rem; margin:.6rem 0 1rem; }
  .tuned-ch { display:flex; align-items:center; gap:.5rem; padding:.5rem .6rem; border:1px solid var(--line); border-radius:8px; background:var(--panel); color:var(--text); text-decoration:none; }
  .tuned-ch:hover { background:var(--panel-hi); }
  .tuned-ch img { width:2rem; height:1.4rem; object-fit:contain; }
  .tuned-ch b { min-width:2.6rem; }
  .live-scan { font-size:.9em; color:var(--accent); }
  .live-form textarea { width:100%; }
  .live-pick { max-height:22rem; overflow:auto; border:1px solid var(--line); border-radius:6px; padding:.3rem .5rem; margin-top:.4rem; }
  .live-pick-row { display:flex; gap:.5rem; align-items:center; padding:.15rem 0; }
  .live-addr { font-size:.9em; color:var(--muted, inherit); margin-top:.15rem; }
  .live-addr code { user-select:all; word-break:break-all; }
  .setup-steps { list-style:none; padding:0; margin:1rem 0 0; display:flex; flex-direction:column; gap:1rem; }
  .setup-step { display:flex; gap:.9rem; align-items:flex-start; }
  .setup-step h3 { margin:.15rem 0 .35rem; }
  .setup-mark { flex:none; width:2rem; height:2rem; border-radius:50%; display:grid; place-items:center; font-weight:700; background:var(--chip); }
  .setup-step.done .setup-mark { background:#43a047; color:#fff; }

/* Family: who may see what, as two ladders of ratings to drag people along. */
.fam-ladders{border:1px solid var(--line);border-radius:12px;padding:.9rem 1rem;margin:0 0 1.1rem;outline:none;user-select:none;-webkit-user-select:none}
.fam-ladders-head{display:flex;gap:.6rem;align-items:baseline;flex-wrap:wrap;margin-bottom:.7rem}
.fam-ladder{display:grid;grid-template-columns:5rem repeat(5,minmax(0,1fr));gap:.35rem;align-items:stretch;margin:.35rem 0}
.fam-ladder-name{align-self:center;font-weight:600}
.fam-rung{border-radius:9px;padding:.4rem .45rem;min-height:4.2rem;background:color-mix(in srgb,var(--fg,#fff) 4%,transparent);border:1px dashed transparent;cursor:pointer;transition:background .15s,border-color .15s}
.fam-rung.r0{box-shadow:inset 0 3px 0 #3fb950}.fam-rung.r1{box-shadow:inset 0 3px 0 #8bc34a}.fam-rung.r2{box-shadow:inset 0 3px 0 #e5a00d}.fam-rung.r3{box-shadow:inset 0 3px 0 #f0883e}.fam-rung.r4{box-shadow:inset 0 3px 0 #f85149}
.fam-rung.lit{border-color:var(--accent,#e5a00d);background:color-mix(in srgb,var(--accent,#e5a00d) 14%,transparent)}
.fam-rung-name{font-size:.8rem;opacity:.75;margin-bottom:.3rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fam-rung-who{display:flex;flex-wrap:wrap;gap:.25rem}
.fam-chip{display:inline-flex;align-items:center;gap:.3rem;max-width:100%;min-width:0;padding:.15rem .5rem .15rem .2rem;border-radius:99px;border:1px solid var(--line);background:color-mix(in srgb,var(--fg,#fff) 10%,transparent);color:inherit;font:inherit;font-size:.82rem;cursor:grab;touch-action:none}
.fam-chip-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.fam-rung{min-width:0}
.fam-chip img,.fam-chip .face{width:22px;height:22px;border-radius:50%}
.fam-chip.picked{outline:2px solid var(--accent,#e5a00d)}
.fam-chip.held{opacity:.35}
.fam-ladder-said{min-height:1.6rem;display:flex;gap:.6rem;align-items:center;margin-top:.5rem;font-size:.9rem}
@container (max-width:560px){.fam-ladder{grid-template-columns:repeat(5,minmax(0,1fr))}.fam-ladder-name{grid-column:1/-1}}
@media (max-width:560px){.fam-ladder{grid-template-columns:repeat(5,minmax(0,1fr))}.fam-ladder-name{grid-column:1/-1}.fam-rung-name{font-size:.7rem}.fam-chip{padding:.15rem}.fam-chip-name{display:none}}

/* Live TV: a lineup's channels, dragged into the order they are numbered in. */
.lineup-order{user-select:none;-webkit-user-select:none}
.lineup-order tr.line-above td{box-shadow:inset 0 3px 0 var(--accent,#e5a00d)}
.lineup-order tr.line-below td{box-shadow:inset 0 -3px 0 var(--accent,#e5a00d)}
.lineup-order tr.held{opacity:.35}
.lineup-order tr.picked td{background:color-mix(in srgb,var(--accent,#e5a00d) 12%,transparent)}
.lineup-grip{background:none;border:0;color:inherit;font-size:1.15rem;line-height:1;padding:.2rem .35rem;cursor:grab;touch-action:none;opacity:.7}
.lineup-grip:hover,.lineup-grip[aria-pressed=true]{opacity:1}
.lineup-said{display:flex;gap:.6rem;align-items:center;margin:0 0 .5rem}
.lineup-none{border:1px dashed transparent;border-radius:9px;padding:.8rem}
.lineup-none.lit{border-color:var(--accent,#e5a00d);background:color-mix(in srgb,var(--accent,#e5a00d) 10%,transparent)}
.live-pick-row .lineup-grip{font-size:1rem;padding:0 .25rem}
#lineup-adding{user-select:none;-webkit-user-select:none}
.lineup-people{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;margin:0 0 .8rem;user-select:none;-webkit-user-select:none}
.lineup-watch{display:flex;gap:.3rem;align-items:center;border:1px dashed transparent;border-radius:8px;margin:.2rem 0;padding:0 .2rem}
.lineup-watch.ready{border-color:var(--line)}
.lineup-watch.lit{border-color:var(--accent,#e5a00d);background:color-mix(in srgb,var(--accent,#e5a00d) 14%,transparent)}

/* The shell: a rail of three workspaces, the workspace's places beside it, and a place's pages
   as tabs above the page. On a phone the rail is a bar along the bottom and the places one
   scrolling row at the top. */
:root { --side-w:12.5rem; --rail-w:4.6rem; }
.ws-rail { position:sticky; top:0; align-self:flex-start; height:100vh; width:var(--rail-w); flex:0 0 var(--rail-w); display:flex; flex-direction:column; align-items:stretch;
  gap:.2rem; padding:.8rem .35rem; background:var(--bg-deep, var(--sidebar)); border-right:1px solid var(--line); z-index:25; }
.rail-brand { display:flex; justify-content:center; padding:.2rem 0 .8rem; }
.rail-ws { display:flex; flex-direction:column; align-items:center; gap:.15rem; padding:.5rem .2rem; border-radius:10px; color:var(--muted); text-decoration:none;
  font:inherit; font-size:.72rem; background:transparent; border:0; cursor:pointer; }
.rail-ws .ico { font-size:1.2rem; line-height:1; }
.rail-ws:hover { background:var(--panel); color:var(--text); }
.rail-ws.current { background:var(--panel-hi); color:var(--text); box-shadow:inset 3px 0 0 var(--accent); }
.rail-ws.current .ico { color:var(--accent); }
.ws-rail .spacer { flex:1; }
.ws-rail .mini-btn { align-self:center; }
.rail-phone, .placerow { display:none; }
.side-head { padding:1.05rem 1.1rem .6rem; font-weight:700; font-size:1.05rem; }
.nav-mini .side { display:none; }
.place-tabs { display:flex; gap:.15rem; flex-wrap:wrap; margin:.2rem 1.6rem .9rem; border-bottom:1px solid var(--line); }
.place-tab { padding:.45rem .8rem; color:var(--muted); text-decoration:none; border-bottom:2px solid transparent; margin-bottom:-1px; white-space:nowrap; }
.place-tab:hover { color:var(--text); }
.place-tab.on { color:var(--text); border-bottom-color:var(--accent); font-weight:600; }
/* A library's tab only where the side, which lists them, is not shown. */
.place-tab.lib-tab { display:none; }
.nav-mini .place-tab.lib-tab { display:inline-block; }
@media (max-width: 860px) { .place-tab.lib-tab { display:inline-block; } }
body.bare .ws-rail, .app.bare .ws-rail, body.bare .placerow, body.bare .place-tabs { display:none; }
@media (max-width: 860px) {
  .side { display:none !important; }
  .ws-rail { position:fixed; top:auto; bottom:0; left:0; right:0; height:auto; width:auto; flex-direction:row; justify-content:space-around;
    padding:.25rem .3rem calc(.25rem + env(safe-area-inset-bottom)); border-right:0; border-top:1px solid var(--line); }
  .rail-brand, .ws-rail .spacer, .ws-rail .mini-btn { display:none; }
  .rail-ws, .rail-phone { display:flex; flex:1; padding:.35rem .1rem; }
  .rail-ws.current { box-shadow:inset 0 2px 0 var(--accent); }
  .content { padding-bottom:4.4rem; }
  .placerow { display:flex; gap:.35rem; overflow-x:auto; scrollbar-width:none; padding:.1rem .9rem .6rem;
    -webkit-mask-image:linear-gradient(90deg,#000 85%,transparent); mask-image:linear-gradient(90deg,#000 85%,transparent); }
  .placerow::-webkit-scrollbar { display:none; }
  .placerow a.item { display:inline-flex; gap:.35rem; align-items:center; white-space:nowrap; padding:.35rem .75rem; border-radius:99px; border:1px solid var(--line); color:var(--muted); text-decoration:none; }
  .placerow a.item.current { color:var(--text); border-color:var(--accent); background:var(--panel-hi); }
  .placerow .nav-label { display:none; }
  .place-tabs { margin:0 .9rem .8rem; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; }
  #menu-btn { display:none !important; }
}

/* The details panel, beside the page (a sheet on a phone), and the activity pill. */
.panel { position:fixed; top:0; right:0; bottom:0; width:420px; max-width:100vw; z-index:35; background:var(--panel); border-left:1px solid var(--line);
  box-shadow:-12px 0 32px rgba(0,0,0,.25); display:flex; flex-direction:column; }
.app:has(> .panel) > .content { margin-right:420px; }
.panel-head { display:flex; align-items:center; gap:.6rem; padding:1rem 1.1rem .7rem; border-bottom:1px solid var(--line); }
.panel-head h2 { flex:1; font-size:1.05rem; }
.panel-x { font-size:1.1rem; padding:.2rem .5rem; }
.panel-body { overflow-y:auto; padding:.4rem 1.1rem 1.4rem; }
.panel-group { font-size:.75rem; letter-spacing:.08em; text-transform:uppercase; color:var(--faint); margin:1rem 0 .4rem; }
.now-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:.5rem; }
.now-item { display:flex; gap:.6rem; align-items:flex-start; padding:.55rem .65rem; border:1px solid var(--line); border-radius:9px; }
.now-item > div { flex:1; min-width:0; }
.now-item .dot, .activity .dot { width:.55rem; height:.55rem; border-radius:50%; background:var(--good); flex:0 0 auto; margin-top:.45rem; }
.now-item.now-warn .dot, .activity.activity-look .dot { background:#e5a00d; }
.now-item.now-fail .dot { background:var(--bad); }
.activity { display:inline-flex; align-items:center; gap:.45rem; white-space:nowrap; text-decoration:none; color:var(--text); font-size:.85rem; padding:.3rem .75rem; margin-left:auto; }
.activity .dot { margin-top:0; }
.activity.quiet { color:var(--muted); }
.activity.quiet .dot { background:var(--faint); }
.activity.activity-look { border-color:#e5a00d; color:#e5a00d; background:transparent; }
@media (max-width: 860px) {
  .panel { width:100vw; border-left:0; z-index:40; }
  .app:has(> .panel) > .content { margin-right:0; }
  .activity-words { max-width:6.5rem; overflow:hidden; text-overflow:ellipsis; }
}

/* Real channel logos: a lineup channel's logo, and picking one from the pack. */
.lineup-logo { display:flex; flex-direction:column; align-items:center; gap:.1rem; background:none; border:1px solid transparent; border-radius:8px; padding:.2rem .35rem; color:inherit; cursor:pointer; min-width:4.5rem; }
.lineup-logo:hover { border-color:var(--line); }
.lineup-logo img { max-height:1.9rem; max-width:5.5rem; object-fit:contain; }
.logo-pack { flex-wrap:wrap; margin:.2rem 0 .7rem; }
.logo-pick { padding:.6rem .2rem; }
.logo-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(8.5rem, 1fr)); gap:.5rem; margin-top:.6rem; }
.logo-tile { display:flex; flex-direction:column; align-items:center; gap:.3rem; padding:.6rem .4rem; background:var(--bg-deep, #111); border:1px solid var(--line); border-radius:8px; color:var(--muted); cursor:pointer; }
.logo-tile:hover { border-color:var(--accent); color:var(--text); }
.logo-tile img { height:2.6rem; max-width:100%; object-fit:contain; }
.logo-tile span { word-break:break-all; text-align:center; }

/* Channels: the sources as a compact table, each opening in the details panel. */
.sources-table td:first-child { width:1.4rem; }
.sources-table .dot { display:inline-block; width:.6rem; height:.6rem; border-radius:50%; background:var(--good); }
.sources-table .dot.fail { background:var(--bad); } .sources-table .dot.warn { background:#e5a00d; } .sources-table .dot.off { background:var(--faint); }
.panel .kcard { border:0; padding:0; background:none; box-shadow:none; }

/* Recordings for everyone. */
.my-recs { list-style:none; padding:0; margin:0 0 1rem; display:flex; flex-direction:column; gap:.45rem; }
.my-rec { display:flex; gap:.6rem; align-items:center; padding:.55rem .7rem; border:1px solid var(--line); border-radius:9px; }

/* The broadcast guide: Now & next on a phone, the grid on a wide screen, or as picked. */
.bguide { margin:0 0 1.2rem; }
.bguide-head { display:flex; align-items:center; gap:.6rem; margin-bottom:.6rem; }
.seg { display:inline-flex; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.seg button { background:none; border:0; border-radius:0; padding:.3rem .7rem; color:var(--muted); font-weight:400; }
.seg button.on { background:var(--panel-hi); color:var(--text); }
.bguide-now { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:.4rem; }
.bnow { display:flex; gap:.6rem; align-items:stretch; border:1px solid var(--line); border-radius:9px; padding:.4rem; }
.bnow-ch { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.1rem; width:5.2rem; flex:0 0 5.2rem; text-decoration:none; color:var(--text); font-size:.8rem; text-align:center; }
.bnow-ch img { max-height:1.8rem; max-width:4.6rem; object-fit:contain; }
.bnow-ch span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; color:var(--muted); }
.bnow-progs { display:flex; flex-direction:column; gap:.25rem; min-width:0; flex:1; }
.bnow-prog, .bguide .guide-prog { display:flex; align-items:center; gap:.35rem; text-decoration:none; color:var(--text); border:1px solid transparent; border-radius:7px; padding:.25rem .45rem; min-width:0; }
.bnow-prog .bp-title, .bguide .guide-prog .bp-title { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.bnow-prog .bp-when, .bguide .guide-prog .bp-when { color:var(--muted); font-size:.8rem; white-space:nowrap; margin-left:auto; }
.bguide .guide-prog .bp-when { display:none; }
.bguide .bprog-at { position:absolute; top:0; bottom:0; }
.bguide .bprog-at .guide-prog { position:static; height:100%; width:100%; background:var(--panel); }
.bnow-prog.on { background:var(--panel-hi); }
.rec .rec-dot, .rec-dot { width:.55rem; height:.55rem; border-radius:50%; background:#e5484d; flex:0 0 auto; }
.sched { border-color:#e5484d !important; }
.conflict { border-color:#e5a00d !important; }
.blocked { background:repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--fg,#fff) 7%, transparent) 6px 12px) !important; color:var(--muted) !important; }
.in-lib-mark { font-size:.75rem; color:var(--accent); }
.bguide.bg-auto .bguide-grid, .bguide.bg-list .bguide-grid { display:none; }
.bguide.bg-grid .bguide-now { display:none; }
@media (min-width: 861px) {
  .bguide.bg-auto .bguide-now { display:none; }
  .bguide.bg-auto .bguide-grid { display:block; }
}
.bguide .guide-times, .bguide .guide-line { width:720px; }
.folk-wrap { display:flex; flex-direction:column; align-items:center; gap:.2rem; }
.folk-rules { color:var(--muted); }

/* Settings read as words; their keys are folded away until Show keys. */
.set-key { display:none; font-size:.75rem; color:var(--muted); cursor:copy; margin-top:.25rem; }
.set-key.on { display:block; }
.show-keys { float:right; margin:0 0 .4rem; color:var(--muted); font-size:.85rem; }

/* Recordings: rules as sentences with what they record next, and two days as lanes per tuner. */
.rule-next { list-style:none; margin:.3rem 0; padding:0; font-size:.88rem; }
.rule-next li { padding:.1rem 0; }
.rn-warn { color:color-mix(in srgb, #e5a00d 55%, var(--text)); font-size:.8rem; font-weight:600; }
.rn-now { color:color-mix(in srgb, var(--bad) 55%, var(--text)); font-size:.8rem; font-weight:600; }
.rtl { border:1px solid var(--line, rgba(255,255,255,.08)); border-radius:8px; padding:.5rem; overflow-x:auto; }
.rtl-head, .rtl-row { display:grid; grid-template-columns:7.5rem 168rem; gap:.5rem; align-items:center; width:max-content; }
.rtl-name { position:sticky; left:0; z-index:3; background:var(--panel); align-self:stretch; display:flex; align-items:center; }
.rtl-head .rtl-track { height:1.2rem; }
.rtl-row { margin-top:.3rem; }
.rtl-name { font-size:.8rem; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rtl-row.rtl-over .rtl-name { color:color-mix(in srgb, #e5a00d 55%, var(--text)); font-weight:600; }
.rtl-track { position:relative; height:2.6rem; background:color-mix(in srgb, var(--text) 4%, transparent); border-radius:4px; }
.rtl-head .rtl-track { background:none; }
.rtl-tick { position:absolute; top:0; font-size:.7rem; color:var(--muted); white-space:nowrap; transform:translateX(-50%); }
.rtl-now { position:absolute; top:-2px; bottom:-2px; width:2px; background:var(--bad); z-index:2; }
.rtl-b { position:absolute; top:2px; height:1.6rem; border-radius:4px; padding:0 .3rem; font-size:.72rem; line-height:1.6rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  background:color-mix(in srgb, var(--accent) 30%, var(--panel)); border:1px solid var(--accent); color:var(--text); text-decoration:none; }
.rtl-b.rtl-recording { background:var(--accent); color:#000; }
.rtl-b.rtl-done, .rtl-b.rtl-partial { background:color-mix(in srgb, var(--text) 18%, var(--panel)); border-color:color-mix(in srgb, var(--text) 30%, transparent); }
.rtl-b.rtl-conflict { background:repeating-linear-gradient(135deg, #e5a00d 0 6px, color-mix(in srgb, #e5a00d 55%, var(--panel)) 6px 12px); border-color:#e5a00d; color:#000; font-weight:600; }
.rtl-b.rtl-failed { background:color-mix(in srgb, var(--bad) 45%, var(--panel)); border-color:var(--bad); }
.rtl-b.rtl-retry { outline:1px dashed var(--text); outline-offset:-1px; }
.rtl-again { position:absolute; top:1.7rem; transform:translateX(-100%); font-size:.68rem; line-height:.9rem; color:color-mix(in srgb, var(--bad) 55%, var(--text)); white-space:nowrap; z-index:1; }

/* Home's On now: a few live channels, each its logo and what is on. */
.onnow-tiles { display:grid; grid-template-columns:repeat(auto-fill, minmax(14rem, 1fr)); gap:.6rem; }
.onnow-tile { display:flex; align-items:center; gap:.7rem; padding:.55rem .7rem; border-radius:10px; background:var(--panel); color:var(--text); text-decoration:none; border:1px solid transparent; }
.onnow-tile:hover, .onnow-tile:focus-visible { border-color:var(--accent); }
.onnow-logo { flex:0 0 4.2rem; height:2.6rem; display:flex; align-items:center; justify-content:center; }
.onnow-logo img { max-width:100%; max-height:100%; object-fit:contain; }
.onnow-what { display:flex; flex-direction:column; min-width:0; }
.onnow-what b, .onnow-what span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.onnow-what span { font-size:.82rem; }

/* People: each child or guest in a sentence; Their rules and See as beneath. */
.folk-links { display:flex; gap:.7rem; justify-content:center; }
.folk-links a { color:var(--muted); }
.folk-card .muted { max-width:13rem; margin:0 auto; }
.rules-sentence { font-size:1.02rem; margin:.2rem 0 .6rem; }
/* Seeing Home as someone else: a bar that stays, with Stop. */
.see-as-bar { position:sticky; top:0; z-index:30; display:flex; gap:.8rem; align-items:center; justify-content:space-between; flex-wrap:wrap;
  background:color-mix(in srgb, #e5a00d 22%, var(--panel)); border:1px solid #e5a00d; border-radius:10px; padding:.5rem .8rem; margin-bottom:.8rem; }

/* Title page: one big Play, the rest folded under More; Versions one row a copy. */
.tp-play.tp-big { font-size:1.15rem; padding:.7rem 1.6rem; border-radius:999px; font-weight:600; }
.tp-more { position:relative; display:inline-block; }
.tp-more > summary { list-style:none; cursor:pointer; display:inline-block; padding:.5rem .9rem; border-radius:6px; background:transparent; color:var(--muted); border:1px solid var(--line); }
.tp-more > summary:hover, .tp-more[open] > summary { background:var(--panel-hi); color:var(--text); }
.tp-more > summary::-webkit-details-marker { display:none; }
.tp-more-list { position:absolute; z-index:20; top:calc(100% + .3rem); left:0; min-width:16rem; display:flex; flex-direction:column; align-items:stretch; gap:.2rem;
  background:var(--panel); border:1px solid var(--line, rgba(255,255,255,.1)); border-radius:10px; padding:.4rem; box-shadow:0 8px 28px rgba(0,0,0,.45); }
.tp-more-list > * { text-align:left; }
.tp-more-list button, .tp-more-list .button { width:100%; justify-content:flex-start; }
.tp-versions > summary { cursor:pointer; }
.tp-vers td { white-space:nowrap; }
.badge { display:inline-block; font-size:.75rem; padding:.1rem .5rem; border-radius:999px; background:color-mix(in srgb, var(--text) 12%, transparent); color:var(--muted); }
.badge.ok { background:color-mix(in srgb, var(--good) 22%, transparent); color:color-mix(in srgb, var(--good) 50%, var(--text)); }
.badge.warn { background:color-mix(in srgb, #e5a00d 22%, transparent); color:color-mix(in srgb, #e5a00d 50%, var(--text)); }
@media (max-width: 700px) { .tp-vers { display:block; overflow-x:auto; } }
#settings.keys .set-key { display:block; }
#settings > h2 .show-keys { font-weight:400; }

/* ---- Music ------------------------------------------------------------------------------ */
.mu-page { padding-bottom:6rem; }
.mu-cover { width:100%; aspect-ratio:1; object-fit:cover; border-radius:10px; background:var(--panel); display:block; }
.mu-cover.gone { visibility:hidden; }
.mu-cover.none { display:flex; align-items:center; justify-content:center; font-size:2rem; font-weight:700; color:#111;
  background:linear-gradient(135deg, var(--accent), var(--panel)); }
.mu-tile b { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mu-artist .mu-cover { border-radius:50%; }
.mu-shelf { margin:1.2rem 0; }
.mu-shelf h3 { margin:.2rem 0 .5rem; }
.mu-row { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(9.5rem, 11rem); gap:.7rem; overflow-x:auto; padding-bottom:.4rem; scroll-snap-type:x proximity; }
.mu-row > * { scroll-snap-align:start; }
.mu-chips { display:flex; flex-wrap:wrap; gap:.35rem; margin:.3rem 0; }
.chip { display:inline-flex; align-items:center; gap:.3rem; padding:.25rem .65rem; border-radius:999px; background:var(--panel-hi);
  border:1px solid var(--line); color:var(--text); text-decoration:none; font-size:.85rem; cursor:pointer; }
.chip.on { border-color:var(--accent); }
.chip button.plain { padding:0 .15rem; border:0; }
.mu-tag a { color:inherit; text-decoration:none; }
.mu-mood { border-style:dashed; }
.mu-e { display:inline-block; margin-left:.35rem; padding:0 .3rem; font-size:.65rem; font-weight:700; line-height:1.2rem; border-radius:3px;
  background:color-mix(in srgb, var(--text) 75%, transparent); color:var(--panel); vertical-align:middle; }
.mu-liked { margin-left:.35rem; color:var(--accent); }
.mu-tile .mu-mix-art { aspect-ratio:1; width:100%; border-radius:10px; display:flex; align-items:flex-end; padding:.7rem; text-align:left;
  background:conic-gradient(from 210deg, var(--accent), color-mix(in srgb, var(--accent) 30%, #6a5acd), var(--panel-hi), var(--accent)); color:#fff; }
.mu-mix-name { font-weight:700; font-size:1.05rem; text-shadow:0 1px 6px rgba(0,0,0,.6); }
button.link { background:none; border:0; padding:0; color:var(--accent); cursor:pointer; font:inherit; }
.mu-track { position:relative; }
.mu-track .mu-t { display:flex; flex-direction:column; align-items:flex-start; flex:1; min-width:0; text-align:left; padding:0; border:0; background:none; color:inherit; }
.mu-track .mu-title { font-weight:500; }
.mu-track .mu-cover { width:2.6rem; height:2.6rem; }
.mu-n { width:2.2rem; text-align:right; }
/* Tiles and rows sit on the raised panel colour, where the theme's muted grey is too faint. */
.mu-tile .muted, .mu-track .muted, .mu-credits a, .mu-head .muted { color:color-mix(in srgb, var(--muted), var(--text) 35%); }
.mu-menu { position:relative; }
.mu-menu > summary { list-style:none; cursor:pointer; padding:.1rem .5rem; border-radius:6px; color:var(--muted); }
.mu-menu > summary::-webkit-details-marker { display:none; }
.mu-menu-list { position:absolute; right:0; top:100%; z-index:25; min-width:13rem; display:flex; flex-direction:column; gap:.1rem; padding:.35rem;
  background:var(--panel); border:1px solid var(--line); border-radius:10px; box-shadow:0 8px 28px rgba(0,0,0,.45); }
.mu-menu-list button { text-align:left; border:0; }
.mu-sub { padding-left:1.4rem !important; }
.mu-head { display:grid; grid-template-columns:minmax(8rem, 14rem) 1fr; gap:1.2rem; align-items:end; margin:.5rem 0 1rem; position:relative; }
.mu-head h1 { margin:.2rem 0; }
.mu-back { position:absolute; inset:0 0 auto 0; height:18rem; background-size:cover; background-position:center 25%; opacity:.22;
  -webkit-mask-image:linear-gradient(#000, transparent); mask-image:linear-gradient(#000, transparent); pointer-events:none; }
.mu-words { max-width:48rem; }
.mu-words p { line-height:1.55; }
.mu-focus { display:flex; flex-wrap:wrap; gap:.4rem; align-items:center; margin-bottom:.4rem; }
.mu-credit-list { display:grid; grid-template-columns:max-content 1fr; gap:.25rem 1rem; }
.mu-credit-list dt { color:var(--muted); }
.mu-credit-list dd { margin:0; }
.mu-lists { list-style:none; padding:0; display:grid; gap:.3rem; }
.mu-lists li { display:flex; gap:.5rem; align-items:center; }
.mu-rules { border:1px solid var(--line); border-radius:10px; padding:.7rem; margin:.6rem 0; display:grid; gap:.45rem; }
@media (max-width: 700px) { .mu-head { grid-template-columns:7rem 1fr; } .mu-track .mu-d { display:none; } }

/* The player along the bottom, over every page. */
.jukebox { display:none; }
.jukebox.on { position:fixed; left:0; right:0; bottom:0; z-index:45; display:grid; grid-template-columns:auto minmax(8rem, 1fr) auto auto; gap:.8rem;
  align-items:center; padding:.45rem 1rem calc(.45rem + env(safe-area-inset-bottom)); background:color-mix(in srgb, var(--panel) 94%, transparent);
  backdrop-filter:blur(10px); border-top:1px solid var(--line); }
.jb-art { width:3rem; height:3rem; padding:0; border:0; border-radius:8px; overflow:hidden; background:var(--panel-hi); }
.jb-art img { width:100%; height:100%; object-fit:cover; }
.jb-what { min-width:0; display:flex; flex-direction:column; }
.jb-what b, .jb-what span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.jb-what span { font-size:.82rem; }
.jb-bar { height:6px; margin-top:.3rem; border-radius:3px; background:var(--panel-hi); cursor:pointer; overflow:hidden; }
.jb-bar span { display:block; height:100%; background:var(--accent); }
.jb-acts { display:flex; gap:.2rem; align-items:center; }
.jb-acts button.plain { border:0; font-size:1.05rem; }
.jb-play { width:2.6rem; height:2.6rem; border-radius:50%; padding:0; font-size:1.05rem; }
.jb-thumb { opacity:.55; }
.jb-thumb.on { opacity:1; color:var(--accent); }
.jb-more { display:flex; gap:.25rem; align-items:center; }
.jb-more button.on { color:var(--accent); border-color:var(--accent); }
.jb-time { font-size:.8rem; margin-right:.3rem; font-variant-numeric:tabular-nums; }
.jb-said { position:fixed; right:1rem; bottom:5rem; z-index:46; max-width:min(30rem, 90vw); cursor:pointer; }
.jb-sheet { position:fixed; right:1rem; bottom:4.6rem; z-index:46; width:min(26rem, 94vw); max-height:min(70vh, 40rem); overflow:auto;
  background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:1rem; box-shadow:0 12px 40px rgba(0,0,0,.5); }
.jb-close { position:absolute; right:.4rem; top:.4rem; border:0; }
.jb-now { text-align:center; }
.jb-big { width:min(18rem, 70vw); aspect-ratio:1; object-fit:cover; border-radius:12px; }
.jb-center { justify-content:center; }
.jb-list { list-style:none; padding:0; margin:.4rem 0; display:grid; gap:.1rem; }
.jb-list li { display:flex; align-items:center; border-radius:8px; }
.jb-list li.on { background:var(--panel-hi); }
.jb-list li.done { opacity:.55; }
.jb-list li button.grow { text-align:left; border:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.jb-lines { display:grid; gap:.25rem; padding:1rem 0 2rem; }
.jb-line { margin:0; font-size:1.15rem; line-height:1.5; color:var(--muted); cursor:pointer; transition:color .2s, transform .2s; transform-origin:left; }
.jb-line.on { color:var(--text); font-weight:600; transform:scale(1.04); }
.jb-plain { white-space:pre-wrap; font:inherit; line-height:1.6; }
@media (max-width: 860px) {
  .jukebox.on { bottom:calc(3.6rem + env(safe-area-inset-bottom)); grid-template-columns:auto 1fr auto; padding:.35rem .6rem; }
  .jb-more { grid-column:1 / -1; justify-content:space-between; overflow-x:auto; }
  .jb-acts .jb-thumb { display:none; }
  .jb-sheet { left:.5rem; right:.5rem; width:auto; bottom:10rem; }
  .content { padding-bottom:11rem; }
}

/* Visualisations: full screen. */
.vis { position:fixed; inset:0; z-index:60; background:#000; }
.vis-canvas { width:100%; height:100%; display:block; }
.vis-top { position:absolute; top:0; left:0; right:0; display:flex; justify-content:space-between; padding:.6rem; opacity:.25; transition:opacity .3s; }
.vis:hover .vis-top, .vis:focus-within .vis-top { opacity:1; }
.vis-top button { color:#fff; border-color:rgba(255,255,255,.3); }
.vis-top button.on { border-color:#fff; }
.vis-kinds { display:flex; gap:.3rem; flex-wrap:wrap; }
.vis-what { position:absolute; left:1.2rem; bottom:1.2rem; color:#fff; display:flex; flex-direction:column; text-shadow:0 1px 8px #000; }
.vis-what b { font-size:1.3rem; }

/* Phones: nothing makes the page wider than the screen. */
@media (max-width: 700px) {
  main select, main input:not([type=checkbox]):not([type=radio]) { max-width:100%; }
  main label.flex, main .flex.gap-s { flex-wrap:wrap; }
  main label.nowrap { white-space:normal; }
  main code, main .mono { overflow-wrap:anywhere; word-break:break-word; }
  main table.list { display:block; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .mu-head { align-items:start; }
  /* A flex child holding text shrinks with the screen rather than running past it. */
  main .grow, main .row > div { min-width:0; }
  #log .row > div { overflow-wrap:anywhere; }
  /* A long address in a message or a list item breaks rather than widening the page. */
  main > *, main section { min-width:0; }
  main .msg, main li, main .rx-no, main a { overflow-wrap:anywhere; }
}
.radio-tile { text-align:left; cursor:pointer; font:inherit; }

/* Home videos, photos and music videos: a grid of tiles and a viewer over the page. */
.side-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:.9rem; }
.side-tile { display:flex; flex-direction:column; gap:.3rem; text-align:left; color:inherit; text-decoration:none; min-width:0; }
.side-tile b { font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.side-play { display:flex; flex-direction:column; gap:.3rem; text-align:left; padding:0; }
.side-thumb { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:8px; background:var(--surface-2, #22252b); display:flex; align-items:center; justify-content:center; font-size:1.6rem; color:var(--muted); }
.side-trail a { color:inherit; }
.side-viewer { position:fixed; inset:0; z-index:90; background:rgba(0,0,0,.92); display:flex; flex-direction:column; }
.side-bar { display:flex; gap:.6rem; align-items:center; padding:.6rem 1rem; color:#fff; }
.side-stage { flex:1; position:relative; display:flex; align-items:center; justify-content:center; min-height:0; }
.side-picture, .side-video { max-width:100%; max-height:100%; object-fit:contain; }
.side-step { position:absolute; top:50%; transform:translateY(-50%); font-size:2.6rem; color:#fff; padding:.4rem 1rem; z-index:1; }
.side-step.prev { left:0; } .side-step.next { right:0; }


/* Audiobooks: covers are square, a thin bar says how far in, chapters are a list. */
.bk-tile { position: relative; }
.bk-progress { display: block; height: 3px; background: var(--line); border-radius: 2px; margin: -.3rem 0 .3rem; overflow: hidden; }
.bk-progress > span { display: block; height: 100%; background: var(--accent, #e5a00d); }
.bk-chapters { list-style: decimal; padding-left: 1.6rem; margin: .4rem 0 1rem; }
.bk-chapters li { display: flex; align-items: center; gap: .6rem; padding: .15rem 0; }
.bk-chapters li.on button { font-weight: 600; }
.bk-chapters button { text-align: left; }

/* A season's own words, above its episodes. */
.season-about { max-width: 70ch; margin: 0 0 1rem; color: var(--muted, inherit); line-height: 1.5; }

/* Where to watch: a service a tile, its logo, name and ways; the household's marked. */
.where { margin: 1rem 0 .4rem; }
.where h3 { font-size: 1rem; margin: 0 0 .4rem; }
.where-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .3rem; }
.where-one { display: flex; align-items: center; gap: .5rem; padding: .35rem .6rem .35rem .35rem; border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; max-width: 22rem; }
.where-one.ours { border-color: var(--accent, #e5a00d); }
a.where-one:hover { background: var(--hover, rgba(255,255,255,.06)); }
.where-logo { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; }
.where-logo.none { display: grid; place-items: center; background: var(--line); font-weight: 600; }
.where-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.svc-pick { display: flex; flex-wrap: wrap; gap: .4rem; }
.svc-pick label { display: flex; align-items: center; gap: .35rem; padding: .25rem .5rem; border: 1px solid var(--line); border-radius: 8px; }
.svc-pick img { width: 22px; height: 22px; border-radius: 5px; }

/* A finale, marked beside an episode's number. */
.tp-finale { color: var(--accent, #e5a00d); font-weight: 600; }

/* Every rating there is, in a row of small chips. */
.tp-ratings { display: flex; flex-wrap: wrap; gap: .35rem; margin: .35rem 0; }
.rating-chip { font-size: .85rem; padding: .1rem .5rem; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }

/* Networks and studios: logos on a light ground, so dark ones show on the dark theme. */
.co-logo { display: inline-flex; align-items: center; justify-content: center; background: #f4f4f4; border-radius: 6px; padding: .3rem .5rem; height: 2.2rem; min-width: 3rem; }
.co-logo img { max-height: 100%; max-width: 8rem; object-fit: contain; }
.co-logo.none { color: #222; font-weight: 600; font-size: .85rem; }
.co-logo.big { height: 4rem; padding: .5rem 1rem; }
.co-logo.big img { max-width: 14rem; }
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .8rem; margin-top: 1rem; }
.co-tile { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .8rem .5rem; border: 1px solid var(--line); border-radius: 8px; text-align: center; text-decoration: none; color: inherit; }
.co-tile:hover { border-color: var(--accent, #e5a00d); }
.co-tile .co-logo { height: 3rem; width: 100%; }
.co-name { font-weight: 600; font-size: .9rem; }
.co-find { max-width: 20rem; }
.co-head { display: flex; align-items: center; gap: 1rem; margin: .2rem 0 .6rem; }
.tp-companies { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0; }
.tp-companies a { text-decoration: none; }

/* Five stars to rate a title by, in halves. */
.tp-state { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.stars { display: inline-flex; gap: 2px; }
.star { position: relative; display: inline-block; width: 1.3rem; height: 1.3rem; font-size: 1.3rem; line-height: 1.3rem; }
.star::before { content: "\2605"; position: absolute; inset: 0; color: var(--line, #555); }
.star-fill { position: absolute; top: 0; left: 0; bottom: 0; overflow: hidden; pointer-events: none; }
.star-fill::before { content: "\2605"; color: var(--accent, #e5a00d); }
.star button { position: absolute; top: 0; bottom: 0; width: 50%; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; min-height: 0; }
.star .star-lo { left: 0; } .star .star-hi { right: 0; }
.star button:focus-visible { outline: 2px solid var(--accent, #e5a00d); }

/* An audiobook's cover with its badges over it; the editor's single cover face. */
.bk-art { position: relative; }
.bk-art .bk-cover { display: block; }
.ove-sleeve.book { grid-template-columns: 1fr; max-width: 320px; }
.ove-sleeve.book .ove-front { aspect-ratio: 1; }
.bk-art .ovl { border-radius: 10px; }

/* A person's circle on Switch user, in their own theme. */
.theme-ring { display:inline-block; border-radius:50%; padding:5px; background:var(--ring-bg, transparent); box-shadow:0 0 0 3px var(--ring, transparent); }
.theme-ring > * { display:block; }

  /* Choosing several titles at once, as Plex has it: a check on each card, shown on hover and
     while any are chosen; the chosen ringed; a bar over the page with what can be done. */
  .card .art { position:relative; }
  .card-pick { position:absolute; top:.4rem; left:.4rem; z-index:6; width:1.7rem; height:1.7rem; padding:0; border-radius:50%;
    border:2px solid rgba(255,255,255,.85); background:rgba(0,0,0,.45); color:transparent; font-weight:700; line-height:1;
    opacity:0; transition:opacity .15s ease, background .15s ease; cursor:pointer; }
  .card:hover .card-pick, .card:focus-within .card-pick, body.picking .card-pick { opacity:1; }
  .card-pick:hover { background:rgba(0,0,0,.7); color:rgba(255,255,255,.7); }
  .card.picked .card-pick { background:var(--accent); border-color:var(--accent); color:var(--accent-text); }
  .card.picked .art { outline:3px solid var(--accent); outline-offset:3px; border-radius:6px; }
  #pick-bar { position:fixed; top:.6rem; left:50%; transform:translateX(-50%); z-index:60; display:flex; gap:.35rem; align-items:center; flex-wrap:wrap;
    max-width:calc(100vw - 1.2rem); padding:.45rem .7rem; border:1px solid var(--accent); border-radius:10px; background:var(--panel); box-shadow:0 10px 30px rgba(0,0,0,.45); }
  #pick-bar[hidden] { display:none; }
  #pick-bar .pick-count { color:var(--accent); font-weight:600; margin-right:.4rem; }
  #pick-bar button { padding:.3rem .6rem; font-size:.85rem; }
