:root {
  color-scheme: dark;
  --bg: #10191a;
  --panel: #182425;
  --panel-muted: #141f20;
  --border: #35474a;
  --ink: #f0f5f2;
  --muted: #b2c4c0;
  --accent: #d7ed9f;
  --danger: #ffc0ae;
  font: 16px/1.5 system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--bg); }
button, input { font: inherit; }
button, a, .choose { -webkit-tap-highlight-color: transparent; }
:focus-visible, .choose:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { max-width: 1152px; margin: auto; padding: 64px 32px; }
.intro { border-top: 1px solid var(--border); padding-top: 26px; margin-bottom: 36px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.55rem, 7vw, 5rem); line-height: .96; letter-spacing: -.075em; font-weight: 720; }
h1 span { color: var(--accent); }
.intro p { margin-top: 21px; max-width: 38rem; color: var(--muted); font-size: 1.07rem; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--border); padding: 27px; border-radius: 17px; }
h2 { font-size: 1.31rem; letter-spacing: -.028em; }
.field-label { display: block; font-size: .94rem; font-weight: 650; margin: 22px 0 7px; }
#user-name { width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid #53686a; background: var(--panel-muted); color: var(--ink); }
#user-name::placeholder { color: #a0b3b0; }
.drop { display: grid; justify-items: center; gap: 8px; margin-top: 16px; padding: 19px 12px; text-align: center; border: 1px dashed #647a7b; background: var(--panel-muted); border-radius: 11px; }
.drop.active { border-color: var(--accent); background: #27382b; }
.file-mark { color: var(--accent); font: 700 .85rem ui-monospace, monospace; border: 1px solid #53634b; padding: 6px 8px; border-radius: 5px; }
.drop p { font-weight: 650; }
small, .privacy, #count, .file-state, .empty p, #status { color: var(--muted); font-size: .9rem; }
.choose, .primary, .secondary, .quiet { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 7px 12px; border: 1px solid transparent; border-radius: 8px; font-size: .94rem; font-weight: 650; cursor: pointer; text-decoration: none; }
.choose, .secondary { color: var(--accent); border-color: #687b52; background: #223025; position: relative; }
.choose input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.choose:has(:disabled) { opacity: .48; }
.quiet { color: var(--muted); background: transparent; }
.primary { background: var(--accent); color: #1b291a; }
.primary:disabled { opacity: .48; cursor: default; }
.primary:not(:disabled):hover { background: #e8f7c5; }
.quiet:hover, .choose:hover, .secondary:hover { border-color: var(--accent); }
.actions { display: flex; gap: 8px; margin-top: 16px; }
.privacy { margin-top: 16px; display: flex; align-items: center; gap: 8px; }
.privacy span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: 0 0 7px; }
.queue-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#count { margin-top: 4px; }
.empty { display: grid; place-content: center; min-height: 230px; padding: 24px; text-align: center; border: 1px solid #304244; border-radius: 10px; background: var(--panel-muted); margin-top: 18px; }
.empty p { margin-top: 5px; }
.queue { list-style: none; margin: 17px 0 0; padding: 0; }
.queue:empty { margin: 0; }
.file-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--border); }
.file-info { min-width: 0; overflow-wrap: anywhere; }
.file-title { font-weight: 650; font-size: .94rem; }
.file-state { margin-top: 3px; }
.file-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; flex-shrink: 0; }
.file-actions .quiet { padding-inline: 8px; }
.file-actions a { color: var(--accent); font-size: .91rem; padding: 7px; text-underline-offset: 3px; }
.result { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notice, .error { color: var(--danger); }
.notice { padding-top: 10px; font-size: .9rem; }
@media (max-width: 760px) {
  .shell { padding: 32px 16px; }
  .workspace { grid-template-columns: 1fr; }
  .panel { padding: 19px; }
  .intro { margin-bottom: 25px; }
  .file-actions { flex-direction: column; align-items: end; }
}
