:root {
  --color-bg: oklch(1 0 0);
  --color-surface: oklch(0.972 0.004 247);
  --color-panel: oklch(0.992 0 0);
  --color-ink: oklch(0.215 0.022 255);
  --color-muted: oklch(0.48 0.026 255);
  --color-border: oklch(0.89 0.012 252);
  --color-primary: oklch(0.55 0.132 242);
  --color-primary-strong: oklch(0.45 0.132 242);
  --color-accent: oklch(0.68 0.16 165);
  --color-danger: oklch(0.56 0.18 27);
  --color-warning: oklch(0.72 0.15 75);
  --color-success: oklch(0.58 0.14 150);
  --radius: 8px;
  --sidebar: 236px;
  --topbar: 58px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-ink);
  background: var(--color-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: var(--color-primary-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-size: 1.55rem;
  line-height: 1.25;
  text-wrap: balance;
}

h2 {
  margin-bottom: 14px;
  font-size: 1.05rem;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-ink);
  padding: 8px 10px;
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: oklch(0.42 0.026 255);
}

input:disabled,
select:disabled,
textarea:disabled {
  background: var(--color-surface);
  color: var(--color-muted);
  cursor: not-allowed;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-ink);
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  touch-action: manipulation;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover {
  background: var(--color-surface);
  text-decoration: none;
}

.button.primary {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: oklch(1 0 0);
}

.button.primary:hover {
  border-color: var(--color-primary-strong);
  background: var(--color-primary-strong);
}

.button:disabled,
.button.primary:disabled,
.icon-button:disabled {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-muted);
  cursor: not-allowed;
  opacity: 0.76;
}

.button:disabled:hover,
.button.primary:disabled:hover,
.icon-button:disabled:hover {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-muted);
}

.button.quiet {
  background: transparent;
}

.button.small {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 0.85rem;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.icon-button:hover {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink);
}

.muted,
.cell-sub {
  color: var(--color-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.cell-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
}

.public-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--color-bg), var(--color-surface));
}

.public-home {
  position: relative;
  min-height: 100dvh;
  isolation: isolate;
  overflow-x: hidden;
  background: var(--color-bg);
}

.remote-verify-body {
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--color-surface);
}

.remote-verify-shell {
  display: grid;
  align-content: center;
  width: min(620px, calc(100% - 32px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: 40px 0;
}

.remote-verify-card {
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-panel);
  box-shadow: 0 18px 50px oklch(0.3 0.03 255 / 0.08);
  padding: 32px;
}

.remote-device-state {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  margin-top: 24px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: var(--color-surface);
}

.remote-device-state > div { min-width: 0; }
.remote-device-state span,
.remote-device-state strong { display: block; }
.remote-device-state > div > span { color: var(--color-muted); font-size: 0.75rem; }
.remote-device-state strong { margin-top: 1px; overflow-wrap: anywhere; font-size: 0.88rem; }
.remote-device-state time { color: var(--color-muted); font-size: 0.72rem; white-space: nowrap; }

.remote-device-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-warning);
  box-shadow: 0 0 0 3px oklch(0.94 0.04 75);
}

.remote-device-state.is-online .remote-device-dot { background: var(--color-success); box-shadow: 0 0 0 3px oklch(0.94 0.04 150); }
.remote-device-state.is-offline .remote-device-dot { background: var(--color-danger); box-shadow: 0 0 0 3px oklch(0.95 0.035 27); }
.remote-device-state.is-checking .remote-device-dot { animation: remote-status-pulse 1.8s ease-out infinite; }

.remote-verify-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.remote-verify-heading h1 {
  margin-bottom: 7px;
}

.remote-verify-heading p:last-child {
  max-width: 48ch;
  margin-bottom: 0;
  color: var(--color-muted);
}

.remote-verify-mark {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: oklch(0.94 0.035 242);
  color: var(--color-primary-strong);
}

.remote-verify-mark svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.remote-verify-eyebrow {
  margin: 0 0 4px;
  color: var(--color-primary-strong);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.remote-verify-form {
  margin-top: 28px;
}

.remote-verify-form label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

.remote-verify-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.remote-verify-controls input {
  min-height: 44px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.remote-verify-controls .button {
  min-height: 44px;
  padding-inline: 20px;
}

.remote-verify-error {
  margin: 8px 0 0;
  color: var(--color-danger);
  font-size: 0.88rem;
  font-weight: 600;
}

.remote-verify-status {
  min-width: 0;
  margin-top: 24px;
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}

.remote-status-topline {
  display: flex;
  gap: 12px;
  align-items: center;
}

.remote-status-topline strong,
.remote-status-label {
  display: block;
}

.remote-status-label {
  margin-bottom: 2px;
  color: var(--color-muted);
  font-size: 0.78rem;
}

.remote-status-indicator {
  width: 12px;
  height: 12px;
  border: 3px solid oklch(1 0 0);
  border-radius: 50%;
  background: var(--color-warning);
  box-shadow: 0 0 0 2px var(--color-warning);
}

.remote-status-indicator.is-waiting,
.remote-status-indicator.is-claimed {
  animation: remote-status-pulse 1.8s ease-out infinite;
}

.remote-status-indicator.is-offline { background: var(--color-muted); box-shadow: 0 0 0 2px var(--color-muted); }
.remote-status-indicator.is-claimed { background: var(--color-primary); box-shadow: 0 0 0 2px var(--color-primary); }
.remote-status-indicator.is-started { background: var(--color-success); box-shadow: 0 0 0 2px var(--color-success); }
.remote-status-indicator.is-failed { background: var(--color-danger); box-shadow: 0 0 0 2px var(--color-danger); }

.remote-verify-status > p {
  margin: 12px 0 0 24px;
  color: var(--color-muted);
}

.remote-progress {
  margin: 20px 0 0 24px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: var(--color-surface);
}

.remote-progress-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.remote-progress-summary strong {
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}

.remote-progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--color-border);
}

.remote-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--color-primary);
  transition: width 180ms ease;
}

.remote-verify-status[data-state="completed"] .remote-progress-track > span { background: var(--color-success); }
.remote-verify-status[data-state="stopped"] .remote-progress-track > span { background: var(--color-warning); }

.remote-progress-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin-top: 15px;
}

.remote-progress-counts div {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  font-size: 0.78rem;
}

.remote-progress-counts span:nth-child(2) {
  overflow: hidden;
  color: var(--color-muted);
  text-overflow: ellipsis;
}

.remote-progress-counts strong { font-variant-numeric: tabular-nums; }

.count-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-muted); }
.count-dot.alive { background: var(--color-success); }
.count-dot.banned { background: var(--color-danger); }
.count-dot.verify { background: var(--color-warning); }
.count-dot.error { background: var(--color-muted); }

.remote-status-details {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
}

.remote-status-details div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 12px;
  border-radius: 7px;
  background: var(--color-surface);
}

.remote-status-details dt { color: var(--color-muted); }
.remote-status-details dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-weight: 650; }

.remote-detail-section {
  margin-top: 24px;
  border-top: 1px solid var(--color-border);
  padding-top: 22px;
}

.remote-detail-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 12px;
}

.remote-detail-heading span {
  display: block;
  margin-bottom: 2px;
  color: var(--color-primary-strong);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.remote-detail-heading h2 { margin: 0; }
.remote-detail-heading > strong { color: var(--color-muted); font-size: 0.82rem; }

.remote-account-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: 9px;
}

.remote-account-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--color-bg);
  font-size: 0.82rem;
}

.remote-account-table th,
.remote-account-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: middle;
}

.remote-account-table th {
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.remote-account-table tbody tr:last-child td { border-bottom: 0; }
.remote-account-value { max-width: 280px; overflow-wrap: anywhere; font-weight: 650; }

.remote-account-status {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 0.7rem;
  font-weight: 750;
  white-space: nowrap;
}

.remote-account-status.is-alive { background: oklch(0.94 0.04 150); color: oklch(0.38 0.11 150); }
.remote-account-status.is-banned { background: oklch(0.95 0.035 27); color: oklch(0.43 0.15 27); }
.remote-account-status.is-email_verify { background: oklch(0.95 0.045 75); color: oklch(0.43 0.11 75); }
.remote-account-status.is-error { background: oklch(0.94 0.015 255); color: var(--color-muted); }

.remote-log-list {
  max-height: 360px;
  overflow: auto;
  margin: 0;
  padding: 4px 0 4px 18px;
  border-left: 1px solid var(--color-border);
  list-style: none;
}

.remote-log-entry {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0 8px 10px;
}

.remote-log-entry::before {
  position: absolute;
  top: 14px;
  left: -23px;
  width: 8px;
  height: 8px;
  border: 3px solid var(--color-panel);
  border-radius: 50%;
  background: var(--color-primary);
  content: "";
  box-shadow: 0 0 0 1px var(--color-primary);
}

.remote-log-entry.is-success::before { background: var(--color-success); box-shadow: 0 0 0 1px var(--color-success); }
.remote-log-entry.is-warning::before { background: var(--color-warning); box-shadow: 0 0 0 1px var(--color-warning); }
.remote-log-entry.is-error::before { background: var(--color-danger); box-shadow: 0 0 0 1px var(--color-danger); }
.remote-log-entry time { color: var(--color-muted); font-size: 0.74rem; white-space: nowrap; }
.remote-log-entry strong { display: block; overflow-wrap: anywhere; font-size: 0.82rem; }
.remote-log-entry p {
  margin: 2px 0 0;
  color: var(--color-muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
  tab-size: 2;
  white-space: pre-wrap;
}

.remote-verify-footnote {
  margin: 14px auto 0;
  color: var(--color-muted);
  font-size: 0.82rem;
  text-align: center;
}

@keyframes remote-status-pulse {
  0% { box-shadow: 0 0 0 2px currentColor; }
  70%, 100% { box-shadow: 0 0 0 8px transparent; }
}

@media (max-width: 560px) {
  .remote-verify-shell { width: 100%; min-width: 0; padding: 0; align-content: start; }
  .remote-verify-card { width: 100%; min-width: 0; min-height: calc(100dvh - 46px); overflow: hidden; border: 0; border-radius: 0; box-shadow: none; padding: 24px 16px; }
  .remote-verify-heading { gap: 12px; }
  .remote-verify-mark { flex-basis: 40px; width: 40px; height: 40px; }
  .remote-device-state { grid-template-columns: 10px minmax(0, 1fr); margin-top: 20px; }
  .remote-device-state time { grid-column: 2; white-space: normal; }
  .remote-verify-controls { grid-template-columns: 1fr; }
  .remote-verify-controls input { font-size: 16px; }
  .remote-verify-controls .button { width: 100%; }
  .remote-verify-footnote { padding: 0 16px 14px; }
  .remote-progress,
  .remote-verify-status > p { margin-left: 0; }
  .remote-progress { padding: 14px; }
  .remote-progress-counts { grid-template-columns: 1fr; }
  .remote-status-details div { grid-template-columns: 76px minmax(0, 1fr); }
  .remote-detail-heading { align-items: center; }
  .remote-account-table-wrap { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .remote-account-table { min-width: 680px; }
  .remote-log-entry { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .remote-status-indicator.is-waiting,
  .remote-status-indicator.is-claimed,
  .remote-device-state.is-checking .remote-device-dot { animation: none; }
  .remote-progress-track > span { transition: none; }
}

.public-wrap {
  width: min(920px, calc(100vw - 32px));
  padding: 48px 0;
}

.public-query-wrap {
  width: min(760px, calc(100vw - 32px));
  padding: 64px 0;
}

.public-wrap.narrow {
  width: min(460px, calc(100vw - 32px));
}

.redeem-panel,
.panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-panel);
}

.redeem-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  padding: 34px;
}

.redeem-panel-home {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 28px;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: center;
}

.redeem-copy p {
  max-width: 58ch;
}

.redeem-panel-home .redeem-copy {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.redeem-panel-home .redeem-copy p:not(.system-name) {
  margin-bottom: 0;
  max-width: 42ch;
  color: var(--color-muted);
}

.redeem-panel-home h1 {
  margin-bottom: 0;
  font-size: 1.7rem;
  line-height: 1.18;
}

.redeem-panel-home .redeem-copy .system-name {
  color: oklch(0.38 0.018 255);
  font-size: 0.9rem;
}

.system-name {
  margin-bottom: 8px;
  color: var(--color-primary-strong);
  font-weight: 750;
}

.redeem-form,
.stack-form {
  display: grid;
  gap: 14px;
}

.redeem-search-form {
  width: min(640px, 100%);
  gap: 12px;
}

.redeem-search-box {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 66px;
  border: 1px solid oklch(0.82 0.01 252);
  border-radius: 999px;
  background: linear-gradient(180deg, oklch(1 0 0), oklch(0.982 0.003 252));
  padding: 6px 6px 6px 24px;
  transition: border-color 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.redeem-search-box:focus-within {
  border-color: oklch(0.52 0.022 255);
  box-shadow: 0 0 0 3px oklch(0.52 0.022 255 / 0.12);
}

.redeem-search-box input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--color-ink);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.redeem-search-box input:focus {
  outline: none;
}

.redeem-search-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-width: 52px;
  min-height: 52px;
  aspect-ratio: 1;
  border: 1px solid oklch(0.16 0.02 255 / 0.88);
  border-radius: 999px;
  background: var(--color-ink);
  color: var(--color-bg);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.14),
    0 5px 14px oklch(0.18 0.025 255 / 0.13);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  padding: 0;
  transition:
    background-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.redeem-search-button:hover {
  border-color: oklch(0.39 0.12 242);
  background: var(--color-primary-strong);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.18),
    0 8px 20px oklch(0.45 0.13 242 / 0.2);
  transform: translateY(-1px);
}

