@font-face { font-family:"OPPO Sans LongPi"; src:url("/assets/fonts/oppo-sans-4.woff2") format("woff2"); font-display:swap; font-weight:100 900; }
:root {
  /* LongPi VI design tokens - do not replace with unapproved brand colors. */
  --ink: #0f1419;
  --muted: #5a5a5a;
  --paper: #f7f5f8;
  --ivory: #ffffff;
  --forest: #261742;
  --sage: #8154b5;
  --gold: #e8c268;
  --silver: #bec1c5;
  --violet: #422256;
  --line: rgba(38, 23, 66, 0.14);
  --shadow: 0 24px 80px rgba(38, 23, 66, 0.12);
}
* { box-sizing: border-box; }
[hidden] { display:none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x:hidden; color: var(--ink); background: var(--paper); font-family: "OPPO Sans LongPi", "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
select, textarea { font: inherit; }
.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.site-header { position:sticky; top:0; z-index:30; background:rgba(247,245,248,.92); backdrop-filter:blur(16px); border-bottom:1px solid var(--line); }
.nav { height: 84px; display: flex; align-items: center; justify-content: space-between; }
.brand { display:inline-flex; align-items:center; min-width:126px; min-height:50px; }
.brand img { display:block; width:auto; height:50px; min-height:50px; object-fit:contain; }
.brand-admin { color:var(--violet); font-size:12px; letter-spacing:.14em; margin-left:12px; }
.nav-links { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 14px; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 1px solid var(--forest); border-radius: 999px; background: transparent; cursor: pointer; }
.pill.solid { color: white; background: var(--forest); box-shadow: 0 10px 28px rgba(38,23,66,.18); }
.hero { min-height: 720px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; align-items: center; padding: 72px 0 96px; }
.eyebrow { color: var(--gold); font-size: 11px; letter-spacing: .22em; font-weight: 700; }
h1 { margin: 24px 0; white-space: pre-line; font-family: "OPPO Sans LongPi", "PingFang SC", sans-serif; font-size: clamp(52px, 6.1vw, 82px); line-height: 1.07; letter-spacing: -.045em; font-weight: 500; }
.lede { max-width: 610px; color: var(--muted); font-size: 18px; line-height:var(--leading-body); }
.actions { display: flex; gap: 14px; margin-top: 34px; }
.hero-questionnaire-cta { display:inline-flex; flex-direction:column; align-items:center; gap:10px; margin-top:34px; }
.hero-questionnaire-cta p { margin:0; color:var(--muted); font-size:13px; }
.hero-card { position: relative; min-height: 560px; border-radius: 34px; overflow: hidden; background: linear-gradient(155deg,#422256,#261742 62%,#0f1419); box-shadow: var(--shadow); color: white; padding: 34px; }
.hero-card:before { content:""; position:absolute; width:360px; height:360px; border-radius:50%; right:-130px; top:-90px; background: radial-gradient(circle,rgba(204,181,124,.48),transparent 68%); }
.orb { width: 240px; height: 240px; border-radius: 50%; margin: 44px auto 36px; background: radial-gradient(circle at 40% 34%,#fff 0 8%,#e8c268 22%,#8154b5 47%,#261742 67%); box-shadow: inset -22px -26px 50px rgba(0,0,0,.28),0 0 80px rgba(232,194,104,.24); position:relative; }
.orb:after { content:"RECOVERY"; position:absolute; inset:0; display:grid; place-items:center; padding-top:108px; color:rgba(255,255,255,.82); letter-spacing:.2em; font-size:9px; }
.score { text-align:center; font-family:Georgia,serif; font-size:54px; line-height:1; }
.score small { font-family:inherit; font-size:20px; color:var(--silver); }
.score-note { text-align:center; color:#dbdbdb; font-size:13px; line-height:var(--leading-body); margin:14px auto 0; max-width:340px; }
.mini-metrics { position:absolute; left:26px; right:26px; bottom:24px; display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.mini { padding:15px; border:1px solid rgba(255,255,255,.14); border-radius:16px; background:rgba(255,255,255,.055); backdrop-filter: blur(10px); }
.mini b { display:block; font-family:Georgia,serif; font-size:20px; margin-top:6px; }
.mini span { color:var(--silver); font-size:10px; }
.section { padding: 100px 0; }
.section-head { display:flex; justify-content:space-between; align-items:end; gap:30px; margin-bottom:44px; }
.section h2 { margin:0; font-family:"OPPO Sans LongPi","PingFang SC",sans-serif; font-size:44px; font-weight:500; letter-spacing:-.035em; }
.section-head p { max-width:490px; color:var(--muted); line-height:var(--leading-body); margin:0; }
.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.feature { min-height:260px; padding:28px; border:1px solid var(--line); border-radius:22px; background:rgba(255,255,255,.42); }
.feature-index { color:var(--gold); font-family:Georgia,serif; font-size:13px; }
.feature h3 { font-family:"OPPO Sans LongPi","PingFang SC",sans-serif; font-size:25px; font-weight:500; margin:42px 0 14px; }
.feature p { color:var(--muted); line-height:var(--leading-body); margin:0; font-size:14px; }
.dark { background:var(--forest); color:white; }
.dark .section-head p { color:#dbdbdb; }
.story-section { padding-bottom:120px; }
.story-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.story-card { min-height:320px; padding:30px; border-radius:24px; border:1px solid var(--line); background:#fff; display:flex; flex-direction:column; }
.story-card span { color:var(--gold); font:500 14px Georgia,serif; }
.story-card h3,.intervention-grid h3 { font:500 26px "OPPO Sans LongPi","PingFang SC",sans-serif; margin:48px 0 12px; }
.story-card p,.intervention-grid p { color:var(--muted); line-height:var(--leading-body); font-size:14px; margin:0; }
.story-card small { color:var(--sage); font-size:12px; margin-top:auto; padding-top:26px; }
.story-card.data { background:linear-gradient(150deg,#eee9f2,#fff); }
.data-lines { display:grid; gap:9px; margin-top:auto; padding-top:30px; }
.data-lines i { display:block; height:8px; border-radius:99px; background:linear-gradient(90deg,var(--sage),rgba(129,84,181,.12)); }
.data-lines i:nth-child(2){width:74%;}.data-lines i:nth-child(3){width:46%;}
.action-tags { display:flex; gap:7px; margin-top:auto; padding-top:30px; }
.action-tags b { padding:7px 10px; border:1px solid var(--line); border-radius:99px; color:var(--forest); font-size:11px; font-weight:500; }
.data-band { background:#eae5ed; padding:120px 0; }
.data-band-inner { display:grid; grid-template-columns:1fr .85fr; gap:90px; align-items:center; }
.data-band h2,.intervention-section h2,.ai-section h2,.final-cta h2 { margin:18px 0; font:500 clamp(38px,4.3vw,58px)/1.18 "OPPO Sans LongPi","PingFang SC",sans-serif; letter-spacing:-.04em; }
.data-band-copy>p,.ai-section p,.final-cta p { color:var(--muted); line-height:var(--leading-body); max-width:520px; }
.quiet { font-size:12px; }
.timeline-preview { padding:30px; border-radius:26px; background:#fff; box-shadow:var(--shadow); }
.timeline-title { display:flex; justify-content:space-between; align-items:center; padding-bottom:22px; border-bottom:1px solid var(--line); color:var(--muted); font-size:10px; letter-spacing:.15em; }
.timeline-title b { color:var(--sage); font-size:11px; letter-spacing:0; }
.preview-row { display:grid; grid-template-columns:52px 16px 1fr; gap:12px; padding:22px 0 0; }
.preview-row time { color:var(--muted); font-size:12px; }.preview-row i { width:9px; height:9px; border-radius:50%; background:var(--gold); margin-top:4px; position:relative; }.preview-row:not(:last-child) i:after { content:""; position:absolute; height:48px; width:1px; top:9px; left:4px; background:var(--line); }.preview-row b,.preview-row span { display:block; }.preview-row b { font-size:14px; }.preview-row span { margin-top:5px; color:var(--muted); font-size:12px; }
.intervention-section { padding-top:120px; padding-bottom:120px; }.intervention-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }.intervention-grid article { min-height:250px; padding:24px; border-top:1px solid var(--forest); background:rgba(255,255,255,.45); }.intervention-icon { color:var(--gold); font:500 13px Georgia,serif; }.intervention-grid h3 { font-size:21px; margin-top:42px; }
.ai-section { background:var(--forest); color:white; padding:120px 0; }.ai-section-inner { display:grid; grid-template-columns:1.04fr .96fr; gap:100px; align-items:center; }.ai-section .eyebrow { color:var(--gold); }.ai-section p { color:#ddd5e3; }.text-link { display:inline-flex; gap:14px; margin-top:22px; color:var(--gold); font-size:14px; }.text-link span { font-size:18px; }.question-preview { padding:30px; border:1px solid rgba(255,255,255,.16); border-radius:24px; background:rgba(255,255,255,.06); }.question-label,.answer-preview span { color:var(--gold); font-size:10px; letter-spacing:.16em; }.question-preview>p { color:white; font:500 24px/1.5 "OPPO Sans LongPi","PingFang SC",sans-serif; margin:14px 0 30px; }.answer-preview { padding:20px; border-radius:16px; background:rgba(255,255,255,.08); }.answer-preview p { font-size:13px; margin:8px 0 0; }
.final-cta { padding:130px 0; display:flex; justify-content:space-between; gap:50px; align-items:center; }.final-cta .hero-questionnaire-cta { flex:none; margin:0; }.final-cta .pill { min-width:180px; }
.site-footer { border-top:1px solid var(--line); background:#fff; }.footer-inner { min-height:120px; display:flex; align-items:center; justify-content:space-between; gap:28px; }.footer-inner .brand img { height:38px; }.footer-inner>div { display:flex; align-items:center; gap:18px; color:var(--muted); font-size:12px; }.icp-record { padding-left:18px; border-left:1px solid var(--line); }
.dashboard { min-height:100vh; background:#f1eef3; }
.dash-nav { display:flex; justify-content:space-between; align-items:center; padding:8px 28px; background:#fff; border-bottom:1px solid var(--line); }
.dash-nav .brand img { height:40px; min-height:40px; }
.dash-nav .actions { margin-top:0; }
.dash-layout { display:grid; grid-template-columns:230px 1fr; min-height:calc(100vh - 77px); }
.sidebar { padding:28px 20px; border-right:1px solid var(--line); background:#fff; }
.side-label { color:#8b8790; font-size:10px; letter-spacing:.16em; margin:24px 12px 12px; }
.side-link { display:flex; gap:11px; align-items:center; padding:12px; border-radius:12px; color:var(--muted); font-size:14px; }
.side-link.active { color:white; background:var(--forest); }
.dash-main { padding:42px; max-width:1320px; width:100%; margin:auto; }
.welcome { display:flex; justify-content:space-between; align-items:end; margin-bottom:30px; }
.health-cover { margin:0 0 24px; padding:32px 36px 26px; border:1px solid var(--line); border-radius:26px; background:var(--ivory); box-shadow:0 14px 42px rgba(38,23,66,.06); }
.cover-top { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; }
.cover-top h1 { margin:8px 0 0; font-size:clamp(30px,3vw,42px); }
.cover-body { margin-top:30px; }
.cover-plan { margin-top:0; }
.cover-plan h2 { margin:0 0 18px; font-size:28px; font-weight:500; }
.cover-action-head { display:flex; justify-content:space-between; align-items:end; gap:24px; margin-bottom:22px; }
.cover-action-head h2 { margin:8px 0 4px; }
.cover-action-head p { margin:0; color:var(--muted); font-size:13px; }
.cover-action-list { margin-top:0; }
.cover-action-icon svg { width:64px; height:64px; margin:0; fill:none; stroke:var(--forest); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.overview-metrics-title { margin-top:34px; padding-top:26px; border-top:1px solid var(--line); }
.ordinal-scale { margin:20px 0 12px; }
.ordinal-track { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:5px; }
.ordinal-track span { height:15px; border-radius:4px; background:var(--silver); }
.ordinal-track span.selected { background:var(--sage); box-shadow:0 0 0 2px var(--forest) inset; }
.ordinal-labels { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:8px; color:var(--muted); font-size:12px; }
.ordinal-labels b { color:var(--forest); font-size:13px; }
.ordinal-scale p { margin:9px 0 0; color:var(--muted); font-size:11px; line-height:1.5; }
.cover-meta { margin-top:24px; padding-top:16px; border-top:1px solid var(--line); color:var(--muted); font-size:12px; }
.reference-scale { margin:20px 0 12px; }
.reference-track { position:relative; height:12px; border-radius:99px; background:var(--silver); }
.reference-normal { position:absolute; top:0; bottom:0; border-radius:99px; background:var(--sage); }
.reference-marker { position:absolute; top:-8px; width:3px; height:28px; border-radius:3px; background:var(--forest); transform:translateX(-50%); box-shadow:0 0 0 3px var(--ivory); }
.reference-labels { display:flex; justify-content:space-between; gap:12px; margin-top:12px; color:var(--muted); font-size:12px; }
.reference-labels span:first-child { color:var(--forest); font-weight:600; }
.welcome h1 { font-size:38px; margin:0 0 8px; }
.welcome p { margin:0; color:var(--muted); }
.status-grid { display:grid; grid-template-columns:1.35fr .65fr; gap:18px; }
.panel { background:#fff; border:1px solid rgba(38,23,66,.09); border-radius:22px; padding:26px; box-shadow:0 8px 30px rgba(38,23,66,.045); }
#adminLogin h1 { margin:18px 0 12px; font-size:clamp(28px,3vw,38px); line-height:1.2; letter-spacing:-.02em; }
.panel-kicker { color:var(--gold); font-size:10px; letter-spacing:.16em; font-weight:700; }
.panel h3 { font-family:"OPPO Sans LongPi","PingFang SC",sans-serif; font-weight:500; font-size:24px; margin:12px 0; }
.action-list { display:grid; gap:10px; margin-top:22px; }
.action-item { display:grid; grid-template-columns:68px 1fr auto; gap:16px; align-items:center; padding:14px 0; border-top:1px solid var(--line); }
.time-tag { color:var(--forest); font-size:12px; }
.action-copy b { display:block; font-size:14px; margin-bottom:4px; }
.action-copy span { color:var(--muted); font-size:12px; }
.arrow { color:var(--gold); }
.recovery-card { background:linear-gradient(160deg,#422256,#261742); color:white; }
.recovery-number { font-family:Georgia,serif; font-size:72px; margin:26px 0 8px; }
.recovery-number small { font-size:24px; color:var(--silver); }
.bar { height:7px; background:rgba(255,255,255,.12); border-radius:8px; overflow:hidden; }
.bar i { display:block; height:100%; width:82%; background:linear-gradient(90deg,var(--sage),var(--gold)); border-radius:8px; }
.metric-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:18px; }
.metric .value { font-family:Georgia,serif; font-size:34px; margin:18px 0 10px; }
.metric .trend { color:var(--sage); font-size:12px; }
.timeline { display:grid; gap:0; margin-top:20px; }
.timeline-row { display:grid; grid-template-columns:110px 14px 1fr; gap:14px; min-height:74px; }
.timeline-date { color:var(--muted); font-size:12px; padding-top:2px; }
.timeline-mark { position:relative; width:9px; height:9px; border-radius:50%; background:var(--gold); }
.timeline-mark:after { content:""; position:absolute; width:1px; height:66px; background:var(--line); left:4px; top:9px; }
.timeline-row:last-child .timeline-mark:after { display:none; }
.timeline-copy b { display:block; font-size:14px; margin-bottom:5px; }
.timeline-copy span { color:var(--muted); font-size:12px; line-height:var(--leading-body); }
.upload-card { border:1px dashed rgba(38,23,66,.28); background:#f7f5f8; text-align:center; padding:36px; }
.admin-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.admin-form { display:grid; gap:var(--space-form-field); margin-top:20px; }
.admin-form > button { justify-self:start; width:auto; max-width:100%; }
.client-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.client-delete { min-height:38px; padding:0 16px; font-size:12px; color:var(--muted); border-color:var(--line); }
.uploaded-reports { margin-top:18px; }
.uploaded-reports > summary { cursor:pointer; color:var(--ink); font-size:15px; }
.uploaded-reports > summary .admin-status { margin-left:8px; }
.uploaded-reports #planningAccountInfo { margin-top:18px; }
.admin-form label { display:grid; gap:var(--space-label-control); color:var(--muted); font-size:12px; }
.admin-form input, .admin-form select, .admin-form textarea { width:100%; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--ink); padding:12px 13px; outline:none; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(232,194,104,.16); }
.admin-form textarea { min-height:100px; resize:vertical; }
.admin-form .inline { grid-template-columns:1fr 1fr; gap:12px; }
.admin-status { min-height:20px; color:var(--muted); font-size:12px; }
.admin-status.success { color:#34715e; }
.admin-status.error { color:#9a4039; }
.record-list { display:grid; gap:10px; margin-top:18px; }
.record { padding:15px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.record b { display:block; font-size:14px; margin-bottom:5px; }
.record span { color:var(--muted); font-size:12px; }
.client-record { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:18px; }
.confirm-dialog { width:min(480px,calc(100% - 32px)); max-width:none; border:1px solid var(--line); border-radius:24px; padding:32px; box-shadow:var(--shadow); }
.confirm-dialog::backdrop { background:rgba(15,20,25,.48); backdrop-filter:blur(3px); }
.confirm-dialog h2 { margin:12px 0; font-size:27px; font-weight:500; }
.confirm-dialog-copy { color:var(--muted); line-height:var(--leading-body); margin:0 0 20px; }
.confirm-report { display:grid; gap:5px; padding:16px; border:1px solid var(--line); border-radius:14px; background:var(--paper); overflow-wrap:anywhere; }
.confirm-report span { color:var(--muted); font-size:13px; }
.confirm-dialog .actions { justify-content:flex-end; margin-top:18px; }
.confirm-dialog .pill:disabled { opacity:.5; cursor:wait; }
.client-open { min-height:38px; padding:0 16px; font-size:12px; white-space:nowrap; justify-self:end; }
.preview-control { display:grid; justify-items:center; gap:6px; }
.preview-control .admin-status { text-align:center; max-width:220px; }
.pill.disabled,.pill[aria-disabled="true"] { opacity:.42; cursor:not-allowed; pointer-events:none; box-shadow:none; }
.health-section { margin:24px 0; scroll-margin-top:110px; }
.dash-nav { position:sticky; top:0; z-index:30; }
.cover-plan .action-item { display:grid; grid-template-columns:96px minmax(0,1fr); align-items:center; gap:24px; margin:14px 0; padding:24px 26px; border:1px solid rgba(232,194,104,.75); border-left:5px solid var(--gold); border-radius:18px; background:linear-gradient(135deg,rgba(232,194,104,.16),rgba(255,255,255,.9)); box-shadow:0 12px 34px rgba(38,23,66,.07); }
.cover-plan .action-copy { display:grid; gap:8px; }
.cover-plan .action-copy small { color:var(--muted); font-size:12px; }
.cover-plan .action-copy b { color:var(--ink); font-size:22px; line-height:1.45; }
.cover-plan .action-copy span { color:#4d4852; font-size:17px; line-height:var(--leading-body); }
.period-tabs .pill[aria-pressed="true"] { background:var(--forest); color:var(--ivory); }
.dash-main,.metric-grid>*,.health-section { min-width:0; }
.health-section h2,.report-shell h2 { font-family:"OPPO Sans LongPi","PingFang SC",sans-serif; font-size:28px; font-weight:500; }
.section-toolbar,.period-tabs { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-bottom:20px; }
.section-toolbar h2 { margin-right:auto; }.section-toolbar input { max-width:280px; }
.subtle { color:var(--muted); font-size:14px; line-height:var(--leading-body); }
.notice { padding:18px 24px; border:1px solid var(--line); border-radius:16px; background:var(--ivory); margin:14px 0; line-height:var(--leading-body); }
.notice .pill { margin-left:16px; }.prewrap { white-space:pre-wrap; overflow-wrap:anywhere; }
.sparkline { width:100%; height:80px; color:var(--sage); }
.report-link { display:block; margin-bottom:12px; }.record { margin-bottom:12px; overflow-wrap:anywhere; }
.metric .value { overflow-wrap:anywhere; font-size:28px; }.metric h3 { font-size:20px; }
.metric-explanation { margin-top:18px; padding:16px 18px; border-radius:14px; background:var(--paper); }
.metric-explanation b { display:block; margin-bottom:6px; color:var(--ink); font-size:14px; }
.metric-explanation p { margin:0; color:var(--muted); font-size:14px; line-height:var(--leading-body); }
.metric-note { margin-top:14px; padding:14px 16px; border-left:3px solid var(--forest); background:rgba(38,23,66,.04); border-radius:10px; }
.metric-note b { display:block; margin-bottom:5px; font-size:12px; color:var(--forest); }
.metric-note p { margin:0; color:var(--muted); font-size:14px; line-height:var(--leading-body); }
.metric-explanation span { display:block; margin-top:10px; color:#8b8790; font-size:11px; }
.metric-source { display:inline-block; margin-top:14px; color:var(--forest); font-size:12px; line-height:1.5; text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
.chat-user { background:var(--forest); color:var(--ivory); padding:16px 22px; border-radius:18px 18px 4px 18px; margin:20px 0 12px 8%; }
.chat-answer { background:var(--paper); padding:20px; border-radius:18px; line-height:var(--leading-body); }
.chat-pending { color:var(--muted); }
.chat-error { color:#9a4039; }
.fact-proposal { text-align:left; margin:8px 0; }.community-qr { width:180px; max-width:100%; }
.report-shell { padding:48px 0 100px; }.report-shell h1 { font-size:42px; line-height:1.3; }
.editor-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }.editor-grid .wide { grid-column:1/-1; }
#editor label,#factForm label { display:grid; gap:8px; margin:16px 0; }
.report-shell input,.report-shell textarea,#factForm textarea,.section-toolbar input,.section-toolbar select,#clientSearch { width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:var(--ivory); color:var(--ink); }
button:disabled { opacity:.5; cursor:wait; }#conversation { max-height:720px; overflow:auto; }#products { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr)); gap:16px; margin:18px 0; }
.service-catalog { margin-top:28px; }.service-catalog-head h3 { margin:0 0 8px; }.service-catalog-head p { margin:0; }
#products .record { display:flex; flex-direction:column; align-items:flex-start; gap:12px; min-width:0; margin:0; padding:20px; }
#products .record b { margin:0; line-height:var(--leading-body); }#products .record p { margin:0; font-size:13px; color:var(--muted); }#products .product-link { margin-top:auto; }
.chat-progress { margin:12px 0; padding:12px 14px; border:1px solid var(--line); border-radius:14px; color:var(--muted); font-size:12px; }
.chat-progress summary { cursor:pointer; }.chat-progress ol { display:grid; gap:8px; padding-left:18px; }.chat-progress li { line-height:var(--leading-body); overflow-wrap:anywhere; }
@media(max-width:700px){.editor-grid{grid-template-columns:1fr 1fr}.report-shell h1{font-size:30px}.dash-nav .actions{flex-wrap:wrap;justify-content:flex-end}.dash-nav{height:auto;min-height:84px}.period-tabs .pill{padding:0 14px}.health-section h2{font-size:25px}.metric-grid{grid-template-columns:1fr}.section-toolbar input{max-width:none}.report-shell .actions{flex-wrap:wrap}.chat-user{margin-left:0}}
@media(max-width:900px){.cover-plan .action-item{grid-template-columns:72px minmax(0,1fr);gap:16px}}
@media(max-width:700px){.health-cover{padding:24px 20px}.cover-top,.cover-body{display:block}.cover-body{margin-top:28px}.cover-action-head{display:block}.cover-action-head .pill{margin-top:18px}.reference-labels{font-size:11px}}

/* Dashboard workspace: focused top navigation and an always-available AI assistant. */
.dash-layout { display:block; min-height:calc(100vh - 77px); }
.dash-main { max-width:1440px; }
.dashboard-tabs { position:sticky; top:0; z-index:20; display:flex; gap:32px; overflow-x:auto; margin-top:24px; padding:0 28px; border-bottom:1px solid var(--line); border-radius:26px 26px 0 0; background:rgba(255,255,255,.96); backdrop-filter:blur(16px); }
.dashboard-tabs button { position:relative; flex:0 0 auto; min-height:76px; padding:0 4px; border:0; color:var(--muted); background:transparent; font:500 17px "OPPO Sans LongPi","PingFang SC",sans-serif; cursor:pointer; }
.dashboard-tabs button::after { position:absolute; right:0; bottom:0; left:0; height:3px; border-radius:3px 3px 0 0; background:transparent; content:""; }
.dashboard-tabs button.active { color:var(--ink); }
.dashboard-tabs button.active::after { background:var(--gold); }
#sections { min-height:520px; padding:0 28px 48px; border-radius:0 0 26px 26px; background:#fff; }
#sections>.panel { padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.health-section { display:none; margin-top:0; }
.health-section.active-tab { display:block; }
#metrics .metric-grid { grid-template-columns:minmax(0,1fr); }
#metrics .section-toolbar select { flex:0 0 auto; width:148px; min-width:0; }
.metrics-fold { margin-top:20px; padding:18px 20px; border:1px solid var(--line); border-radius:20px; background:rgba(255,255,255,.55); }
.metrics-fold summary { cursor:pointer; font-weight:600; }
.metric-attention { border-color:rgba(213,168,60,.55); }
.ai-launcher { position:fixed; right:28px; bottom:26px; z-index:80; min-height:52px; padding:0 24px; color:#fff; background:var(--ink); border:1px solid var(--ink); border-radius:999px; box-shadow:0 18px 45px rgba(31,15,53,.24); font-weight:600; cursor:pointer; }
.ai-drawer { position:fixed; right:28px; bottom:90px; z-index:79; display:flex; flex-direction:column; width:min(430px,calc(100vw - 32px)); height:min(650px,calc(100vh - 120px)); overflow:hidden; padding:24px; border:1px solid var(--line); border-radius:26px; background:#fff; box-shadow:0 28px 80px rgba(31,15,53,.26); }
.ai-drawer[hidden] { display:none; }
.ai-drawer-head { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom:18px; }
.ai-drawer-head h2 { margin:0; font:500 24px "OPPO Sans LongPi","PingFang SC",sans-serif; }
.ai-drawer #conversation { flex:1; min-height:80px; overflow-y:auto; overscroll-behavior:contain; padding:4px 2px 18px; }
.ai-box { display:flex; align-items:flex-end; gap:8px; flex-shrink:0; padding:8px; border:1.5px solid var(--line); border-radius:18px; background:#fff; box-shadow:0 8px 30px -16px rgba(38,23,66,.3); }
.ai-box:focus-within { border-color:var(--gold); box-shadow:0 0 0 4px rgba(232,194,104,.16),0 8px 30px -16px rgba(38,23,66,.3); }
.ai-box textarea { flex:1; min-width:0; max-height:120px; resize:none; overflow-y:auto; border:0; outline:0; padding:9px 8px; background:transparent; color:var(--ink); font:15px/1.55 "OPPO Sans LongPi","PingFang SC",sans-serif; }
.ai-box .pill { flex:0 0 auto; min-height:42px; padding:0 18px; }
.proposal-operation { margin:14px 0; padding:14px 0; border-top:1px solid var(--line); }.proposal-operation ul { display:grid; gap:8px; margin:10px 0 0; padding:0; list-style:none; }.proposal-operation li { display:grid; gap:3px; }.proposal-operation li span,.proposal-operation p { color:var(--muted); overflow-wrap:anywhere; }
#aiStatus { min-height:18px; margin:6px 4px 0; color:var(--muted); font-size:12px; }
.job-error { display:flex; align-items:center; justify-content:space-between; gap:12px; color:#8b2635; }
.welcome-actions { display:flex; align-items:center; justify-content:flex-end; gap:12px; }
.admin-mode-badge { display:inline-flex; align-items:center; min-height:24px; padding-left:10px; border-left:2px solid var(--gold); color:var(--muted); font-size:12px; letter-spacing:.08em; white-space:nowrap; }
.overview-metrics-title { margin-top:34px; font:500 22px "OPPO Sans LongPi","PingFang SC",sans-serif; }
.overview-metrics .metric { padding:20px; box-shadow:none; }
.severity-section { margin:22px 0 34px; }
.severity-section>header { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:14px; padding-left:14px; border-left:3px solid var(--gold); }
.severity-section>header h3 { margin:0 0 4px; font:600 22px "OPPO Sans LongPi","PingFang SC",sans-serif; }
.severity-section>header p { margin:0; color:var(--muted); font-size:13px; }
.severity-section>header>span { flex:none; color:var(--muted); font-size:13px; }
.severity-focus>header { border-left-color:var(--sage); }
.severity-optimize>header { border-left-color:var(--silver); }
.severity-optimize { padding:18px 20px; border:1px solid var(--line); border-radius:20px; background:rgba(255,255,255,.5); }
.severity-optimize>summary { display:flex; justify-content:space-between; gap:18px; cursor:pointer; list-style:none; }
.severity-optimize>summary::-webkit-details-marker { display:none; }
.severity-optimize>summary b { font-size:18px; }
.severity-optimize>summary span,.severity-optimize>p { color:var(--muted); font-size:13px; }
.trend-chart { margin:16px 0; padding:12px; border-radius:14px; color:var(--violet); background:var(--paper); }
.trend-chart svg { display:block; width:100%; height:74px; overflow:visible; }
.trend-chart line { stroke:var(--line); stroke-width:2; stroke-dasharray:5 5; }
.trend-chart circle { fill:currentColor; }
.trend-chart>div { display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--muted); font-size:10px; }
.trend-chart b { color:var(--ink); font-size:12px; }
@media(max-width:700px){.dashboard-tabs{gap:24px;margin:16px -16px 0;padding:0 20px;border-radius:0}.dashboard-tabs button{min-height:58px;font-size:15px}#sections{margin:0 -16px;padding:0 16px 40px;border-radius:0}#overview .action-item{padding:20px 18px}#overview .action-copy b{font-size:19px}#overview .action-copy span{font-size:15px}.ai-launcher{right:16px;bottom:16px}.ai-drawer{right:16px;bottom:78px;padding:18px}.dash-main{padding-top:16px}}
.record-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.record-actions .pill { min-height:38px; padding:0 16px; font-size:12px; }
@media (max-width:560px){.client-record{gap:10px}.client-open{padding:0 12px;font-size:11px;min-height:34px}}
[data-segment].active { border-color:var(--gold)!important; background:#f2edf7!important; }
.muted { color:var(--muted); font-size:13px; }
.questionnaire-shell { max-width:860px; padding:64px 0 100px; }
.question-intro h1 { font-size:50px; }
.notice { padding:16px 18px; border-left:2px solid var(--gold); background:rgba(255,255,255,.45); color:var(--muted); line-height:var(--leading-body); font-size:13px; }
.progress { height:4px; margin-top:30px; background:var(--line); border-radius:5px; overflow:hidden; }
.progress i { display:block; width:8%; height:100%; background:var(--gold); transition:width .3s; }
#progressText { display:block; margin-top:8px; color:var(--muted); font-size:11px; text-align:right; }
#questionnaireStage { margin-top:42px; }
.question-intro[hidden]+form #questionnaireStage { margin-top:0; }
.birth-date-preview { margin:10px 0 0; }
#questionnaireStage h2 { font:500 34px "OPPO Sans LongPi","PingFang SC",sans-serif; }
.question-group-title { margin:28px 0 16px; color:var(--muted); font-size:16px; font-weight:500; }
fieldset { border:0; padding:24px 0; margin:0; border-bottom:1px solid var(--line); }
legend { font:500 18px "OPPO Sans LongPi","PingFang SC",sans-serif; margin-bottom:14px; }
fieldset>input, fieldset>textarea { width:100%; border:1px solid var(--line); background:var(--ivory); border-radius:14px; padding:14px; }
.field-help { color:var(--muted); font-size:12px; margin:var(--space-control-help) 0; }
.choice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.choice input { position:absolute; opacity:0; }
.choice span { display:block; padding:13px 15px; border:1px solid var(--line); border-radius:13px; background:rgba(255,255,255,.45); cursor:pointer; }
.choice input:checked+span { border-color:var(--gold); background:#f2edf7; box-shadow:0 0 0 2px rgba(232,194,104,.16); }
.question-actions { display:flex; justify-content:flex-end; gap:12px; margin-top:28px; }
.empty-state { color:var(--muted); text-align:center; padding:28px; }
.ai-box { display:grid; grid-template-columns:1fr auto; gap:10px; margin-top:16px; }
.ai-box input { border:1px solid var(--line); border-radius:999px; padding:0 18px; background:white; }
.ai-answer { margin-top:14px; padding:14px; border-radius:14px; background:#f2edf7; color:var(--forest); line-height:var(--leading-body); font-size:13px; }
[data-reveal] { animation: rise .7s both; animation-delay:var(--delay); }
@keyframes rise { from { opacity:0; transform:translateY(14px); } }
@media (max-width: 900px) {
  .shell { width:min(100% - 28px,680px); }
  .nav-links a:not(.pill) { display:none; }
  .hero { grid-template-columns:1fr; padding-top:48px; }
  .hero-card { min-height:520px; }
  .feature-grid { grid-template-columns:1fr; }
  .story-grid { grid-template-columns:1fr; }.story-card { min-height:230px; }.data-band { padding:78px 0; }.data-band-inner,.ai-section-inner { grid-template-columns:1fr; gap:42px; }.intervention-grid { grid-template-columns:1fr 1fr; }.intervention-section,.ai-section { padding-top:78px; padding-bottom:78px; }.final-cta { padding:86px 0; align-items:flex-start; flex-direction:column; }
  .section-head { display:block; }
  .section-head p { margin-top:18px; }
  .dash-layout { grid-template-columns:1fr; }
  .sidebar { display:flex; gap:8px; overflow-x:auto; padding:12px 16px; border-right:0; border-bottom:1px solid var(--line); }
  .sidebar .side-label { display:none; }
  .sidebar .side-link { flex:0 0 auto; margin:0; }
  .dash-main { padding:24px 16px; }
  .status-grid, .metric-grid { grid-template-columns:1fr; }
  .admin-grid { grid-template-columns:1fr; }
  .choice-grid { grid-template-columns:1fr; }
  .welcome { display:block; }
  .welcome .pill { margin-top:16px; }
}
@media (max-width: 560px) {
  .site-header { position:sticky; }.nav { height:72px; }.brand img { height:39px; }.nav-links { gap:10px; }.nav-links .pill { min-height:38px; padding:0 14px; font-size:12px; }.hero { min-height:0; padding-bottom:64px; }.hero-questionnaire-cta { align-items:stretch; width:100%; }.hero-questionnaire-cta .pill { width:100%; }.section,.story-section { padding-top:72px; padding-bottom:72px; }.section h2,.data-band h2,.intervention-section h2,.ai-section h2,.final-cta h2 { font-size:36px; }.section-head { margin-bottom:30px; }.intervention-grid { grid-template-columns:1fr; }.intervention-grid article { min-height:180px; }.intervention-grid h3 { margin-top:26px; }.timeline-preview,.question-preview { padding:22px; }.footer-inner { min-height:144px; align-items:flex-start; justify-content:center; flex-direction:column; padding:24px 0; }.footer-inner>div { align-items:flex-start; flex-direction:column; gap:8px; }.icp-record { border-left:0; padding-left:0; }
  .dash-nav { padding:7px 16px; gap:10px; }.dash-nav .brand { min-width:0; }.dash-nav .brand img { height:34px; min-height:34px; }.dash-nav .actions { margin-top:0; gap:7px; }.dash-nav .pill { min-height:38px; padding:0 12px; font-size:12px; }.ai-box { grid-template-columns:1fr; }.ai-box input { min-height:46px; }.questionnaire-shell { padding-top:38px; }.question-intro h1 { font-size:40px; }.question-actions { justify-content:stretch; }.question-actions .pill { flex:1; }
  h1 { font-size:44px; }
  .actions { flex-direction:column; }
  .hero-card { padding:24px 18px; }
  .orb { width:210px; height:210px; }
  .mini-metrics { grid-template-columns:1fr 1fr 1fr; left:14px; right:14px; }
  .mini { padding:12px 8px; }
  .action-item { grid-template-columns:55px 1fr auto; }
}

.longevity-dialog{width:min(900px,calc(100% - 32px));max-height:85vh;overflow:auto;border:0;border-radius:var(--radius,20px)}
.longevity-dialog::backdrop{background:rgba(38,23,66,.35)}
.longevity-admin{margin-top:18px}.analysis-review-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:55vh;overflow:auto;font-family:inherit;font-size:14px}.longevity-admin input[type=checkbox],.longevity-dialog input[type=checkbox]{width:auto}

.data-protection { margin-bottom:28px; }.data-protection b { color:var(--ink); }.data-protection p { margin:8px 0; }.question-other { display:block; margin-top:14px; color:var(--muted); font-size:14px; }.question-other[hidden] { display:none; }.question-other input { display:block; width:100%; margin-top:8px; border:1px solid var(--line); border-radius:14px; background:var(--ivory); padding:14px; }
.result-service-entry { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
.twin-body { position:relative; }

.chat-files { display:grid; gap:14px; margin:12px 0 20px; }.chat-file { border:1px solid var(--line); border-radius:14px; padding:14px; overflow:hidden; }.chat-file>b { display:block; font-size:13px; overflow-wrap:anywhere; margin-bottom:10px; }.chat-file-image { display:block; max-width:100%; height:auto; margin-bottom:12px; }.chat-file-chart { display:block; width:100%; min-height:300px; border:0; background:var(--white); margin-bottom:12px; }.chat-file .pill { min-height:36px; padding:0 16px; font-size:12px; }
.profile-demographics { display:flex; flex-wrap:wrap; gap:10px; margin:18px 0 20px; }
.profile-stat { display:grid; gap:5px; min-width:108px; padding:12px 18px; border:1px solid var(--line); border-radius:14px; background:var(--ivory); }
.profile-stat span { font-size:12px; color:var(--muted); }.profile-stat b { font-size:20px; font-weight:600; }
.health-info-section { margin-top:28px; }.health-info-section > header { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:14px; }.health-info-section > header h3 { margin:0; }.health-info-section > header span { font-size:12px; color:var(--muted); }
.health-info-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.health-info-card { min-width:0; padding:20px; border:1px solid var(--line); border-radius:18px; background:var(--ivory); overflow-wrap:anywhere; }
.health-info-card h4 { margin:0 0 14px; font-size:17px; }.health-info-card dl { margin:0; display:grid; gap:12px; }.health-info-card dl > div { display:grid; gap:4px; }.health-info-card dt { color:var(--muted); font-size:12px; }.health-info-card dd { margin:0; font-size:14px; line-height:var(--leading-body); }.health-info-card p { margin:0; line-height:var(--leading-body); font-size:14px; color:var(--muted); }
.health-info-missing { background:var(--paper); border-style:dashed; }.health-info-status { display:inline-flex; margin-bottom:10px; padding:4px 9px; border-radius:99px; font-size:11px; color:var(--violet); background:rgba(129,84,181,.08); }
.analysis-method-notes { margin-top:24px; color:var(--muted); font-size:12px; line-height:var(--leading-body); }.analysis-method-notes h3 { font-size:14px; }
.dashboard-tabs button[aria-disabled="true"],.pill[data-advanced-locked="true"],.ai-launcher[data-advanced-locked="true"] { opacity:.38; cursor:not-allowed; pointer-events:auto; }
.feature-toast,.feature-tooltip { position:fixed; z-index:100; padding:12px 18px; border-radius:12px; background:var(--forest); color:var(--ivory); box-shadow:var(--shadow); font-size:13px; line-height:var(--leading-body); pointer-events:none; }
.feature-toast { left:50%; bottom:90px; transform:translateX(-50%); max-width:calc(100% - 32px); width:max-content; }.feature-tooltip { max-width:calc(100% - 24px); width:max-content; }
.dashboard-tabs button:disabled { opacity:.38; cursor:not-allowed; }.pill:disabled,.ai-launcher:disabled { opacity:.38; cursor:not-allowed; }
.examination-section { margin-top:24px; }#examinationDirections { display:grid; gap:14px; }.examination-card { display:grid; grid-template-columns:125px minmax(0,1fr); gap:20px; padding:22px; border:1px solid var(--line); border-radius:18px; background:var(--ivory); }
.examination-rank { display:flex; flex-wrap:wrap; gap:12px; align-content:start; align-items:center; }.examination-rank-number { font-size:26px; font-weight:600; color:var(--forest); }.examination-section small { color:var(--muted); font-size:12px; }.examination-section h4 { margin:0 0 10px; font-size:18px; }.examination-section p { margin:0; font-size:14px; line-height:var(--leading-body); color:var(--muted); }
.examination-rank-meter { display:flex; gap:4px; margin-top:8px; }.examination-rank-meter i { width:22px; height:5px; border-radius:5px; background:var(--line); }.examination-rank-meter .filled { background:var(--sage); }
.examination-rank-1 { border:1px solid var(--gold); border-left:5px solid var(--gold); background:linear-gradient(135deg,rgba(232,194,104,.14),var(--ivory)); }.examination-rank-1 .examination-rank-number { color:var(--forest); }.examination-rank-1 .filled { background:var(--gold); }
.examination-rank-2 { border-left:4px solid var(--sage); }.examination-rank-3 { border-left:3px solid var(--silver); }.examination-rank-3 .filled { background:var(--silver); }
.planning-dialog { width:min(600px,calc(100% - 32px)); max-height:90vh; border:0; overflow-y:auto; }.planning-dialog::backdrop { background:rgba(38,23,66,.48); }.planning-dialog h2 { font-size:28px; }.planning-dialog p { font-size:14px; line-height:var(--leading-body); }.planning-dialog small { display:block; color:var(--muted); font-size:12px; }.phone-fields { display:grid; grid-template-columns:1fr 1.3fr; gap:10px; }.phone-fields select,.phone-fields input { min-width:0; }.planning-dialog input[type=file] { padding:12px 0; }
.planning-dialog .admin-form { margin-top:0; gap:var(--space-form-field); align-content:start; }.planning-dialog h2,.planning-dialog p { margin:0; }.planning-dialog .planning-contact-note { color:var(--muted); font-size:12px; }.planning-dialog #planningStatus:empty { display:none; }.planning-dialog .actions { margin-top:8px; justify-content:flex-end; flex-direction:row; flex-wrap:wrap; }.planning-dialog .actions .pill { flex:0 0 auto; }.planning-dialog textarea { min-height:90px; }
#advancedPlanningCta { margin-top:24px; }
.health-profile-tab > h2 { margin:12px 0 18px; font-size:24px; }.health-profile-tab .health-info-section:first-of-type { margin-top:20px; }
.sales-contact-dialog { width:min(520px,calc(100% - 32px)); }.sales-contact-dialog h2 { font-size:25px; }
.sales-wechat-entry { padding:20px 0 24px; text-align:center; }
.team-contact { margin:0; text-align:center; }
.team-contact-qr { position:relative; width:260px; max-width:100%; aspect-ratio:1; overflow:hidden; margin:0 auto 14px; background:var(--ivory); }
/* Viewport onto the supplied 1290 × 2796 contact card, including the full QR quiet zone. */
.team-contact-qr img { position:absolute; width:363.461538%; max-width:none; height:auto; left:-234.615385%; top:-469.230769%; }
.sales-wechat-entry .team-contact { margin-bottom:18px; }
.team-contact figcaption p { margin:6px 0 0; font-size:14px; line-height:var(--leading-body); }
.team-contact .team-contact-help { color:var(--muted); font-size:12px; }
#communityEntry .team-contact { max-width:400px; margin:20px auto; }

.sales-contact-dialog .planning-application-label { font-size:12px; color:var(--muted); margin-bottom:6px; }.sales-contact-dialog .planning-application-message { font-size:15px; color:var(--forest); overflow-wrap:anywhere; }
.planning-contact-alternative { border-top:1px solid var(--line); padding-top:20px; }.planning-contact-alternative h3 { margin:0 0 8px; font-size:16px; }.planning-contact-alternative > p { color:var(--muted); font-size:12px; margin-bottom:16px; }
.contact-fields { display:grid; grid-template-columns:110px minmax(0,1fr); gap:10px; }.contact-fields > * { min-width:0; }
.client-unread { display:inline-block; width:8px; height:8px; margin-left:8px; border-radius:50%; background:var(--violet); animation:client-unread 1.8s ease-in-out infinite; }
@keyframes client-unread { 50% { opacity:.35; box-shadow:0 0 10px var(--violet); } }
@media(prefers-reduced-motion:reduce){.client-unread{animation:none}}
@media(max-width:560px){.phone-fields{grid-template-columns:1fr}.planning-dialog{padding:22px}}
@media(max-width:700px){.health-info-grid{grid-template-columns:1fr}.examination-card{grid-template-columns:1fr;gap:14px}.examination-rank{gap:12px}.profile-stat{min-width:90px;padding:10px 14px}}

.action-item.action-focused { border-color:var(--gold); box-shadow:0 0 0 1px var(--gold); }

/* Shared responsive layout and planning interactions. */
fieldset { min-inline-size:0; }
input,select,textarea,form,form label { min-width:0; max-width:100%; }
img { max-width:100%; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button:focus-visible,a:focus-visible { outline:2px solid var(--sage); outline-offset:3px; }
html:has(dialog[open]) { overflow:hidden; }
dialog.panel { max-height:calc(100vh - 32px); max-height:calc(100dvh - 32px); overscroll-behavior:contain; overflow-y:auto; }
.dash-nav .brand img,.footer-inner .brand img { height:50px; min-height:50px; }
.dashboard-tabs { top:var(--dash-nav-height,66px); }
.planning-dialog-head { position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:6px 0 10px; background:var(--ivory); }
.planning-dialog-head h2 { margin:0; line-height:1.35; }
.dialog-close { display:grid; place-items:center; flex:0 0 44px; width:44px; height:44px; padding:0; border:0; border-radius:50%; color:var(--muted); background:var(--paper); font:28px/1 sans-serif; cursor:pointer; }
.planning-copy-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; padding:10px 12px; border:1px solid var(--line); border-radius:14px; background:var(--paper); text-align:left; }
.sales-contact-dialog .planning-application-message { min-height:44px; padding:0; border:0; background:transparent; text-align:left; font:inherit; font-size:14px; line-height:var(--leading-body); cursor:pointer; user-select:text; -webkit-user-select:text; }
.planning-copy-button { min-height:44px; padding:0 16px; font-size:13px; }
.sales-contact-dialog .planning-copy-status { min-height:20px; margin-top:6px; color:var(--muted); font-size:12px; }
.clipboard-fallback { position:fixed; left:0; top:0; width:1px; height:1px; padding:0; opacity:0; font-size:16px; }
@media(max-width:700px){
  .dash-nav { flex-wrap:wrap; }
  .dash-nav .actions { flex-direction:row; flex-wrap:wrap; margin-left:auto; }
  .admin-hostname { display:none; }
  .dash-main { padding-bottom:calc(96px + env(safe-area-inset-bottom)); }
  .dashboard-tabs { top:var(--dash-nav-height,84px); }
  .ai-launcher { bottom:calc(16px + env(safe-area-inset-bottom)); min-height:48px; }
  .ai-drawer { bottom:calc(78px + env(safe-area-inset-bottom)); height:min(650px,calc(100dvh - 110px - env(safe-area-inset-bottom))); }
  .admin-form input,.admin-form select,.admin-form textarea,fieldset input,fieldset textarea,.question-other input,.report-shell input,.report-shell textarea,.section-toolbar input,.section-toolbar select,#clientSearch,.ai-box textarea { font-size:16px; }
  .admin-form input[type=checkbox] { width:auto; }
  .section-toolbar > * { min-width:0; max-width:100%; }
  .record,.health-info-card,.action-copy,.confirm-dialog h2,.welcome h1 { overflow-wrap:anywhere; }
}
@media(max-width:560px){
  .brand img { height:50px; min-height:50px; }
  .brand-admin { display:none; }
  .panel { padding:20px; }
  .planning-dialog { width:calc(100% - 24px); max-width:520px; padding:18px; }
  .sales-contact-dialog h2 { font-size:23px; }
  .sales-wechat-entry { padding:10px 0 18px; }
  .planning-dialog .team-contact-qr { width:220px; margin-bottom:8px; }
  .planning-copy-row { gap:8px; padding:8px 10px; }
  .contact-fields { grid-template-columns:100px minmax(0,1fr); gap:8px; }
  .editor-grid,.admin-form.inline,.admin-form .inline { grid-template-columns:minmax(0,1fr); }
  .client-record { grid-template-columns:minmax(0,1fr); align-items:start; }
  .client-actions { justify-content:flex-start; }
  .client-record .client-open { justify-self:start; }
  .confirm-dialog { padding:22px; }
  .confirm-dialog .actions { gap:10px; }
  .confirm-dialog .actions .pill { width:100%; }
  .notice .pill { margin:12px 0 0; }
  .question-intro h1 { font-size:clamp(30px,8vw,40px); line-height:1.25; }
  #questionnaireStage h2 { font-size:28px; line-height:1.35; }
  .question-actions { flex-wrap:wrap; }
  .question-actions .pill { padding:0 14px; min-width:90px; }
  .report-shell { padding-top:28px; }
  .report-shell h1 { overflow-wrap:anywhere; }
  .nav .muted { max-width:120px; text-align:right; }
  .ai-box { display:flex; }
  .ai-box .pill { min-height:44px; padding:0 12px; }
}
@media(max-width:360px){
  .planning-dialog-head h2 { font-size:21px; }
  .dash-nav:has(#back) { align-items:flex-start; }
  .dash-nav #back { max-width:calc(100% - 150px); }
}

.login-title { font-size:clamp(30px,5vw,46px); line-height:1.25; }

.planning-dialog { padding-top:0; }
.planning-dialog-head { padding-top:12px; }


/* Shared type scale: page / section / card / body / supporting copy. */
:root { --type-page:32px; --type-section:24px; --type-card:18px; --type-body:15px; --type-caption:12px; --leading-heading:1.4; --leading-body:1.75; --leading-control:1.5; --space-label-control:12px; --space-control-help:12px; --space-form-field:20px; --space-paragraph:12px; }
body { line-height:var(--leading-body); }
h1,h2,h3,h4 { line-height:var(--leading-heading); overflow-wrap:break-word; }
button,input,select,textarea { line-height:var(--leading-control); }
.panel p,.health-section p,.record p,.questionnaire-shell p,.report-shell p { line-height:var(--leading-body); }
.cover-top h1,.welcome h1,.report-shell h1,.login-title,#adminLogin h1 { font-size:var(--type-page); line-height:var(--leading-heading); }
.health-section h2,.health-profile-tab>h2,.panel>h2,.planning-dialog-head h2,.sales-contact-dialog h2 { font-size:var(--type-section); line-height:var(--leading-heading); }
.health-section h3,.health-info-card h4,.examination-section h4,.action-copy b,.cover-plan .action-copy b { font-size:var(--type-card); line-height:var(--leading-heading); }
.action-copy span,.cover-plan .action-copy span,.health-info-card p,.health-info-card dd,.examination-section p,.record p { font-size:var(--type-body); line-height:var(--leading-body); }
.field-help,.subtle,.analysis-method-notes,.team-contact .team-contact-help { line-height:var(--leading-body); }
@media(max-width:640px){
 :root { --type-page:28px; --type-section:22px; }
 .dash-main { padding-top:28px; }
 .twin-welcome { padding:8px 0 28px; }
 .dashboard-tabs { scrollbar-width:none; }
 .dashboard-tabs::-webkit-scrollbar { display:none; }
}

.phone-account-status { margin:10px 0 0; font-size:var(--text-sm,14px); line-height:var(--leading-body); color:var(--forest); overflow-wrap:anywhere; }
.phone-account-status a { color:var(--violet); text-decoration:underline; text-underline-offset:3px; }

.numbered-client { grid-template-columns:minmax(56px,max-content) minmax(0,1fr) auto; }
.client-number { align-self:center; color:var(--violet); font-size:14px; font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap; }
.client-identity { min-width:0; overflow-wrap:anywhere; }
@media(max-width:760px){
 .numbered-client { grid-template-columns:minmax(48px,max-content) minmax(0,1fr); }
 .numbered-client .client-number { grid-column:1; grid-row:1 / span 2; align-self:start; padding-top:3px; }
 .numbered-client .client-identity,.numbered-client .client-actions { grid-column:2; min-width:0; }
}

.health-access-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:24px; }
.health-access-actions .pill { width:100%; justify-content:center; text-align:center; font-size:var(--text-body,16px); }
.member-login-panel { margin-top:28px; padding-top:24px; border-top:1px solid var(--silver); }

/* The upgrade hint is an actionable entry to the existing planning dialog. */
.feature-toast,.feature-tooltip { pointer-events:auto; }
.feature-planning-link { border:0; border-radius:0; background:transparent; padding:0; font:inherit; color:inherit; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.feature-planning-link:focus-visible { outline:2px solid var(--gold); outline-offset:3px; }

/* Questionnaire inputs share the existing brand controls. */
#questionnaireStage fieldset { border-bottom:0; }
.questionnaire-phone-fields { display:grid; grid-template-columns:minmax(0,190px) minmax(0,1fr); gap:12px; }
.questionnaire-phone-fields select,.questionnaire-phone-fields input { width:100%; min-width:0; border:1px solid var(--line); background:var(--ivory); color:var(--ink); border-radius:14px; padding:14px; font:inherit; font-size:16px; }
.questionnaire-phone-fields select:focus,.questionnaire-phone-fields input:focus { outline:2px solid var(--sage); outline-offset:2px; }
@media(max-width:600px) { .questionnaire-phone-fields { grid-template-columns:minmax(0,140px) minmax(0,1fr); gap:8px; }.questionnaire-phone-fields select { padding:14px 8px; } }


/* Shared text rhythm: separate line height from space around form controls. */
p,li,dd,dt,.field-help,.subtle,.admin-status,.phone-account-status,.planning-dialog small,.record small,.examination-section small { line-height:var(--leading-body); }
:is(.field-help,.subtle,.admin-status,.phone-account-status) { overflow-wrap:anywhere; }
fieldset > .field-help { margin:0 0 var(--space-control-help); }
:is(input,select,textarea,.phone-fields,.contact-fields,.questionnaire-phone-fields) + :is(.field-help,.subtle,small,.admin-status,.phone-account-status) { margin-block:var(--space-control-help) 0; }
.admin-form > :is(.field-help,.subtle,.admin-status,.phone-account-status) { margin-block:0; }
.admin-form label > :is(.field-help,small,.subtle) { margin-block:0; }
:is(.panel,.health-info-card,.record,.planning-dialog,.questionnaire-shell,.report-shell) p + p { margin-block-start:var(--space-paragraph); }


/* Compact Chinese calendar: choose a date without typing a date format. */
.birth-date-control { position:relative; max-width:280px; }
.birth-calendar-toggle { display:flex; align-items:center; justify-content:space-between; gap:16px; width:100%; min-height:50px; padding:12px 14px; border:1px solid var(--line); border-radius:14px; background:var(--ivory); color:var(--ink); cursor:pointer; font-size:16px; text-align:left; }
.birth-calendar-toggle svg { flex:none; }
.birth-calendar-toggle[aria-invalid=true] { border-color:var(--sage); }
.birth-calendar { position:absolute; z-index:20; left:0; top:calc(100% + 12px); width:320px; max-width:calc(100vw - 28px); padding:16px; border:1px solid var(--line); border-radius:16px; background:var(--ivory); box-shadow:var(--shadow); }
.birth-calendar-header { display:grid; grid-template-columns:32px minmax(0,1fr) 32px; gap:8px; align-items:end; margin-bottom:16px; }
.birth-calendar-selects { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:8px; }
.birth-calendar-selects select { min-width:0; width:100%; min-height:40px; padding:6px; border:1px solid var(--line); border-radius:8px; background:var(--ivory); color:var(--ink); font-size:14px; }
.birth-calendar-header > button { min-height:40px; padding:0; border:0; border-radius:8px; background:var(--paper); color:var(--forest); font-size:26px; cursor:pointer; }
.birth-calendar-week { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:2px; }
.birth-calendar-week > span { display:grid; place-items:center; min-width:0; }
.birth-calendar-week [role=columnheader] { padding:6px 0; color:var(--muted); font-size:12px; line-height:var(--leading-body); }
.birth-calendar-week button { width:100%; min-height:42px; border:1px solid transparent; border-radius:8px; background:transparent; color:var(--ink); cursor:pointer; font-size:14px; }
.birth-calendar-week button:hover:not(:disabled) { background:var(--paper); }
.birth-calendar-week button[aria-current=date] { border-color:var(--gold); }
.birth-calendar-week button[aria-pressed=true],.birth-calendar-week button[aria-pressed=true]:hover { background:var(--forest); color:var(--ivory); }
.birth-calendar button:disabled { opacity:.35; cursor:default; }
.birth-calendar-footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; margin-top:12px; padding-top:12px; border-top:1px solid var(--line); }
.birth-calendar-footer button { min-height:40px; padding:6px; border:0; border-radius:8px; background:var(--paper); color:var(--forest); cursor:pointer; font-size:12px; }
