/*
 * The panel. The interface has no colour of its own, the way Lightroom and
 * Capture One have none, because judging a photograph on a tinted page is
 * judging the page. The ground is a true mid-grey, frames are black film rebate,
 * and the only hue is the red china marker a photographer circles a frame with
 * on a contact sheet. It marks what a client picked and what needs attention,
 * and nothing else.
 */
:root {
  --table: #38393b; --rail: #28292a; --raise: #434446; --sunk: #303132;
  --line: #525355; --ink: #f1f1ee; --soft: #c2c2be; --faint: #a3a39f;
  --paper: #f1f1ee; --paper-ink: #141414; --frame: #121212; --edge: #a8a8a4;
  --mark: #ff6f5e; --ok: #f1f1ee;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'Martian Mono', ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --table: #e3e3e0; --rail: #f4f4f1; --raise: #ffffff; --sunk: #d9d9d5;
  --line: #c6c6c1; --ink: #161616; --soft: #4d4d48; --faint: #63635d;
  --paper: #161616; --paper-ink: #f6f6f3; --frame: #161616; --edge: #a8a8a4;
  --mark: #c4261b; --ok: #161616;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: var(--table); color: var(--ink); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The mono face is film edge print: what the machine knows about a frame. */
.edge { font: 400 10.5px/1.5 var(--mono); letter-spacing: .02em; color: var(--faint); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 14px;
       border: 1px solid var(--line); border-radius: 6px; background: transparent; cursor: pointer; font-weight: 500; font-size: 14px;
       text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--raise); border-color: var(--faint); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--main { background: var(--paper); color: var(--paper-ink); border-color: var(--paper); }
.btn--main:hover { background: var(--paper); border-color: var(--paper); opacity: .88; }
.btn--small { min-height: 32px; padding: 0 11px; font-size: 13px; }
.btn--danger { color: var(--mark); border-color: var(--mark); }
.btn--danger:hover { background: transparent; border-color: var(--mark); box-shadow: inset 0 0 0 1px var(--mark); }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
input[type=text], input[type=search], input[type=date], input[type=number], input[type=email], select, textarea {
  width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--sunk); }
input::placeholder { color: var(--faint); }
select { padding-right: 8px; }
.seg { display: flex; gap: 2px; padding: 2px; background: var(--sunk); border-radius: 7px; }
.seg button { flex: 1; min-height: 30px; padding: 0 8px; border: 0; border-radius: 5px; background: none; cursor: pointer; font-size: 12.5px; color: var(--soft); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--raise); color: var(--ink); font-weight: 500; }

