@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/assets/fonts/atkinson-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/assets/fonts/atkinson-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kalam";
  src: url("/assets/fonts/kalam-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #F6F3EC;
  --sheet: #FFFFFF;
  --ink: #111827;
  --muted: #4B5366;
  --muted-soft: #6B7285;
  --line: #E4DED2;
  --accent: #2A48E8;
  --accent-deep: #1B33B5;
  --accent-ink: #FFFFFF;
  --accent-soft: #E5EAFF;
  --note: #FFD84A;
  --note-ink: #2A2208;
  --ok: #11804A;
  --ok-soft: #DCF3E6;
  --error: #B42318;
  --error-soft: #FDECEA;
  --violet: #6D4BE0;
  --violet-soft: #EFEBFF;
  --green: #1C8A59;
  --green-soft: #E3F7EC;
  --shadow: rgba(17, 24, 39, .18);
  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --f-hand: "Kalam", "Comic Sans MS", cursive;
  --w: 1120px;
  --r: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 460px at 92% -6%, rgba(199, 209, 255, .55), transparent 62%),
    radial-gradient(760px 420px at -8% 18%, rgba(201, 241, 222, .5), transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.2vw, 4.9rem); font-weight: 800; font-variation-settings: "wdth" 82; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 780; font-variation-settings: "wdth" 86; }
