:root {
  --navy-950: #061d31;
  --navy-900: #082c4c;
  --navy-800: #0b3558;
  --navy-700: #174b72;
  --blue-600: #007cab;
  --cyan-500: #00a9ce;
  --cyan-100: #dff7fb;
  --lime-500: #82cc3b;
  --lime-100: #edf9e3;
  --ink: #112a3d;
  --muted: #617587;
  --muted-2: #8797a5;
  --line: #dbe4ea;
  --line-strong: #c8d5de;
  --surface: #ffffff;
  --surface-soft: #f6f9fb;
  --background: #eef3f6;
  --danger: #c13e47;
  --danger-soft: #fff0f1;
  --success: #2e7d32;
  --shadow-sm: 0 2px 6px rgba(6, 29, 49, .06), 0 1px 2px rgba(6, 29, 49, .08);
  --shadow-lg: 0 24px 60px rgba(5, 36, 61, .13), 0 4px 14px rgba(5, 36, 61, .06);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 22%, rgba(0, 169, 206, .11), transparent 24rem),
    radial-gradient(circle at 7% 68%, rgba(130, 204, 59, .08), transparent 22rem),
    var(--background);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .48;
  background-image:
    linear-gradient(rgba(8, 44, 76, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 44, 76, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header {
  width: min(1180px, calc(100% - 48px));
  height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy-900); text-decoration: none; }
.brand-mark { width: 46px; height: 46px; flex: 0 0 46px; filter: drop-shadow(0 5px 10px rgba(8, 44, 76, .12)); }
.brand-type { display: grid; line-height: 1; letter-spacing: .035em; }
.brand-type strong { font-size: 15px; font-weight: 800; }
.brand-type span { margin-top: 6px; color: var(--cyan-500); font-size: 11px; font-weight: 800; letter-spacing: .22em; }
.header-actions { display: flex; align-items: center; gap: 24px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 650; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime-500); box-shadow: 0 0 0 4px rgba(130, 204, 59, .14); }
.help-link { color: var(--navy-800); font-size: 14px; font-weight: 700; text-decoration: none; border-bottom: 1px solid transparent; }
.help-link:hover { border-bottom-color: currentColor; }

main { flex: 1; width: 100%; }
.home-view {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 180px);
  margin: 0 auto;
  padding: 42px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(540px, 1.12fr);
  align-items: center;
  gap: clamp(54px, 7vw, 96px);
}
.hero-copy { align-self: center; padding-bottom: 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--blue-600); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--cyan-500); }
h1 { max-width: 560px; margin: 0; color: var(--navy-900); font-size: clamp(46px, 5.3vw, 72px); line-height: .98; letter-spacing: -.052em; font-weight: 780; }
h1 span { color: var(--blue-600); }
.hero-lead { max-width: 520px; margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.step-list { display: flex; align-items: flex-start; gap: 0; max-width: 500px; margin: 38px 0 0; padding: 0; list-style: none; }
.step-list li { position: relative; flex: 1; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.step-list li:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: 37px; right: 8px; height: 1px; background: var(--line-strong); }
.step-list strong { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--blue-600); background: white; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 11px; }
.step-list span { position: relative; z-index: 1; display: inline-block; width: fit-content; padding: 2px 7px 2px 0; background: var(--background); }

