﻿:root {
  --bg: #f4f7f8;
  --panel: #ffffff;
  --ink: #172329;
  --muted: #65747c;
  --line: #d9e3e7;
  --brand: #063b55;
  --brand-dark: #042e43;
  --accent: #c9212e;
  --ok: #0f8a5f;
  --warn: #9b6500;
  --danger: #b91c1c;
  --shadow: 0 18px 40px rgba(22, 48, 61, .09);
  --frame-max: 960px;
  --frame-narrow: 680px;
  --frame-pad: clamp(14px, 4vw, 28px);
  --section-gap: clamp(14px, 3vw, 22px);
  --card-pad: clamp(16px, 3.4vw, 24px);
  --font-main: Montserrat, "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: inherit;
}

html {
  min-height: 100%;
  background: var(--bg);
  font-family: var(--font-main);
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 15px;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(8, 124, 157, .12), transparent 34%),
    linear-gradient(180deg, #f9fbfc 0%, #edf4f6 100%);
}

button,
input,
select,
textarea {
  font-family: var(--font-main);
}

a {
  color: inherit;
}

.page-shell {
  width: min(var(--frame-max), calc(100% - var(--frame-pad) * 2));
  margin: 0 auto;
  padding: clamp(18px, 4vw, 26px) 0 clamp(34px, 6vw, 44px);
}

.narrow {
  width: min(var(--frame-narrow), calc(100% - var(--frame-pad) * 2));
}

.frame,
.responsive-frame {
  width: min(var(--frame-max), 100%);
  margin-inline: auto;
}

.stack {
  display: grid;
  gap: var(--section-gap);
}

.auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--section-gap);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 132px;
  max-width: 35vw;
  height: auto;
  display: block;
}

.brand h1,
.brand p {
  margin: 0;
}

.brand h1 {
  font-size: 23px;
  line-height: 1.08;
  letter-spacing: 0;
}

.brand p {
  color: var(--muted);
  margin-top: 4px;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.register-brand {
  justify-content: center;
}

.register-brand .brand-mark {
  justify-content: center;
}

.register-brand img {
  width: min(178px, 56vw);
  max-width: none;
}

.card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: var(--card-pad);
}

.detail-card {
  border: 1px solid rgba(174, 205, 222, .9);
  border-radius: 20px;
  box-shadow: 0 18px 54px rgba(17, 91, 130, .13), 0 1px 0 rgba(255, 255, 255, .9) inset;
  padding: 20px;
}

.detail-card h2 {
  margin: 0 0 6px;
  color: #0f5578;
  font-size: 24px;
  font-weight: 900;
}

.detail-subtitle {
  margin: 0 0 16px;
  color: #6d7c88;
  font-size: 14px;
  line-height: 1.5;
}

.detail-card .field {
  margin-bottom: 13px;
}

.detail-card label,
.detail-card .label {
  display: block;
  margin-bottom: 7px;
  color: #222933;
  font-size: 12px;
  letter-spacing: .1em;
}

.detail-card input,
.detail-card select,
.detail-card textarea {
  min-height: 46px;
  border: 1.5px solid #bfd9e7;
  border-radius: 12px;
  background: linear-gradient(180deg, #f4fbff 0%, #eaf5fd 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(20, 87, 120, .05);
}

.detail-card input:focus,
.detail-card select:focus,
.detail-card textarea:focus {
  border-color: #42add2;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(66, 173, 210, .16), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.field-note {
  margin: 8px 0 0;
  color: #7a8792;
  font-size: 12px;
  line-height: 1.4;
}

.phone-row {
  display: grid;
  grid-template-columns: 150px 1fr;
}

.phone-picker {
  position: relative;
}

.phone-prefix {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid #bfd9e7;
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(180deg, #edf7ff 0%, #deedf7 100%);
  color: #233044;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(20, 87, 120, .05);
  cursor: pointer;
  padding: 0 10px;
  font-weight: 800;
}

.flag-img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.chev {
  color: #6d7c88;
  font-size: 11px;
}

.country-menu {
  position: absolute;
  z-index: 30;
  left: 0;
  top: calc(100% + 8px);
  display: none;
  width: min(360px, 86vw);
  max-height: 350px;
  overflow: hidden;
  border: 1px solid #bfd9e7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(17, 91, 130, .18);
}

.country-menu.open {
  display: block;
}

.country-search {
  border: 0 !important;
  border-bottom: 1px solid #e2eef4 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.country-list {
  max-height: 292px;
  overflow: auto;
  padding: 6px;
}

.country-option {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #24333b;
  padding: 8px 10px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
}

.country-option:hover {
  background: #edf8ff;
}

.country-option .dial {
  color: #0f5578;
  font-weight: 900;
}

.phone-row input {
  border-radius: 0 12px 12px 0;
}

.address-heading,
.detail-heading {
  margin: 18px 0 12px;
  color: #222933;
  font-size: 16px;
  font-weight: 900;
}

.address-heading span:last-child {
  display: block;
  margin-top: 5px;
  color: #7a8792;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.survey-card {
  margin: 20px 0 4px;
  padding: 16px;
  border: 1.5px solid #cfe4ef;
  border-radius: 16px;
  background: linear-gradient(180deg, #f9fdff 0%, #edf8ff 100%);
}

.survey-card h3 {
  margin: 0 0 6px;
  color: #0f5578;
  font-size: 17px;
}

.survey-card p {
  margin: 0 0 12px;
  color: #667885;
  font-size: 12px;
  line-height: 1.55;
}

.survey-pages {
  margin-top: 16px;
}

.survey-start {
  width: min(100%, 260px);
  margin-top: 14px;
}

.survey-body {
  margin-top: 16px;
}

.survey-page {
  display: none;
  min-height: 220px;
}

.survey-page.active {
  display: block;
}

.survey-page .label,
.survey-page label[for="q8"] {
  margin-bottom: 12px;
  color: #123f57;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.survey-page textarea {
  min-height: 150px;
}

.choice-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8f6fb;
  color: #0f5578;
  font-size: 16px;
}

.star-rating {
  display: grid;
  justify-items: center;
  gap: 14px;
  border: 1.5px solid #bfd9e7;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #eef8fd 100%);
  padding: 22px 14px 18px;
}

.star-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.star-button {
  min-width: 46px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #b7c8d0;
  padding: 0;
  font-size: 36px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .9);
  transition: color .16s ease, transform .16s ease;
}

.star-button:hover,
.star-button.active {
  color: #f5a400;
  transform: translateY(-1px) scale(1.04);
}

.rating-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-result {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 72px;
}

.star-face {
  font-size: 36px;
  line-height: 1;
}

.star-text {
  color: #536874;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.survey-nav {
  display: grid;
  grid-template-columns: 110px 1fr 110px;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.survey-nav span {
  color: #607681;
  font-weight: 800;
  text-align: center;
}

.survey-error {
  margin-top: 8px;
  min-height: 20px;
}

.hero {
  display: grid;
  gap: 18px;
}

.hero h2 {
  margin: 0;
  font-size: clamp(28px, 6vw, 51px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.welcome-card {
  width: min(100%, 760px);
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 38px 40px 32px;
  text-align: center;
}

.welcome-card h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(34px, 4.1vw, 39px);
  line-height: 1.08;
  font-weight: 900;
  white-space: nowrap;
}

.welcome-copy {
  display: grid;
  gap: 14px;
  width: min(100%, 640px);
  max-width: 640px;
}

.welcome-copy p,
.welcome-copy small {
  margin: 0;
  line-height: 1.55;
}

.welcome-highlight {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 18px 20px;
  color: var(--brand-dark);
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(232, 248, 255, .9), rgba(255, 249, 230, .85));
  border: 1px solid rgba(15, 137, 184, .18);
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(17, 91, 130, .08);
}

.welcome-highlight span {
  font-size: 21px;
}

.welcome-highlight small {
  color: #607681;
  font-size: 13px;
  font-weight: 700;
}

.welcome-note {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: #45616e;
  font-weight: 600;
  text-align: left;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(207, 233, 244, .95);
  border-radius: 14px;
}

.welcome-note span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: #0f89b8;
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(15, 137, 184, .2);
}

.welcome-note p {
  color: #405a67;
  font-size: 14px;
  font-weight: 700;
}

.welcome-registration-copy {
  min-width: min(100%, 640px);
}

@media (max-width: 520px) {
  .welcome-card {
    padding: 30px 18px 26px;
  }

  .welcome-card h2 {
    font-size: clamp(21px, 7vw, 32px);
  }

  .welcome-highlight {
    padding: 16px;
  }

  .welcome-highlight span {
    font-size: 18px;
  }

  .welcome-note {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

.welcome-primary {
  min-width: min(100%, 320px);
}

.steps {
  display: grid;
  grid-template-columns: auto 44px auto 44px auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 18px 0 22px;
}

.step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.steps i {
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: #c9dce8;
}

.step b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: #e1edf5;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.step.active {
  color: var(--brand-dark);
  font-weight: 900;
}

.step.active b {
  background: var(--brand);
  color: #ffffff;
}

h2,
h3 {
  margin: 0 0 12px;
  letter-spacing: 0;
}

.subtle {
  color: var(--muted);
  line-height: 1.5;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

label,
.label {
  color: #283a43;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd9df;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  outline: none;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(8, 124, 157, .14);
}

.req {
  color: var(--accent);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

button,
.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary {
  background: var(--brand);
  color: #fff;
}

.secondary {
  background: #fff;
  color: var(--brand-dark);
  border-color: #b8d5df;
}

.danger {
  background: #fff5f5;
  color: var(--danger);
  border-color: #f3b7b7;
}

.test-only {
  border-style: dashed;
  color: #7a4b00;
  border-color: #e8bd76;
  background: #fff8ea;
}

.full {
  width: 100%;
}

.hidden {
  display: none !important;
}

.error {
  color: var(--danger);
  font-weight: 800;
  min-height: 22px;
  margin-top: 12px;
}

.notice {
  border: 1px solid #b9d9e4;
  border-radius: 8px;
  padding: 12px;
  background: #eef9fc;
  color: var(--brand-dark);
  line-height: 1.5;
}

.success {
  border-color: #bfe4d4;
  background: #effaf5;
  color: var(--ok);
}

.choice-grid {
  display: grid;
  gap: 8px;
}

.choice-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: #2e3f47;
  font-weight: 650;
  text-transform: none;
  letter-spacing: 0;
}

.choice input {
  width: auto;
  min-height: 0;
}

.progress {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce8ed;
}

.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand);
}

.serial-help {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid #b8d5df;
  border-radius: 999px;
  margin-left: 8px;
  color: var(--brand-dark);
  cursor: pointer;
}

.serial-reward-note {
  margin-top: 8px;
  color: #0b4f71;
  font-weight: 700;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 31, 39, .55);
}

