/* Konvey (convey.koonsystems.com): the tool screen on top of css/koonsystems.css (SPEC §5).
   Only the variables of the site; no colours, fonts or shadows of its own.
   Designed at 390 px first; two columns from 900 px. */

/* ── frame ── */
.app{width:min(calc(100% - 32px),1080px);margin:0 auto;padding:28px 0 40px}
.icon{display:block;flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* ── name and privacy line ── */
.app-top{display:flex;flex-direction:column;gap:8px;margin-bottom:28px}
.app-name{font:400 26px/1.1 var(--serif);letter-spacing:-.01em;color:var(--text)}
.privacy-line{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:14px;line-height:1.4}
.privacy-line .icon{color:var(--gold)}
.privacy-line a{color:inherit;text-decoration:none;border-bottom:1px solid var(--line);transition:color .15s,border-color .15s}
.privacy-line a:hover{color:var(--text);border-color:var(--gold)}
.privacy-line{flex-wrap:wrap}
.offline-badge{padding:3px 8px;border:1px solid var(--line);border-radius:6px;color:var(--muted);font:600 10px/1.2 var(--ui);letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.offline-badge[hidden],.install-app[hidden]{display:none}
.install-app{align-self:flex-start}

/* ── presets ── */
.presets{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px;padding:0;border:0;min-width:0}
.presets .chip{position:relative;display:inline-flex}
.presets .chip input{position:absolute;inset:0;margin:0;opacity:0;cursor:pointer}
.presets .chip span{display:inline-flex;align-items:center;height:36px;padding:0 16px;border:1px solid var(--line);border-radius:18px;color:var(--muted);font:600 11px/1 var(--ui);letter-spacing:.08em;text-transform:uppercase;transition:color .15s,border-color .15s,background-color .15s}
.presets .chip:hover span{color:var(--text);border-color:var(--gold)}
.presets .chip input:checked+span{color:var(--text);border-color:var(--text);background:var(--panel)}
.presets .chip input:focus-visible+span{outline:2px solid var(--gold);outline-offset:2px}

/* ── dropzone ── */
.dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;width:100%;min-height:240px;padding:32px 20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg);color:var(--text);font:inherit;text-align:center;cursor:pointer;appearance:none;transition:border-color .15s,background-color .15s}
.dropzone:hover,.dropzone.over{border-color:var(--gold)}
.dropzone.over{background:var(--panel)}
.drop-title{font:400 22px/1.2 var(--serif);letter-spacing:-.01em}
.drop-choose{pointer-events:none}
.dropzone:hover .drop-choose{transform:translateY(-1px)}
.drop-or{color:var(--muted);font-size:14px}

/* ── the three lines ── */
.lines{list-style:none;margin:24px 0 0;padding:0;display:grid;gap:12px}
.lines li{display:flex;gap:12px;align-items:flex-start;color:var(--muted);font-size:14px;line-height:1.5}
.lines .icon{color:var(--gold);margin-top:1px}
.lines b{color:var(--text);font-weight:600}
.lines li[hidden]{display:none}

/* "metadata" with its tooltip (SPEC §5.3): a role=tooltip sibling, shown on hover,
   keyboard focus and tap (.open, app.js), read by screen readers through aria-describedby.
   It is positioned against the paragraph, not the word, so it never leaves the viewport. */
.lines li,.honesty{position:relative}
.term-wrap{display:inline}
.term{text-decoration:underline dotted;text-underline-offset:3px;cursor:help;outline-offset:2px}
.tip{position:absolute;left:0;bottom:calc(100% + 6px);z-index:5;width:max-content;max-width:100%;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--text);font-size:13px;line-height:1.4;white-space:normal;text-align:left;opacity:0;visibility:hidden;transition:opacity .15s,visibility .15s}
.term:hover+.tip,.term:focus-visible+.tip,.term-wrap.open .tip,.tip:hover{opacity:1;visibility:visible}

