/* Review Room - "Screening room" look on unifiedpictures.com's tokens, finished with Apple's interface rules:
   system type with size-specific tracking, a 4/8 pt spacing grid, three control heights (28/32/36), translucent
   chrome over content, instant press feedback, and reduced-motion / reduced-transparency variants.
   Acid green = main action + selection only. */
:root {
  --ink: #08090a; --base: #0b0c0e; --panel: #111316; --raised: #181b1f; --hover: #1f2327;
  --line: rgba(255,255,255,.075); --line2: rgba(255,255,255,.12); --line3: rgba(255,255,255,.18);
  --paper: #f5f6f3; --soft: #d3d7d1; --muted: #9a9f9a; --faint: #646a65;
  --acid: #d5ff35; --acid-ink: #0b0c08; --acid-dim: rgba(213,255,53,.14);
  --alert: #ff6b5e; --ok: #6fd58a; --warn: #f2c14e; --info: #8fb4ff;
  --r-xs: 6px; --r-sm: 8px; --r: 10px; --r-lg: 14px;
  --h-sm: 28px; --h: 32px; --h-lg: 36px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --top: 52px;
}
:root { color-scheme: dark; }
* { box-sizing: border-box; scrollbar-color: rgba(255,255,255,.18) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--paper); font: 14px/1.45 var(--font); letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: var(--acid); color: var(--acid-ink); }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
h1 { font: 700 28px/1.15 var(--font-display); letter-spacing: -.022em; margin: 0 0 4px; }
h2 { font: 600 17px/1.3 var(--font-display); letter-spacing: -.012em; margin: 24px 0 12px; }
.note { color: var(--muted); font-size: 12.5px; line-height: 1.45; letter-spacing: 0; }
svg.i { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- controls: three heights, instant press feedback ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--h); padding: 0 12px; border-radius: var(--r-sm);
  border: 0; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line2); color: var(--paper); cursor: pointer; white-space: nowrap;
  font-size: 13px; font-weight: 500; letter-spacing: -.003em; text-decoration: none; user-select: none;
  transition: background .12s var(--ease), box-shadow .12s var(--ease), transform .1s ease-out; }
.btn:hover { background: var(--hover); box-shadow: inset 0 0 0 1px var(--line3); }
.btn:active { transform: scale(.97); }
.btn.main { background: var(--acid); box-shadow: none; color: var(--acid-ink); font-weight: 600; }
.btn.main:hover { background: #e0ff66; }
.btn.ghost { background: transparent; box-shadow: none; color: var(--soft); }
.btn.ghost:hover { background: var(--raised); color: var(--paper); }
.btn.danger { color: var(--alert); }
.btn.sm { height: var(--h-sm); padding: 0 10px; font-size: 12.5px; border-radius: var(--r-xs); }
.btn.lg { height: var(--h-lg); padding: 0 16px; font-size: 14px; }
.btn.icon { width: var(--h); padding: 0; }
.btn.icon.sm { width: var(--h-sm); }
.btn[disabled] { opacity: .4; cursor: default; transform: none; }
.btn.on { color: var(--acid); background: var(--acid-dim); box-shadow: inset 0 0 0 1px rgba(213,255,53,.28); }
.field { width: 100%; height: var(--h-lg); padding: 0 12px; border-radius: var(--r-sm); border: 0; box-shadow: inset 0 0 0 1px var(--line2);
  background: var(--base); color: var(--paper); font-size: 14px; transition: box-shadow .12s var(--ease); }
.field:hover { box-shadow: inset 0 0 0 1px var(--line3); }
.field:focus { outline: none; box-shadow: inset 0 0 0 1px var(--acid), 0 0 0 3px var(--acid-dim); }
.field.sm { height: var(--h); font-size: 13px; padding: 0 10px; }
.field.xs { height: var(--h-sm); font-size: 12.5px; padding: 0 8px; border-radius: var(--r-xs); }
textarea.field { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
select.field { appearance: none; -webkit-appearance: none; width: auto; padding-right: 30px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239a9f9a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; }
select.field.sm, select.field.xs { padding-right: 28px; background-position: right 10px center; }
label.lbl { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin: 16px 0 6px; letter-spacing: .005em; }
.seg { display: inline-flex; height: var(--h); padding: 2px; gap: 2px; background: var(--base); box-shadow: inset 0 0 0 1px var(--line2); border-radius: var(--r-sm); }
.seg button { height: 100%; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12.5px; font-weight: 500; transition: color .12s, background .12s; }
.seg button:hover { color: var(--paper); }
.seg button.on { background: var(--hover); color: var(--paper); box-shadow: 0 1px 2px rgba(0,0,0,.4), inset 0 0 0 1px var(--line2); }
.chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--soft); font-size: 13px; user-select: none; }
.chk input { accent-color: var(--acid); width: 15px; height: 15px; margin: 0; }
.err { color: var(--alert); font-size: 13px; min-height: 18px; margin-top: 12px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 96px; height: var(--h); background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--line3); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 3px rgba(0,0,0,.5); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line3); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--paper); }

/* ---------- top bar: translucent material over content ---------- */
.top { position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; gap: 8px; padding: 0 16px 0 20px;
  background: rgba(8,9,10,.72); backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 1px 0 var(--line); }
.top .logo { height: 20px; display: block; margin-right: 8px; }
.top .title { font-weight: 600; font-size: 14px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.top .sp { flex: 1; }
.top .btn.ghost { color: var(--muted); }
.top .btn.ghost:hover { color: var(--paper); }
.page { padding: 32px 32px 96px; max-width: 1440px; margin: 0 auto; }
.lede { color: var(--muted); margin: 0 0 24px; font-size: 14px; }

/* ---------- library ---------- */
.lib { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - var(--top)); }
.side { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow: auto; padding: 20px 12px; background: var(--base); box-shadow: 1px 0 0 var(--line); }
.side h4 { margin: 0 8px 8px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.side a { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 32px; padding: 0 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--soft); font-size: 13.5px; }
.side a:hover { background: var(--raised); }
.side a.on { background: var(--raised); color: var(--paper); font-weight: 500; }
.side a span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side a span:last-child { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.side a.on span:last-child { color: var(--acid); }
.libmain { min-width: 0; padding: 28px 32px 120px; }
.libhead { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.libhead .sub { color: var(--muted); font-size: 13px; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0 8px; }
.bar .sp { flex: 1; min-width: 8px; }
.bar .group { display: inline-flex; align-items: center; gap: 8px; }
.bar .search { width: 220px; height: var(--h); font-size: 13px; padding-left: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239a9f9a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 11px center; }
.bar .divider { width: 1px; height: 20px; background: var(--line2); margin: 0 4px; }
.day { display: flex; align-items: baseline; gap: 10px; margin: 32px 0 12px; }
.day b { font: 600 15px/1.2 var(--font-display); letter-spacing: -.01em; }
.day span { color: var(--faint); font-size: 12.5px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card, 260px), 1fr)); gap: 16px; }
.card { position: relative; background: var(--panel); border-radius: var(--r); overflow: hidden; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .15s var(--ease), transform .15s var(--ease); }
.card:hover { box-shadow: inset 0 0 0 1px var(--line3), 0 8px 24px rgba(0,0,0,.35); }
.card:active { transform: scale(.985); }
.card.sel { box-shadow: 0 0 0 2px var(--acid); }
.card .pic { position: relative; aspect-ratio: 16/10; background: #040505; display: grid; place-items: center; overflow: hidden; }
.card .pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card .pic .wait { color: var(--faint); font-size: 12px; text-align: center; padding: 12px; }
.card .tick { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7);
  background: rgba(0,0,0,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; opacity: 0; transition: opacity .12s; }
.card:hover .tick, .card.sel .tick, .selecting .card .tick { opacity: 1; }
.card.sel .tick { background: var(--acid); box-shadow: none; }
.card.sel .tick::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--acid-ink); border-bottom: 2px solid var(--acid-ink); transform: rotate(-45deg) translate(1px, -1px); }
.card .kind, .card .vers { position: absolute; bottom: 8px; height: 20px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: .01em;
  padding: 0 7px; border-radius: 5px; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--paper); }
.card .kind { left: 8px; } .card .vers { right: 8px; }
.card .meta { padding: 10px 12px 12px; }
.card .name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .row { display: flex; align-items: center; gap: 10px; margin-top: 6px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.card .row .sp { flex: 1; }
.card .row .n { display: inline-flex; align-items: center; gap: 4px; }
.card .row .n.on { color: var(--acid); }
.card .row svg.i { width: 13px; height: 13px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.status.approved, .status.approved::before { color: var(--ok); } .status.approved::before { background: var(--ok); }
.status.changes { color: var(--alert); } .status.changes::before { background: var(--alert); }
.status.rejected::before { background: #8a3a34; }
.status.progress::before { background: var(--info); }
.status.review::before { background: var(--warn); }

/* ---------- floating selection bar (material) ---------- */
.selbar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: var(--r-lg);
  background: rgba(24,27,31,.78); backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%);
  box-shadow: inset 0 0 0 1px var(--line2), 0 20px 50px rgba(0,0,0,.55); animation: rise .28s var(--ease); }
.selbar b { font-weight: 600; margin-right: 8px; font-variant-numeric: tabular-nums; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 12px) scale(.98); } }

