:root {
  --ink: #17212b;
  --muted: #66727f;
  --line: #d7dee5;
  --soft: #f5f7f9;
  --brand: #146c5b;
  --brand-dark: #0d5245;
  --accent: #b45309;
  --danger: #b42318;
  --success: #237a4b;
  --white: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: #eef2f4;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #eef2f4; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }

.shell { width: min(1120px, calc(100% - 48px)); margin: 32px auto; }
.public-shell { width: min(920px, calc(100% - 28px)); margin: 28px auto 48px; }
.page { background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.page-head { padding: 24px 28px 18px; border-bottom: 1px solid var(--line); }
.page-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.page-head-main { min-width: 0; }
.page-head-actions { flex: 0 0 auto; }
.page-head h1 { margin: 0; font-size: 24px; line-height: 1.35; }
.page-head p { margin: 7px 0 0; color: var(--muted); line-height: 1.6; }
.page-body { padding: 26px 28px 30px; }

.manage-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 16px; color: #fff; background: #17212b; border-right: 3px solid var(--brand); }
.brand { display: block; padding: 0 8px; font-size: 18px; font-weight: 700; color: #fff; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.nav { display: flex; flex-direction: column; gap: 4px; margin-top: 28px; }
.nav a { color: #dbe4e8; padding: 12px 14px; border-radius: 4px; }
.nav a:hover { color: #fff; background: #25323d; text-decoration: none; }
.manage-main { min-width: 0; }
.manage-topbar { min-height: 62px; display: flex; align-items: center; justify-content: flex-end; width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.account-menu { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.manage-topbar .link-button { color: var(--ink); }
.manage-topbar .link-button:hover { color: var(--brand); }
.logout-form { margin: 0; }
.link-button { border: 0; background: transparent; color: #dbe4e8; padding: 8px 0; }
.table-action { padding: 0; color: var(--brand); }
.table-action:hover { text-decoration: underline; }
.qr-preview { display: block; width: 190px; height: 190px; object-fit: contain; border: 1px solid var(--line); background: #fff; }
.customer-tabs { display: flex; gap: 22px; padding: 14px 0; }
.customer-tabs a { color: var(--muted); padding: 7px 0; border-bottom: 2px solid transparent; }
.customer-tabs a.active { color: var(--brand-dark); border-color: var(--brand); }

.section { padding: 0 0 26px; }
.section + .section { padding-top: 24px; border-top: 1px solid var(--line); }
.section h2 { margin: 0 0 16px; font-size: 17px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.form-grid-single { grid-template-columns: minmax(0, 1fr); }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.required::after { content: " *"; color: var(--danger); }
.control { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #b9c3cb; border-radius: 4px; color: var(--ink); background: #fff; }
.control:focus { outline: 2px solid rgba(20,108,91,.18); border-color: var(--brand); }
textarea.control { min-height: 90px; resize: vertical; }
.error-text { margin: 6px 0 0; color: var(--danger); font-size: 13px; }
.hint { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 9px 16px; border: 1px solid transparent; border-radius: 4px; font-weight: 600; line-height: 1.2; }
.btn:hover { text-decoration: none; }
.btn-primary { color: #fff; background: var(--brand); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { color: var(--ink); background: #fff; border-color: #aeb9c2; }
.btn-danger { color: #fff; background: var(--danger); }
.btn-small { min-height: 32px; padding: 6px 10px; font-size: 13px; }

.alert { margin-bottom: 20px; padding: 12px 14px; border-left: 4px solid; background: var(--soft); line-height: 1.55; }
.alert-error { color: #7a271a; border-color: var(--danger); background: #fff3f1; }
.alert-success { color: #175c37; border-color: var(--success); background: #effaf4; }
.alert-warning { color: #7a4b08; border-color: var(--accent); background: #fff8eb; }

.toast { position: fixed; z-index: 1200; top: 24px; left: 50%; min-width: 160px; max-width: calc(100% - 32px); padding: 11px 18px; border: 1px solid; border-radius: 4px; box-shadow: 0 8px 24px rgba(23,33,43,.18); font-size: 14px; font-weight: 600; text-align: center; transform: translate(-50%, -12px); opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast-success { color: #175c37; border-color: #87c6a4; background: #effaf4; }
.toast-error { color: #7a271a; border-color: #e0aaa3; background: #fff3f1; }

.status { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.status-pending { color: #7a4b08; background: #fff0cf; }
.status-rejected { color: #8a211a; background: #fde8e5; }
.status-approved { color: #175c37; background: #dff4e8; }

.result-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.metric { padding: 18px; background: #fff; }
.metric-label { display: block; color: var(--muted); font-size: 13px; }
.metric-value { display: block; margin-top: 7px; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.metric-meta { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.metric-error { color: var(--danger); }
.result-list { border: 1px solid var(--line); }
.result-row { display: grid; grid-template-columns: minmax(170px, 1.15fr) minmax(260px, 1.65fr) minmax(110px, .8fr) minmax(104px, auto); background: #fff; }
.result-row + .result-row { border-top: 1px solid var(--line); }
.result-row > * + * { border-left: 1px solid var(--line); }
.result-row-action { display: flex; min-width: 104px; align-items: center; justify-content: center; padding: 18px; background: #fff; }
.result-row-action .hint { margin: 0; text-align: center; }
.query-code { font-family: Consolas, monospace; font-size: 22px; letter-spacing: 0; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.toolbar h1 { margin: 0; font-size: 24px; }
.filter-form { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.filter-form .control { min-height: 38px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 12px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
th { color: #3c4955; background: #f1f4f6; font-size: 13px; }
tbody tr:hover { background: #fbfcfc; }
.cell-wrap { white-space: normal; min-width: 180px; }
.row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.row-actions form { margin: 0; }
.copy-value { max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.section-heading h2 { margin-bottom: 4px; }
.section-heading .hint { margin-top: 0; }
.endpoint-list { margin: 18px 0; border-top: 1px solid var(--line); }
.endpoint-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.endpoint-row dt { color: #52636d; font-size: 13px; font-weight: 700; }
.endpoint-row dd { min-width: 0; margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.endpoint-row code { min-width: 0; overflow-wrap: anywhere; color: #183f37; font-size: 13px; }
.compact-alert { margin: 12px 0 0; padding: 9px 11px; font-size: 13px; }
.diagnostic-list { border-top: 1px solid var(--line); }
.diagnostic-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.diagnostic-row strong { color: #344550; font-size: 14px; }
.diagnostic-row form { margin: 0; }
.diagnostic-result { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 10px 0 0; }
.diagnostic-result .hint { margin: 0; }
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.detail-item { padding: 13px 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.detail-item:nth-child(4n) { border-right: 0; }
.detail-label { color: var(--muted); font-size: 12px; }
.detail-value { margin-top: 5px; font-weight: 600; overflow-wrap: anywhere; }
.review-panel { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form .control { width: auto; min-width: 0; flex: 1 1 auto; }
.modal { display: none; position: fixed; z-index: 1000; inset: 0; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(23,33,43,.55); }
.modal-panel { position: relative; z-index: 1; width: min(520px, 100%); max-height: min(760px, calc(100vh - 40px)); overflow: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 14px 40px rgba(23,33,43,.2); }
.modal-panel-wide { width: min(1080px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 20px; }
.modal-close { padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 28px; line-height: 1; }
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 22px; }
.modal-form-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.modal-form-row .field label { white-space: nowrap; }
.modal-description { margin: 0 0 16px; color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 0 22px 22px; }
.review-modal-panel { width: min(560px, 100%); }
.review-choice-group { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.review-choice-group legend { margin-bottom: 9px; font-size: 14px; font-weight: 600; }
.review-choice { display: flex; gap: 11px; align-items: flex-start; padding: 13px 14px; border: 1px solid #b9c3cb; border-radius: 4px; cursor: pointer; }
.review-choice:has(input:checked) { border-color: var(--brand); background: #f0f8f6; box-shadow: 0 0 0 1px var(--brand); }
.review-choice input { margin: 3px 0 0; accent-color: var(--brand); }
.review-choice span { display: grid; gap: 4px; }
.review-choice small { color: var(--muted); line-height: 1.45; }
.review-reason { margin-top: 18px; }
.review-reason[hidden], .error-text[hidden] { display: none; }
.modal-actions .btn:disabled { cursor: not-allowed; opacity: .55; }
body.modal-open { overflow: hidden; }
.empty { padding: 40px 20px; color: var(--muted); text-align: center; }
.pagination { display: flex; gap: 6px; margin-top: 18px; padding: 0; list-style: none; }
.pagination li a, .pagination li span { display: block; padding: 7px 11px; border: 1px solid var(--line); background: #fff; }
.pagination .active span { color: #fff; background: var(--brand); border-color: var(--brand); }

.login-shell { width: min(430px, calc(100% - 28px)); margin: 9vh auto 40px; }
.login-brand { margin-bottom: 18px; font-size: 22px; font-weight: 700; }

@media (max-width: 760px) {
  .manage-body { display: block; }
  .shell, .public-shell { width: min(100% - 20px, 100%); margin-top: 16px; }
  .page-head, .page-body { padding-left: 18px; padding-right: 18px; }
  .page-head p { overflow-wrap: anywhere; }
  .page-head-row { flex-direction: column; gap: 14px; }
  .page-head-actions, .page-head-actions .btn { width: 100%; }
  .form-grid, .review-grid { grid-template-columns: 1fr; }
  .modal-form-row { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .section-heading { align-items: center; }
  .endpoint-row { grid-template-columns: 1fr; gap: 7px; }
  .endpoint-row dd { align-items: flex-start; }
  .endpoint-row .btn { flex: 0 0 auto; }
  .diagnostic-row { grid-template-columns: 1fr; gap: 12px; }
  .diagnostic-row form .btn { width: 100%; }
  .result-summary { grid-template-columns: 1fr; }
  .result-row { grid-template-columns: 1fr; }
  .result-row > * + * { border-top: 1px solid var(--line); border-left: 0; }
  .result-row-action { justify-content: flex-start; }
  .result-row-action .btn { width: 100%; }
  .sidebar { position: static; height: auto; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 16px; padding: 12px 10px; border-right: 0; border-bottom: 3px solid var(--brand); }
  .sidebar .brand { padding: 0; }
  .nav { min-width: 0; flex-direction: row; gap: 4px; margin-top: 0; overflow-x: auto; }
  .nav a { padding: 10px 12px; white-space: nowrap; }
  .manage-topbar { min-height: 48px; width: min(100% - 20px, 100%); }
  .toolbar { align-items: flex-start; flex-direction: column; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-item:nth-child(4n) { border-right: 1px solid var(--line); }
  .detail-item:nth-child(2n) { border-right: 0; }
}

@media (max-width: 430px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-item { border-right: 0; }
  .actions .btn { width: 100%; }
  .page-head h1 { font-size: 21px; }
}

/* Unified interface refresh */
:root {
  --ink: #18242d;
  --muted: #697983;
  --line: #dce3e7;
  --soft: #f7f9fa;
  --brand: #087f6a;
  --brand-dark: #066553;
  --accent: #b56b16;
  --canvas: #f3f6f7;
  background: var(--canvas);
}

html { min-width: 320px; background: var(--canvas); }
body { min-height: 100vh; color: var(--ink); background: var(--canvas); font-size: 14px; line-height: 1.55; }
body:not(.manage-body) { border-top: 4px solid var(--brand); }
a:hover { color: var(--brand-dark); text-decoration: none; }
code { font-family: Consolas, "SFMono-Regular", monospace; }

.shell { width: auto; max-width: 1440px; margin: 24px clamp(24px, 3vw, 48px) 48px; }
.public-shell { width: min(980px, calc(100% - 40px)); margin: 42px auto 56px; }
.page { border-color: var(--line); border-radius: 8px; box-shadow: 0 4px 18px rgba(24, 36, 45, .045); }
.page-head { padding: 26px 30px 22px; }
.page-head h1 { color: var(--ink); }
.page-head p { max-width: 760px; margin-top: 8px; line-height: 1.7; }
.page-body { padding: 28px 30px 32px; }
.page-body > h2 { margin: 28px 0 16px; color: #344550; font-size: 17px; }

.manage-body { grid-template-columns: 236px minmax(0, 1fr); background: var(--canvas); }
.sidebar { z-index: 20; padding: 24px 14px 18px; background: #18262d; border-right: 0; box-shadow: 8px 0 24px rgba(24, 38, 45, .08); }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 2px 8px 22px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.brand:hover { color: #fff; }
.brand-mark { width: 36px; height: 36px; display: inline-flex; flex: 0 0 36px; align-items: center; justify-content: center; border-radius: 8px; color: #fff; background: var(--brand); font-size: 17px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.brand-copy { min-width: 0; display: grid; gap: 1px; }
.brand-copy strong { font-size: 17px; line-height: 1.3; }
.brand-copy small { color: #aebdc4; font-size: 11px; font-weight: 400; }
.nav { gap: 5px; margin-top: 22px; }
.nav a { position: relative; display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 10px 13px; color: #c9d4d9; border-radius: 6px; font-weight: 500; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav a.active { color: #fff; background: var(--brand); box-shadow: 0 5px 14px rgba(0, 0, 0, .14); }
.nav a.active::after { content: ""; position: absolute; right: 10px; width: 5px; height: 5px; border-radius: 50%; background: #fff; opacity: .8; }
.nav-icon { position: relative; width: 17px; height: 17px; flex: 0 0 17px; opacity: .9; }
.nav-icon-dashboard { border: 1.5px solid currentColor; border-radius: 3px; }
.nav-icon-dashboard::before, .nav-icon-dashboard::after { content: ""; position: absolute; background: currentColor; opacity: .8; }
.nav-icon-dashboard::before { top: 5px; left: 0; width: 100%; height: 1px; }
.nav-icon-dashboard::after { top: 0; left: 7px; width: 1px; height: 100%; }
.nav-icon-records { border: 1.5px solid currentColor; border-radius: 3px; }
.nav-icon-records::before { content: ""; position: absolute; top: 4px; left: 4px; width: 7px; height: 1px; background: currentColor; box-shadow: 0 3px currentColor, 0 6px currentColor; }
.nav-icon-accounts::before, .nav-icon-accounts::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 1.5px solid currentColor; }
.nav-icon-accounts::before { top: 1px; width: 6px; height: 6px; border-radius: 50%; }
.nav-icon-accounts::after { bottom: 0; width: 13px; height: 7px; border-radius: 8px 8px 3px 3px; }
.sidebar-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 14px 10px 2px; color: #91a5ae; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 11px; }
.sidebar-foot-dot { width: 7px; height: 7px; border-radius: 50%; background: #48b98a; box-shadow: 0 0 0 3px rgba(72, 185, 138, .13); }
.manage-main { min-height: 100vh; }
.manage-topbar { position: sticky; top: 0; z-index: 15; min-height: 68px; justify-content: space-between; gap: 24px; width: auto; margin: 0; padding: 0 clamp(24px, 3vw, 48px); background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(24, 36, 45, .025); }
.topbar-context { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.topbar-context span::after { content: "/"; margin-left: 9px; color: #b0bbc1; }
.topbar-context strong { color: #344550; font-size: 13px; }
.account-menu { gap: 10px; }
.account-avatar { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--brand-dark); background: #e9f5f2; font-size: 12px; font-weight: 700; }
.account-name { display: grid; min-width: 72px; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.35; }
.account-name small { color: var(--muted); font-size: 10px; font-weight: 400; }
.logout-form { margin-left: 4px; padding-left: 14px; border-left: 1px solid var(--line); }
.manage-topbar .link-button { color: var(--muted); }

.toolbar { gap: 16px; margin-bottom: 19px; }
.toolbar h1 { color: var(--ink); font-size: 25px; line-height: 1.35; }
.section { padding-bottom: 28px; }
.section + .section { padding-top: 26px; }
.section h2 { margin-bottom: 17px; color: #344550; }
.form-grid { gap: 19px 24px; }
.field label { color: #344550; font-size: 13px; }
.control { padding: 9px 12px; border-color: #c8d2d8; border-radius: 6px; transition: border-color .15s ease, box-shadow .15s ease; }
.control::placeholder { color: #9aa7ae; }
.control:hover { border-color: #abb9c1; }
.control:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(8, 127, 106, .12); }
textarea.control { min-height: 96px; }
.hint, .error-text { font-size: 12px; }
.actions { margin-top: 24px; }
.btn { border-radius: 6px; transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { box-shadow: 0 3px 8px rgba(8, 127, 106, .16); }
.btn-primary:hover { color: #fff; }
.btn-secondary { color: #344550; border-color: #c8d2d8; }
.btn-secondary:hover { color: var(--brand-dark); background: #e9f5f2; border-color: #9ac9bf; }
.btn-danger { border-color: var(--danger); }
.btn-danger:hover { color: #fff; background: #951d14; }
.btn-small { border-radius: 5px; font-size: 12px; }

.alert { border: 1px solid; border-left-width: 4px; border-radius: 6px; }
.alert-error { border-color: #efb6ae; border-left-color: var(--danger); background: #fff5f3; }
.alert-success { border-color: #b8ddc7; border-left-color: var(--success); background: #f0faf4; }
.alert-warning { border-color: #ecd09e; border-left-color: var(--accent); background: #fff9ed; }
.status { gap: 6px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.status-pending { color: #89540d; background: #fff2d8; }
.status-rejected { color: #92261e; background: #fde9e6; }
.status-approved { color: #17683e; background: #e1f5e9; }

.result-summary { overflow: hidden; border-radius: 8px; box-shadow: 0 4px 16px rgba(24, 36, 45, .035); }
.metric { min-width: 0; padding: 20px; }
.metric-label { font-size: 12px; }
.metric-value { margin-top: 6px; color: var(--ink); font-size: 19px; }
.result-list { overflow: hidden; border-radius: 7px; }
.filter-form { margin-bottom: 20px; padding: 15px; background: var(--soft); border: 1px solid #e6ebee; border-radius: 7px; }
.table-wrap { border-radius: 7px; }
th, td { padding: 13px 14px; }
th { color: #52616a; background: #f4f7f8; font-size: 12px; }
tbody tr { transition: background-color .12s ease; }
tbody tr:hover { background: #f7fbfa; }
tbody tr:last-child td { border-bottom: 0; }
.copy-value { max-width: 320px; }
.detail-grid { overflow: hidden; border-radius: 7px; }
.detail-item { padding: 14px 16px; background: #fff; }
.detail-label { font-size: 11px; }
.inline-form code.control { display: flex; align-items: center; background: var(--soft); }
.empty { background: var(--soft); border-radius: 6px; }
.pagination li a, .pagination li span { min-width: 34px; border-radius: 5px; text-align: center; }

.modal-backdrop { background: rgba(24, 36, 45, .58); backdrop-filter: blur(2px); }
.modal-panel { border-radius: 8px; box-shadow: 0 20px 55px rgba(23, 33, 43, .24); }
.modal-close { width: 32px; height: 32px; border-radius: 50%; background: var(--soft); font-size: 24px; }
.modal-close:hover { background: #e9eef0; }
.review-choice { border-color: #c8d2d8; border-radius: 6px; }
.review-choice:hover { border-color: #9ac9bf; }
.review-choice:has(input:checked) { background: #e9f5f2; }

.login-shell { width: min(450px, calc(100% - 32px)); margin: 9vh auto 48px; }
.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; color: var(--ink); font-size: 20px; }
.login-brand::before { content: "安"; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: #fff; background: var(--brand); font-size: 17px; }
.login-shell .page { box-shadow: 0 12px 35px rgba(24, 36, 45, .08); }

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-item:nth-child(4n) { border-right: 1px solid var(--line); }
  .detail-item:nth-child(2n) { border-right: 0; }
}

@media (max-width: 760px) {
  .shell, .public-shell { width: min(100% - 20px, 100%); margin: 16px auto 36px; }
  .sidebar { padding: 11px 10px; border-bottom: 0; box-shadow: none; }
  .sidebar .brand { padding: 0; border-bottom: 0; }
  .brand-mark { width: 32px; height: 32px; flex-basis: 32px; font-size: 15px; }
  .brand-copy small, .sidebar-foot { display: none; }
  .nav a { min-height: 40px; padding: 9px 11px; }
  .nav a.active::after { display: none; }
  .manage-topbar { position: static; min-height: 56px; width: auto; padding: 0 12px; }
  .topbar-context { display: none; }
  .account-menu { margin-left: auto; }
  .toolbar { align-items: stretch; }
  .toolbar .btn, .filter-form .btn { width: 100%; }
  .filter-form { align-items: stretch; flex-direction: column; }
}

@media (max-width: 430px) {
  .brand-copy { display: none; }
  .sidebar { grid-template-columns: 32px minmax(0, 1fr); }
  .nav-icon { display: none; }
  .detail-item, .detail-item:nth-child(2n), .detail-item:nth-child(4n) { border-right: 0; }
  .toolbar h1 { font-size: 21px; }
  .account-avatar { display: none; }
  .page-body { padding-top: 22px; padding-bottom: 24px; }
}