/* ── stage: with files the explanation goes, the dropzone becomes an "Add more" bar under the list ── */
.stage{display:flex;flex-direction:column}
.stage.has-files .lines{display:none}
.list-head{order:1;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;min-height:36px;margin:4px 0 2px}
.list-head .button{flex:none;margin-left:auto;white-space:nowrap}
/* "Download all (ZIP)" and "Share all" stay together at the right, also when they wrap */
.list-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;min-width:0;margin-left:auto}
.list-actions:not(:has(>:not([hidden]))){display:none}
.list-head .list-actions .button{margin-left:0}
.combo{order:2}
.files{order:3}
.stage.has-files .dropzone{order:4;min-height:44px;flex-direction:row;gap:8px;margin-top:8px;padding:10px 16px;background:transparent}
.stage.has-files .drop-title,.stage.has-files .drop-choose,.stage.has-files .drop-or{display:none}
.drop-add{display:none;align-items:center;gap:8px;color:var(--muted);font:600 11px/1 var(--ui);letter-spacing:.08em;text-transform:uppercase}
.stage.has-files .drop-add{display:inline-flex}
.dropzone:hover .drop-add,.dropzone.over .drop-add{color:var(--text)}
.list-honesty{order:5;margin:20px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
/* the one deliberate click (SPEC §7.6): a quiet question under the results and one small button */

/* ── file list (SPEC §5.2.4, 6, 7) ── */
.files{list-style:none;margin:12px 0 0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
/* min-width:0 on the row and the facts: a long chip or report must shrink and clip, never widen the row */
.file{min-width:0;display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg)}
.thumb{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:8px;background:var(--panel);color:var(--muted);overflow:hidden}
.thumb img{width:100%;height:100%;object-fit:cover}
.file-main{min-width:0;display:grid;gap:4px;justify-items:start}
.name-wrap{max-width:100%;min-width:0;display:flex;align-items:center;gap:10px}
.name{appearance:none;max-width:100%;margin:0;padding:0 0 1px;border:0;border-bottom:1px dashed transparent;background:none;color:var(--text);font:inherit;line-height:1.3;text-align:left;cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:border-color .15s}
.name:hover{border-bottom-color:var(--muted)}
.name-edit{width:100%;min-width:0;margin:-3px 0;padding:2px 6px;border:1px solid var(--gold);border-radius:6px;background:var(--bg);color:var(--text);font:inherit;line-height:1.3}
.facts{min-width:0;max-width:100%;display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;color:var(--muted);font-size:13px;line-height:1.4}
.badge{padding:3px 6px;border:1px solid var(--line);border-radius:6px;font:600 10px/1 var(--ui);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.chip-slot{display:flex;min-width:0;max-width:100%}
.chip-slot:empty{display:none}
/* the metadata chip (SPEC §5.2.4): neutral in the line colours; personal data in gold, the one
   accent of the site (no separate warning colour, decision 09-11-2026); a button when it can open the values */
.file .chip{appearance:none;display:inline-flex;align-items:center;max-width:100%;margin:0;padding:3px 8px;border:1px solid var(--line);border-radius:6px;background:none;color:var(--muted);font:inherit;font-size:12px;line-height:1.3;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* a neutral chip may be a whole sentence ("Old Office format: save it as …"): it wraps instead of being cut off */
.file .chip[data-personal=false]{white-space:normal}
.file .chip[data-personal=true]{border-color:var(--gold);color:var(--gold);cursor:pointer;transition:background-color .15s}
.file .chip[data-personal=true]:hover,.file .chip[aria-expanded=true]{background:var(--panel)}
.file .chip:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.found,.report p{margin:0;font-size:13px;line-height:1.45;color:var(--muted);overflow-wrap:anywhere}
.found b,.report b{color:var(--text);font-weight:600}
/* a file name that gives something away (1b): the line with "Rename" */
.name-warn{margin:0;font-size:13px;line-height:1.45;color:var(--gold);overflow-wrap:anywhere}
.name-warn .more{margin-left:2px}
.report{display:grid;gap:2px;justify-items:start}
.report:empty{display:none}
.removed.clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.more{appearance:none;margin:0;padding:0;border:0;background:none;color:var(--text);font:inherit;font-size:13px;line-height:1.45;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.more:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.state{display:inline-flex;align-items:center;gap:6px}
.state:empty{display:none}
.state .icon{width:16px;height:16px}
.file[data-state=done] .state{color:var(--gold)}
.spin{animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.extra{font-size:13px;line-height:1.4;color:var(--text)}
.extra:empty{display:none}
.file[data-state=error] .extra{color:var(--text)}
.file[data-state=error] .badge{border-color:var(--gold);color:var(--gold)}
.button.small{min-height:34px;padding:0 14px;font-size:11px}
/* Download and, where the browser can share files, Share */
.file .actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.remove{width:36px;height:36px;align-self:start}
.file .remove:hover{border-color:var(--gold);color:var(--gold)}
.app.busy .remove,.app.busy .name{pointer-events:none;opacity:.5}
.pages:empty{display:none}
.live{margin:0;color:var(--muted);font-size:14px;min-width:0}

/* ── order (SPEC §3.1): a handle column appears when the list order is the page order
   (one PDF, merge); the handle shows the position and takes drag and the arrow keys ── */
.grip{display:none}
.files.orderable .file{grid-template-columns:24px 64px minmax(0,1fr) auto;gap:10px}
.files.orderable .thumb{grid-column:2}
.files.orderable .grip:not([hidden]){appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:24px;height:64px;margin:0;padding:0;border:0;border-radius:6px;background:none;color:var(--muted);font:inherit;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.grip .pos{font:600 11px/1 var(--ui);color:var(--text);font-variant-numeric:tabular-nums}
.grip .icon{width:16px;height:16px;stroke-width:2.4}
.grip:hover{color:var(--text);background:var(--panel)}
.grip:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.grip:disabled{cursor:default;opacity:.5}
.file.dragging{border-color:var(--gold);background:var(--panel)}
.file.dragging .grip{cursor:grabbing}

/* ── one result from several rows (images → one PDF, merge): the card above the list ── */
.combo{min-width:0;display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:14px;align-items:center;margin:12px 0 0;padding:12px;border:1px solid var(--gold);border-radius:var(--radius);background:var(--bg)}
.combo+.files{margin-top:8px}
.combo-name{margin:0;color:var(--text);line-height:1.3;overflow-wrap:anywhere}
.combo-actions{display:flex;flex-direction:column;gap:8px;align-self:center}

/* ── a row that gave several files (PDF → images, split): "3 files" and each name as a download ── */
.outputs-head{margin:0 0 2px;color:var(--text)}
.outputs{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.outputs>div{display:flex;align-items:center;gap:8px;min-width:0}
.file-dl{appearance:none;display:inline-flex;align-items:center;gap:6px;min-width:0;min-height:28px;margin:0;padding:0;border:0;background:none;color:var(--text);font:inherit;font-size:13px;text-align:left;cursor:pointer}
.file-dl .icon{width:16px;height:16px;color:var(--gold)}
.file-dl span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line)}
.file-dl:hover span{text-decoration-color:var(--gold)}
.file-dl:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:4px}
.file-size{flex:none;color:var(--muted);font-size:13px}
.panel-hint{margin:8px 0 0;text-align:center;color:var(--muted);font-size:13px}

/* ── panel: on a phone a fixed bar at the bottom with the button and an arrow (SPEC §5.2.5) ── */
.panel{position:fixed;left:0;right:0;bottom:0;z-index:15;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--hdr);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-top:1px solid var(--line)}
body.tool{padding-bottom:calc(72px + env(safe-area-inset-bottom))} /* room for the bar; the 404 page has none */
.panel-body{display:none}
.panel.open .panel-body{display:grid;gap:22px;max-height:min(60vh,440px);overflow:auto;padding:8px 0 20px;overscroll-behavior:contain}
.panel-actions{display:flex;align-items:center;gap:10px}
.panel-actions .button{flex:1}
.panel-toggle{width:44px;height:44px;flex:none}
.panel-toggle .icon{transition:transform .2s}
.panel.open .panel-toggle .icon{transform:rotate(180deg)}

.opt{display:grid;gap:6px}
.opt-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.opt-title{font:600 13px/1.3 var(--sans);letter-spacing:0;color:var(--text)}
.opt-hint{color:var(--muted);font-size:13px;line-height:1.5}
.opt-summary{margin:0;color:var(--text);font-size:14px;line-height:1.5}
/* "Details": a plain disclosure in the small label style; the chevron turns when open */
.opt-details{margin:2px 0 0}
.opt-details summary{display:inline-flex;align-items:center;gap:4px;list-style:none;padding:4px 0;color:var(--muted);font:600 11px/1 var(--ui);letter-spacing:.08em;text-transform:uppercase;cursor:pointer}
.opt-details summary::-webkit-details-marker{display:none}
.opt-details summary:hover{color:var(--text)}
.opt-details summary:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:4px}
.opt-details summary .icon{width:16px;height:16px;transform-origin:50% 50%;transition:transform .2s}
.opt-details[open] summary .icon{transform:rotate(180deg)}
.detail-list{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:8px;color:var(--muted);font-size:13px;line-height:1.5}
.detail-list b{color:var(--text);font-weight:600}
/* "Anonymize authors" (SPEC §4.3): a plain checkbox in the accent colour, shown with Office files */
.check-field{display:grid;gap:4px;margin-top:6px}
.check{display:flex;align-items:center;gap:10px;color:var(--text);font-size:14px;cursor:pointer}
.check input{flex:none;width:18px;height:18px;margin:0;accent-color:var(--gold);cursor:pointer}
.check input:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.check input:disabled{cursor:default;opacity:.5}
.check-field .opt-hint{margin:0 0 0 28px}

/* ── Convert (SPEC §5.2.5): one quick choice as a chip, pressed when it is what the switch
   and the list say; below it the labelled list of targets that fit the files ── */
.quick{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}
.quick-choice{appearance:none;display:inline-flex;align-items:center;height:32px;margin:0;padding:0 12px;border:1px solid var(--line);border-radius:16px;background:none;color:var(--muted);font:600 11px/1 var(--ui);letter-spacing:.08em;text-transform:uppercase;cursor:pointer;transition:color .15s,border-color .15s,background-color .15s}
.quick-choice:hover{color:var(--text);border-color:var(--gold)}
.quick-choice[aria-pressed=true]{color:var(--text);border-color:var(--text);background:var(--card)}
.quick-choice:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.quick-choice:disabled{opacity:.5;cursor:default}
.convert-fields{display:grid;gap:8px;margin-top:4px;container-type:inline-size}
.convert-fields .opt-hint{margin:0}
.field{display:flex;align-items:center;gap:12px;margin-top:4px}
.convert-fields .field{margin-top:0}
.field-label{flex:none;color:var(--muted);font-size:13px}
/* the page range for Split, in the style of the list */
.text{flex:1;min-width:0;min-height:40px;margin:0;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text);font:400 14px/1.4 var(--sans);transition:border-color .15s}
.text::placeholder{color:var(--muted);opacity:1}
.text:hover{border-color:var(--gold)}
.text:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.text:disabled{opacity:.5}
.select-wrap{position:relative;flex:1;min-width:0}
.select{appearance:none;-webkit-appearance:none;width:100%;min-height:40px;margin:0;padding:0 38px 0 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text);font:400 14px/1.4 var(--sans);cursor:pointer;transition:border-color .15s}
.select:hover{border-color:var(--gold)}
.select:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.select:disabled{opacity:.5;cursor:default}
.select-wrap .icon{position:absolute;right:10px;top:50%;width:16px;height:16px;transform:translateY(-50%);pointer-events:none;color:var(--muted)}
/* the planned change in the row ("PNG → JPG"), and after the run the old → new type */
.badge .to{color:var(--text)}