.modal.open {
  display: flex;
}

.after-sales-page {
  min-height: 100vh;
  background: #eef7ff;
}

.after-sales-hero {
  display: grid;
  justify-items: center;
  gap: 7px;
  background: #155584;
  color: #ffffff;
  padding: 14px 18px 18px;
  text-align: center;
}

.after-sales-logo {
  display: block;
  width: auto;
  height: 42px;
  object-fit: contain;
}

.after-sales-hero h1 {
  width: min(100%, 520px);
  margin: 0;
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
  text-shadow: none;
  text-align: center;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.after-sales-hero p {
  margin: 0;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  font-weight: 600;
}

.after-sales-shell {
  width: min(100% - 28px, 668px);
  margin: 22px auto 34px;
}

.after-sales-steps {
  display: grid;
  grid-template-columns: auto 44px auto 44px auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 30px;
  color: #415a6a;
  font-size: 13px;
  font-weight: 600;
}

.after-sales-steps i {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: #c9dce8;
}

.after-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.after-step b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: #e1edf5;
  color: #24475d;
  font-size: 14px;
  font-weight: 900;
}

.after-step.active {
  color: #155584;
  font-weight: 900;
}

.after-step.active b {
  background: #155584;
  color: #ffffff;
}

.after-verify-card {
  display: grid;
  gap: 18px;
  border: 1px solid #bfd4e2;
  border-radius: 12px;
  background: #ffffff;
  padding: 30px;
  box-shadow: 0 12px 30px rgba(21, 85, 132, .08);
}

.after-verify-card h2 {
  margin: 0 0 -6px;
  color: #101820;
  font-size: 19px;
  font-weight: 900;
}

.after-verify-card p {
  margin: 0;
  color: #4f6473;
  font-size: 13px;
  line-height: 1.5;
}

.warranty-id-row {
  display: inline-grid;
  grid-template-columns: auto 160px auto 160px;
  align-items: center;
  gap: 10px;
  justify-content: start;
}

.warranty-id-row strong,
.warranty-id-row span {
  color: #101820;
  font-size: 22px;
  font-weight: 900;
}

.warranty-id-row input {
  height: 46px;
  text-align: center;
}

.after-wide-button {
  width: 100%;
  background: #155584;
}

.after-details-note {
  white-space: nowrap;
  font-size: 12.5px;
  letter-spacing: 0;
}

.link-button {
  min-height: 0;
  justify-self: center;
  border: 0;
  background: transparent;
  color: #344857;
  padding: 2px 0;
  text-decoration: underline;
  font-size: 14px;
  font-weight: 500;
}

.link-button:hover {
  color: #155584;
}

