/* Above Yellow's palette (app/globals.css): achromatic grey on white, --mark
   only on the wordmark. */
:root {
  --ink: #0a0a0a;
  --ink-2: #404040;
  --ink-3: #737373;
  --surface: #fff;
  --tint: #f5f5f5;
  --hairline: rgba(10, 10, 10, .1);
  --hairline-soft: rgba(10, 10, 10, .06);
  --hairline-strong: rgba(10, 10, 10, .18);
  --mark: rgb(255, 153, 0);
  --gutter: clamp(16px, 3.4vw, 40px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--surface); color: var(--ink); font: 400 16px/1.5 Geist, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.shell { width: min(880px, 100% - 2 * var(--gutter)); margin: 0 auto; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.wordmark { font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.wordmark span::after { content: "."; color: var(--mark); }
.back { color: var(--ink-2); font-size: 15px; text-decoration: none; }
.back:hover { color: var(--ink); text-decoration: underline; }

.intro { padding: clamp(24px, 6vw, 56px) 0 28px; }
h1 { font-size: clamp(34px, 6.2vw, 56px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; }
.lede { color: var(--ink-2); font-size: 17px; margin-top: 14px; max-width: 40rem; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.facts li { font-size: 13px; font-weight: 500; color: var(--ink-2); background: var(--tint); border-radius: 999px; padding: 5px 12px; }

.card { border: 1px solid var(--hairline); border-radius: 20px; padding: clamp(18px, 3vw, 28px); margin-bottom: 16px; scroll-margin-top: 12px; }
h2 { font-size: 19px; line-height: 1.25; letter-spacing: -.015em; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h2 .n { width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 7px; background: var(--ink); color: #fff; font-size: 13px; flex: none; }
h2 .now { font-weight: 500; color: var(--ink-3); font-size: 15px; }
.hint { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.choose { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.choose > div:first-child { flex: 1 1 320px; }
.choose-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.notice { margin-top: 16px; padding: 12px 14px; background: var(--tint); border-radius: 12px; font-size: 14px; color: var(--ink-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--hairline-strong); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: #171717; }
.btn:disabled { opacity: .45; cursor: default; }
.link-btn { background: none; border: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; padding: 6px 0; }
.link-btn:hover { color: var(--ink); }

.progress { height: 4px; background: var(--tint); border-radius: 4px; margin-top: 12px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .2s; }

.options { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--ink); flex: none; cursor: pointer; }

.plan { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; margin-top: 18px; align-items: start; }
.group { background: var(--tint); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.group-head { display: grid; grid-template-columns: auto auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; cursor: pointer; }
.group-head input { grid-row: 1 / 3; }
.group-head .icon { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 9px; background: var(--surface); display: grid; place-items: center; font-size: 15px; box-shadow: inset 0 0 0 1px var(--hairline-soft); }
.gname { font-weight: 600; font-size: 15px; }
.gmeta { font-size: 13px; color: var(--ink-3); font-family: 'Geist Mono', ui-monospace, monospace; }
details { margin-top: 8px; }
summary { font-size: 13px; color: var(--ink-2); cursor: pointer; padding: 4px 0; }
.files { list-style: none; margin-top: 6px; max-height: 240px; overflow: auto; border-top: 1px solid var(--hairline); }
.files li { padding: 6px 0; border-bottom: 1px solid var(--hairline-soft); font-size: 13px; }
.files label { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; cursor: pointer; }
.fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsize, .fnote { color: var(--ink-3); font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; }
.fnote { display: block; padding-left: 25px; font-family: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .more { color: var(--ink-3); }

.go { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.summary { font-weight: 600; }

/* Organize: the "bench" (2 Nov 2026). Our own look, from the design-system tokens in
   app/globals.css: the --dark panel with --yellow as the one accent. A waiting list empties
   onto one shelf per folder; a percentage and a bar show progress. */
.sort-card { padding: 0; overflow: visible; border: 0; }
@media (min-width: 1000px) { .sort-card { width: min(1160px, 100vw - 2 * var(--gutter)); margin-left: calc(50% - min(580px, 50vw - var(--gutter))); } }
.sort-card .done { padding: 18px clamp(18px, 3vw, 28px) 4px; }
.bench { --dk: #0a0a0a; --dk-2: #171717; --dk-3: #262626; --yl: rgb(255, 212, 0); --yl-ink: rgb(58, 44, 0); --on-dk: rgba(255, 255, 255, .7); --on-dk-3: rgba(255, 255, 255, .5); background: var(--dk); color: #fff; border-radius: 24px; padding: clamp(18px, 3vw, 30px); overflow: clip; }
.bn-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.bn-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--on-dk-3); }
.bn-label .n { width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 6px; background: var(--yl); color: var(--yl-ink); font-size: 12px; font-weight: 700; }
.bn-title { display: block; margin-top: 8px; font-size: clamp(24px, 3.6vw, 36px); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; color: var(--on-dk); }
.bn-folder { color: #fff; font-weight: 700; }
.bn-pct { font-family: 'Geist Mono', ui-monospace, monospace; font-size: clamp(36px, 6vw, 64px); line-height: .9; font-weight: 500; color: var(--yl); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.bn-bar { height: 6px; border-radius: 6px; background: var(--dk-3); margin-top: 16px; overflow: hidden; }
.bn-bar span { display: block; height: 100%; width: 0; background: var(--yl); border-radius: 6px; transition: width .25s ease-out; }
.bn-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bn-stats li { font-size: 13px; color: var(--on-dk); background: var(--dk-2); border-radius: 999px; padding: 5px 12px; box-shadow: inset 0 0 0 1px var(--dk-3); }
.bn-stats b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 2px; }
.bn-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 20px; }
.bn-queue-wrap, .bn-shelves-wrap { min-width: 0; }
@media (min-width: 760px) {
  .bn-body { grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
  .bn-queue-wrap { position: sticky; top: 16px; }
  .bn-body.finished { grid-template-columns: minmax(0, 1fr); }
}
.bn-sub { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dk-3); margin-bottom: 10px; }
.bn-sub span { letter-spacing: 0; }

.bn-queue-wrap { transition: opacity .5s; }
.bn-queue-wrap.gone { display: none; }
.bn-queue { list-style: none; display: grid; gap: 6px; }
.bn-q { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--dk-2); border-radius: 10px; padding: 6px 10px 6px 6px; box-shadow: inset 0 0 0 1px var(--dk-3); animation: bn-in .25s ease-out; transition: opacity .2s, transform .2s; }
.bn-q:first-child { box-shadow: inset 0 0 0 1px var(--yl); }
.bn-q .tile { width: 30px; height: 30px; border-radius: 6px; }
.bn-q-n { font-size: 13px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-q-s { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; color: var(--on-dk-3); }
@keyframes bn-in { from { opacity: 0; transform: translateY(8px); } }

.bn-shelves { display: grid; gap: 6px; }
.bn-shelf { display: grid; grid-template-columns: 132px minmax(0, 1fr) 34px; gap: 12px; align-items: center; min-height: 42px; padding: 6px 12px; border-radius: 10px; background: var(--dk-2); }
.bn-shelf-n { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-shelf b { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13px; font-weight: 500; color: var(--yl); text-align: right; font-variant-numeric: tabular-nums; }
.bn-strip { display: flex; gap: 4px; overflow: hidden; height: 26px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px); mask-image: linear-gradient(90deg, transparent 0, #000 16px); justify-content: flex-start; }
.bn-strip .tile { flex: none; width: 26px; height: 26px; border-radius: 5px; animation: bn-land .3s ease-out; }
.bn-strip .tile.pending { visibility: hidden; }
@keyframes bn-land { from { transform: scale(1.3); } }

.tile { display: block; background: var(--dk-3, #262626) center / cover no-repeat; position: relative; }
.tile.video { background: #262626; }
.tile.video::after { content: ""; position: absolute; left: 50%; top: 50%; border: 4px solid transparent; border-left: 6px solid rgb(255, 212, 0); transform: translate(-25%, -50%); }
.tile.doc { background: #262626; }
.tile.doc::after { content: attr(data-ext); position: absolute; inset: 0; display: grid; place-items: center; font: 600 6.5px/1 'Geist Mono', ui-monospace, monospace; color: rgba(255, 255, 255, .7); }
.tile.flying { position: fixed; left: 0; top: 0; z-index: 60; border-radius: 6px; pointer-events: none; box-shadow: 0 8px 20px rgba(0, 0, 0, .45), 0 0 0 2px rgb(255, 212, 0); }

@media (max-width: 759px) {
  .bn-queue { grid-auto-flow: column; grid-auto-columns: 46px; overflow: hidden; }
  .bn-q { grid-template-columns: 1fr; padding: 4px; justify-items: center; }
  .bn-q .tile { width: 36px; height: 36px; }
  .bn-q-n, .bn-q-s { display: none; }
  .bn-shelf { grid-template-columns: 96px minmax(0, 1fr) 28px; gap: 8px; padding: 6px 10px; }
  .bn-top { align-items: flex-start; }
}

.done { margin-top: 18px; }
.done p:first-child { font-weight: 600; font-size: 17px; }
.done-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.errors { margin-top: 12px; font-size: 13px; color: var(--ink-2); padding-left: 18px; }

.how { padding: 40px 0 8px; }
.how h2 { font-size: 24px; letter-spacing: -.02em; }
.how ol { margin-top: 16px; padding-left: 20px; display: grid; gap: 12px; color: var(--ink-2); max-width: 44rem; }
.how b { color: var(--ink); font-weight: 600; }
.foot { padding: 32px 0 48px; font-size: 14px; color: var(--ink-3); }
.foot a { color: var(--ink-2); }