/* ── Shrink (SPEC §3.1, §5.2.5): the quality slider with its value, and the four size
   presets as one segmented radio group (two by two when the panel is narrow) ── */
.shrink-fields{display:grid;gap:8px;margin-top:4px;container-type:inline-size}
.range-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.range-value{color:var(--text);font-size:14px;font-variant-numeric:tabular-nums}
.range{appearance:none;-webkit-appearance:none;width:100%;height:24px;margin:0;padding:0;border:0;background:none;cursor:pointer}
.range::-webkit-slider-runnable-track{height:2px;border-radius:1px;background:var(--line)}
.range::-moz-range-track{height:2px;border-radius:1px;background:var(--line)}
.range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:20px;height:20px;margin-top:-9px;border:1px solid var(--gold);border-radius:50%;background:var(--gold)}
.range::-moz-range-thumb{width:20px;height:20px;border:1px solid var(--gold);border-radius:50%;background:var(--gold)}
.range:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:4px}
.range:disabled{opacity:.5;cursor:default}
.sizes{margin:6px 0 0;padding:0;border:0;min-width:0}
.sizes legend{float:left;width:100%;margin:0 0 8px;padding:0}
.segments{clear:both;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;padding:2px;border:1px solid var(--line);border-radius:8px}
.segment{position:relative;display:flex;min-width:0}
.segment:focus-within{z-index:1}
.segment input{position:absolute;inset:0;margin:0;opacity:0;cursor:pointer}
.segment input:disabled{cursor:default}
.segment span{flex:1;min-width:0;padding:0 3px;border:1px solid transparent;border-radius:6px;color:var(--muted);font-size:12px;line-height:32px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .15s,border-color .15s,background-color .15s}
.segment:hover span{color:var(--text)}
.segment input:checked+span{color:var(--text);border-color:var(--text);background:var(--card)}
.segment input:focus-visible+span{outline:2px solid var(--gold);outline-offset:2px}
.segment input:disabled+span{opacity:.5}
.segments.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.segments.two{grid-template-columns:repeat(2,minmax(0,1fr))}
@container (max-width:250px){.segments:not(.three):not(.two){grid-template-columns:repeat(2,minmax(0,1fr))}}
/* the saving behind the size ("1.4 MB → 380 kB (−73%)") and the inline suggestion after "Not smaller" */
.size .saving{color:var(--text)}
.report .more.inline{margin-left:4px}

