@font-face {
  font-family: "Eurostile Web";
  src: url("/fonts/eurostile-regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Eurostile Web";
  src: url("/fonts/eurostile-black.otf") format("opentype");
  font-style: normal;
  font-weight: 800 950;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #082452;
  --bg-deep: #020a1e;
  --surface: #0a326e;
  --surface-2: #0b4f99;
  --border: rgba(51, 209, 245, .3);
  --text: #fffaf0;
  --muted: #d5e2f3;
  --paper: #fffaf0;
  --paper-strong: #ffffff;
  --ink: #061a3c;
  --ink-muted: #53647a;
  --blue: #0769c8;
  --cyan: #2fd3f2;
  --yellow: #f6b80d;
  --orange: #f18455;
  --green: #42df9a;
  --red: #d92436;
  --shadow: 0 28px 80px rgba(0, 4, 18, .34);
  --font-display: "Eurostile Web", "Arial Narrow", system-ui, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font-body);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg-deep); }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(10, 91, 183, .72), transparent 32rem),
    radial-gradient(circle at 96% 22%, rgba(47, 211, 242, .14), transparent 30rem),
    linear-gradient(145deg, var(--bg), var(--bg-deep) 72%);
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: .3;
  background: linear-gradient(115deg, transparent 0 61%, rgba(246, 184, 13, .08) 61% 61.4%, transparent 61.4% 100%);
}

button, input { font: inherit; }
button, .button, .file-drop { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.page-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.site-header { display: flex; min-height: 82px; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid rgba(213, 226, 243, .12); }
.brand { color: inherit; text-decoration: none; display: grid; gap: 1px; line-height: 1; }
.brand-kicker { color: var(--yellow); font: 900 .68rem/1 var(--font-display); letter-spacing: .22em; }
.brand-title { font: 900 clamp(1.22rem, 3vw, 1.62rem)/1 var(--font-display); letter-spacing: .06em; }
.secure-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(66, 223, 154, .35); border-radius: 999px; color: var(--muted); background: rgba(3, 10, 32, .45); font-size: .82rem; }
.secure-pill span { color: var(--green); font-size: .7rem; }

.upload-stage { display: grid; grid-template-columns: minmax(0, .82fr) minmax(540px, 1.18fr); gap: clamp(34px, 5vw, 72px); align-items: start; padding: clamp(38px, 5vw, 66px) 0 30px; }
.upload-column { min-width: 0; }
.hero { padding: 20px 0 24px; text-align: left; }
.network-banner { position: sticky; top: 12px; z-index: 20; width: min(760px, 100%); margin: 8px auto 0; padding: 13px 16px; border: 1px solid rgba(246, 184, 13, .55); border-radius: 12px; color: #fff3c1; background: rgba(65, 40, 2, .96); box-shadow: 0 14px 40px rgba(0, 0, 0, .3); text-align: center; line-height: 1.4; }
.eyebrow { margin: 0 0 12px; color: var(--cyan); font: 900 .76rem/1.2 var(--font-display); letter-spacing: .19em; }
.hero h1 { max-width: 680px; margin: 0; font: 900 clamp(3rem, 5.2vw, 4.25rem)/.94 var(--font-display); letter-spacing: -.025em; text-transform: uppercase; text-wrap: balance; }
.hero h1 span { color: var(--yellow); }
.hero-copy { max-width: 560px; margin: 24px 0 0; color: var(--muted); font-size: 1.04rem; line-height: 1.65; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 0; margin: 32px 0 0; list-style: none; }
.steps li { display: grid; min-width: 0; gap: 8px; align-content: start; padding: 13px 11px; border: 1px solid rgba(47, 211, 242, .17); border-radius: 12px; color: var(--muted); background: rgba(3, 10, 32, .23); font-size: .76rem; line-height: 1.3; }
.steps b { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--cyan); background: rgba(7, 27, 66, .7); font-family: var(--font-display); }