/* ---------- spaces ---------- */
.spaces { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.space { display: block; text-decoration: none; background: var(--panel); border-radius: var(--r-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s var(--ease), transform .15s var(--ease); }
.space:hover { box-shadow: inset 0 0 0 1px var(--line3), 0 12px 30px rgba(0,0,0,.4); }
.space:active { transform: scale(.99); }
.space .pic { aspect-ratio: 2.39/1; background: #040505; display: grid; place-items: center; overflow: hidden; }
.space .pic img { width: 100%; height: 100%; object-fit: cover; }
.space .meta { padding: 14px 16px 16px; }
.space .meta b { font: 600 16px/1.25 var(--font-display); letter-spacing: -.012em; }
.space .meta div { color: var(--muted); font-size: 12.5px; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.empty { border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line2); padding: 40px 24px; text-align: center; color: var(--muted); }
.empty a { color: var(--paper); }

/* ---------- sign-in ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(213,255,53,.05), transparent 60%), var(--ink); }
.auth .box { width: 100%; max-width: 360px; }
.auth .logo { height: 24px; margin-bottom: 40px; display: block; }
.auth h1 { font-size: 26px; }
.auth .sub { color: var(--muted); margin: 0 0 8px; line-height: 1.5; }
.auth .btn.main { width: 100%; height: 40px; margin-top: 24px; font-size: 14px; border-radius: var(--r-sm); }
.auth .links { margin-top: 20px; font-size: 13px; color: var(--muted); }
.auth .links a { cursor: pointer; color: var(--soft); text-decoration: none; }
.auth .links a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.code-input { letter-spacing: .45em; font-size: 24px; text-align: center; height: 52px; font-family: var(--mono); margin-top: 16px; }

/* ---------- viewer ---------- */
.viewer { display: grid; grid-template-columns: minmax(0, 1fr) 380px; height: calc(100vh - var(--top)); }
.stagewrap { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #000; }
.vbar { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 12px; background: var(--ink); box-shadow: 0 1px 0 var(--line); flex: none; overflow-x: auto; scrollbar-width: none; }
.vbar::-webkit-scrollbar { display: none; }
.vbar .group { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.vbar .sp { flex: 1; min-width: 8px; }
.vbar .count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; min-width: 44px; text-align: center; }
.vbar .divider { width: 1px; height: 20px; background: var(--line2); margin: 0 6px; flex: none; }
.stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; user-select: none; }
.stage .media { max-width: 100%; max-height: 100%; display: block; }
.stage canvas.draw { position: absolute; pointer-events: none; }
.stage canvas.draw.active { pointer-events: auto; cursor: crosshair; }
.stage .tc { position: absolute; top: 12px; left: 12px; height: 26px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 6px;
  background: rgba(0,0,0,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: 600 13px/1 var(--mono); color: var(--paper); font-variant-numeric: tabular-nums; pointer-events: none; }
.stage .wm { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.stage .wm div { position: absolute; left: -25%; width: 150%; white-space: nowrap; font: 700 15px/1 var(--font); color: rgba(255,255,255,.12); text-shadow: 1px 1px 0 rgba(0,0,0,.16); transform: rotate(-24deg); }
.stage .wait { color: var(--muted); text-align: center; padding: 24px; line-height: 1.6; }
.controls { flex: none; padding: 6px 16px 10px; background: var(--ink); box-shadow: 0 -1px 0 var(--line); }
.scrub { position: relative; height: 24px; cursor: pointer; touch-action: none; }
.scrub .track { position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.14); }
.scrub .fill { position: absolute; left: 0; top: 10px; height: 4px; border-radius: 2px; background: var(--paper); }
.scrub .head { position: absolute; top: 5px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 4px rgba(0,0,0,.6); transition: transform .1s; }
.scrub:hover .head { transform: scale(1.15); }
.scrub .mark { position: absolute; top: 0; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 2px var(--ink); cursor: pointer; }
.scrub .mark.res { background: var(--faint); }
.crow { display: flex; align-items: center; gap: 4px; height: var(--h); }
.crow .sp { flex: 1; min-width: 8px; }
.crow .time { font: 500 13px var(--mono); font-variant-numeric: tabular-nums; color: var(--soft); padding: 0 10px; cursor: pointer; white-space: nowrap; border-radius: 6px; height: var(--h-sm); display: inline-flex; align-items: center; }
.crow .time:hover { background: var(--raised); color: var(--paper); }
.keys { color: var(--faint); font-size: 11.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; }
.keys kbd { font: 600 10.5px/1 var(--mono); height: 18px; min-width: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line2); color: var(--muted); }
.rail { display: flex; flex-direction: column; min-height: 0; background: var(--base); box-shadow: -1px 0 0 var(--line); }
.rail .head { height: 52px; display: flex; flex-direction: column; justify-content: center; padding: 0 16px; box-shadow: 0 1px 0 var(--line); flex: none; }
.rail .head .name { font-weight: 600; font-size: 13.5px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail .head .sub { color: var(--muted); font-size: 11.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.rail .railtabs { padding: 10px 12px 2px; flex: none; }
.rail .railtabs .seg { width: 100%; }
.rail .railtabs .seg button { flex: 1; }
.rail .list { flex: 1; overflow: auto; padding: 8px; }
.cm { padding: 10px 10px 8px; border-radius: var(--r-sm); cursor: pointer; transition: background .12s; }
.cm:hover { background: var(--panel); }
.cm.on { background: var(--raised); box-shadow: inset 0 0 0 1px var(--line2); }
.cm.reply { margin-left: 22px; }
.cm.resolved { opacity: .5; }
.cm .who { display: flex; align-items: center; gap: 8px; font-size: 12.5px; min-height: 20px; }
.cm .who b { font-weight: 600; }
.cm .who .when { color: var(--faint); font-size: 12px; }
.cm .who .sp { flex: 1; }
.cm .num { width: 18px; height: 18px; border-radius: 50%; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line2); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; color: var(--soft); flex: none; }
.cm .tcchip { font: 600 11px/1 var(--mono); height: 20px; display: inline-flex; align-items: center; padding: 0 6px; border-radius: 5px; background: var(--acid-dim); color: var(--acid); font-variant-numeric: tabular-nums; }
.cm .body { margin: 6px 0 0 26px; font-size: 13.5px; line-height: 1.45; color: var(--soft); white-space: pre-wrap; word-break: break-word; }
.cm.reply .body { margin-left: 0; }
.cm .body.status { color: var(--muted); font-style: italic; }
.cm .acts { display: flex; gap: 2px; margin: 4px 0 0 20px; height: 0; overflow: hidden; opacity: 0; transition: opacity .12s; }
.cm:hover .acts, .cm.on .acts { height: auto; opacity: 1; }
.composer { flex: none; padding: 12px; box-shadow: 0 -1px 0 var(--line); background: var(--base); }
.composer textarea { min-height: 72px; font-size: 13.5px; }
.composer .row { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.composer .row .sp { flex: 1; }
.composer .tools { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: var(--r-sm); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.composer .colors { display: inline-flex; align-items: center; gap: 6px; margin: 0 6px; }
.swatch { width: 16px; height: 16px; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.4); transition: transform .1s; }
.swatch:hover { transform: scale(1.12); }
.swatch.on { box-shadow: 0 0 0 2px var(--base), 0 0 0 3.5px var(--paper); }
.composer .replying { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.composer .replying a { color: var(--soft); cursor: pointer; }
.info { padding: 4px 8px; }
.info dl { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px 12px; margin: 8px 0; font-size: 12.5px; }
.info dt { color: var(--muted); }
.info dd { margin: 0; color: var(--soft); word-break: break-word; white-space: pre-wrap; line-height: 1.45; }
.vtabs { display: inline-flex; height: var(--h-sm); padding: 2px; gap: 2px; background: var(--base); box-shadow: inset 0 0 0 1px var(--line2); border-radius: 7px; }
.vtabs a { display: inline-flex; align-items: center; padding: 0 9px; border-radius: 5px; text-decoration: none; font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.vtabs a:hover { color: var(--paper); }
.vtabs a.on { color: var(--paper); background: var(--hover); box-shadow: inset 0 0 0 1px var(--line2); }
.vtabs a .pk { color: var(--acid); margin-left: 4px; font-size: 11px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 100%; height: 100%; }
.compare > div { position: relative; display: grid; place-items: center; overflow: hidden; background: #000; }
.compare .lab, .wipe .lab { position: absolute; top: 12px; height: 24px; display: inline-flex; align-items: center; font: 600 12px var(--font); background: rgba(0,0,0,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 0 9px; border-radius: 6px; }
.compare .lab { left: 12px; }
.wipe { position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; touch-action: none; cursor: ew-resize; }
.wipe img { position: absolute; max-width: 100%; max-height: 100%; }
.wipe .line { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--acid); box-shadow: 0 0 12px rgba(0,0,0,.6); }
.wipe .lab.l { left: 12px; } .wipe .lab.r { right: 12px; }

/* ---------- admin ---------- */
.tabs2 { display: flex; gap: 24px; box-shadow: inset 0 -1px 0 var(--line); margin: 16px 0 24px; }
.tabs2 a { height: 40px; display: inline-flex; align-items: center; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 13.5px; border-bottom: 2px solid transparent; cursor: pointer; transition: color .12s; }
.tabs2 a:hover { color: var(--paper); }
.tabs2 a.on { color: var(--paper); border-color: var(--acid); }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.t th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 0 12px; height: 36px; box-shadow: inset 0 -1px 0 var(--line); white-space: nowrap; }
table.t td { padding: 12px; box-shadow: inset 0 -1px 0 var(--line); vertical-align: middle; color: var(--soft); }
table.t td b { color: var(--paper); font-weight: 600; }
table.t td .note { margin-top: 2px; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--panel); }
table.t tr.detail td { background: var(--base); color: var(--muted); font-size: 12.5px; line-height: 1.6; }
table.t .actions { white-space: nowrap; text-align: right; }
table.t .actions .btn + .btn { margin-left: 4px; }
.tablewrap { background: var(--panel); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); overflow: auto; }
.tablewrap table.t th:first-child, .tablewrap table.t td:first-child { padding-left: 16px; }
.tablewrap table.t th:last-child, .tablewrap table.t td:last-child { padding-right: 16px; }
.tablewrap table.t tr:last-child td { box-shadow: none; }
.cardbox .tablewrap { background: transparent; box-shadow: none; border-radius: 0; margin: 12px -24px 0; }
.cardbox .tablewrap table.t th:first-child, .cardbox .tablewrap table.t td:first-child { padding-left: 24px; }
.cardbox .tablewrap table.t th:last-child, .cardbox .tablewrap table.t td:last-child { padding-right: 24px; }
.pill { display: inline-flex; align-items: center; height: 20px; font-size: 11.5px; font-weight: 600; padding: 0 8px; border-radius: 10px; background: var(--raised); color: var(--soft); box-shadow: inset 0 0 0 1px var(--line2); vertical-align: middle; }
.pill.red { color: var(--alert); background: rgba(255,107,94,.1); box-shadow: none; }
.pill.green { color: var(--ok); background: rgba(111,213,138,.1); box-shadow: none; }
.pill.acid { color: var(--acid); background: var(--acid-dim); box-shadow: none; }
.cardbox { background: var(--panel); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); padding: 20px 24px 24px; margin-bottom: 16px; }
.cardbox h3 { margin: 0 0 4px; font: 600 15px/1.3 var(--font-display); letter-spacing: -.01em; }
.cardbox .acts { display: flex; gap: 8px; margin-top: 20px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ok-dot::before, .bad-dot::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.ok-dot::before { background: var(--ok); } .bad-dot::before { background: var(--alert); }
.tri { display: inline-flex; height: 24px; padding: 2px; gap: 2px; border-radius: 6px; background: var(--base); box-shadow: inset 0 0 0 1px var(--line2); }
.tri button { border: 0; background: transparent; color: var(--muted); padding: 0 7px; font-size: 11px; font-weight: 500; cursor: pointer; border-radius: 4px; white-space: nowrap; }
.tri button.on { background: var(--hover); color: var(--paper); box-shadow: inset 0 0 0 1px var(--line2); }
.toolbar-note { color: var(--muted); font-size: 13px; }

/* ---------- dialogs & toasts: materialise, don't just fade ---------- */
dialog { border: 0; border-radius: var(--r-lg); background: rgba(22,25,28,.94); backdrop-filter: blur(30px) saturate(160%); -webkit-backdrop-filter: blur(30px) saturate(160%);
  color: var(--paper); padding: 24px; width: min(520px, calc(100vw - 32px)); box-shadow: inset 0 0 0 1px var(--line2), 0 40px 100px rgba(0,0,0,.6); animation: pop .26s var(--ease); }
dialog::backdrop { background: rgba(0,0,0,.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .2s ease; }
dialog h3 { margin: 0 0 6px; font: 600 18px/1.25 var(--font-display); letter-spacing: -.014em; }
dialog .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
dialog .acts .left { margin-right: auto; }
@keyframes pop { from { opacity: 0; transform: scale(.96); filter: blur(4px); } }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; min-height: 40px; display: flex; align-items: center; padding: 0 16px; border-radius: 20px;
  background: rgba(30,34,38,.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px var(--line2), 0 12px 32px rgba(0,0,0,.45); font-size: 13px; font-weight: 500; animation: rise .25s var(--ease); }
.toast.bad { color: #ffb3ab; }
.folderlist { max-height: 280px; overflow: auto; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line2); margin-top: 8px; background: var(--base); }
.folderlist div { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; cursor: pointer; box-shadow: inset 0 -1px 0 var(--line); font-size: 13px; }
.folderlist div:hover { background: var(--raised); }
.folderlist .use { color: var(--acid); font-weight: 500; }

/* ---------- accessibility: honour the person's settings ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .btn:active, .card:active, .space:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .top, .selbar, dialog, .toast { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .top { background: var(--ink); } .selbar, .toast { background: #1b1e22; } dialog { background: #16191c; }
}
@media (prefers-contrast: more) { :root { --line: rgba(255,255,255,.2); --line2: rgba(255,255,255,.3); --muted: #c3c7c2; } }

/* ---------- sizes ---------- */
@media (max-width: 1280px) { .viewer { grid-template-columns: minmax(0, 1fr) 340px; } .keys { display: none; } }
@media (max-width: 960px) {
  .lib { grid-template-columns: 1fr; } .side { display: none; }
  .viewer { grid-template-columns: 1fr; height: auto; } .stage { min-height: 56vw; } .rail { box-shadow: 0 -1px 0 var(--line); max-height: none; }
  .libmain, .page { padding: 20px 16px 96px; } .two, .form-row { grid-template-columns: 1fr; } .bar .search { width: 100%; order: 10; }
  .top .who-name { display: none; }
}

/* =====================================================================================================
   Apple glass layer (19 Nov 2026). The page sits on a soft, heavily blurred copy of the space's own artwork
   (#ambient), so translucent panels pick up real colour like Apple's materials. Panels are translucent fills
   with a light top edge (specular highlight) and a hairline; only floating chrome (top bar, sheets, selection
   bar, dialogs) does live backdrop blur, which keeps grids fast. The picture's own surround stays neutral black
   so colour can be judged accurately.
   ===================================================================================================== */
:root {
  --g-fill: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  --g-fill-strong: linear-gradient(180deg, rgba(30,33,38,.78), rgba(18,20,24,.74));
  --g-edge: inset 0 1px 0 rgba(255,255,255,.13), inset 0 0 0 1px rgba(255,255,255,.075);
  --g-edge-hi: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.12);
  --g-lift: 0 10px 30px rgba(0,0,0,.32);
  --g-blur: blur(30px) saturate(175%);
}
#ambient { position: fixed; inset: -12%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .9s var(--ease);
  background: center / cover no-repeat; filter: blur(100px) saturate(1.25) brightness(.5); transform: translateZ(0); }
#ambient.on { opacity: .5; }
#ambient::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, rgba(8,9,10,.15), rgba(8,9,10,.78) 75%); }
.lib, .page, .viewer { position: relative; z-index: 1; }
body { background: var(--ink); }

/* glass chrome */
.top { background: rgba(10,11,13,.5); backdrop-filter: var(--g-blur); -webkit-backdrop-filter: var(--g-blur); box-shadow: inset 0 -1px 0 rgba(255,255,255,.07); }
.top .btn { gap: 7px; }
.top .btn.cur { background: rgba(255,255,255,.09); color: var(--paper); box-shadow: var(--g-edge); }
.side { background: rgba(10,11,13,.34); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); box-shadow: inset -1px 0 0 rgba(255,255,255,.06); }
.side a { gap: 10px; }
.side a span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.side a svg.i { width: 15px; height: 15px; color: var(--muted); }
.side a.on { background: rgba(255,255,255,.09); box-shadow: var(--g-edge); }
.side a.on svg.i { color: var(--acid); }
.side a:hover { background: rgba(255,255,255,.06); }

/* glass surfaces */
.card, .space, .cardbox, .tablewrap { background: var(--g-fill); box-shadow: var(--g-edge), var(--g-lift); }
.card:hover, .space:hover { box-shadow: var(--g-edge-hi), 0 16px 40px rgba(0,0,0,.42); }
.card.sel { box-shadow: 0 0 0 2px var(--acid), var(--g-lift); }
.card .pic, .space .pic { background: rgba(0,0,0,.55); }
.cardbox .tablewrap { background: transparent; box-shadow: none; }
.empty { background: var(--g-fill); box-shadow: var(--g-edge); }

/* glass controls */
.btn { background: rgba(255,255,255,.075); box-shadow: var(--g-edge); }
.btn:hover { background: rgba(255,255,255,.12); box-shadow: var(--g-edge-hi); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.ghost:hover { background: rgba(255,255,255,.08); box-shadow: none; }
.btn.main { background: var(--acid); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 4px 16px rgba(213,255,53,.18); }
.btn.main:hover { background: #e2ff70; }
.btn.on { background: var(--acid-dim); box-shadow: inset 0 0 0 1px rgba(213,255,53,.32); }
.field { background: rgba(0,0,0,.32); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 0 1px 2px rgba(0,0,0,.3); }
.field:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 1px 2px rgba(0,0,0,.3); }
.seg, .vtabs, .tri { background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.seg button.on, .vtabs a.on, .tri button.on { background: rgba(255,255,255,.15); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 3px rgba(0,0,0,.35); }
.bar .divider, .vbar .divider { background: rgba(255,255,255,.1); }

/* icons inside fields, sort, size slider */
.fi { position: relative; }
.fi > svg.i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.fi > .field { padding-left: 38px; }
.fi:focus-within > svg.i { color: var(--acid); }
.selwrap { position: relative; display: inline-flex; align-items: center; }
.selwrap > svg.i { position: absolute; left: 10px; width: 14px; height: 14px; color: var(--muted); pointer-events: none; }
.selwrap > select.field { padding-left: 30px; }
.sizer { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); padding: 0 4px; }
.sizer svg.sm { width: 12px; height: 12px; } .sizer svg.lg { width: 18px; height: 18px; }
.sizer input[type=range] { width: 88px; }
.card .kind { gap: 5px; padding: 0 8px 0 6px; background: rgba(10,11,13,.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.card .kind svg.i { width: 12px; height: 12px; }
.card .vers { background: rgba(10,11,13,.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.tabs2 a { gap: 8px; }
.tabs2 a svg.i { width: 15px; height: 15px; }
.tabs2 a.on svg.i { color: var(--acid); }
.folderlist div svg.i { width: 15px; height: 15px; color: var(--muted); }
.folderlist .use svg.i { color: var(--acid); }

/* viewer: glass bars and rail, neutral surround for the picture */
.stagewrap { background: transparent; }
.vbar, .controls { background: rgba(10,11,13,.55); backdrop-filter: var(--g-blur); -webkit-backdrop-filter: var(--g-blur); }
.vbar { box-shadow: inset 0 -1px 0 rgba(255,255,255,.07); }
.controls { box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.stage { background: #000; }
.rail { background: rgba(12,13,16,.55); backdrop-filter: var(--g-blur); -webkit-backdrop-filter: var(--g-blur); box-shadow: inset 1px 0 0 rgba(255,255,255,.07); }
.rail .head { box-shadow: inset 0 -1px 0 rgba(255,255,255,.07); }
.composer { background: rgba(0,0,0,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.composer .tools { background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.cm.on { background: rgba(255,255,255,.08); box-shadow: var(--g-edge); }
.cm:hover { background: rgba(255,255,255,.05); }
.stage .scroller { position: absolute; inset: 0; overflow: auto; display: flex; scrollbar-width: thin; }
.stage .scroller > .media { margin: auto; flex: none; max-width: none; max-height: none; }
.stage .scroller.pan { cursor: grab; } .stage .scroller.pan.dragging { cursor: grabbing; }
.zoom { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; padding: 0 4px; border-radius: var(--r-sm); background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); height: var(--h); }
.zoom input[type=range] { width: 104px; margin: 0 4px; }
.zoom .zlab { min-width: 52px; font-variant-numeric: tabular-nums; }

/* sheets, dialogs, toasts, selection bar: thick glass */
dialog { background: var(--g-fill-strong); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 1px rgba(255,255,255,.09), 0 40px 100px rgba(0,0,0,.6); }
.selbar { background: rgba(26,29,34,.62); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 1px rgba(255,255,255,.09), 0 24px 60px rgba(0,0,0,.55); }
.toast { background: rgba(32,35,40,.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 1px rgba(255,255,255,.08), 0 14px 36px rgba(0,0,0,.45); }

/* sign-in: glass card over a soft, warm light (brand acid + gold, no stock gradients) */
.auth { position: relative; overflow: hidden; background: var(--ink); }
.auth .glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 420px at 30% 28%, rgba(213,255,53,.16), transparent 70%), radial-gradient(640px 520px at 75% 78%, rgba(255,176,72,.12), transparent 70%);
  filter: blur(20px); }
.auth .box.glass { position: relative; padding: 36px 32px 32px; border-radius: 20px; max-width: 400px; background: var(--g-fill);
  backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 1px rgba(255,255,255,.09), 0 30px 80px rgba(0,0,0,.5); }
.auth .logo { margin-bottom: 32px; }
.auth .btn.main { gap: 8px; }
.authicon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin: 4px 0 4px; color: var(--acid);
  background: rgba(213,255,53,.1); box-shadow: inset 0 0 0 1px rgba(213,255,53,.25); }
.authicon svg.i { width: 22px; height: 22px; }

@media (prefers-reduced-transparency: reduce) {
  #ambient { display: none; }
  .top, .side, .vbar, .controls, .rail, dialog, .selbar, .toast, .auth .box.glass { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .top, .vbar, .controls { background: var(--ink); } .side, .rail { background: var(--base); }
  .card, .space, .cardbox, .tablewrap, .auth .box.glass { background: var(--panel); } dialog { background: #16191c; }
}
@media (max-width: 1100px) { .top .btn .lab { display: none; } .top .btn { width: var(--h-sm); padding: 0; } }

/* ---------- hover scrubbing, New badges, timeline preview (19 Nov 2026) ---------- */
.card .scrubov { position: absolute; display: none; background-repeat: no-repeat; pointer-events: none; }
.card .pic.scrubbing .scrubov { display: block; }
.card .pic.scrubbing > img { visibility: hidden; }
.card .sline { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--acid); display: none; pointer-events: none; }
.card .stime { position: absolute; top: 8px; right: 8px; height: 20px; display: none; align-items: center; padding: 0 7px; border-radius: 5px;
  font: 600 11px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--paper); background: rgba(10,11,13,.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); pointer-events: none; }
.card .pic.scrubbing .sline { display: block; }
.card .pic.scrubbing .stime { display: inline-flex; }
.card .pic.scrubbing .newdot, .card .pic.scrubbing .vers { opacity: 0; }
.card .newdot { position: absolute; top: 8px; right: 8px; height: 20px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 10px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--acid-ink); background: var(--acid); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.card .row .n .nc { font-weight: 700; color: var(--acid); margin-left: 3px; font-size: 11px; }
.scrub .sprev { position: absolute; bottom: 28px; width: 160px; margin-left: -80px; display: none; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; z-index: 5; }
.scrub .sprev.on { display: flex; }
.scrub .sprev .sfr { position: relative; width: 160px; height: 90px; border-radius: 8px; overflow: hidden; background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 10px 30px rgba(0,0,0,.6); }
.scrub .sprev .sfi { position: absolute; background-repeat: no-repeat; }
.scrub .sprev span { height: 20px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 5px; font: 600 11px/1 var(--mono); font-variant-numeric: tabular-nums;
  background: rgba(10,11,13,.75); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: var(--paper); }

/* ---------- approvals, range comments, mentions, share pages (19 Nov 2026) ---------- */
.status .by { margin-left: 5px; color: var(--muted); font-weight: 500; }
.statby { white-space: nowrap; margin-left: 2px; }
.scrub .rng { position: absolute; top: 8px; height: 8px; border-radius: 4px; background: rgba(213,255,53,.35); box-shadow: inset 0 0 0 1px rgba(213,255,53,.6); pointer-events: none; }
.scrub .rng.res { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.scrub .rng.pending { background: rgba(143,180,255,.35); box-shadow: inset 0 0 0 1px rgba(143,180,255,.8); }
.cm .body .mention { color: var(--acid); font-weight: 600; }
.composer { position: relative; }
.mentions { position: absolute; left: 12px; right: 12px; bottom: calc(100% - 4px); display: none; flex-direction: column; padding: 4px; border-radius: 10px; z-index: 10;
  background: var(--g-fill-strong); backdrop-filter: blur(30px) saturate(170%); -webkit-backdrop-filter: blur(30px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.09), 0 16px 40px rgba(0,0,0,.5); }
.mentions.on { display: flex; }
.mentions div { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 7px; cursor: pointer; font-size: 13px; color: var(--soft); }
.mentions div svg.i { width: 14px; height: 14px; color: var(--muted); }
.mentions div.on, .mentions div:hover { background: rgba(255,255,255,.1); color: var(--paper); }
.noselect .card .tick { display: none; }

/* ── Liquid glass controls (19 Nov 2026, Shaun: "sexier and smoother… Apple's glass design") ──────────────────
   Segmented controls get a capsule track and a glass thumb that slides between options (spring-like overshoot);
   buttons become glass capsules with a specular top edge; the selection bar springs up from the bottom. */
:root { --spring: cubic-bezier(.32, 1.28, .42, 1); --glass-edge: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(255,255,255,.04), inset 0 0 0 .5px rgba(255,255,255,.14); }
.seg, .tri { position: relative; border-radius: 999px; padding: 3px; gap: 0; isolation: isolate;
  background: rgba(255,255,255,.055); backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.12), inset 0 1px 1px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.04); }
.seg button, .tri button { position: relative; z-index: 1; border-radius: 999px; background: transparent !important; box-shadow: none !important;
  transition: color .25s var(--ease), transform .15s var(--ease); }
.seg button { padding: 0 14px; }
.seg button:active, .tri button:active { transform: scale(.96); }
.seg button.on, .tri button.on { color: var(--paper); }
.segthumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; border-radius: 999px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,.1) 55%, rgba(255,255,255,.14));
  box-shadow: var(--glass-edge), 0 2px 10px rgba(0,0,0,.35), 0 0 0 .5px rgba(0,0,0,.25);
  backdrop-filter: blur(10px) saturate(200%); -webkit-backdrop-filter: blur(10px) saturate(200%); will-change: transform, width; }
.seg.ready > .segthumb, .tri.ready > .segthumb { transition: transform .5s var(--spring), width .5s var(--spring), opacity .2s, scale .2s var(--ease); }
.seg:has(button.on:active) > .segthumb, .tri:has(button.on:active) > .segthumb { scale: .96; }
.tri .segthumb { top: 2px; bottom: 2px; } .tri { padding: 2px; }
.vtabs { border-radius: 999px; background: rgba(255,255,255,.055); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.12), inset 0 1px 1px rgba(0,0,0,.35); }
.vtabs a { border-radius: 999px; transition: color .2s, background .25s var(--ease); }
.vtabs a.on { background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.1)); box-shadow: var(--glass-edge), 0 2px 8px rgba(0,0,0,.3); }

.btn { border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.05));
  box-shadow: var(--glass-edge), 0 1px 3px rgba(0,0,0,.25); backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%);
  transition: background .25s var(--ease), box-shadow .25s var(--ease), transform .3s var(--spring), color .2s; }