.redeem-search-button:active {
  box-shadow:
    inset 0 1px 2px oklch(0.12 0.02 255 / 0.22),
    0 2px 7px oklch(0.18 0.025 255 / 0.12);
  transform: translateY(0) scale(0.985);
}

.redeem-search-button:focus-visible {
  outline: 3px solid oklch(0.55 0.132 242 / 0.22);
  outline-offset: 2px;
}

.redeem-search-button:disabled {
  border-color: transparent;
  background: oklch(0.68 0.012 255);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.redeem-search-button.is-submitting:disabled {
  border-color: oklch(0.39 0.12 242);
  background: var(--color-primary-strong);
  color: var(--color-bg);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.18),
    0 8px 20px oklch(0.45 0.13 242 / 0.18);
  cursor: wait;
}

.redeem-search-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.95;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.redeem-search-button:hover .redeem-search-icon {
  transform: scale(1.08) rotate(-3deg);
}

.redeem-search-button.is-submitting .redeem-search-icon {
  animation: redeem-search-icon-breathe 720ms ease-in-out infinite alternate;
}

@keyframes redeem-search-icon-breathe {
  from {
    opacity: 0.58;
    transform: scale(0.88);
  }

  to {
    opacity: 1;
    transform: scale(1.08);
  }
}

.public-query-wrap {
  position: relative;
  isolation: isolate;
}

.public-query-wrap::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(820px, 110vw);
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(ellipse, oklch(0.65 0.08 242 / 0.16), oklch(0.75 0.05 242 / 0.05) 42%, transparent 72%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.76);
}

.redeem-panel-home {
  position: relative;
  isolation: isolate;
}

.redeem-panel-home::before {
  position: absolute;
  z-index: -1;
  bottom: 32px;
  left: 50%;
  width: min(640px, 100%);
  height: 1px;
  background: linear-gradient(90deg, transparent, oklch(0.56 0.13 242 / 0.72) 20%, oklch(0.7 0.1 225 / 0.9) 50%, oklch(0.56 0.13 242 / 0.72) 80%, transparent);
  content: "";
  opacity: 0;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .public-query-wrap::before {
    animation: query-aura-reveal 1400ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .redeem-panel-home::before {
    animation: query-line-reveal 920ms 100ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .redeem-panel-home .redeem-search-box {
    animation: query-search-reveal 860ms 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes query-aura-reveal {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.76);
  }

  38% {
    opacity: 1;
  }

  100% {
    opacity: 0.22;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

@keyframes query-line-reveal {
  0% {
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
  }

  32%,
  68% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) scaleX(1);
  }
}

@keyframes query-search-reveal {
  from {
    opacity: 0;
    clip-path: inset(0 50% 0 50% round 999px);
    transform: translateY(7px) scale(0.985);
  }

  to {
    opacity: 1;
    clip-path: inset(0 0 0 0 round 999px);
    transform: translateY(0) scale(1);
  }
}

.two-factor-body {
  place-items: start center;
  min-height: 100dvh;
  background: var(--color-surface);
}

.two-factor-wrap {
  width: min(840px, calc(100vw - 32px));
  padding: 48px 0 64px;
}

.two-factor-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.two-factor-back {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--color-primary-strong);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.two-factor-back:hover {
  text-decoration: underline;
}

.two-factor-nav .two-factor-back {
  margin-bottom: 0;
}

.two-factor-tool,
.two-factor-header {
  display: grid;
}

.two-factor-tool {
  gap: 22px;
}

.two-factor-header {
  gap: 7px;
}

.two-factor-header .system-name,
.two-factor-header h1,
.two-factor-header p,
.two-factor-note,
.two-factor-hint,
.two-factor-error {
  margin: 0;
}

.two-factor-header h1 {
  font-size: 1.75rem;
  letter-spacing: 0;
  text-wrap: balance;
}

.two-factor-header > p:last-child {
  max-width: 68ch;
  color: var(--color-muted);
  line-height: 1.7;
  text-wrap: pretty;
}

.two-factor-workspace {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.08fr) minmax(270px, 0.92fr);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-panel);
}

.two-factor-entry,
.two-factor-result {
  min-width: 0;
  padding: 24px;
}

.two-factor-entry {
  display: grid;
  gap: 14px;
  align-content: start;
}

.two-factor-secret-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.two-factor-secret-row input {
  min-width: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.two-factor-secret-row .button {
  flex: 0 0 auto;
}

.two-factor-hint,
.two-factor-note {
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.two-factor-options {
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
}

.two-factor-options summary {
  width: fit-content;
  color: var(--color-primary-strong);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
}

.two-factor-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.two-factor-option-grid label {
  font-size: 0.78rem;
}

.two-factor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.two-factor-result {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--color-border);
  background: var(--color-surface);
}

.two-factor-result-head,
.two-factor-result-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.two-factor-status {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.two-factor-status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: oklch(0.67 0.02 255);
}

.two-factor-source-meta {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--color-muted);
  font-size: 0.74rem;
  text-align: right;
}

.two-factor-code {
  display: block;
  margin: 38px 0 22px;
  color: var(--color-ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-align: center;
  user-select: all;
  white-space: nowrap;
}

.two-factor-copy-button {
  align-self: center;
  min-width: 138px;
}

.two-factor-copy-button.is-copied {
  border-color: oklch(0.58 0.14 150 / 0.7);
  background: oklch(0.95 0.026 150);
  color: oklch(0.36 0.1 150);
}

.two-factor-progress {
  width: 100%;
  height: 5px;
  margin: auto 0 11px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  appearance: none;
  background: oklch(0.88 0.01 252);
}

.two-factor-progress::-webkit-progress-bar {
  border-radius: inherit;
  background: oklch(0.88 0.01 252);
}

.two-factor-progress::-webkit-progress-value {
  border-radius: inherit;
  background: var(--color-primary);
  transition: background-color 160ms ease;
}

.two-factor-progress::-moz-progress-bar {
  border-radius: inherit;
  background: var(--color-primary);
  transition: background-color 160ms ease;
}

.two-factor-result-meta {
  color: var(--color-muted);
  font-size: 0.74rem;
}

.two-factor-result-meta strong {
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}

.two-factor-result.is-active .two-factor-status {
  color: oklch(0.38 0.09 150);
}

.two-factor-result.is-active .two-factor-status-dot {
  background: var(--color-success);
}

.two-factor-result.is-expiring .two-factor-code,
.two-factor-result.is-expiring .two-factor-result-meta strong {
  color: oklch(0.48 0.13 75);
}

.two-factor-result.is-expiring .two-factor-progress::-webkit-progress-value {
  background: var(--color-warning);
}

.two-factor-result.is-expiring .two-factor-progress::-moz-progress-bar {
  background: var(--color-warning);
}

.two-factor-result.is-error .two-factor-status,
.two-factor-result.is-error .two-factor-code {
  color: var(--color-danger);
}

.two-factor-result.is-error .two-factor-status-dot {
  background: var(--color-danger);
}

.two-factor-note {
  max-width: 68ch;
}

.two-factor-copy-buffer {
  position: fixed;
  top: 0;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.two-factor-guide-wrap {
  width: min(1080px, calc(100vw - 32px));
  padding: 40px 0 72px;
}

.two-factor-guide-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: 4px 0 28px;
  border-bottom: 1px solid var(--color-border);
}

.two-factor-guide-header .system-name,
.two-factor-guide-header h1,
.two-factor-guide-header p,
.two-factor-guide-alert p,
.two-factor-guide-step-copy p,
.two-factor-guide-finish h2,
.two-factor-guide-finish p {
  margin: 0;
}

.two-factor-guide-header h1 {
  margin-bottom: 8px;
  font-size: 1.9rem;
  letter-spacing: 0;
}

.two-factor-guide-header > div > p:last-child {
  max-width: 64ch;
  color: var(--color-muted);
  line-height: 1.75;
  text-wrap: pretty;
}

.two-factor-guide-tool-link {
  min-width: 142px;
}

.two-factor-guide-alert {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 24px 0 8px;
  padding: 16px 18px;
  border: 1px solid oklch(0.82 0.09 75);
  border-left: 3px solid var(--color-warning);
  border-radius: var(--radius);
  background: oklch(0.98 0.018 75);
}

.two-factor-guide-alert-icon {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid oklch(0.72 0.15 75);
  border-radius: 50%;
  color: oklch(0.44 0.11 75);
  font-weight: 800;
  line-height: 1;
}

.two-factor-guide-alert strong {
  display: block;
  margin-bottom: 3px;
}

.two-factor-guide-alert p {
  color: oklch(0.4 0.04 75);
  font-size: 0.84rem;
  line-height: 1.7;
}

.two-factor-guide-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.two-factor-guide-step {
  display: grid;
  grid-template-columns: 40px minmax(220px, 0.72fr) minmax(340px, 1.28fr);
  gap: 24px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--color-border);
}

.two-factor-guide-step-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid oklch(0.78 0.06 242);
  border-radius: 50%;
  background: oklch(0.96 0.02 242);
  color: var(--color-primary-strong);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.two-factor-guide-step-copy {
  min-width: 0;
  padding-top: 2px;
}

.two-factor-guide-phase {
  margin-bottom: 5px !important;
  color: var(--color-primary-strong);
  font-size: 0.76rem;
  font-weight: 750;
}

.two-factor-guide-step-copy h2 {
  margin-bottom: 9px;
  font-size: 1.08rem;
  letter-spacing: 0;
  line-height: 1.45;
}

.two-factor-guide-step-copy > p:last-child {
  color: var(--color-muted);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.two-factor-guide-step-copy a {
  margin: 0 0.18em;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.two-factor-guide-figure {
  min-width: 0;
  margin: 0;
}

.two-factor-guide-figure > a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: oklch(0.12 0 0);
  transition: border-color 160ms ease;
}

.two-factor-guide-figure > a:hover {
  border-color: var(--color-primary);
}

.two-factor-guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

.two-factor-guide-figure figcaption {
  margin-top: 7px;
  color: var(--color-muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.two-factor-guide-finish {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
}

.two-factor-guide-finish h2 {
  margin-bottom: 5px;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.two-factor-guide-finish p {
  max-width: 68ch;
  color: var(--color-muted);
  line-height: 1.7;
}

.two-factor-guide-finish .button {
  flex: 0 0 auto;
}

@media (max-width: 860px) {
  .two-factor-guide-step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 18px;
  }

  .two-factor-guide-figure {
    grid-column: 2;
  }
}

.public-result {
  display: block;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% 0, oklch(0.72 0.07 242 / 0.16), transparent 420px),
    var(--color-bg);
}

.public-result-wrap {
  width: min(1280px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.public-result .result-panel {
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
}

.result-header {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 26px 28px;
  border: 1px solid oklch(0.88 0.014 250);
  border-radius: 14px;
  background: oklch(0.998 0.001 250 / 0.94);
  box-shadow: 0 18px 50px oklch(0.24 0.03 255 / 0.07);
}

.result-header::before {
  position: absolute;
  top: -150px;
  right: -90px;
  width: 380px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.64 0.11 242 / 0.16), transparent 68%);
  content: "";
  pointer-events: none;
}

.result-heading,
.result-return {
  position: relative;
  z-index: 1;
}

.result-heading {
  min-width: 0;
  max-width: 760px;
}

.result-kicker {
  margin-bottom: 7px;
  color: var(--color-primary-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.result-header h1 {
  margin-bottom: 9px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 1.45rem;
  font-weight: 760;
  letter-spacing: 0.025em;
  overflow-wrap: anywhere;
}

.result-header .muted {
  max-width: 62ch;
  margin-bottom: 0;
}

.result-return,
.result-export {
  gap: 8px;
}

.result-return svg,
.result-export svg,
.secret-copy-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.result-toolbar,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.result-toolbar {
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid oklch(0.88 0.014 250 / 0.92);
  border-radius: 12px;
  background: oklch(0.995 0.002 250 / 0.88);
  box-shadow: 0 10px 30px oklch(0.22 0.025 255 / 0.07);
  backdrop-filter: blur(14px);
}

.result-count {
  display: inline-flex;
  gap: 7px;
  align-items: baseline;
  min-height: 38px;
  padding: 6px 8px;
  color: var(--color-muted);
}

.result-count strong {
  color: var(--color-ink);
  font-size: 1.12rem;
  font-weight: 820;
}

.result-export.button.primary {
  border-color: var(--color-ink);
  background: var(--color-ink);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.14);
}

.result-export.button.primary:hover {
  border-color: var(--color-primary-strong);
  background: var(--color-primary-strong);
}

.result-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.result-item {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 2px solid oklch(0.55 0.026 250);
  border-radius: 12px;
  background: var(--color-bg);
  box-shadow: 0 10px 28px oklch(0.22 0.025 255 / 0.045);
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  align-items: center;
  min-width: 0;
}

.result-meta span {
  color: var(--color-muted);
}

.result-product-meta {
  padding: 15px 17px 14px;
  border-bottom: 1px solid var(--color-border);
  background: oklch(0.985 0.004 250);
}

.result-product-name {
  margin-right: auto;
  color: var(--color-ink);
  font-size: 1rem;
}

[data-after-sale-name-trigger],
[data-after-sale-code-trigger] {
  position: relative;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

[data-after-sale-name-trigger]::after,
[data-after-sale-code-trigger]::after {
  position: absolute;
  inset: -6px;
  content: "";
}

.after-sale-flow {
  display: grid;
  min-width: 0;
  padding: 16px 17px 18px;
  background: var(--color-bg);
}

.after-sale-flow-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0 15px 48px;
}

.flow-current-legend {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 7px;
  align-items: center;
  color: oklch(0.4 0.07 246);
  font-size: 0.76rem;
  font-weight: 720;
}

.flow-current-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary-strong);
  box-shadow: 0 0 0 4px oklch(0.9 0.045 242);
}

.after-sale-flow-list {
  display: grid;
  min-width: 0;
}

.after-sale-flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  padding-bottom: 16px;
}