.panel { width: 100%; margin: 0; border: 1px solid rgba(255, 255, 255, .72); border-radius: 24px; color: var(--ink); color-scheme: light; background: linear-gradient(145deg, var(--paper-strong), var(--paper)); box-shadow: var(--shadow); }
.panel .eyebrow { color: var(--blue); }
.form-panel, .workspace-panel { width: 100%; padding: clamp(26px, 4vw, 40px); }
.panel-heading { margin-bottom: 24px; }
.panel-heading h2, .workspace-head h2 { margin: 0 0 8px; font: 900 clamp(1.8rem, 4vw, 2.55rem)/1 var(--font-display); text-transform: uppercase; }
.panel-heading > p:last-child, .muted { color: var(--ink-muted); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-wide { grid-column: 1 / -1; }
.field { display: grid; gap: 9px; color: var(--ink); font-weight: 800; }
.field small, .file-drop small { color: var(--ink-muted); font-size: .8rem; font-weight: 500; line-height: 1.4; }
.field input { width: 100%; min-height: 54px; padding: 0 15px; border: 1px solid #c9d6e6; border-radius: 11px; outline: none; color: var(--ink); background: #fff; transition: border-color .18s, box-shadow .18s; }
.field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(47, 211, 242, .15); }
.field input::placeholder { color: #8795a7; }
.file-drop { display: grid; min-height: 164px; place-items: center; align-content: center; gap: 6px; margin-top: 22px; border: 2px dashed rgba(7, 105, 200, .42); border-radius: 16px; cursor: pointer; text-align: center; background: #eef7ff; transition: border-color .18s, background .18s, transform .18s; }
.file-drop:hover { border-color: var(--blue); background: #e3f3ff; transform: translateY(-1px); }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop-icon { display: grid; width: 50px; height: 50px; place-items: center; margin-bottom: 4px; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--blue), #1e9be5); font-size: 1.85rem; font-weight: 400; }
.file-drop strong { font-size: 1.15rem; }
.selection-summary { display: grid; gap: 8px; margin-top: 14px; }
.selection-line { display: flex; justify-content: space-between; gap: 14px; padding: 10px 12px; border-radius: 8px; color: var(--ink-muted); background: #edf2f7; font-size: .84rem; }
.selection-line span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.permission-check { display: flex; gap: 11px; align-items: flex-start; margin: 22px 0 12px; color: var(--ink-muted); font-size: .86rem; line-height: 1.5; cursor: pointer; }
.permission-check input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--cyan); }
.permission-check input:focus-visible { outline: 3px solid rgba(47, 211, 242, .3); outline-offset: 2px; }
.privacy-details { margin: 0 0 22px; padding: 12px 14px; border: 1px solid #d8e1ec; border-radius: 10px; color: var(--ink-muted); background: #f4f7fa; font-size: .82rem; line-height: 1.55; }
.privacy-details summary { color: var(--ink); cursor: pointer; font-weight: 800; }
.privacy-details p { margin: 10px 0 0; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 16px; padding: 0 20px; border: 0; border-radius: 10px; cursor: pointer; font-weight: 900; text-align: center; text-decoration: none; transition: transform .16s, filter .16s, opacity .16s; }
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .55; transform: none; }
.action-box.busy { opacity: .55; pointer-events: none; }
.button-primary { width: 100%; color: #fff; background: linear-gradient(105deg, var(--blue), #0f8edb 58%, #16aedb); box-shadow: 0 13px 30px rgba(7, 105, 200, .24); font-size: 1rem; }
.button-secondary { flex: none; border: 1px solid rgba(7, 105, 200, .32); color: var(--blue); background: #e8f4fd; }
.button-small { grid-column: 1 / -1; min-height: 40px; justify-self: start; border: 1px solid rgba(217, 36, 54, .24); color: #9b2635; background: #ffedf0; font-size: .8rem; }
.form-error { margin: 14px 0; padding: 13px 15px; border-left: 3px solid var(--red); border-radius: 8px; color: #831b29; background: #ffedf0; line-height: 1.45; }

.notice-panel { display: flex; gap: 18px; padding: 26px; }
.notice-panel h2 { margin: 0 0 7px; }
.notice-panel p { margin: 0; color: var(--ink-muted); line-height: 1.55; }
.notice-icon { display: grid; width: 44px; height: 44px; flex: none; place-items: center; border: 1px solid rgba(139, 97, 0, .4); border-radius: 50%; color: #8b6100; font-size: 1.3rem; font-weight: 900; }
.workspace-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid rgba(153, 190, 229, .16); }
.workspace-head h2 { overflow-wrap: anywhere; }
.workspace-head p { margin: 0; }
.deadline-card { min-width: 190px; padding: 16px; border: 1px solid rgba(246, 184, 13, .38); border-radius: 13px; background: #fff7dc; }
.deadline-card span, .deadline-card small { display: block; color: var(--ink-muted); font-size: .75rem; }
.deadline-card strong { display: block; margin: 4px 0; color: #8b6100; font-size: 1.25rem; }
.success-banner { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 18px; border: 1px solid rgba(29, 151, 102, .3); border-radius: 13px; background: #e9fbf3; }
.success-check { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 50%; color: #031d19; background: var(--green); font-weight: 950; }
.success-banner strong { color: #16734f; }
.success-banner p { margin: 4px 0 0; color: var(--ink-muted); line-height: 1.45; }
.overall-progress { padding: 28px 0 20px; }
.progress-copy { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.progress-copy span { color: var(--blue); font-weight: 900; }
.progress-track { width: 100%; height: 11px; overflow: hidden; border: 0; border-radius: 999px; appearance: none; background: #dfe8f1; }
.progress-track::-webkit-progress-bar { border-radius: 999px; background: #dfe8f1; }
.progress-track::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: inline-size .2s ease; }
.progress-track::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: inline-size .2s ease; }
.overall-progress p { margin: 10px 0 0; font-size: .86rem; }
.file-list { display: grid; gap: 10px; }
.file-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 18px; align-items: center; padding: 14px; border: 1px solid #d9e3ee; border-radius: 11px; background: #fff; }
.file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.file-meta { color: var(--ink-muted); font-size: .78rem; }
.file-status { grid-row: 1 / span 2; grid-column: 2; padding: 6px 9px; border-radius: 999px; color: var(--ink-muted); background: #eaf0f6; font-size: .74rem; font-weight: 900; }
.file-status.complete { color: #16734f; background: #e5f8ef; }
.file-status.uploading { color: var(--blue); background: #e7f4fd; }
.file-status.error, .file-status.rejected { color: #9b2635; background: #ffedf0; }
.file-error-detail { grid-column: 1 / -1; color: #9b2635; font-size: .8rem; line-height: 1.45; }
.action-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding: 20px; border: 1px solid #cfe3f2; border-radius: 14px; background: #f1f8fd; }
.action-box h3 { margin: 0 0 5px; font-size: 1rem; }
.action-box p { margin: 0; color: var(--ink-muted); font-size: .85rem; line-height: 1.45; }
.add-more-box { border-color: rgba(246, 184, 13, .22); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.support-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 18px 0 34px; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--border); }
.support-strip div { display: grid; gap: 5px; padding: 22px; background: rgba(3, 10, 32, .86); }
.support-strip strong { color: var(--cyan); font-size: .9rem; }
.support-strip span { color: var(--muted); font-size: .8rem; line-height: 1.4; }
footer { display: flex; justify-content: space-between; padding: 20px 0 max(30px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(153, 190, 229, .12); color: #7891b3; font-size: .7rem; font-weight: 800; letter-spacing: .1em; }
.admin-link { color: #7891b3; text-decoration: none; }
.admin-link:hover, .admin-link:focus-visible { color: var(--cyan); }
.admin-back { text-decoration: none; }
.admin-shell { min-height: 100vh; }
.admin-main { padding: clamp(28px, 6vw, 64px) 0; }
.admin-login { max-width: 620px; margin: 0 auto; }
.admin-login h1, .admin-heading h1 { margin: 0 0 8px; font: 900 clamp(2.1rem, 7vw, 4rem)/1 var(--font-display); text-transform: uppercase; }
.admin-dashboard { display: grid; gap: 24px; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.status-card { display: grid; gap: 8px; min-width: 0; padding: 18px; border: 1px solid #d9e3ee; border-radius: 14px; background: #fff; }
.status-card span { color: var(--ink-muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.status-card strong { overflow-wrap: anywhere; font-size: 1.18rem; }
.status-ok { color: #16734f; }
.status-warning { color: #8b6100; }
.admin-settings-panel { width: 100%; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 26px; border-bottom: 1px solid rgba(153, 190, 229, .16); }
.settings-row h2 { margin: 0 0 7px; }
.settings-row p { max-width: 680px; margin: 0; color: var(--ink-muted); line-height: 1.5; }
.session-links-heading { align-items: flex-start; }
.generated-session-box { margin: 24px 0 0; padding: 18px; border: 1px solid #b9d8f1; border-radius: 14px; background: #eef7ff; }
.copy-link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.copy-link-row input { min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .78rem; }
.session-links-list { display: grid; gap: 10px; margin-top: 24px; }
.session-links-empty { margin: 0; color: var(--ink-muted); }
.session-link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid #d9e3ee; border-radius: 12px; background: #fff; }
.session-link-row > div { display: grid; min-width: 0; gap: 4px; }
.session-link-row > div strong { color: var(--ink); }
.session-link-row > div span { overflow: hidden; color: var(--ink-muted); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.session-link-status { display: inline-flex; min-height: 30px; align-items: center; padding: 0 10px; border-radius: 999px; font-size: .76rem; font-weight: 900; white-space: nowrap; }
.session-link-status.unused { color: #075a9e; background: #dff1ff; }
.session-link-status.claimed { color: #765000; background: #fff0ba; }
.session-link-status.used { color: #12613e; background: #daf6e9; }
.session-link-status.revoked { color: #7b3440; background: #f7dfe3; }
.session-link-revoke { min-height: 36px; margin: 0; padding: 0 12px; }
.switch-field { display: inline-flex; flex: none; align-items: center; gap: 10px; cursor: pointer; font-weight: 900; }
.switch-field input { width: 22px; height: 22px; accent-color: var(--green); }
.admin-deadline-field { max-width: 520px; margin: 28px 0; }
.form-success { border-left-color: #16734f; color: #16553d; background: #e9fbf3; }

@media (max-width: 980px) {
  .upload-stage { grid-template-columns: 1fr; gap: 6px; padding-top: 24px; }
  .hero { max-width: 720px; padding-bottom: 30px; }
  .hero h1 { max-width: 720px; }
  .hero-copy { max-width: 680px; }
}

@media (max-width: 700px) {
  .page-shell { width: min(100% - 24px, 1180px); }
  .site-header { padding: 20px 0; }
  .secure-pill { padding: 7px 9px; font-size: .7rem; }
  .upload-stage { padding-top: 12px; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  .hero-copy { margin-top: 18px; font-size: .96rem; }
  .steps { align-items: stretch; gap: 6px; }
  .steps li { gap: 6px; padding: 10px 8px; font-size: .7rem; }
  .form-panel, .workspace-panel { padding: 24px; }
  .notice-panel { padding: 22px; }
  .field-grid { grid-template-columns: 1fr; }
  .workspace-head { display: grid; }
  .deadline-card { width: 100%; }
  .action-box { align-items: stretch; flex-direction: column; }
  .button-secondary { width: 100%; }
  .support-strip { grid-template-columns: 1fr; }
  .admin-heading, .settings-row { align-items: stretch; flex-direction: column; }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .copy-link-row { grid-template-columns: 1fr; }
  .copy-link-row .button { width: 100%; }
  .session-link-row { grid-template-columns: minmax(0, 1fr) auto; }
  .session-link-revoke { grid-column: 1 / -1; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
