/* NOIR — a shared, self-hosted theme. No changes to data or download behavior. */
:root {
  color-scheme: dark;
  --bg: #080a0f;
  --surface: #11151d;
  --ink: #eef2f7;
  --muted: #939eaf;
  --line: #262d39;
  --accent: #84f4d5;
  --accent-strong: #b4ffe9;
  --accent-soft: rgba(132, 244, 213, .08);
  --violet: #a49aff;
  --warn: #eebc76;
  --danger: #ff8b9c;
  --ok: #84f4d5;
  --shadow: 0 20px 64px rgba(0, 0, 0, .25), inset 0 1px rgba(255, 255, 255, .025);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

html { background: var(--bg); }

body {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 12% 0, rgba(94, 92, 167, .10), transparent 42%),
    radial-gradient(ellipse at 88% 8%, rgba(62, 131, 117, .06), transparent 38%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(128, 150, 185, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 150, 185, .025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(#000, transparent 80%);
}

::selection { background: #365b56; color: #effffb; }
* { scrollbar-width: thin; scrollbar-color: #3a4353 #0e1219; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
a, button, input, textarea, .format-option {
  -webkit-tap-highlight-color: transparent;
}

.topbar {
  min-height: 88px;
  padding: 0 max(32px, calc((100vw - 1456px) / 2));
  border-bottom: 1px solid #20252f;
  background: rgba(8, 10, 15, .88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -.8px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid #47665f;
  border-radius: 11px;
  background: linear-gradient(135deg, #17302b, #14201f);
  box-shadow: 0 0 22px rgba(132, 244, 213, .055), inset 0 1px rgba(132, 244, 213, .12);
  color: var(--accent);
  font: 800 19px Consolas, monospace;
}

.brand-accent { margin-left: 5px; color: var(--accent); }
.brand small {
  display: block;
  margin-top: 2px;
  color: #8b95a8;
  font: 9px/1.4 Consolas, monospace;
  letter-spacing: 2.6px;
}

.nav {
  padding: 5px;
  gap: 4px;
  border-color: #252b36;
  border-radius: 11px;
  background: #10141c;
}

.nav-link, .nav-button {
  min-height: 35px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  transition: background .18s, color .18s;
}

.nav-link:hover, .nav-button:hover { color: var(--ink); background: #1b2230; }
.nav-link.active { background: #1c302c; color: var(--accent); box-shadow: inset 0 0 0 1px #2b4841; }
.nav-button { border-left: 1px solid #29303b; border-radius: 0 6px 6px 0; margin-left: 4px; }

.shell { width: min(1456px, calc(100% - 64px)); margin: 0 auto; }
.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  min-height: 206px;
  padding: 36px 0 32px;
}

.intro-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 17px;
  color: #b0b9c9;
  font: 11px/1.5 Consolas, monospace;
  letter-spacing: 2px;
}

.intro-kicker > span {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(132, 244, 213, .6);
  transform: rotate(45deg);
}

.page-intro h1, .login-intro h1 {
  font-size: clamp(32px, 3.1vw, 46px);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -1.5px;
}

.page-intro h1 > span, .login-intro h1 > span {
  color: var(--accent);
}

.intro-description { margin: 15px 0 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.intro-meta { display: flex; align-items: center; gap: 16px; padding-right: 10px; }
.meta-symbol { color: var(--violet); font: 38px/1 Consolas, monospace; }
.intro-meta strong { display: block; font: 11px/1.5 Consolas, monospace; letter-spacing: 1.7px; color: #c3c1dc; }
.intro-meta div > span { display: block; margin-top: 9px; font-size: 12px; color: var(--muted); }

.workspace { gap: 22px; }
.two-column { grid-template-columns: minmax(300px, 344px) minmax(0, 1fr); align-items: start; }
.panel {
  position: relative;
  min-width: 0;
  border: 1px solid #2a303c;
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(22, 27, 37, .97), rgba(15, 19, 27, .98));
  box-shadow: var(--shadow);
  animation: panel-enter .5s ease both;
}

.panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(159, 175, 205, .30), transparent);
  pointer-events: none;
}

.upload-panel, .redeem-panel, .result-panel { padding: 24px; }
.result-panel { animation-delay: .07s; }
.panel-head { margin-bottom: 25px; }
.panel-head.compact { align-items: center; margin-bottom: 21px; }
h2 { font-size: 22px; font-weight: 650; letter-spacing: -.4px; }
h3 { font-size: 17px; font-weight: 600; }
.panel-description { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: #a0aabd;
  font: 10px/1.5 Consolas, monospace;
  letter-spacing: 1.5px;
}
.compact > .eyebrow { margin: 0; }
.step-number {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid #3a4353;
  border-radius: 6px;
  color: #bdc9d9;
  font-size: 10px;
  letter-spacing: 0;
  background: #1a202b;
}

.drop-zone {
  position: relative;
  align-content: center;
  gap: 12px;
  min-height: 236px;
  padding: 24px 12px;
  border: 1px dashed #3e5655;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 15%, rgba(132, 244, 213, .055), transparent 80%), #0d141a;
  cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.drop-zone:hover, .drop-zone.dragging, .drop-zone:focus-within {
  border-color: var(--accent);
  background: radial-gradient(ellipse at 50% 25%, rgba(132, 244, 213, .10), transparent 80%), #0d181c;
  box-shadow: inset 0 0 32px rgba(132, 244, 213, .03);
}
.drop-icon {
  width: 57px;
  height: 57px;
  margin-bottom: 5px;
  border: 1px solid #375e56;
  border-radius: 16px;
  color: var(--accent);
  background: linear-gradient(135deg, #1e3632, #142421);
  box-shadow: 0 8px 28px #080c1280;
  font: 33px/1 Consolas, monospace;
  transition: transform .2s;
}
.drop-zone:hover .drop-icon { transform: translateY(-3px); }
.drop-title { font-size: 16px; font-weight: 650; }
.drop-hint { color: #a0acbe; font-size: 12px; }
.drop-meta { margin-top: 3px; color: var(--accent); font: 11px/1.7 Consolas, "Microsoft YaHei", monospace; }
.panel-footnote { display: flex; align-items: center; gap: 8px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #262d39; color: #8a96aa; font: 10px/1.7 Consolas, monospace; letter-spacing: 1.5px; }
.panel-footnote span { color: var(--accent); font-size: 15px; }

.action-row { gap: 9px; }
.primary-button, .secondary-button, .icon-button, .secondary-link {
  min-height: 42px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 650;
  transition: color .18s, background .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.primary-button {
  min-width: 0;
  border: 1px solid #a3ffe5;
  background: linear-gradient(115deg, #a2fae0, #79e9ce);
  color: #0a2921;
  box-shadow: 0 3px 17px rgba(104, 235, 199, .1), inset 0 1px rgba(255, 255, 255, .24);
}
.primary-button:hover:not(:disabled) { background: #b5ffe9; box-shadow: 0 4px 25px rgba(104, 235, 199, .2); transform: translateY(-1px); }
.primary-button:active:not(:disabled), .secondary-button:active:not(:disabled) { transform: translateY(1px); }
.secondary-button, .icon-button, .secondary-link {
  min-width: 0;
  background: #1b2230;
  border-color: #354052;
  color: #d5deeb;
}
.secondary-button:hover:not(:disabled), .icon-button:hover:not(:disabled), .secondary-link:hover {
  border-color: #657b90;
  background: #253142;
  color: #f1f8ff;
}
.icon-button { width: 42px; flex: 0 0 42px; }
.button-icon { width: 15px; height: 15px; filter: brightness(0) invert(.88); }
.primary-button .button-icon { filter: brightness(0) saturate(100%); opacity: .8; }
button:disabled { opacity: .38; }
.upload-form > .action-row .primary-button { flex: 1; }
.redeem-form > .action-row { display: grid; grid-template-columns: 1fr 1.2fr 38px; gap: 7px; }
.redeem-form > .action-row > button { min-width: 0; padding: 0 8px; gap: 6px; white-space: nowrap; font-size: 12px; }
.redeem-form > .action-row .icon-button { width: 38px; }
.result-actions .secondary-button { min-height: 35px; padding: 0 12px; font-size: 12px; background: #19202c; }
.delete-record-button {
  min-height: 29px;
  padding: 0 10px;
  max-width: 100%;
  border: 1px solid #62404b;
  border-radius: 6px;
  background: #301e29;
  color: #ff9dac;
  font-size: 12px;
  font-weight: 500;
}
.delete-record-button:hover:not(:disabled) { background: #4c2535; border-color: #c26680; box-shadow: 0 0 14px #fc577510; }

.file-chip { background: #151f2a; border-color: #303c4c; border-radius: 8px; font-size: 12px; }
.file-list { max-height: 320px; overflow-y: auto; }
.status-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 20px;
  margin: 16px 0;
  color: #a7b3c6;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.status-line:not(:empty)::before { content: ""; flex: 0 0 4px; width: 4px; height: 4px; margin-top: 8px; border-radius: 50%; background: #8195ab; }
.status-line:empty { display: none; }
.latest-upload { padding: 16px; margin: 16px 0; border: 1px solid #32584e; border-radius: 10px; background: #101f20; }
.latest-upload .eyebrow { color: var(--accent); margin-bottom: 6px; }
.latest-upload-head { gap: 12px; }

.table-wrap { border-color: #2a3341; border-radius: 10px; background: #10151e; }
.result-panel table { table-layout: fixed; min-width: 0; }
th { background: #1b222e; color: #a2afc2; font-size: 11px; font-weight: 500; letter-spacing: .4px; }
td { color: #c5cedc; font-size: 12px; }
.result-panel th, .result-panel td { padding: 14px 10px; border-bottom-color: #252d3b; overflow-wrap: anywhere; }
tbody tr { transition: background .15s; }
tbody tr:nth-child(even) { background: #131a24; }
tbody tr:hover { background: #1b2931; }
.result-panel .code-text { color: #b1ebd9; font: 12px/1.6 Consolas, "Courier New", monospace; overflow: visible; white-space: normal; overflow-wrap: anywhere; }
.result-panel .file-name { font-size: 12px; line-height: 1.6; }
.admin-results th:nth-child(1), .admin-results td:nth-child(1) { width: 30%; }
.admin-results th:nth-child(2), .admin-results td:nth-child(2) { width: 28%; }
.admin-results th:nth-child(3), .admin-results td:nth-child(3) { width: 8%; color: #a3afc0; }
.admin-results th:nth-child(4), .admin-results td:nth-child(4) { width: 22%; color: #a3afc0; font-variant-numeric: tabular-nums; }
.admin-results th:nth-child(5), .admin-results td:nth-child(5) { width: 12%; }
.redeem-results th:nth-child(1), .redeem-results td:nth-child(1) { width: 44%; }
.redeem-results th:nth-child(2), .redeem-results td:nth-child(2) { width: 38%; }
.redeem-results th:nth-child(3), .redeem-results td:nth-child(3) { width: 18%; }
.empty-row td { height: 238px; color: #98a6ba; background: radial-gradient(ellipse at center, #1a253c50, transparent 70%); }
.empty-row td::before { content: "{ }"; display: block; margin: 0 0 16px; color: #687c91; font: 33px/1.3 Consolas, monospace; letter-spacing: 5px; }
.pill { min-height: 25px; padding: 3px 8px; border: 1px solid transparent; border-radius: 6px; font-size: 11px; font-weight: 500; line-height: 1.5; }
.pill.ok { color: #9cf3d7; border-color: #2e554a; background: #19372e; }
.pill.missing { color: #f1c58e; border-color: #5c4933; background: #332c23; }
.pagination-bar { margin-top: 19px; gap: 9px; }
.pagination-bar .icon-button { width: 30px; min-height: 30px; flex-basis: 30px; border-radius: 6px; }
.page-info, .total-count, .page-size { font-size: 11px; font-weight: 500; color: #a1aec2; }
.page-size { margin-left: 3px; }
.page-size select { min-height: 30px; padding: 0 22px 0 9px; border-radius: 6px; border-color: #374459; background: #19222e; color: #d7e6f5; font-size: 11px; }
.total-count { margin-left: auto; color: var(--accent); }

.field-label { color: #bac6d8; font-size: 12px; font-weight: 500; }
textarea, .text-input {
  border-color: #343e50;
  border-radius: 9px;
  background: #0a1019;
  color: #dbe6f3;
  caret-color: var(--accent);
  box-shadow: inset 0 2px 7px #0002;
  transition: box-shadow .18s, border-color .18s;
}
textarea::placeholder, .text-input::placeholder { color: #8090a6; opacity: 1; }
textarea:focus, .text-input:focus { border-color: #65bba5; box-shadow: 0 0 0 3px #84f4d50c; }
textarea:disabled, .text-input:disabled { opacity: .6; }
#codesInput { min-height: 167px; padding: 14px; font: 13px/1.85 Consolas, "Microsoft YaHei", monospace; }
.input-hint { margin: -5px 0 3px; color: #939fb3; font-size: 11px; line-height: 1.7; }
.code-output { min-height: 108px; font-size: 12px; color: #bbf7e2; }
.text-input { min-height: 46px; font-size: 13px; }
.text-input:-webkit-autofill { -webkit-text-fill-color: #dbe6f3; box-shadow: 0 0 0 1000px #0a1019 inset; }
.download-format { gap: 9px; }
.download-format legend { margin-bottom: 12px; }
.format-option { padding: 13px 10px; gap: 8px; background: #141b27; border-color: #354052; border-radius: 9px; }
.format-option:hover { border-color: #64758f; }
.format-option:has(input:checked) { background: linear-gradient(125deg, #1d3932, #172b28); border-color: #5bb59d; box-shadow: inset 0 0 15px rgba(132, 244, 213, .025); }
.format-option:has(input[value="cpa"]:checked) { background: linear-gradient(125deg, #302c4c, #242139); border-color: #8f83d8; }
.format-option input[value="cpa"] { accent-color: var(--violet); }
.format-option strong { font-size: 13px; font-weight: 600; color: #dce8ee; }
.format-option small { color: #a0b3bd; font-size: 10px; }
.format-hint { color: #9eacbe; font-size: 11px; line-height: 1.75; }
.format-option:has(input:disabled) { opacity: .6; cursor: wait; }

.signal-visual { position: relative; width: 260px; height: 157px; margin-right: 40px; flex: 0 0 260px; }
.signal-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse, #84f4d509, transparent 70%); }
.signal-orbit { position: absolute; width: 158px; height: 158px; left: 51px; top: 0; border: 1px solid #353a58; border-radius: 50%; transform: rotate(-25deg); }
.signal-orbit::before { content: ""; position: absolute; inset: 13px; border: 1px dashed #3d4a52; border-radius: 50%; animation: orbit-spin 40s linear infinite; }
.signal-orbit::after { content: ""; position: absolute; top: 31px; right: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 16px #a49aff9a; }
.signal-core { position: absolute; top: 31px; left: 82px; width: 96px; height: 96px; display: grid; align-content: center; justify-items: center; gap: 4px; border-radius: 23px; border: 1px solid #3a615a; transform: rotate(-8deg); background: linear-gradient(135deg, #223733, #16212b 65%); box-shadow: 8px 13px 28px #0005, inset 0 1px #a5ffe315; animation: core-float 7s ease-in-out infinite; }
.signal-core > span { color: #b0f9e4; font: 29px/1.2 Consolas, monospace; }
.signal-core small { color: #8fb0ae; font: 10px Consolas, monospace; letter-spacing: 2px; }
.signal-tag { position: absolute; border: 1px solid #384554; padding: 7px 13px; background: #131e2a; color: #a6e6d7; font: 11px Consolas, monospace; border-radius: 6px; box-shadow: 0 6px 22px #0004; }
.tag-sub2api { top: 19px; left: 0; transform: rotate(-7deg); }
.tag-cpa { right: 0; bottom: 19px; color: #c2b9ff; border-color: #51496d; background: #231f35; transform: rotate(6deg); }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 36px; padding: 23px 0 30px; border-top: 1px solid #222935; color: #8b98ad; font: 10px/1.7 Consolas, "Microsoft YaHei", monospace; letter-spacing: .9px; }
.footer-divider { margin: 0 10px; color: #59687d; }

.login-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); align-items: center; gap: 90px; width: min(1060px, calc(100% - 64px)); margin: 80px auto 48px; }
.login-intro h1 { font-size: clamp(40px, 4vw, 58px); line-height: 1.35; }
.login-intro .intro-description { margin-top: 21px; }
.login-panel { padding: 34px; box-shadow: 0 28px 80px #0004, 0 0 80px #9384ef04; }
.login-panel::before { background: linear-gradient(90deg, transparent, #9a8ce967, transparent); }
.login-panel .panel-head { margin-bottom: 29px; }
.login-form { gap: 12px; }
.login-form label:not(:first-child) { margin-top: 7px; }
.login-form .action-row { margin-top: 13px; display: grid; grid-template-columns: 1fr; }
.login-form .primary-button { width: 100%; }
.login-form .secondary-link { background: transparent; border-color: transparent; color: #a7b6cb; font-size: 12px; min-height: 32px; }
.login-form .secondary-link:hover { color: var(--accent); }
.login-form .status-line { color: #ffb2c1; margin-bottom: 0; }
.login-footer { width: min(1060px, calc(100% - 64px)); margin: 0 auto; }
.login-art { position: relative; display: flex; align-items: center; gap: 40px; min-height: 185px; margin-top: 23px; padding-left: 14px; }
.login-art-grid { position: absolute; inset: 15px 0 20px 0; background: linear-gradient(#85e5ca09 1px, transparent 1px), linear-gradient(90deg, #85e5ca09 1px, transparent 1px); background-size: 20px 20px; mask-image: radial-gradient(ellipse at 35% 50%, #000, transparent 70%); transform: skewY(-8deg); }
.art-bracket { color: #576778; font: 300 80px/1 Consolas, monospace; }
.art-code { color: #a2efdd; font: 400 61px/1 Consolas, monospace; text-shadow: 0 0 35px #85e5ca26; transform: rotate(-8deg); }
.art-code i { color: var(--violet); font-style: normal; }
.bracket-right { color: #74649b; }
.login-art > small { position: absolute; bottom: 0; left: 12px; color: #8a9bb2; font: 9px/1.5 Consolas, monospace; letter-spacing: 1.8px; }

@keyframes panel-enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes core-float { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-5px) rotate(-5deg); } }

@media (max-width: 1180px) {
  .two-column { grid-template-columns: minmax(280px, 310px) minmax(0, 1fr); }
  .upload-panel, .redeem-panel, .result-panel { padding: 20px; }
  .shell { width: calc(100% - 40px); }
  .result-panel th, .result-panel td { padding: 12px 7px; }
  .result-panel .code-text { font-size: 11px; }
  .intro-meta { display: none; }
  .signal-visual { margin-right: 18px; }
}

@media (max-width: 1000px) {
  .two-column { grid-template-columns: 1fr; }
  .shell { width: min(850px, calc(100% - 40px)); margin-top: 0; }
  .page-intro { min-height: 190px; gap: 20px; }
  .signal-visual { transform: scale(.8); margin: 0 -20px 0 -30px; flex-basis: 240px; }
  .upload-panel, .redeem-panel, .result-panel { padding: 24px; }
  .drop-zone { min-height: 195px; }
  #codesInput { min-height: 144px; }
  .result-panel .code-text { font-size: 12px; }
  .login-shell { gap: 36px; margin-top: 55px; }
  .login-panel { padding: 28px; }
  .login-art { gap: 24px; }
}

@media (max-width: 700px) {
  .topbar { padding: 0 20px; min-height: 78px; gap: 12px; }
  .brand { font-size: 18px; gap: 9px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand small { font-size: 8px; letter-spacing: 2px; }
  .nav-link, .nav-button { padding: 0 10px; font-size: 12px; }
  .signal-visual { display: none; }
  .page-intro { min-height: 174px; padding: 28px 0; }
  .page-intro h1 { font-size: 34px; }
  .login-shell { display: block; width: min(460px, calc(100% - 40px)); margin-top: 30px; }
  .login-intro { margin-bottom: 28px; }
  .login-intro h1 { font-size: 35px; }
  .login-intro h1 br { display: none; }
  .login-intro .intro-description { margin-top: 13px; }
  .login-art { display: none; }
  .login-footer { width: min(460px, calc(100% - 40px)); }
}

@media (max-width: 560px) {
  .topbar { align-items: stretch; padding: 15px 16px; gap: 14px; }
  .brand { align-self: flex-start; }
  .nav { width: 100%; }
  .nav-link { flex: 1; text-align: center; }
  .nav-button { flex-shrink: 0; }
  .shell { width: calc(100% - 28px); }
  .page-intro h1 { font-size: clamp(27px, 7.6vw, 36px); letter-spacing: -1px; }
  .intro-kicker { font-size: 10px; margin-bottom: 12px; }
  .intro-description { font-size: 12px; margin-top: 11px; }
  .workspace { gap: 18px; }
  .panel { border-radius: 12px; }
  .upload-panel, .redeem-panel, .result-panel { padding: 16px; }
  .panel-head.compact { align-items: center; gap: 8px; margin-bottom: 16px; }
  .compact h2 { font-size: 18px; }
  .compact .eyebrow { font-size: 9px; gap: 6px; letter-spacing: .7px; }
  .step-number { width: 20px; height: 20px; }
  .primary-button, .secondary-button { flex: initial; }
  .result-actions { gap: 6px; }
  .result-actions .secondary-button { padding: 0 8px; font-size: 11px; gap: 5px; }
  .result-actions .button-icon { width: 12px; height: 12px; }
  .result-panel th, .result-panel td { padding: 11px 4px; font-size: 11px; letter-spacing: 0; }
  .result-panel .code-text { font-size: 10px; line-height: 1.65; }
  .result-panel .file-name { font-size: 11px; }
  .admin-results th:nth-child(1), .admin-results td:nth-child(1) { width: 22%; }
  .admin-results th:nth-child(2), .admin-results td:nth-child(2) { width: 30%; }
  .admin-results th:nth-child(3), .admin-results td:nth-child(3) { width: 10%; }
  .admin-results th:nth-child(4), .admin-results td:nth-child(4) { width: 22%; }
  .admin-results th:nth-child(5), .admin-results td:nth-child(5) { width: 16%; }
  .delete-record-button { min-width: 0; min-height: 27px; padding: 0 4px; font-size: 11px; }
  .redeem-results th:nth-child(1), .redeem-results td:nth-child(1) { width: 32%; }
  .redeem-results th:nth-child(2), .redeem-results td:nth-child(2) { width: 44%; }
  .redeem-results th:nth-child(3), .redeem-results td:nth-child(3) { width: 24%; }
  .pill { padding: 3px 5px; font-size: 10px; }
  .empty-row td { height: 195px; }
  .pagination-bar { gap: 6px; }
  .page-info, .page-size, .total-count { font-size: 10px; }
  .latest-upload-head { align-items: stretch; }
  .site-footer { margin-top: 26px; font-size: 9px; }
  .login-shell { width: calc(100% - 28px); }
  .login-panel { padding: 24px; }
  .login-footer { width: calc(100% - 28px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