/* switch: a checkbox drawn with the variables, keyboard and screen reader as a native control */
.switch{appearance:none;-webkit-appearance:none;flex:none;position:relative;width:40px;height:22px;margin:0;border-radius:11px;border:1px solid var(--muted);background:var(--muted);cursor:pointer;transition:background-color .15s,border-color .15s}
.switch:disabled{cursor:default;opacity:.5}
.switch::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--bg);transition:transform .15s}
.switch:checked{background:var(--gold);border-color:var(--gold)}
.switch:checked::after{transform:translateX(18px);background:var(--btn-text)}
.switch:focus-visible{outline:2px solid var(--gold);outline-offset:2px}

/* the primary button: the one accent of the screen */
.button.primary{width:100%;min-height:44px}
.button:disabled,.button[aria-disabled=true]{opacity:.45;cursor:default}
.button:disabled:hover,.button[aria-disabled=true]:hover{transform:none}

/* ── 404 (SPEC §7.1): the same frame, one sentence and the way back ── */
.notfound{display:flex;flex-direction:column;align-items:flex-start;gap:16px;padding:48px 0 24px}
.notfound .app-name{margin:0}
.notfound p{margin:0;color:var(--muted);font-size:16px;line-height:1.6}
.notfound .button{margin:8px 0 0}

