/* 被套诊所 · A-share clinic — page styles on top of checkup.css (same tokens, same light theme).
   Form and report pieces only; the site shell, buttons, sections and chart primitives come from checkup.css. */

/* ---------------- form ---------------- */
.cl-form { margin-top: 10px; background: var(--white); border: 1px solid var(--rule2); padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 16px; }
.cl-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.cl-field label { font-size: 13px; color: var(--ink2); }
.cl-field-wide { grid-column: 1 / -1; }
.cl-help { font-size: 13px; color: var(--ink3); min-height: 1.2em; }
.cl-form .ck-input { font-variant-numeric: tabular-nums; }
.cl-form select { min-height: 42px; }
@media (max-width: 520px) { .cl-form { grid-template-columns: 1fr; padding: 18px 16px; } }

/* stock combobox */
.cl-combo { position: relative; }
.cl-list { position: absolute; left: 0; right: 0; top: calc(100% + 2px); z-index: 30; margin: 0; padding: 4px 0; list-style: none; background: var(--white); border: 1px solid var(--rule2); max-height: 320px; overflow-y: auto; box-shadow: 0 10px 24px rgba(23, 38, 48, .10); }
.cl-opt { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 12px; cursor: pointer; font-size: 15px; }
.cl-opt[aria-selected="true"] { background: var(--accent-wash); }
.cl-opt:hover { background: var(--wash); }
.cl-opt-code { font-family: var(--mono); font-size: 12px; color: var(--ink3); white-space: nowrap; }