.modal-panel {
  width: min(720px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  padding: 18px;
}

.reward-panel {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(142, 211, 232, .58);
  border-radius: 22px;
  padding: 28px 24px 24px;
  text-align: center;
  background: #e7f8ff;
  box-shadow: 0 26px 70px rgba(5, 54, 78, .2);
}

.reward-hero {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.reward-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(245, 164, 0, .35);
  border-radius: 999px;
  background: #fff6dc;
  color: #9a6400;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.reward-panel h2 {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 0;
  color: #074763;
  text-align: center;
  line-height: 1.2;
}

.reward-panel h2 span {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 900;
  white-space: nowrap;
}

.reward-panel h2 small {
  color: #074763;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 900;
}

.reward-panel p {
  margin: 0;
  color: #426779;
  font-size: 16px;
}

.reward-panel p strong {
  display: inline-flex;
  margin-left: 8px;
  color: #008462;
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 900;
}

.claim-prizes {
  display: grid;
  gap: 12px;
  border: 1.5px solid #cfe4ef;
  border-radius: 16px;
  background: linear-gradient(180deg, #f9fdff 0%, #edf8ff 100%);
  padding: 16px;
}

.reward-prizes {
  border-color: rgba(111, 211, 238, .42);
  background:
    linear-gradient(180deg, rgba(243, 251, 255, .98), rgba(227, 246, 252, .98));
  box-shadow: 0 18px 46px rgba(0, 22, 34, .22);
}

.claim-prizes h3 {
  margin: 0;
  color: #0f5578;
  font-size: 19px;
}

.claim-prizes p {
  margin: 0;
  color: #263942;
  font-weight: 800;
}

.prize-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.prize-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  grid-template-rows: auto 1fr;
  border: 1px solid rgba(15, 137, 184, .18);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  min-height: 250px;
  text-align: left;
}

.prize-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #e7f9fd, #fff6dc);
  color: #0f89b8;
  font-size: 24px;
}

.prize-card b {
  display: block;
  color: #233044;
  font-size: 13px;
  line-height: 1.35;
}

.prize-card strong {
  display: inline-flex;
  margin-top: 5px;
  border-radius: 999px;
  background: #fff1c7;
  color: #9a6400;
  padding: 4px 10px;
  font-size: 13px;
}

.prize-product-frame {
  grid-column: 1 / -1;
  align-self: stretch;
  display: grid;
  align-content: center;
  justify-items: center;
  position: relative;
  width: 100%;
  min-height: 250px;
  padding: 16px 12px 38px;
  margin-top: 2px;
  background: #ffffff;
  border: 1px solid rgba(15, 137, 184, .14);
  border-radius: 14px;
}

.prize-note {
  position: absolute;
  left: 50%;
  bottom: 9px;
  z-index: 2;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  margin: 0;
}

.prize-note summary {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: #f5a400;
  color: #ffffff;
  border: 2px solid #fff1c7;
  box-shadow: 0 8px 18px rgba(154, 100, 0, .2);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.prize-note summary::-webkit-details-marker {
  display: none;
}

.prize-note span {
  display: none;
  width: 228px;
  margin-top: 7px;
  border: 1px solid rgba(245, 164, 0, .38);
  border-radius: 10px;
  background: #fff8dc;
  color: #496371;
  padding: 8px 10px;
  font-size: 8.8px;
  font-weight: 650;
  line-height: 1.28;
  text-align: center;
  box-shadow: 0 10px 24px rgba(47, 78, 91, .12);
}

.prize-note[open] span {
  display: block;
}

.prize-product-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 132px;
  object-fit: contain;
  transition: transform .18s ease;
}

.prize-preview-button {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  width: min(100%, 206px);
  height: 184px;
  padding: 6px 0 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.prize-preview-button span {
  position: static;
  display: block;
  margin-top: 8px;
  text-align: center;
  color: #0f89b8;
  font-size: 11px;
  font-weight: 800;
}

.prize-preview-button:hover .prize-product-image {
  transform: scale(1.03);
}

.filter-product {
  max-width: 170px;
  max-height: 132px;
}

.chemical-product {
  max-width: 170px;
  max-height: 132px;
}

.countdown-box {
  display: grid;
  justify-items: center;
  gap: 8px;
  border-radius: 14px;
  border: 2px solid #32a9cf;
  background: #e7f8ff;
  color: #063b55;
  padding: 18px 16px;
  text-align: center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .72),
    0 10px 24px rgba(6, 59, 85, .12);
}

.countdown-box span {
  color: #063b55;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.countdown-box strong {
  color: #006c98;
  font-size: clamp(39px, 9vw, 58px);
  line-height: 1;
  font-weight: 900;
}

.reward-actions {
  justify-content: center;
  margin-top: 0;
}

.reward-actions .primary {
  min-width: min(100%, 300px);
}

.claim-success-panel {
  width: min(820px, calc(100vw - 24px));
  display: grid;
  justify-items: center;
  gap: 16px;
  border-radius: 22px;
  padding: 28px 24px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 232, 168, .55), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(174, 230, 242, .55), transparent 34%),
    #ffffff;
}

.claim-success-panel h2 {
  display: grid;
  gap: 6px;
  justify-items: center;
  margin: 0;
  color: #0f5578;
  line-height: 1.2;
}

.claim-success-panel h2 span {
  font-size: clamp(28px, 6vw, 39px);
}

.claim-success-panel h2 small {
  font-size: clamp(21px, 4.5vw, 30px);
  font-weight: 900;
}

.claim-success-panel p {
  max-width: 520px;
  margin: 0;
  color: #607681;
  font-size: 15px;
  line-height: 1.55;
}

.claim-success-panel .shipment-line {
  width: 100%;
  max-width: none;
  white-space: normal;
  overflow-wrap: break-word;
  font-size: clamp(13px, 2.4vw, 15px);
}

.claim-file {
  min-height: 54px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  color: var(--brand-dark);
  font-weight: 800;
}

.claim-file img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

.claim-page {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.claim-header h2 {
  margin: 0;
  color: #0f5578;
  font-size: 21px;
  font-weight: 900;
}

.claim-header p {
  margin: 5px 0 0;
  color: #6d7c88;
  font-size: 12px;
}

.claim-countdown {
  display: grid;
  justify-items: center;
  gap: 5px;
  border: 1.5px solid #f5b400;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff7c7, #ffe58a);
  padding: 14px;
  text-align: center;
}

.claim-countdown span {
  color: #8a4a00;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.claim-countdown strong {
  color: #b35a00;
  font-size: 39px;
  line-height: 1;
  font-weight: 900;
}

.claim-countdown p {
  margin: 0;
  color: #9a6400;
  font-size: 11px;
  font-weight: 700;
}

.review-guide {
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 1.5px solid #20a9e8;
  border-radius: 14px;
  background: linear-gradient(180deg, #dff5ff, #bfeeff);
  padding: 16px;
  text-align: center;
}

.review-guide h3,
.upload-card h3 {
  margin: 0;
  color: #0f5578;
  font-size: 17px;
  font-weight: 900;
}

.review-guide p,
.upload-card p {
  margin: 0;
  color: #607681;
  font-size: 12px;
  line-height: 1.45;
}

.guide-note {
  color: #0f5578 !important;
  font-weight: 800;
}

.review-example {
  width: min(100%, 520px);
  border: 1px solid rgba(15, 137, 184, .25);
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 12px 24px rgba(17, 91, 130, .12);
}

.review-example img {
  width: 100%;
  display: block;
  border-radius: 7px;
}

.image-zoom-button {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 0;
  overflow: hidden;
}

.image-zoom-button span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  background: rgba(15, 35, 44, .84);
  color: #fff;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
}

.image-modal-panel {
  width: min(1180px, calc(100vw - 24px));
  padding: 12px;
}

.image-modal-panel img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid var(--line);
}

.review-button {
  min-width: min(100%, 230px);
}

