:root {
  --ink: #203b40;
  --text: #293d41;
  --muted: #64777a;
  --brand: #166d67;
  --brand-dark: #0d514c;
  --brand-pale: #e7f2ef;
  --paper: #ffffff;
  --canvas: #f3f6f4;
  --line: #dce5e1;
  --amber: #735327;
  --amber-pale: #fbf5e8;
  --danger: #963d35;
  --danger-pale: #fff0ed;
  --radius: 16px;
  --shadow: 0 4px 24px rgb(27 61 51 / 4%);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: var(--text);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { border: 0; }
input, select, textarea { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid #aabeb5; border-radius: 9px; background: #fff; color: var(--text); font-size: 16px; }
input, select { min-height: 48px; }
input::placeholder, textarea::placeholder { color: #7c8c88; opacity: 1; }
textarea { min-height: 210px; resize: vertical; line-height: 1.85; }
input[type="hidden"] { display: none; }
:focus-visible { outline: 3px solid #408b83; outline-offset: 4px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); overflow-wrap: anywhere; }
h1 { font-size: clamp(28px, 3vw, 36px); line-height: 1.4; letter-spacing: -.035em; font-weight: 700; }
h2 { font-size: 23px; line-height: 1.5; letter-spacing: -.025em; }
h3 { font-size: 19px; line-height: 1.6; }
strong { font-weight: 650; }
code, .tabular-text { font-variant-numeric: tabular-nums; }
code { font-size: .92em; overflow-wrap: anywhere; }
.page-width { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { width: min(1200px, calc(100% - 64px)); min-height: 80px; margin-inline: auto; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px 12px 12px 3px; color: white; background: var(--brand); font-size: 27px; font-weight: 650; }
.brand strong { font-size: 23px; letter-spacing: .04em; }
.brand-subtitle { display: block; font-size: 11px; font-weight: 500; letter-spacing: .1em; margin-top: 1px; }
.main-nav { display: flex; align-items: center; gap: 8px; margin-left: 14px; }
.main-nav a { display: flex; align-items: center; min-height: 44px; padding: 9px 15px; color: var(--muted); font-size: 14px; font-weight: 650; border-radius: 8px; }
.main-nav a:hover, .main-nav a.is-active { color: var(--brand); background: var(--brand-pale); }
.logout-form { margin-left: auto; }
.header-description { color: var(--muted); margin-left: auto; font-size: 13px; }
.environment-banner { border-bottom: 1px solid #e8e1d1; background: var(--amber-pale); color: var(--amber); font-size: 12px; }
.environment-banner .page-width { min-height: 38px; display: flex; align-items: center; gap: 9px; padding-block: 7px; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.main-content { min-height: calc(100vh - 205px); padding-top: 36px; padding-bottom: 48px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer-divider { margin: 0 8px; opacity: .5; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 20; background: var(--brand); color: white; padding: 14px 18px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.eyebrow { color: var(--brand); font-size: 11px; letter-spacing: .12em; font-weight: 700; line-height: 1.6; margin-bottom: 7px; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.75; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-description { margin-top: 9px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.snapshot-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #cddcd5; border-radius: 99px; color: #4b6960; padding: 9px 13px; font-size: 11px; flex-shrink: 0; margin-top: 9px; background: #edf3ef; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 5px; padding: 11px 19px; border: 1px solid transparent; border-radius: 9px; line-height: 1.5; font-size: 14px; font-weight: 650; text-align: center; white-space: nowrap; transition: background .15s, border-color .15s; }
.button-primary { background: var(--brand); color: #fff; }
.button-primary:hover { background: var(--brand-dark); color: #fff; }
.button-secondary { background: #fff; color: var(--brand); border-color: #c8d7cf; }
.button-secondary:hover { background: var(--brand-pale); border-color: #9cbaad; }
.button-quiet { color: var(--muted); background: transparent; }
.button-quiet:hover { background: #f0f4f1; color: var(--ink); }
.button-small { min-height: 44px; padding: 8px 15px; }
.button-full { width: 100%; }
.button-disabled { color: #80918b; background: #edf2ef; border-color: #e0e8e3; font-weight: 400; }
.search-panel { padding: 23px; }
.search-form { display: flex; gap: 16px; align-items: flex-end; }
.search-field-type { width: 210px; flex-shrink: 0; }
.search-field-query { flex: 1; }
.combined-search-panel { padding: 0; overflow: hidden; }
.search-panel-heading { padding: 24px 25px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.search-panel-heading h2 { font-size: 19px; }
.search-panel-heading p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.combined-search-form { padding: 22px 25px 0; }
.quick-search-grid { display: grid; grid-template-columns: minmax(230px, 1fr) 175px 165px 94px; align-items: end; gap: 14px; }
.quick-search-submit { min-height: 48px; }
.query-guidance { margin: 13px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.advanced-search { border-top: 1px solid var(--line); }
.advanced-search > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 59px; padding: 14px 0; list-style: none; cursor: pointer; color: var(--ink); border-radius: 6px; }
.advanced-search > summary::-webkit-details-marker { display: none; }
.advanced-summary-title { font-size: 14px; font-weight: 650; }
.advanced-summary-hint { color: var(--muted); font-size: 11px; font-weight: 400; margin-left: 12px; }
.details-closed-label, .details-open-label { color: var(--brand); font-size: 12px; font-weight: 600; white-space: nowrap; }
.details-open-label { display: none; }
.advanced-search[open] > summary .details-open-label { display: inline; }
.advanced-search[open] > summary .details-closed-label { display: none; }
.advanced-search-content { padding: 3px 0 24px; }
.combination-rule { margin-bottom: 23px; background: #f1f6f2; color: #597363; border-radius: 8px; padding: 12px 14px; font-size: 12px; line-height: 1.85; }
.filter-group { min-width: 0; border: 0; padding: 0; margin: 0 0 28px; }
.filter-group legend { color: var(--ink); font-size: 15px; font-weight: 650; padding: 0; margin-bottom: 6px; }
.filter-group-help { color: var(--muted); font-size: 12px; line-height: 1.9; margin-bottom: 16px; }
.filter-group-help strong { color: #42665a; }
.filter-grid { display: grid; gap: 16px; }
.filter-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.filter-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.project-filter-field { margin-bottom: 16px; }
.catalog-filter-panel { background: #f7faf7; border: 1px solid #d5e4da; border-radius: 12px; padding: 20px; margin-bottom: 21px; }
.catalog-panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 9px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.catalog-path-label { font-size: 13px; color: #355f4a; font-weight: 650; }
.catalog-source-label { font-size: 10px; color: #6f8176; line-height: 1.7; overflow-wrap: anywhere; }
.catalog-filter-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 17px; }
.catalog-filter-grid select { width: 100%; max-width: 100%; font-size: 14px; }
.catalog-filter-grid .optional-label { font-size: 10px; margin-left: 5px; white-space: nowrap; }
.catalog-selection-status { margin-top: 13px; color: #496b56; font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.catalog-selection-status.is-warning { color: #80561e; background: #fff6df; border: 1px solid #e9d5aa; border-radius: 7px; padding: 10px 12px; }
.catalog-selected-project { margin-top: 6px; color: #365c48; font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.catalog-selected-project:empty { display: none; }
.catalog-rules { margin-top: 13px; padding-top: 12px; border-top: 1px solid #deebe2; color: #677d6e; font-size: 11px; line-height: 1.9; }
.catalog-no-script { margin-top: 12px; color: #795727; font-size: 12px; line-height: 1.85; }
.text-filter-grid { grid-template-columns: minmax(0, 1fr) 235px; }
.range-help { margin-top: 9px; }
.advanced-search-actions { display: flex; align-items: center; gap: 12px; padding-top: 19px; border-top: 1px solid var(--line); }
.query-error-summary { margin: 20px 25px 0; }
.query-error-summary a { color: var(--danger); text-decoration: underline; text-underline-offset: 3px; }
.query-not-run { margin-top: 24px; padding: 29px; }
.query-not-run h2 { font-size: 20px; }
.query-not-run p { color: var(--muted); font-size: 14px; line-height: 1.9; margin: 11px 0 19px; }
.active-filters { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; margin: -3px 0 15px; }
.filter-chips { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.active-filters-label { font-size: 11px; color: var(--muted); margin-right: 2px; }
.filter-chip { display: inline-block; padding: 5px 9px; border: 1px solid #d6e3db; border-radius: 6px; font-size: 11px; line-height: 1.5; color: #48705c; background: #edf5ef; overflow-wrap: anywhere; }
.clear-filters-link { display: inline-flex; min-height: 44px; align-items: center; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.match-reasons { padding: 0; margin: 11px 0 0 51px; list-style: none; color: #567764; font-size: 11px; max-width: 260px; line-height: 1.85; }
.match-reasons li { position: relative; padding-left: 11px; }
.match-reasons li::before { content: ""; position: absolute; left: 0; top: .75em; width: 4px; height: 4px; background: #89aa96; border-radius: 50%; }
.form-field { min-width: 0; }
.form-field label { display: block; font-size: 13px; font-weight: 650; color: var(--ink); margin-bottom: 8px; }
.form-field ul { margin: 0; padding-left: 20px; }
.results-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 29px 0 14px; }
.results-heading > div { display: flex; align-items: center; gap: 10px; }
.results-heading h2 { font-size: 19px; }
.results-heading .muted { font-size: 12px; }
.result-count { display: inline-block; color: #637c70; font-size: 12px; font-weight: 500; letter-spacing: normal; }
.table-panel { overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.data-table th { background: #f7f9f7; color: #61766a; font-size: 11px; font-weight: 650; letter-spacing: .045em; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 19px 22px; border-bottom: 1px solid #e9efeb; line-height: 1.7; overflow-wrap: anywhere; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcfa; }
.data-table td strong { color: var(--ink); }
.customer-name { display: flex; align-items: center; gap: 12px; }
.customer-name strong { font-size: 15px; }
.customer-name small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.customer-avatar { display: grid; place-items: center; width: 39px; height: 39px; flex-shrink: 0; border-radius: 50%; background: #e8eee9; color: #557662; font-size: 16px; font-weight: 600; }
.row-action { text-align: right; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 22px; color: var(--muted); font-size: 12px; }
.empty-state { text-align: center; padding: 52px 24px; }
.empty-state h2 { font-size: 20px; }
.empty-state p { margin: 12px auto 20px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.empty-symbol { font-size: 35px; display: block; color: #7fa392; margin-bottom: 14px; }
.back-link { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; font-size: 12px; margin-top: -13px; margin-bottom: 13px; }
.customer-profile { padding: 28px 30px; }
.profile-heading { display: flex; align-items: center; gap: 18px; }
.avatar-large { width: 63px; height: 63px; font-size: 27px; border-radius: 16px; }
.profile-heading .eyebrow { margin-bottom: 0; }
.profile-heading h1 { font-size: 29px; }
.profile-heading > .source-badge { margin-left: auto; }
.profile-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.profile-facts dt { font-size: 11px; color: var(--muted); margin-bottom: 7px; }
.profile-facts dd { margin: 0; color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.source-badge, .neutral-badge { display: inline-flex; align-items: center; border-radius: 6px; padding: 5px 9px; font-size: 11px; font-weight: 500; line-height: 1.5; }
.history-badge { color: #657872; background: #f0f4f1; border: 1px solid #e0e8e3; }
.new-badge { color: var(--brand); background: var(--brand-pale); border: 1px solid #cfdfd7; }
.neutral-badge { color: #657266; background: #f0f3ec; }
.section-nav { display: flex; flex-wrap: wrap; gap: 4px 12px; border-bottom: 1px solid var(--line); margin-top: 18px; padding-bottom: 10px; }
.section-nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 12px; font-size: 13px; font-weight: 600; border-radius: 8px; color: #62796c; }
.section-nav a:hover { color: var(--brand); background: #e6efea; }
.content-section { margin-top: 38px; scroll-margin-top: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 13px; }
.section-heading .eyebrow { margin-bottom: 4px; }
.section-heading h2 .result-count { margin-left: 7px; }
.section-description { color: var(--muted); font-size: 13px; line-height: 1.9; margin-bottom: 17px; }
.number-cell { font-variant-numeric: tabular-nums; }
.remaining-value { color: var(--brand); font-weight: 700; font-size: 19px; }
.cell-detail { display: block; font-size: 11px; color: var(--muted); line-height: 1.75; margin-top: 3px; }
.compact-empty { padding: 25px 28px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.reading-card { padding: 27px 32px 31px; margin-top: 14px; }
.reading-card h3 { max-width: 850px; margin: 10px 0 14px; overflow-wrap: anywhere; }
.record-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 16px; color: #6c7f72; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.record-meta > span + span::before { content: "·"; color: #b4c1b6; margin-right: 16px; }
.record-body { max-width: 850px; color: #263e37; font-size: 17px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 4; }
.new-record-card { border-left: 4px solid #8db3a5; }
.compose-panel { padding: 28px 32px; border-color: #bdd4c8; }
.stack-form { display: flex; flex-direction: column; gap: 21px; }
.form-grid { display: grid; grid-template-columns: 200px 1fr; gap: 20px; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.required-label { font-size: 10px; font-weight: 400; margin-left: 7px; color: #7b725b; }
.optional-label { font-size: 11px; font-weight: 400; margin-left: 7px; color: var(--muted); }
.field-help { font-size: 12px; color: var(--muted); line-height: 1.7; }
.field-help-row { display: flex; justify-content: space-between; gap: 14px; margin-top: 6px; }
.character-count { color: var(--muted); font-size: 11px; white-space: nowrap; line-height: 1.8; font-variant-numeric: tabular-nums; }
.field-errors { color: var(--danger); font-size: 13px; margin-top: 8px; line-height: 1.7; }
.notice { border: 1px solid #ccdcd2; border-radius: 11px; padding: 15px 19px; background: #eef5ef; color: #45664e; line-height: 1.85; font-size: 14px; margin-bottom: 21px; }
.notice-error, .notice-danger { color: var(--danger); background: var(--danger-pale); border-color: #efcbc5; }
.notice ul { margin: 3px 0; padding-left: 20px; }
.notice-info { background: #edf4f1; color: #496961; border-color: #d3e0d8; }
.error-card { max-width: 720px; padding: 42px; margin: 55px auto; }
.error-card h1 { font-size: 28px; }
.error-message { margin: 20px 0 16px; line-height: 1.8; overflow-wrap: anywhere; }
.error-card .button { margin-top: 24px; }
.unsaved-copy { display: flex; flex-direction: column; gap: 17px; margin-top: 26px; padding-top: 23px; border-top: 1px solid var(--line); }
.unsaved-copy h2 { font-size: 20px; }
.relogin-help { margin-top: 20px; }
.login-layout { display: grid; grid-template-columns: 1fr 420px; gap: 90px; max-width: 1060px; margin: 36px auto 40px; align-items: center; }
.login-introduction h1 { font-size: clamp(36px, 4.4vw, 51px); letter-spacing: -.04em; line-height: 1.45; margin-top: 14px; }
.intro-copy { color: var(--muted); font-size: 16px; line-height: 2; max-width: 450px; margin-top: 21px; }
.intro-features { margin-top: 35px; display: flex; flex-direction: column; gap: 24px; }
.intro-features > div { display: flex; align-items: flex-start; gap: 16px; }
.feature-number { color: #5c9180; background: #e1ece5; border-radius: 8px; font-size: 11px; display: grid; place-items: center; width: 33px; height: 33px; flex-shrink: 0; }
.intro-features strong { font-size: 14px; line-height: 1.6; }
.intro-features small { display: block; color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 3px; }
.login-card { padding: 33px; }
.login-card h2 { font-size: 27px; }
.login-card > .muted { margin-top: 7px; margin-bottom: 26px; font-size: 13px; }
.demo-credentials { margin-top: 26px; padding-top: 21px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.demo-credentials > strong { color: var(--amber); font-size: 11px; }
.demo-credentials dl { margin: 13px 0; display: flex; flex-direction: column; gap: 8px; }
.demo-credentials dl > div { display: flex; gap: 14px; align-items: baseline; }
.demo-credentials dt { min-width: 42px; }
.demo-credentials dd { margin: 0; color: var(--ink); }
.demo-credentials p { font-size: 11px; line-height: 1.8; }
@media (max-width: 1000px) {
  .page-width, .header-inner { width: calc(100% - 40px); }
  .login-layout { gap: 40px; grid-template-columns: 1fr 390px; }
  .search-field-type { width: 180px; }
  .data-table th, .data-table td { padding-inline: 16px; }
  .header-inner { gap: 20px; }
  .main-nav { margin-left: 0; }
  .quick-search-grid { grid-template-columns: minmax(0, 1fr) 165px 165px; }
  .quick-search-query { grid-column: 1 / -1; }
  .quick-search-submit { width: 100%; }
  .filter-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .page-width, .header-inner { width: calc(100% - 32px); }
  .header-inner { min-height: 72px; flex-wrap: wrap; gap: 0 12px; padding-block: 13px; }
  .brand-mark { width: 34px; height: 34px; font-size: 23px; border-radius: 10px 10px 10px 3px; }
  .brand { gap: 8px; }
  .brand strong { font-size: 20px; }
  .brand-subtitle { font-size: 10px; }
  .main-nav { order: 3; width: 100%; margin-top: 11px; border-top: 1px solid var(--line); padding-top: 9px; gap: 7px; }
  .main-nav a { font-size: 13px; }
  .logout-form .button { padding: 9px 10px; font-size: 12px; }
  .header-description { font-size: 10px; max-width: 130px; line-height: 1.8; text-align: right; }
  .environment-banner .page-width { flex-wrap: wrap; gap: 3px 7px; font-size: 11px; padding-block: 9px; }
  .main-content { padding-top: 27px; padding-bottom: 33px; }
  .page-heading { display: block; margin-bottom: 22px; }
  .page-description { font-size: 14px; }
  .snapshot-pill { margin-top: 16px; }
  .search-panel { padding: 18px; }
  .search-form { flex-wrap: wrap; gap: 16px 12px; }
  .search-field-type { width: 100%; }
  .search-field-query { flex-basis: 100%; }
  .search-form > .button-primary { flex: 1; }
  .search-form > .button-secondary { flex: 1; }
  .combined-search-panel { padding: 0; }
  .search-panel-heading { display: block; padding: 20px 19px 0; }
  .search-panel-heading p { margin-top: 7px; font-size: 11px; }
  .combined-search-form { padding: 18px 19px 0; }
  .quick-search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 12px; }
  .quick-search-query, .quick-search-submit { grid-column: 1 / -1; }
  .quick-search-grid select { font-size: 14px; padding-inline: 10px; }
  .query-guidance { font-size: 11px; margin-bottom: 16px; }
  .advanced-search > summary { align-items: center; min-height: 64px; }
  .advanced-summary-hint { display: block; margin: 4px 0 0; line-height: 1.7; }
  .advanced-search-content { padding-bottom: 20px; }
  .filter-grid-three, .text-filter-grid { grid-template-columns: 1fr; }
  .filter-grid-four { gap: 15px 12px; }
  .filter-grid-four input { padding-inline: 10px; }
  .filter-group { margin-bottom: 25px; }
  .filter-group-help { font-size: 11px; }
  .catalog-filter-panel { padding: 17px 14px; margin-bottom: 20px; }
  .catalog-panel-heading { display: block; margin-bottom: 16px; }
  .catalog-source-label { display: block; margin-top: 6px; }
  .catalog-filter-grid { grid-template-columns: 1fr; gap: 16px; }
  .catalog-filter-grid select { font-size: 14px; padding-inline: 10px; }
  .catalog-selection-status, .catalog-selected-project { font-size: 11px; }
  .advanced-search-actions { flex-direction: column; align-items: stretch; }
  .query-error-summary { margin: 17px 19px 0; font-size: 12px; padding: 13px; }
  .query-not-run { padding: 23px; }
  .query-not-run p { font-size: 13px; }
  .match-reasons { max-width: none; margin-left: 51px; }
  .results-heading { align-items: flex-start; gap: 10px; }
  .results-heading > .muted { font-size: 11px; text-align: right; max-width: 140px; }
  .customer-table thead, .responsive-table thead { display: none; }
  .customer-table, .customer-table tbody, .customer-table tr, .customer-table td, .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td { display: block; width: 100%; }
  .customer-table tr, .responsive-table tr { padding: 17px 19px; border-bottom: 1px solid var(--line); }
  .customer-table tr:last-child, .responsive-table tr:last-child { border-bottom: 0; }
  .customer-table td, .responsive-table td { padding: 7px 0; border: 0; font-size: 14px; }
  .customer-table td[data-label]:not(:first-child), .responsive-table td[data-label] { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 10px; align-items: baseline; }
  .customer-table td[data-label]:not(:first-child)::before, .responsive-table td[data-label]::before { content: attr(data-label); font-size: 11px; color: var(--muted); font-weight: 400; }
  .responsive-table td[data-label] > .cell-detail { grid-column: 2; }
  .customer-table td[data-label] > .cell-detail { grid-column: 2; }
  .customer-table td:first-child { padding-bottom: 13px; }
  .customer-table td.row-action { padding-top: 13px; text-align: left; }
  .customer-table .row-action .button { width: 100%; }
  .customer-profile { padding: 22px; }
  .profile-heading { flex-wrap: wrap; gap: 12px; }
  .profile-heading h1 { font-size: 26px; }
  .avatar-large { width: 50px; height: 50px; font-size: 22px; border-radius: 13px; }
  .profile-heading > .source-badge { font-size: 10px; }
  .profile-facts { grid-template-columns: 1fr 1fr; gap: 20px 14px; margin-top: 22px; }
  .profile-facts dd { font-size: 14px; }
  .section-nav { gap: 2px 5px; }
  .section-nav a { padding-inline: 9px; font-size: 12px; }
  .content-section { margin-top: 30px; }
  .section-heading { gap: 12px; align-items: flex-start; }
  .section-heading h2 { font-size: 21px; }
  .section-heading > .source-badge { font-size: 10px; flex-shrink: 0; margin-top: 6px; }
  .section-description { font-size: 12px; }
  .reading-card { padding: 22px; }
  .reading-card h3 { font-size: 19px; margin-block: 10px 12px; }
  .record-body { font-size: 17px; line-height: 1.95; }
  .record-meta { font-size: 11px; }
  .compose-panel { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; gap: 20px; }
  .form-actions .button { width: 100%; }
  .field-help-row { flex-wrap: wrap; gap: 4px; }
  .site-footer { flex-direction: column; gap: 8px; font-size: 10px; }
  .pagination { gap: 14px; font-size: 11px; }
  .pagination .button { padding-inline: 13px; font-size: 12px; }
  .login-layout { grid-template-columns: 1fr; gap: 30px; margin: 5px auto 15px; max-width: 500px; }
  .login-introduction h1 { font-size: 34px; }
  .login-introduction h1 br { display: none; }
  .intro-copy { font-size: 14px; line-height: 1.9; margin-top: 14px; }
  .intro-features { display: none; }
  .login-card { padding: 26px; }
  .error-card { padding: 27px; margin-top: 10px; }
  .error-card h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
.history-protection { -webkit-user-select: none; user-select: none; }
.history-watermark { margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid #7b9d9b; color: #526967; font-size: 12px; letter-spacing: .06em; pointer-events: none; }
.table-panel > .history-watermark { margin: 0; padding: 12px 18px; }
.session-expiry-warning[hidden] { display: none; }
@media print {
  [data-history-protection] > * { display: none !important; }
  [data-history-protection]::before { content: 'HIS 历史资料未加入打印内容。'; display: block; padding: 12px; }
  .site-header, .environment-banner, .section-nav, .back-link, .pagination, .note-form, .site-footer { display: none; }
  .page-width { width: 100%; }
  .panel { box-shadow: none; }
  .record-body { max-width: none; }
}