/* ── 900 px and wider: list left (2/3), panel right (1/3, sticky) ── */
@media(min-width:900px){
  .app{width:min(calc(100% - 48px),1080px);padding:48px 0 72px}
  body.tool{padding-bottom:0}
  .app-top{flex-direction:row;align-items:baseline;justify-content:space-between;gap:24px;margin-bottom:36px}
  .app-name{font-size:30px}
  .work{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:48px;align-items:start}
  .presets{margin-bottom:24px}
  .dropzone{min-height:320px}
  .stage.has-files .dropzone{min-height:48px}
  .drop-title{font-size:26px}
  .files{gap:10px}
  .file{padding:14px;gap:16px}
  .list-honesty{display:none} /* the panel next to the list carries the same line here */
  .combo-actions{flex-direction:row}
  .lines{margin-top:28px;gap:14px}
  .panel{position:sticky;top:96px;padding:28px;border:0;border-radius:var(--radius);background:var(--panel);backdrop-filter:none;-webkit-backdrop-filter:none}
  .panel-body{display:grid;gap:26px;padding-bottom:28px}
  .panel.open .panel-body{max-height:none;overflow:visible;padding:0 0 28px}
  .panel-toggle{display:none}
  .panel-actions{display:block}
}

@media(prefers-reduced-motion:reduce){
  .dropzone,.presets .chip span,.file .chip,.switch,.switch::after,.panel-toggle .icon,.opt-details summary .icon,.tip,.privacy-line a,.name,.quick-choice,.select,.segment span,.text{transition:none}
  .dropzone:hover .drop-choose{transform:none}
  .spin{animation:none}
}