.upload-card {
  display: grid;
  gap: 14px;
  border: 1px solid #b9d9e4;
  border-radius: 14px;
  background: #f0f9ff;
  padding: 16px;
}

.upload-block {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(80, 183, 218, .34);
  border-radius: 12px;
  background: rgba(255, 255, 255, .56);
  padding: 12px;
}

.upload-block h4 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 900;
}

.upload-drop {
  display: grid !important;
  min-height: 120px;
  place-items: center;
  gap: 8px;
  border: 1.5px dashed #a9d3e4;
  border-radius: 12px;
  background: rgba(255, 255, 255, .55);
  color: #607681 !important;
  cursor: pointer;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-align: center;
}

.camera-icon {
  font-size: 28px;
}

.upload-drop span:not(.camera-icon) {
  display: block;
  width: min(100%, 360px);
  margin: 0 auto;
  text-align: center;
  line-height: 1.28;
}

.claim-submit {
  justify-content: center;
}

.modal-panel img,
.reference img,
.preview-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.model-wrap {
  position: relative;
}

.suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 10;
  display: none;
  overflow: hidden;
  border: 1px solid #cbd9df;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.suggestions.open {
  display: block;
}

.suggestions button {
  width: 100%;
  justify-content: flex-start;
  border-radius: 0;
  border: 0;
  background: #fff;
  color: var(--ink);
}

.reference {
  display: none;
  margin: 0 0 10px;
  padding: 12px;
  border: 1px dashed #b8d5df;
  border-radius: 8px;
  background: #f8fcfd;
}

.reference.open {
  display: block;
}

.ref-grid,
.preview-grid,
.qr-grid,
.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.reference-preview-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.reference-preview-button img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #ffffff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.reference-preview-button:hover img {
  border-color: #7fc9e8;
  box-shadow: 0 8px 20px rgba(6, 75, 106, .12);
  transform: translateY(-1px);
}

.preview-grid {
  margin-top: 12px;
}

.preview {
  position: relative;
}

.preview span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.preview video,
.admin-file-body video {
  width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  background: #10232c;
}

.preview button {
  position: absolute;
  top: 8px;
  right: 8px;
  min-height: 32px;
  padding: 6px 9px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, #07506f 0%, #063c56 48%, #052f45 100%);
  color: #fff;
  padding: 22px;
}

.sidebar h1 {
  margin: 0 0 18px;
  font-size: 21px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .22);
}

.nav-btn {
  width: 100%;
  justify-content: flex-start;
  margin-bottom: 8px;
  border-color: rgba(169, 222, 241, .34);
  background: rgba(255, 255, 255, .08);
  color: #f4fbff;
  box-shadow: none;
}

.nav-btn:hover {
  border-color: rgba(255, 255, 255, .68);
  background: rgba(255, 255, 255, .15);
  color: #ffffff;
}

.nav-btn.active {
  background: #fff;
  color: #05354f;
  border-color: #ffffff;
  box-shadow: 0 8px 18px rgba(2, 32, 48, .16);
}

.sidebar .btn.secondary.full {
  margin-top: 8px;
  border-color: rgba(255, 255, 255, .72);
  background: #ffffff;
  color: #05354f;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  justify-content: center;
  font-size: 14px;
  padding-inline: 12px;
}

.sidebar .sidebar-open-link {
  min-width: 236px;
  line-height: 1;
  overflow: visible;
}

.sidebar .btn.secondary.full:hover {
  background: #e8f8ff;
  color: #03293f;
}

.admin-main {
  padding: 24px;
}

.toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-filter-panel {
  display: grid;
  gap: 10px;
  margin: -4px 0 18px;
  padding: 12px;
  border: 1px solid #b7d9e8;
  border-radius: 8px;
  background: #eef8fc;
}

.filter-top-row,
.filter-bottom-row {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, minmax(132px, .65fr)) auto;
  gap: 10px;
  align-items: end;
}

.filter-bottom-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.filter-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.filter-field span {
  color: #31576a;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-wide {
  min-width: 220px;
}

.filter-field input,
.filter-field select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  outline: none;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 132, 167, .14);
}

.filter-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.filter-search-box .compact-btn {
  min-height: 40px;
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.export-actions.hidden {
  display: none;
}

.filter-clear-btn {
  min-width: 86px;
  min-height: 40px;
}

.admin-filter-panel.claims-keyword-only .filter-top-row {
  grid-template-columns: minmax(320px, 1fr);
}

.admin-filter-panel.claims-keyword-only .filter-bottom-row,
.admin-filter-panel.claims-keyword-only .filter-top-row > .filter-field:not(.filter-wide),
.admin-filter-panel.claims-keyword-only .filter-clear-btn {
  display: none;
}

.metric {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

button.metric {
  width: 100%;
  appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.metric-link {
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.metric-link:hover {
  transform: translateY(-1px);
  border-color: #0b7fa0;
  box-shadow: 0 8px 22px rgba(8, 74, 99, .12);
}

.metric-link:focus-visible {
  outline: 3px solid rgba(11, 127, 160, .28);
  outline-offset: 3px;
}

.metric b {
  font-size: 32px;
}

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-summary .metric {
  min-height: 132px;
  align-content: space-between;
  border-color: #b8d8e8;
  background: linear-gradient(180deg, #ffffff 0%, #eef9ff 100%);
}

.dashboard-summary .primary-metric {
  background: linear-gradient(135deg, #063b55 0%, #0e6e94 100%);
  color: #ffffff;
}

.dashboard-summary .primary-metric .subtle,
.dashboard-summary .primary-metric small {
  color: rgba(255, 255, 255, .76);
}

.metric small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.dashboard-card {
  min-width: 0;
}

.dashboard-card h3 {
  margin: 0 0 12px;
}

.survey-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.survey-stat-card {
  min-width: 0;
  border: 1px solid #c5deea;
  border-radius: 8px;
  padding: 16px;
  background: #f7fcff;
}

.survey-stat-card h4 {
  margin: 0 0 12px;
  color: #073d58;
  font-size: 14px;
}

.survey-stat-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(120px, 1.2fr) 48px;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #dbeaf0;
}

.survey-stat-row:first-of-type {
  border-top: 0;
}

.survey-stat-row b,
.survey-stat-row span {
  display: block;
  overflow-wrap: anywhere;
}

.survey-stat-row b {
  color: #132b36;
  font-size: 12px;
}

.survey-stat-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.survey-stat-row strong {
  color: #07506f;
  font-size: 12px;
  text-align: right;
}

.survey-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dcecf3;
}

.survey-bar i {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, #07506f, #16a3c7);
}

.survey-pie-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0 14px;
}

.survey-pie {
  width: 116px;
  height: 116px;
  border: 8px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #c5deea, 0 10px 24px rgba(5, 64, 91, .12);
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-title-row h3 {
  margin: 0;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #31576a;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sort-control select {
  min-height: 36px;
  min-width: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
}

#dashboard > .dashboard-card {
  margin-top: 16px;
}

.table-wrap {
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}

#ticketTable {
  table-layout: auto;
}

th .th-label {
  display: block;
  overflow-wrap: anywhere;
  white-space: normal;
}

.admin-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 6px;
  min-width: 0;
}

.admin-media-item {
  display: grid;
  gap: 5px;
  width: 100%;
  min-width: 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  overflow: hidden;
}

.admin-media-item img,
.admin-media-item video {
  width: 100%;
  height: 46px;
  object-fit: cover;
  border-radius: 6px;
  background: #eef7fb;
}

.admin-media-item span,
.admin-media-item a {
  overflow-wrap: anywhere;
  color: var(--accent);
  text-decoration: none;
}

.admin-media-item small {
  overflow-wrap: anywhere;
}

.missing-file {
  min-height: 68px;
  align-content: center;
  background: #f8fbfd;
  border-color: #bfd8e5;
}

.missing-file small {
  color: #557284;
  font-size: 9px;
  font-weight: 800;
}

#claimTable .admin-media-grid {
  grid-template-columns: repeat(auto-fit, minmax(54px, 64px));
  align-items: start;
  max-width: 190px;
}

