:root {
  color-scheme: light;
  --ink: #171929;
  --muted: #7d818c;
  --orange: #ff7900;
  --orange-deep: #ed4a17;
  --yellow: #ffd51f;
  --blue: #258df4;
  --mint: #16bcb5;
  --line: #e9e9ed;
  --surface: #ffffff;
  --soft: #f7f7f9;
  --green: #16865c;
  --red: #d43b29;
  --font: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14px 14px, rgba(255, 176, 0, .07) 2px, transparent 2.5px) 0 0 / 28px 28px,
    #fffdf9;
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: 0;
}

button, input, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }

.app-shell {
  width: min(100% - 30px, 980px);
  margin: 0 auto;
  padding: 26px 0 22px;
}

.wide-shell { width: min(100% - 30px, 1180px); }
.submit-shell { width: min(100% - 24px, 760px); }

/* Submit page */
.submit-page { background: #f6f6f6; }

.submit-hero {
  position: relative;
  display: block;
  align-items: center;
  margin-bottom: 22px;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: #ffe100;
  box-shadow: 6px 6px 0 var(--ink);
}

.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 22px; }

.round-back {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(38, 42, 52, .1);
  font-size: 25px;
}

.round-back:hover { transform: translateY(-1px); }

.hero-title {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 15px;
}

.hero-title img { padding: 10px; border: 2px solid var(--ink); border-radius: 16px; background: #fff; filter: none; }
.hero-title h1 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 900; }