.btn:hover { background: linear-gradient(180deg, rgba(255,255,255,.17), rgba(255,255,255,.08)); box-shadow: var(--glass-edge), 0 4px 14px rgba(0,0,0,.3); transform: translateY(-.5px); }
.btn:active { transform: scale(.96); transition-duration: .1s; }
.btn.sm { border-radius: 999px; padding: 0 12px; }
.btn.icon { border-radius: 50%; padding: 0; }
.btn.ghost { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.btn.ghost:hover { background: rgba(255,255,255,.09); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.1); }
.btn.main { background: linear-gradient(180deg, #e4ff7a, var(--acid) 60%, #c6f02a); color: var(--acid-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -1px 0 rgba(0,0,0,.12), 0 4px 18px rgba(213,255,53,.22); }
.btn.main:hover { background: linear-gradient(180deg, #ecff9c, #dcff52 60%, #cdf63a); box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -1px 0 rgba(0,0,0,.12), 0 6px 24px rgba(213,255,53,.3); }
.btn.on { background: var(--acid-dim); box-shadow: inset 0 0 0 .5px rgba(213,255,53,.45), inset 0 1px 0 rgba(255,255,255,.12); }
.btn[disabled]:hover { transform: none; }

.selbar { border-radius: 999px; padding: 6px 6px 6px 20px; gap: 6px;
  background: linear-gradient(180deg, rgba(40,44,50,.62), rgba(22,25,29,.6));
  backdrop-filter: blur(32px) saturate(190%); -webkit-backdrop-filter: blur(32px) saturate(190%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 .5px rgba(255,255,255,.12), 0 24px 70px rgba(0,0,0,.6), 0 2px 8px rgba(0,0,0,.35);
  animation: selbar-in .55s var(--spring); }
.selbar .field { border-radius: 999px; }
@keyframes selbar-in { from { opacity: 0; transform: translate(-50%, 28px) scale(.92); filter: blur(6px); } }

@media (prefers-reduced-transparency: reduce) {
  .seg, .tri, .vtabs, .btn, .segthumb, .selbar { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .seg, .tri { background: #15181b; } .segthumb { background: #2a2e33; } .selbar { background: #1b1e22; }
}

/* Hover tips + bigger card counts (19 Nov 2026, Shaun: "icons are too small… add mouseover tips") */
.gtip { position: fixed; z-index: 1000; max-width: 260px; padding: 6px 10px; border-radius: 10px; pointer-events: none;
  font-size: 12px; line-height: 1.35; font-weight: 500; color: var(--paper); letter-spacing: -.003em;
  background: rgba(30,33,38,.78); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 .5px rgba(255,255,255,.12), 0 10px 30px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(4px) scale(.97); transition: opacity .16s var(--ease), transform .22s var(--spring); }
.gtip.below { transform: translateY(-4px) scale(.97); }
.gtip.on { opacity: 1; transform: none; }
.card .row { gap: 4px; }
.card .row .n { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border-radius: 999px; font-size: 12.5px; color: var(--soft); cursor: default; transition: background .2s var(--ease), color .2s; }
.card .row .n:hover { background: rgba(255,255,255,.08); color: var(--paper); }
.card .row svg.i { width: 16px; height: 16px; }
.card .row .n.on { color: var(--acid); }
@media (prefers-reduced-transparency: reduce) { .gtip { background: #1e2126; backdrop-filter: none; -webkit-backdrop-filter: none; } }.selbar b, .selbar .btn { white-space: nowrap; }

/* Card actions (19 Nov 2026, Shaun: hand cursor on hover, more than like + comment) */
.card .row .n.act { border: 0; background: transparent; font: inherit; font-size: 12.5px; cursor: pointer; }
.card .row .n.act:hover { background: rgba(255,255,255,.1); color: var(--paper); }
.card .row .n.act:active { transform: scale(.92); }
.card .row .n.act.on { color: var(--acid); }
.card .row .n.act.on svg.i { fill: currentColor; }
.card .row .n.more { padding: 0 6px; }
.card .row svg.dots { stroke-width: 3.2; }
.card .row .n.pop svg.i { animation: likepop .45s var(--spring); }
@keyframes likepop { 40% { transform: scale(1.35); } }
.cmenu { position: fixed; z-index: 900; min-width: 220px; padding: 6px; border-radius: 14px;
  background: rgba(30,33,38,.72); backdrop-filter: blur(30px) saturate(190%); -webkit-backdrop-filter: blur(30px) saturate(190%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 .5px rgba(255,255,255,.12), 0 20px 60px rgba(0,0,0,.6);
  animation: cmenu-in .28s var(--spring); transform-origin: top right; }
@keyframes cmenu-in { from { opacity: 0; transform: scale(.94); } }
.cmenu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 32px; padding: 0 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--paper); font-size: 13px; text-align: left; cursor: pointer; transition: background .12s; }
.cmenu button:hover { background: rgba(255,255,255,.1); }
.cmenu button svg.i { color: var(--soft); }
.cmenu button.cur { color: var(--acid); }
.cmenu .sep { height: 1px; margin: 6px 4px; background: rgba(255,255,255,.1); }
.cmenu .lbl2 { padding: 2px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.cmenu .sdot { width: 8px; height: 8px; margin: 0 4px; border-radius: 50%; background: var(--warn); flex: none; }
.cmenu .sdot.progress { background: var(--info); } .cmenu .sdot.changes { background: var(--alert); }
.cmenu .sdot.approved { background: var(--ok); } .cmenu .sdot.rejected { background: #8a3a34; }
@media (prefers-reduced-transparency: reduce) { .cmenu { background: #1e2126; backdrop-filter: none; -webkit-backdrop-filter: none; } }
/* Selection bar at the top, under the header (19 Nov 2026, Shaun didn't like it floating at the bottom) */
.selbar { top: calc(var(--top) + 10px); bottom: auto; left: calc(240px + 32px); right: 32px; transform: none; justify-content: flex-start;
  border-radius: 16px; padding: 6px 6px 6px 18px; animation: selbar-drop .45s var(--spring); }
.selbar .sp { flex: 1; }
.selbar .selkinds { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
@keyframes selbar-drop { from { opacity: 0; transform: translateY(-14px) scale(.98); filter: blur(4px); } }
@media (max-width: 960px) { .selbar { left: 16px; right: 16px; flex-wrap: wrap; } .selbar .selkinds { display: none; } }
.selbar { background: linear-gradient(180deg, rgba(38,42,48,.9), rgba(20,23,27,.88)); } /* the space title sits underneath at the top of the page: keep it from ghosting through */

.selbar { top: calc(var(--top) + 22px); }
.libhead { transition: opacity .25s var(--ease); }
body.selmode .libhead { opacity: 0; pointer-events: none; }
@media (max-width: 1240px) { .selbar { flex-wrap: wrap; row-gap: 6px; } .selbar .selkinds { display: none; } }
.top .backbtn { padding: 0 14px 0 10px; margin-left: 4px; }
/* Back = green so it reads as the way out (Shaun, 19 Nov): tinted, fills solid on hover */
.top .backbtn { color: var(--acid); background: linear-gradient(180deg, rgba(213,255,53,.2), rgba(213,255,53,.1));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 .5px rgba(213,255,53,.55), 0 2px 10px rgba(213,255,53,.12); font-weight: 600; }
.top .backbtn:hover { color: var(--acid-ink); background: linear-gradient(180deg, #e4ff7a, var(--acid) 60%, #c6f02a); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 4px 18px rgba(213,255,53,.28); }
.top .backbtn svg.i { transition: transform .3s var(--spring); }
.top .backbtn:hover svg.i { transform: translateX(-2px); }.top .btn.backbtn { width: auto; padding: 0 14px 0 10px; flex: none; } /* keep its label on narrow windows too */

/* Selection controls inline at the right of the date heading; date headings stick under the header (Shaun, 19 Nov) */
.day { position: sticky; top: var(--top); z-index: 15; align-items: center; flex-wrap: wrap; min-height: 48px; margin: 18px 0 6px; padding: 6px 0; }
.day::before { content: ""; position: absolute; inset: 0 -32px; z-index: -1; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease);
  background: rgba(10,11,13,.6); backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%); box-shadow: inset 0 -1px 0 rgba(255,255,255,.07); }
.day.stuck::before { opacity: 1; }
.day .selbar { position: static; inset: auto; transform: none; margin-left: auto; flex-wrap: nowrap; gap: 6px; padding: 4px 4px 4px 14px; border-radius: 999px;
  animation: selbar-pop .38s var(--spring); }
@keyframes selbar-pop { from { opacity: 0; transform: translateX(12px) scale(.97); } }
.day .selbar b { font: 600 13px/1 var(--font); letter-spacing: -.005em; margin-right: 2px; }
.day .selbar .selkinds { color: var(--muted); font-size: 12px; margin-right: 6px; }
@media (max-width: 1240px) { .day .selbar { flex-wrap: wrap; justify-content: flex-end; } }
@media (max-width: 960px) { .day::before { inset: 0 -16px; } .day .selbar { margin-left: 0; width: 100%; } }
@media (prefers-reduced-transparency: reduce) { .day::before { background: #0b0c0e; backdrop-filter: none; -webkit-backdrop-filter: none; } }
/* Selection row under the filters (Shaun, 19 Nov: "I like this layout"); replaces the floating bar and the date-row version */
.day { position: static; min-height: 0; margin: 32px 0 12px; padding: 0; align-items: baseline; }
.day::before { display: none; }
.selrow { position: sticky; top: calc(var(--top) + 8px); z-index: 15; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; padding: 8px 8px 8px 16px;
  border-radius: 14px; background: linear-gradient(180deg, rgba(34,38,44,.86), rgba(20,23,27,.84));
  backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 .5px rgba(255,255,255,.12), 0 10px 30px rgba(0,0,0,.35); }
.selrow[hidden] { display: none; }
.selrow.in { animation: selrow-in .4s var(--spring); }
@keyframes selrow-in { from { opacity: 0; transform: translateY(-6px) scale(.99); } }
.selrow b { font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.selrow .selkinds { color: var(--muted); font-size: 12.5px; margin-right: 6px; white-space: nowrap; }
.selrow .btn { white-space: nowrap; }
.selrow .field.sm { height: var(--h-sm); border-radius: 999px; font-size: 12.5px; padding-right: 28px; }
@media (prefers-reduced-transparency: reduce) { .selrow { background: #16191c; backdrop-filter: none; -webkit-backdrop-filter: none; } }
/* ══ Refined controls (19 Nov 2026, Shaun: the glossy capsules looked "80s retro"; match Runway / Frame.io / Apple) ══
   Flat surfaces, hairline edges, 8 px corners, no gradients, no glow, no bounce. Glass stays on chrome only
   (header, menus, tips), never on buttons. This layer overrides the earlier button, segment and selection styles. */
:root { --ctl: rgba(255,255,255,.06); --ctl-hover: rgba(255,255,255,.1); --ctl-press: rgba(255,255,255,.14); --ctl-edge: rgba(255,255,255,.08); --ease-out: cubic-bezier(.2,.7,.2,1); }

.btn { border-radius: 8px; background: var(--ctl); box-shadow: inset 0 0 0 1px var(--ctl-edge); color: #ececec; font-weight: 500; font-size: 13px; letter-spacing: -.005em;
  backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .15s var(--ease-out), color .15s, box-shadow .15s; transform: none; }
.btn:hover { background: var(--ctl-hover); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transform: none; }
.btn:active { background: var(--ctl-press); transform: scale(.98); transition-duration: .06s; }
.btn.sm { border-radius: 7px; padding: 0 10px; font-size: 12.5px; }
.btn.icon { border-radius: 8px; padding: 0; }
.btn.icon.sm { border-radius: 7px; }
.btn svg.i { width: 15px; height: 15px; opacity: .85; }
.btn.ghost { background: transparent; box-shadow: none; color: var(--soft); }
.btn.ghost:hover { background: var(--ctl); color: var(--paper); box-shadow: none; }
.btn.main { background: var(--acid); color: var(--acid-ink); font-weight: 600; box-shadow: none; }
.btn.main:hover { background: #e0ff5e; box-shadow: none; }
.btn.main svg.i { opacity: 1; }
.btn.on { background: rgba(213,255,53,.12); color: var(--acid); box-shadow: inset 0 0 0 1px rgba(213,255,53,.25); }

.field, .field.sm { border-radius: 8px; background: var(--ctl); box-shadow: inset 0 0 0 1px var(--ctl-edge); transition: background .15s, box-shadow .15s; }
.field:hover { background: var(--ctl-hover); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.field:focus { box-shadow: inset 0 0 0 1px rgba(213,255,53,.5); }

.seg, .tri { border-radius: 9px; padding: 2px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); backdrop-filter: none; -webkit-backdrop-filter: none; }
.seg button, .tri button { border-radius: 7px; font-weight: 500; }
.seg button { padding: 0 12px; }
.seg button:active, .tri button:active { transform: none; }
.segthumb { top: 2px; bottom: 2px; border-radius: 7px; background: rgba(255,255,255,.11); backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.06); }
.seg.ready > .segthumb, .tri.ready > .segthumb { transition: transform .26s var(--ease-out), width .26s var(--ease-out), opacity .15s; }
.seg:has(button.on:active) > .segthumb, .tri:has(button.on:active) > .segthumb { scale: 1; }
.vtabs { border-radius: 9px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.vtabs a { border-radius: 7px; }
.vtabs a.on { background: rgba(255,255,255,.11); box-shadow: 0 1px 2px rgba(0,0,0,.45); }

/* Back: a quiet green tint, not a glowing pill */
.top .backbtn, .top .btn.backbtn { color: var(--acid); background: rgba(213,255,53,.1); box-shadow: inset 0 0 0 1px rgba(213,255,53,.22); font-weight: 500; border-radius: 8px; }
.top .backbtn:hover { color: var(--acid); background: rgba(213,255,53,.17); box-shadow: inset 0 0 0 1px rgba(213,255,53,.32); }
.top .backbtn:hover svg.i { transform: translateX(-2px); }

/* Selection lives inside the filter bar: the search and size controls step aside while items are ticked */
.bar.selecting #rgroup .search, .bar.selecting #rgroup .sizer { display: none; }
.selgroup { display: flex; align-items: center; gap: 6px; }
.selgroup[hidden] { display: none; }
.selgroup.in { animation: selgroup-in .2s var(--ease-out); }
@keyframes selgroup-in { from { opacity: 0; transform: translateX(6px); } }
.selcount { display: inline-flex; align-items: baseline; gap: 4px; margin-right: 6px; font-size: 13px; color: var(--soft); white-space: nowrap; }
.selcount b { color: var(--acid); font-weight: 600; font-variant-numeric: tabular-nums; }
.selcount .selkinds { color: var(--faint); font-size: 12px; margin-left: 4px; }
.selgroup .field.sm { height: var(--h-sm); width: auto; padding: 0 26px 0 10px; font-size: 12.5px; }
.selgroup .btn { white-space: nowrap; }
@media (max-width: 1240px) { .selcount .selkinds { display: none; } }

.card .row .n.act { border-radius: 7px; }
.card .row .n.pop svg.i { animation: none; }.selgroup .field.sm { width: 108px; }
.selcount { cursor: default; }
.selgroup { min-height: var(--h); } /* same height as the search box it replaces, so the row doesn't shift */
.selgroup { min-height: 36px; } /* the size slider it replaces is 36 px tall */

/* Details: prompt + AI description (Shaun, 19 Nov) */
.details { display: grid; gap: 12px; }
.dsect { margin: 20px 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.dmeta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); }
.dmeta svg.i { width: 14px; height: 14px; color: var(--muted); }
.dblock { border-radius: 10px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); padding: 10px 12px 12px; }
.dhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.dhead .btn.sm { height: 24px; padding: 0 8px; font-size: 12px; text-transform: none; letter-spacing: 0; }
.dtext { font-size: 13px; line-height: 1.55; color: var(--paper); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 280px; overflow: auto; user-select: text; }
.dtags { display: flex; flex-wrap: wrap; gap: 6px; }
.dtags span { height: 22px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 6px; background: rgba(255,255,255,.06); font-size: 12px; color: var(--soft); }
dialog .dtitle { margin: 0 0 2px; font-size: 16px; overflow-wrap: anywhere; }
dialog:has(.details) { width: min(640px, calc(100vw - 32px)); }dialog:has(.details) .actions { display: flex; justify-content: flex-end; margin-top: 16px; }

/* Selection, mirroring the gallery layout Shaun likes (19 Nov): square tick boxes always visible at top-left,
   white tick + light outline when chosen, and a flat row under the filters once something is ticked. */
.selrow { position: static; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; padding: 8px 10px 8px 14px; border-radius: 10px;
  background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); backdrop-filter: none; -webkit-backdrop-filter: none; animation: none; }
.selrow[hidden] { display: none; }
.selrow b { font-size: 13px; font-weight: 600; margin-right: 6px; white-space: nowrap; color: var(--paper); }
.selrow .field.sm { width: auto; height: var(--h-sm); padding: 0 28px 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn.white { background: #f4f4f4; color: #0b0b0c; box-shadow: none; font-weight: 600; }
.btn.white:hover { background: #ffffff; }
.btn.white svg.i { opacity: 1; }
.card .tick { opacity: 1; top: 10px; left: 10px; width: 20px; height: 20px; border-radius: 5px; background: rgba(0,0,0,.45);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .12s, box-shadow .12s; }
.card .tick:hover { box-shadow: inset 0 0 0 1.5px #fff; background: rgba(0,0,0,.6); }
.card.sel .tick { background: #f4f4f4; box-shadow: none; }
.card.sel .tick::after { border-color: #0b0b0c; }
.card.sel { box-shadow: 0 0 0 1.5px rgba(255,255,255,.85); }.tech .tgrid { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0 0 8px; font-size: 13px; }
.tech .tgrid dt { color: var(--muted); } .tech .tgrid dd { margin: 0; color: var(--paper); font-variant-numeric: tabular-nums; }
.tchips span.draft { background: rgba(242,193,78,.16); color: var(--warn); }
.dsrc { margin-left: auto; font-size: 11.5px; color: var(--faint); }.card .newdot.hiddenbadge { background: rgba(0,0,0,.6); color: var(--soft); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }

/* ══ Selection mode (19 Nov 2026, Shaun: "real design thinking, not just buttons") ══
   Google Photos / Dropbox / Runway pattern: once something is ticked, the filter bar itself becomes the selection bar.
   Same place and height (nothing below moves), and it sticks under the header while you scroll. */
select.field, select.field.sm, select.field.xs, select.field:hover, select.field.sm:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23c4c8c4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }
.bar > .barsel { display: none; }
.bar.selmode > :not(.barsel) { display: none !important; }
.bar.selmode > .barsel { display: flex; }
.barsel[hidden] { display: none !important; }
.barsel { flex: 1; align-items: center; gap: 8px; min-width: 0; animation: barsel-in .18s var(--ease-out); }
@keyframes barsel-in { from { opacity: 0; } }
.bar.selmode { position: sticky; top: var(--top); z-index: 20; align-items: flex-start; }
.barsel { position: relative; min-height: var(--h); }
.bar.selmode.stuck .barsel::before { content: ""; position: absolute; inset: -8px -32px; z-index: -1; background: rgba(8,9,10,.9);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); box-shadow: inset 0 -1px 0 rgba(255,255,255,.08); }
.barsel .sp { flex: 1; }
.barsel .divider { width: 1px; height: 20px; background: rgba(255,255,255,.1); margin: 0 2px; }

.selmaster { width: 20px; height: 20px; flex: none; margin: 0 4px 0 2px; padding: 0; border: 0; border-radius: 5px; display: grid; place-items: center;
  background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); cursor: pointer; transition: background .12s, box-shadow .12s; }
.selmaster:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.selmaster.all, .selmaster.some { background: #f4f4f4; box-shadow: none; }
.selmaster.all::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #0b0b0c; border-bottom: 2px solid #0b0b0c; transform: rotate(-45deg) translate(1px, -1px); }
.selmaster.some::after { content: ""; width: 10px; height: 2px; border-radius: 1px; background: #0b0b0c; }
.barsel .selcount { display: inline-flex; align-items: baseline; gap: 10px; margin: 0; font-size: 13.5px; color: var(--paper); white-space: nowrap; min-width: 0; }
.barsel .selcount b { color: var(--paper); font-weight: 600; font-variant-numeric: tabular-nums; }
.barsel .selof { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }

.btn.menubtn { gap: 6px; padding-right: 8px; }
.btn.menubtn svg.chev { width: 14px; height: 14px; margin-left: 2px; opacity: .65; transition: transform .18s var(--ease-out); }
.btn.menubtn.open { background: var(--ctl-press); }
.btn.menubtn.open svg.chev { transform: rotate(180deg); }
.btn .sdot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--warn); }
.btn .sdot.progress { background: var(--info); } .btn .sdot.changes { background: var(--alert); } .btn .sdot.approved { background: var(--ok); } .btn .sdot.rejected { background: #8a3a34; }
.barsel .btn.icon.ghost { width: var(--h-sm); color: var(--soft); }
.barsel .btn.icon.ghost:hover { color: var(--paper); background: var(--ctl-hover); }
.barsel .btn[disabled] { pointer-events: none; }

.cmenu.pop { min-width: 260px; }
.cmenu.pop button { height: auto; min-height: 32px; padding: 7px 10px; text-align: left; }
.cmenu button .ml { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; line-height: 1.25; }
.cmenu button .ml small { margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.cmenu button .ck { margin-left: auto; width: 14px; height: 14px; color: var(--acid); }
.cmenu button[disabled] { opacity: .45; cursor: default; }
.cmenu button[disabled]:hover { background: transparent; }
.cmenu button.danger, .cmenu button.danger svg.i { color: var(--alert); }
.cmenu button.danger:hover { background: rgba(255,107,94,.12); }

.dellist { list-style: none; margin: 14px 0; padding: 6px; border-radius: 10px; max-height: 220px; overflow: auto;
  background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.dellist li { display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 6px; font-size: 13px; color: var(--paper); }
.dellist li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dellist li svg.i { width: 14px; height: 14px; flex: none; color: var(--muted); }
.dellist li.more { color: var(--muted); }
.btn.delbtn { background: #e5484d; color: #fff; font-weight: 600; box-shadow: none; }
.btn.delbtn:hover { background: #f05a5f; box-shadow: none; }
.btn.delbtn svg.i { opacity: 1; }
@media (max-width: 900px) { .barsel .selof { display: none; } .bar.selmode.stuck .barsel::before { inset: -8px -16px; } }

/* =====================================================================================================================
   STUDIO BLACK (19 Nov 2026, Shaun: "incorporate lizardking.ai's look, style, buttons and functionality").
   Same visual language as Shaun's own tool (design only; the two apps stay completely separate): near-black layers told
   apart by shade, 1 px hairlines, no glass on controls, no glow, Inter, 6-8 px corners, segmented controls, quiet raised
   buttons, light filled main buttons, solid menus with a soft shadow, dialogs with a blurred backdrop.
   The one colour button is green (Shaun: Download and Back are green); everything else is monochrome, so the colour comes
   from the pictures. This layer sits last on purpose: it restyles everything above without changing how anything works.
   ===================================================================================================================== */
:root {
  --ink: #08090a; --base: #08090a; --panel: #0e0f11; --raised: #141516; --hover: #1c1c1f; --sel: #26272b;
  --line: #23252a; --line2: #23252a; --line3: #34343a;
  --paper: #f7f8f8; --soft: #d0d6e0; --muted: #8a8f98; --faint: #62666d;
  --ok: #4cb782; --warn: #f2994a; --alert: #eb5757; --info: #5e9cf0; --star: #f2c94c;
  --ctl: #141516; --ctl-hover: #1c1c1f; --ctl-press: #26272b; --ctl-edge: #23252a;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; --font-display: var(--font);
  --ease: cubic-bezier(.2, .7, .2, 1); --top: 60px;
}
html, body { background: var(--ink); font: 400 14px/1.5 var(--font); letter-spacing: -.006em; }
::selection { background: rgba(255,255,255,.22); color: var(--paper); }
:focus-visible { outline: 2px solid rgba(247,248,248,.5); outline-offset: 2px; }
::-webkit-scrollbar-thumb { background: var(--sel); border: 2px solid var(--ink); background-clip: border-box; border-radius: 10px; }
#ambient { display: none !important; } /* no colour wash behind the page: the pictures bring the colour */
h1 { font: 600 24px/1.2 var(--font); letter-spacing: -.02em; }
h2, .cardbox h3, dialog h3 { font-family: var(--font); font-weight: 600; letter-spacing: -.015em; }

/* Header: solid, hairline under it, the Unified wordmark at a readable size */
.top { height: var(--top); padding: 0 20px 0 24px; gap: 10px; background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: inset 0 -1px 0 var(--line); }
.top .logo { height: 30px; width: auto; margin-right: 14px; }
.top .title { font-size: 14px; font-weight: 500; color: var(--soft); padding-left: 14px; box-shadow: inset 1px 0 0 var(--line); }
.top .btn.ghost { color: var(--muted); } .top .btn.ghost:hover { color: var(--paper); background: var(--hover); }
.top .btn.cur { background: var(--sel); color: var(--paper); box-shadow: none; border-color: transparent; }
.auth .logo { height: 36px; }
@media (max-width: 700px) { .top .logo { height: 24px; margin-right: 8px; } .top .title { display: none; } }

/* Buttons: one quiet look (raised shade, hairline border, 6 px corners); main = light fill; green = the one colour action */
.btn { height: var(--h); padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--raised); box-shadow: none;
  color: var(--soft); font: 500 12.5px/1 var(--font); letter-spacing: -.005em; backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: background-color .12s var(--ease), border-color .12s var(--ease), color .12s var(--ease); transform: none; }
.btn:hover { background: var(--hover); border-color: var(--line3); color: var(--paper); box-shadow: none; }
.btn:active { background: var(--sel); transform: none; }
.btn.sm { height: 30px; padding: 0 11px; border-radius: 6px; font-size: 12.5px; }
.btn.icon { width: var(--h); padding: 0; } .btn.icon.sm { width: 30px; }
.btn svg.i { width: 14px; height: 14px; opacity: 1; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--hover); border-color: transparent; color: var(--paper); }
.btn.main { background: var(--paper); border-color: var(--paper); color: var(--ink); font-weight: 600; }
.btn.main:hover { background: var(--soft); border-color: var(--soft); color: var(--ink); }
.btn.go { background: var(--acid); border-color: var(--acid); color: var(--acid-ink); font-weight: 600; }
.btn.go:hover { background: #e0ff5e; border-color: #e0ff5e; color: var(--acid-ink); }
.btn.on { background: var(--sel); border-color: var(--line3); color: var(--paper); }
.btn.danger { color: var(--alert); } .btn.danger:hover { border-color: rgba(235,87,87,.5); color: var(--alert); }
.btn.delbtn { background: #e5484d; border-color: #e5484d; color: #fff; } .btn.delbtn:hover { background: #f05a5f; border-color: #f05a5f; color: #fff; }
.btn[disabled] { opacity: .4; }
.top .backbtn, .top .btn.backbtn { color: var(--acid-ink); background: var(--acid); border-color: var(--acid); font-weight: 600; box-shadow: none; }
.top .backbtn:hover, .top .btn.backbtn:hover { color: var(--acid-ink); background: #e0ff5e; border-color: #e0ff5e; box-shadow: none; }

/* Segmented controls */
.seg, .tri, .vtabs { height: var(--h); padding: 2px; gap: 2px; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.seg button, .tri button, .vtabs a { border-radius: 6px; color: var(--muted); font: 500 12.5px/1 var(--font); }
.seg button:hover, .tri button:hover, .vtabs a:hover { color: var(--paper); }
.seg button.on, .tri button.on, .vtabs a.on { color: var(--paper); }
.seg:not(.ready) button.on, .tri:not(.ready) button.on, .vtabs a.on { background: var(--sel); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 1px 2px rgba(0,0,0,.35); }
.segthumb { top: 2px; bottom: 2px; border-radius: 6px; background: var(--sel); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 1px 2px rgba(0,0,0,.35); backdrop-filter: none; -webkit-backdrop-filter: none; }
.vtabs a .pk { color: var(--soft); }
.tabs2 a.on { border-color: var(--paper); } .tabs2 a.on svg.i { color: var(--paper); }

/* Fields and dropdowns */
.field, .field.sm { background-color: var(--ink); border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); color: var(--paper); font-family: var(--font); }
.field.sm { height: 30px; font-size: 13px; }
.field:hover, .field.sm:hover { background-color: var(--ink); box-shadow: inset 0 0 0 1px var(--line3); }
.field:focus, .field.sm:focus { box-shadow: inset 0 0 0 1px var(--line3), 0 0 0 3px rgba(127,127,140,.14); }
.field::placeholder { color: var(--muted); opacity: .8; }
.bar .search { height: 30px; }
.chk input, input[type=checkbox] { accent-color: var(--paper); }
input[type=range]::-webkit-slider-runnable-track { background: var(--line3); }
input[type=range]::-webkit-slider-thumb { width: 14px; height: 14px; margin-top: -5px; background: var(--paper); box-shadow: none; }
/* Chrome's customizable dropdowns, as in lizardking.ai: our own panel instead of the pale-blue Windows list (other browsers keep theirs) */
@supports (appearance: base-select) {
  select.field, ::picker(select) { appearance: base-select; }
  select.field { align-items: center; white-space: nowrap; overflow: clip; overflow-clip-margin: content-box; }
  select.field::picker-icon { display: none; }
  select.field:open { box-shadow: inset 0 0 0 1px var(--line3); }
  ::picker(select) { background: var(--raised); color: var(--paper); border: 1px solid var(--line3); border-radius: 8px; padding: 4px; margin: 4px 0;
    box-shadow: 0 16px 40px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.25); min-width: anchor-size(width); width: max-content; max-width: min(520px, 92vw);
    max-height: min(440px, 70vh); overflow-y: auto; opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top center;
    transition: opacity .14s var(--ease), transform .14s var(--ease), overlay .14s allow-discrete, display .14s allow-discrete; }
  ::picker(select):popover-open { opacity: 1; transform: none; }
  @starting-style { ::picker(select):popover-open { opacity: 0; transform: translateY(-4px) scale(.98); } }
  select.field option { display: flex; align-items: center; gap: 10px; min-height: 30px; padding: 5px 10px; border-radius: 6px;
    font: 400 13px var(--font); color: var(--soft); background: transparent; cursor: pointer; white-space: nowrap; }
  select.field option:hover, select.field option:focus-visible { background: var(--hover); color: var(--paper); outline: none; }
  select.field option:checked { color: var(--paper); font-weight: 500; }
  select.field option::checkmark { order: 1; margin-left: auto; padding-left: 12px; font-size: 12px; color: var(--paper); }
  @media (prefers-reduced-motion: reduce) { ::picker(select) { transition: none; } }
}

/* Sidebar and page */
.side { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: inset -1px 0 0 var(--line); }
.side a { height: 32px; border-radius: 6px; color: var(--soft); }
.side a:hover { background: var(--hover); }
.side a.on { background: var(--sel); color: var(--paper); box-shadow: none; }
.side a.on span:last-child { color: var(--soft); }
.libhead .sub { color: var(--muted); }
.day b { font: 500 14px/1.2 var(--font); letter-spacing: -.01em; }
.day span { color: var(--muted); }

/* Cards: layers by shade and a hairline, no shadows */
.card, .space { background: var(--panel); border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s var(--ease); }
.card:hover, .space:hover { box-shadow: inset 0 0 0 1px var(--line3); transform: none; }
.card:active { transform: none; }
.card.sel { box-shadow: inset 0 0 0 1px var(--soft), 0 0 0 1px var(--soft); }
.card .pic { background: #050506; }
.card .kind, .card .vers, .card .newdot { border-radius: 4px; background: rgba(8,9,10,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-weight: 500; }
.card .tick { width: 22px; height: 22px; border-radius: 6px; background: rgba(8,9,10,.6); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.card.sel .tick { background: var(--paper); box-shadow: none; }
.card .name { font-weight: 500; color: var(--paper); }
.card .row { color: var(--muted); }
.card .row .n.on { color: var(--soft); }
.card .row .n.act[data-act="like"].on { color: var(--alert); }
.card .row .nc { color: var(--paper); }
.empty { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); border-radius: 10px; }
.cardbox, .tablewrap { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); border-radius: 10px; }
.cardbox .tablewrap { background: transparent; box-shadow: none; }
table.t tr.click:hover td { background: var(--hover); }
.pill.acid { color: var(--paper); background: var(--sel); }

/* Menus, tips, toasts: solid raised panels with a soft shadow (no glass) */
.cmenu { padding: 4px; border-radius: 8px; background: var(--raised); border: 1px solid var(--line3); box-shadow: 0 16px 40px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.25);
  backdrop-filter: none; -webkit-backdrop-filter: none; }
.cmenu button { height: 30px; border-radius: 6px; color: var(--soft); font: 400 13px var(--font); }
.cmenu button:hover { background: var(--hover); color: var(--paper); }
.cmenu button svg.i { width: 14px; height: 14px; color: var(--muted); }
.cmenu button:hover svg.i { color: var(--soft); }
.cmenu button.cur { color: var(--paper); font-weight: 500; }
.cmenu button .ck { color: var(--paper); }
.cmenu .sep { background: var(--line); margin: 4px 2px; }
.cmenu button.danger, .cmenu button.danger svg.i { color: var(--alert); }
.cmenu button.danger:hover { background: rgba(235,87,87,.12); }
.gtip { background: var(--raised); border: 1px solid var(--line3); border-radius: 6px; box-shadow: 0 12px 40px rgba(0,0,0,.45); backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--soft); }
.toast { background: var(--raised); border: 1px solid var(--line3); border-radius: 8px; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 16px 40px rgba(0,0,0,.45); }

/* Windows (dialogs): soft entrance, blurred backdrop, hairline frame */
dialog { border: 1px solid var(--line3); border-radius: 12px; background: var(--panel); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 24px 80px rgba(0,0,0,.55); }
dialog::backdrop { background: rgba(0,0,0,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog[open] { animation: dlg-in .16s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(6px) scale(.99); } }
.auth .box.glass { background: var(--panel); border: 1px solid var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; border-radius: 12px; }

/* Viewer chrome */
.vbar, .controls, .rail { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
.rail { box-shadow: inset 1px 0 0 var(--line); }
.cm.on { background: var(--hover); box-shadow: inset 0 0 0 1px var(--line); }
.cm .tcchip { background: var(--sel); color: var(--paper); }

/* Selection bar (lizardking.ai's pattern): tick box + count at the left, a labelled "Deselect all  Esc" at the right */
.barsel .selcount b { font-weight: 600; }
.btn.seldone { gap: 8px; }
.btn.seldone kbd { font: 500 10.5px var(--font); padding: 2px 5px; border: 1px solid var(--line3); border-radius: 4px; color: var(--muted); background: var(--ink); }
.btn.menubtn.open { background: var(--sel); border-color: var(--line3); color: var(--paper); }
.dellist { background: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
/* Controls sitting straight on the page (filter bar, selection bar) take the raised shade so they read as controls */
.bar .field, .bar .field.sm, .bar select.field, .bar .search { background-color: var(--raised); }
.bar .field:hover, .bar select.field:hover, .bar .search:hover { background-color: var(--hover); }
.card .newdot:not(.hiddenbadge) { background: var(--paper); color: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Trash (19 Nov 2026) */
.side .sidehead2 { margin-top: 20px; }
.side #trashlink svg.i { width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; color: var(--muted); }
.side #trashlink span:first-child { display: inline-flex; align-items: center; }
.trashbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; padding: 12px 12px 12px 16px; border-radius: 10px;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.trashbar b { display: block; font-weight: 600; font-size: 14px; color: var(--paper); }
.trashbar span { font-size: 12.5px; color: var(--muted); }
.trashbar .sp { flex: 1; }
.toast.act { gap: 14px; padding: 0 8px 0 16px; }
.toast .tact { height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--paper); font: 600 13px var(--font); cursor: pointer; }
.toast .tact:hover { background: var(--hover); }

/* Card picture and corner items (19 Nov 2026, Shaun: "resolve the alignment issue"): the picture box is 16:9 like the work
   itself (it was 16:10, which left a dark strip above and below every 16:9 frame), and every corner item sits the same
   10 px in from its corner at the same 22 px height: tick top-left, NEW top-right, Image/Video bottom-left, versions bottom-right. */
.card .pic { aspect-ratio: 16 / 9; }
.card .tick { top: 10px; left: 10px; width: 22px; height: 22px; }
.card .newdot { top: 10px; right: 10px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 600; letter-spacing: .03em; }
.card .kind, .card .vers { bottom: 10px; height: 22px; border-radius: 6px; padding: 0 8px; }
.card .kind { left: 10px; } .card .vers { right: 10px; }

/* Status dropdowns (19 Nov 2026, Shaun: the colours must match the card menu; the extra filters get their own labelled group) */
select.field option .sdot { width: 8px; height: 8px; margin: 0 2px 0 0; border-radius: 50%; flex: none; background: var(--warn); }
select.field option .sdot.progress { background: var(--info); } select.field option .sdot.changes { background: var(--alert); }
select.field option .sdot.approved { background: var(--ok); } select.field option .sdot.rejected { background: #8a3a34; }
.cmenu .sdot { margin: 0 2px; } .cmenu .sdot.progress { background: var(--info); } .cmenu .sdot.changes { background: var(--alert); }
.cmenu .sdot.approved { background: var(--ok); } .cmenu .sdot.rejected { background: #8a3a34; }
@supports (appearance: base-select) {
  select.field optgroup { padding: 4px 0 2px; font: 600 11px var(--font); color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
  select.field optgroup option { text-transform: none; letter-spacing: -.006em; }
  select.field option + optgroup, select.field optgroup + optgroup { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; }
  select.field optgroup::label, select.field optgroup legend { display: block; padding: 2px 10px 4px; }
}

/* Pass 2 from lizardking.ai */
/* 1 Details line under the name: what the file is, at a glance */
.card .spec { margin-top: 3px; font-size: 12px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.card .spec .sdraft { color: #f2b544; font-weight: 600; }
/* 2 Picture tags only while you hover the picture (touch screens always show them); Draft and New stay */
.card .pic .kind, .card .pic .vers { opacity: 0; transition: opacity .15s var(--ease); }
.card:hover .pic .kind, .card:hover .pic .vers, .card:focus-within .pic .kind, .card:focus-within .pic .vers { opacity: 1; }
.card .pic.scrubbing .kind, .card .pic.scrubbing .vers { opacity: 0; }
@media (hover: none) { .card .pic .kind, .card .pic .vers { opacity: 1; } }
.card .trtags { position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; gap: 6px; }
.card .trtags .newdot { position: static; top: auto; right: auto; }
.card .drafttag { height: 22px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 6px; background: #f2b544; color: #1a1205;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
/* 3/4 Date and folder menus sit with the other filters */
.bar #when, .bar #folder { max-width: 220px; }
/* 5 ⓘ tips in Admin */
.itip { display: inline-flex; align-items: center; vertical-align: -2px; margin-left: 6px; color: var(--muted); cursor: help; border-radius: 50%; }
.itip svg.i { width: 15px; height: 15px; }
.itip:hover, .itip:focus-visible { color: var(--paper); outline: none; }
.gtip { max-width: 340px; line-height: 1.45; }

/* Folder view */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 18px 0 -6px; font-size: 14px; color: var(--muted); }
.crumbs[hidden] { display: none; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 6px; color: var(--soft); text-decoration: none; }
.crumbs a:hover { background: var(--hover); color: var(--paper); }
.crumbs a svg.i { width: 15px; height: 15px; color: var(--muted); }
.crumbs b { padding: 3px 6px; color: var(--paper); font-weight: 600; }
.crumbs .csep svg.i { width: 14px; height: 14px; color: var(--faint); }
.crumbs .sp { flex: 1; }
#vmode button { display: inline-flex; align-items: center; gap: 6px; }
#vmode button svg.i { width: 14px; height: 14px; }
.fcard { position: relative; display: block; color: inherit; text-decoration: none; background: var(--panel); border-radius: 8px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s var(--ease); }
.fcard:hover { box-shadow: inset 0 0 0 1px var(--line3); }
.fcard .pic { position: relative; aspect-ratio: 16 / 9; background: #050506; display: grid; place-items: center; overflow: hidden; }
.fcard .pic img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9); transition: transform .3s var(--ease); }
.fcard:hover .pic img { transform: scale(1.02); }
.fcard .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,9,10,.6), transparent 50%); pointer-events: none; }
.fcard .fempty svg.i { width: 40px; height: 40px; color: var(--faint); }
.fcard .fcount { position: absolute; left: 10px; bottom: 10px; z-index: 1; height: 22px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: 6px;
  background: rgba(8,9,10,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 11.5px; font-weight: 500; color: var(--paper); }
.fcard .fcount svg.i { width: 13px; height: 13px; }
.fcard .meta { padding: 10px 12px 12px; }
.fcard .name { font-size: 14px; font-weight: 600; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard .spec { margin-top: 3px; font-size: 12px; color: var(--soft); }
.fcard .fdate { margin-top: 2px; font-size: 12px; color: var(--muted); }
.dayblock.folders .day { margin-top: 24px; }

/* Admin > Feedback */
.fbbar { margin-top: 0; }
.fbday .day { margin: 26px 0 8px; }
.fbrow { display: grid; grid-template-columns: 132px 1fr auto; gap: 16px; align-items: start; padding: 12px; margin: 0 0 8px; border-radius: 10px;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: inherit; text-decoration: none; transition: box-shadow .15s var(--ease); }
.fbrow:hover { box-shadow: inset 0 0 0 1px var(--line3); }
.fbthumb { position: relative; width: 132px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #050506; display: grid; place-items: center; color: var(--faint); }
.fbthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fbthumb .fbkind { position: absolute; left: 6px; bottom: 6px; display: inline-flex; padding: 2px 4px; border-radius: 4px; background: rgba(8,9,10,.72); color: var(--paper); }
.fbthumb .fbkind svg.i { width: 12px; height: 12px; }
.fbbody { min-width: 0; }
.fbhead { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; font-size: 13.5px; color: var(--soft); }
.fbhead b { color: var(--paper); font-weight: 600; }
.fbhead .fbtc { font-family: var(--mono); font-size: 12px; color: var(--paper); background: var(--sel); padding: 1px 6px; border-radius: 4px; }
.fbhead .fbtime { margin-left: auto; color: var(--muted); font-size: 12px; }
.fbstatus { display: inline-flex; align-items: center; gap: 5px; color: var(--paper); font-weight: 500; }
.fbstatus .sdot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.fbstatus .sdot.progress { background: var(--info); } .fbstatus .sdot.changes { background: var(--alert); } .fbstatus .sdot.approved { background: var(--ok); } .fbstatus .sdot.rejected { background: #8a3a34; }
.fbtext { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--paper); white-space: pre-wrap; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.fbitem { margin-top: 6px; font-size: 12.5px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fbitem span { color: var(--muted); }
.fbtags { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.fb-like .fbhead b::before, .fb-pick .fbhead b::before { content: none; }
@media (max-width: 700px) { .fbrow { grid-template-columns: 96px 1fr; } .fbthumb { width: 96px; } .fbtags { display: none; } }

/* Check progress (Admin > Spaces) */
.scanning { display: inline-flex; align-items: center; gap: 8px; color: var(--paper); font-variant-numeric: tabular-nums; }
.spin { width: 13px; height: 13px; flex: none; border-radius: 50%; border: 2px solid var(--line3); border-top-color: var(--paper); animation: rr-spin .8s linear infinite; }
@keyframes rr-spin { to { transform: rotate(360deg); } }
.scanbar { width: 180px; height: 3px; margin-top: 7px; border-radius: 2px; background: var(--line); overflow: hidden; }
.scanbar i { display: block; height: 100%; background: var(--paper); transition: width .4s var(--ease); }
@media (prefers-reduced-motion: reduce) { .spin { animation: rr-spin 2s linear infinite !important; } }

/* Admin > Spaces folders */
.sfolders { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.sfolders a { display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; padding: 2px 6px; margin-left: -6px; border-radius: 6px;
  color: var(--soft); font-size: 12.5px; text-decoration: none; }
.sfolders a:hover { background: var(--hover); color: var(--paper); }
.sfolders a svg.i { width: 14px; height: 14px; flex: none; color: var(--muted); }
.sfolders a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sfolders a b { margin-left: 4px; font-weight: 600; color: var(--paper); font-variant-numeric: tabular-nums; }

/* Admin > Spaces folder count */
.sfcount { min-width: 28px; height: 24px; padding: 0 8px; border: 0; border-radius: 6px; background: var(--hover); color: var(--paper);
  font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.sfcount:hover, .sfcount[aria-expanded="true"] { background: var(--line3, #2a2d33); }
.sfcount:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.fpop { position: fixed; z-index: 1000; min-width: 220px; max-width: 360px; max-height: min(60vh, 420px); overflow: auto; padding: 6px;
  background: var(--raised); border: 1px solid var(--line3, #2a2d33); border-radius: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.fpop[hidden] { display: none; }
.fpop .fphead { padding: 4px 8px 6px; font-size: 11.5px; color: var(--muted); }
.fpop a { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; color: var(--soft); font-size: 13px; text-decoration: none; }
.fpop a:hover, .fpop a:focus-visible { background: var(--hover); color: var(--paper); outline: none; }
.fpop a svg.i { width: 14px; height: 14px; flex: none; color: var(--muted); }
.fpop a span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpop a b { margin-left: 18px; min-width: 2ch; text-align: right; font-weight: 600; color: var(--paper); font-variant-numeric: tabular-nums; }

/* Feedback full date */
.fbhead .fbtime { white-space: nowrap; padding-left: 12px; font-variant-numeric: tabular-nums; }

/* Viewer: back arrow in the corner + path (23 Nov 2026) */
.top.inviewer { gap: 10px; }
.top .vback { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; margin-left: -6px; border-radius: 8px;
  color: var(--paper); background: var(--hover); text-decoration: none; transition: background .15s var(--ease); }
.top .vback:hover { background: var(--line3, #2a2d33); }
.top .vback:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.top .vback svg.i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.top .vback:hover svg.i { transform: translateX(-2px); }
.top .vcrumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; }
.top .vcrumbs a { flex: 0 1 auto; min-width: 3ch; max-width: 260px; color: var(--muted); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .vcrumbs a:hover { color: var(--paper); }
.top .vcrumbs .vsep { flex: none; color: var(--faint); }
.top .vcrumbs b { flex: 0 1 auto; min-width: 6ch; color: var(--paper); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 640px) { .top .vcrumbs a, .top .vcrumbs .vsep { display: none; } } /* phones: arrow + file name only */

/* Card previews show the whole picture (square and tall ones were cut off) */
.card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* Space and folder covers fill their box (23 Nov 2026): like the item cards, the grid let square/tall covers grow past the box,
   so only their top showed. Now the cover is pinned to the box and cropped around its centre. */
.space .pic { position: relative; }
.space .pic img, .fcard .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

/* Covers: Reposition (23 Nov 2026) */
.fcard .fcov, .space .scov { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border-radius: 6px; background: rgba(8,9,10,.75); color: var(--paper); font-size: 12px; font-weight: 500; cursor: pointer; opacity: 0; transition: opacity .15s var(--ease); }
.fcard:hover .fcov, .fcard:focus-within .fcov, .space:hover .scov, .space:focus-within .scov { opacity: 1; }
.fcard .fcov:hover, .space .scov:hover { background: rgba(8,9,10,.92); }
@media (hover: none) { .fcard .fcov, .space .scov { opacity: 1; } }
.repos .pic { cursor: grab; touch-action: none; user-select: none; }
.repos .pic:active { cursor: grabbing; }
.repos .pic img, .fcard.repos:hover .pic img { transform: none; transition: none; }
.repos .fcov, .repos .scov, .repos .fcount { display: none; }
.repos { outline: 2px solid var(--paper); outline-offset: 2px; }
.covbar { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 10px;
  border-radius: 8px; background: rgba(8,9,10,.85); color: var(--soft); font-size: 12px; cursor: default; }
.covbar span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