#claimTable .admin-media-item {
  min-height: 72px;
  padding: 5px;
}

#claimTable .admin-media-item img,
#claimTable .admin-media-item video {
  height: 48px;
}

#claimTable .admin-media-item span,
#claimTable .admin-media-item a,
#claimTable .admin-media-item small {
  font-size: 10px;
  line-height: 1.15;
}

.expired-file {
  min-height: 68px;
  align-content: center;
  background: #fff7ed;
  border-color: #f5c38b;
}

.expired-file small {
  color: #9b6500;
  font-size: 9px;
  font-weight: 800;
}

.pending-file {
  min-height: 76px;
  align-content: center;
  background: #e8f8ff;
  border-color: #7fc9e8;
}

.pending-file small {
  color: #064b6a;
  font-size: 9px;
  font-weight: 800;
}

.admin-file-body img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 8px;
}

.compact-btn {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 12px;
}

.row-actions {
  display: grid;
  gap: 6px;
  min-width: 84px;
}

.file-count-btn {
  width: 100%;
  white-space: normal;
}

.editable-cell {
  width: 100%;
  min-height: 0;
  justify-content: flex-start;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.editable-cell:hover {
  background: #e8f8ff;
  color: var(--brand-dark);
  box-shadow: 0 0 0 4px #e8f8ff;
}

.table-status-select {
  width: 138px;
  min-width: 138px;
  max-width: 150px;
  box-sizing: border-box;
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  padding: 6px 26px 6px 12px;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  outline: 2px solid rgba(255, 255, 255, .75);
}

.table-status-wrap {
  display: flex;
  justify-content: flex-start;
  width: 150px;
  min-width: 150px;
  box-sizing: border-box;
  padding-right: 18px;
}

#ticketTable th:nth-last-child(2),
#ticketTable td:nth-last-child(2) {
  width: 164px;
  min-width: 164px;
  padding-right: 20px;
}

#ticketTable th:last-child,
#ticketTable td:last-child {
  width: 126px;
  min-width: 126px;
  padding-left: 18px;
}

.table-status-select option {
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
}

.empty-edit {
  color: var(--muted);
  font-style: italic;
}

.admin-file-body .admin-media-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.admin-file-body .admin-media-item {
  min-height: 150px;
  padding: 9px;
}

.admin-file-body .admin-media-item img,
.admin-file-body .admin-media-item video {
  height: 110px;
}

