:root {
  --paper: #ffffff;
  --canvas: #f2f7f6;
  --canvas-deep: #e9f1ef;
  --ink: #173234;
  --ink-soft: #4e686a;
  --muted: #7c9192;
  --line: #d7e5e2;
  --line-strong: #bfd3cf;
  --teal: #137d73;
  --teal-dark: #0d655d;
  --teal-pale: #e4f1ef;
  --coral: #e65d4c;
  --coral-pale: #fff0ed;
  --amber: #a5671e;
  --amber-pale: #fff7e8;
  --shadow: 0 18px 46px rgba(33, 70, 68, 0.08);
  --radius: 12px;
  --sidebar: 228px;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--canvas); }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(19, 125, 115, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 125, 115, 0.025) 1px, transparent 1px),
    var(--canvas);
  background-size: 28px 28px;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  line-height: 1.5;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(19, 125, 115, 0.25);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 18% 20%, rgba(239, 143, 101, 0.18), transparent 34%),
    radial-gradient(circle at 82% 76%, rgba(19, 125, 115, 0.15), transparent 34%),
    var(--canvas);
}

.auth-card {
  position: relative;
  width: min(480px, 100%);
  overflow: hidden;
  padding: 56px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.auth-card::before, .auth-card::after, .ticket-paper::before, .ticket-paper::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.auth-card::before { left: -15px; top: 136px; }
.auth-card::after { right: -15px; top: 136px; }

.brand-seal {
  display: inline-grid;
  width: 72px;
  height: 72px;
  place-items: center;
  color: var(--teal);
  background: var(--teal-pale);
  border: 4px double var(--teal);
  border-radius: 50%;
  font-family: inherit;
  font-size: 30px;
  font-weight: 700;
  transform: rotate(-6deg);
}
.brand-seal-small { width: 44px; height: 44px; border-width: 3px; font-size: 20px; }
.brand-seal-light { color: #fff; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.78); }

.eyebrow {
  margin: 0 0 6px;
  color: var(--teal);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.auth-card .eyebrow { margin-top: 24px; }
.auth-card h1 { margin: 8px 0 16px; font-family: inherit; font-size: 32px; }
.auth-copy { margin: 0 0 30px; color: var(--ink-soft); line-height: 1.8; }
.auth-hint { margin: 16px 0 0; color: var(--muted); font-size: 13px; }

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  padding: 30px 20px 24px;
  background: rgba(255,255,255,.94);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand strong, .brand small { display: block; }
.brand strong { font-family: inherit; font-size: 22px; letter-spacing: .08em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }

.main-nav { display: grid; gap: 8px; margin-top: 56px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 16px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  text-align: left;
}
.nav-item:hover { background: #f6faf9; }
.nav-item.is-active { color: var(--teal-dark); background: var(--teal-pale); border-color: #c9dfdb; font-weight: 700; }
.nav-icon { display: inline-grid; width: 25px; place-items: center; font-family: Consolas, monospace; font-size: 22px; }

.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 14px 11px;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  font-size: 12px;
}
.service-light { width: 8px; height: 8px; background: #26a269; border-radius: 50%; box-shadow: 0 0 0 5px rgba(38,162,105,.1); }

.workspace { min-height: 100vh; margin-left: var(--sidebar); }
.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  height: 88px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 64px);
  background: rgba(242,247,246,.91);
  border-bottom: 1px solid rgba(191,211,207,.7);
  backdrop-filter: blur(18px);
}
.topbar h1 { margin: 0; font-family: inherit; font-size: 25px; }
.topbar-account { display: flex; align-items: center; gap: 15px; }
.topbar-balance { color: var(--muted); font-size: 13px; }
.topbar-balance strong { color: var(--teal); font-family: Consolas, monospace; font-size: 18px; }
.avatar-button { display: grid; width: 40px; height: 40px; place-items: center; color: var(--teal); background: #fff; border: 1px solid var(--line-strong); border-radius: 50%; font-family: inherit; font-weight: 700; }

.content { width: min(1480px, 100%); margin: 0 auto; padding: 32px clamp(24px, 4vw, 64px) 72px; }
.view { display: none; animation: view-in .24s ease-out; }
.view.is-active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.promo-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 1;
  max-height: 260px;
  min-height: 172px;
  background: #f4d8cb;
  border: 1px solid #ead7ce;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(74,57,47,.08);
}
.promo-track, .promo-image { width: 100%; height: 100%; }
.promo-image { position: absolute; inset: 0; object-fit: cover; opacity: 0; transform: scale(1.015); transition: opacity .5s ease, transform 1.2s ease; }
.promo-image.is-active { opacity: 1; transform: scale(1); }
.promo-dots { position: absolute; right: 22px; bottom: 18px; display: flex; gap: 7px; }
.promo-dots button { width: 7px; height: 7px; padding: 0; background: rgba(23,50,52,.28); border: 0; border-radius: 50%; }
.promo-dots button.is-active { width: 24px; background: var(--ink); border-radius: 99px; }

.notice-bar { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 12px 0 24px; padding: 8px 14px; color: #8d4037; background: #fff; border: 1px solid #e9dcd6; border-radius: 8px; font-size: 13px; }
.notice-bar span { padding: 3px 7px; color: #fff; background: var(--coral); border-radius: 4px; font-size: 11px; font-weight: 700; }
.notice-bar p { margin: 0; }

.workbench-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: start; }
.paper { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ticket-paper { position: relative; overflow: hidden; padding: clamp(26px, 4vw, 48px); }
.ticket-paper::before, .ticket-paper::after { top: 100px; z-index: 2; }
.ticket-paper::before { left: -16px; }
.ticket-paper::after { right: -16px; }

.panel-heading, .section-heading, .page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.panel-heading { padding-bottom: 24px; border-bottom: 1px dashed var(--line-strong); }
.panel-heading h2, .section-heading h2, .page-heading h2 { margin: 0; font-family: inherit; font-size: 25px; }
.panel-tag { padding: 7px 10px; color: var(--teal-dark); background: var(--teal-pale); border: 1px solid #c5ded9; border-radius: 6px; font-size: 12px; }

.mode-tabs { display: flex; gap: 6px; margin: 26px 0; padding: 5px; background: #f2f6f5; border-radius: 9px; }
.mode-tab { flex: 1; padding: 10px 12px; color: var(--muted); background: transparent; border: 0; border-radius: 7px; }
.mode-tab.is-active { color: var(--ink); background: #fff; box-shadow: 0 3px 12px rgba(33,70,68,.08); font-weight: 700; }

.field-label, .form-field > span { display: block; margin-bottom: 8px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
textarea, input {
  width: 100%;
  color: var(--ink);
  background: #fbfdfc;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: none;
}
textarea { resize: vertical; min-height: 112px; padding: 13px 14px; line-height: 1.6; }
input { height: 46px; padding: 0 14px; }
textarea:focus, input:focus { background: #fff; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(19,125,115,.09); }

.input-mode { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #edf2f1; }
.input-mode .button { margin-top: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field-wide { grid-column: 1 / -1; }
.money-input { position: relative; }
.money-input i { position: absolute; left: 14px; top: 12px; color: var(--muted); font-style: normal; }
.money-input input { padding-left: 34px; font-family: "Cascadia Mono", Consolas, monospace; }

.upload-zone { padding-bottom: 24px; }
.upload-button { display: grid; width: 100%; min-height: 150px; place-items: center; align-content: center; gap: 5px; color: var(--ink); background: #f8fbfa; border: 1px dashed #a9c8c3; border-radius: 10px; }
.upload-button:hover { background: var(--teal-pale); border-color: var(--teal); }
.upload-button strong, .upload-button small { display: block; }
.upload-button small { color: var(--muted); }
.upload-mark { color: var(--teal); font-family: Consolas, monospace; font-size: 38px; }
.image-fallback { display: block; margin: 12px auto 0; }
.camera-scanner { position: relative; overflow: hidden; min-height: 280px; background: #102829; border-radius: 10px; }
.camera-scanner video { display: block; width: 100%; height: min(48vh, 430px); object-fit: cover; }
.scanner-frame { position: absolute; left: 50%; top: 50%; width: min(58%, 260px); aspect-ratio: 1; border: 3px solid rgba(255,255,255,.9); border-radius: 12px; box-shadow: 0 0 0 999px rgba(5,24,25,.42); transform: translate(-50%,-50%); }
.scanner-frame::after { content: ""; position: absolute; left: 9%; right: 9%; top: 50%; height: 2px; background: var(--coral); box-shadow: 0 0 10px rgba(230,93,76,.8); animation: scan-line 1.3s ease-in-out infinite alternate; }
@keyframes scan-line { from { transform: translateY(-82px); } to { transform: translateY(82px); } }
.scanner-stop { position: absolute; z-index: 2; left: 50%; bottom: 16px; padding: 8px 18px; color: #fff; background: rgba(23,50,52,.82); border: 1px solid rgba(255,255,255,.5); border-radius: 99px; transform: translateX(-50%); }

.button { min-height: 42px; padding: 0 18px; border-radius: 8px; font-weight: 700; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--teal); border: 1px solid var(--teal); box-shadow: 0 10px 20px rgba(19,125,115,.15); }
.button-primary:hover { background: var(--teal-dark); }
.button-secondary { color: var(--teal-dark); background: #fff; border: 1px solid var(--line-strong); }
.button-secondary:hover { background: var(--teal-pale); border-color: #9fc2bc; }
.button-wide { width: 100%; min-height: 48px; }
.form-message { min-height: 24px; margin-top: 10px; color: var(--coral); font-size: 13px; }
.safe-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.safe-note span { color: var(--teal); }

.verify-progress { overflow: hidden; height: 7px; margin-top: 16px; background: var(--teal-pale); border-radius: 99px; }
.verify-progress span { display: block; width: 38%; height: 100%; background: linear-gradient(90deg, var(--teal), #54b8ad, var(--teal)); border-radius: inherit; animation: verify 0.7s ease-in-out infinite; }
@keyframes verify { from { transform: translateX(-110%); } to { transform: translateX(290%); } }

.workbench-aside { display: grid; gap: 24px; }
.balance-card { position: relative; overflow: hidden; min-height: 210px; padding: 28px; color: #fff; background: var(--teal); border-radius: var(--radius); box-shadow: 0 16px 36px rgba(19,125,115,.17); }
.balance-card::after, .account-card::after { content: ""; position: absolute; width: 210px; height: 210px; right: -82px; bottom: -94px; border: 24px double rgba(255,255,255,.1); border-radius: 50%; }
.balance-card p { margin: 0; color: #cbe4e0; font-size: 13px; letter-spacing: .1em; }
.balance-card > strong { display: block; margin: 8px 0 25px; font-family: "Cascadia Mono", Consolas, monospace; font-size: 64px; line-height: 1; }
.balance-card div { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 12px; color: #d9ebe8; font-size: 12px; }

.recent-card { padding: 24px; }
.section-heading { margin-bottom: 17px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.section-heading h2 { font-size: 21px; }
.text-button { padding: 4px 0; color: var(--teal); background: transparent; border: 0; font-size: 12px; }
.recent-item { display: block; width: 100%; padding: 14px 0; color: var(--ink); background: transparent; border: 0; border-bottom: 1px dashed var(--line); text-align: left; }
.recent-item:last-child { border-bottom: 0; }
.recent-item strong, .recent-item small { display: block; }
.recent-item strong { overflow: hidden; font-family: Consolas, monospace; font-size: 12px; text-overflow: ellipsis; }
.recent-item small { margin-top: 5px; color: var(--muted); }
.empty-copy { margin: 24px 0; color: var(--muted); text-align: center; }

.page-heading { margin: 8px 0 26px; }
.page-heading h2 { font-size: 32px; }
.page-heading p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); }
.records-paper { overflow: hidden; }
.records-head { display: grid; grid-template-columns: 1fr 160px; padding: 14px 24px; color: var(--muted); background: #f7faf9; border-bottom: 1px solid var(--line); font-size: 12px; }
.records-head span:last-child { text-align: right; }
.record-item { display: grid; grid-template-columns: minmax(0,1fr) 160px; gap: 22px; width: 100%; padding: 22px 24px; color: var(--ink); background: #fff; border: 0; border-bottom: 1px dashed var(--line); text-align: left; }
.record-item:hover { background: #f8fbfa; }
.record-item:last-child { border-bottom: 0; }
.record-number { display: block; margin-bottom: 10px; font-family: "Cascadia Mono", Consolas, monospace; font-weight: 700; }
.record-meta { display: grid; grid-template-columns: 190px 1fr 1fr 150px; gap: 9px 18px; color: var(--ink-soft); font-size: 12px; }
.record-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-meta b { color: var(--muted); font-weight: 400; }
.record-state { display: grid; align-content: center; justify-items: end; gap: 7px; }
.record-state strong { color: var(--teal); font-size: 13px; }
.record-state small { color: var(--muted); }
.record-state .status-failed, .record-state .status-mismatch { color: var(--coral); }
.record-state .status-limited { color: var(--amber); }
.red-tag { padding: 3px 7px; color: #b83f33; background: var(--coral-pale); border: 1px solid #efb9b2; border-radius: 4px; font-size: 10px; font-style: normal; }

.account-grid { display: grid; grid-template-columns: minmax(320px, .78fr) minmax(440px, 1.22fr); gap: 24px; }
.account-card { position: relative; overflow: hidden; min-height: 290px; padding: 34px; color: #fff; background: var(--teal); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(19,125,115,.16); }
.identity-line { position: relative; z-index: 2; display: flex; align-items: center; gap: 15px; }
.identity-line p, .identity-line small { display: block; margin: 0; }
.identity-line p { font-weight: 700; }
.identity-line small { margin-top: 4px; color: #cbe3df; font-family: Consolas, monospace; }
.identity-line em { margin-left: auto; padding: 4px 8px; color: var(--teal); background: #fff; border-radius: 5px; font-size: 11px; font-style: normal; font-weight: 700; }
.account-rule { margin: 26px 0; border-top: 1px dashed rgba(255,255,255,.28); }
.account-balance { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; }
.account-balance p { margin: 0; color: #cbe3df; font-size: 12px; letter-spacing: .08em; }
.account-balance strong { display: block; margin-top: 3px; font-family: Consolas, monospace; font-size: 66px; line-height: 1; }
.account-balance > div:last-child { display: grid; gap: 7px; color: #d9ebe8; font-size: 12px; text-align: right; }

.services-card { padding: 28px; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.service-grid button { display: flex; min-height: 78px; align-items: center; gap: 13px; padding: 13px; color: var(--ink); background: #f8fbfa; border: 1px solid var(--line); border-radius: 8px; text-align: left; }
.service-grid button:last-child { grid-column: 1 / -1; }
.service-grid button:hover { background: var(--teal-pale); border-color: #afd0ca; }
.service-grid i { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; color: var(--teal); background: var(--teal-pale); border: 1px solid #bad8d3; border-radius: 50%; font-family: inherit; font-style: normal; font-weight: 700; }
.service-grid strong, .service-grid small { display: block; }
.service-grid small { margin-top: 3px; color: var(--muted); }

.account-panel { margin-top: 24px; padding: 28px; }
.muted { color: var(--muted); font-size: 12px; }
.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.package-item { position: relative; min-height: 128px; padding: 18px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; text-align: left; }
.package-item:hover { border-color: var(--teal); box-shadow: 0 8px 22px rgba(19,125,115,.09); }
.package-item strong { display: block; font-size: 24px; }
.package-item p { margin: 4px 0 15px; color: var(--muted); font-size: 11px; }
.package-item b { font-family: Consolas, monospace; font-size: 18px; }
.package-item em { position: absolute; top: 10px; right: 10px; padding: 2px 6px; color: #a64b3e; background: var(--coral-pale); border-radius: 4px; font-size: 9px; font-style: normal; }

.data-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; padding: 16px 2px; border-bottom: 1px dashed var(--line); }
.data-row:last-child { border-bottom: 0; }
.data-row strong, .data-row small { display: block; }
.data-row small { margin-top: 4px; color: var(--muted); }
.data-row > span:last-child { align-self: center; color: var(--teal); font-family: Consolas, monospace; font-weight: 700; }

.back-button { margin: 0 0 18px; padding: 8px 0; color: var(--teal); background: transparent; border: 0; font-weight: 700; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.detail-main, .detail-side { display: grid; gap: 24px; }
.detail-paper { padding: clamp(24px, 4vw, 42px); }
.result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.result-head h2 { margin: 3px 0 0; font-family: inherit; font-size: 30px; }
.result-stamp { display: grid; width: 66px; height: 66px; place-items: center; color: var(--teal); border: 4px double var(--teal); border-radius: 50%; font-family: inherit; font-size: 13px; font-weight: 700; transform: rotate(-8deg); }
.result-stamp.warn { color: var(--coral); border-color: var(--coral); }
.result-stamp.limit { color: var(--amber); border-color: var(--amber); }
.result-message { margin: 24px 0; padding: 15px 17px; color: var(--teal-dark); background: var(--teal-pale); border-left: 4px solid var(--teal); }
.result-message.warn { color: #a53d32; background: var(--coral-pale); border-color: var(--coral); }
.result-message.limit { color: #7d4a11; background: var(--amber-pale); border-color: var(--amber); }
.invoice-kind { margin: 28px 0 18px; color: var(--teal); font-family: inherit; font-size: 20px; text-align: center; }
.summary-list { display: grid; }
.summary-row { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 20px; padding: 10px 0; border-bottom: 1px solid #edf3f2; }
.summary-row span { color: var(--muted); font-size: 13px; }
.summary-row strong { text-align: right; word-break: break-word; }
.summary-row .mono { font-family: Consolas, monospace; }
.summary-row .money { color: var(--teal); font-family: Consolas, monospace; font-size: 18px; }
.red-alert { margin: 0 0 20px; padding: 13px 15px; color: #ad382e; background: var(--coral-pale); border: 1px solid #efb8b1; border-left: 5px solid var(--coral); font-weight: 700; }

.detail-section { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.detail-section h3 { margin: 0 0 16px; font-family: inherit; font-size: 22px; }
.party-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.party-card { padding: 18px; background: #f8fbfa; border: 1px solid var(--line); border-radius: 8px; }
.party-card h4 { margin: 0 0 13px; color: var(--teal); }
.party-field { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }
.party-field:last-child { border-bottom: 0; }
.party-field span { color: var(--muted); }
.party-field b { text-align: right; word-break: break-word; }
.goods-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.goods-table { width: 100%; min-width: 850px; border-collapse: collapse; font-size: 12px; }
.goods-table th { color: var(--ink-soft); background: var(--teal-pale); }
.goods-table th, .goods-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.goods-table tbody tr:last-child td { border-bottom: 0; }
.remark-box { padding: 16px; color: var(--ink-soft); background: #f8fbfa; border: 1px solid var(--line); border-radius: 8px; white-space: pre-wrap; }

.file-paper { padding: 24px; }
.file-paper h3 { margin: 0 0 16px; font-family: inherit; }
.file-actions { display: grid; gap: 10px; }
.file-button { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 13px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; text-align: left; }
.file-button:hover { background: var(--teal-pale); border-color: #add0ca; }
.file-button i { display: grid; width: 30px; height: 30px; place-items: center; color: #fff; background: var(--teal); border-radius: 6px; font-size: 11px; font-style: normal; font-weight: 700; }
.file-note { margin: 12px 0 0; color: var(--coral); font-size: 12px; }
.raw-paper { padding: 24px; }
.raw-paper summary { color: var(--teal); cursor: pointer; font-weight: 700; }
.raw-paper pre { overflow: auto; max-height: 520px; margin: 18px 0 0; padding: 16px; color: #365052; background: #f7faf9; border: 1px solid var(--line); border-radius: 8px; font: 11px/1.65 "Cascadia Mono", Consolas, monospace; white-space: pre-wrap; word-break: break-all; }

.mobile-nav { display: none; }
.loading-mask { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; background: rgba(18,39,40,.52); backdrop-filter: blur(3px); }
.loading-mask > div { width: min(360px, calc(100% - 40px)); padding: 30px; text-align: center; background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.loading-mask p { margin: 20px 0 4px; font-weight: 700; }
.loading-mask small { color: var(--muted); }
.loading-bar { display: block; overflow: hidden; height: 7px; background: var(--teal-pale); border-radius: 99px; }
.loading-bar::after { content: ""; display: block; width: 42%; height: 100%; background: linear-gradient(90deg,var(--teal),#59bbb0,var(--teal)); animation: verify .66s ease-in-out infinite; }

.toast { position: fixed; z-index: 120; left: 50%; bottom: 30px; max-width: min(520px, calc(100% - 40px)); padding: 12px 18px; color: #fff; background: var(--ink); border-radius: 8px; box-shadow: 0 12px 30px rgba(23,50,52,.22); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  :root { --sidebar: 88px; }
  .brand { justify-content: center; padding: 0; }
  .brand > span:last-child, .nav-item > span:last-child, .sidebar-foot span:last-child { display: none; }
  .main-nav { margin-top: 44px; }
  .nav-item { justify-content: center; padding: 13px 8px; }
  .workbench-grid { grid-template-columns: minmax(0, 1fr) 270px; }
  .record-meta { grid-template-columns: 1fr 1fr; }
  .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root { --sidebar: 0px; }
  body { background: var(--canvas); }
  .sidebar { display: none; }
  .workspace { margin-left: 0; padding-bottom: 74px; }
  .topbar { height: 72px; padding: 0 20px; }
  .topbar h1 { font-size: 21px; }
  .content { padding: 18px 18px 36px; }
  .promo-card { min-height: 110px; border-radius: 9px; }
  .notice-bar { margin-bottom: 18px; }
  .workbench-grid, .detail-layout { grid-template-columns: 1fr; }
  .workbench-aside { grid-template-columns: 1fr; }
  .balance-card { min-height: 176px; }
  .recent-card { display: none; }
  .page-heading { align-items: center; }
  .records-head { display: none; }
  .record-item { grid-template-columns: minmax(0,1fr) 110px; padding: 18px; }
  .record-meta { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .package-grid { grid-template-columns: repeat(2, 1fr); }
  .party-grid { grid-template-columns: 1fr; }
  .mobile-nav { position: fixed; z-index: 50; inset: auto 0 0; display: grid; grid-template-columns: repeat(3,1fr); height: 68px; padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(16px); }
  .mobile-nav button { display: grid; place-items: center; align-content: center; gap: 2px; color: var(--muted); background: transparent; border: 0; font-size: 11px; }
  .mobile-nav button span { font-family: Consolas, monospace; font-size: 20px; }
  .mobile-nav button.is-active { color: var(--teal); font-weight: 700; }
}

@media (max-width: 540px) {
  .topbar-balance { display: none; }
  .promo-card { aspect-ratio: 3 / 1; min-height: 96px; }
  .notice-bar { align-items: flex-start; }
  .ticket-paper, .detail-paper, .account-panel, .services-card { padding: 22px 18px; }
  .panel-heading h2 { font-size: 22px; }
  .panel-tag { display: none; }
  .mode-tab { padding-inline: 5px; font-size: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field-wide { grid-column: auto; }
  .page-heading { display: block; }
  .page-heading .button { margin-top: 14px; }
  .record-item { grid-template-columns: 1fr; gap: 10px; }
  .record-state { justify-items: start; }
  .account-balance { align-items: flex-start; }
  .account-balance strong { font-size: 54px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid button:last-child { grid-column: auto; }
  .package-grid { grid-template-columns: 1fr; }
  .summary-row { grid-template-columns: 100px minmax(0,1fr); }
  .auth-card { padding: 42px 24px; }
}

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

/* 简洁工具型布局 */
:root {
  --canvas: #fff;
  --canvas-deep: #f7f8fa;
  --ink: #202734;
  --ink-soft: #4f5968;
  --muted: #8b94a2;
  --line: #e5e8ed;
  --line-strong: #d8dde5;
  --teal: #43b77a;
  --teal-dark: #24945c;
  --teal-pale: #edf8f2;
  --shadow: none;
  --radius: 4px;
  --sidebar: 200px;
}

html, body { background: #fff; }
body { background-image: none; font-size: 14px; }

.sidebar {
  width: var(--sidebar);
  padding: 8px;
  background: #fff;
  border-right-color: var(--line);
  backdrop-filter: none;
}
.main-nav { gap: 6px; margin-top: 0; }
.nav-item {
  min-height: 42px;
  gap: 10px;
  padding: 9px 24px;
  color: #2e3540;
  border: 0;
  border-radius: 3px;
}
.nav-item:hover { background: #f5f6f8; }
.nav-item.is-active { color: #21a160; background: #eaf7ef; border: 0; font-weight: 400; }
.nav-icon { display: grid; width: 19px; height: 19px; place-items: center; }
.nav-icon svg, .manual-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.workspace { background: #fff; }
.topbar {
  position: relative;
  height: 80px;
  padding: 0 24px;
  background: #fff;
  border-bottom-color: var(--line);
  backdrop-filter: none;
}
.topbar h1 { font-family: inherit; font-size: 25px; font-weight: 700; }
.topbar-balance strong { color: #21a160; }
.avatar-button { color: #21a160; border-color: var(--line); border-radius: 4px; }
.content { width: 100%; max-width: none; padding: 24px 24px 56px; }
.view { animation: none; }
.paper { border-color: var(--line); border-radius: 4px; box-shadow: none; }

.entry-grid {
  display: grid;
  grid-template-columns: minmax(460px, 2fr) minmax(300px, 1fr);
  gap: 28px;
  align-items: stretch;
}
.upload-card, .manual-card {
  min-height: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.upload-card {
  position: relative;
  display: grid;
  padding: 14px;
}
.upload-card.is-dragging { background: var(--teal-pale); border-color: var(--teal); }
.upload-button {
  min-height: 200px;
  color: #2d333c;
  background: #fafbfc;
  border: 1px dashed #cdd3dc;
  border-radius: 2px;
}
.upload-button:hover { background: #f7fbf9; border-color: #66bf8b; }
.upload-button:disabled { opacity: .58; cursor: wait; }
.upload-button strong { font-size: 16px; font-weight: 500; }
.upload-button small { margin-top: 5px; color: #697382; font-size: 12px; }
.upload-mark { color: #39414b; font-size: 44px; font-weight: 300; }
.upload-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.upload-progress-head span { color: var(--ink); font: 600 12px/1.4 "Cascadia Mono", Consolas, monospace; }
.upload-message { margin: 8px 0 0; color: var(--muted); font-size: 12px; text-align: left; }
.upload-progress { width: 100%; height: 6px; margin-top: 7px; accent-color: var(--teal); }

.manual-card { padding: 22px 24px; }
.manual-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.manual-heading h2 { margin: 0; font-size: 17px; font-weight: 500; }
.manual-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.manual-icon { width: 31px; height: 31px; color: #343b44; }
.manual-card .form-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
.manual-card .form-field-wide { grid-column: 1 / -1; }
.field-label, .form-field > span { margin-bottom: 5px; color: #5d6673; font-size: 12px; font-weight: 400; }
textarea, input { background: #fff; border-color: var(--line-strong); border-radius: 3px; }
input { height: 38px; padding: 0 10px; }
textarea:focus, input:focus { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(67,183,122,.1); }
.manual-card .form-message { min-height: 19px; margin-top: 5px; font-size: 12px; }
.button { min-height: 36px; padding: 0 15px; border-radius: 3px; font-weight: 400; transition: background .15s ease, border-color .15s ease; }
.button:hover { transform: none; }
.button-primary { background: #69c694; border-color: #69c694; box-shadow: none; }
.button-primary:hover { background: #43b77a; }
.button-secondary { color: #4e5865; border-color: var(--line-strong); }
.button-secondary:hover { background: #f7f8fa; border-color: #c8ced7; }
.button-wide { min-height: 38px; }

.result-panel { margin-top: 38px; }
.result-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.result-toolbar > div { display: flex; align-items: center; gap: 12px; }
.result-toolbar h2 { margin: 0; font-size: 15px; font-weight: 500; }
.result-toolbar span { padding: 2px 7px; color: #66707f; background: #f5f6f8; border: 1px solid var(--line); border-radius: 3px; font-size: 11px; }
.result-table { min-height: 210px; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; }
.pending-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.pending-pagination button { min-height: 32px; padding: 0 12px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 3px; }
.pending-pagination button:disabled { color: var(--muted); background: #f7f8fa; }
.pending-pagination span { color: var(--muted); font-size: 12px; }
.result-head-row, .result-row {
  display: grid;
  grid-template-columns: 1.25fr 1.4fr 1.4fr .8fr .75fr 70px;
  align-items: center;
  column-gap: 16px;
}
.result-head-row { min-height: 40px; padding: 0 14px; color: #596270; background: #f7f8fa; border-bottom: 1px solid var(--line); font-size: 12px; }
.result-row { width: 100%; min-height: 54px; padding: 8px 14px; color: var(--ink); background: #fff; border: 0; border-bottom: 1px solid #eef0f3; text-align: left; }
.result-row:hover { background: #fbfcfd; }
.result-row:last-child { border-bottom: 0; }
.result-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-row .mono { font-family: "Cascadia Mono", Consolas, monospace; font-size: 12px; }
.result-row .result-status { color: var(--teal-dark); }
.result-row .result-status.status-failed, .result-row .result-status.status-mismatch { color: var(--coral); }
.result-row .result-status.status-limited { color: var(--amber); }
.result-action { color: #24945c; text-align: right; }
.result-table .empty-copy { margin: 70px 0; }

.page-heading { margin-top: 0; }
.page-heading h2 { font-family: inherit; font-size: 22px; }
.panel-heading h2, .section-heading h2 { font-family: inherit; }
.records-paper { border-radius: 3px; }
.account-card { border-radius: 4px; box-shadow: none; }

@media (max-width: 1080px) {
  :root { --sidebar: 88px; }
  .nav-item { justify-content: center; padding-inline: 8px; }
  .nav-item > span:last-child { display: none; }
  .entry-grid { grid-template-columns: minmax(0, 1.45fr) minmax(290px, 1fr); }
  .result-head-row, .result-row { grid-template-columns: 1.2fr 1fr 1fr .8fr .7fr 60px; }
}

@media (max-width: 820px) {
  :root { --sidebar: 0px; }
  .topbar { height: 64px; padding: 0 16px; }
  .content { padding: 16px 16px 34px; }
  .entry-grid { grid-template-columns: 1fr; gap: 14px; }
  .upload-card, .manual-card { min-height: auto; }
  .upload-button { min-height: 170px; }
  .result-panel { margin-top: 24px; }
  .result-head-row { display: none; }
  .result-row { grid-template-columns: 1fr auto; gap: 5px 12px; padding: 13px 14px; }
  .result-row > span:nth-child(2), .result-row > span:nth-child(3), .result-row > span:nth-child(4) { display: none; }
  .result-row .result-status { grid-column: 1; }
  .result-action { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

@media (max-width: 480px) {
  .manual-card { padding: 18px 16px; }
  .manual-card .form-grid { grid-template-columns: 1fr; }
  .manual-card .form-field-wide { grid-column: auto; }
  .result-toolbar { align-items: flex-start; }
  .result-toolbar > div { display: block; }
  .result-toolbar span { display: inline-block; margin-top: 6px; }
}

/* 批量待查验工作台 */
.manual-entry-card {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 28px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: left;
}
.manual-entry-card:hover { background: #fafcfb; border-color: #9ccfb3; }
.manual-entry-card .manual-heading { margin: 0; }
.manual-entry-card .manual-heading > span:last-child { display: block; }
.manual-entry-card .manual-heading strong { display: block; font-size: 17px; font-weight: 500; }
.manual-entry-card .manual-heading small { display: block; max-width: 190px; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.manual-entry-arrow { color: #9aa2ad; font-size: 24px; }

.pending-actions { gap: 8px !important; }
.pending-head-row, .pending-row {
  display: grid;
  grid-template-columns: 46px minmax(180px, 1.3fr) 102px minmax(130px, .8fr) 120px 176px 96px 86px;
  align-items: center;
  column-gap: 12px;
}
.pending-head-row { min-height: 40px; padding: 0 14px; color: #596270; background: #f7f8fa; border-bottom: 1px solid var(--line); font-size: 12px; }
.pending-row { min-height: 54px; padding: 8px 14px; border-bottom: 1px solid #eef0f3; content-visibility: auto; contain-intrinsic-size: 54px; }
.pending-row:last-child { border-bottom: 0; }
.pending-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pending-row .mono { font-family: "Cascadia Mono", Consolas, monospace; font-size: 12px; }
.parse-state { justify-self: start; padding: 3px 7px; border: 1px solid; border-radius: 3px; font-size: 11px; }
.parse-state.is-success { color: #24945c; background: #eef9f3; border-color: #b7dfc9; }
.parse-state.is-failed { color: #c84d42; background: #fff1ef; border-color: #f0c0ba; }
.pending-note { color: var(--muted); }
.pending-action { display: flex; justify-content: flex-end; gap: 10px; text-align: right; }
.pending-action .danger { color: var(--coral); }
.pending-action .text-button[disabled] { color: #aeb4bc; cursor: default; }

.modal-open { overflow: hidden; }
.modal-overlay { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(20, 26, 34, .46); }
.manual-modal { width: min(640px, 100%); padding: 0 24px 22px; background: #fff; border: 1px solid #dfe3e8; border-radius: 4px; box-shadow: 0 18px 55px rgba(22, 29, 38, .18); }
.manual-modal-header { display: flex; min-height: 64px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.manual-modal-header h2 { margin: 0; font-size: 18px; font-weight: 500; }
.modal-close { width: 34px; height: 34px; color: #68717e; background: transparent; border: 0; font-size: 25px; font-weight: 300; line-height: 1; }
.invoice-type-block { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.invoice-type-block > span { width: 92px; color: #535c68; font-size: 12px; }
.invoice-type-block strong { padding: 8px 14px; color: var(--teal-dark); background: var(--teal-pale); border: 1px solid var(--teal); border-radius: 3px; font-size: 13px; font-weight: 500; }
.modal-form-grid { display: grid; gap: 16px; padding: 20px 0 2px; }
.manual-modal .form-field { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; column-gap: 12px; }
.manual-modal .form-field > span { margin: 0; text-align: right; }
.manual-modal .form-field > span em { color: var(--coral); font-style: normal; }
.manual-modal .form-field > small { grid-column: 2; margin-top: 5px; color: var(--muted); font-size: 11px; }
.manual-modal .money-input { width: 100%; }
.manual-modal .form-message { min-height: 22px; margin: 5px 0 0 122px; }
.manual-modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }

.verify-modal { display: flex; width: min(920px, 100%); height: min(82vh, 760px); flex-direction: column; padding: 22px 24px 0; background: #fff; border: 1px solid #dfe5e4; border-radius: 6px; box-shadow: 0 24px 70px rgba(20,42,41,.24); }
.verify-modal-header { display: flex; align-items: center; justify-content: space-between; }
.verify-modal-header strong { font-size: 17px; }
.verify-modal-header span { font: 600 13px/1.4 "Cascadia Mono", Consolas, monospace; }
.verify-modal > progress { overflow: hidden; width: 100%; height: 8px; flex: 0 0 8px; margin: 12px 0 14px; appearance: none; background: #e7edeb; border: 0; border-radius: 99px; }
.verify-modal > progress::-webkit-progress-bar { background: #e7edeb; border-radius: 99px; }
.verify-modal > progress::-webkit-progress-value { background: #31a35e; border-radius: 99px; transition: width .22s ease; }
.verify-modal > progress::-moz-progress-bar { background: #31a35e; border-radius: 99px; transition: width .22s ease; }
.verify-filters { display: flex; gap: 8px; margin-bottom: 12px; }
.verify-filters button { padding: 6px 11px; color: #788381; background: #f5f7f7; border: 1px solid transparent; border-radius: 99px; font-size: 12px; }
.verify-filters button.is-active { color: var(--teal); background: var(--teal-pale); border-color: #b9dcd6; }
.verify-items { min-height: 0; flex: 1 1 auto; overflow: auto; padding-right: 8px; overscroll-behavior: contain; }
.verify-item { position: relative; display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 10px; margin-bottom: 10px; padding: 12px; background: #fff; border: 1px solid #dfe5e4; border-radius: 6px; }
.verify-item.is-success { background: #f4fbf7; border-color: #bfe1cc; }
.verify-item.is-verifying { background: #fff; border-color: var(--teal); box-shadow: inset 3px 0 var(--teal); }
.verify-item.is-failed { background: #fff; border-color: #e1e5e4; }
.verify-item[data-verify-screenshot] { cursor: pointer; }
.verify-item[data-verify-screenshot]:hover, .verify-item[data-verify-screenshot]:focus-visible { border-color: #31a35e; box-shadow: 0 0 0 2px rgba(49,163,94,.12); outline: 0; }
.verify-item-index { display: grid; width: 30px; height: 30px; place-items: center; background: #fff; border-radius: 50%; font-size: 11px; }
.verify-item-grid { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 7px 18px; align-items: start; font-size: 12px; }
.verify-item-grid > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verify-item-grid b { font-weight: 500; }
.verify-item-grid em { margin-left: 5px; padding: 2px 5px; color: #24945c; background: #e8f7ef; border: 1px solid #b8dfc9; border-radius: 2px; font-style: normal; }
.verify-item.is-failed .verify-item-grid em { color: #c84d42; background: #fff0ee; border-color: #efc1bc; }
.verify-item-grid strong { justify-self: end; color: #24945c; font-size: 12px; }
.verify-item-grid i { color: #24945c; font-style: normal; font-weight: 700; }
.verify-item.is-failed .verify-item-grid strong, .verify-item.is-failed .verify-item-grid p { color: var(--coral); }
.verify-item-grid p { grid-column: 1 / -1; margin: 0; }
.verify-screenshot-hint { grid-column: 1 / -1; color: #2c8f57; font-size: 11px; }
.verify-modal-footer { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 20px; margin-top: 10px; border-top: 1px solid var(--line); }
.verify-modal-footer span { color: var(--muted); font-size: 12px; }
.verify-modal-footer span::before { content: "•"; margin-right: 10px; color: var(--teal); }
.verify-modal-footer > div { display: flex; gap: 12px; }
.verify-modal-footer button { min-height: 36px; padding: 0 16px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 3px; }
.verify-modal-footer .verify-export { color: #21854e; border-color: #31a35e; }
.verify-modal-footer .verify-screenshots { color: #fff; background: #31a35e; border-color: #31a35e; }
.verify-modal-footer #cancel-batch-verify.is-cancel { color: #fff; background: var(--coral); border-color: var(--coral); }
.verify-modal-footer button:disabled { opacity: .6; }

.screenshot-settings-modal { width: min(620px, 100%); max-height: min(88vh, 760px); overflow: auto; padding: 0 24px 20px; color: var(--ink); background: #fff; border: 1px solid #dfe3e8; border-radius: 6px; box-shadow: 0 24px 70px rgba(20,42,41,.24); }
.screenshot-settings-modal > header { display: flex; min-height: 64px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.screenshot-settings-modal h2 { margin: 0; font-size: 18px; font-weight: 600; }
.screenshot-settings-modal > header button { width: 34px; height: 34px; color: var(--muted); background: transparent; border: 0; font-size: 25px; }
.screenshot-settings-modal form { display: grid; gap: 18px; padding-top: 18px; }
.screenshot-settings-modal fieldset { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.screenshot-settings-modal legend, .screenshot-custom-settings p { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.screenshot-settings-modal fieldset label { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.screenshot-settings-modal input[type="radio"], .screenshot-settings-modal input[type="checkbox"] { width: 16px; height: 16px; flex: 0 0 16px; padding: 0; accent-color: #31a35e; }
.screenshot-settings-modal label small { color: var(--muted); font-size: 11px; }
.screenshot-custom-settings { display: grid; gap: 11px; }
.screenshot-custom-settings > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.screenshot-custom-settings > div:first-child p { margin: 0; }
.screenshot-custom-settings > div:first-child small { color: var(--muted); font-size: 11px; }
.screenshot-selected-fields { display: flex; min-height: 48px; flex-wrap: wrap; align-content: flex-start; gap: 8px; padding: 9px; background: #fbfdfc; border: 1px dashed var(--line-strong); border-radius: 4px; }
.screenshot-selected-fields span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; color: #23844d; background: #eef9f2; border: 1px solid #a9d7b9; border-radius: 3px; cursor: grab; font-size: 12px; }
.screenshot-selected-fields span:active { cursor: grabbing; }
.screenshot-selected-fields button { padding: 0; color: #299052; background: transparent; border: 0; font-size: 15px; line-height: 1; }
.screenshot-available-fields { display: flex; flex-wrap: wrap; gap: 8px; }
.screenshot-available-fields button { padding: 6px 9px; color: var(--ink-soft); background: #fff; border: 1px solid var(--line-strong); border-radius: 3px; font-size: 12px; }
.screenshot-available-fields button:hover { color: var(--teal); border-color: var(--teal); }
.screenshot-example { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.screenshot-example output { overflow: hidden; padding: 10px 12px; color: #7d8786; background: #f7f9f9; border: 1px solid var(--line); border-radius: 3px; text-overflow: ellipsis; white-space: nowrap; }
.screenshot-settings-modal footer { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.screenshot-settings-modal footer > label { display: flex; min-width: 82px; align-items: center; gap: 7px; margin-right: auto; font-size: 12px; white-space: nowrap; }
.screenshot-settings-modal footer > span { color: var(--muted); font-size: 11px; }

@media (max-width: 1080px) {
  .pending-head-row, .pending-row { grid-template-columns: 40px minmax(130px, 1fr) 94px minmax(100px,.7fr) 94px 154px 84px 76px; column-gap: 9px; }
}

@media (max-width: 820px) {
  .manual-entry-card { min-height: 112px; justify-content: space-between; padding: 20px 24px; }
  .manual-entry-card .manual-heading small { max-width: none; }
  .pending-head-row { display: none; }
  .pending-row { grid-template-columns: 1fr auto; gap: 7px 14px; padding: 14px; }
  .pending-row > span { display: grid; grid-column: 1 / -1; grid-template-columns: 86px minmax(0, 1fr); white-space: normal; }
  .pending-row > span::before { content: attr(data-label); color: var(--muted); }
  .pending-row > span:first-child, .pending-row > span:nth-child(2) { display: none; }
  .pending-row .pending-action { display: block; grid-column: 2; grid-row: 1; }
  .result-table .pending-list .empty-copy { margin: 55px 0; }
  .verify-item-grid { grid-template-columns: 1fr 1fr; }
  .verify-item-grid strong { justify-self: start; }
}

@media (max-width: 540px) {
  .result-toolbar { gap: 12px; }
  .pending-actions { display: flex !important; }
  .pending-actions .button { min-height: 34px; padding-inline: 10px; font-size: 12px; }
  .modal-overlay { align-items: end; padding: 0; }
  .manual-modal { width: 100%; padding: 0 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 10px 10px 0 0; }
  .manual-modal .form-field { grid-template-columns: 1fr; gap: 6px; }
  .manual-modal .form-field > span { text-align: left; }
  .manual-modal .form-field > small { grid-column: 1; margin-top: 0; }
  .manual-modal .form-message { margin-left: 0; }
  .manual-modal-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .manual-modal-actions .button-primary { grid-column: 1 / -1; grid-row: 1; }
  .verify-modal { width: 100%; height: 92vh; padding: 18px 16px 0; border-radius: 10px 10px 0 0; }
  .verify-item-grid { grid-template-columns: 1fr; }
  .verify-modal-footer { align-items: stretch; flex-direction: column; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); }
  .verify-modal-footer > div { display: grid; grid-template-columns: 1fr 1fr; }
  .verify-modal-footer #cancel-batch-verify { grid-column: 1 / -1; }
  .screenshot-settings-modal { width: 100%; max-height: 92vh; padding: 0 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 10px 10px 0 0; }
  .screenshot-settings-modal footer { flex-wrap: wrap; }
  .screenshot-settings-modal footer > span { width: 100%; order: -1; }
}

/* chapiao.xyz public homepage */
.auth-screen {
  --home-ink: #183638;
  --home-soft: #607879;
  --home-teal: #11857a;
  --home-teal-dark: #0a675f;
  --home-mint: #e7f3f0;
  --home-coral: #ee6755;
  --home-font: "HarmonyOS Sans SC", MiSans, "PingFang SC", "Microsoft YaHei", sans-serif;
  --home-data: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  display: block;
  min-height: 100vh;
  padding: 0;
  color: var(--home-ink);
  background:
    radial-gradient(circle at 78% 11%, rgba(238,103,85,.12), transparent 24rem),
    linear-gradient(180deg, #f4faf8 0 720px, #fff 720px);
  font-family: var(--home-font);
}

.landing-header {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  margin: auto;
  border-bottom: 1px solid rgba(17,133,122,.14);
}

.landing-brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.landing-brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: var(--home-teal);
  border-radius: 50% 50% 50% 10px;
  font-family: var(--home-font);
  font-size: 20px;
  font-weight: 700;
  transform: rotate(-4deg);
}
.landing-brand > span:last-child { display: grid; }
.landing-brand strong { font-family: var(--home-font); font-size: 21px; font-weight: 800; letter-spacing: .08em; }
.landing-brand small { color: var(--home-soft); font: 9px/1.2 var(--home-data); letter-spacing: .16em; }
.landing-nav { display: flex; align-items: center; gap: 30px; }
.landing-nav a { color: var(--home-soft); text-decoration: none; font-size: 13px; }
.landing-nav a:hover { color: var(--home-teal); }
.landing-nav .landing-nav-action { padding: 9px 17px; color: var(--home-teal-dark); border: 1px solid rgba(17,133,122,.42); border-radius: 99px; font-weight: 700; }

.landing-main { overflow: hidden; }
.landing-hero {
  display: grid;
  width: min(1180px, calc(100% - 48px));
  min-height: 640px;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  align-items: center;
  gap: clamp(52px, 8vw, 100px);
  margin: auto;
  padding: 62px 0 76px;
}
.landing-kicker { margin: 0 0 19px; color: var(--home-teal-dark); font: 700 12px/1.5 var(--home-data); letter-spacing: .12em; }
.landing-kicker span { display: inline-block; width: 28px; height: 2px; margin: 0 8px 3px 0; background: var(--home-coral); }
.landing-hero h1 { max-width: 670px; margin: 0; font-family: var(--home-font); font-size: clamp(46px, 5.3vw, 70px); font-weight: 800; line-height: 1.14; letter-spacing: -.055em; }
.landing-hero h1 em { color: var(--home-teal); font-style: normal; }
.landing-lead { max-width: 620px; margin: 25px 0 0; color: var(--home-soft); font-size: 16px; line-height: 1.9; }
.landing-actions { display: flex; align-items: center; gap: 18px; margin-top: 31px; }
.landing-primary {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  gap: 32px;
  padding: 0 22px;
  color: #fff;
  background: var(--home-teal);
  border: 0;
  border-radius: 5px;
  box-shadow: 0 12px 28px rgba(17,133,122,.2);
  font-weight: 700;
}
.landing-primary:hover { background: var(--home-teal-dark); }
.landing-primary span { font-size: 21px; font-weight: 400; }
.landing-actions .auth-hint { max-width: 180px; margin: 0; color: var(--home-soft); line-height: 1.55; }
.landing-proof { display: flex; gap: 0; margin: 35px 0 0; padding: 0; list-style: none; }
.landing-proof li { display: grid; min-width: 135px; padding: 0 24px; border-left: 1px solid rgba(17,133,122,.2); }
.landing-proof li:first-child { padding-left: 0; border-left: 0; }
.landing-proof b { font-family: var(--home-font); font-size: 20px; font-weight: 800; }
.landing-proof span { margin-top: 3px; color: var(--home-soft); font-size: 11px; }

.landing-ticket {
  position: relative;
  padding: 29px 32px 24px;
  background: rgba(255,255,255,.94);
  border: 1px solid #cfe1de;
  border-top: 5px solid var(--home-coral);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(22,74,70,.13);
  transform: none;
}
.landing-ticket::before, .landing-ticket::after {
  content: "";
  position: absolute;
  top: 48%;
  width: 22px;
  height: 22px;
  background: #eef8f5;
  border: 1px solid #cfe1de;
  border-radius: 50%;
}
.landing-ticket::before { left: -13px; }
.landing-ticket::after { right: -13px; }
.ticket-topline { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-bottom: 18px; color: #78908f; border-bottom: 1px dashed #c7d9d6; font: 10px/1.2 var(--home-data); letter-spacing: .09em; }
.ticket-topline b { color: var(--home-ink); font-family: var(--home-font); font-size: 21px; font-weight: 800; letter-spacing: .08em; }
.ticket-topline i { justify-self: end; font-style: normal; }
.ticket-status { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin: 24px 0; padding: 17px 18px; background: var(--home-mint); border-radius: 4px; }
.ticket-check { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; background: var(--home-teal); border-radius: 50%; font-size: 21px; }
.ticket-status small, .ticket-status strong { display: block; }
.ticket-status small { color: var(--home-soft); font-size: 10px; }
.ticket-status strong { margin-top: 2px; font-size: 17px; }
.ticket-status em { padding: 5px 8px; color: var(--home-teal-dark); background: #fff; border: 1px solid rgba(17,133,122,.25); border-radius: 99px; font-size: 11px; font-style: normal; }
.ticket-fields { margin: 0; }
.ticket-fields div { display: grid; grid-template-columns: 94px minmax(0,1fr); gap: 18px; padding: 10px 0; border-bottom: 1px solid #edf2f1; }
.ticket-fields dt { color: #849392; font-size: 12px; }
.ticket-fields dd { margin: 0; text-align: right; font-size: 13px; word-break: break-all; }
.ticket-fields div:last-child dd { color: var(--home-coral); font: 700 19px/1.2 var(--home-data); }
.ticket-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 21px; color: #8b9e9c; font-size: 10px; }
.ticket-footer b { display: grid; width: 52px; height: 52px; place-items: center; color: var(--home-coral); border: 3px double var(--home-coral); border-radius: 50%; font-family: var(--home-font); font-size: 14px; font-weight: 800; transform: rotate(-8deg); }

.landing-section { width: min(1180px, calc(100% - 48px)); margin: auto; padding: 94px 0; }
.landing-section-title p { margin: 0 0 8px; color: var(--home-coral); font: 700 11px/1.5 var(--home-data); letter-spacing: .16em; }
.landing-section-title h2, .landing-process h2 { margin: 0; font-family: var(--home-font); font-size: clamp(30px, 3vw, 42px); font-weight: 800; line-height: 1.3; letter-spacing: -.03em; }
.landing-features { border-top: 1px solid #e2ecea; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 42px; }
.feature-grid article { min-height: 220px; padding: 29px; background: #fff; border: 1px solid #dce8e6; border-radius: 7px; }
.feature-grid article:nth-child(2) { background: var(--home-ink); border-color: var(--home-ink); color: #fff; transform: translateY(-12px); }
.feature-grid article > span { color: var(--home-coral); font: 700 12px/1 var(--home-data); }
.feature-grid h3 { margin: 48px 0 10px; font-size: 20px; }
.feature-grid p { margin: 0; color: var(--home-soft); line-height: 1.8; }
.feature-grid article:nth-child(2) p { color: #b9cbca; }

.landing-process { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; padding-top: 76px; }
.landing-process-copy > p:last-child { max-width: 380px; margin: 20px 0 0; color: var(--home-soft); line-height: 1.8; }
.landing-process ol { margin: 0; padding: 0; list-style: none; }
.landing-process li { display: flex; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid #dfe9e7; }
.landing-process li > b { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; color: var(--home-teal); background: var(--home-mint); border-radius: 50%; font: 700 13px/1 var(--home-data); }
.landing-process li strong, .landing-process li span { display: block; }
.landing-process li strong { font-size: 16px; }
.landing-process li span { margin-top: 4px; color: var(--home-soft); font-size: 12px; }
.landing-footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px max(24px, calc((100vw - 1180px) / 2)); color: #7a8f8e; background: #f4f8f7; border-top: 1px solid #e1ebe9; font-size: 11px; }

.landing-advantages { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(0,1.28fr); gap: clamp(52px,7vw,96px); border-top: 1px solid #e2ecea; }
.landing-advantages .landing-section-title { align-self: start; position: sticky; top: 30px; }
.landing-section-title > span { display: block; max-width: 440px; margin-top: 18px; color: var(--home-soft); line-height: 1.85; }
.advantage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; }
.advantage-grid article { display: grid; min-height: 152px; grid-template-columns: 54px minmax(0,1fr); gap: 15px; padding: 24px 0; border-top: 1px solid #dce8e6; }
.advantage-grid article:nth-child(-n+2) { border-top-color: var(--home-ink); }
.advantage-grid article > b { display: grid; width: 48px; height: 48px; place-items: center; color: var(--home-teal-dark); background: var(--home-mint); border-radius: 4px; font-size: 11px; }
.advantage-grid h3 { margin: 2px 0 8px; font-size: 17px; }
.advantage-grid p { margin: 0; color: var(--home-soft); font-size: 13px; line-height: 1.75; }

.landing-scenarios { color: #fff; background: var(--home-ink); }
.scenario-inner { padding-block: 82px; }
.scenario-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.scenario-heading p { margin: 0; color: #79d0c7; font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.scenario-heading h2 { max-width: 680px; margin: 0; font-size: clamp(28px,3.2vw,42px); line-height: 1.35; text-align: right; }
.scenario-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 42px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.16); }
.scenario-grid article { min-height: 210px; padding: 28px; background: var(--home-ink); }
.scenario-grid span { color: #79d0c7; font-size: 11px; font-weight: 700; }
.scenario-grid h3 { margin: 44px 0 10px; font-size: 20px; }
.scenario-grid p { margin: 0; color: #b8cbca; font-size: 13px; line-height: 1.8; }

.landing-final-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.landing-final-cta p { margin: 0 0 8px; color: var(--home-coral); font-size: 12px; font-weight: 700; }
.landing-final-cta h2 { max-width: 720px; margin: 0; font-size: clamp(27px,3vw,40px); line-height: 1.35; }
.landing-final-cta a { display: inline-flex; min-width: 164px; min-height: 50px; align-items: center; justify-content: space-between; gap: 24px; padding: 0 20px; color: #fff; background: var(--home-teal); border-radius: 5px; text-decoration: none; font-weight: 700; }
.landing-final-cta a:hover { background: var(--home-teal-dark); }

@media (max-width: 900px) {
  .landing-nav a:not(.landing-nav-action) { display: none; }
  .landing-hero { min-height: auto; grid-template-columns: 1fr; padding-top: 54px; }
  .landing-hero-copy { text-align: center; }
  .landing-lead { margin-inline: auto; }
  .landing-actions, .landing-proof { justify-content: center; }
  .landing-ticket { width: min(530px, 100%); margin: auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 170px; }
  .feature-grid article:nth-child(2) { transform: none; }
  .feature-grid h3 { margin-top: 30px; }
  .landing-advantages { grid-template-columns: 1fr; gap: 40px; }
  .landing-advantages .landing-section-title { position: static; }
  .scenario-heading { display: block; }
  .scenario-heading h2 { margin-top: 10px; text-align: left; }
  .scenario-grid { grid-template-columns: 1fr; }
  .scenario-grid article { min-height: 160px; }
  .scenario-grid h3 { margin-top: 26px; }
  .landing-process { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .landing-header, .landing-hero, .landing-section { width: min(100% - 32px, 1180px); }
  .landing-header { min-height: 66px; }
  .landing-nav { gap: 0; }
  .landing-nav .landing-nav-action { padding: 8px 13px; }
  .landing-hero { gap: 42px; padding: 44px 0 58px; }
  .landing-hero h1 { font-size: 40px; }
  .landing-lead { font-size: 14px; }
  .landing-actions { display: grid; justify-items: center; }
  .landing-primary { width: min(280px, 100%); justify-content: space-between; }
  .landing-actions .auth-hint { max-width: none; }
  .landing-proof { display: grid; grid-template-columns: repeat(3,1fr); width: 100%; }
  .landing-proof li { min-width: 0; padding: 0 8px; }
  .landing-proof b { font-size: 17px; }
  .landing-proof span { font-size: 9px; }
  .landing-ticket { padding: 22px 20px 20px; }
  .ticket-topline span, .ticket-topline i { display: none; }
  .ticket-topline { grid-template-columns: 1fr; text-align: center; }
  .ticket-status { grid-template-columns: auto 1fr; }
  .ticket-status em { display: none; }
  .ticket-fields div { grid-template-columns: 78px minmax(0,1fr); gap: 8px; }
  .landing-section { padding: 68px 0; }
  .advantage-grid { grid-template-columns: 1fr; }
  .advantage-grid article:nth-child(2) { border-top-color: #dce8e6; }
  .landing-final-cta { display: grid; }
  .landing-final-cta a { width: min(260px,100%); }
  .landing-footer { display: grid; padding: 22px 16px; text-align: center; }
}

/* B · product-led public homepage */
.auth-screen {
  color: #1d3436;
  background: #fff;
  font-family: "HarmonyOS Sans SC", MiSans, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
}
.landing-header {
  width: 100%;
  min-height: 72px;
  padding: 0 max(28px, calc((100vw - 1320px) / 2));
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #e6eceb;
}
.landing-nav { gap: 38px; }
.landing-nav a { color: #526668; font-size: 14px; }
.landing-nav .landing-nav-action { padding: 9px 18px; color: #fff; background: #11857a; border-color: #11857a; border-radius: 4px; }
.landing-nav .landing-nav-action:hover { color: #fff; background: #0a675f; }
.landing-hero {
  width: min(1320px, calc(100% - 56px));
  min-height: 570px;
  grid-template-columns: minmax(300px,.7fr) minmax(620px,1.3fr);
  gap: clamp(44px,5vw,78px);
  padding: 58px 0 48px;
}
.landing-hero-copy { align-self: center; }
.landing-kicker { display: inline-block; margin-bottom: 26px; padding: 6px 11px; color: #0a756b; background: #edf7f5; border-radius: 99px; font: 700 11px/1.3 var(--home-font); letter-spacing: 0; }
.landing-kicker::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 6px 1px 0; background: #11857a; border-radius: 50%; }
.landing-kicker span { display: none; }
.landing-hero h1 { max-width: 520px; font-size: clamp(44px,4.5vw,65px); line-height: 1.18; letter-spacing: -.055em; }
.landing-hero h1 em { color: #1d3436; }
.landing-lead { max-width: 500px; margin-top: 24px; color: #5f7075; font-size: 16px; line-height: 1.8; }
.landing-actions { display: grid; justify-items: start; gap: 12px; margin-top: 34px; }
.landing-primary { min-width: 198px; min-height: 52px; justify-content: space-between; border-radius: 4px; box-shadow: 0 12px 26px rgba(17,133,122,.14); }
.landing-actions .auth-hint { max-width: none; color: #7b8b8f; font-size: 13px; }

.landing-brand-mark { transform: none; }

.product-demo { --demo-cycle: 13s; position: relative; overflow: hidden; padding: 20px; background: #fff; border: 1px solid #dce5e4; border-radius: 6px; box-shadow: 0 22px 55px rgba(32,75,72,.09); }
.product-demo-head, .product-list-title, .product-summary { display: flex; align-items: center; justify-content: space-between; }
.product-demo-head { margin-bottom: 14px; }
.product-demo-head strong { font-size: 16px; }
.product-demo-head span { color: #77878b; font-size: 12px; }
.demo-live { display: inline-flex; align-items: center; gap: 6px; }
.demo-live i { width: 6px; height: 6px; background: #11857a; border-radius: 50%; box-shadow: 0 0 0 4px rgba(17,133,122,.1); animation: demo-live 1.4s ease-in-out infinite; }
.product-dropzone { position: relative; display: grid; min-height: 170px; place-items: center; align-content: center; padding: 20px; background: #fafcfc; border: 1px dashed #cbd8d6; border-radius: 4px; text-align: center; animation: demo-dropzone var(--demo-cycle) ease-in-out infinite; }
.product-dropzone svg { width: 35px; height: 35px; margin-bottom: 9px; color: #11857a; }
.product-dropzone strong { font-size: 15px; }
.product-dropzone span { margin-top: 5px; color: #7c8c90; font-size: 12px; }
.product-dropzone b { margin-top: 12px; padding: 7px 20px; color: #344b4d; background: #fff; border: 1px solid #d5dedc; border-radius: 3px; font-size: 12px; font-weight: 600; }
.demo-drop-title { display: grid; }
.demo-drop-title span { grid-area: 1 / 1; margin: 0; color: inherit; font-size: inherit; }
.demo-drop-title span:first-child { animation: demo-drop-copy var(--demo-cycle) infinite; }
.demo-drop-title span:last-child { opacity: 0; color: #11857a; animation: demo-load-copy var(--demo-cycle) infinite; }
.product-dropzone .demo-load-track { position: absolute; bottom: 16px; width: 150px; height: 4px; margin: 0; overflow: hidden; opacity: 0; background: #e1ecea; border-radius: 99px; animation: demo-loading var(--demo-cycle) infinite; }
.demo-load-track i { display: block; width: 100%; height: 100%; background: #11857a; border-radius: inherit; transform: scaleX(0); transform-origin: left; animation: demo-load-progress var(--demo-cycle) ease-in-out infinite; }
.product-dropzone .demo-drag-file { --drag-start-x: 220%; --drag-start-y: -50%; --drag-end-x: -50%; --drag-end-y: -50%; --drag-tilt: 0deg; position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; width: 150px; min-height: 62px; margin: 0; padding: 9px 10px; grid-template-columns: 31px 1fr; align-items: center; gap: 2px 8px; color: #344b4d; background: #fff; border: 1px solid #d9e3e1; border-radius: 5px; box-shadow: 0 10px 24px rgba(32,75,72,.14); text-align: left; opacity: 0; animation: demo-drag-file var(--demo-cycle) cubic-bezier(.32,.72,.26,1) infinite; }
.product-dropzone .demo-drag-pdf { --drag-start-x: 190%; --drag-end-x: -175%; }
.product-dropzone .demo-drag-img { --drag-start-x: 250%; --drag-end-x: 75%; }
.demo-drag-file i { display: grid; width: 31px; height: 36px; grid-row: 1 / 3; place-items: center; color: #fff; background: #ee5e52; border-radius: 3px; font-size: 9px; font-style: normal; font-weight: 800; }
.demo-drag-ofd i { background: #428bc4; }
.demo-drag-img i { background: #2aa579; }
.product-dropzone .demo-drag-file b { margin: 0; padding: 0; overflow: hidden; background: transparent; border: 0; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.demo-drag-file small { color: #819093; font-size: 10px; }
.product-list-title { padding: 14px 0 9px; font-size: 12px; }
.product-list-title span { color: #11857a; }
.product-file-list { border-top: 1px solid #e8eded; }
.product-file-list > div { display: grid; grid-template-columns: 34px minmax(160px,1fr) minmax(110px,.65fr) 92px; align-items: center; gap: 10px; min-height: 58px; border-bottom: 1px solid #edf1f0; }
.product-file-list > div > i { display: grid; width: 28px; height: 28px; place-items: center; color: #fff; border-radius: 3px; font-size: 8px; font-style: normal; font-weight: 800; }
.file-pdf { background: #ee5e52; }.file-ofd { background: #428bc4; }.file-img { background: #2aa579; }
.product-file-list span b, .product-file-list span small { display: block; }
.product-file-list span b { overflow: hidden; color: #3a4b4e; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.product-file-list small { margin-top: 3px; color: #839195; font-size: 11px; }
.product-file-list em { display: grid; font-style: normal; }
.product-file-list em u { position: relative; overflow: hidden; height: 5px; background: #edf2f1; border-radius: 99px; text-decoration: none; }
.product-file-list em u::after { content: ""; display: block; width: 100%; height: 100%; background: #11857a; border-radius: inherit; transform: scaleX(0); transform-origin: left; animation: demo-verify-progress var(--demo-cycle) ease-in-out infinite; }
.product-file-list mark { color: #168777; background: transparent; font-size: 11px; font-weight: 700; text-align: right; }
.product-file-list mark i, .product-file-list small i, .product-summary i { font-style: normal; }
.product-file-list mark, .product-file-list em small, .product-summary > span:nth-child(2), .demo-verify-button { display: grid; }
.product-file-list mark i, .product-file-list em small i, .product-summary i, .demo-verify-button i { grid-area: 1 / 1; }
.demo-ready { animation: demo-ready var(--demo-cycle) infinite; }
.demo-running { opacity: 0; animation: demo-running var(--demo-cycle) infinite; }
.demo-done { opacity: 0; animation: demo-done var(--demo-cycle) infinite; }
.demo-row-1 .demo-running { animation-name: demo-row-1-running; }
.demo-row-2 .demo-running { animation-name: demo-row-2-running; }
.demo-row-3 .demo-running { animation-name: demo-row-3-running; }
.demo-row-1 .demo-done { animation-name: demo-row-1-done; }
.demo-row-2 .demo-done { animation-name: demo-row-2-done; }
.demo-row-3 .demo-done { animation-name: demo-row-3-done; }
.product-file-list .demo-row-1 em u::after { animation-name: demo-verify-progress-1; }
.product-file-list .demo-row-2 em u::after { animation-name: demo-verify-progress-2; }
.product-file-list .demo-row-3 em u::after { animation-name: demo-verify-progress-3; }
.demo-file-enter { opacity: 0; animation: demo-file-enter var(--demo-cycle) ease-out infinite; }
.product-summary { margin-top: 14px; padding: 12px 14px; background: #f7faf9; border-radius: 4px; color: #657679; font-size: 11px; }
.product-summary b { color: #168777; }
.product-summary > strong { padding: 8px 13px; color: #fff; background: #11857a; border-radius: 3px; font-size: 11px; }
.demo-verify-button { min-width: 74px; text-align: center; animation: demo-button-click var(--demo-cycle) ease-in-out infinite; }
.demo-pointer { position: absolute; z-index: 4; right: 54px; bottom: 29px; width: 23px; height: 28px; fill: #fff; stroke: #173f3e; stroke-linejoin: round; stroke-width: 2px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.16)); opacity: 0; animation: demo-pointer var(--demo-cycle) ease-in-out infinite; }
.demo-result { position: absolute; z-index: 3; right: 24px; bottom: 72px; display: flex; min-width: 250px; padding: 13px 16px; align-items: center; gap: 11px; color: #126f65; background: #fff; border: 1px solid #b9ddd8; border-left: 4px solid #11857a; border-radius: 4px; box-shadow: 0 14px 36px rgba(32,75,72,.18); opacity: 0; transform: translateY(10px); animation: demo-result var(--demo-cycle) ease-out infinite; }
.demo-result > b { display: grid; width: 27px; height: 27px; flex: none; place-items: center; color: #fff; background: #11857a; border-radius: 50%; }
.demo-result span { display: grid; margin: 0; text-align: left; }
.demo-result strong { font-size: 13px; }
.demo-result small { margin-top: 3px; color: #728487; font-size: 10px; }

@keyframes demo-live { 50% { opacity: .35; transform: scale(.75); } }
@keyframes demo-drag-file { 0%,4% { opacity: 0; transform: translate(var(--drag-start-x),var(--drag-start-y)) rotate(var(--drag-tilt)); } 8% { opacity: 1; } 20% { opacity: 1; transform: translate(var(--drag-end-x),var(--drag-end-y)) rotate(var(--drag-tilt)); } 24%,100% { opacity: 0; transform: translate(var(--drag-end-x),var(--drag-end-y)) scale(.84); } }
@keyframes demo-dropzone { 0%,9%,31%,100% { background: #fafcfc; border-color: #cbd8d6; } 13%,25% { background: #f1f9f7; border-color: #11857a; } }
@keyframes demo-drop-copy { 0%,20%,100% { opacity: 1; } 23%,31% { opacity: 0; } }
@keyframes demo-load-copy { 0%,20%,32%,100% { opacity: 0; } 23%,30% { opacity: 1; } }
@keyframes demo-loading { 0%,20%,32%,100% { opacity: 0; } 23%,30% { opacity: 1; } }
@keyframes demo-load-progress { 0%,21% { transform: scaleX(0); } 31%,100% { transform: scaleX(1); } }
@keyframes demo-file-enter { 0%,27%,100% { opacity: 0; transform: translateY(7px); } 33%,96% { opacity: 1; transform: translateY(0); } }
@keyframes demo-ready { 0%,45%,100% { opacity: 1; } 49%,96% { opacity: 0; } }
@keyframes demo-running { 0%,45%,68%,100% { opacity: 0; } 49%,65% { opacity: 1; } }
@keyframes demo-done { 0%,66%,100% { opacity: 0; } 69%,96% { opacity: 1; } }
@keyframes demo-row-1-running { 0%,48%,56%,100% { opacity: 0; } 49%,54% { opacity: 1; } }
@keyframes demo-row-2-running { 0%,48%,61%,100% { opacity: 0; } 49%,59% { opacity: 1; } }
@keyframes demo-row-3-running { 0%,48%,66%,100% { opacity: 0; } 49%,64% { opacity: 1; } }
@keyframes demo-row-1-done { 0%,54%,100% { opacity: 0; } 56%,96% { opacity: 1; } }
@keyframes demo-row-2-done { 0%,59%,100% { opacity: 0; } 61%,96% { opacity: 1; } }
@keyframes demo-row-3-done { 0%,64%,100% { opacity: 0; } 66%,96% { opacity: 1; } }
@keyframes demo-pointer { 0%,35%,55%,100% { opacity: 0; } 39% { opacity: 1; transform: translate(-135px,-98px); } 46% { opacity: 1; transform: translate(0,0); } 49% { opacity: 1; transform: translate(0,3px) scale(.82); } 52% { opacity: 1; transform: translate(0,0); } }
@keyframes demo-button-click { 0%,45%,52%,100% { transform: scale(1); box-shadow: none; } 48% { transform: scale(.96); box-shadow: 0 0 0 5px rgba(17,133,122,.14); } }
@keyframes demo-verify-progress { 0%,48% { transform: scaleX(0); } 75%,100% { transform: scaleX(1); } }
@keyframes demo-verify-progress-1 { 0%,48%,100% { transform: scaleX(0); } 54%,96% { transform: scaleX(1); } }
@keyframes demo-verify-progress-2 { 0%,53%,100% { transform: scaleX(0); } 59%,96% { transform: scaleX(1); } }
@keyframes demo-verify-progress-3 { 0%,58%,100% { transform: scaleX(0); } 64%,96% { transform: scaleX(1); } }
@keyframes demo-result { 0%,66%,100% { opacity: 0; transform: translateY(10px); } 69%,96% { opacity: 1; transform: translateY(0); } }

.landing-section { width: min(1320px, calc(100% - 56px)); }
.landing-process { display: block; padding: 28px 0; border-top: 1px solid #e8eeee; border-bottom: 1px solid #e8eeee; }
.landing-process ol { display: grid; grid-template-columns: repeat(3,1fr); gap: 56px; }
.landing-process li { position: relative; display: grid; min-width: 0; grid-template-columns: 50px 20px 1fr; gap: 12px; padding: 0; border: 0; }
.landing-process li:not(:last-child)::after { content: ""; position: absolute; top: 24px; right: -42px; width: 30px; height: 1px; background: #ef7565; }
.landing-process li > svg { width: 48px; height: 48px; padding: 11px; color: #ef6755; border: 1px solid #f2afa6; border-radius: 50%; }
.landing-process li > b { width: auto; height: auto; color: #1d3436; background: transparent; font-size: 13px; }
.landing-process li div { align-self: center; }
.landing-process li strong { font-size: 15px; }
.landing-process li span { color: #7a8b8e; font-size: 12px; }

.landing-features { padding: 80px 0 46px; border: 0; text-align: center; }
.landing-section-title { text-align: center; }
.landing-section-title p { margin-bottom: 7px; color: #11857a; }
.landing-section-title h2 { font-size: clamp(27px,2.5vw,36px); letter-spacing: -.025em; }
.landing-section-title > span { max-width: none; margin-top: 9px; color: #869497; font-size: 12px; }
.feature-grid { grid-template-columns: repeat(6,1fr); gap: 12px; margin-top: 38px; }
.feature-grid article, .feature-grid article:nth-child(2) { min-height: 210px; padding: 26px 18px; color: #1d3436; background: #fff; border: 1px solid #e0e8e7; border-radius: 5px; transform: none; }
.feature-grid article > svg { width: 38px; height: 38px; color: #11857a; }
.feature-grid h3 { margin: 34px 0 10px; font-size: 16px; }
.feature-grid p, .feature-grid article:nth-child(2) p { color: #76878a; font-size: 13px; line-height: 1.7; }
.feature-grid article:hover { border-color: #a9d4cd; box-shadow: 0 12px 30px rgba(31,84,78,.06); transform: translateY(-3px); }

.landing-results { padding: 46px 0 76px; }
.result-preview-table { overflow: hidden; margin-top: 30px; border: 1px solid #dde6e5; border-radius: 5px; }
.result-preview-head, .result-preview-row { display: grid; grid-template-columns: 1.05fr 1.35fr 1.35fr .8fr .85fr 1fr; align-items: center; gap: 16px; padding: 0 18px; }
.result-preview-head { min-height: 44px; color: #596b6e; background: #f7f9f9; border-bottom: 1px solid #e4eae9; font-size: 12px; font-weight: 700; }
.result-preview-row { min-height: 76px; color: #536669; border-bottom: 1px solid #edf1f0; font-size: 12px; }
.result-preview-row:last-child { border-bottom: 0; }
.result-preview-row > span:first-child b, .result-preview-row > span:first-child small { display: block; }
.result-preview-row > span:first-child b { color: #263e40; font: 600 12px/1.3 var(--home-data); }
.preview-amount { color: #ef6755; font-weight: 800; }
.preview-state { color: #128473; font-weight: 700; }
.preview-files { display: flex; justify-content: space-between; gap: 7px; }
.preview-files i { display: grid; justify-items: center; gap: 3px; color: #536669; font-size: 11px; font-style: normal; }
.preview-files svg { width: 18px; height: 18px; color: #11857a; }
.preview-files i:nth-child(2) svg { color: #ef6755; }

.landing-scenarios { color: #1d3436; background: #fff; }
.scenario-inner { padding: 70px 0 80px; }
.scenario-heading { display: block; text-align: center; }
.scenario-heading p { color: #11857a; letter-spacing: .12em; }
.scenario-heading h2 { max-width: none; margin: 8px auto 0; font-size: 31px; text-align: center; }
.scenario-heading > span { display: block; margin-top: 8px; color: #879598; font-size: 12px; }
.scenario-grid { grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 34px; background: transparent; border: 0; }
.scenario-grid article { display: grid; min-height: 150px; grid-template-columns: 58px 1fr; align-items: center; gap: 22px; padding: 28px; color: #1d3436; background: #fff; border: 1px solid #dfe7e6; border-radius: 5px; }
.scenario-grid article > svg { width: 48px; height: 48px; color: #11857a; }
.scenario-grid h3 { margin: 0 0 8px; font-size: 17px; }
.scenario-grid p { color: #748689; font-size: 13px; line-height: 1.7; }

.landing-final-cta { display: grid; grid-template-columns: 64px 1fr auto; padding: 30px 34px; background: #f5faf9; border: 1px solid #e0eae8; border-radius: 6px; }
.landing-final-cta > svg { width: 50px; height: 50px; padding: 10px; color: #11857a; background: #fff; border-radius: 50%; }
.landing-final-cta p { color: #1d3436; }
.landing-final-cta h2 { font-size: 22px; }
.landing-final-cta div > span { display: block; margin-top: 6px; color: #829194; font-size: 12px; }
.landing-final-cta a { min-width: 170px; }
.landing-footer { width: min(1320px,calc(100% - 56px)); margin: 72px auto 0; padding: 24px 0; background: #fff; border-top: 1px solid #e4eae9; font-size: 12px; }
.landing-footer b { color: #1d3436; font-size: 16px; }

@media (max-width: 1100px) {
  .landing-hero { grid-template-columns: 1fr; }
  .landing-hero-copy { text-align: center; }
  .landing-lead { margin-inline: auto; }
  .landing-actions { justify-items: center; }
  .product-demo { width: min(760px,100%); margin: auto; }
  .feature-grid { grid-template-columns: repeat(3,1fr); }
  .result-preview-head, .result-preview-row { grid-template-columns: .9fr 1.2fr 1.2fr .8fr .85fr; }
  .result-preview-head > span:nth-child(6), .result-preview-row > span:nth-child(6) { display: none; }
}

@media (max-width: 760px) {
  .landing-header { padding-inline: 16px; }
  .landing-hero, .landing-section, .landing-footer { width: calc(100% - 32px); }
  .landing-hero { min-height: auto; padding-top: 42px; }
  .landing-hero h1 { font-size: clamp(36px,11vw,42px); }
  .product-demo { padding: 13px; }
  .product-dropzone { min-height: 145px; }
  .product-file-list > div { grid-template-columns: 30px minmax(0,1fr) 74px; }
  .product-file-list em { display: none; }
  .product-summary span:nth-child(2), .product-summary span:nth-child(3) { display: none; }
  .landing-process ol { grid-template-columns: 1fr; gap: 24px; }
  .landing-process li:not(:last-child)::after { display: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid article, .feature-grid article:nth-child(2) { min-height: 185px; }
  .result-preview-head { display: none; }
  .result-preview-row { grid-template-columns: 1fr auto; gap: 8px; padding-block: 14px; }
  .result-preview-row > span:nth-child(2), .result-preview-row > span:nth-child(3) { display: none; }
  .scenario-grid { grid-template-columns: 1fr; }
  .landing-final-cta { grid-template-columns: 52px 1fr; padding: 24px 20px; }
  .landing-final-cta > a { grid-column: 1 / -1; width: 100%; }
  .landing-footer { gap: 8px; margin-top: 46px; }
}

@media (max-width: 460px) {
  .product-demo-head span { display: none; }
  .product-file-list mark { display: none; }
  .product-file-list > div { grid-template-columns: 30px minmax(0,1fr); }
  .product-dropzone .demo-drag-file { width: 90px; min-height: 56px; padding: 7px; grid-template-columns: 24px 1fr; gap: 5px; }
  .product-dropzone .demo-drag-pdf { --drag-start-x: 210%; --drag-end-x: -155%; }
  .product-dropzone .demo-drag-ofd { --drag-start-x: 250%; --drag-end-x: -50%; }
  .product-dropzone .demo-drag-img { --drag-start-x: 290%; --drag-end-x: 55%; }
  .demo-drag-file i { width: 24px; height: 30px; font-size: 7px; }
  .product-dropzone .demo-drag-file b { font-size: 9px; }
  .demo-drag-file small { font-size: 8px; }
  .demo-result { right: 12px; left: 12px; min-width: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article, .feature-grid article:nth-child(2) { min-height: 165px; }
  .feature-grid h3 { margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-drag-file, .demo-load-track, .demo-pointer, .demo-ready, .demo-running { display: none; }
  .demo-file-enter, .demo-done, .demo-result { opacity: 1; transform: none; }
  .product-file-list em u::after { transform: scaleX(1); }
}

/* B · authenticated workspace */
.app-shell {
  --paper: #fff;
  --canvas: #f5f8f7;
  --canvas-deep: #eef4f2;
  --ink: #1d3436;
  --ink-soft: #526669;
  --muted: #819093;
  --line: #dfe8e6;
  --line-strong: #cfdcda;
  --teal: #11857a;
  --teal-dark: #0a675f;
  --teal-pale: #edf7f5;
  --coral: #ef6755;
  --coral-pale: #fff0ed;
  --shadow: 0 12px 34px rgba(31,84,78,.06);
  --radius: 6px;
  --sidebar: 220px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family: "HarmonyOS Sans SC", MiSans, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.app-shell .sidebar { width: var(--sidebar); padding: 24px 14px; background: #fff; border-right: 1px solid var(--line); }
.app-brand { display: flex; width: 100%; align-items: center; gap: 11px; padding: 0 10px 22px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.app-brand-mark { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; color: #fff; background: var(--teal); border-radius: 50% 50% 50% 10px; font-size: 20px; font-weight: 800; }
.app-brand > span:last-child { display: grid; }
.app-brand strong { font-size: 20px; font-weight: 800; letter-spacing: .08em; }
.app-brand small { color: var(--muted); font: 9px/1.2 "Cascadia Mono", Consolas, monospace; letter-spacing: .14em; }
.app-shell .main-nav { gap: 7px; margin-top: 28px; }
.app-shell .nav-item { position: relative; min-height: 46px; padding: 10px 16px; color: #526669; border-radius: 4px; font-size: 14px; }
.app-shell .nav-item:hover { color: var(--teal-dark); background: #f6faf9; }
.app-shell .nav-item.is-active { color: var(--teal-dark); background: var(--teal-pale); font-weight: 700; }
.app-shell .nav-item.is-active::before { content: ""; position: absolute; inset: 11px auto 11px 0; width: 3px; background: var(--teal); border-radius: 0 3px 3px 0; }

.app-shell .workspace { min-height: 100vh; margin-left: var(--sidebar); background: var(--canvas); }
.app-shell .topbar { position: sticky; height: 72px; padding: 0 clamp(24px,3vw,44px); background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.app-shell .topbar h1 { color: var(--ink); font-size: 22px; font-weight: 800; }
.app-shell .topbar-balance { padding: 8px 12px; color: var(--muted); background: #f7faf9; border: 1px solid var(--line); border-radius: 4px; }
.app-shell .topbar-balance strong { color: var(--teal); }
.app-shell .avatar-button { width: 38px; height: 38px; color: #fff; background: var(--teal); border: 1px solid var(--teal); border-radius: 4px; }
.app-shell .content { width: 100%; max-width: none; margin: 0; padding: 32px clamp(24px,3vw,44px) 64px; }

.app-shell .entry-grid { grid-template-columns: minmax(460px,1.65fr) minmax(280px,.75fr); gap: 18px; }
.app-shell .upload-card, .app-shell .manual-entry-card { min-height: 270px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.app-shell .upload-card { padding: 16px; }
.app-shell .upload-button { min-height: 208px; color: var(--ink); background: #fafcfc; border: 1px dashed #c5d6d3; border-radius: 4px; }
.app-shell .upload-button:hover { background: var(--teal-pale); border-color: var(--teal); }
.app-shell .upload-button strong { font-size: 16px; font-weight: 700; }
.app-shell .upload-button small, .app-shell .upload-message { color: var(--muted); font-size: 12px; }
.app-shell .upload-mark { width: 42px; height: 42px; margin-bottom: 9px; color: var(--teal); }
.app-shell .upload-mark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; }
.app-shell .manual-entry-card { justify-content: space-between; padding: 34px; }
.app-shell .manual-entry-card:hover { background: #fafcfc; border-color: #a9d4cd; box-shadow: 0 14px 36px rgba(31,84,78,.08); }
.app-shell .manual-entry-card .manual-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; padding: 12px; color: var(--teal); background: var(--teal-pale); border-radius: 50%; }
.app-shell .manual-entry-card .manual-heading strong { color: var(--ink); font-size: 17px; font-weight: 700; }
.app-shell .manual-entry-card .manual-heading small { color: var(--muted); font-size: 13px; }
.app-shell .manual-entry-arrow { color: var(--coral); }

.app-shell .result-panel { margin-top: 18px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.app-shell .result-toolbar { margin-bottom: 16px; }
.app-shell .result-toolbar h2 { font-size: 17px; font-weight: 800; }
.app-shell .result-toolbar span { color: var(--teal-dark); background: var(--teal-pale); border-color: #cbe1dd; font-size: 12px; }
.app-shell .button { min-height: 38px; border-radius: 4px; font-weight: 600; }
.app-shell .button-primary { color: #fff; background: var(--teal); border-color: var(--teal); }
.app-shell .button-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.app-shell .button-secondary { color: #526669; background: #fff; border-color: var(--line-strong); }
.app-shell .result-table { border-color: var(--line); border-radius: 4px; }
.app-shell .pending-head-row, .app-shell .result-head-row { color: #607174; background: #f7f9f9; border-color: var(--line); }
.app-shell .pending-row:hover, .app-shell .result-row:hover { background: #f8fbfa; }

.app-shell .page-heading { align-items: center; margin-bottom: 22px; }
.app-shell .page-heading h2 { color: var(--ink); font-size: 28px; font-weight: 800; }
.app-shell .page-heading p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.app-shell .eyebrow { color: var(--teal); }
.app-shell .paper, .app-shell .records-paper, .app-shell .services-card, .app-shell .account-panel, .app-shell .detail-paper, .app-shell .file-paper { background: #fff; border-color: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.app-shell .records-head { color: #607174; background: #f7f9f9; border-color: var(--line); }
.app-shell .record-item { border-bottom: 1px solid #edf2f1; }
.app-shell .record-item:hover { background: #f8fbfa; }

.records-filter { display: grid; grid-template-columns: minmax(260px,1fr) 210px auto auto auto; align-items: end; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.records-filter label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.records-filter input, .records-filter select { width: 100%; height: 38px; padding: 0 12px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; font: inherit; outline: 0; }
.records-filter input:focus, .records-filter select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(17,133,122,.08); }
.records-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.records-toolbar > div { display: flex; align-items: center; gap: 10px; }
.records-toolbar span { color: var(--muted); font-size: 12px; }
.select-page { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 13px; }
.records-paper .records-head, .records-paper .record-item { display: grid; grid-template-columns: 34px minmax(190px,1.1fr) minmax(130px,.7fr) minmax(150px,1fr) minmax(150px,1fr) 120px 160px 72px; align-items: center; gap: 14px; }
.records-paper .records-head { padding: 12px 20px; font-size: 12px; }
.records-paper .record-item { padding: 16px 20px; cursor: pointer; font-size: 13px; }
.records-paper .record-item > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-check { display: grid; place-items: center; }
.record-check input, .select-page input { width: 15px; height: 15px; accent-color: var(--teal); }
.record-primary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.record-primary .record-number { width: 100%; margin: 0; }
.record-primary small { color: var(--teal); }
.record-primary .status-failed, .record-primary .status-mismatch { color: var(--coral); }
.record-primary .status-limited { color: var(--amber); }
.record-total { color: var(--ink); font-family: Consolas, monospace; }
.records-pagination { padding: 16px 22px; border-top: 1px solid var(--line); }

@media (max-width: 1180px) {
  .records-paper .records-head, .records-paper .record-item { grid-template-columns: 34px minmax(180px,1.2fr) minmax(120px,.7fr) minmax(140px,1fr) minmax(140px,1fr) 110px 72px; }
  .records-paper .records-head > :nth-child(7), .records-paper .record-item > :nth-child(7) { display: none; }
}

.app-shell .account-grid { grid-template-columns: minmax(320px,.8fr) minmax(440px,1.2fr); gap: 18px; }
.app-shell .account-card { min-height: 290px; padding: 32px; background: var(--teal); border-radius: var(--radius); box-shadow: 0 18px 42px rgba(17,133,122,.14); }
.app-shell .account-card::after { border-color: rgba(255,255,255,.08); }
.app-shell .brand-seal { transform: none; }
.app-shell .services-card, .app-shell .account-panel { padding: 28px; }
.app-shell .service-grid { gap: 12px; }
.app-shell .service-grid button { min-height: 82px; background: #fafcfc; border-color: var(--line); border-radius: 5px; }
.app-shell .service-grid button:hover { background: var(--teal-pale); border-color: #acd2cb; }
.app-shell .service-grid i { color: var(--teal); background: var(--teal-pale); border: 0; }
.app-shell .package-item { border-color: var(--line); border-radius: 5px; }
.app-shell .package-item:hover { border-color: #9bcac2; box-shadow: var(--shadow); }

.app-shell .back-button { margin-bottom: 20px; color: var(--teal); }
.app-shell .detail-layout { gap: 18px; }
.app-shell .result-stamp { transform: none; }
.app-shell .party-card, .app-shell .file-button { background: #fafcfc; border-color: var(--line); border-radius: 5px; }
.app-shell .manual-modal { border-color: var(--line); border-radius: 6px; }
.app-shell .mobile-nav { background: rgba(255,255,255,.97); border-color: var(--line); }
.app-shell .mobile-nav button.is-active { color: var(--teal); }

@media (max-width: 1080px) {
  .app-shell { --sidebar: 88px; }
  .app-brand { justify-content: center; padding-inline: 0; }
  .app-brand > span:last-child { display: none; }
  .app-shell .entry-grid { grid-template-columns: minmax(0,1.4fr) minmax(260px,.8fr); }
  .app-shell .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .app-shell { --sidebar: 0px; }
  .app-shell .workspace { margin-left: 0; }
  .app-shell .topbar { height: 64px; padding-inline: 16px; }
  .app-shell .content { padding: 18px 16px 34px; }
  .app-shell .entry-grid { grid-template-columns: 1fr; gap: 14px; }
  .app-shell .upload-card, .app-shell .manual-entry-card { min-height: auto; }
  .app-shell .manual-entry-card { min-height: 118px; padding: 22px; }
  .app-shell .result-panel { padding: 18px; }
  .records-filter { grid-template-columns: 1fr 1fr; padding: 16px; }
  .records-toolbar { align-items: flex-start; padding: 14px 16px; }
  .records-toolbar, .records-toolbar > div { flex-wrap: wrap; }
  .records-paper .records-head { display: none; }
  .records-paper .record-item { grid-template-columns: 28px 1fr auto; gap: 9px 12px; padding: 16px; }
  .records-paper .record-item > span, .records-paper .record-item > strong { grid-column: 2 / -1; display: grid; grid-template-columns: 76px 1fr; white-space: normal; }
  .records-paper .record-item > span::before, .records-paper .record-item > strong::before { content: attr(data-label); color: var(--muted); font-weight: 400; }
  .records-paper .record-item > :nth-child(7) { display: grid; }
  .records-paper .record-primary { display: flex; grid-column: 2; }
  .records-paper .record-primary::before { display: none; }
  .record-check { grid-row: 1; grid-column: 1; }
  .records-paper .record-item > .text-button { grid-row: 1; grid-column: 3; }
}
@media (max-width: 540px) {
  .app-shell .page-heading { align-items: flex-start; }
  .app-shell .page-heading h2 { font-size: 24px; }
  .app-shell .account-card, .app-shell .services-card, .app-shell .account-panel { padding: 22px 18px; }
  .records-filter { grid-template-columns: 1fr; }
}