/* SEO entry pages (SPEC §6.2): the page title in place of the small name, the explanation under the tool */
.page-title{margin:0;font-size:26px;line-height:1.2}
.explain{max-width:66ch;margin:72px 0 0;padding-top:40px;border-top:1px solid var(--line);color:var(--text)}
.explain h2{font:400 22px/1.25 var(--serif);margin:36px 0 10px;color:var(--text)}
.explain h2:first-child{margin-top:0}
.explain p{margin:0 0 14px;line-height:1.65;color:var(--muted)}
.explain .honesty{margin-top:28px;color:var(--text)}
.explain .more{display:flex;flex-wrap:wrap;gap:8px 18px;margin:28px 0 0;padding:0;list-style:none;font-size:14px}
.explain .more a{color:var(--text)}
@media (min-width:900px){.page-title{font-size:32px}.explain h2{font-size:24px}}

/* Clean, Convert and Shrink as on/off toggles (combinable), in step with the switches in the panel */
.presets .chip span::before{content:"";width:0;height:10px;margin-right:0;border:solid currentColor;border-width:0 0 2px 2px;transform:rotate(-45deg) translateY(-2px);opacity:0;transition:width .15s,margin .15s,opacity .15s}
.presets .chip input:checked+span::before{width:10px;height:5px;margin-right:8px;opacity:1}
/* Choosing files: a check box per row, "All" in the list head */
.file .pick{flex:none;width:18px;height:18px;margin:0;accent-color:var(--gold);cursor:pointer}
.file[data-picked=false] .file-main,.file[data-picked=false] .thumb{opacity:.55}
.list-pick{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);cursor:pointer}
.list-pick input{width:16px;height:16px;margin:0;accent-color:var(--gold)}
@media (prefers-reduced-motion:reduce){.presets .chip span::before{transition:none}}

/* ── Send (phase 2, SPEC §5.2.8, §11): one quiet block under the results, shown only when
   /api/koonvey/status says sending is on. One part at a time: sign in, options, progress, link ── */