/* ---------- login ---------- */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.login__card { max-width: 480px; display: grid; gap: 14px; justify-items: start; }
.login__card h1 { font: 400 40px/1.1 var(--serif); }
.login__card p { color: var(--soft); }
.login__card strong { color: var(--ink); font-weight: 600; }
.login__law { font-size: 13px; }
.loading { position: fixed; inset: 0; display: grid; place-items: center; }
.loading::after { content: ''; width: 26px; height: 26px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .9s linear infinite; }
body:not([data-state="loading"]) .loading { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- frame of the app ---------- */
.app { display: grid; grid-template-columns: 316px minmax(0, 1fr); height: 100dvh; }
.rail { background: var(--rail); display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.main { min-height: 0; overflow-y: auto; }
.rail__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 10px; }
.rail__brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 14px; }
.rail__brand img { border-radius: 50%; }
:root:not([data-theme="light"]) .rail__brand img { filter: invert(1); }
.rail__find { padding: 0 14px 10px; display: grid; gap: 8px; }
.rail__list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 6px 8px; }
.rail__empty { padding: 18px 10px; color: var(--faint); font-size: 13.5px; }
.row { display: block; padding: 9px 9px 10px; border-radius: 6px; text-decoration: none; }
.row:hover { background: var(--sunk); }
.row[aria-current="page"] { background: var(--raise); }
.row__name { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__meta { display: flex; flex-wrap: wrap; gap: 0 8px; margin-top: 1px; }
.row__flag { color: var(--mark); }
.rail__foot { padding: 10px 14px 12px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 12.5px; color: var(--soft); }
.rail__links { display: flex; flex-wrap: wrap; gap: 3px 12px; }
.rail__links #account { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quota__bar { height: 3px; background: var(--sunk); margin-top: 4px; }
.quota__bar span { display: block; height: 100%; background: var(--soft); }
.quota--warn .quota__bar span, .quota--bad .quota__bar span { background: var(--mark); }
.quota__note { color: var(--mark); margin-top: 4px; }

/* ---------- the empty table ---------- */
.table { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(20px, 6vw, 88px); gap: 36px; }
.table h1 { font: 400 clamp(38px, 5.4vw, 72px)/1.04 var(--serif); letter-spacing: -.012em; max-width: 13em; }
.table__sub { margin-top: 14px; color: var(--soft); font-size: 16.5px; max-width: 34em; }
.table__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.table__kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 28px; max-width: 980px; border-top: 1px solid var(--line); }
.kindlink { display: flex; flex-direction: column; justify-content: flex-start; width: 100%; text-align: left; padding: 14px 0 16px; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.kindlink:disabled { opacity: .5; cursor: not-allowed; }
.kindlink strong { display: block; font-weight: 600; }
.kindlink span { color: var(--soft); font-size: 14px; }
.kindlink:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.notice { padding: 11px 14px; border: 1px solid var(--mark); border-radius: 6px; }
.notice a { font-weight: 600; }

/* ---------- a project ---------- */
.proj { padding: 22px clamp(16px, 3vw, 36px) 120px; display: grid; gap: 18px; }
.proj__back { display: none; text-decoration: none; font-size: 14px; color: var(--soft); }
.proj__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 20px; }
.proj__title { font: 400 clamp(28px, 3.4vw, 42px)/1.1 var(--serif); letter-spacing: -.008em; overflow-wrap: anywhere; }
.proj__meta { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 0 12px; font-size: 11.5px; }
.proj__meta .bad { color: var(--mark); }
.send { background: var(--rail); border-radius: 8px; padding: 6px 16px 10px; }
.send__row { display: grid; grid-template-columns: minmax(150px, 190px) minmax(0, 1fr) auto; align-items: center; gap: 6px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.send__row:last-of-type { border-bottom: 0; }
.send__what strong { display: block; font-weight: 600; }
.send__what span { display: block; color: var(--faint); font-size: 12.5px; }
.send__code { justify-self: start; min-width: 0; max-width: 100%; background: none; border: 0; padding: 4px 0; cursor: pointer; font: 500 15px/1.3 var(--mono); letter-spacing: .08em; overflow-wrap: anywhere; text-align: left; }
.send__code--url { font-size: 12px; letter-spacing: 0; font-weight: 400; }
.send__code:hover { text-decoration: underline; text-underline-offset: 3px; }
.send__acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.send__foot { font-size: 12.5px; color: var(--faint); padding-top: 2px; overflow-wrap: anywhere; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 8px 0 9px; text-decoration: none; color: var(--soft); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tabs a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
.tabs .count { font: 400 11px var(--mono); color: var(--faint); margin-left: 4px; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tools__note { color: var(--faint); font-size: 13px; margin-left: auto; }
.state { padding: 44px 0; text-align: center; color: var(--soft); }
.state--drop { border: 1px dashed var(--faint); border-radius: 8px; padding: 56px 20px; }
.state--drop strong { display: block; font: 400 26px/1.2 var(--serif); color: var(--ink); margin-bottom: 6px; }

/* ---------- the contact sheet ---------- */
.sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.sheet__head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; margin: 14px 0 0; font: 600 15px/1.3 var(--sans); overflow-wrap: anywhere; }
.sheet__head:first-child { margin-top: 0; }
.frame { position: relative; margin: 0; background: var(--frame); border-radius: 3px; padding: 7px 7px 0; min-width: 0; content-visibility: auto; contain-intrinsic-size: auto 150px; --p: 1; }
.frame__pic { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; padding: 0; border: 0; background: #1d1d1d; cursor: zoom-in; overflow: hidden; }
.frame__pic--file { cursor: pointer; }
/* Contain, not cover: this is the frame as shot, and a contact sheet never crops. */
.frame__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.frame__ext { position: absolute; inset: 0; display: grid; place-items: center; font: 500 13px var(--mono); letter-spacing: .1em; color: var(--edge); }
.frame__play { position: absolute; left: 7px; bottom: 7px; width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #f1f1ee; filter: drop-shadow(0 0 2px #000); }
.frame__cap { display: flex; justify-content: space-between; gap: 8px; padding: 5px 1px 6px; color: var(--edge); font: 400 10px/1.4 var(--mono); }
.frame__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.frame__size { flex: none; }
.frame__acts { position: absolute; top: 11px; right: 11px; display: flex; gap: 4px; opacity: 0; transition: opacity .12s; }
.frame:hover .frame__acts, .frame:focus-within .frame__acts { opacity: 1; }
.frame__act { min-height: 26px; padding: 0 8px; border: 0; border-radius: 4px; background: rgba(0, 0, 0, .78); color: #f1f1ee; font-size: 12px; cursor: pointer; }
.frame__act:hover { background: #000; }
.frame__flag { position: absolute; left: 11px; top: 11px; padding: 1px 6px; border-radius: 3px; background: rgba(0, 0, 0, .78); color: #f1f1ee; font-size: 11.5px; }
/* The china marker. */
.frame__ring { position: absolute; inset: 3px 3px 22px; width: calc(100% - 6px); height: calc(100% - 25px); pointer-events: none; overflow: visible; }
.frame__ring path { fill: none; stroke: #ff5a48; stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.frame__r { position: absolute; right: 11px; bottom: 28px; font: 500 11px var(--mono); color: #ff5a48; text-shadow: 0 0 3px #000; }
/* A frame being uploaded develops: dim and colourless at first, itself at the end. */
.frame--up .frame__pic img { filter: grayscale(calc(1 - var(--p))) brightness(calc(.45 + .55 * var(--p))); transition: filter .4s linear; }
.frame--up::after { content: ''; position: absolute; left: 7px; right: 7px; bottom: 0; height: 2px; background: #f1f1ee; transform-origin: left; transform: scaleX(var(--p)); }
.frame--failed::after { background: #ff5a48; transform: none; }
.frame--failed .frame__size { color: #ff8a7b; }
@media (hover: none) { .frame__acts { opacity: 1; } }

/* ---------- picks ---------- */
.picks { display: grid; gap: 14px; }
.picks__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.picks__bar .seg { flex: 0 0 auto; }
.picks__sum { font-size: 14.5px; }
.picks__sum strong { color: var(--mark); font-weight: 600; }
.names { font: 400 11.5px/1.7 var(--mono); max-height: 180px; overflow: auto; padding: 10px 12px; background: var(--sunk); border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- settings ---------- */
.set { display: grid; gap: 0; max-width: 720px; }
.set__row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 6px 22px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.set__label { font-weight: 500; }
.set__hint { margin-top: 5px; color: var(--faint); font-size: 13px; }
.set__acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.set__ctl { min-width: 0; }
.choice { display: flex; gap: 10px; padding: 7px 0; cursor: pointer; align-items: flex-start; }
.choice input { margin: 4px 0 0; accent-color: currentColor; }
.choice small { display: block; color: var(--faint); font-size: 13px; }

/* ---------- dialogs ---------- */
dialog { color: var(--ink); background: var(--rail); border: 1px solid var(--line); border-radius: 10px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
dialog::backdrop { background: rgba(0, 0, 0, .55); }
.dlg { display: grid; gap: 14px; padding: 20px; }
.dlg h2 { font: 400 27px/1.15 var(--serif); }
.dlg__sub { color: var(--soft); }
.dlg__acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.field { display: grid; gap: 5px; }
.field > span, .field > label { font-weight: 500; font-size: 14px; }
.field small { color: var(--faint); font-size: 13px; }
.kinds { display: grid; gap: 6px; }
.kind { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.kind:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.kind input { margin: 4px 0 0; accent-color: currentColor; }
.kind strong { font-weight: 600; }
.kind small { grid-column: 2; color: var(--soft); font-size: 13.5px; }
.dropped { padding: 9px 12px; background: var(--sunk); border-radius: 6px; font-size: 14px; }
.dropped__warn { color: var(--mark); display: block; margin-top: 2px; font-size: 13.5px; }
details.more summary { cursor: pointer; font-weight: 500; font-size: 14px; }
details.more[open] summary { margin-bottom: 12px; }
details.more > div { display: grid; gap: 14px; }
.ava { display: flex; align-items: center; gap: 10px; }
.ava__slot { width: 52px; height: 52px; border-radius: 50%; border: 1px dashed var(--faint); background: none; overflow: hidden; padding: 0; cursor: pointer; font-size: 19px; flex: none; }
.ava__slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qr { display: grid; justify-items: center; }
.qr > div { background: #fff; padding: 10px; border-radius: 6px; line-height: 0; }
.urlline { display: flex; gap: 6px; }
.urlline input { font: 400 11.5px var(--mono); }
.pf { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pf li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.pf .bad, .pf .warn { color: var(--mark); }
.loupe { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; background: #0d0d0d; color: #f1f1ee; }
.loupe__wrap { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; }
.loupe__pic { min-height: 0; display: grid; place-items: center; padding: 12px; }
.loupe__pic img { max-width: 100%; max-height: 100%; object-fit: contain; min-height: 0; }
.loupe__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; font: 400 11px var(--mono); }
.loupe__bar span { margin-right: auto; overflow-wrap: anywhere; }
.loupe .btn { color: #f1f1ee; border-color: #55554f; font-family: var(--sans); }
.loupe .btn:hover { background: #2a2a2a; }

/* ---------- dragging files in ---------- */
.dropveil { position: fixed; inset: 0; z-index: 40; display: flex; gap: 12px; padding: 12px; background: rgba(20, 20, 20, .78); color: #f1f1ee; }
.dropveil__zone { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 16px; border: 1px dashed #bdbdb9; border-radius: 10px; text-align: center; }
.dropveil__zone strong { font: 400 clamp(26px, 3vw, 40px)/1.15 var(--serif); overflow-wrap: anywhere; }
.dropveil__zone.is-over { background: #f1f1ee; color: #141414; border-style: solid; }

/* ---------- the upload tray ---------- */
.tray { position: fixed; right: 16px; bottom: 16px; z-index: 30; width: min(440px, calc(100vw - 32px)); background: var(--paper); color: var(--paper-ink); border-radius: 8px; box-shadow: 0 10px 34px rgba(0, 0, 0, .4); overflow: hidden; }
.tray__head { padding: 11px 13px 9px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.tray__title { font-weight: 600; font-size: 14px; }
.tray__sub { font: 400 10.5px/1.6 var(--mono); opacity: .78; }
.tray__btns { display: flex; gap: 3px; }
.tray__btn { min-height: 28px; min-width: 28px; padding: 0 8px; border: 0; border-radius: 5px; background: none; color: inherit; cursor: pointer; font-size: 12.5px; font-weight: 500; }
.tray__btn:hover { background: rgba(127, 127, 127, .22); }
.tray__bar { height: 3px; background: rgba(127, 127, 127, .3); }
.tray__bar span { display: block; height: 100%; background: currentColor; transition: width .4s linear; }
.tray__list { max-height: 38vh; overflow-y: auto; padding: 4px 13px 10px; font-size: 13px; }
.tray__group { margin-top: 8px; font-weight: 600; }
.tray__file { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 2px 0; }
.tray__file span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 10.5px var(--mono); }
.tray__file small { font: 400 10.5px var(--mono); opacity: .78; }
.tray__err { font-size: 12px; color: #d3281b; grid-column: 1 / -1; }
.tray__more { opacity: .78; font-size: 12.5px; padding-top: 3px; }
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 50; display: grid; gap: 6px; width: min(460px, calc(100vw - 32px)); pointer-events: none; }
.toast { background: var(--paper); color: var(--paper-ink); padding: 9px 13px; border-radius: 6px; font-size: 14px; box-shadow: 0 6px 22px rgba(0, 0, 0, .4); }
.toast--bad { background: #c4261b; color: #fff; }

/* ---------- the host asked us to wait ---------- */
.netnote { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 45; width: min(560px, calc(100vw - 32px)); margin: 0;
           padding: 9px 14px; border-radius: 6px; background: var(--paper); color: var(--paper-ink); font-size: 14px; box-shadow: 0 6px 22px rgba(0, 0, 0, .4); }

/* ---------- phones ---------- */
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { border-right: 0; }
  body[data-view="project"] .rail { display: none; }
  body[data-view="list"] .main { display: none; }
  .proj { padding-top: 14px; }
  .proj__back { display: inline-block; }
  .send__row { grid-template-columns: minmax(0, 1fr); }
  .send__acts { justify-content: flex-start; }
  .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .set__row { grid-template-columns: minmax(0, 1fr); }
  .tools__note { margin-left: 0; width: 100%; }
  .tray { right: 16px; bottom: 16px; }
  .toasts { bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation-duration: 0s !important; }
}

/* ---------- the client's notes (v20) ---------- */
.marks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.marks .seg { flex: 0 1 auto; flex-wrap: wrap; }
.marks .seg .edge, .picks__bar .seg .edge { margin-left: 2px; opacity: .7; font-size: 11px; }
.frame__note {
  margin: -2px 1px 7px; padding: 5px 7px; border-left: 2px solid #e9b949; border-radius: 2px;
  background: rgba(233, 185, 73, .12); color: var(--ink); font-size: 12px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.loupe__note {
  margin: 0; padding: 8px 12px; border-left: 3px solid #e9b949; background: rgba(0, 0, 0, .55); color: #f1f1ee;
  font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 22vh; overflow: auto;
}
.loupe__note[hidden] { display: none; }
.zip-parts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.zip-parts .is-clicked { opacity: .55; }
.names--notes { display: grid; gap: 10px; max-height: 360px; white-space: normal; }
.names__note { display: grid; gap: 2px; }
.names__note strong { font-weight: 600; }
.names__note span { font-family: var(--sans); font-size: 13px; white-space: pre-wrap; }
.loupe__wrap { grid-template-rows: 1fr auto auto; }
.loupe__note { margin: 0 14px; }

/* Ticking files (2026-11-11): a square in the frame's corner, shown on hover,
   always while anything is ticked, always on touch. The bar above the sheet
   counts them and sticks to the bottom of the window once it has work. */
.frame__tick { position: absolute; left: 11px; top: 11px; z-index: 2; width: 24px; height: 24px; padding: 0; border: 1.5px solid #f1f1ee; border-radius: 4px; background: rgba(0, 0, 0, .55); cursor: pointer; opacity: 0; transition: opacity .12s; }
.frame__tick::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); opacity: 0; }
.frame:hover .frame__tick, .frame:focus-within .frame__tick, .is-picking .frame__tick { opacity: 1; }
.frame__tick[aria-pressed="true"] { background: var(--mark); border-color: var(--mark); }
.frame__tick[aria-pressed="true"]::after { opacity: 1; }
.frame.is-sel { box-shadow: 0 0 0 2px var(--mark); }
.frame.is-sel .frame__pic img { opacity: .82; }
.is-picking .frame__pic { cursor: pointer; }
.frame__flag { left: 42px; }
@media (hover: none) { .frame__tick { opacity: 1; } }
.selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; font-size: 12.5px; color: var(--faint); }
.selbar__acts { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.selbar__n { color: var(--ink); font-weight: 500; }
.selbar.is-on { position: sticky; bottom: 12px; z-index: 5; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--raise); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
@media (max-width: 560px) { .selbar__hint { display: none; } .selbar__acts { margin-left: 0; } }