h3 { font-size: 1.24rem; font-weight: 720; letter-spacing: -.008em; }
p { margin: 0; }
::selection { background: var(--note); color: var(--note-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap {
  width: 100%;
  max-width: var(--w);
  margin: 0 auto;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  margin: 0 0 10px;
  font-family: var(--f-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.mark {
  background: linear-gradient(transparent 58%, var(--note) 58%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 .08em;
  border-radius: 3px;
}

/* Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(228, 222, 210, .85);
  background: rgba(246, 243, 236, .84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand-logo { flex: none; filter: drop-shadow(0 3px 4px rgba(27, 51, 181, .14)); }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; font-variation-settings: "wdth" 86; }
.brand-divider { width: 1px; height: 18px; background: var(--line); margin: 0 4px; flex: none; }
.brand-page { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: .64rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.secure-pill svg { color: var(--ok); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .9em 1.35em;
  border: 2px solid var(--accent);
  border-radius: 999px;
  font: 700 .94rem/1 var(--f-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s, background .18s;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 4px 0 var(--accent-deep), 0 14px 30px -16px var(--accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--accent-deep), 0 18px 34px -16px var(--accent); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-deep); }
.btn-ghost { background: rgba(255, 255, 255, .72); color: var(--accent); border-color: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line), 0 10px 22px -18px var(--shadow); }
.btn-small { padding: .58em .95em; font-size: .78rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* Hero */
.main { padding-bottom: 40px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 36px;
  align-items: center;
  padding: 64px 0 44px;
}
.hero .lead { margin-top: 20px; max-width: 56ch; font-size: 1.08rem; color: var(--muted); }
.hero-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 26px;
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .02em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero-steps b { color: var(--accent); font-weight: 500; margin-right: 3px; }
.hero-arrow { color: var(--line); }
.hero-art { position: relative; min-height: 300px; display: flex; align-items: center; justify-content: center; isolation: isolate; }
.hero-art img { position: relative; z-index: 2; width: min(210px, 70%); height: auto; filter: drop-shadow(0 24px 24px rgba(17, 24, 39, .16)); }
.art-note {
  position: absolute;
  z-index: 3;
  top: 2%;
  left: 2%;
  padding: 7px 11px;
  background: var(--note);
  color: var(--note-ink);
  border-radius: 6px;
  font-family: var(--f-hand);
  font-size: 1rem;
  line-height: 1.15;
  transform: rotate(-5deg);
  box-shadow: 0 8px 20px -14px rgba(42, 34, 8, .6);
}
.art-note-large { top: 8%; left: 4%; font-size: 1.25rem; padding: 9px 14px; }
.art-sheet { position: absolute; z-index: 1; width: 150px; height: 190px; background: var(--sheet); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 18px 35px -30px var(--shadow); }
.art-sheet::before { content: ""; position: absolute; left: 20px; right: 20px; top: 30px; height: 5px; border-radius: 3px; background: var(--accent-soft); box-shadow: 0 16px 0 var(--accent-soft), 0 32px 0 var(--accent-soft), 0 48px 0 var(--line); }
.art-sheet-back { transform: rotate(-11deg) translate(-24px, 6px); }
.art-sheet-front { transform: rotate(8deg) translate(22px, -2px); background: #FFFDF8; }

/* Panels and steps */
.panel {
  margin-top: 18px;
  padding: clamp(20px, 3.2vw, 34px);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 30px 70px -56px var(--shadow);
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.step-label { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid #C7D1FF;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: .76rem;
  font-weight: 500;
}
.step-num-muted { background: var(--ok-soft); border-color: #BFE8D1; color: var(--ok); }
.panel-note { font-family: var(--f-mono); font-size: .68rem; color: var(--muted-soft); white-space: nowrap; padding-top: 6px; }
.panel-sub { margin: -6px 0 0 58px; max-width: 70ch; color: var(--muted); font-size: .92rem; }
.count-pill {
  display: inline-flex;
  align-items: center;
  padding: .42em .75em;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
  font-family: var(--f-mono);
  font-size: .68rem;
}

/* Dropzone */
.dropzone {
  position: relative;
  display: block;
  padding: 36px 22px;
  border: 2px dashed #A9B7FF;
  border-radius: 20px;
  background: linear-gradient(180deg, #F9FAFF, #F0F3FF);
  text-align: center;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s, box-shadow .18s;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--accent); background: #EDF1FF; }
.dropzone.dragover { border-color: var(--accent); border-style: solid; background: var(--accent-soft); transform: translateY(-2px); box-shadow: 0 16px 34px -28px var(--accent); }
.drop-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border: 1px solid #D8DFFF;
  border-radius: 18px;
  background: var(--sheet);
  color: var(--accent);
  box-shadow: 0 10px 25px -20px var(--accent);
}
.drop-title { font-family: var(--f-display); font-size: clamp(1.3rem, 2.4vw, 1.65rem); font-weight: 760; letter-spacing: -.02em; }
.drop-sub { margin-top: 4px; color: var(--muted); font-size: .95rem; }
.text-link { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.drop-types { margin-top: 14px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .03em; color: var(--muted-soft); }

/* Upload queue */
.upload-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.upload-list:empty { display: none; }
.upload-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 190px) minmax(104px, auto);
  align-items: center;
  gap: 16px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #FBFAF7;
}
.upload-file { min-width: 0; }
.upload-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: .92rem; }
.upload-meta { display: block; margin-top: 1px; font-family: var(--f-mono); font-size: .66rem; color: var(--muted-soft); }
.upload-status { text-align: right; font-family: var(--f-mono); font-size: .66rem; color: var(--muted); }
.upload-item.is-success { border-color: #BFE8D1; background: #F6FCF8; }
.upload-item.is-success .upload-status { color: var(--ok); }
.upload-item.is-error { border-color: #F3C8C2; background: #FFF9F8; }
.upload-item.is-error .upload-status { color: var(--error); }
.upload-hint { margin-top: 12px; font-size: .8rem; color: var(--muted); }

progress {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  overflow: hidden;
}
progress::-webkit-progress-bar { background: var(--accent-soft); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; transition: width .2s linear; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
.upload-item.is-success progress::-webkit-progress-value { background: var(--ok); }
.upload-item.is-success progress::-moz-progress-bar { background: var(--ok); }
.upload-item.is-error progress::-webkit-progress-value { background: var(--error); }
.upload-item.is-error progress::-moz-progress-bar { background: var(--error); }

/* History */
.empty-state {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0 0;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: #FBFAF7;
  color: var(--muted);
  font-size: .9rem;
}
.empty-state strong { color: var(--ink); }
.empty-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 13px; background: var(--paper); color: var(--muted); }
.history-list { list-style: none; margin: 16px 0 0; padding: 0; }
.history-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.history-file { min-width: 0; }
.history-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; font-weight: 700; }
.history-meta { display: block; margin-top: 1px; font-family: var(--f-mono); font-size: .64rem; color: var(--muted-soft); }
.source-chip { padding: .3em .55em; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); font-family: var(--f-mono); font-size: .58rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.status-chip { padding: .3em .55em; border-radius: 999px; font-family: var(--f-mono); font-size: .58rem; letter-spacing: .02em; white-space: nowrap; }
.status-success { background: var(--ok-soft); color: var(--ok); }
.status-pending { background: var(--accent-soft); color: var(--accent); }
.status-failure { background: var(--error-soft); color: var(--error); }
.history-item.is-error .history-name { color: var(--error); }
.history-hash { font-family: var(--f-mono); font-size: .64rem; color: var(--muted-soft); white-space: nowrap; }

/* Connectors */
.connectors { margin-top: 66px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .7fr); gap: 32px; align-items: end; margin-bottom: 22px; }
.section-lead { color: var(--muted); font-size: .95rem; max-width: 48ch; justify-self: end; }
.connector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 22px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 26px 60px -52px var(--shadow);
}
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; }
.card-icon-blue { background: var(--accent-soft); color: var(--accent); }
.card-icon-violet { background: var(--violet-soft); color: var(--violet); }
.card-icon-green { background: var(--green-soft); color: var(--green); }
.card-tag { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-soft); }
.card > p { color: var(--muted); font-size: .88rem; }
.card > .btn-block { margin-top: auto; }
.card-note { border-top: 1px dashed var(--line); padding-top: 10px; color: var(--muted-soft) !important; font-size: .74rem !important; }
.card-error { color: var(--error) !important; font-size: .78rem !important; }
.imap-form, .google-form { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.setup-copy { font-size: .8rem !important; }
.setup-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #FBFAF7; }
.setup-line > span { font-family: var(--f-mono); font-size: .6rem; text-transform: uppercase; color: var(--muted); }
.setup-line code { min-width: 0; overflow-wrap: anywhere; font-family: var(--f-mono); font-size: .68rem; }
.copy-btn { border: 0; background: transparent; color: var(--accent); font-family: var(--f-mono); font-size: .64rem; cursor: pointer; padding: 0; }
.setup-scopes { margin: 0; font-size: .7rem !important; overflow-wrap: anywhere; }
.setup-scopes code { font-family: var(--f-mono); font-size: .62rem; }
.setup-link { font-size: .78rem; }
.field { display: grid; gap: 5px; min-width: 0; }
.field > span { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FBFAF7;
  color: var(--ink);
  font: 400 .92rem var(--f-body);
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(42, 72, 232, .13); background: #fff; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) 82px; gap: 8px; }
.form-error { color: var(--error); font-size: .8rem; }

/* Jobs */
.job { margin-top: 4px; padding-top: 13px; border-top: 1px dashed var(--line); }
.job-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 7px; }
.job-phase { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.job-pct { font-family: var(--f-mono); font-size: .64rem; color: var(--accent); }
.job-progress { height: 7px; }
.job-detail { margin-top: 8px; font-size: .76rem; color: var(--muted); }
.job-current { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--f-mono); font-size: .62rem; color: var(--muted-soft); min-height: 1em; }
.job-current:empty { display: none; }
.job-error { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--error-soft); color: var(--error); font-size: .76rem; }
.job.is-done .job-pct { color: var(--ok); }
.job.is-done .job-progress::-webkit-progress-value { background: var(--ok); }
.job.is-done .job-progress::-moz-progress-bar { background: var(--ok); }
.job.is-error .job-pct { color: var(--error); }
.job.is-error .job-progress::-webkit-progress-value { background: var(--error); }
.job.is-error .job-progress::-moz-progress-bar { background: var(--error); }
.security-note { display: flex; gap: 8px; align-items: flex-start; justify-content: center; margin-top: 20px; color: var(--muted-soft); font-family: var(--f-mono); font-size: .65rem; line-height: 1.5; }
.security-note svg { flex: none; margin-top: 1px; color: var(--ok); }

/* Footer */
.site-footer { margin-top: 80px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .36); }
.footer-inner { display: flex; align-items: center; gap: 18px; padding: 22px 0 26px; color: var(--muted-soft); font-size: .8rem; }
.footer-brand { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-display); font-weight: 800; color: var(--ink); flex: none; }
.footer-links { display: flex; gap: 16px; margin-left: auto; flex: none; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* Login */
.login-page { display: flex; flex-direction: column; }
.topbar-plain { position: static; }
.login-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 48px; align-items: center; padding-top: 54px; padding-bottom: 54px; }
.login-card { max-width: 610px; padding: clamp(26px, 4vw, 46px); background: var(--sheet); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 40px 90px -70px var(--shadow); }
.login-card h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
.login-card .lead { margin-top: 18px; max-width: 46ch; color: var(--muted); }
.login-form { display: grid; gap: 14px; margin-top: 28px; max-width: 380px; }
.login-form .field input { height: 48px; }
.login-help { margin-top: 18px; font-size: .82rem; color: var(--muted); }
.login-side { position: relative; min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; isolation: isolate; }
.login-side img { position: relative; z-index: 2; width: min(300px, 80%); height: auto; filter: drop-shadow(0 30px 30px rgba(17, 24, 39, .17)); }
.login-side .art-sheet { width: 190px; height: 235px; }
.login-side .art-sheet::before { left: 26px; right: 26px; top: 38px; }
.login-side .art-sheet-back { transform: rotate(-9deg) translate(-30px, 8px); }
.login-side .art-sheet-front { transform: rotate(7deg) translate(28px, -4px); }
.login-points { position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.login-points li { padding: .42em .7em; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .72); color: var(--muted); font-family: var(--f-mono); font-size: .6rem; }
.login-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid var(--line); color: var(--muted-soft); font-size: .78rem; }
.login-footer a { color: var(--muted); text-decoration: none; }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; padding-top: 46px; }
  .hero-art { min-height: 250px; }
  .connector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connector-grid .connector:first-child { grid-column: 1 / -1; }
  .section-head { grid-template-columns: 1fr; gap: 10px; }
  .section-lead { justify-self: start; }
  .login-main { grid-template-columns: minmax(0, 1fr); padding-top: 36px; }
  .login-card { margin: 0 auto; }
  .login-side { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar-inner { min-height: 62px; }
  .brand-page, .brand-divider, .secure-pill { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 38px; }
  .hero-art { display: none; }
  .hero-steps { font-size: .62rem; }
  .panel-head { flex-direction: column; gap: 8px; }
  .panel-note { padding-top: 0; }
  .panel-sub { margin-left: 0; }
  .upload-item { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .upload-progress { grid-column: 1 / -1; grid-row: 2; }
  .upload-status { grid-column: 2; grid-row: 1; }
  .connector-grid { grid-template-columns: 1fr; }
  .connector-grid .connector:first-child { grid-column: auto; }
  .footer-inner { flex-wrap: wrap; gap: 10px 18px; }
  .footer-links { margin-left: 0; width: 100%; }
  .history-item { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; }
  .history-hash { grid-column: 1; grid-row: 2; font-size: .6rem; }
  .source-chip { grid-column: 2; grid-row: 1; }
  .status-chip { grid-column: 2; grid-row: 2; }
  .security-note { justify-content: flex-start; }
}
@media (max-width: 460px) {
  .dropzone { padding: 28px 14px; }
  .drop-types { font-size: .6rem; }
  .btn { padding: .85em 1.1em; }
  .step-num { width: 38px; height: 38px; border-radius: 12px; }
  .login-card { padding: 22px; border-radius: 22px; }
  .login-footer { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
