:root {
  color-scheme: light; color: #000; background: #faf9f6;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none; text-rendering: optimizeLegibility;
  --line: #e5e2db; --green: #16a34a; --red: #dc2626;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button, input, .dropzone { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.shell { width: min(100% - 36px, 680px); margin-inline: auto; padding-block: clamp(30px, 6vw, 64px) 36px; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.wordmark { margin: 0; font-size: clamp(1.5625rem, 1.25rem + 1vw, 1.875rem); font-weight: 600; line-height: 1.2; letter-spacing: -.04em; }
.grid { display: grid; gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 16px; background: #fffefa; padding: clamp(18px, 4vw, 26px); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.card-head h2 { margin: 0; font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; }
.hint { font-size: .8125rem; color: #68655d; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 156px; border: 1px dashed #c9c5bb; border-radius: 8px; padding: 24px 12px; background: #faf9f6; transition: background .15s, border-color .15s; }
.dropzone:hover, .dropzone.dragging { background: #f0f5eb; border-color: var(--green); }
.dropzone:focus-within { outline: 2px solid var(--green); outline-offset: 4px; }
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-title { font-size: .9375rem; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.filename { overflow-wrap: anywhere; min-width: 0; font-size: .9375rem; line-height: 1.6; }
#upload-percent, .countdown { flex-shrink: 0; font-variant-numeric: tabular-nums; font-size: .8125rem; }
progress { display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 9px; margin: 14px 0; border: 0; border-radius: 2px; overflow: hidden; background: #efeee8; accent-color: var(--green); }
progress::-webkit-progress-bar { background: #efeee8; border-radius: 2px; }
progress::-webkit-progress-value { background: var(--green); border-radius: 2px; }
progress::-moz-progress-bar { background: var(--green); border-radius: 2px; }
.detail { font-size: .8125rem; line-height: 1.6; flex-wrap: wrap; }
.text-button { padding: 0; border: 0; background: none; color: inherit; text-decoration: underline; text-underline-offset: 4px; font-size: .8125rem; }
.result-name { margin: 0 0 12px; }
.code-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.transfer-code { font-size: clamp(2.25rem, 8vw, 3rem); font-weight: 600; letter-spacing: .16em; font-variant-numeric: tabular-nums; }
.secondary { background: transparent; color: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font-size: .8125rem; }
.secondary:hover { background: #f1efe9; }
.delete-row { display: flex; justify-content: flex-end; margin-top: 14px; }
#uploaded { border-bottom: 1px solid var(--line); margin-bottom: 22px; padding-bottom: 22px; }
.receive-row { display: flex; gap: 12px; }
#code { width: 100%; min-width: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; color: #000; background: #faf9f6; font-size: 1.5rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
#code::placeholder { color: #aaa59b; }
.primary { flex-shrink: 0; padding: 12px 20px; border: 1px solid #000; border-radius: 8px; color: #fffefa; background: #000; font-size: .875rem; }
.primary:hover { background: #34332f; }
.error-note { margin: 16px 0 0; padding: 10px 12px; background: #fbefea; border-radius: 3px; font-size: .875rem; line-height: 1.7; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 380px) { .primary { padding-inline: 12px; } .receive-row { gap: 8px; } #code { padding-inline: 10px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