.after-sale-flow-step::before {
  position: absolute;
  top: 33px;
  bottom: 0;
  left: 16px;
  width: 2px;
  background: oklch(0.84 0.018 250);
  content: "";
}

.after-sale-flow-step:last-child {
  padding-bottom: 0;
}

.after-sale-flow-step:last-child::before,
.after-sale-flow-simple .after-sale-flow-step::before {
  display: none;
}

.after-sale-flow-marker {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid oklch(0.78 0.025 250);
  border-radius: 50%;
  background: var(--color-bg);
  color: oklch(0.46 0.055 250);
  box-shadow: 0 0 0 5px var(--color-bg);
}

.after-sale-flow-marker svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

.request-flow-marker {
  border-color: oklch(0.78 0.07 82 / 0.72);
  background: oklch(0.975 0.023 84);
  color: oklch(0.48 0.1 68);
}

.result-flow-marker {
  border-color: oklch(0.72 0.08 150 / 0.72);
  background: oklch(0.968 0.028 150);
  color: oklch(0.42 0.105 150);
}

.flow-result-bad .result-flow-marker {
  border-color: oklch(0.76 0.08 28 / 0.72);
  background: oklch(0.97 0.026 28);
  color: oklch(0.46 0.13 28);
}

.flow-result-info .result-flow-marker {
  border-color: oklch(0.76 0.075 242 / 0.72);
  background: oklch(0.972 0.026 242);
  color: oklch(0.44 0.11 242);
}

.flow-card {
  display: grid;
  gap: 11px;
  min-width: 0;
  padding: 14px;
  border: 1px solid oklch(0.87 0.014 250);
  border-radius: 10px;
  background: var(--color-bg);
  box-shadow: 0 7px 20px oklch(0.22 0.025 255 / 0.045);
}

.event-flow-card {
  gap: 9px;
  background: oklch(0.987 0.004 250);
}

.flow-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.flow-card-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.flow-card-title strong {
  color: var(--color-ink);
  font-size: 0.95rem;
  font-weight: 810;
}

.flow-card-kicker {
  color: var(--color-muted);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.045em;
}

.flow-card-head time {
  color: var(--color-muted);
  font-size: 0.76rem;
}

.inventory-flow-step.is-replaced .inventory-flow-marker {
  border-color: oklch(0.84 0.012 250);
  background: oklch(0.965 0.004 250);
  color: oklch(0.55 0.025 250);
}

.inventory-flow-step.is-replaced .inventory-flow-card {
  border-color: oklch(0.89 0.01 250);
  background: oklch(0.978 0.003 250);
  box-shadow: none;
}

.inventory-flow-step.is-replaced .secret-block {
  border-color: oklch(0.8 0.018 250);
  background: oklch(0.974 0.004 250);
}

.inventory-flow-step.is-current .inventory-flow-marker {
  border-color: var(--color-primary-strong);
  background: var(--color-primary-strong);
  color: white;
  box-shadow: 0 0 0 5px var(--color-bg), 0 7px 18px oklch(0.42 0.13 244 / 0.22);
}

.inventory-flow-step.is-current .inventory-flow-card {
  border-color: oklch(0.69 0.12 242 / 0.82);
  background: oklch(0.986 0.012 242);
  box-shadow: 0 10px 28px oklch(0.42 0.11 244 / 0.1);
}

.inventory-flow-step.is-current .secret-block {
  border-color: oklch(0.63 0.13 242 / 0.84);
  box-shadow: 0 8px 22px oklch(0.42 0.11 244 / 0.08);
}

.flow-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.flow-event-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid oklch(0.84 0.025 250);
  border-radius: 999px;
  background: var(--color-bg);
  color: oklch(0.39 0.045 250);
  font-size: 0.74rem;
  font-weight: 760;
}

.flow-event-description,
.flow-event-detail p {
  margin: 0;
  color: oklch(0.39 0.032 252);
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.flow-event-description {
  padding: 10px 12px;
  border-left: 2px solid oklch(0.68 0.075 82 / 0.72);
  border-radius: 0 7px 7px 0;
  background: oklch(0.98 0.012 82);
}

.flow-event-description span,
.flow-event-detail p > span {
  margin-right: 7px;
  color: oklch(0.36 0.05 250);
  font-size: 0.76rem;
  font-weight: 780;
}

.flow-event-detail {
  display: grid;
  gap: 7px;
}

.current-use-badge,
.replaced-content-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
}

.current-use-badge {
  background: var(--color-primary-strong);
  color: white !important;
  box-shadow: 0 5px 12px oklch(0.42 0.13 244 / 0.17);
}

.replaced-content-badge {
  border: 1px solid oklch(0.84 0.012 250);
  background: oklch(0.94 0.006 250);
  color: oklch(0.46 0.025 250) !important;
}

.result-code-meta strong {
  color: var(--color-ink);
  font-size: 0.86rem;
}

.result-code {
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid oklch(0.88 0.014 250);
  border-radius: 5px;
  background: var(--color-surface);
  color: oklch(0.32 0.045 250);
  font-size: 0.78rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.format-description {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-left: 2px solid oklch(0.58 0.11 242 / 0.72);
  border-radius: 0 7px 7px 0;
  background: oklch(0.976 0.009 242);
}

.format-description strong {
  color: var(--color-primary-strong);
  font-size: 0.78rem;
}

.format-description p {
  margin: 0;
  color: oklch(0.4 0.03 252);
  white-space: pre-wrap;
  word-break: break-word;
}

.compact-chain {
  max-width: 420px;
}

.secret-block {
  overflow: hidden;
  border: 1px solid oklch(0.78 0.022 250);
  border-radius: 9px;
  background: oklch(0.982 0.006 250);
  box-shadow: 0 2px 8px oklch(0.22 0.025 255 / 0.04);
}

.secret-block-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 39px;
  padding: 6px 8px 6px 12px;
  border-bottom: 1px solid oklch(0.82 0.018 250);
  color: oklch(0.42 0.026 252);
  font-size: 0.78rem;
  font-weight: 750;
}

.secret-copy-button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--color-primary-strong);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  transition: background-color 160ms ease, color 160ms ease;
}

.secret-copy-button:hover {
  background: oklch(0.94 0.025 242);
}

.secret-copy-button.copied {
  background: oklch(0.95 0.026 150);
  color: oklch(0.38 0.11 150);
}

.totp-panel {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  padding: 11px 12px 10px;
  border: 1px solid oklch(0.78 0.09 165 / 0.52);
  border-radius: 9px;
  background: oklch(0.978 0.018 165);
}

.totp-panel-head,
.totp-meta,
.totp-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.totp-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: oklch(0.36 0.07 165);
  font-size: 0.78rem;
  font-weight: 800;
}

.totp-title i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 3px oklch(0.58 0.14 150 / 0.13);
}

.totp-status,
.totp-meta {
  color: oklch(0.43 0.04 165);
  font-size: 0.72rem;
  font-weight: 680;
}

.totp-code {
  color: oklch(0.28 0.055 165);
  font-size: 1.48rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.18em;
  line-height: 1.1;
}

.totp-copy-button {
  min-height: 29px;
  padding: 4px 9px;
  border: 1px solid oklch(0.68 0.09 165 / 0.55);
  border-radius: 6px;
  background: oklch(1 0 0 / 0.56);
  color: oklch(0.35 0.08 165);
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 760;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.totp-copy-button:hover:not(:disabled),
.totp-copy-button:focus-visible {
  border-color: oklch(0.55 0.13 165 / 0.78);
  background: oklch(0.95 0.035 165);
}

.totp-copy-button:focus-visible {
  outline: 3px solid oklch(0.58 0.14 150 / 0.2);
  outline-offset: 2px;
}

.totp-copy-button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

.totp-copy-button.is-copied {
  border-color: oklch(0.58 0.14 150 / 0.68);
  background: oklch(0.95 0.026 150);
  color: oklch(0.36 0.1 150);
}

.totp-progress {
  overflow: hidden;
  height: 4px;
  border-radius: 999px;
  background: oklch(0.89 0.025 165);
}

.totp-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--color-success);
  transition: width 220ms linear;
}

.totp-meta strong {
  color: oklch(0.32 0.08 165);
  font-variant-numeric: tabular-nums;
}

.totp-panel.is-error {
  border-color: oklch(0.78 0.12 27 / 0.55);
  background: oklch(0.985 0.012 27);
}

.totp-panel.is-error .totp-title,
.totp-panel.is-error .totp-status,
.totp-panel.is-error .totp-meta,
.totp-panel.is-error .totp-code {
  color: oklch(0.42 0.1 27);
}

.totp-panel.is-error .totp-title i,
.totp-panel.is-error .totp-progress span {
  background: var(--color-danger);
}

@media (prefers-reduced-motion: reduce) {
  .totp-progress span {
    transition: none;
  }
}

.price-board-body {
  min-height: 100vh;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
}

