:root {
  color-scheme: light;
  --ink: #19342f;
  --muted: #50675f;
  --brand: #123b35;
  --action: #16634d;
  --line: #d9e3de;
  --paper: #f2f6f3;
  font: 15px/1.5 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.shell { max-width: 1120px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.topbar { background: var(--brand); color: #fff; }
.topbar-inner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; font-weight: 700; font-size: 17px; }
.brand-icon { display: grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; color: #b9e8d0; }
.brand-icon svg { width: 24px; height: 24px; }
.top-note { color: #d8e9e1; font-size: 13px; }
main { padding-bottom: 42px; }
.intro { display: flex; justify-content: space-between; align-items: end; padding: 38px 0 27px; }
.eyebrow { color: var(--action); font-size: 14px; font-weight: 700; margin: 0 0 5px; }
h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.2; letter-spacing: -.035em; margin: 0; }
.intro-copy { color: var(--muted); margin: 10px 0 0; }
.metrics { display: flex; margin: 0 0 2px 24px; }
.metrics div { min-width: 106px; padding-left: 18px; margin-left: 12px; border-left: 1px solid #bccfc4; }
.metrics dt { font-size: 13px; color: var(--muted); }
.metrics dd { font-size: 30px; font-weight: 700; line-height: 1.15; margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.channel-grid { display: grid; grid-template-columns: minmax(0, 1fr) 306px; column-gap: 16px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.panel-head, .sign-in { padding: 20px 22px; }
.panel h2 { font-size: 19px; line-height: 1.3; margin: 0; }
.panel-head p, .sign-in p { margin: 5px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.sign-in .button { margin-top: 16px; }
#create-form { margin: 0 22px 11px; }
#create-form label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 700; }
.create-row { display: flex; }
input, select { font: inherit; color: var(--ink); background: #fff; border: 1px solid #b9ccc2; border-radius: 6px; min-height: 42px; padding: 8px 11px; }
input { flex: 1; min-width: 0; margin-right: 8px; }
input::placeholder { color: #61766d; opacity: 1; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid transparent; border-radius: 6px; font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.primary { color: #fff; background: var(--action); }
.primary:hover { background: #0e513d; }
.secondary { color: var(--action); background: #fff; border-color: #b9ccc2; }
.secondary:hover, .secondary[aria-pressed="true"] { background: #e7f3eb; border-color: #9fbead; }
.button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 2px solid #197458; outline-offset: 3px; }
.form-message { font-size: 13px; color: var(--action); margin: 7px 0 0; }
.form-message:empty { display: none; }
.form-message.error { color: #a52634; }
.channel-list { list-style: none; padding: 0; margin: 0 22px 10px; }
.channel-list li { min-height: 57px; display: flex; align-items: center; border-top: 1px solid var(--line); }
.channel-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.channel-count, .pending { color: var(--muted); white-space: nowrap; font-size: 13px; margin-left: 12px; }
.channel-list .button { margin-left: 12px; }
.compact { min-height: 34px; padding: 5px 10px; }
.qr-panel { padding-bottom: 18px; }
.qr-stage { display: grid; place-items: center; height: 185px; margin: 0 22px; border-radius: 8px; background: #eff6f0; }
.qr-guide { width: 80px; height: 80px; color: #93b4a3; }
.qr-stage img { display: block; max-width: 100%; object-fit: contain; }
.qr-hint { margin: 11px 22px 9px; color: var(--muted); text-align: center; font-size: 13px; }
#qr-download { display: flex; margin: 0 22px; }
.records { margin-top: 16px; }
.records-head { display: flex; align-items: center; justify-content: space-between; }
.record-actions { display: flex; align-items: center; margin-left: 16px; }
.record-actions select { margin-right: 8px; max-width: 180px; min-height: 40px; font-size: 13px; }
.table-wrap { margin: 0 22px; }
table { border-collapse: collapse; width: 100%; text-align: left; table-layout: fixed; }
thead { background: #eff5f0; color: #39574b; }
th, td { padding: 10px; overflow-wrap: anywhere; }
th { font-size: 13px; }
td { border-bottom: 1px solid #e6ede8; font-size: 14px; }
.customer-name { font-weight: 700; }
.source-tag { display: inline-block; border-radius: 4px; background: #e9f4ec; color: #22573e; padding: 2px 7px; font-size: 12px; }
.record-state, .record-time { color: var(--muted); }
.empty { margin: 16px 22px; color: var(--muted); font-size: 14px; }
.pagination { padding: 12px 22px; text-align: right; }
.pagination button + button { margin-left: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@media (max-width: 720px) {
  .shell { padding-left: 15px; padding-right: 15px; }
  .intro { display: block; padding: 24px 0 16px; }
  .metrics { margin: 15px 0 0; }
  .metrics div { margin-left: 0; margin-right: 12px; padding-left: 10px; }
  .metrics dd { font-size: 24px; }
  .channel-grid { display: block; }
  .qr-panel { margin-top: 12px; }
  .panel-head { padding: 15px; }
  .records-head { display: block; }
  .record-actions { margin: 10px 0 0; }
  #create-form, .channel-list, .qr-stage, #qr-download, .table-wrap { margin-left: 15px; margin-right: 15px; }
  input, select { font-size: 16px; }
  th, td { padding: 7px 4px; font-size: 12px; }
  th:nth-child(3) { width: 29%; }
}
