/* Nicslab File Share, trial slice. Tokens from the Nicslab Design System plus the 612 nm accent (E9). */
@font-face { font-family: "Avenir LT Std"; font-weight: 400; font-display: swap; src: url("/assets/fonts/AvenirLTStd-Book.otf") format("opentype"); }
@font-face { font-family: "Avenir LT Std"; font-weight: 500; font-display: swap; src: url("/assets/fonts/AvenirLTStd-Roman.otf") format("opentype"); }
@font-face { font-family: "Avenir LT Std"; font-weight: 900; font-display: swap; src: url("/assets/fonts/AvenirLTStd-Black.otf") format("opentype"); }

:root {
  color-scheme: light;
  --surface: #ffffff; --surface-wash: #f4fdff; --ink: #111111; --muted: #6b6960; --line: #d8d6cf;
  --link: #2d7192; --link-hover: #040f49;
  --nm612: #713f00; --nm612-wash: #ffefe1;
  --silver: #a2aaad;
  --font: "Avenir LT Std", Avenir, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --surface: #111111; --surface-wash: #1c1c1a; --ink: #ffffff; --muted: #8b8981; --line: #333333;
    --link: #3c97c3; --link-hover: #ffffff;
    --nm612: #eea563; --nm612-wash: #382009;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55;
  padding-bottom: env(safe-area-inset-bottom, 0px); }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 24px; }

.band { background: #000000; padding: calc(32px + env(safe-area-inset-top, 0px)) 0 18px; }
.band .wrap { display: flex; flex-direction: column; gap: 18px; }
.logo { width: 140px; height: auto; display: block; }

.scale { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: flex-end; }
.scale li { flex: 1 1 0; display: flex; flex-direction: column; gap: 4px; }
.scale .bar { display: block; height: 6px; background: var(--c); box-shadow: 0 0 0 1px var(--silver); }
.scale .nm { font-size: 11px; color: var(--silver); font-variant-numeric: tabular-nums; }
.scale .own .bar { height: 10px; }
.scale .own .nm { color: #ffffff; font-weight: 900; }

main.wrap { padding-top: 28px; padding-bottom: 24px; }
h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.15; font-weight: 900; letter-spacing: -0.01em; }
.lead { margin: 0 0 24px; color: var(--muted); font-size: 15px; }
.note { margin: 20px 0 0; font-size: 14px; color: var(--muted); }

.files { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-wash); }
.file { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.file + .file { border-top: 1px solid var(--line); }
.meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.name { font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.info { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip { padding: 2px 7px; border-radius: 6px; background: var(--nm612-wash); color: var(--nm612); font-size: 12px; font-weight: 900; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--ink);
  border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 900; }
.file .btn { width: 100%; }
.btn:hover { background: var(--ink); color: var(--surface); }

.foot { padding-top: 16px; padding-bottom: 32px; font-size: 13px; color: var(--muted); }

@media (min-width: 600px) {
  .file { flex-direction: row; align-items: center; justify-content: space-between; }
  .file .btn { width: auto; flex: none; }
}