/* ---------------- landing aside: rates by loss depth ---------------- */
.cl-depth { gap: 8px; }
.cl-aside-title { font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.cl-aside-sub { font-size: 14px; color: var(--ink2); }
.cl-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink2); }
.cl-legend span::before { content: ""; display: inline-block; width: 14px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.cl-legend .lg-1::before, .cl-legend .lg-main::before { background: var(--series); }
.cl-legend .lg-3::before { background: var(--series-faint); }
.cl-legend .lg-main::before { height: 3px; vertical-align: 3px; width: 18px; }
.cl-legend .lg-half::before { width: 18px; height: 0; border-top: 3px dashed var(--series-faint); vertical-align: 3px; }

/* ---------------- report ---------------- */
.cl-report { scroll-margin-top: calc(88px + env(safe-area-inset-top, 0px)); padding-top: 36px; }
.cl-rhead { display: grid; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.cl-rname { font-family: var(--serif); font-size: clamp(30px, 4.6vw, 44px); line-height: 1.15; }
.cl-rname .ck-mono { font-family: var(--mono); font-size: .45em; color: var(--ink3); margin-left: 6px; letter-spacing: .06em; }
.cl-facts { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; gap: 2px 20px; }
.cl-facts i { font-style: normal; color: var(--ink3); margin-right: 6px; }

.cl-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 20px 40px; padding-block: 28px 4px; align-items: end; }
.cl-need { display: grid; gap: 2px; }
.cl-need-lbl { font-size: 14px; color: var(--ink3); }
.cl-need-n { font-family: var(--serif); font-size: clamp(64px, 10vw, 104px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cl-kpis { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.cl-kpis > div { padding: 12px 14px 0 0; display: grid; gap: 4px; min-width: 0; }
.cl-kpis dt { font-size: 13px; color: var(--ink3); }
.cl-kpis dd { margin: 0; display: grid; gap: 2px; }
.cl-kpis b { font-size: clamp(28px, 3.6vw, 38px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; color: var(--series); font-variant-numeric: tabular-nums; }
.cl-kpis span { font-size: 13px; color: var(--ink3); }
@media (max-width: 860px) { .cl-hero { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cl-kpis { grid-template-columns: 1fr 1fr; row-gap: 10px; } .cl-kpis > div:last-child { grid-column: 1 / -1; } }

.cl-warn { background: var(--amber-wash); border: 1px solid #e4cfb6; padding: 12px 14px; font-size: 15px; max-width: 78ch; margin-bottom: 12px; }
.cl-warn b { color: #8a5a22; margin-right: 8px; }
.cl-ref { font-size: 14px; color: var(--ink2); max-width: 82ch; line-height: 1.7; }

.cl-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.cl-chips-lbl { font-size: 13px; color: var(--ink3); margin-right: 4px; min-width: 4.5em; }
.cl-chip { border: 1px solid var(--rule2); background: var(--white); color: var(--ink2); font-size: 13px; padding: 5px 10px; border-radius: 2px; cursor: pointer; min-height: 32px; }
.cl-chip:hover { border-color: var(--accent); color: var(--ink); }
.cl-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--white); }
.cl-chip:disabled { color: var(--rule2); border-color: var(--rule); cursor: not-allowed; background: var(--paper); }

/* chart bits */
.ck-svg .m-series-fill { fill: var(--series); }
.ck-svg .line.cl-line-half { stroke: var(--series-faint); stroke-width: 2.5; stroke-dasharray: 6 5; fill: none; }
.ck-svg .cl-hover-half { fill: var(--series-faint); }
.ck-svg .cl-t-half { fill: var(--ink3); font-weight: 600; }
.ck-svg .cl-track { fill: var(--wash); }
.ck-svg .t-sub { fill: var(--ink3); font-weight: 400; }
.ck-svg g.mark:hover .m-faint, .ck-svg g.mark:focus .m-faint { fill: var(--series); fill-opacity: .55; }
#cl-c-wait { max-width: 640px; }
.cl-stats { margin-top: 8px; }
.cl-stats b { font-variant-numeric: tabular-nums; }

/* three paths */
.cl-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--white); border: 1px solid var(--rule2); }
.cl-path { padding: 20px 22px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.cl-path + .cl-path { border-left: 1px solid var(--rule); }
.cl-path h3 { font-family: var(--serif); font-size: 23px; }
.cl-path .cl-chips { margin-top: 0; }
.cl-path .cl-chips-lbl { min-width: 0; }
.cl-facts-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 15px; color: var(--ink2); }
.cl-facts-list b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.cl-facts-list b.v-pos { color: var(--pos-text); }
.cl-facts-list b.v-neg { color: var(--neg-text); }
.cl-ask { font-size: 14px; color: var(--ink2); border-top: 1px solid var(--rule); padding-top: 10px; }
.cl-ask b { display: block; font-size: 12px; color: var(--accent); letter-spacing: .08em; margin-bottom: 2px; font-weight: 500; }
.cl-key { background: var(--accent-wash); border: 1px solid #c9d8e6; padding: 12px 14px; font-size: 16px; line-height: 1.55; font-weight: 500; }
@media (max-width: 900px) { .cl-paths { grid-template-columns: 1fr; } .cl-path + .cl-path { border-left: 0; border-top: 1px solid var(--rule); } }

/* tools */
.cl-cash-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-wash); }
.cl-cash-out { color: var(--ink2); min-height: 1.6em; max-width: 60ch; }
.cl-stop-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; }
.cl-stop-grid label { display: grid; gap: 6px; font-size: 13px; color: var(--ink2); }
@media (max-width: 520px) { .cl-stop-grid { grid-template-columns: 1fr; } }

.cl-empty { display: grid; gap: 12px; padding-top: 18px; }
.cl-cta { gap: 10px; }
.cl-method p { max-width: 82ch; }
.cl-method p b { color: var(--ink); font-weight: 600; }
.cl-px-row { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.cl-px-refresh { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; cursor: pointer; }
.cl-px-refresh:disabled { color: var(--ink3); cursor: progress; }
.cl-range { font-size: 14px; color: var(--ink2); max-width: 82ch; margin-bottom: 6px; }
.cl-method h3.ck-h3 { margin-top: 22px; }
.cl-method .ck-table td, .cl-method .ck-table th { white-space: normal; }
.cl-method .ck-table tr.is-page td { font-weight: 600; color: var(--ink); background: var(--accent-wash); }
.cl-oos-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px 32px; align-items: start; margin-block: 8px 12px; }
@media (max-width: 760px) { .cl-oos-grid { grid-template-columns: 1fr; } }
.ck-svg .cl-diag { stroke: var(--rule2); stroke-width: 1.5; stroke-dasharray: 4 4; fill: none; }
.cl-checks { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 6px; color: var(--ink2); max-width: 82ch; }
.cl-checks b { color: var(--ink); font-weight: 600; }

/* rebound forecast */
.ck-svg .cl-rb-iqr { fill: var(--series-faint); }
.ck-svg .cl-rb-whisk { fill: var(--series-faint); }
.ck-svg g.cl-rb-row:hover .cl-rb-iqr, .ck-svg g.cl-rb-row:focus .cl-rb-iqr { fill: var(--series); fill-opacity: .45; }
.ck-svg .cl-rb-cost { fill: var(--ink3); }
.ck-svg .cl-rb-tgt { fill: var(--amber); }
.cl-rb-legend .lg-dot::before { width: 10px; height: 10px; border-radius: 50%; background: var(--series); }
.cl-rb-legend .lg-iqr::before { width: 18px; height: 10px; border-radius: 2px; background: var(--series-faint); }
.cl-rb-legend .lg-whisk::before { width: 22px; height: 2px; vertical-align: 3px; background: var(--series-faint); }
.cl-rb-target { margin-top: 18px; background: var(--white); border: 1px solid var(--rule2); padding: 18px 20px; display: grid; gap: 12px; }
.cl-rb-target h3.ck-h3 { margin: 0; }
.cl-rb-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cl-rb-form label { font-size: 13px; color: var(--ink2); }
.cl-rb-form .ck-input { width: 9em; font-variant-numeric: tabular-nums; }
.cl-rb-form .cl-chips { margin-top: 0; }
.cl-rb-sum { font-size: 15px; color: var(--ink2); }
.cl-rb-grid { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.cl-rb-grid > div { padding: 10px 12px 0 0; display: grid; gap: 2px; min-width: 0; }
.cl-rb-grid dt { font-size: 13px; color: var(--ink3); }
.cl-rb-grid dd { margin: 0; display: grid; gap: 2px; }
.cl-rb-grid b { font-size: clamp(24px, 3vw, 32px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.cl-rb-grid span { font-size: 12px; color: var(--ink3); }
@media (max-width: 560px) { .cl-rb-grid { grid-template-columns: 1fr 1fr; row-gap: 10px; } .cl-rb-target { padding: 16px; } }
.ck-svg .cl-vc-base { fill: var(--paper); stroke: var(--ink3); stroke-width: 2; }
.cl-legend .lg-dotp::before { width: 10px; height: 10px; border-radius: 50%; background: var(--series); }
.cl-legend .lg-ring::before { width: 10px; height: 10px; border-radius: 50%; box-sizing: border-box; border: 2px solid var(--ink3); background: var(--paper); }
.cl-method .ck-table .cl-sub { color: var(--ink3); font-size: 12px; }
.cl-method .ck-table td.is-on { font-weight: 600; color: var(--ink); background: var(--accent-wash); }
#cl-c-volcal { max-width: 640px; }
.cl-method h4.ck-h4 { margin-top: 18px; }