.upload-image-section .admin-media-grid {
  padding: 13px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.upload-image-section .admin-media-item {
  min-height: 150px;
  padding: 9px;
}

.upload-image-section .admin-media-item img,
.upload-image-section .admin-media-item video {
  height: 120px;
}

.upload-empty {
  padding: 16px 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-record-panel {
  width: min(980px, calc(100vw - 24px));
}

.admin-record-body {
  display: grid;
  gap: 14px;
}

.modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.modal-toolbar .modal-close {
  position: static;
}

.modal-export {
  min-height: 38px;
  padding: 8px 14px;
}

.admin-detail-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.admin-detail-section h4 {
  margin: 0;
  padding: 11px 13px;
  background: #e8f8ff;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.admin-detail-section dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.admin-detail-section div {
  display: grid;
  gap: 4px;
  padding: 10px 13px;
  border-top: 1px solid var(--line);
}

.admin-detail-section div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.admin-detail-section dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-detail-section dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.detail-edit-cell {
  width: 100%;
  display: block;
  padding: 2px 0;
  font-size: 13px;
  line-height: 1.5;
}

.detail-edit-cell:hover {
  box-shadow: 0 0 0 4px #e8f8ff;
}

.detail-status-select {
  width: 170px;
  min-width: 170px;
  max-width: 100%;
  font-size: 12px;
}

.expense-detail-section {
  border: 1px solid #b7dff0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.expense-title-row {
  padding: 11px 13px;
  border-bottom: 1px solid #b7dff0;
  background: #e8f8ff;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.expense-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: #ffffff;
}

.expense-table th,
.expense-table td {
  padding: 11px 13px;
  border: 1px solid #d7ecf5;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  vertical-align: middle;
}

.expense-table th {
  background: #f4fbff;
  color: var(--brand-dark);
  font-size: 12px;
  text-align: center;
  letter-spacing: 0;
  text-transform: none;
}

.expense-table td:nth-child(2),
.expense-table th:nth-child(2) {
  text-align: center;
}

.expense-input {
  width: min(220px, 100%);
  min-height: 34px;
  border: 1px solid #cfe6f0;
  border-radius: 6px;
  background: #f8fdff;
  color: var(--ink);
  font: inherit;
  text-align: center;
  outline: 1px solid transparent;
}

.expense-input:focus {
  background: #ffffff;
  border-color: var(--brand);
  outline-color: rgba(11, 93, 139, .22);
}

.expense-total-row td {
  font-weight: 900;
}

.expense-total-row td:last-child {
  color: #007a68;
  font-size: 16px;
}

.claim-follow-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.claim-follow-section h4 {
  margin: 0;
  padding: 11px 13px;
  background: #e8f8ff;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.followup-list {
  display: grid;
  gap: 8px;
  padding: 13px;
  background: #ffffff;
}

.followup-empty {
  margin: 0;
}

.followup-note {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b7dff0;
  border-radius: 8px;
  background: #f4fbff;
  color: var(--ink);
  font-family: var(--font-main);
  text-align: left;
  cursor: pointer;
}

.followup-note span {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.followup-note small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.followup-note:hover {
  border-color: var(--brand);
  background: #e8f8ff;
}

.followup-input {
  width: calc(100% - 26px);
  margin: 0 13px 13px;
  min-height: 42px;
  border: 1px solid #b7dff0;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
}

.followup-input:focus {
  outline: 2px solid rgba(11, 93, 139, .22);
  border-color: var(--brand);
}

.status-new {
  background: #0b5d8b;
}

.status-in-progress {
  background: #d97706;
}

.status-waiting-parts {
  background: #7c3aed;
}

.status-closed,
.status-end {
  background: #07835f;
}

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

th {
  background: #f5f8f9;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.mono {
  overflow-wrap: anywhere;
  font-family: var(--font-main);
  font-size: 12px;
}

.warranty-claim-id {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-width: 2px;
  border-color: #7fc9e8;
  background: #e8f8ff;
  color: #064b6a;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .04em;
}

.claim-confirmation {
  margin: 14px 0 0;
  padding: 13px 15px;
  border: 1px solid #7fc9e8;
  border-radius: 8px;
  background: #e8f8ff;
  color: #064b6a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.qr-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  justify-items: center;
  text-align: center;
}

.qr-card img {
  width: 200px;
  height: 200px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.qr-card .mono {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: #eef8fc;
  color: #064b6a;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

@media (max-width: 760px) {
  .after-sales-page {
    overflow-x: hidden;
  }

  .after-sales-hero {
    padding: 18px 16px 20px;
  }

  .after-sales-hero h1 {
    width: min(100%, 360px);
    font-size: clamp(22px, 6.2vw, 28px);
    line-height: 1.14;
  }

  .after-sales-shell {
    width: min(100% - 20px, 560px);
    margin: 18px auto 30px;
  }

  .after-sales-steps {
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr);
    gap: 6px;
    margin: 12px 0 18px;
    font-size: 12px;
  }

  .after-sales-steps i {
    width: 100%;
    min-width: 0;
  }

  .after-step {
    justify-content: center;
    gap: 5px;
    min-width: 0;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }

  .after-step b {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    font-size: 14px;
  }

  .after-verify-card {
    padding: 24px 18px 22px;
    gap: 16px;
    overflow: hidden;
  }

  .after-verify-card h2 {
    font-size: clamp(25px, 7.4vw, 34px);
    line-height: 1.12;
  }

  .after-verify-card p,
  .after-details-note {
    max-width: 100%;
    white-space: normal;
    font-size: clamp(14px, 4vw, 17px);
    line-height: 1.5;
  }

  .warranty-id-row {
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
  }

  .warranty-id-row strong,
  .warranty-id-row span {
    font-size: clamp(22px, 8vw, 34px);
    line-height: 1;
  }

  .warranty-id-row input {
    width: 100%;
    min-width: 0;
    height: 54px;
    font-size: 20px;
  }

  .after-wide-button,
  .link-button {
    width: 100%;
    max-width: 100%;
  }

  .link-button {
    white-space: normal;
    line-height: 1.35;
    overflow-wrap: break-word;
  }

  :root {
    --frame-pad: clamp(12px, 4.5vw, 18px);
    --card-pad: clamp(14px, 4vw, 18px);
  }

  .brand,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-top-row,
  .filter-bottom-row {
    grid-template-columns: 1fr;
  }

  .filter-wide {
    min-width: 0;
  }

  .form-grid,
  .choice-grid.two,
  .ref-grid,
  .preview-grid,
  .qr-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-summary,
  .dashboard-grid,
  .survey-stats-grid {
    grid-template-columns: 1fr;
  }

  .survey-stat-row {
    grid-template-columns: 1fr;
  }

  .survey-stat-row strong {
    text-align: left;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .admin-detail-section dl {
    grid-template-columns: 1fr;
  }

  .admin-detail-section div:nth-child(odd) {
    border-right: 0;
  }

  .steps {
    grid-template-columns: auto minmax(10px, 24px) auto minmax(10px, 24px) auto;
    gap: 4px;
    overflow: hidden;
    padding-bottom: 2px;
  }

  .steps i {
    width: 24px;
  }

  .step {
    gap: 6px;
    font-size: 12px;
  }

  .step b {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .star-button {
    min-width: 38px;
    min-height: 40px;
    font-size: 30px;
  }

  .survey-nav {
    grid-template-columns: 1fr;
  }

  .prize-grid {
    grid-template-columns: 1fr;
  }

  .countdown-box {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .claim-countdown strong {
    font-size: 34px;
  }

  .example-top {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 14px;
  }

  .page-shell {
    width: min(100% - 20px, var(--frame-narrow));
  }

  .brand {
    gap: 12px;
    margin-bottom: 14px;
  }

  .register-brand img {
    width: min(150px, 62vw);
  }

  .card,
  .detail-card,
  .welcome-card,
  .claim-page,
  .upload-card {
    border-radius: 10px;
  }

  .form-grid,
  .choice-grid.two,
  .ref-grid,
  .preview-grid,
  .qr-grid,
  .metrics,
  .auto-grid {
    grid-template-columns: 1fr;
  }

  button,
  .btn {
    width: 100%;
    min-height: 42px;
  }

  .actions {
    width: 100%;
  }

  .modal {
    align-items: flex-end;
    padding: 10px;
  }

  .modal-panel {
    width: 100%;
    max-height: 92vh;
    border-radius: 16px;
  }

  table {
    min-width: 0;
  }
}

/* Strong responsive guard for phone/tablet layouts. Keep this at the end so
   older page-specific rules cannot force content wider than the viewport. */
html,
body {
  width: 100%;
  max-width: 100%;
}

body,
.page-shell,
.after-sales-shell,
.admin-main,
.card,
.detail-card,
.welcome-card,
.claim-page,
.survey-card,
.upload-card,
.modal-panel,
.reward-panel,
.admin-record-panel,
.table-wrap,
.form-grid,
.choice-grid,
.preview-grid,
.prize-grid,
.ref-grid,
.qr-grid,
.dashboard-grid,
.dashboard-summary,
.metrics {
  min-width: 0;
}

img,
video,
canvas,
svg,
iframe {
  max-width: 100%;
}

h1,
h2,
h3,
p,
small,
span,
label,
.label,
.subtle,
.choice,
.editable-cell,
.welcome-note p,
.welcome-highlight span,
.reward-panel h2,
.after-sales-hero h1 {
  overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
  .page-shell,
  .after-sales-shell {
    width: min(100% - 28px, var(--frame-narrow));
  }

  .welcome-card,
  .detail-card,
  .claim-page,
  .after-verify-card,
  .card {
    width: 100%;
    max-width: 100%;
  }

  .welcome-card h2 {
    font-size: clamp(26px, 5.4vw, 38px);
    white-space: normal;
  }

  .welcome-copy,
  .welcome-registration-copy {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .welcome-highlight,
  .welcome-note {
    width: 100%;
  }

  .reward-panel {
    width: min(100%, 760px);
  }

  .prize-card {
    min-width: 0;
  }

  .admin-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .admin-main {
    padding: 18px;
  }

  table {
    table-layout: auto;
  }
}

@media (max-width: 760px) {
  .page-shell,
  .after-sales-shell {
    width: min(100% - 20px, var(--frame-narrow));
    padding-top: 14px;
  }

  .brand {
    align-items: center;
    text-align: center;
  }

  .brand-mark {
    justify-content: center;
  }

  .brand img,
  .register-brand img,
  .after-sales-logo {
    max-width: min(68vw, 180px);
  }

  .steps,
  .after-sales-steps {
    width: 100%;
    grid-template-columns: auto minmax(12px, 1fr) auto minmax(12px, 1fr) auto;
    gap: 5px;
    margin: 12px 0 18px;
  }

  .steps i,
  .after-sales-steps i {
    width: 100%;
    min-width: 12px;
  }

  .step,
  .after-sales-step,
  .after-step {
    gap: 5px;
    font-size: 12px;
    min-width: 0;
  }

  .step b,
  .after-sales-step b,
  .after-step b {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    font-size: 12px;
  }

  .welcome-card {
    padding: 26px 16px 24px;
    gap: 16px;
  }

  .welcome-card h2 {
    font-size: clamp(24px, 7.2vw, 34px);
    line-height: 1.08;
  }

  .welcome-highlight {
    padding: 14px 12px;
    border-radius: 14px;
  }

  .welcome-highlight span {
    font-size: clamp(17px, 5vw, 22px);
    line-height: 1.18;
  }

  .welcome-highlight small,
  .welcome-note p {
    font-size: 13px;
  }

  .welcome-note {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 13px;
    text-align: left;
  }

  .welcome-note span {
    width: 32px;
    height: 32px;
  }

  .welcome-primary,
  .primary,
  .secondary,
  .danger,
  .test-only,
  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .actions,
  .reward-actions,
  .survey-nav {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .actions > *,
  .reward-actions > *,
  .survey-nav > * {
    width: 100%;
  }

  .phone-field,
  .serial-entry,
  .warranty-id-entry {
    grid-template-columns: 1fr !important;
  }

  .country-select,
  .country-combobox,
  .phone-prefix {
    width: 100%;
  }

  .reward-panel h2 {
    font-size: clamp(25px, 7vw, 34px);
  }

  .reward-panel h2 span,
  .reward-panel h2 small {
    display: block;
    white-space: normal;
  }

  .prize-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .prize-image-frame,
  .example-image-frame {
    width: 100%;
  }

  .preview-grid {
    align-items: stretch;
  }

  .preview {
    width: 100%;
  }

  .admin-layout {
    display: block;
  }

  .sidebar {
    position: static;
    padding: 16px;
  }

  .sidebar h1 {
    font-size: 19px;
    margin-bottom: 12px;
  }

  .nav-btn {
    min-height: 40px;
    justify-content: center;
  }

  .admin-main {
    padding: 14px;
  }

  .toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .card-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .export-actions {
    justify-content: stretch;
  }

  .export-actions button,
  .compact-btn,
  .file-count-btn {
    width: 100%;
  }

  .table-wrap {
    border: 0;
    overflow: visible;
  }

  .table-wrap table,
  .table-wrap thead,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap th,
  .table-wrap td {
    display: block;
    width: 100%;
  }

  .table-wrap thead {
    display: none;
  }

  .table-wrap tr {
    margin: 0 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
  }

  .table-wrap td {
    border: 0;
    border-bottom: 1px solid #e2edf2;
    padding: 10px 12px;
  }

  .table-wrap td:last-child {
    border-bottom: 0;
  }

  .row-actions {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .table-status-wrap,
  .table-status-select,
  #ticketTable th:nth-last-child(2),
  #ticketTable td:nth-last-child(2) {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding-right: 0;
  }

  .admin-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-detail-section dl,
  .admin-detail-section div {
    display: block;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .page-shell,
  .after-sales-shell {
    width: min(100% - 14px, var(--frame-narrow));
  }

  .welcome-card {
    padding: 22px 12px;
  }

  .welcome-card h2 {
    font-size: clamp(22px, 8vw, 30px);
  }

  .welcome-note {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .step,
  .after-sales-step,
  .after-step {
    font-size: 11px;
  }

  .step b,
  .after-sales-step b,
  .after-step b {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .detail-card h2,
  .after-verify-card h2,
  .survey-card h3 {
    font-size: clamp(18px, 5.5vw, 22px);
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }
}

/* Final mobile frame lock: every primary system surface must stay inside the
   viewport on phone browsers, including embedded WeChat/Gmail webviews. */
@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  body > *,
  main,
  header,
  section,
  article,
  form,
  nav,
  .brand,
  .brand-mark,
  .welcome-copy,
  .survey-pages,
  .survey-page,
  .upload-block,
  .upload-drop,
  .claim-guide,
  .reward-prizes,
  .admin-card,
  .admin-detail-section {
    max-width: 100% !important;
  }

  .upload-drop {
    justify-items: center;
    align-content: center;
    text-align: center;
    padding: 18px 14px;
  }

  .upload-drop span:not(.camera-icon) {
    width: min(100%, 300px);
    margin-inline: auto;
    text-align: center;
  }

  .page-shell,
  .after-sales-shell,
  .card,
  .welcome-card,
  .detail-card,
  .survey-card,
  .upload-card,
  .claim-page {
    overflow: hidden;
  }

  .reward-panel,
  .modal-panel,
  .admin-record-panel {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .welcome-card h2,
  .after-sales-hero h1,
  .reward-panel h2 {
    max-width: 100%;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .welcome-highlight,
  .welcome-note,
  .choice,
  .rating-card,
  .upload-drop,
  .preview,
  .prize-card,
  .after-verify-card,
  .reference-preview-button,
  .admin-media-item {
    max-width: 100%;
    min-width: 0;
  }

  .form-grid,
  .choice-grid,
  .choice-grid.two,
  .preview-grid,
  .ref-grid,
  .qr-grid,
  .dashboard-grid,
  .survey-stats-grid,
  .metrics {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .reward-prizes .prize-grid,
  .claim-prizes.reward-prizes .prize-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .reward-prizes .prize-card {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-content: start;
    min-height: 0;
    gap: 7px;
    padding: 9px 7px;
    text-align: center;
  }

  .reward-prizes .prize-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 16px;
  }

  .reward-prizes .prize-card b {
    font-size: clamp(9.5px, 2.75vw, 11px);
    line-height: 1.18;
  }

  .reward-prizes .prize-card strong {
    margin-top: 3px;
    padding: 3px 8px;
    font-size: 11px;
  }

  .reward-prizes .prize-product-frame {
    min-height: 104px;
    padding: 8px 6px;
  }

  .reward-prizes .prize-preview-button {
    width: 100%;
    height: 88px;
    grid-template-rows: 1fr auto;
  }

  .reward-prizes .prize-product-image {
    max-height: 48px;
  }

  .reward-prizes .prize-preview-button span {
    margin-top: 3px;
    font-size: 9.5px;
    line-height: 1.15;
  }

  .reward-prizes .prize-note {
    top: 5px;
    right: 5px;
    bottom: auto;
    left: auto;
    transform: none;
  }

  .reward-prizes .prize-note summary {
    width: 20px;
    height: 20px;
    border-width: 1px;
    font-size: 13px;
    box-shadow: 0 5px 12px rgba(154, 100, 0, .18);
  }

  .reward-prizes .prize-note span {
    position: absolute;
    right: 0;
    width: min(132px, calc(100% + 42px));
    margin-top: 5px;
    padding: 6px 7px;
    font-size: 8.5px;
    line-height: 1.2;
  }

  .reward-panel {
    gap: 12px;
    padding: 18px 14px 16px;
  }

  .reward-hero {
    gap: 5px;
  }

  .reward-badge {
    padding: 5px 10px;
    font-size: 9.5px;
  }

  .reward-panel h2 span {
    font-size: clamp(23px, 6.2vw, 29px);
  }

  .reward-panel h2 small {
    font-size: clamp(16px, 4.6vw, 21px);
  }

  .reward-panel p {
    font-size: 14px;
  }

  .reward-panel p strong {
    display: block;
    margin: 3px 0 0;
    font-size: clamp(26px, 7.6vw, 34px);
  }

  .reward-prizes {
    gap: 8px;
    padding: 11px;
    box-shadow: 0 10px 26px rgba(0, 22, 34, .14);
  }

  .reward-prizes h3 {
    font-size: clamp(20px, 5.6vw, 26px);
    line-height: 1.12;
  }

  .countdown-box {
    gap: 4px;
    padding: 11px 12px;
    border-radius: 12px;
  }

  .countdown-box span {
    font-size: 9.5px;
    letter-spacing: .08em;
  }

  .countdown-box strong {
    font-size: clamp(34px, 10vw, 46px);
  }

  .reward-actions .primary {
    min-height: 48px;
    font-size: 15px;
  }

  .preview-grid img,
  .preview video,
  .admin-media-item img,
  .admin-media-item video,
  .reference-preview-button img,
  .prize-product-image {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .table-wrap {
    width: 100%;
    max-width: 100%;
  }

  .claim-success-panel {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    min-width: 0 !important;
    padding: 24px 16px 18px !important;
    gap: 14px;
    border-radius: 18px;
    box-sizing: border-box;
  }

  .claim-success-panel h2 {
    width: 100%;
  }

  .claim-success-panel h2 span {
    font-size: clamp(28px, 9vw, 38px);
    line-height: 1.08;
  }

  .claim-success-panel h2 small {
    font-size: clamp(21px, 6.6vw, 28px);
    line-height: 1.15;
    max-width: 100%;
  }

  .claim-success-panel p,
  .claim-success-panel .shipment-line {
    width: 100%;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: break-word;
    font-size: clamp(13px, 3.7vw, 15px);
    line-height: 1.45;
  }

  .claim-success-panel .primary,
  .claim-success-panel button {
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
  }

  #exampleImageModal {
    align-items: center;
  }

  #exampleImageModal .modal-panel {
    max-height: calc(100svh - 24px);
    overflow: auto;
  }

  #previewImage {
    width: auto;
    max-width: 100%;
    max-height: calc(100svh - 110px);
    object-fit: contain;
  }
}

/* Admin responsive frame: keep the management console proportional on tablets
   and readable in phone webviews without horizontal spill. */
@media (max-width: 1180px) {
  .admin-layout {
    grid-template-columns: clamp(190px, 22vw, 230px) minmax(0, 1fr);
  }

  .sidebar {
    padding: clamp(14px, 2vw, 20px);
  }

  .sidebar h1 {
    font-size: clamp(17px, 2vw, 20px);
  }

  .nav-btn {
    min-height: 38px;
    padding: 9px 10px;
    font-size: clamp(11px, 1.35vw, 13px);
  }

  .admin-main {
    padding: clamp(14px, 2.4vw, 22px);
  }

  .dashboard-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .admin-layout {
    display: block;
    min-height: 100svh;
    background: #eef7fb;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(2, 35, 52, .16);
  }

  .sidebar h1 {
    grid-column: 1 / -1;
    margin: 0 0 2px;
    text-align: center;
    font-size: clamp(18px, 3.3vw, 22px);
  }

  .nav-btn {
    width: 100%;
    min-height: 42px;
    margin: 0;
    justify-content: center;
    padding: 8px 7px;
    border-radius: 8px;
    font-size: clamp(11px, 2.2vw, 13px);
    line-height: 1.15;
    text-align: center;
  }

  .admin-main {
    width: min(100% - 24px, 820px);
    margin: 0 auto;
    padding: 16px 0 26px;
  }

  .toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 14px;
  }

  .toolbar h2 {
    font-size: clamp(22px, 4.8vw, 32px);
    line-height: 1.1;
  }

  .toolbar .subtle {
    font-size: clamp(12px, 2.5vw, 14px);
    line-height: 1.4;
  }

  .export-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }

  .export-actions.hidden {
    display: none;
  }

  .export-actions button {
    width: 100%;
    min-width: 0;
  }

  .admin-filter-panel {
    gap: 12px;
    padding: 12px;
  }

  .filter-top-row,
  .filter-bottom-row,
  .admin-filter-panel.claims-keyword-only .filter-top-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-wide {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .filter-clear-btn {
    width: 100%;
  }

  .dashboard-grid,
  .survey-stats-grid,
  .qr-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card,
  .dashboard-card,
  .admin-filter-panel,
  .qr-card,
  .metric {
    border-radius: 8px;
  }

  .card {
    padding: clamp(14px, 3vw, 18px);
  }

  .table-wrap {
    border: 0;
    overflow: visible;
  }

  .table-wrap table,
  .table-wrap thead,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap th,
  .table-wrap td {
    display: block;
    width: 100%;
  }

  .table-wrap thead {
    display: none;
  }

  .table-wrap tr {
    display: grid;
    gap: 0;
    margin: 0 0 12px;
    overflow: hidden;
    border: 1px solid #cfe0e8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(6, 55, 79, .06);
  }

  .table-wrap td {
    display: grid;
    grid-template-columns: minmax(98px, .38fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border: 0;
    border-bottom: 1px solid #e5eef3;
    padding: 10px 12px;
    min-width: 0;
  }

  .table-wrap td::before {
    content: attr(data-label);
    color: #31576a;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
    overflow-wrap: anywhere;
  }

  .table-wrap td[colspan] {
    display: block;
  }

  .table-wrap td[colspan]::before {
    content: none;
  }

  .table-wrap td:last-child {
    border-bottom: 0;
  }

  .editable-cell {
    min-width: 0;
  }

  .row-actions,
  .table-status-wrap,
  .table-status-select,
  #ticketTable th:nth-last-child(2),
  #ticketTable td:nth-last-child(2),
  #ticketTable th:last-child,
  #ticketTable td:last-child {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .admin-media-grid,
  #claimTable .admin-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .admin-record-panel {
    width: min(100% - 22px, 820px);
    max-width: min(100% - 22px, 820px);
    max-height: 88svh;
    border-radius: 14px;
  }

  .admin-record-body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .admin-detail-section dl,
  .admin-detail-section div {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
}

@media (max-width: 560px) {
  .sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }

  .admin-main {
    width: min(100% - 16px, 480px);
    padding: 12px 0 22px;
  }

  .dashboard-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .dashboard-summary .metric {
    min-height: 110px;
    padding: 12px;
  }

  .metric b {
    font-size: clamp(24px, 8vw, 32px);
  }

  .metric small,
  .metric .subtle {
    font-size: 11px;
    line-height: 1.2;
  }

  .filter-top-row,
  .filter-bottom-row,
  .admin-filter-panel.claims-keyword-only .filter-top-row,
  .filter-search-box,
  .export-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-title-row,
  .sort-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .sort-control select {
    width: 100%;
    min-width: 0;
  }

  .table-wrap td {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding: 10px;
  }

  .table-wrap td::before {
    font-size: 9.5px;
  }

  .qr-card img {
    width: min(190px, 70vw);
    height: min(190px, 70vw);
  }

  .admin-record-panel {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    padding: 14px;
  }
}