.send{order:7;display:grid;gap:16px;min-width:0;margin:28px 0 0;padding:20px 16px;border-radius:var(--radius);background:var(--panel)}
.send[hidden],.send-part[hidden],.send-qr[hidden]{display:none}
.send-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 16px}
.send-title{font:400 22px/1.2 var(--serif);letter-spacing:-.01em;color:var(--text)}
.send-files{color:var(--muted);font-size:13px;line-height:1.4;font-variant-numeric:tabular-nums}
.send-promise{display:flex;align-items:flex-start;gap:8px;margin-top:-8px;color:var(--muted);font-size:14px;line-height:1.45}
.send-promise .icon{color:var(--gold);margin-top:0}
.send-part{display:grid;gap:14px;min-width:0}
.send-note{color:var(--muted);font-size:14px;line-height:1.5}
.send-note.strong{color:var(--text)}
.send-note:focus{outline:none}
.send-hint{color:var(--muted);font-size:13px;line-height:1.5}
/* the plan (SPEC P18): one line, on paid with a thin bar of what is in use */
.send-plan{display:grid;gap:8px;min-width:0}
.send-plan .send-note{font-variant-numeric:tabular-nums}
.send-plan a,.send-error a,.send-warning a{color:var(--text);text-underline-offset:3px;white-space:nowrap}
.send-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.send-field{display:grid;gap:6px;min-width:0;margin:0}
.send-field .field-label{justify-self:start}
.send-row{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.send-row .text{flex:1 1 200px;min-height:44px}
.send-row .button{flex:1 1 auto;white-space:nowrap}
.send .text{font-size:16px} /* 16 px: iOS does not zoom into the field */
.send .text[readonly]{color:var(--muted);text-overflow:ellipsis}
.send-area{display:block;width:100%;min-height:84px;padding:10px 12px;line-height:1.5;resize:vertical}
.send-count{color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}
.send .sizes{margin:0}
.send .sizes legend{margin-bottom:6px}
.send .segment span{line-height:38px;font-size:13px}
.send-downloads{flex:none;width:100%}
.send .select{min-height:44px;font-size:16px}
/* a warning is not an error: the one accent, as the metadata chip */
.send-warning{padding:10px 12px;border:1px solid var(--gold);border-radius:8px;color:var(--text);font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.send-error{color:var(--text);font-size:14px;line-height:1.5;padding-left:12px;border-left:2px solid var(--gold)}
.send-warning[hidden],.send-error[hidden],.send-note[hidden]{display:none}
.send-actions{display:grid;gap:12px}
.send-actions .button{width:100%}
.send-account{display:flex;flex-wrap:wrap;gap:2px 10px;min-width:0;color:var(--muted);font-size:13px;line-height:1.45}
.send-account span{min-width:0;overflow-wrap:anywhere}
.send-account span:empty{display:none}
.send-state{color:var(--text);font-size:14px;line-height:1.4;font-variant-numeric:tabular-nums}
.send-progress{appearance:none;-webkit-appearance:none;display:block;width:100%;height:4px;border:0;border-radius:2px;background:var(--line);color:var(--gold);overflow:hidden}
.send-progress::-webkit-progress-bar{background:var(--line);border-radius:2px}
.send-progress::-webkit-progress-value{background:var(--gold);border-radius:2px;transition:width .2s}
.send-progress::-moz-progress-bar{background:var(--gold);border-radius:2px}
.send-result{display:grid;gap:20px;min-width:0}
/* the QR code is black on white in both themes (a scanner needs that); the frame colour is the site's */
.send-qr{width:168px;height:168px;justify-self:center;border:1px solid var(--line);border-radius:8px;background:var(--frame)}
#send-again{justify-self:start}
@media(min-width:560px){
  .send{padding:24px}
  .send-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;align-items:start}
  .send-row .button{flex:none}
  .send-actions{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px 20px}
  .send-actions .button{width:auto;min-width:180px}
  .send-account{justify-content:flex-end;text-align:right}
  .send-result{grid-template-columns:minmax(0,1fr) auto;align-items:start}
  .send-qr{justify-self:end}
}
@media(prefers-reduced-motion:reduce){.send-progress::-webkit-progress-value{transition:none}}

/* ── Sent (sent.js): this account's transfers under the Send block, one card each (cards at every
   width). No panel of its own: the cards are rows like the file list. Active is the one accent ── */
.sent{order:8;display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-width:0;margin:40px 0 0}
.sent[hidden],.sent [hidden]{display:none}
.sent-list{list-style:none;margin:6px 0 0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.sent-list:empty{display:none}
.sent-item{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0;padding:14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg)}
.sent-top{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:6px 12px;min-width:0}
.sent-name{flex:1 1 150px;min-width:0;color:var(--text);font-size:15px;font-weight:600;line-height:1.4;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.sent-status{flex:none;margin-top:3px;white-space:nowrap}
.sent-status[data-status=ready]{border-color:var(--gold);color:var(--gold)}
.sent-item[data-ended=true] .sent-name{color:var(--muted)}
.sent-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin:0}
.sent-facts div{display:grid;gap:1px;min-width:0}
.sent-facts dt{color:var(--muted);font-size:12px;line-height:1.4}
.sent-facts dd{margin:0;color:var(--text);font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.sent-item[data-ended=true] .sent-facts dd{color:var(--muted)}
/* an ended card has three facts: the date takes the first row, so the two columns leave no hole */
.sent-item[data-ended=true] .sent-facts div:first-child{grid-column:1/-1}
.sent-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
.sent-actions .button{margin:0}
.sent-confirm{flex:1 1 100%;margin:0 0 2px;color:var(--text);font-size:14px;line-height:1.5}
.sent:focus{outline:none}
.sent-actions .send-error{flex:1 1 100%}
@media(min-width:560px){
  .sent-facts{grid-template-columns:repeat(4,minmax(0,1fr))}
  .sent-item[data-ended=true] .sent-facts div:first-child{grid-column:auto}
}

/* ── the recipient's page (t.html, SPEC §11): one quiet card with one state at a time (a message,
   the password, or the files), and "Report this transfer" under it. Reuses the Send block's parts ── */
.recv{max-width:680px}
.recv [hidden]{display:none!important}
.recv .button{margin:0}
.recv-admin{display:inline-block;margin:0 0 16px;padding:8px 12px;border:1px solid var(--gold);border-radius:8px;color:var(--text);font:600 11px/1.3 var(--ui);letter-spacing:.08em;text-transform:uppercase}
.recv-card{display:grid;gap:16px;min-width:0;padding:20px 16px;border-radius:var(--radius);background:var(--panel)}
.recv-part{display:grid;gap:14px;min-width:0;margin:0;justify-items:stretch}
.recv-part>.button{justify-self:start}
.recv-title{font:400 22px/1.2 var(--serif);letter-spacing:-.01em;color:var(--text);overflow-wrap:anywhere}
.recv-title:focus,.recv-done:focus{outline:none}
.recv .text{font-size:16px} /* 16 px: iOS does not zoom into the field */
.recv .select{min-height:44px;font-size:16px}
/* the password with its show/hide button inside the field */
.recv-pw{position:relative;display:flex;flex:1 1 200px;min-width:0}
.recv-pw .text{flex:1 1 auto;width:100%;min-height:44px;padding-right:48px}
.recv-pw-toggle{position:absolute;top:0;right:0;display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:8px;background:none;color:var(--muted);cursor:pointer;transition:color .15s}
.recv-pw-toggle:hover,.recv-pw-toggle[aria-pressed="true"]{color:var(--text)}
.recv-pw-toggle:focus-visible{outline:2px solid var(--gold);outline-offset:-4px}
.recv-pw-toggle .eye-off,.recv-pw-toggle[aria-pressed="true"] .eye{display:none}
.recv-pw-toggle[aria-pressed="true"] .eye-off{display:block}
@media(prefers-reduced-motion:reduce){.recv-pw-toggle{transition:none}}
.recv-report .send-hint a,.recv-report .send-note a{color:var(--text);text-underline-offset:3px}
.recv-message{display:grid;gap:4px;min-width:0;padding-left:12px;border-left:2px solid var(--line)}
.recv-message-text{color:var(--text);font-size:15px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.recv-files{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.recv-file{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg)}
.recv-file-main{display:grid;gap:4px;min-width:0}
.recv-name{color:var(--text);font-size:15px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.recv-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:var(--muted);font-size:13px;line-height:1.4;font-variant-numeric:tabular-nums}
.recv-exec{border-color:var(--gold);color:var(--gold)}
.recv-file-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;min-width:0}
.recv-large{margin:0;color:var(--muted);font-size:13px;line-height:1.45}
.recv-all .recv-large{color:var(--text);font-size:14px}
.recv-saved{color:var(--gold);font-size:13px;line-height:1.4}
.recv-all .button{width:100%}
.recv-progress{display:grid;gap:10px;min-width:0}
.recv-done{color:var(--text);font-size:14px;line-height:1.5;padding-left:12px;border-left:2px solid var(--gold);overflow-wrap:anywhere}
.recv-report{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;justify-items:start;margin-top:24px}
.recv-report .more{color:var(--muted)}
.recv-report .more:hover{color:var(--text)}
.recv-report-form{display:grid;gap:14px;width:100%;min-width:0;padding:16px;border:1px solid var(--line);border-radius:var(--radius)}
.recv-report-actions{display:flex;flex-wrap:wrap;gap:8px}
.recv-about{margin-top:28px;font-size:13px;line-height:1.5}
.recv-about a{color:var(--muted);text-decoration:none;border-bottom:1px solid var(--line);transition:color .15s,border-color .15s}
.recv-about a:hover{color:var(--text);border-color:var(--gold)}
@media(min-width:560px){
  .recv-card{padding:24px}
  .recv-file{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px}
  .recv-file-actions{justify-content:flex-end}
  .recv-all .button{width:auto}
}