.price-board-shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.price-board-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.price-board-header h1 {
  margin: 4px 0 0;
  font-size: 2rem;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.price-board-kicker {
  margin: 0;
  color: var(--color-primary-strong);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.price-board-time {
  display: grid;
  justify-items: end;
  min-width: 220px;
}

.price-board-time > span {
  color: var(--color-primary-strong);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.price-board-time > strong {
  margin-top: 2px;
  color: var(--color-ink);
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.035em;
  line-height: 1.08;
}

.price-board-time > time {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.price-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.price-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-panel);
}

.price-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px 18px;
}

.price-card-head h2 {
  max-width: 65%;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.4;
  text-wrap: balance;
}

.price-card-current {
  display: grid;
  justify-items: end;
  gap: 3px;
  flex: 0 0 auto;
}

.price-card-current span {
  color: var(--color-muted);
  font-size: 0.78rem;
}

.price-card-current strong {
  color: var(--color-primary-strong);
  font-size: 1.42rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.price-chart {
  position: relative;
  min-height: 210px;
  padding: 0 14px 4px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.price-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.price-chart-loading,
.price-chart-empty {
  display: grid;
  place-items: center;
  min-height: 205px;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.price-chart-grid {
  stroke: var(--color-border);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.price-chart-axis {
  fill: var(--color-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.price-chart-line {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.price-chart-point {
  fill: var(--color-panel);
  stroke: var(--color-primary-strong);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.price-tier-block {
  padding: 18px 24px 22px;
}

.price-tier-block h3 {
  margin: 0 0 10px;
  font-size: 0.84rem;
  color: var(--color-muted);
}

.price-tier-list {
  display: grid;
  gap: 7px;
}

.price-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  font-size: 0.9rem;
}

.price-tier-row strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price-tier-empty {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.price-board-empty {
  display: grid;
  gap: 6px;
  grid-column: 1 / -1;
  justify-items: center;
  padding: 72px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-panel);
  color: var(--color-muted);
}

.price-board-empty strong {
  color: var(--color-ink);
}

.price-notice-dialog {
  width: min(480px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-ink);
}

.price-notice-dialog::backdrop {
  background: oklch(0.18 0.015 252 / 0.56);
  backdrop-filter: blur(3px);
}

.price-notice-card {
  position: relative;
  display: grid;
  justify-items: start;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-panel);
  box-shadow: 0 24px 70px oklch(0.18 0.02 250 / 0.22);
}

.price-notice-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--color-muted);
  font-size: 1.3rem;
  cursor: pointer;
}

.price-notice-close:hover {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink);
}

.price-notice-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border: 1px solid color-mix(in oklch, var(--color-primary) 35%, var(--color-border));
  border-radius: 12px;
  background: color-mix(in oklch, var(--color-primary) 9%, var(--color-panel));
  color: var(--color-primary-strong);
}

.price-notice-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.price-notice-kicker {
  margin: 0 0 6px;
  color: var(--color-primary-strong);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.price-notice-card h2 {
  max-width: 12em;
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
  line-height: 1.3;
  text-wrap: balance;
}

.price-notice-copy {
  max-width: 34em;
  margin: 14px 0 0;
  color: var(--color-ink);
  font-size: 0.98rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.price-notice-footnote {
  margin: 7px 0 0;
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.price-notice-confirm {
  width: 100%;
  min-height: 46px;
  margin-top: 24px;
}

.price-admin-overview {
  overflow: hidden;
}

.price-admin-table-wrap {
  overflow-x: auto;
}

.price-admin-money {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.price-admin-table td {
  vertical-align: middle;
}

.price-admin-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.price-tier-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.price-tier-modal-body,
.price-schedule-modal-body {
  max-height: min(62vh, 620px);
  overflow-y: auto;
}

.price-tier-dialog .modal-panel,
.price-schedule-dialog .modal-panel {
  width: min(760px, calc(100vw - 32px));
}

.price-admin-items {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.price-admin-item {
  overflow: hidden;
}

.price-admin-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}

.price-admin-item > summary::-webkit-details-marker {
  display: none;
}

.price-admin-item > summary:hover {
  background: var(--color-surface);
}

.price-admin-item[open] > summary {
  border-bottom: 1px solid var(--color-border);
}

.price-admin-item-summary {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}

.price-admin-item-summary strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-admin-item-summary span {
  color: var(--color-primary-strong);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.price-admin-item-body {
  display: grid;
  gap: 0;
}

.price-admin-section {
  padding: 22px 20px;
  border-bottom: 1px solid var(--color-border);
}

.price-admin-section:last-child {
  border-bottom: 0;
}

.price-admin-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.price-admin-section-head h2 {
  margin: 0 0 3px;
  font-size: 1rem;
}

.price-admin-section-head p {
  margin: 0;
}

.price-tier-editor-head,
.price-tier-editor-row {
  display: grid;
  grid-template-columns: minmax(100px, 0.75fr) minmax(100px, 0.75fr) minmax(120px, 0.9fr) minmax(110px, 0.75fr) auto;
  gap: 10px;
  align-items: center;
}

.price-tier-preview {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price-tier-preview.bad {
  color: var(--color-danger);
}

.price-tier-editor-head {
  padding: 0 0 7px;
  color: var(--color-muted);
  font-size: 0.78rem;
}

.price-tier-editor-row {
  margin-bottom: 8px;
}

.price-schedule-form {
  align-items: end;
}

.price-schedule-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.price-schedule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.price-schedule-row > div:first-child {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.price-schedule-row strong,
.price-schedule-row span {
  font-variant-numeric: tabular-nums;
}

.price-schedule-row small {
  color: var(--color-muted);
}

.price-schedule-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-schedule-empty {
  margin: 0;
  padding: 24px;
}

@media (max-width: 820px) {
  .price-board-shell {
    width: min(100% - 24px, 680px);
    padding: 28px 0 44px;
  }

  .price-board-grid {
    grid-template-columns: 1fr;
  }

  .price-board-header {
    align-items: start;
    margin-bottom: 16px;
  }

  .price-board-time {
    min-width: 0;
  }

  .price-card-head {
    padding: 18px 17px 15px;
  }

  .price-card-head h2 {
    max-width: 62%;
  }

  .price-chart {
    min-height: 180px;
    padding: 0 4px;
  }


  .price-tier-block {
    padding: 15px 17px 18px;
  }

  .price-tier-editor-head {
    display: none;
  }

  .price-admin-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .price-admin-actions .button {
    width: 100%;
  }

  .price-tier-editor-row {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
  }

  .price-tier-editor-row .button {
    width: 100%;
  }

  .price-schedule-row {
    align-items: stretch;
    flex-direction: column;
  }

  .price-schedule-actions {
    justify-content: space-between;
  }
}

@media (max-width: 520px) {
  .price-board-header {
    display: grid;
    gap: 8px;
  }

  .price-board-time {
    justify-items: start;
  }

  .price-card-head {
    gap: 14px;
  }

  .price-card-current strong {
    font-size: 1.22rem;
  }

  .price-tier-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .price-admin-item > summary,
  .price-admin-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .price-admin-item-summary {
    justify-content: space-between;
  }

  .price-tier-editor-row {
    grid-template-columns: 1fr;
  }

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

  .price-notice-dialog {
    inset: auto 0 0;
    width: 100dvw;
    max-height: calc(100dvh - 24px);
    margin: 0;
  }

  .price-notice-card {
    padding: 30px 20px calc(20px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -18px 60px oklch(0.18 0.02 250 / 0.2);
  }

  .price-notice-card::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: var(--color-border);
    transform: translateX(-50%);
  }

  .price-notice-close {
    top: 18px;
    right: 14px;
  }

  .price-notice-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 15px;
  }

  .price-notice-card h2 {
    padding-right: 32px;
    font-size: 1.28rem;
  }

  .price-notice-copy {
    margin-top: 12px;
    font-size: 0.94rem;
  }

  .price-notice-confirm {
    min-height: 50px;
    margin-top: 20px;
  }
}

.audit-page-header {
  align-items: center;
}

.audit-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--color-border);
}

.audit-tab {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-bottom: 2px solid transparent;
  color: var(--color-muted);
  font-weight: 750;
}

.audit-tab:hover,
.audit-tab.active {
  border-bottom-color: var(--color-primary);
  color: var(--color-primary-strong);
  text-decoration: none;
}

.audit-tab strong {
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.audit-tab.active strong {
  background: oklch(0.92 0.045 242);
  color: var(--color-primary-strong);
}

.audit-panel {
  display: grid;
  gap: 14px;
}

.audit-section-head {
  margin-bottom: 0;
}

.audit-section-head h2 {
  margin-bottom: 4px;
}

.audit-section-head p {
  margin-bottom: 0;
}

.audit-filter-row {
  margin-bottom: 0;
  align-items: end;
}

.audit-filter-row input[name="q"] {
  flex: 1 1 260px;
  max-width: 360px;
}

.audit-filter-row select {
  min-width: 122px;
}

.audit-date-field {
  display: grid;
  gap: 4px;
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.audit-date-field input {
  min-width: 150px;
}

.audit-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.audit-summary-strip > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 14px;
  border-right: 1px solid var(--color-border);
}

.audit-summary-strip > div:last-child {
  border-right: 0;
}

.audit-summary-strip dt {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.audit-summary-strip dd {
  margin: 0;
  color: var(--color-ink);
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.good-text {
  color: var(--color-success) !important;
}

.bad-text {
  color: var(--color-danger) !important;
}

.audit-page-summary {
  margin-bottom: 0;
}

.audit-table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.audit-table {
  min-width: 980px;
}

.audit-table th,
.audit-table td {
  padding: 11px 9px;
}

.audit-table .cell-sub {
  display: block;
  margin-top: 4px;
}

.audit-code-link,
.audit-ip-link {
  color: var(--color-primary-strong);
  font-weight: 750;
}

.audit-client-cell {
  min-width: 260px;
  max-width: 360px;
}

.audit-client-cell strong {
  display: block;
  overflow-wrap: anywhere;
}

.user-agent-details {
  margin-top: 7px;
  color: var(--color-muted);
  font-size: 0.75rem;
}

.user-agent-details summary {
  cursor: pointer;
  font-weight: 700;
}

.user-agent-details code {
  display: block;
  max-width: 340px;
  margin-top: 6px;
  padding: 6px 8px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 0.72rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.audit-meta-cell {
  max-width: 360px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  .audit-page-header {
    align-items: stretch;
  }

  .audit-page-header .button {
    width: 100%;
  }

  .audit-filter-row input[name="q"],
  .audit-filter-row select,
  .audit-date-field,
  .audit-filter-row > .button {
    flex: 1 1 100%;
    max-width: none;
    width: 100%;
  }

  .audit-date-field input {
    width: 100%;
  }

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

  .audit-summary-strip > div:nth-child(2) {
    border-right: 0;
  }

  .audit-summary-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-border);
  }

  .audit-table {
    min-width: 0;
  }

  .audit-client-cell {
    min-width: 0;
    max-width: none;
  }

  .user-agent-details code {
    max-width: none;
  }
}

.public-result .after-sale-timeline {
  display: grid;
  gap: 0;
  margin: 0 17px 15px;
  padding: 10px 12px;
  border: 1px solid oklch(0.87 0.018 250);
  border-radius: 9px;
  background: var(--color-surface);
}

.after-sale-step {
  display: grid;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid var(--color-border);
}

.after-sale-step:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.after-sale-step:last-child {
  padding-bottom: 0;
}

.after-sale-step-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.after-sale-step-head time {
  color: var(--color-muted);
  font-size: 0.86rem;
}

.after-sale-step-detail {
  display: grid;
  gap: 5px;
}

.after-sale-step-detail p {
  margin: 0;
  overflow-wrap: anywhere;
}

.after-sale-step-detail span {
  color: var(--color-muted);
  font-weight: 650;
}

.after-sale-step-detail code {
  overflow-wrap: anywhere;
}

.after-sale-note-action {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.result-item > .notice {
  margin: 0 17px 16px;
}

.result-after-sale-actions {
  display: flex;
  justify-content: center;
  padding: 15px 17px 17px;
  border-top: 1px solid var(--color-border);
  background: oklch(0.985 0.004 250);
}

.result-after-sale-button {
  width: min(100%, 240px);
  min-height: 44px;
  border-color: oklch(0.72 0.08 242 / 0.72);
  background: var(--color-bg);
  color: var(--color-primary-strong);
  font-weight: 790;
  box-shadow: 0 6px 18px oklch(0.42 0.1 244 / 0.08);
}

.result-after-sale-button:hover {
  border-color: var(--color-primary-strong);
  background: oklch(0.97 0.018 242);
}

@media (prefers-reduced-motion: no-preference) {
  .public-result .result-header {
    animation: result-surface-enter 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .public-result .result-toolbar {
    animation: result-surface-enter 620ms 90ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes result-surface-enter {
  from {
    opacity: 0;
    transform: translateY(9px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.option-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.option-group legend {
  margin-bottom: 8px;
  font-weight: 750;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.option-grid.tall {
  grid-template-columns: 1fr;
}

.radio-card {
  display: flex;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  cursor: pointer;
}

.radio-card input {
  width: 16px;
  min-height: 16px;
}

.secret-content,
.table-secret {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.secret-content {
  padding: 14px 15px 16px;
  border-radius: 0;
  background: transparent;
  color: oklch(0.25 0.028 252);
  font-size: 0.86rem;
  line-height: 1.65;
}

.panel {
  padding: 18px;
}

.modal {
  width: min(620px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 40px));
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-ink);
}

.modal.wide-modal {
  width: min(780px, calc(100vw - 32px));
}

.modal::backdrop {
  background: oklch(0.18 0.01 255 / 0.42);
}

.modal-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: inherit;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-panel);
}

.modal-head,
.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
}

.modal-head {
  border-bottom: 1px solid var(--color-border);
}

.modal-head h2 {
  margin-bottom: 4px;
}

.modal-head p {
  margin-bottom: 0;
}

.modal-body {
  scroll-padding-block: 18px 120px;
  overflow: auto;
  padding: 18px 18px 26px;
}

.modal-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.modal.after-sale-access-dialog {
  width: min(360px, calc(100vw - 32px));
  max-height: none;
}

.after-sale-access-panel {
  display: block;
  overflow: visible;
  padding: 20px;
  border-color: oklch(0.82 0.025 250);
  border-radius: 12px;
  box-shadow: 0 18px 48px oklch(0.18 0.02 255 / 0.22);
}

.after-sale-access-input {
  width: 100%;
  min-height: 52px;
  border-color: oklch(0.74 0.045 246);
  background: var(--color-bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-align: center;
}

.login-panel {
  padding: 28px;
}

.form-error {
  margin: 0;
  color: var(--color-danger);
  font-weight: 650;
}

.public-home .form-error {
  padding: 0 24px;
  text-align: left;
}

.form-error.large {
  font-size: 1rem;
}

.admin-body {
  min-width: 0;
  overflow-x: hidden;
  background: var(--color-surface);
}

.admin-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
  min-width: 0;
  max-width: 100%;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--color-border);
  background: var(--color-bg);
  padding: 16px;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 40px;
  margin-bottom: 18px;
  color: var(--color-ink);
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--color-primary);
  color: oklch(1 0 0);
}

.side-nav {
  display: grid;
  gap: 4px;
}

.side-nav a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: var(--color-muted);
  font-weight: 650;
}

.side-nav a:hover,
.side-nav a.active {
  background: var(--color-surface);
  color: var(--color-primary-strong);
  text-decoration: none;
}

.main-column {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  height: var(--topbar);
  width: 100%;
  padding: 0 24px;
  border-bottom: 1px solid var(--color-border);
  background: oklch(1 0 0 / 0.94);
}

.topbar > div {
  min-width: 0;
}

.topbar strong {
  overflow-wrap: anywhere;
}

.admin-main {
  display: grid;
  gap: 18px;
  padding: 22px 24px 40px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.admin-main > *,
.page-header > *,
.section-head > *,
.panel,
.modal-panel,
.modal-head > *,
.modal-body,
.modal-actions {
  min-width: 0;
}

.page-header,
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.page-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.after-sale-key-output-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.after-sale-key-output {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 760;
  letter-spacing: 0.045em;
}

.order-code-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

.order-code-heading h1 {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.copy-code-button.copied {
  border-color: oklch(0.78 0.08 150);
  background: oklch(0.96 0.025 150);
  color: oklch(0.35 0.1 150);
}

.section-head {
  align-items: center;
  margin-bottom: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.metric-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.metric {
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.metric span {
  display: block;
  color: var(--color-muted);
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.45rem;
  line-height: 1.2;
}

.product-metric {
  min-width: 0;
}

.metric-product-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.metric-product-item {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.metric-product-item strong {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.metric-product-item span {
  font-size: 0.86rem;
}

.info-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.info-row {
  display: grid;
  gap: 4px;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.info-row.wide {
  grid-column: 1 / -1;
}

.info-row span {
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.info-row strong,
.info-row p {
  margin: 0;
  overflow-wrap: anywhere;
}

.info-row p {
  white-space: pre-wrap;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.data-table th,
.data-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 750;
}

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

.empty {
  height: 72px;
  color: var(--color-muted);
  text-align: center;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
  white-space: nowrap;
}

.status.good {
  background: oklch(0.93 0.05 150);
  color: oklch(0.31 0.095 150);
}

.status.info {
  background: oklch(0.92 0.045 242);
  color: oklch(0.38 0.11 242);
}

.status.bad {
  background: oklch(0.94 0.055 27);
  color: oklch(0.42 0.15 27);
}

.status.muted {
  background: var(--color-surface);
  color: var(--color-muted);
}

.filter-row,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.compact-actions {
  flex-wrap: nowrap;
  gap: 6px;
}

.compact-actions select {
  min-width: 96px;
  min-height: 30px;
  padding: 5px 8px;
}

.status-action-cell {
  min-width: 190px;
}

.inventory-row-actions {
  display: grid;
  gap: 7px;
  justify-items: start;
}

.inventory-row-actions .compact-actions {
  width: 100%;
}

.filter-row {
  margin-bottom: 14px;
}

.filter-row input,
.filter-row select {
  max-width: 260px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 6px;
  color: var(--color-ink);
  font-weight: 650;
}

label.radio-card {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  color: var(--color-ink);
}

.field-block {
  display: grid;
  gap: 6px;
}

.action-button-fields {
  scroll-margin-block: 16px 120px;
  border: 1px dashed var(--color-primary);
  border-radius: var(--radius);
  background: oklch(0.985 0.012 242);
}

.action-button-fields summary {
  display: flex;
  min-height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  list-style: none;
  background: var(--color-bg);
}

.action-button-fields summary::-webkit-details-marker {
  display: none;
}

.action-button-fields summary::after {
  content: "展开";
  display: inline-flex;
  min-width: 42px;
  height: 24px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-primary-strong);
  background: oklch(0.965 0.025 242);
  font-size: 0.8rem;
  font-weight: 750;
}

.action-button-fields[open] summary {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.action-button-fields[open] {
  border-style: solid;
  background: var(--color-surface);
}

.action-button-fields[open] summary::after {
  content: "收起";
}

.action-button-summary-main {
  color: var(--color-primary-strong);
  font-weight: 800;
}

.action-button-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.action-button-body .form-grid {
  gap: 10px;
}

.action-button-tip {
  align-items: flex-start;
}

.field-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
}

.field-label {
  color: var(--color-ink);
  font-weight: 650;
}

.textarea-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  grid-column: 1 / -1;
}

.row-details summary {
  cursor: pointer;
  color: var(--color-primary-strong);
  font-weight: 650;
}

.inline-edit {
  display: grid;
  gap: 8px;
  min-width: 220px;
  margin-top: 8px;
}

.table-secret {
  max-width: 360px;
  max-height: 90px;
  overflow: auto;
  padding: 8px;
  border-radius: 6px;
  background: var(--color-surface);
}

.after-sale-panel {
  display: grid;
  gap: 14px;
}

.after-sale-live-region {
  display: contents;
}

.after-sale-panel .filter-row {
  margin-bottom: 0;
}

.admin-page-summary,
.after-sale-page-summary,
.admin-pagination,
.admin-pagination-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-page-summary,
.after-sale-page-summary,
.admin-pagination {
  justify-content: space-between;
}

.admin-page-summary,
.after-sale-page-summary {
  margin-bottom: 14px;
  padding: 0 2px;
  font-size: 0.82rem;
}

.after-sale-panel .admin-page-summary,
.after-sale-panel .after-sale-page-summary {
  margin-bottom: 0;
}

.filter-result-count,
.after-sale-filter-count {
  display: inline-flex;
  gap: 5px;
  align-items: baseline;
  color: var(--color-primary-strong);
  font-weight: 700;
}

.filter-result-count strong,
.after-sale-filter-count strong {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.admin-pagination {
  padding-top: 2px;
}

.admin-pagination-status {
  color: var(--color-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.after-sale-list {
  display: grid;
  gap: 12px;
}

.after-sale-record {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.after-sale-record-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.repeat-after-sale-alert {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin: -14px -14px 0;
  padding: 13px 14px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #dc2626;
  color: #fff;
  font-weight: 800;
}

.repeat-after-sale-alert strong {
  font-size: 1rem;
}

.repeat-after-sale-alert span {
  overflow-wrap: anywhere;
  color: #fff;
  font-weight: 750;
}

.access-key-after-sale-alert {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid oklch(0.8 0.09 75);
  border-radius: 8px;
  background: oklch(0.94 0.055 75);
  color: oklch(0.31 0.085 58);
}

.access-key-after-sale-alert strong,
.access-key-after-sale-alert span {
  color: inherit;
  font-weight: 800;
}

.access-key-origin-status {
  border-color: oklch(0.79 0.085 75);
  background: oklch(0.94 0.055 75);
  color: oklch(0.31 0.085 58);
}

.access-key-source-meta {
  display: grid;
  gap: 5px;
  padding: 10px 11px;
  border: 1px solid oklch(0.84 0.055 75);
  border-radius: 8px;
  background: oklch(0.975 0.025 75);
  color: oklch(0.34 0.055 58);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.access-key-source-meta strong,
.access-key-source-meta span {
  color: inherit;
}

.after-sale-title,
.after-sale-head-actions,
.chain-item-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  min-width: 0;
}

.case-number {
  color: var(--color-primary-strong);
  font-weight: 800;
}

.after-sale-title strong {
  overflow-wrap: anywhere;
}

.after-sale-record-grid {
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) minmax(260px, 1.1fr) minmax(96px, 0.45fr) minmax(300px, 1.35fr);
  gap: 18px;
  align-items: start;
}

.record-section {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.section-label {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.record-section strong,
.record-section p {
  margin: 0;
  overflow-wrap: anywhere;
}

.record-section code {
  display: block;
  overflow-wrap: anywhere;
}

.source-order-summary {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.source-order-summary-head,
.source-order-details > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.source-order-summary-head > span,
.source-order-details dt {
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.source-order-summary-head code {
  color: var(--color-primary-strong);
  font-weight: 800;
}

.source-order-details {
  display: grid;
  gap: 8px;
  margin: 0;
}

.source-order-details dt,
.source-order-details dd {
  margin: 0;
}

.source-order-details dd {
  font-weight: 750;
  overflow-wrap: anywhere;
}

.source-order-note dd {
  white-space: pre-wrap;
}

.source-order-expiry {
  color: var(--color-muted);
  font-size: 0.78rem;
}

.source-order-summary-empty {
  min-height: 54px;
  place-items: center start;
}

.proof-section .proof-list {
  max-width: none;
}

.after-sale-chain-list {
  display: grid;
  gap: 10px;
}

.after-sale-chain-item {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}

.after-sale-chain-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.after-sale-chain-item .table-secret {
	width: 100%;
	max-width: none;
	max-height: 128px;
}

.chain-item-times {
	display: flex;
	flex-wrap: wrap;
	gap: 7px 18px;
	margin: 0;
}

.chain-item-times > div {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 5px;
	align-items: baseline;
}

.chain-item-times dt,
.chain-item-times dd {
	margin: 0;
	font-size: 0.76rem;
}

.chain-item-times dt {
	color: var(--color-muted);
	font-weight: 750;
}

.chain-item-times dd {
	color: var(--color-ink);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

.chain-item-reissued-time dt,
.chain-item-reissued-time dd {
	color: var(--color-primary-strong);
}

.after-sale-empty {
  display: grid;
  place-items: center;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.settings-panel,
.settings-form {
  display: grid;
  gap: 16px;
}

.settings-check {
  align-self: end;
}

.settings-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.sender-mode-grid {
  max-width: 520px;
}

.settings-test-row {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 14px;
  align-items: end;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.settings-help {
  display: grid;
  gap: 12px;
}

.settings-message.success {
  color: oklch(0.31 0.095 150);
}

.settings-message.error {
  color: var(--color-danger);
}

.proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 260px;
}

.proof-thumb {
  display: grid;
  gap: 5px;
  width: 72px;
  padding: 5px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-ink);
  cursor: pointer;
  text-align: left;
}

.proof-thumb:hover {
  border-color: var(--color-primary);
  background: var(--color-surface);
}

.proof-thumb img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--color-surface);
  object-fit: cover;
}

.proof-thumb span {
  overflow: hidden;
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proof-modal {
  width: min(920px, calc(100vw - 24px));
}

.proof-preview-body {
  display: grid;
  place-items: center;
  background: var(--color-surface);
}

.proof-preview-image {
  display: block;
  max-width: 100%;
  max-height: min(68vh, 720px);
  border-radius: var(--radius);
  background: var(--color-bg);
  object-fit: contain;
}

.proof-preview-image[hidden] {
  display: none;
}

.order-lines {
  display: grid;
  gap: 10px;
}

.order-line {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 120px auto;
  gap: 10px;
  align-items: end;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.check-row {
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 8px 10px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.check-row input {
  width: 16px;
  min-height: 16px;
}

.check-row small {
  grid-column: 2;
  color: var(--color-muted);
}

.notice,
.flash {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--color-surface);
}

.inventory-counter {
  margin: -4px 0 0;
  padding: 9px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-muted);
  font-weight: 650;
}

.inventory-counter.has-items {
  border-color: oklch(0.78 0.08 150);
  background: oklch(0.96 0.025 150);
  color: oklch(0.35 0.1 150);
}

.inventory-counter.has-duplicates {
  border-color: oklch(0.82 0.08 75);
  background: oklch(0.96 0.035 75);
  color: oklch(0.38 0.09 75);
}

.flash-success {
  color: oklch(0.31 0.095 150);
}

.flash-error {
  color: var(--color-danger);
}

.admin-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 36px));
  box-shadow: 0 8px 18px oklch(0.22 0.025 255 / 0.16);
}

.submit-feedback {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, calc(env(safe-area-inset-bottom) + 10px));
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(360px, calc(100vw - 28px));
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid oklch(0.76 0.055 242);
  border-radius: var(--radius);
  background: oklch(0.985 0.008 242);
  color: var(--color-primary-strong);
  box-shadow: 0 10px 24px oklch(0.22 0.025 255 / 0.18);
  font-weight: 750;
}

.submit-feedback-spinner,
.button.is-submitting::before,
.icon-button.is-submitting::before {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: submit-spin 700ms linear infinite;
}

.button.is-submitting,
.icon-button.is-submitting {
  gap: 8px;
  cursor: progress;
}

.is-submit-locked[aria-disabled="true"] {
  pointer-events: none;
}

@keyframes submit-spin {
  to {
    transform: rotate(360deg);
  }
}

.break-anywhere {
  overflow-wrap: anywhere;
}

.chat-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(248px, 300px);
  gap: 14px;
  align-items: start;
}

.chat-list-panel {
  overflow: hidden;
}

.chat-room-table {
  table-layout: fixed;
}

.chat-room-table th:nth-child(1) {
  width: 27%;
}

.chat-room-table th:nth-child(2) {
  width: 92px;
}

.chat-room-table th:nth-child(3) {
  width: 25%;
}

.chat-room-table th:nth-child(4) {
  width: 150px;
}

.chat-room-table th:nth-child(5) {
  width: 190px;
}

.chat-room-table th:nth-child(6) {
  width: 74px;
}

.chat-room-main-cell strong,
.chat-room-message-cell strong {
  display: block;
  overflow-wrap: anywhere;
}

.chat-room-message-cell .cell-sub {
  display: -webkit-box;
  max-height: 2.8em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.chat-token-cell code {
  display: block;
  max-height: 2.8em;
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.4;
}

.chat-token-cell .inline-actions {
  margin-top: 6px;
}

.chat-thread {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.chat-side {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.chat-thread.panel,
.chat-side.panel {
  padding: 16px;
}

.chat-thread-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
}

.chat-thread-head h2,
.chat-side h2 {
  margin-bottom: 2px;
}

.chat-live-indicator {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid oklch(0.88 0.014 247);
  border-radius: 999px;
  background: oklch(0.98 0.004 247);
  color: oklch(0.4 0.03 252);
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
}

.chat-message-list {
  display: grid;
  align-content: start;
  gap: 12px;
  height: clamp(400px, calc(100dvh - 326px), 700px);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, oklch(0.982 0.003 247), oklch(0.962 0.005 247)),
    var(--color-surface);
  scrollbar-color: oklch(0.76 0.016 252) transparent;
}

.chat-empty {
  align-self: center;
  justify-self: center;
  max-width: 30ch;
  color: var(--color-muted);
  font-weight: 650;
  text-align: center;
}

.chat-message {
  display: grid;
  justify-items: start;
}

[data-chat-role="admin"] .chat-message-admin,
[data-chat-role="visitor"] .chat-message-visitor {
  justify-items: end;
}

.chat-message-system {
  justify-items: center;
}

@media (prefers-reduced-motion: no-preference) {
  .chat-message {
    animation: chat-message-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@keyframes chat-message-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-bubble {
  display: grid;
  gap: 7px;
  max-width: min(660px, 78%);
  padding: 11px 13px;
  border: 1px solid oklch(0.89 0.012 252);
  border-radius: 16px;
  background: oklch(0.998 0 0);
  color: var(--color-ink);
  overflow-wrap: anywhere;
}

[data-chat-role="admin"] .chat-message-admin .chat-bubble,
[data-chat-role="visitor"] .chat-message-visitor .chat-bubble {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: oklch(1 0 0);
}

.chat-message-system .chat-bubble {
  max-width: min(540px, 92%);
  padding: 6px 10px;
  border-color: transparent;
  background: transparent;
  color: var(--color-muted);
  text-align: center;
}

.chat-message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  color: var(--color-muted);
  font-size: 0.73rem;
  font-weight: 680;
}

.chat-message-meta strong {
  color: var(--color-ink);
}

[data-chat-role="admin"] .chat-message-admin .chat-message-meta,
[data-chat-role="visitor"] .chat-message-visitor .chat-message-meta {
  color: oklch(1 0 0 / 0.76);
}

[data-chat-role="admin"] .chat-message-admin .chat-message-meta strong,
[data-chat-role="visitor"] .chat-message-visitor .chat-message-meta strong {
  color: oklch(1 0 0);
}

.chat-bubble p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(410px, 100%);
}

.chat-attachment {
  display: block;
  width: 108px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid oklch(0.88 0.014 247);
  border-radius: var(--radius);
  background: var(--color-bg);
  transition: border-color 160ms ease, transform 160ms ease;
}

.chat-attachment:hover {
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.chat-attachment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-attachment-file {
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 8px;
  color: var(--color-ink);
  text-align: center;
  text-decoration: none;
}

.chat-attachment-file span {
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 800;
}

.chat-attachment-file strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.chat-composer {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-panel);
}

.chat-input-label {
  display: grid;
  gap: 6px;
}

.chat-input-label span {
  color: oklch(0.38 0.028 252);
  font-size: 0.78rem;
  font-weight: 780;
}

.chat-composer textarea {
  min-height: 74px;
  max-height: 24dvh;
  padding: 12px 13px;
  border-color: transparent;
  border-radius: var(--radius);
  background: oklch(0.962 0.004 247);
  box-shadow: inset 0 0 0 1px oklch(0.885 0.014 252);
  line-height: 1.45;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.chat-composer textarea:focus {
  border-color: transparent;
  background: var(--color-bg);
  box-shadow: inset 0 0 0 1px var(--color-primary), 0 0 0 3px oklch(0.72 0.095 242 / 0.18);
}

.chat-composer-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.chat-composer-actions .button {
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.chat-composer-actions .button.primary {
  min-width: 78px;
}

.chat-composer-actions > span {
  min-width: 0;
  overflow: hidden;
  color: oklch(0.42 0.026 255);
  font-size: 0.82rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-side-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: stretch;
}

.chat-side-actions form {
  display: contents;
}

.chat-upload-button {
  position: relative;
  overflow: hidden;
  border-color: oklch(0.86 0.016 247);
  background: oklch(0.964 0.004 247);
}

.chat-upload-button:hover {
  border-color: oklch(0.74 0.06 242);
  background: oklch(0.952 0.01 247);
}

.chat-upload-button input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.chat-side-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.chat-side-head > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chat-room-details {
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
}

.chat-room-details summary {
  cursor: pointer;
  color: var(--color-primary-strong);
  font-weight: 750;
}

.chat-room-detail-list {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.chat-room-detail-list > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.chat-room-detail-list span {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.chat-room-detail-list strong,
.chat-room-detail-list p {
  margin: 0;
  overflow-wrap: anywhere;
}

.chat-public-body {
  min-height: 100dvh;
  background:
    linear-gradient(180deg, oklch(0.99 0 0), oklch(0.94 0.006 247)),
    var(--color-surface);
}

.chat-public-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(840px, calc(100% - 28px));
  min-height: calc(100dvh - 28px);
  margin: 14px auto;
  overflow: hidden;
  border: 1px solid oklch(0.87 0.014 247);
  border-radius: var(--radius);
  background: oklch(0.972 0.004 247);
}

.chat-public-head {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: calc(13px + env(safe-area-inset-top)) 18px 13px;
  border-bottom: 1px solid oklch(0.87 0.014 247);
  background: oklch(0.995 0 0 / 0.9);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.chat-public-head h1 {
  margin-bottom: 0;
  font-size: 1.08rem;
  font-weight: 760;
  line-height: 1.22;
}

.chat-public-head .system-name {
  margin-bottom: 2px;
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 720;
}

.chat-public-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
}

.chat-public-thread {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  overflow: hidden;
  padding: 14px 16px 16px;
}

.chat-public-note {
  justify-self: center;
  max-width: 100%;
  margin: 0;
  padding: 6px 11px;
  border: 1px solid oklch(0.88 0.014 247);
  border-radius: 999px;
  background: oklch(1 0 0 / 0.78);
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 650;
  text-align: center;
}

.public-chat-thread {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  gap: 10px;
}

.public-chat-thread .chat-message-list {
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.public-chat-thread .chat-composer {
  background: oklch(0.995 0 0 / 0.92);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.public-chat-thread .chat-composer textarea {
  min-height: 66px;
}

@media (prefers-reduced-transparency: reduce) {
  .chat-public-head,
  .public-chat-thread .chat-composer {
    background: var(--color-panel);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (pointer: coarse) {
  .button,
  .side-nav a,
  input,
  select,
  textarea {
    min-height: 44px;
  }

  .icon-button {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 1180px) {
  .after-sale-record-grid {
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.2fr);
  }

  .chain-section {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px;
  }

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

  .admin-shell,
  .main-column,
  .topbar,
  .admin-main,
  .admin-body {
    width: 100dvw;
    max-width: 100dvw;
  }

  .sidebar {
    width: 100%;
    min-width: 0;
  }

  .admin-body .button {
    min-height: 44px;
  }

  .admin-body .button.small {
    min-height: 44px;
  }

  .admin-body .icon-button {
    width: 44px;
    height: 44px;
  }

  .sidebar {
    position: static;
    z-index: 20;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
    padding: calc(10px + env(safe-area-inset-top)) 12px 8px;
  }

  .brand {
    min-height: 34px;
    margin-bottom: 8px;
  }

  .side-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .side-nav::-webkit-scrollbar {
    display: none;
  }

  .side-nav a {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 6px 10px;
  }

  .topbar {
    position: static;
    justify-content: space-between;
    height: auto;
    min-height: 50px;
    padding: 10px 14px;
  }

  .redeem-panel {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .settings-test-row {
    grid-template-columns: 1fr;
  }

  .order-line {
    grid-template-columns: 1fr;
  }

  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .after-sale-record-grid {
    grid-template-columns: 1fr;
  }

  .chain-section {
    grid-column: auto;
  }

  .chat-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-body .data-table {
    display: grid;
    gap: 10px;
    overflow: visible;
    white-space: normal;
  }

  .admin-body .data-table thead {
    display: none;
  }

  .admin-body .data-table tbody {
    display: grid;
    gap: 10px;
  }

  .admin-body .data-table tr {
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
  }

  .admin-body .data-table td {
    display: grid;
    grid-template-columns: minmax(72px, 34%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
    padding: 0;
    border-bottom: 0;
    overflow-wrap: anywhere;
  }

  .admin-body .data-table td::before {
    content: attr(data-label);
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.5;
  }

  .admin-body .data-table td[data-label=""] {
    grid-template-columns: 1fr;
  }

  .admin-body .data-table td[data-label=""]::before,
  .admin-body .data-table td.empty::before {
    content: none;
  }

  .admin-body .data-table td.empty {
    display: block;
    padding: 16px 8px;
    text-align: center;
  }

  .admin-body .data-table .cell-sub {
    grid-column: 2;
  }

  .status-action-cell {
    min-width: 0;
  }

  .status-action-cell .cell-sub {
    grid-column: 1 / -1;
  }

  .inventory-row-actions {
    justify-items: stretch;
  }

  .inventory-row-actions > .button {
    width: 100%;
  }

  .inline-actions,
  .compact-actions {
    align-items: stretch;
  }

  .after-sale-head-actions {
    align-items: stretch;
    width: 100%;
  }

  .after-sale-head-actions .inline-actions {
    width: 100%;
  }

  .after-sale-head-actions .compact-actions {
    flex-wrap: wrap;
  }

  .table-secret {
    width: 100%;
    max-width: none;
    max-height: 34vh;
  }

  .proof-list {
    max-width: none;
  }

  .section-head {
    gap: 8px;
  }

  .chat-room-table tr {
    gap: 8px;
  }

  .chat-room-table td {
    grid-template-columns: minmax(72px, 30%) minmax(0, 1fr);
  }

  .chat-room-table .chat-room-main-cell {
    grid-template-columns: 1fr;
  }

  .chat-room-table .chat-room-main-cell::before {
    content: none;
  }

  .chat-room-table .chat-room-main-cell .cell-sub {
    grid-column: auto;
  }

  .chat-room-table .chat-token-cell code {
    display: none;
  }

  .chat-room-table .chat-token-cell .inline-actions,
  .chat-room-table .chat-row-actions {
    grid-column: 1 / -1;
  }

  .chat-room-table .chat-token-cell .button,
  .chat-room-table .chat-row-actions .button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 1.35rem;
    overflow-wrap: anywhere;
  }

  .button {
    min-height: 42px;
  }

  .button.small {
    min-height: 40px;
  }

  .public-body {
    place-items: start center;
  }

  .public-home {
    place-items: center;
  }

  .public-wrap,
  .public-wrap.narrow {
    width: min(100%, calc(100vw - 20px));
    padding: 12px 0 24px;
  }

  .public-query-wrap {
    width: min(100%, calc(100vw - 20px));
    padding: clamp(48px, 18vh, 96px) 0 24px;
  }

  .two-factor-wrap {
    width: min(100%, calc(100vw - 20px));
    padding: 22px 0 36px;
  }

  .two-factor-nav {
    flex-wrap: wrap;
    margin-bottom: 18px;
  }

  .two-factor-guide-wrap {
    width: min(100%, calc(100vw - 20px));
    padding: 22px 0 44px;
  }

  .two-factor-guide-header {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: stretch;
    padding-bottom: 22px;
  }

  .two-factor-guide-header h1 {
    font-size: 1.55rem;
  }

  .two-factor-guide-tool-link {
    width: 100%;
  }

  .two-factor-guide-alert {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
    margin-top: 18px;
    padding: 14px;
  }

  .two-factor-guide-alert-icon {
    width: 24px;
    height: 24px;
  }

  .two-factor-guide-step {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
    padding: 26px 0;
  }

  .two-factor-guide-step-number {
    width: 30px;
    height: 30px;
  }

  .two-factor-guide-step-copy h2 {
    font-size: 1rem;
  }

  .two-factor-guide-figure {
    grid-column: 1 / -1;
  }

  .two-factor-guide-figure img {
    max-height: none;
  }

  .two-factor-guide-finish {
    flex-direction: column;
    align-items: stretch;
  }

  .two-factor-guide-finish .button {
    width: 100%;
  }

  .two-factor-workspace {
    grid-template-columns: 1fr;
  }

  .two-factor-entry,
  .two-factor-result {
    padding: 18px;
  }

  .two-factor-result {
    min-height: 300px;
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .two-factor-secret-row {
    align-items: stretch;
  }

  .two-factor-actions .button {
    flex: 1 1 140px;
  }

  .two-factor-code {
    margin-top: 30px;
    font-size: 1.8rem;
  }

  .public-result-wrap {
    width: min(100%, calc(100vw - 20px));
    padding: 14px 0 44px;
  }

  .redeem-panel,
  .panel {
    border-radius: var(--radius);
  }

  .redeem-panel {
    gap: 18px;
    padding: 18px;
  }

  .redeem-panel-home {
    gap: 22px;
    padding: 0;
  }

  .redeem-panel-home h1 {
    font-size: 1.45rem;
  }

  .redeem-search-box {
    min-height: 58px;
    padding: 5px 5px 5px 18px;
  }

  .redeem-search-box input {
    min-height: 46px;
    font-size: 0.92rem;
    letter-spacing: 0;
  }

  .redeem-search-button {
    width: 46px;
    min-width: 46px;
    min-height: 46px;
  }

  .result-header,
  .page-header,
  .section-head {
    align-items: stretch;
  }

  .result-header {
    gap: 16px;
    padding: 20px;
    border-radius: 10px;
  }

  .result-header h1 {
    font-size: 1.18rem;
  }

  .result-header > .button,
  .page-header > .button,
  .page-header > button {
    width: 100%;
  }

  .result-toolbar {
    align-items: stretch;
    border-radius: 10px;
  }

  .result-toolbar .button {
    flex: 1 1 160px;
  }

  .result-count {
    justify-content: center;
    min-height: 42px;
  }

  .secret-content {
    max-height: 46vh;
    overflow: auto;
  }

  .result-product-meta {
    padding-right: 14px;
    padding-left: 14px;
  }

  .public-result .after-sale-timeline,
  .result-item > .notice {
    margin-right: 14px;
    margin-left: 14px;
  }

  .result-after-sale-actions {
    padding: 14px;
  }

  .result-after-sale-button {
    width: 100%;
  }

  .after-sale-flow {
    padding: 14px;
  }

  .after-sale-flow-head {
    justify-content: flex-start;
    padding: 0 0 13px;
  }

  .flow-current-legend {
    padding-left: 5px;
  }

  .after-sale-flow-step {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    padding-bottom: 14px;
  }

  .after-sale-flow-step::before {
    top: 29px;
    left: 14px;
  }

  .after-sale-flow-marker {
    width: 30px;
    height: 30px;
    box-shadow: 0 0 0 4px var(--color-bg);
  }

  .after-sale-flow-marker svg {
    width: 16px;
    height: 16px;
  }

  .inventory-flow-step.is-current .inventory-flow-marker {
    box-shadow: 0 0 0 4px var(--color-bg), 0 6px 15px oklch(0.42 0.13 244 / 0.2);
  }

  .flow-card {
    gap: 10px;
    padding: 12px;
  }

  .flow-card-head {
    gap: 7px 10px;
  }

  .admin-main {
    gap: 14px;
    padding: 12px 10px calc(28px + env(safe-area-inset-bottom));
  }

  .page-header {
    flex-direction: column;
    gap: 10px;
  }

  .page-header-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .page-header-actions .button {
    width: 100%;
  }

  .metric-grid,
  .metric-grid.compact,
  .split-grid,
  .form-grid,
  .permission-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 12px;
  }

  .topbar {
    gap: 10px;
    padding: 8px 10px;
  }

  .topbar form {
    flex: 0 0 auto;
  }

  .topbar .button {
    min-height: 38px;
  }

  .brand span:last-child {
    overflow-wrap: anywhere;
  }

  .section-head {
    align-items: center;
  }

  .section-head a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
  }

  .filter-row {
    align-items: stretch;
  }

  .after-sale-record {
    padding: 12px;
  }

  .after-sale-record-head {
    align-items: stretch;
  }

  .after-sale-title,
  .after-sale-head-actions,
  .chain-item-head {
    align-items: flex-start;
  }

  .after-sale-head-actions .button {
    flex: 1 1 120px;
  }

  .filter-row input,
  .filter-row select,
  .filter-row .button {
    width: 100%;
    max-width: none;
  }

  .action-button-fields summary {
    align-items: flex-start;
  }

  .action-button-fields summary .cell-sub {
    display: block;
    margin-top: 2px;
  }

  .action-button-tip .button {
    width: 100%;
  }

  .modal {
    inset: auto 0 0;
    width: 100dvw;
    max-width: none;
    max-height: 100dvh;
    margin: 0;
  }

  .modal.wide-modal {
    width: 100dvw;
  }

  .modal-panel {
    max-height: 100dvh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .modal.after-sale-access-dialog {
    inset: 0;
    width: min(360px, calc(100dvw - 32px));
    max-height: none;
    margin: auto;
  }

  .after-sale-access-dialog .modal-panel {
    border: 1px solid var(--color-border);
    border-radius: 12px;
  }

  .after-sale-key-output-row {
    grid-template-columns: 1fr;
  }

  .modal-head,
  .modal-actions {
    padding: 14px;
  }

  .modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-top: calc(14px + env(safe-area-inset-top));
    background: var(--color-panel);
  }

  .modal-body {
    scroll-padding-block: 14px calc(132px + env(safe-area-inset-bottom));
    padding: 14px 14px calc(132px + env(safe-area-inset-bottom));
  }

  .modal-actions {
    position: sticky;
    bottom: 0;
    flex-direction: column-reverse;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }

  .modal-actions .button {
    width: 100%;
  }

  .submit-feedback {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    max-width: calc(100vw - 20px);
  }

  .option-grid,
  .option-grid.tall {
    grid-template-columns: 1fr;
  }

  .chat-admin-header {
    gap: 8px;
  }

  .chat-admin-header > .button {
    width: 100%;
  }

  .chat-thread-head {
    align-items: center;
    flex-direction: row;
  }

  .chat-thread-head p {
    display: none;
  }

  .chat-workspace {
    gap: 12px;
  }

  .chat-thread.panel,
  .chat-side.panel {
    padding: 10px;
  }

  .chat-message-list {
    height: clamp(320px, calc(100dvh - 356px), 520px);
    padding: 10px;
  }

  .chat-bubble {
    max-width: 90%;
  }

  .chat-attachment {
    width: min(96px, 28vw);
  }

  .chat-side {
    gap: 10px;
  }

  .chat-side-head {
    display: none;
  }

  .chat-room-details {
    padding-top: 0;
    border-top: 0;
  }

  .chat-composer {
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin: 0 -10px -10px;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--color-border);
    background: var(--color-panel);
  }

  .chat-composer-actions {
    align-items: center;
  }

  .chat-composer-actions .button,
  .chat-composer-actions > span {
    min-width: 0;
  }

  .chat-side-actions .button {
    width: 100%;
  }

  .chat-public-body {
    min-height: 100dvh;
    overflow: hidden;
  }

  .chat-public-shell {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .chat-public-head {
    min-height: 58px;
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  }

  .chat-public-head h1 {
    font-size: 1.08rem;
    line-height: 1.25;
  }

  .chat-public-head .system-name {
    font-size: 0.78rem;
  }

  .chat-public-head-actions .chat-live-indicator {
    display: none;
  }

  .chat-public-thread {
    gap: 8px;
    min-height: 0;
    overflow: hidden;
    padding: 8px 10px 0;
  }

  .chat-public-note {
    max-width: 100%;
    padding: 4px 9px;
    font-size: 0.8rem;
  }

  .public-chat-thread {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    gap: 8px;
  }

  .public-chat-thread .chat-message-list {
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding: 10px 8px 12px;
  }

  .public-chat-thread .chat-composer {
    position: relative;
    bottom: auto;
    margin: 0 -10px;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .public-chat-thread .chat-composer textarea {
    min-height: 58px;
    max-height: 18dvh;
  }

  .public-chat-thread .chat-composer-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .public-chat-thread .chat-composer-actions .button {
    flex: initial;
    min-width: 68px;
  }

  .public-chat-thread .chat-composer-actions > span {
    flex: initial;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .field-head,
  .textarea-tools {
    align-items: stretch;
  }

  .textarea-tools {
    width: 100%;
  }

  .textarea-tools .button {
    flex: 1 1 0;
  }

  .compact-actions {
    flex-wrap: wrap;
  }

  .compact-actions select,
  .compact-actions .button {
    flex: 1 1 100%;
    width: 100%;
  }

  .form-actions .button,
  .form-actions button,
  .add-order-line,
  .order-line .remove-line {
    width: 100%;
  }

  .order-line {
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
  }

  .admin-body .button,
  .admin-body .button.small {
    min-height: 44px;
  }

  .admin-body .topbar .button {
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  .redeem-search-box {
    padding-left: 14px;
  }

  .redeem-search-button {
    width: 46px;
    min-width: 46px;
  }

  .admin-body .data-table td {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .admin-body .data-table .cell-sub {
    grid-column: auto;
  }

  .topbar {
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-home .redeem-panel {
    filter: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.admin-check-button {
  border-color: oklch(0.78 0.06 242);
  color: var(--color-primary-strong);
}

.order-row-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  white-space: nowrap;
}

.admin-check-monitor {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 80;
  width: min(360px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-panel);
  box-shadow: 0 18px 48px oklch(0.22 0.025 255 / 0.2);
}

.admin-check-monitor-head {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  border: 0;
  background: var(--color-panel);
  color: var(--color-ink);
  padding: 10px 13px;
  text-align: left;
  cursor: pointer;
}

.admin-check-monitor-head small,
.admin-check-monitor-head strong {
  display: block;
}

.admin-check-monitor-head small {
  color: var(--color-muted);
  font-size: 0.7rem;
}

.admin-check-monitor-head strong {
  margin-top: 1px;
  overflow: hidden;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-check-device-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-warning);
  box-shadow: 0 0 0 3px oklch(0.94 0.04 75);
}

.admin-check-device-dot.is-online { background: var(--color-success); box-shadow: 0 0 0 3px oklch(0.94 0.04 150); }
.admin-check-device-dot.is-offline { background: var(--color-danger); box-shadow: 0 0 0 3px oklch(0.95 0.035 27); }
.admin-check-device-dot.is-checking { animation: remote-status-pulse 1.8s ease-out infinite; }

.admin-check-chevron {
  color: var(--color-muted);
  transition: transform 160ms ease;
}

.admin-check-monitor.is-collapsed .admin-check-chevron { transform: rotate(180deg); }
.admin-check-monitor.is-collapsed .admin-check-monitor-body { display: none; }

.admin-check-monitor-body {
  border-top: 1px solid var(--color-border);
  padding: 13px;
}

.admin-check-device-line,
.admin-check-progress-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.admin-check-device-line {
  color: var(--color-muted);
  font-size: 0.76rem;
}

.admin-check-device-line a { white-space: nowrap; }
.admin-check-code { margin-top: 11px; overflow-wrap: anywhere; font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.8rem; font-weight: 650; }
.admin-check-progress-summary { margin-top: 13px; color: var(--color-muted); font-size: 0.78rem; }
.admin-check-progress-summary strong { color: var(--color-ink); font-variant-numeric: tabular-nums; }

.admin-check-progress-track {
  height: 7px;
  overflow: hidden;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--color-border);
}

.admin-check-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--color-primary);
  transition: width 180ms ease;
}

.admin-check-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-top: 12px;
}

.admin-check-counts span {
  min-width: 0;
  padding: 6px 4px;
  border-radius: 6px;
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 0.62rem;
  text-align: center;
}

.admin-check-counts strong { display: block; margin-top: 1px; color: var(--color-ink); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.admin-check-latest-log { max-height: 72px; overflow: auto; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--color-border); color: var(--color-muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.72rem; overflow-wrap: anywhere; white-space: pre-wrap; }

@media (max-width: 860px) {
  .admin-check-monitor {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100vw - 20px);
  }
  .order-row-actions { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-check-device-dot.is-checking { animation: none; }
  .admin-check-chevron,
  .admin-check-progress-track span { transition: none; }
}

.remote-mode-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

.remote-mode-selector legend {
  width: 100%;
  margin-bottom: 7px;
  font-weight: 700;
}

.remote-mode-selector label {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.remote-mode-selector input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.remote-mode-selector label > span {
  display: block;
  min-height: 68px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
}

.remote-mode-selector strong,
.remote-mode-selector small { display: block; }
.remote-mode-selector small { margin-top: 3px; color: var(--color-muted); font-size: 0.74rem; line-height: 1.35; }
.remote-mode-selector input:checked + span { border-color: var(--color-primary); background: oklch(0.97 0.018 242); box-shadow: inset 0 0 0 1px var(--color-primary); }
.remote-mode-selector input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.remote-mode-selector input:disabled + span { opacity: 0.62; cursor: not-allowed; }

.remote-mode-field {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
}

.remote-mode-field select {
  display: block;
  min-height: 44px;
  margin-top: 7px;
  border-color: oklch(0.74 0.07 242);
  background: oklch(0.98 0.01 242);
  font-weight: 650;
}

.admin-check-mode-dialog {
  width: min(460px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.admin-check-mode-dialog::backdrop { background: oklch(0.18 0.02 255 / 0.48); }
.admin-check-mode-panel { overflow: hidden; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-panel); box-shadow: 0 24px 70px oklch(0.18 0.02 255 / 0.28); }
.admin-check-mode-panel .modal-head { padding: 18px; }
.admin-check-mode-options { display: grid; gap: 10px; padding: 0 18px 18px; }
.admin-check-mode-options button { width: 100%; padding: 14px; border: 1px solid var(--color-border); border-radius: 9px; background: var(--color-bg); color: var(--color-ink); text-align: left; cursor: pointer; }
.admin-check-mode-options button:hover { border-color: var(--color-primary); background: oklch(0.97 0.018 242); }
.admin-check-mode-options strong,
.admin-check-mode-options span { display: block; }
.admin-check-mode-options span { margin-top: 3px; color: var(--color-muted); font-size: 0.8rem; }

@media (max-width: 560px) {
  .remote-mode-selector { grid-template-columns: 1fr; }
  .remote-mode-selector label > span { min-height: 0; }
}

.admin-check-meta,
.admin-check-current-account {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  color: var(--color-muted);
  font-size: 0.74rem;
}

.admin-check-meta strong,
.admin-check-current-account strong { color: var(--color-ink); overflow-wrap: anywhere; }

.admin-check-task-list {
  display: grid;
  gap: 5px;
  max-height: 210px;
  overflow: auto;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}

.admin-check-task-row {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--color-surface);
  color: var(--color-ink);
  text-align: left;
  cursor: pointer;
}

.admin-check-task-row:hover,
.admin-check-task-row.is-active { border-color: var(--color-primary); }
.admin-check-task-row span { overflow: hidden; font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.74rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-check-task-row small { color: var(--color-muted); font-size: 0.68rem; }
.admin-check-task-row.is-running,
.admin-check-task-row.is-started,
.admin-check-task-row.is-claimed { background: oklch(0.97 0.018 242); }
.admin-check-task-row.is-completed { background: oklch(0.97 0.018 150); }
.admin-check-task-row.is-failed,
.admin-check-task-row.is-stopped { background: oklch(0.97 0.018 27); }

.remote-task-actions,.admin-check-controls,.remote-retry-actions,.remote-retry-statuses,.admin-check-retries{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.remote-task-actions{margin:12px 0}.remote-task-actions [data-control-state]{font-size:.78rem;color:var(--color-muted)}.remote-retry-statuses{padding:10px 0;font-size:.78rem;color:var(--color-muted)}.remote-retry-statuses button,.admin-check-retries button{border:1px solid var(--color-border);background:var(--color-panel);color:var(--color-ink);border-radius:6px;padding:5px 8px;font:inherit;cursor:pointer}.remote-retry-statuses button:hover,.admin-check-retries button:hover{border-color:var(--color-primary);color:var(--color-primary-strong)}.remote-retry-actions{justify-content:flex-end}.admin-check-controls,.admin-check-retries{margin-top:9px}.admin-check-retries{font-size:.7rem;color:var(--color-muted)}.button.danger{background:var(--color-danger);border-color:var(--color-danger);color:#fff}.remote-account-table th:first-child,.remote-account-table td:first-child{width:38px;text-align:center}@media(max-width:720px){.remote-task-actions .button{flex:1}.remote-retry-actions{width:100%;justify-content:space-between}.admin-check-controls .button{flex:1}}

.admin-check-monitor{width:340px;touch-action:none}.admin-check-monitor.is-minimized{width:220px}.admin-check-monitor.is-minimized .admin-check-monitor-body{display:none}.admin-check-monitor-head{cursor:grab}.admin-check-monitor-head.is-dragging{cursor:grabbing}.admin-check-minimize{position:absolute;right:34px;top:10px;z-index:2;width:24px;height:24px;border:1px solid var(--color-border);border-radius:6px;background:var(--color-panel);color:var(--color-ink);font-size:18px;line-height:1;cursor:pointer}.admin-check-monitor.is-minimized .admin-check-monitor-head{padding-right:58px}@media(max-width:720px){.admin-check-monitor{max-width:calc(100vw - 16px);width:320px}.admin-check-monitor.is-minimized{width:210px}}

/* Remote verification clarity pass: scoped to /check and the floating monitor only. */
.remote-sync-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 4px;padding:10px 12px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);color:var(--color-muted);font-size:.76rem}.remote-sync-badge{display:inline-flex;align-items:center;gap:7px;color:var(--color-muted);font-weight:750}.remote-sync-badge::before{width:8px;height:8px;border-radius:50%;background:var(--color-warning);content:""}.remote-sync-badge.is-synced{color:oklch(.4 .11 150)}.remote-sync-badge.is-synced::before{background:var(--color-success);box-shadow:0 0 0 4px oklch(.9 .05 150)}.remote-sync-badge.is-offline{color:var(--color-danger)}.remote-sync-badge.is-offline::before{background:var(--color-danger)}.remote-progress-overview{display:grid;grid-template-columns:140px minmax(0,1fr);gap:14px;margin-bottom:15px}.remote-progress-percent,.remote-current-account{min-width:0;padding:16px;border:1px solid var(--color-border);border-radius:9px;background:var(--color-panel)}.remote-progress-percent{display:grid;place-content:center;text-align:center}.remote-progress-percent strong{color:var(--color-primary-strong);font-size:2.15rem;line-height:1;font-variant-numeric:tabular-nums}.remote-progress-percent span,.remote-current-account span{margin-top:6px;color:var(--color-muted);font-size:.72rem;font-weight:700}.remote-current-account{display:flex;flex-direction:column;justify-content:center}.remote-current-account strong{margin-top:5px;overflow-wrap:anywhere;color:var(--color-ink);font-size:1rem}.remote-current-account small{margin-top:5px;color:var(--color-primary-strong);font-weight:700}.admin-check-sync{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0;padding:7px 9px;border-radius:7px;background:var(--color-surface);font-size:.7rem}.admin-check-sync span{font-weight:750}.admin-check-sync span.is-synced{color:oklch(.4 .11 150)}.admin-check-sync span.is-offline{color:var(--color-danger)}.admin-check-sync time{color:var(--color-muted);font-variant-numeric:tabular-nums}
@media(max-width:560px){.remote-sync-strip{align-items:flex-start;flex-direction:column}.remote-progress-overview{grid-template-columns:1fr}.remote-progress-percent{display:flex;align-items:baseline;justify-content:space-between;text-align:left}.remote-progress-percent strong{font-size:1.8rem}.remote-account-table{min-width:0;background:transparent}.remote-account-table thead{display:none}.remote-account-table tbody{display:grid;gap:10px}.remote-account-table tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--color-border);border-radius:9px;background:var(--color-panel);overflow:hidden}.remote-account-table td{display:grid;grid-template-columns:82px minmax(0,1fr);gap:8px;padding:8px 10px;border-bottom:1px solid var(--color-border)}.remote-account-table td::before{color:var(--color-muted);font-size:.7rem;font-weight:700;content:attr(data-label)}.remote-account-table td:nth-child(3),.remote-account-table td:nth-child(5),.remote-account-table td:nth-child(7){grid-column:1/-1}.remote-account-table td:last-child{border-bottom:0}.remote-account-table-wrap{overflow:visible;border:0}}

.admin-check-window-actions{display:flex;align-items:center;gap:4px}.admin-check-window-actions button{display:grid;place-items:center;width:25px;height:25px;padding:0;border:1px solid var(--color-border);border-radius:6px;background:var(--color-panel);color:var(--color-muted);font-size:15px;line-height:1;cursor:pointer}.admin-check-window-actions button:hover{border-color:var(--color-primary);color:var(--color-primary-strong)}.admin-check-monitor-head{cursor:grab;user-select:none;-webkit-user-select:none;touch-action:none}.admin-check-monitor-head.is-dragging{cursor:grabbing}.admin-check-minimize{position:static}.admin-check-monitor.is-minimized .admin-check-window-actions button:not([data-admin-check-minimize]){display:none}.admin-check-monitor.is-minimized .admin-check-monitor-head{grid-template-columns:9px minmax(0,1fr) auto;padding-right:10px}

.admin-check-edge-tab{display:none}.admin-check-monitor.is-docked{width:54px;overflow:visible;border:0;background:transparent;box-shadow:none}.admin-check-monitor.is-docked .admin-check-monitor-head,.admin-check-monitor.is-docked .admin-check-monitor-body{display:none}.admin-check-monitor.is-docked .admin-check-edge-tab{display:flex;flex-direction:column;align-items:center;gap:5px;width:54px;padding:10px 6px;border:1px solid var(--color-border);background:var(--color-panel);color:var(--color-ink);box-shadow:0 10px 30px oklch(.22 .025 255 / .2);cursor:pointer}.admin-check-monitor.is-docked-left .admin-check-edge-tab{border-left:0;border-radius:0 10px 10px 0}.admin-check-monitor.is-docked-right .admin-check-edge-tab{border-right:0;border-radius:10px 0 0 10px}.admin-check-edge-tab strong{font-size:.78rem;font-variant-numeric:tabular-nums}.admin-check-edge-tab>span:last-child{color:var(--color-muted);font-size:.65rem;writing-mode:vertical-rl;letter-spacing:.12em}.admin-check-edge-tab:hover{border-color:var(--color-primary);background:var(--color-surface)}

/* Remote verification compact layout */
.remote-verify-body{min-width:0;background:var(--color-surface)}
.remote-verify-shell{width:min(100% - 24px,760px);margin:0 auto;padding:24px 0 40px}
.remote-verify-card{padding:24px;border:1px solid var(--color-border);border-radius:16px;background:var(--color-panel);box-shadow:0 10px 28px rgba(15,23,42,.07)}
.remote-verify-heading{margin:0 0 18px}.remote-verify-heading h1{font-size:1.5rem;line-height:1.25;margin:0}.remote-verify-heading p{margin:6px 0 0;color:var(--color-muted)}
.remote-device-state{margin:0 0 18px;padding:12px 14px;border-radius:10px}
.remote-verify-form{gap:8px}.remote-mode-field{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px}.remote-mode-field select{min-width:0}
.remote-verify-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.remote-verify-controls input{min-width:0}
.remote-verify-status{margin-top:18px;padding-top:18px;border-top:1px solid var(--color-border)}
.remote-progress-overview{grid-template-columns:110px minmax(0,1fr)}
.remote-progress-counts{grid-template-columns:repeat(4,minmax(0,1fr))}
.remote-status-details{grid-template-columns:repeat(2,minmax(0,1fr))}
.remote-detail-section{margin-top:12px;padding:0;border:1px solid var(--color-border);border-radius:10px;background:var(--color-panel);overflow:hidden}
.remote-detail-section>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;cursor:pointer;font-weight:700;list-style:none}.remote-detail-section>summary::-webkit-details-marker{display:none}.remote-detail-section>summary::after{content:'展开';color:var(--color-primary);font-size:.78rem;font-weight:600}.remote-detail-section[open]>summary::after{content:'收起'}
.remote-detail-section>.remote-detail-heading,.remote-detail-section>.remote-retry-statuses,.remote-detail-section>.remote-account-table-wrap,.remote-detail-section>.remote-log-list{margin-left:14px;margin-right:14px}.remote-detail-section>.remote-log-list,.remote-detail-section>.remote-account-table-wrap{margin-bottom:14px}
.remote-detail-heading{padding-top:12px}.remote-detail-heading>h2{font-size:1rem;margin:0}
.remote-verify-footnote{text-align:center;font-size:.78rem;color:var(--color-muted)}
@media(max-width:640px){.remote-verify-shell{width:100%;padding:0}.remote-verify-card{min-height:100dvh;padding:18px 14px;border:0;border-radius:0;box-shadow:none}.remote-verify-controls{grid-template-columns:1fr}.remote-verify-controls .button{width:100%;min-height:46px}.remote-mode-field{grid-template-columns:1fr;gap:6px}.remote-progress-overview{grid-template-columns:1fr}.remote-progress-counts{grid-template-columns:repeat(2,minmax(0,1fr))}.remote-status-details{grid-template-columns:1fr}.remote-sync-strip{align-items:flex-start;flex-direction:column}.remote-task-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.remote-task-actions>span{grid-column:1/-1}.remote-detail-section>.remote-account-table-wrap{overflow:auto}.remote-verify-footnote{display:none}}
