:root { color-scheme: dark; --background: #101719; --panel: #182225; --border: #314144; --text: #eef5f4; --muted: #a5b6b8; --accent: #7ce7d3; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); font: 15px/1.65 system-ui, -apple-system, "Microsoft YaHei", sans-serif; }
button, input, select { font: inherit; }
button, select, input { min-height: 46px; border: 1px solid var(--border); border-radius: 8px; }
button, select { cursor: pointer; }
button { padding: 9px 15px; color: var(--background); background: var(--accent); font-weight: 650; }
button:hover { filter: brightness(1.08); }
button:disabled, input:disabled, select:disabled { opacity: .55; cursor: default; }
input, select { width: 100%; min-width: 0; padding: 10px 12px; background: var(--background); color: var(--text); }
input::placeholder { color: var(--muted); font-size: 13px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(23px, 3vw, 30px); font-weight: 650; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
.page-header { max-width: 1240px; margin: auto; padding: 25px 18px 20px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.eyebrow { color: var(--accent); font-size: 13px; margin-bottom: 3px; }
.demo-badge, .tag { display: inline-block; padding: 3px 10px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); font-size: 12px; }
.demo-badge, .tag.mock { color: var(--accent); border-color: #3e766d; }
.workspace { max-width: 1240px; margin: 0 auto; padding: 0 14px 28px; display: grid; gap: 16px; }
.customer-panel, .detail-panel { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); padding: 20px; }
label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.identity-note { margin: 8px 0 22px; color: var(--muted); font-size: 12px; }
.search-row { display: flex; gap: 8px; }
.search-row button { flex: 0 0 auto; }
.list-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 25px 0 12px; }
.list-heading h2 { font-size: 16px; }
#customer-count { color: var(--muted); font-size: 13px; }
.status { color: var(--muted); font-size: 14px; }
.status.error { color: #ffb6ab; }
.customer-list { display: grid; gap: 9px; }
.customer-item { width: 100%; text-align: left; background: var(--background); border-color: var(--border); color: var(--text); padding: 13px; }
.customer-item:hover, .customer-item.selected { border-color: var(--accent); background: #203a37; }
.customer-item strong, .customer-item span { display: block; overflow-wrap: anywhere; }
.customer-item strong { font-size: 15px; }
.customer-item span { color: var(--muted); font-size: 12px; margin-top: 4px; font-weight: 400; }
.empty-state { color: var(--muted); padding: 40px 0; text-align: center; }
.detail-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.detail-heading h2 { overflow-wrap: anywhere; }
.basic-data { margin: 0 0 25px; display: grid; gap: 12px; }
.basic-data div { min-width: 0; }
dt { color: var(--muted); font-size: 12px; }
dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.facts-heading { margin-bottom: 12px; font-size: 17px; }
.fact-card { border-top: 1px solid var(--border); padding: 18px 0; }
.fact-value { font-size: 21px; margin: 7px 0 12px; overflow-wrap: anywhere; white-space: pre-wrap; }
.fact-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fact-dates { display: grid; gap: 3px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
details { margin-top: 12px; }
summary { color: var(--accent); min-height: 44px; padding: 10px 0; cursor: pointer; }
.history-list { padding-left: 14px; border-left: 2px solid var(--border); }
.history-item { padding: 12px 0; }
.history-item + .history-item { border-top: 1px solid var(--border); }
.history-item .fact-value { font-size: 18px; margin-top: 0; }
@media (min-width: 760px) {
  .workspace { grid-template-columns: 330px minmax(0, 1fr); align-items: start; padding-inline: 18px; }
  .customer-panel { position: sticky; top: 18px; }
  .detail-panel { padding: 26px; min-height: 480px; }
  .basic-data { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
