:root {
  --surface: #f8f7f6;
  --surface: oklch(97.7% .004 25);
  --paper: #fdfcfb;
  --paper: oklch(99% .003 25);
  --ink: #292524;
  --ink: oklch(26% .008 25);
  --muted: #706764;
  --muted: oklch(52% .01 25);
  --line: #ded9d6;
  --line: oklch(89% .008 25);
  --accent: #b52e35;
  --accent: oklch(51% .165 23.5);
  --accent-hover: #9d232c;
  --accent-hover: oklch(46% .165 23.5);
  --soft: #efedeb;
  --soft: oklch(94% .006 25);
  --error: #a1242e;
  --error: oklch(46% .16 23.5);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.5; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:disabled, .button[aria-disabled="true"] { opacity: .45; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.page { width: calc(100% - 64px); max-width: 720px; margin: 0 auto; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.header { display: flex; align-items: center; justify-content: space-between; padding: 54px 0 34px; border-bottom: 1px solid var(--line); }
.header-actions { display: flex; align-items: center; gap: 24px; }
.header-actions a { text-decoration: none; }
.wordmark { font-size: 28px; font-weight: 650; letter-spacing: -1.1px; text-decoration: none; line-height: 1; min-height: 44px; display: inline-flex; align-items: center; }
.wordmark span { color: var(--accent); }
main { flex: 1; padding: 70px 0 80px; }
.file-kind { display: inline-block; margin-bottom: 20px; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .065em; }
.filename { font-size: 28px; line-height: 1.3; font-weight: 550; letter-spacing: -.65px; margin: 0; overflow-wrap: anywhere; }
.file-meta { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 48px; padding: 11px 21px; border: 1px solid transparent; border-radius: 6px; font-size: 14px; font-weight: 550; line-height: 24px; display: inline-flex; align-items: center; justify-content: center; gap: 17px; text-decoration: none; white-space: nowrap; transition: background-color 160ms ease-out, border-color 160ms ease-out; }
.button-primary { color: var(--paper); background: var(--accent); }
.button-primary:hover { background: var(--accent-hover); }
.button-primary:active { background: var(--accent-hover); }
.button-secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.button-secondary:hover { background: var(--soft); border-color: #b8afaa; }
.button-secondary:active { background: var(--line); }
.button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.text-button { border: 0; background: transparent; color: var(--muted); padding: 10px 0; min-height: 44px; font-size: 14px; text-underline-offset: 4px; }
.text-button:hover { color: var(--ink); text-decoration: underline; }
.text-button:active { color: var(--accent); }
.empty { margin: 0; font-size: 28px; line-height: 1.3; font-weight: 500; letter-spacing: -.6px; }
.section-title { font-size: 20px; font-weight: 550; letter-spacing: -.3px; margin: 0; }
.login-section { max-width: 360px; }
.login-section .section-title { margin-bottom: 30px; }
.field-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 9px; }
input[type="password"] { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 6px; }
input[type="password"]:hover { border-color: #b8afaa; }
.login-section .button { margin-top: 18px; }
.slot .section-title { margin-bottom: 28px; }
.slot + .slot { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 38px; }
.files-section .filename { font-size: 25px; }
.drop-zone { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px dashed #c5bcb7; border-radius: 8px; padding: 26px 28px; transition: background-color 160ms ease-out, border-color 160ms ease-out; }
.files-section .file-section + .drop-zone { margin-top: 28px; }
.files-section .file-section[hidden] + .drop-zone { margin-top: 0; }
.drop-zone.is-over { background: var(--soft); border-style: solid; border-color: var(--accent); }
.drop-title { font-size: 15px; font-weight: 500; }
#file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.choose-button { cursor: pointer; background: var(--paper); }
#file-input:focus-visible ~ .choose-button { outline: 3px solid var(--accent); outline-offset: 4px; }
.drop-zone.is-disabled { background: var(--soft); }
.drop-zone.is-disabled .choose-button { cursor: default; pointer-events: none; }
.upload-view { padding-top: 28px; }
.upload-heading-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.upload-name { font-size: 15px; font-weight: 550; line-height: 1.45; margin: 0; overflow-wrap: anywhere; }
.upload-percent { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }
progress { display: block; width: 100%; height: 4px; border: 0; border-radius: 3px; overflow: hidden; margin-top: 16px; background: var(--line); accent-color: var(--accent); }
progress::-webkit-progress-bar { background: var(--line); border-radius: 3px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 3px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 3px; }
.upload-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 7px; }
.upload-status { color: var(--muted); font-size: 13px; }
.upload-actions { display: flex; gap: 24px; }
.message { margin: 26px 0 0; max-width: 65ch; font-size: 14px; overflow-wrap: anywhere; color: var(--error); }
.message.is-neutral { color: var(--muted); }
footer { padding: 26px 0 30px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
footer a { font-size: 13px; color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
footer a:hover { color: var(--ink); }
.skeleton { background: var(--line); border-radius: 4px; }
.skeleton-name { width: 58%; max-width: 300px; height: 30px; margin-top: 40px; }
.skeleton-meta { width: 148px; height: 12px; margin-top: 18px; }
.skeleton-button { width: 143px; height: 48px; margin-top: 34px; }
.no-script { margin-top: 28px; font-size: 14px; color: var(--muted); }

@media (max-width: 600px) {
  .page { width: calc(100% - 40px); }
  .header { padding: 28px 0 24px; }
  main { padding: 46px 0 60px; }
  .filename { font-size: 25px; }
  .actions { margin-top: 28px; }
  .header-actions { gap: 16px; }
  .slot .section-title { margin-bottom: 22px; }
  .slot + .slot { margin-top: 36px; padding-top: 30px; }
  .drop-zone { padding: 20px; gap: 16px; }
  .drop-title { font-size: 14px; }
  .drop-zone .button { padding-inline: 16px; }
  .files-section .file-section + .drop-zone { margin-top: 24px; }
  footer { padding: 18px 0 20px; }
}
@media (max-width: 360px) {
  .drop-zone { align-items: flex-start; flex-direction: column; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