.upload-card, .result-card, .download-card, .delete-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(200, 213, 222, .8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.upload-card::before, .result-card::before, .download-card::before, .delete-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan-500), var(--lime-500));
}
.upload-card > *, .result-card > *, .download-card > *, .delete-card > * { position: relative; z-index: 1; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 31px 34px 24px; }
.card-kicker { margin: 0 0 5px; color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.card-head h2, .result-copy h2, .download-copy h1, .delete-copy h1 { margin: 0; color: var(--navy-900); font-size: 25px; line-height: 1.2; letter-spacing: -.025em; }
.max-size { display: inline-flex; flex: none; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: var(--surface-soft); font-size: 11px; font-weight: 700; }
.max-size svg { width: 13px; height: 13px; color: var(--blue-600); }
.dropzone { margin: 0 34px; }
.drop-target {
  position: relative;
  min-height: 246px;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
  border: 1.5px dashed #a9c0ce;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #f9fbfc, #f2f7f9);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.drop-target:hover, .drop-target.is-dragging { border-color: var(--cyan-500); background: #f0fbfd; transform: translateY(-1px); }
.drop-target:focus-visible { outline: 3px solid rgba(0, 169, 206, .22); outline-offset: 3px; }
.upload-icon {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 17px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--navy-800);
  border-radius: 22px;
  box-shadow: 0 12px 25px rgba(11, 53, 88, .18);
}
.upload-icon::after { content: ""; position: absolute; right: -5px; bottom: -5px; width: 22px; height: 22px; border: 4px solid var(--surface-soft); border-radius: 50%; background: var(--lime-500); }
.upload-icon svg { width: 31px; height: 31px; }
.drop-target h3 { margin: 0; color: var(--navy-800); font-size: 18px; letter-spacing: -.015em; }
.drop-target p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.browse-link { color: var(--blue-600); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-selected {
  min-height: 164px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1.5px solid var(--cyan-500);
  border-radius: var(--radius);
  background: #f5fcfd;
}
.file-type {
  flex: 0 0 52px;
  width: 52px; height: 62px;
  display: grid; place-items: center;
  color: var(--blue-600);
  border: 1px solid #c9e6ec;
  border-radius: 9px 9px 13px 13px;
  background: white;
  box-shadow: var(--shadow-sm);
  font-size: 10px; font-weight: 850; letter-spacing: .04em;
}
.file-meta { min-width: 0; flex: 1; }
.file-name { overflow: hidden; margin: 0; color: var(--navy-900); font-size: 15px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.file-info { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.icon-button:hover { color: var(--danger); border-color: #efc2c6; background: var(--danger-soft); }
.icon-button svg { width: 17px; height: 17px; }
.options-toggle { width: calc(100% - 68px); margin: 17px 34px 0; padding: 13px 2px; display: flex; align-items: center; justify-content: space-between; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; }
.options-label { display: flex; align-items: center; gap: 10px; color: var(--navy-800); font-size: 13px; font-weight: 750; }
.options-label svg { width: 17px; height: 17px; color: var(--blue-600); }
.options-summary { color: var(--muted); font-size: 12px; font-weight: 600; }
.chevron { width: 17px; height: 17px; color: var(--muted); transition: transform .2s; }
.options-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.options-panel { display: none; margin: 0 34px; padding: 21px 0 3px; }
.options-panel.is-open { display: grid; gap: 19px; animation: reveal .2s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.field { display: grid; gap: 7px; }
.field > label, .field-label { color: var(--navy-800); font-size: 12px; font-weight: 750; }
.field-help { color: var(--muted); font-size: 11px; }
.select-wrap { position: relative; }
.select-wrap select, .text-input { width: 100%; height: 45px; padding: 0 42px 0 13px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 9px; background: white; outline: 0; transition: border .15s, box-shadow .15s; }
.text-input { padding-right: 45px; }
.select-wrap select:focus, .text-input:focus { border-color: var(--cyan-500); box-shadow: 0 0 0 3px rgba(0, 169, 206, .12); }
.select-wrap svg { position: absolute; right: 13px; top: 50%; width: 16px; height: 16px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
select { appearance: none; }
.option-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.option-row-copy { min-width: 0; }
.option-row-copy strong { display: block; color: var(--navy-800); font-size: 13px; }
.option-row-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.switch { position: relative; flex: 0 0 auto; width: 43px; height: 25px; }
.switch input { position: absolute; opacity: 0; }
.switch-track { display: block; width: 100%; height: 100%; border-radius: 99px; background: #c8d3da; cursor: pointer; transition: background .2s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + .switch-track { background: var(--blue-600); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 3px solid rgba(0, 169, 206, .2); outline-offset: 2px; }
.password-field { display: none; }
.password-field.is-visible { display: grid; animation: reveal .2s ease-out; }
.password-wrap { position: relative; }
.password-wrap button { position: absolute; right: 4px; top: 4px; width: 37px; height: 37px; display: grid; place-items: center; color: var(--muted); border: 0; background: transparent; border-radius: 7px; cursor: pointer; }
.password-wrap button:hover { color: var(--navy-800); background: var(--surface-soft); }
.password-wrap svg { width: 17px; height: 17px; }
.card-actions { padding: 24px 34px 30px; }
.primary-button, .secondary-button, .danger-button {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 760;
  font-size: 14px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.primary-button { color: white; border: 1px solid var(--navy-900); background: var(--navy-900); box-shadow: 0 8px 17px rgba(8, 44, 76, .16); }
.primary-button:hover:not(:disabled) { background: var(--navy-700); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(8, 44, 76, .22); }
.primary-button:disabled { opacity: .46; cursor: not-allowed; box-shadow: none; }
.secondary-button { color: var(--navy-800); border: 1px solid var(--line-strong); background: white; }
.secondary-button:hover { border-color: #9eb5c3; background: var(--surface-soft); transform: translateY(-1px); }
.danger-button { color: white; border: 1px solid var(--danger); background: var(--danger); }
.danger-button:hover { background: #aa3039; transform: translateY(-1px); }
.full-button { width: 100%; }
.primary-button svg, .secondary-button svg, .danger-button svg { width: 18px; height: 18px; }
.legal-note { margin: 11px 0 0; color: var(--muted-2); text-align: center; font-size: 10.5px; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: var(--surface-soft); }
.trust-item { padding: 15px 12px; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: 10.5px; font-weight: 700; text-align: center; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item svg { width: 14px; height: 14px; color: var(--blue-600); }

.progress-card { min-height: 535px; display: grid; place-items: center; padding: 40px; text-align: center; }
.progress-visual { position: relative; width: 152px; height: 152px; display: grid; place-items: center; margin: 0 auto 26px; }
.progress-ring { width: 152px; height: 152px; transform: rotate(-90deg); }
.progress-ring-bg, .progress-ring-value { fill: none; stroke-width: 8; }
.progress-ring-bg { stroke: #e6eef2; }
.progress-ring-value { stroke: var(--cyan-500); stroke-linecap: round; stroke-dasharray: 427.26; stroke-dashoffset: 427.26; transition: stroke-dashoffset .15s linear; }
.progress-percent { position: absolute; color: var(--navy-900); font-size: 31px; font-weight: 800; letter-spacing: -.04em; }
.progress-card h2 { margin: 0; color: var(--navy-900); font-size: 24px; }
.progress-filename { max-width: 380px; overflow: hidden; margin: 8px auto 0; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.progress-stats { margin: 25px 0 0; display: flex; justify-content: center; gap: 12px; }
.stat-chip { min-width: 112px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.stat-chip strong { display: block; color: var(--navy-800); font-size: 13px; }
.stat-chip span { color: var(--muted); font-size: 10px; }
.cancel-button { margin-top: 26px; padding: 8px 12px; color: var(--muted); border: 0; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.cancel-button:hover { color: var(--danger); }

.focus-view { width: min(920px, calc(100% - 48px)); min-height: calc(100vh - 180px); margin: 0 auto; padding: 44px 0 70px; display: grid; align-items: center; }
.result-card, .download-card, .delete-card { width: 100%; }
.result-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 530px; }
.result-aside { padding: 48px 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--navy-900); color: white; }
.success-visual { position: relative; width: 94px; height: 94px; margin-bottom: 24px; display: grid; place-items: center; color: var(--navy-900); background: white; border-radius: 28px; transform: rotate(-3deg); box-shadow: 0 17px 30px rgba(0,0,0,.17); }
.success-visual svg { width: 42px; height: 42px; transform: rotate(3deg); }
.success-visual::after { content: ""; position: absolute; right: -7px; bottom: -7px; width: 26px; height: 26px; border: 5px solid var(--navy-900); border-radius: 50%; background: var(--lime-500); }
.result-aside h3 { margin: 0; font-size: 18px; }
.result-aside p { margin: 9px 0 0; color: rgba(255,255,255,.68); font-size: 12px; }
.result-main { padding: 45px 48px 40px; }
.success-label { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; padding: 6px 9px; color: var(--success); border-radius: 6px; background: var(--lime-100); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.success-label svg { width: 13px; height: 13px; }
.result-copy p { margin: 9px 0 0; color: var(--muted); font-size: 14px; }
.share-box { margin-top: 28px; }
.share-box label { display: block; margin-bottom: 8px; color: var(--navy-800); font-size: 12px; font-weight: 760; }
.copy-field { height: 50px; display: flex; align-items: center; gap: 10px; padding: 5px 5px 5px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-soft); }
.copy-field code { min-width: 0; flex: 1; overflow: hidden; color: var(--navy-700); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.copy-field button { height: 38px; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; color: white; border: 0; border-radius: 7px; background: var(--blue-600); font-size: 11px; font-weight: 760; cursor: pointer; }
.copy-field button:hover { background: var(--navy-700); }
.copy-field svg { width: 14px; height: 14px; }
.detail-grid { margin: 27px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail { min-width: 0; padding: 17px 10px 17px 0; }
.detail + .detail { padding-left: 15px; border-left: 1px solid var(--line); }
.detail span { display: block; color: var(--muted); font-size: 10px; }
.detail strong { display: block; overflow: hidden; margin-top: 3px; color: var(--navy-800); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.result-actions { margin-top: 26px; display: flex; gap: 10px; }
.result-actions > * { flex: 1; }
.delete-link-toggle { margin-top: 20px; padding: 0; color: var(--muted); border: 0; background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.delete-link-wrap { display: none; margin-top: 10px; }
.delete-link-wrap.is-visible { display: block; }
.delete-link-wrap .copy-field { height: 43px; }
.delete-link-wrap .copy-field button { height: 32px; }

.download-card, .delete-card { max-width: 730px; margin: 0 auto; }
.download-top, .delete-top { padding: 45px 48px 35px; display: flex; align-items: center; gap: 26px; }
.large-file-type { flex: 0 0 82px; width: 82px; height: 96px; display: grid; place-items: center; color: var(--blue-600); border: 1px solid #c9e6ec; border-radius: 15px 15px 20px 20px; background: #f4fbfc; box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 850; letter-spacing: .06em; }
.download-copy, .delete-copy { min-width: 0; }
.download-copy .eyebrow, .delete-copy .eyebrow { margin-bottom: 10px; }
.download-copy h1, .delete-copy h1 { max-width: 490px; overflow-wrap: anywhere; font-size: 27px; letter-spacing: -.03em; }
.download-meta { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.download-body, .delete-body { padding: 30px 48px 44px; border-top: 1px solid var(--line); background: var(--surface-soft); }
.notice { margin-bottom: 20px; padding: 13px 15px; display: flex; gap: 10px; color: var(--navy-700); border: 1px solid #cce6ed; border-radius: 10px; background: #edf9fb; font-size: 12px; }
.notice.warning { color: #7a581b; border-color: #ead6ab; background: #fff9ec; }
.notice.danger { color: #8e3238; border-color: #efc4c7; background: var(--danger-soft); }
.notice svg { flex: 0 0 17px; width: 17px; height: 17px; margin-top: 1px; }
.password-download { display: grid; gap: 16px; }
.download-actions { display: flex; gap: 11px; }
.download-actions .primary-button { flex: 1; }
.back-link { color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 700; }
.back-link:hover { color: var(--navy-800); }
.error-state { padding: 70px 48px; text-align: center; }
.error-icon { width: 76px; height: 76px; margin: 0 auto 21px; display: grid; place-items: center; color: var(--danger); border-radius: 24px; background: var(--danger-soft); }
.error-icon svg { width: 34px; height: 34px; }
.error-state h1 { margin: 0; color: var(--navy-900); font-size: 28px; letter-spacing: -.03em; }
.error-state p { max-width: 430px; margin: 10px auto 26px; color: var(--muted); font-size: 14px; }
.loading-state { min-height: 430px; display: grid; place-items: center; text-align: center; }
.loader { width: 43px; height: 43px; margin: 0 auto 15px; border: 4px solid #dce8ee; border-top-color: var(--cyan-500); border-radius: 50%; animation: spin .8s linear infinite; }
.button-loader { width: 18px; height: 18px; margin: 0; border-width: 2px; }
.success-error-icon { color: var(--success); background: var(--lime-100); }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state p { margin: 0; color: var(--muted); font-size: 13px; }

.site-footer { width: 100%; }
.footer-inner { width: min(1180px, calc(100% - 48px)); min-height: 88px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(173, 191, 203, .7); color: var(--muted); font-size: 11px; }
.footer-brand { display: flex; align-items: center; gap: 9px; }
.footer-brand svg { width: 25px; height: 25px; }
.footer-links { display: flex; align-items: center; gap: 18px; }
.footer-links button { padding: 0; color: inherit; border: 0; background: transparent; font-size: inherit; cursor: pointer; }
.footer-links button:hover { color: var(--navy-800); }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: min(360px, calc(100% - 48px)); padding: 13px 16px; color: white; border-radius: 10px; background: var(--navy-950); box-shadow: 0 12px 30px rgba(0,0,0,.2); font-size: 12px; font-weight: 700; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: none; }
.toast.is-error { background: var(--danger); }
.modal-backdrop { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(6, 29, 49, .62); backdrop-filter: blur(4px); }
.modal { width: min(580px, 100%); max-height: min(700px, calc(100vh - 48px)); overflow: auto; padding: 32px; border-radius: 18px; background: white; box-shadow: 0 30px 70px rgba(0,0,0,.25); }
.modal h2 { margin: 0; color: var(--navy-900); font-size: 24px; }
.modal p, .modal li { color: var(--muted); font-size: 13px; line-height: 1.65; }
.modal-close { float: right; width: 36px; height: 36px; margin: -5px -5px 10px 14px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; }
.modal-close svg { width: 17px; height: 17px; }

@media (max-width: 980px) {
  .home-view { grid-template-columns: 1fr; max-width: 680px; gap: 38px; padding-top: 35px; }
  .hero-copy { padding: 0; text-align: center; }
  .eyebrow { justify-content: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .step-list { margin-left: auto; margin-right: auto; text-align: left; }
  .step-list span { background: var(--background); }
  .result-layout { grid-template-columns: 220px 1fr; }
  .result-main { padding-left: 36px; padding-right: 36px; }
}

@media (max-width: 720px) {
  .site-header { width: min(100% - 32px, 680px); height: 78px; }
  .brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .brand-type strong { font-size: 13px; }
  .status-pill { display: none; }
  .home-view, .focus-view { width: min(100% - 28px, 680px); min-height: auto; padding: 24px 0 42px; }
  h1 { font-size: clamp(42px, 14vw, 61px); }
  .hero-lead { font-size: 16px; }
  .step-list { margin-top: 29px; }
  .step-list li { grid-template-columns: 28px 1fr; gap: 5px; font-size: 10px; }
  .step-list strong { width: 28px; height: 28px; }
  .step-list li:not(:last-child)::after { top: 14px; left: 33px; }
  .card-head { padding: 27px 22px 20px; }
  .card-head h2 { font-size: 22px; }
  .max-size { display: none; }
  .dropzone { margin: 0 22px; }
  .drop-target { min-height: 225px; padding: 24px 16px; }
  .options-toggle { width: calc(100% - 44px); margin-left: 22px; margin-right: 22px; }
  .options-summary { display: none; }
  .options-panel { margin-left: 22px; margin-right: 22px; }
  .card-actions { padding: 22px 22px 25px; }
  .trust-row { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .progress-card { min-height: 510px; padding: 35px 20px; }
  .progress-stats { gap: 8px; }
  .stat-chip { min-width: 105px; }
  .result-layout { display: block; }
  .result-aside { padding: 34px 24px; }
  .success-visual { width: 72px; height: 72px; margin-bottom: 17px; border-radius: 21px; }
  .success-visual svg { width: 34px; height: 34px; }
  .result-main { padding: 32px 22px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail { padding: 12px 0; }
  .detail + .detail { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .result-actions { flex-direction: column; }
  .download-top, .delete-top { padding: 34px 22px 27px; align-items: flex-start; gap: 17px; }
  .large-file-type { flex-basis: 61px; width: 61px; height: 74px; font-size: 10px; border-radius: 11px 11px 15px 15px; }
  .download-copy h1, .delete-copy h1 { font-size: 22px; }
  .download-body, .delete-body { padding: 25px 22px 32px; }
  .download-actions { flex-direction: column; }
  .footer-inner { width: calc(100% - 32px); padding: 20px 0; flex-direction: column; justify-content: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .footer-links span { display: none; }
}

@media (max-width: 420px) {
  .brand-type { display: none; }
  .file-selected { padding: 18px 15px; }
  .progress-stats { flex-direction: column; }
  .copy-field button span { display: none; }
  .copy-field button { width: 38px; justify-content: center; padding: 0; }
}

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

/*
 * Best Networks Drop theme
 * Visuele richting gebaseerd op drop.bestnetworks.nl:
 * donker netwerkcanvas, mintgroen signaal, technische mono-accenten.
 */
:root {
  --navy-950: #050914;
  --navy-900: #0a0f1c;
  --navy-800: #121a2b;
  --navy-700: #182338;
  --blue-600: #00e6b8;
  --cyan-500: #00e6b8;
  --cyan-100: #0a3f36;
  --lime-500: #00e6b8;
  --lime-100: #0a3f36;
  --ink: #e8ecf4;
  --muted: #8593ad;
  --muted-2: #4e5c78;
  --line: #1b2740;
  --line-strong: #243352;
  --surface: #121a2b;
  --surface-soft: #0f1728;
  --background: #0a0f1c;
  --danger: #ff5c72;
  --danger-soft: rgba(255, 92, 114, .09);
  --success: #00e6b8;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .2);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 230, 184, .025);
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
}

html { color-scheme: dark; }
body {
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(0, 230, 184, .08), transparent),
    radial-gradient(ellipse 750px 480px at 100% 55%, rgba(0, 230, 184, .035), transparent),
    var(--background);
}
body::before {
  opacity: .18;
  background-image:
    linear-gradient(rgba(0, 230, 184, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 230, 184, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}
::selection { color: var(--cyan-500); background: var(--cyan-100); }

.site-header,
.footer-inner { width: min(1080px, calc(100% - 48px)); }
.site-header { height: 82px; }
.brand { color: var(--cyan-500); }
.brand-mark { width: 38px; height: 38px; flex-basis: 38px; filter: drop-shadow(0 0 12px rgba(0, 230, 184, .14)); }
.brand-type { line-height: 1; }
.brand-type strong { color: var(--ink); font-size: 16px; letter-spacing: -.015em; text-transform: none; }
.brand-type strong em { color: var(--cyan-500); font-style: normal; }
.brand-type span { margin-top: 5px; color: var(--muted-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: .2em; }
.status-pill {
  padding: 6px 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.status-dot { background: var(--cyan-500); box-shadow: 0 0 0 3px var(--cyan-100), 0 0 14px rgba(0, 230, 184, .28); animation: signal-pulse 2.4s ease-in-out infinite; }
@keyframes signal-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .38; } }
.help-link { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 500; }
.help-link:hover { color: var(--cyan-500); }

.home-view { width: min(1080px, calc(100% - 48px)); grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr); gap: clamp(50px, 6vw, 84px); padding-top: 52px; }
.eyebrow { color: var(--cyan-500); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 600; letter-spacing: .09em; }
.eyebrow::before { width: 22px; height: 1px; background: var(--cyan-500); box-shadow: 0 0 8px rgba(0, 230, 184, .4); }
h1 { color: var(--ink); font-size: clamp(42px, 5vw, 65px); font-weight: 650; letter-spacing: -.045em; }
h1 span { color: var(--cyan-500); }
.hero-lead { color: var(--muted); font-size: 16px; }
.step-list strong { color: var(--cyan-500); border-color: var(--line-strong); background: var(--surface); box-shadow: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.step-list span { color: var(--muted); background: var(--background); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 500; }
.step-list li:not(:last-child)::after { background: var(--line-strong); }

.upload-card,
.result-card,
.download-card,
.delete-card { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-lg); }
.upload-card::before,
.result-card::before,
.download-card::before,
.delete-card::before { height: 1px; opacity: .65; background: linear-gradient(90deg, transparent, var(--cyan-500), transparent); }
.card-kicker { color: var(--cyan-500); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 600; letter-spacing: .1em; }
.card-head h2,
.result-copy h2,
.download-copy h1,
.delete-copy h1 { color: var(--ink); font-weight: 650; }
.max-size { color: var(--muted); border-color: var(--line); background: var(--surface-raised, #182338); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 500; }
.max-size svg { color: var(--cyan-500); }

.drop-target { border-color: var(--line-strong); background: #0e1626; }
.drop-target:hover,
.drop-target.is-dragging { border-color: var(--cyan-500); background: var(--cyan-100); transform: none; box-shadow: inset 0 0 40px rgba(0, 230, 184, .025); }
.drop-target:focus-visible { outline-color: var(--cyan-500); }
.upload-icon { color: var(--cyan-500); border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); box-shadow: 0 0 24px rgba(0, 230, 184, .08); }
.upload-icon::after { width: 9px; height: 9px; right: 2px; bottom: 4px; border: 3px solid var(--surface); background: var(--cyan-500); box-shadow: 0 0 8px rgba(0, 230, 184, .5); }
.drop-target h3 { color: var(--ink); font-weight: 600; }
.drop-target p { color: var(--muted-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.browse-link { color: var(--cyan-500); }
.file-selected { border-color: rgba(0, 230, 184, .5); background: var(--cyan-100); }
.file-type,
.large-file-type { color: var(--cyan-500); border-color: var(--line-strong); background: var(--surface-raised, #182338); box-shadow: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.file-name { color: var(--ink); }
.file-info { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.icon-button { color: var(--muted); border-color: var(--line-strong); background: var(--surface); }
.icon-button:hover { color: var(--danger); border-color: rgba(255, 92, 114, .45); background: var(--danger-soft); }

.options-toggle { border-color: var(--line); }
.options-label { color: var(--ink); }
.options-label svg { color: var(--cyan-500); }
.options-summary,
.chevron { color: var(--muted); }
.field > label,
.field-label,
.option-row-copy strong { color: var(--text, #e8ecf4); }
.field-help,
.option-row-copy span { color: var(--muted); }
.select-wrap select,
.text-input { color: var(--ink); border-color: var(--line-strong); background: var(--surface-soft); }
.select-wrap select:focus,
.text-input:focus { border-color: var(--cyan-500); box-shadow: 0 0 0 3px rgba(0, 230, 184, .08); }
.select-wrap svg { color: var(--muted); }
.switch-track { background: var(--line-strong); }
.switch-track::after { background: var(--ink); }
.switch input:checked + .switch-track { background: var(--cyan-500); }
.password-wrap button { color: var(--muted); }
.password-wrap button:hover { color: var(--cyan-500); background: var(--surface-raised, #182338); }

.primary-button { color: #04231c; border-color: var(--cyan-500); background: var(--cyan-500); box-shadow: 0 8px 22px rgba(0, 230, 184, .1); }
.primary-button:hover:not(:disabled) { color: #04231c; border-color: #1ff0c4; background: #1ff0c4; box-shadow: 0 10px 26px rgba(0, 230, 184, .16); }
.primary-button:disabled { color: var(--muted-2); border-color: var(--line-strong); background: var(--line-strong); }
.secondary-button { color: var(--ink); border-color: var(--line-strong); background: var(--surface-raised, #182338); }
.secondary-button:hover { color: var(--cyan-500); border-color: var(--cyan-500); background: var(--surface-raised, #182338); }
.danger-button { color: var(--danger); border-color: var(--danger); background: transparent; }
.danger-button:hover { color: #07110f; background: var(--danger); }
.legal-note { color: var(--muted-2); }
.trust-row { border-color: var(--line); background: var(--surface-soft); }
.trust-item { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.trust-item + .trust-item { border-color: var(--line); }
.trust-item svg { color: var(--cyan-500); }

.progress-ring-bg { stroke: var(--line-strong); }
.progress-ring-value { stroke: var(--cyan-500); filter: drop-shadow(0 0 5px rgba(0, 230, 184, .3)); }
.progress-percent,
.progress-card h2 { color: var(--ink); }
.progress-filename { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.stat-chip { border-color: var(--line); background: var(--surface-soft); }
.stat-chip strong { color: var(--cyan-500); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.stat-chip span,
.cancel-button { color: var(--muted); }

.result-aside { color: var(--ink); border-right: 1px solid var(--line); background: #0e1626; }
.success-visual { color: #04231c; background: var(--cyan-500); box-shadow: 0 0 34px rgba(0, 230, 184, .13); }
.success-visual::after { border-color: #0e1626; background: var(--cyan-500); }
.result-aside p { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.success-label { color: var(--cyan-500); background: var(--cyan-100); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.result-copy h2 { color: var(--ink); }
.result-copy p { color: var(--muted); }
.share-box label { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .05em; }
.copy-field { border-color: var(--line-strong); background: var(--background); }
.copy-field code { color: var(--cyan-500); }
.copy-field button { color: #04231c; background: var(--cyan-500); }
.copy-field button:hover { background: #1ff0c4; }
.detail-grid { border-color: var(--line); }
.detail + .detail { border-color: var(--line); }
.detail span { color: var(--muted-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.detail strong { color: var(--ink); }
.delete-link-toggle { color: var(--muted); }
.delete-link-toggle:hover { color: var(--cyan-500); }

.download-body,
.delete-body { border-color: var(--line); background: var(--surface-soft); }
.download-meta { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.notice { color: var(--cyan-500); border-color: rgba(0, 230, 184, .22); background: var(--cyan-100); }
.notice.warning { color: #f1c76b; border-color: rgba(241, 199, 107, .25); background: rgba(241, 199, 107, .07); }
.notice.danger { color: var(--danger); border-color: rgba(255, 92, 114, .28); background: var(--danger-soft); }
.back-link { color: var(--muted); }
.back-link:hover { color: var(--cyan-500); }
.error-icon { color: var(--danger); background: var(--danger-soft); }
.success-error-icon { color: var(--cyan-500); background: var(--cyan-100); }
.error-state h1 { color: var(--ink); }
.error-state p,
.loading-state p { color: var(--muted); }
.loader { border-color: var(--line-strong); border-top-color: var(--cyan-500); }

.footer-inner { border-color: var(--line); color: var(--muted-2); }
.footer-brand svg { color: var(--cyan-500); }
.footer-links button:hover { color: var(--cyan-500); }
.toast { color: var(--ink); border: 1px solid var(--line-strong); background: var(--surface-raised, #182338); box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
.toast.is-error { color: #fff; border-color: var(--danger); background: var(--danger); }
.modal-backdrop { background: rgba(5, 9, 20, .82); }
.modal { border: 1px solid var(--line-strong); background: var(--surface); }
.modal h2 { color: var(--ink); }
.modal p,
.modal li { color: var(--muted); }
.modal-close { color: var(--muted); border-color: var(--line); background: var(--surface-raised, #182338); }

@media (max-width: 980px) {
  .home-view { max-width: 680px; }
  .step-list span { background: var(--background); }
}
@media (max-width: 720px) {
  .site-header,
  .footer-inner { width: min(100% - 32px, 680px); }
  .brand-type { display: grid; }
  .home-view,
  .focus-view { width: min(100% - 28px, 680px); }
  .result-aside { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .brand-type { display: grid; }
  .brand-type span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
}