.queue-status {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: var(--ink);
  color: #fff;
  box-shadow: none;
  transform: none;
  white-space: nowrap;
}
.queue-status span { font-size: 12px; font-weight: 720; }
.queue-status strong { min-width: 30px; padding: 4px 8px; border-radius: 14px; background: #ffe100; color: var(--ink); font-size: 15px; text-align: center; }

.announcement-panel { margin-top: 18px; overflow: hidden; border: 2px solid var(--ink); border-radius: 18px; background: #fff; }
.announcement-row { min-height: 50px; display: grid; grid-template-columns: 28px 92px 1fr; align-items: center; gap: 10px; padding: 10px 14px; }
.announcement-row + .announcement-row { border-top: 1px dashed #c9c9c9; }
.announcement-row > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #ffe100; font-size: 12px; font-weight: 900; }
.announcement-row strong { font-size: 14px; }
.announcement-row p { margin: 0; color: #d92312; font-size: 13px; font-weight: 700; line-height: 1.45; }

.pixel-mascot {
  position: absolute;
  z-index: 1;
  top: 16px;
  right: 18px;
  width: 130px;
  height: 130px;
  border-radius: 47% 53% 46% 54%;
  background: linear-gradient(145deg, #ffe52e 12%, #ffc400 72%, #ff9d00 100%);
  box-shadow: inset -10px -12px 22px rgba(255, 139, 0, .18), 0 14px 28px rgba(255, 174, 0, .2);
  transform: rotate(4deg);
}

.pixel-mascot .spike { position: absolute; z-index: -1; width: 38px; height: 38px; border-radius: 8px 80% 8px 80%; background: #ffb900; }
.spike-one { top: 5px; right: 7px; transform: rotate(10deg); }
.spike-two { top: 43px; right: -14px; transform: rotate(38deg); }
.spike-three { bottom: 11px; right: -6px; transform: rotate(68deg); }
.pixel-mascot .eye { position: absolute; top: 35px; width: 29px; height: 37px; border-radius: 50%; background: #fff; box-shadow: 0 3px 7px rgba(74,43,0,.12); }
.eye-left { left: 29px; }
.eye-right { left: 61px; }
.eye-left::after { content: ""; position: absolute; top: 11px; left: 11px; width: 9px; height: 15px; border-radius: 50%; background: #29221e; }
.eye-right::after { content: ""; position: absolute; top: 16px; left: 7px; width: 16px; height: 4px; border-radius: 50%; background: #29221e; transform: rotate(-12deg); }
.pixel-mascot .cheek { position: absolute; top: 73px; width: 18px; height: 12px; border-radius: 50%; background: rgba(255, 121, 0, .28); }
.cheek-left { left: 20px; }.cheek-right { right: 21px; }
.pixel-mascot .smile { position: absolute; left: 48px; top: 72px; width: 35px; height: 23px; border-radius: 8px 8px 24px 24px; background: #d9421b; }
.pixel-mascot b { position: absolute; right: 13px; bottom: 12px; padding: 6px 9px; border: 3px solid #fff; border-radius: 8px; background: var(--orange); color: #fff; font-size: 12px; transform: rotate(7deg); }
.spark { position: absolute; color: var(--blue); font-size: 25px; }
.spark-one { right: 164px; top: 30px; }.spark-two { right: 150px; top: 92px; color: var(--orange); font-size: 17px; }

.card-code-label {
  display: block;
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}
.card-code-label em { color: #f04420; font-style: normal; }
.card-code-content { min-width: 0; }

.card-code-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr 44px;
  align-items: center;
  gap: 10px;
  min-height: 104px;
  padding: 14px 27px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: #fff;
  box-shadow: 6px 6px 0 #ffe100;
}

.card-code-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffe100;
  color: var(--ink);
  font-size: 24px;
}

.card-code-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 23px;
  font-weight: 700;
}
.card-code-wrap input::placeholder { color: #b2b3b8; font-weight: 500; }
.scan-mark { width: 34px; height: 28px; border: 3px dashed #aeb1b9; border-radius: 9px; opacity: .8; }

.submission-caption {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 26px 0 20px;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: #ffe100;
  color: var(--ink);
  text-align: center;
}
.submission-caption span { color: var(--ink); font-size: 21px; }
.submission-caption strong { font-size: 17px; line-height: 1.45; }

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 26px 0 20px;
  padding: 5px;
  border-radius: 38px;
  background: #f3f3f5;
}

.segment {
  min-width: 0;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 31px;
  background: transparent;
  color: #343747;
  font-size: 18px;
  font-weight: 750;
}
.segment span { margin-right: 8px; color: #697080; }
.segment.active { border-color: #ffd579; background: #fff; color: var(--orange); box-shadow: 0 5px 14px rgba(255, 146, 0, .12); }
.segment.active span { color: var(--orange); }

.account-panel { display: grid; gap: 14px; }
.input-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 24px 25px;
  border: 1.5px solid var(--ink);
  border-radius: 22px;
  background: rgba(255,255,255,.98);
  box-shadow: 5px 5px 0 #dedede;
}

.input-card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0,0,0,.04);
  border-radius: 18px;
  color: var(--ink);
  background: #ffe100;
  font-size: 28px;
  font-weight: 850;
}
.tone-blue .input-card-icon, .tone-mint .input-card-icon { color: var(--ink); background: #ffe100; }
.input-card-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.input-card-content { min-width: 0; }
.input-card label { display: block; margin: 0 0 13px 5px; color: var(--ink); font-size: 19px; line-height: 1.35; font-weight: 790; }
.input-card label em { color: var(--orange-deep); font-style: normal; }
.input-card input, .input-card textarea {
  width: 100%;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  outline: 0;
  background: #fafafa;
  color: var(--ink);
  box-shadow: inset 0 2px 4px rgba(32,35,45,.025);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.input-card input { height: 62px; padding: 0 23px; font-size: 17px; }
.input-card textarea { min-height: 220px; padding: 18px 22px; resize: vertical; font-size: 15px; line-height: 1.65; }
.input-card input::placeholder, .input-card textarea::placeholder { color: #a4a6ac; }
.input-card input:focus, .input-card textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 225, 0, .38); }

.password-field { position: relative; }
.password-field input { padding-right: 62px; }
.password-field button { position: absolute; top: 50%; right: 14px; width: 40px; height: 40px; transform: translateY(-50%); border: 0; border-radius: 50%; background: transparent; color: #989aa1; font-size: 22px; }

.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.label-row span { color: var(--muted); font-size: 13px; white-space: nowrap; }

.safety-banner {
  min-height: 67px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 22px 7px;
  padding: 10px 19px;
  border: 1px solid #ffd3bf;
  border-radius: 24px;
  background: #fff8f3;
  color: #e23e1d;
  text-decoration: none;
}
.safety-banner > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #ff7c35, #eb3e20); color: #fff; font-size: 20px; font-weight: 850; }
.safety-banner strong { font-size: 16px; line-height: 1.45; }
.safety-banner b { font-size: 20px; }

.primary-button, .secondary-button, .ghost-button, .danger-button, .inline-form button, .text-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 18px;
  font-weight: 780;
  text-decoration: none;
}

.primary-button { width: 100%; padding: 0 20px; border: 2px solid var(--ink); background: #ffe100; color: var(--ink); font-size: 16px; box-shadow: 5px 5px 0 var(--ink); text-shadow: none; }
.primary-button:hover { filter: saturate(1.06) brightness(1.02); }
.primary-button:active { transform: translateY(2px); }
.primary-button:disabled { cursor: wait; filter: grayscale(.3); opacity: .62; }
.submit-main-button { min-height: 72px; margin-top: 14px; border-radius: 20px; font-size: 25px; box-shadow: 6px 6px 0 var(--ink); }
.send-icon { font-size: 30px; transform: rotate(-15deg); }
.primary-button.compact { min-height: 48px; }
.secondary-button { padding: 0 18px; border-color: #ffd47b; background: #fff; color: var(--orange); white-space: nowrap; }
.ghost-button { padding: 0 18px; border-color: var(--line); background: #fff; color: var(--ink); }
.danger-button { padding: 0 18px; background: var(--red); color: #fff; }

.query-strip {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 1.2fr);
  align-items: center;
  gap: 16px;
  margin-top: 25px;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: #fff;
  box-shadow: 5px 5px 0 #ffe100;
}
.eyebrow { display: block; width: fit-content; padding: 3px 7px; border-radius: 5px; background: #ffe100; color: var(--ink); font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.query-strip h2 { margin: 4px 0 4px; font-size: 19px; }
.query-strip p, .page-intro p, .result-header p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.inline-form { display: grid; grid-template-columns: 1fr auto; }
.inline-form input { min-width: 0; min-height: 48px; padding: 0 15px; border: 1px solid #ead7b0; border-radius: 16px 0 0 16px; outline: 0; background: #fff; }
.inline-form input:focus { border-color: #ffb517; }
.inline-form button { padding: 0 17px; border-radius: 0 16px 16px 0; background: var(--ink); color: #ffe100; }

/* Query and batch pages */
.site-header {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}
.query-header { justify-content: flex-start; }
.back-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 17px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: #ffe100;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 14px;
  font-weight: 820;
  text-decoration: none;
}
.back-button span { font-size: 20px; line-height: 1; }
.back-button:hover { transform: translateY(-1px); }
.back-button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 820; }
.brand img { display: block; border-radius: 9px; filter: drop-shadow(0 5px 7px rgba(255, 126, 0, .18)); }
.back-link, .text-link { color: var(--orange); text-decoration: none; font-size: 14px; font-weight: 750; }
.back-link:hover, .text-link:hover { color: var(--orange-deep); }
.query-intro-row { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); align-items: center; gap: 32px; margin-bottom: 24px; }
.page-intro { max-width: 720px; margin: 0; }
.page-intro h1 { margin: 5px 0 0; font-size: 40px; line-height: 1.08; font-weight: 850; }
.page-intro p { margin-top: 10px; font-size: 15px; }
.customer-greeting { position: relative; min-height: 116px; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; }
.customer-greeting[hidden] { display: none; }
.customer-greeting::after { content: ""; position: absolute; left: 50%; bottom: 20px; width: 64px; height: 6px; border-radius: 3px; background: #ffe100; transform: translateX(-50%); }
.customer-greeting p { margin: 0 0 14px; color: var(--ink); font-size: 23px; font-weight: 800; line-height: 1.5; }
.customer-greeting strong { color: #d92312; font-weight: 900; }

.search-panel, .result-panel, .quota-panel, .batch-query-form, .batch-results {
  border: 1px solid #f0e5ce;
  border-radius: 26px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 14px 34px rgba(48, 38, 21, .07);
}
.search-panel { padding: 22px; margin-bottom: 16px; }
.search-form { display: grid; grid-template-columns: 1fr 160px; gap: 12px; align-items: end; }
.field { min-width: 0; }
.field label { display: block; margin: 0 0 8px 4px; font-size: 13px; font-weight: 750; }
.field input, .field textarea {
  width: 100%;
  border: 1.5px solid #e5e6e9;
  border-radius: 18px;
  outline: 0;
  background: #fff;
  color: var(--ink);
}
.field input { min-height: 52px; padding: 0 16px; }
.field textarea { min-height: 210px; padding: 16px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus { border-color: #ffb517; box-shadow: 0 0 0 4px rgba(255, 181, 23, .12); }
.search-button { min-height: 52px; border-radius: 18px; }

.quota-panel { padding: 22px; margin-bottom: 16px; }
.quota-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quota-grid-compact { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.quota-item { min-height: 90px; padding: 16px; border-radius: 18px; background: #fff8e9; }
.quota-item:nth-child(2) { background: #eef7ff; }.quota-item:nth-child(3) { background: #fff1ed; }.quota-item:nth-child(4) { background: #eafaf4; }
.quota-item span { display: block; color: var(--muted); font-size: 12px; }
.quota-item strong { display: block; margin-top: 7px; font-size: 21px; }
.quota-item strong.available { color: var(--green); }
.quota-progress { height: 8px; margin-top: 16px; overflow: hidden; border-radius: 99px; background: #f0ede7; }
.quota-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--yellow), var(--orange)); }

.result-panel { padding: 24px; }
.result-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.result-header h2 { margin: 0 0 4px; font-size: 21px; }
.table-wrapper { width: 100%; overflow-x: auto; border: 1px solid #ece7dd; border-radius: 18px; }
.task-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 13px; }
.task-table th { padding: 12px; border-bottom: 1px solid #ece7dd; background: #fff8e9; color: #777066; text-align: left; font-size: 11px; font-weight: 800; }
.task-table td { padding: 14px 12px; border-bottom: 1px solid #f0ede7; vertical-align: middle; }
.task-table tbody tr:last-child td { border-bottom: 0; }
.task-table tbody tr:hover { background: #fffdfa; }
.account-preview { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.result-text { display: block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.status-badge { min-width: 66px; display: inline-flex; justify-content: center; padding: 6px 9px; border-radius: 999px; font-size: 11px; font-weight: 780; }
.status-waiting { background: #fff3d4; color: #a96400; }.status-processing { background: #eaf4ff; color: #246dca; }.status-success { background: #e4f7ef; color: var(--green); }.status-failed { background: #fdebe7; color: var(--red); }.status-cancelled { background: #efeff2; color: var(--muted); }
.table-action, .link-action { border: 0; background: transparent; color: var(--orange); padding: 4px 0; font-size: 12px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.table-action.danger { color: var(--red); }.table-action:disabled { color: #aaa; cursor: wait; }.not-available { color: #aaa; font-size: 12px; }

.empty-state { min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; color: var(--muted); text-align: center; }
.empty-state strong { color: var(--ink); font-size: 15px; }.empty-state p { margin: 7px 0 0; font-size: 13px; }
.empty-symbol { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 50%; background: #fff1cf; color: var(--orange); font-size: 22px; }
.loading-symbol { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 18px; }
.page-button { min-width: 38px; height: 38px; border: 1px solid #eadfc7; border-radius: 12px; background: #fff; color: var(--muted); font-size: 12px; }
.page-button.active { border-color: var(--orange); background: var(--orange); color: #fff; }.page-button:disabled { opacity: .4; cursor: default; }

.status-guide {
  margin-top: 16px;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: #fff;
  box-shadow: 5px 5px 0 #ffe100;
}
.status-guide h2 { margin: 0 0 16px; font-size: 21px; }
.status-guide-list { display: grid; gap: 10px; }
.status-guide-item { min-height: 58px; display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 14px; padding: 12px 15px; border: 1px solid #dedede; border-radius: 14px; }
.status-guide-item strong { width: fit-content; min-width: 62px; padding: 7px 10px; border-radius: 999px; font-size: 13px; text-align: center; }
.status-guide-item p { margin: 0; color: #d92312; font-size: 13px; font-weight: 700; line-height: 1.65; }
.guide-complete { background: #f0fbf6; }.guide-complete strong { background: #d9f5e8; color: #087b50; }
.guide-processing { background: #fff9e7; }.guide-processing strong { background: #ffe100; color: var(--ink); }
.guide-failed { background: #fff3f1; }.guide-failed strong { background: #fde0dc; color: #bd2e22; }

.batch-query-layout { display: grid; grid-template-columns: 360px 1fr; gap: 16px; align-items: start; }
.batch-query-form, .batch-results { padding: 22px; }
.batch-query-form { position: sticky; top: 18px; }.batch-query-form .primary-button { margin-top: 14px; }
.batch-results { min-height: 440px; }.batch-results-list { display: grid; gap: 9px; }
.batch-result-row { display: grid; grid-template-columns: minmax(120px, 1.4fr) 1fr .8fr .8fr; gap: 12px; align-items: center; min-height: 64px; padding: 11px 14px; border: 1px solid #eee6d7; border-radius: 17px; background: #fffcf7; }
.batch-result-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }.batch-result-row strong { color: var(--ink); }.batch-result-row.error { border-color: #f0ccc4; background: #fff7f5; }
.compact-empty { min-height: 320px; }.text-button { min-height: 32px; padding: 0; border: 0; background: transparent; color: var(--orange); font-size: 13px; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 3px 0; color: #99968f; font-size: 11px; }
.query-footer { justify-content: flex-start; }

.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(32, 27, 18, .46); backdrop-filter: blur(5px); }
.modal { width: min(100%, 390px); padding: 28px; border: 1px solid #ffe0a0; border-radius: 28px; background: #fff; box-shadow: 0 30px 80px rgba(66, 42, 0, .24); text-align: center; }
.modal-symbol { width: 40px; height: 40px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 50%; background: linear-gradient(145deg, var(--yellow), var(--orange)); color: #fff; font-weight: 850; }
.modal-symbol.warning { background: var(--red); }.modal h2 { margin: 0; font-size: 21px; }.modal p { margin: 10px 0 22px; color: var(--muted); font-size: 14px; line-height: 1.65; white-space: pre-line; }.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 26px; max-width: min(90vw, 560px); transform: translate(-50%, 16px); padding: 12px 17px; border-radius: 16px; background: #242017; color: #fff; box-shadow: 0 12px 34px rgba(0,0,0,.2); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 860px) {
  .query-strip { grid-template-columns: 1fr 1fr; }.query-strip > div { grid-column: 1 / -1; }
  .batch-query-layout { grid-template-columns: 1fr; }.batch-query-form { position: static; }
}

@media (max-width: 680px) {
  .app-shell, .wide-shell, .submit-shell { width: min(100% - 20px, 760px); padding-top: 14px; }
  .submit-hero { height: auto; padding: 16px; box-shadow: 4px 4px 0 var(--ink); }.hero-top { flex-direction: column; align-items: stretch; gap: 14px; }.hero-title { gap: 10px; }.hero-title img { width: 44px; height: 44px; }.hero-title h1 { font-size: 22px; }.queue-status { position: static; width: 100%; min-height: 38px; justify-content: space-between; padding: 0 12px; transform: none; }.queue-status span { font-size: 11px; }.queue-status strong { min-width: 28px; font-size: 13px; }.announcement-panel { margin-top: 14px; }.announcement-row { grid-template-columns: 26px 82px 1fr; gap: 8px; padding: 9px 10px; }.announcement-row strong { font-size: 12px; }.announcement-row p { font-size: 11px; }
  .card-code-label { margin-bottom: 3px; font-size: 13px; }.card-code-wrap { min-height: 84px; grid-template-columns: 42px 1fr 34px; padding: 10px 18px; border-radius: 20px; box-shadow: 4px 4px 0 #ffe100; }.card-code-icon { width: 39px; height: 39px; }.card-code-wrap input { font-size: 19px; }.scan-mark { width: 28px; height: 24px; }
  .submission-caption { min-height: 54px; margin: 20px 0 16px; padding: 10px 14px; }.submission-caption strong { font-size: 15px; }
  .input-card { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; padding: 18px 16px; border-radius: 18px; box-shadow: 4px 4px 0 #dedede; }.input-card-icon { width: 46px; height: 46px; border-radius: 14px; font-size: 22px; }.shield-icon { font-size: 11px; }.input-card label { margin-bottom: 10px; font-size: 16px; }.input-card input { height: 56px; padding: 0 16px; border-radius: 14px; font-size: 15px; }.input-card textarea { border-radius: 14px; }
  .safety-banner { margin: 18px 3px; padding: 10px 14px; border-radius: 20px; }.safety-banner strong { font-size: 14px; }
  .submit-main-button { min-height: 64px; border-radius: 16px; font-size: 21px; box-shadow: 4px 4px 0 var(--ink); }
  .query-strip { grid-template-columns: 1fr; padding: 19px 16px; align-items: stretch; }.query-strip > div { grid-column: auto; }.inline-form { grid-template-columns: 1fr; gap: 8px; }.inline-form input, .inline-form button { border-radius: 16px; }.secondary-button { min-height: 48px; }
  .site-header { margin-bottom: 24px; }.query-intro-row { grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px; }.page-intro h1 { font-size: 32px; }.customer-greeting { min-height: 68px; justify-content: flex-start; padding: 8px 4px 18px; text-align: left; }.customer-greeting::after { left: 4px; bottom: 6px; width: 52px; transform: none; }.customer-greeting p { margin-bottom: 4px; font-size: 18px; }.search-form { grid-template-columns: 1fr; }.quota-grid { grid-template-columns: 1fr 1fr; }.quota-grid-compact { grid-template-columns: 1fr; }.result-panel, .search-panel, .quota-panel, .batch-query-form, .batch-results, .status-guide { padding: 16px; border-radius: 22px; }.status-guide-item { grid-template-columns: 1fr; gap: 7px; }.batch-result-row { grid-template-columns: 1fr 1fr; }.site-footer { align-items: flex-start; flex-direction: column; gap: 5px; }
}

@media (max-width: 410px) {
  .hero-title h1 { font-size: 20px; }.queue-status span { font-size: 10px; }
  .announcement-row { grid-template-columns: 24px 1fr; }.announcement-row p { grid-column: 2; }.announcement-row > span { grid-row: 1 / span 2; }
  .input-card { grid-template-columns: 42px minmax(0,1fr); gap: 10px; padding: 16px 13px; }.input-card-icon { width: 41px; height: 41px; }.input-card label { font-size: 15px; }.input-card input { padding: 0 13px; font-size: 14px; }
  .safety-banner { grid-template-columns: 32px 1fr auto; gap: 8px; padding: 9px 11px; }.safety-banner > span { width: 30px; height: 30px; }.safety-banner strong { font-size: 13px; }
  .quota-grid { grid-template-columns: 1fr; }.batch-result-row { grid-template-columns: 1fr; }
}

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