:root { color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body.qc-body { background: #f6f7f4; }
body.qc-body { margin: 0; color: #293d35; font: 400 1rem/1.55 Inter, system-ui, sans-serif; }
.qc-app { container-type: inline-size; width: 100%; max-width: none; min-width: 0; padding: 0 0 18px; overflow: visible; }
.qc-flow { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; width: 100%; max-width: 960px; min-width: 0; margin-inline: auto; }
.qc-body .qc-flow > .quick-card { width: 100%; max-width: none; min-width: 0; margin: 0; padding: clamp(16px, 2.2cqi, 22px); border: 1px solid #b8d2ca; border-radius: 8px; box-shadow: 0 12px 30px rgba(33, 49, 43, .08); }
.qc-body .qc-inputs { background: #f8fbfa; }
.qc-body .qc-results { background: #f7fbfa; }
.qc-body .qc-details, .qc-body .qc-support { background: #fff; }
.qc-special { border-color: #d9c4a0 !important; background: #fff9ef; }
.qc-body .qc-inputs > .eyebrow, .qc-body .qc-results > .eyebrow { margin: 0 0 8px; color: #9a5b1f; font-size: .78rem; font-weight: 700; line-height: 1.3; }
.qc-results h2, .qc-details h2, .qc-support h2, .qc-special h2 { margin: 0 0 8px; font-size: 1.45rem; font-weight: 700; line-height: 1.2; }
.qc-inputs > p:not(.eyebrow), .qc-results > p, .qc-support p, .qc-special p { margin: 0; }
.qc-inputs > p:not(.eyebrow) { margin-bottom: 16px; }
.qc-form { container-type: inline-size; }
.qc-group { display: flow-root; min-width: 0; margin: 0; padding: 0; border: 0; }
.qc-group + .qc-group { margin-top: 12px; }
body.quick-ui-v2 .qc-group + .qc-group > .quick-field-divider { margin-top: 12px; }
.qc-group-instruction { margin: 8px 0 0; color: #566960; font-size: .9rem; line-height: 1.42; }
.qc-field-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 16px; min-width: 0; margin-top: 12px; }
.qc-field.quick-field { display: block; min-width: 0; padding: 10px 12px; border-width: 1px; border-style: solid; border-radius: 6px; }
body.quick-ui-v2 .qc-field label { display: block; margin: 0 0 8px; color: #0d4e48; font-size: 1rem; font-weight: 700; line-height: 1.3; }
.qc-label-row { display: block; margin-bottom: 8px; font-size: 1rem; line-height: 1.3; }
body.quick-ui-v2 .qc-label-row label { display: inline; margin: 0; }
.qc-label-tail { display: inline-block; white-space: nowrap; }
.qc-help-anchor { position: relative; display: inline-block; width: 44px; height: 0; margin-left: .25rem; vertical-align: baseline; }
.qc-help-button { position: absolute; left: 0; bottom: calc(-.5em + .25rem); display: flex; align-items: flex-end; justify-content: flex-start; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.qc-help-button span { display: grid; place-items: center; width: 1.125rem; height: 1.125rem; border: 1px solid var(--taxonomy-chip-text); border-radius: 50%; background: var(--taxonomy-chip-bg); color: var(--taxonomy-chip-text); font-size: .78rem; font-weight: 700; line-height: 1; }
.qc-help-button:focus-visible, .qc-gain-invitation:focus-visible { outline: 3px solid #0b756b; outline-offset: 2px; }
.qc-context-help { position: fixed; z-index: 20; width: min(320px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 12px 14px; border: 1px solid var(--taxonomy-chip-text); border-radius: 6px; background: var(--taxonomy-chip-bg); box-shadow: 0 10px 24px rgba(25, 43, 36, .18); color: var(--taxonomy-chip-text); font-size: .9rem; line-height: 1.45; user-select: text; }
body.qc-body .qc-control { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; min-height: 48px; padding: 0 2px 1px; border: 0; border-bottom: 3px solid #759589; border-radius: 0; background: transparent; box-shadow: none; }
body.qc-body .qc-control:focus-within { border-bottom-color: #004f47; background: #edf7f3; box-shadow: none; }
.qc-affix { flex: none; color: #40564e; font-size: 1rem; font-weight: 700; line-height: 1.4; }
body.qc-body .qc-control input { flex: 1; width: 100%; min-width: 0; min-height: 44px; padding: 0 4px; border: 0; outline: 0; background: transparent; color: #17201b; font: 700 1.02rem/1.4 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; text-align: right; }
body.qc-body .qc-control input::placeholder { color: #607068; font-weight: 500; opacity: 1; text-align: right; }
body.qc-body .qc-control input:focus::placeholder { color: transparent; }
.qc-field:has(input[aria-invalid="true"]) .qc-control { border-bottom-color: #926000; background: #fff8e8; }
.qc-field:has(input[aria-invalid="true"]) .qc-control:focus-within { border-bottom-color: #775000; }
.qc-helper { display: block; margin-top: 8px; color: #566960; font-size: .9rem; font-weight: 400; line-height: 1.42; user-select: text; }
.qc-field-error { display: block; margin-top: 8px; color: #775000; font-size: .95rem; font-weight: 650; line-height: 1.4; }
.qc-gain-dialog { position: fixed; inset: auto; width: min(380px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: 0; padding: 16px; overflow: auto; border: 1px solid #9bbfb3; border-radius: 8px; background: #fff; color: #293d35; box-shadow: 0 18px 40px rgba(25, 43, 36, .24); font: 400 1rem/1.45 Inter, system-ui, sans-serif; }
.qc-gain-dialog[data-state="invitation"] { width: auto; max-width: none; padding: 0; overflow: visible; border: 0; border-radius: 0 0 8px 8px; background: transparent; box-shadow: none; }
.qc-gain-invitation { display: grid; place-items: center; width: 100%; min-height: 44px; padding: 9px 14px; border: 1px solid var(--taxonomy-chip-text); border-radius: 0 0 8px 8px; background: var(--taxonomy-chip-bg); box-shadow: 0 9px 24px rgba(25, 43, 36, .18); color: var(--taxonomy-chip-text); font: 700 .9rem/1.35 Inter, system-ui, sans-serif; text-align: center; cursor: pointer; }
.qc-gain-dialog::backdrop { background: rgba(15, 38, 32, .18); }
.qc-gain-dialog h2 { margin: 0 0 6px; color: #17201b; font-size: 1.2rem; line-height: 1.25; }
.qc-gain-dialog [data-qc-gain-help] { margin: 8px 0 0; font-size: .9rem; }
.qc-gain-dialog [data-qc-dividend-help] { margin: 10px 0 0; font-size: .9rem; }
body.quick-ui-v2 .qc-gain-dialog label { display: block; margin-bottom: 4px; color: #0d4e48; font-size: 1rem; font-weight: 700; line-height: 1.3; }
.qc-dividend-label-row { margin: 12px 0 4px; color: #0d4e48; font-size: 1rem; font-weight: 700; line-height: 1.3; }
body.quick-ui-v2 .qc-gain-dialog .qc-dividend-label-row label { display: inline; margin: 0; }
.qc-dividend-rates { margin-top: 12px; }
.qc-dividend-rates > p { margin: 0; font-size: .9rem; font-weight: 700; }
.qc-dividend-rates .qc-gain-rate { align-items: flex-start; margin-top: 5px; }
.qc-dividend-rates .qc-gain-rate span { min-width: 0; }
.qc-dividend-rates .qc-gain-rate strong { flex: none; }
.qc-qpp-entry, .qc-qpp-note, .qc-qpp-linked-note { margin: 8px 0 10px; color: #566960; font-size: .9rem; line-height: 1.42; }
body.quick-ui-v2 .qc-gain-dialog .qc-qpp-second-label { margin-top: 12px; }
.qc-qpp-linked-heading { margin: 14px 0 0; color: #0d4e48; font-size: .9rem; font-weight: 700; }
.qc-qpp-reconciliation { margin: 12px 0 0; border-top: 1px solid #d8e4df; font-size: .88rem; }
.qc-qpp-reconciliation > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid #e4eae6; }
.qc-qpp-reconciliation dt { min-width: 0; }
.qc-qpp-reconciliation dd { flex: none; margin: 0; color: #17201b; font-variant-numeric: tabular-nums; text-align: right; }
body.qc-body .qc-gain-control { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; border: 0; border-bottom: 3px solid #759589; background: #f8fbfa; }
body.qc-body .qc-gain-control:focus-within { border-bottom-color: #004f47; background: #edf7f3; }
body.qc-body .qc-gain-control input { flex: 1; width: 100%; min-width: 0; min-height: 42px; padding: 0 4px; border: 0; outline: 0; background: transparent; color: #17201b; font: 700 1rem/1.4 Inter, system-ui, sans-serif; text-align: right; }
.qc-gain-error:not([hidden]) { margin: 6px 0 0; color: #775000; font-weight: 650; }
.qc-gain-rate, .qc-gain-preview { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; font-size: .92rem; }
.qc-gain-rate strong, .qc-gain-preview strong { color: #17201b; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.qc-gain-preview { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px; border-left: 4px solid #3b38ac; border-radius: 4px; background: #f5faf7; }
.qc-gain-preview strong { font-size: 1.08rem; text-align: left; }
.qc-gain-preview strong.is-unavailable { color: #566960; font-weight: 400; }
.qc-gain-actions { display: flex; gap: 10px; margin-top: 14px; }
.qc-gain-actions button { flex: 1 1 0; min-width: 0; min-height: 44px; margin: 0; white-space: normal; }
.qc-gain-actions button:disabled { opacity: .55; cursor: not-allowed; }
.qc-gain-dialog button:focus-visible { outline: 3px solid #0b756b; outline-offset: 2px; }
.qc-error-summary { margin: 16px 0 0; color: #775000; font-weight: 650; }
body.qc-body .qc-actions { display: flex; flex-wrap: nowrap; gap: 12px; width: 100%; margin: 16px 0 0; }
.qc-actions button { flex: none; min-width: 44px; min-height: 44px; white-space: nowrap; font-size: 1rem; font-weight: 700; }
.qc-actions button[data-qc-calculate] { min-height: 48px; }
.qc-actions.is-stacked { flex-direction: column; gap: 8px !important; }
.qc-actions.is-stacked button { width: 100%; min-height: 48px; }
.qc-actions button:focus-visible, .qc-results a:focus-visible, .qc-support a:focus-visible { outline: 3px solid #0b756b; outline-offset: 2px; }
.qc-result-context { color: #566960; font-size: .9rem; line-height: 1.4; }
.qc-body .qc-metric-panel { width: 100%; margin-top: 16px; padding: 16px 18px; border: 1px solid #d9e1dc; border-left: 5px solid #3b38ac; border-radius: 6px; background: #f5faf7; box-shadow: none; }
body.quick-ui-v2.qc-body .qc-metric-label { margin: 0 0 8px !important; color: #4f615a; font-size: .82rem; font-weight: 700; line-height: 1.35; letter-spacing: 0; text-transform: none; }
body.quick-ui-v2.qc-body .qc-metric { margin: 0 !important; color: #17201b; font-size: 2.35rem; font-weight: 800; line-height: 1.1; text-align: left; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.qc-interpretation { width: 100%; max-width: none; margin: 16px 0 0 !important; font-size: 1.02rem; line-height: 1.55; }
.qc-interpretation strong { font-weight: 700; }
.qc-details { container-type: inline-size; }
.qc-details table { width: min(100%, 720px); margin: 16px 0 0; border-collapse: collapse; }
.qc-details th, .qc-details td { padding: 9px 8px; border-bottom: 1px solid #e4eae6; font-size: 1rem; line-height: 1.38; vertical-align: top; }
.qc-details th { text-align: left; font-weight: 400; }
.qc-details td { width: 26%; text-align: right; font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qc-details tr:nth-child(even):not(.qc-detail-group) { background: #f8fbfa; }
.qc-details .qc-detail-group th { padding-top: 18px; color: #183b31; font-weight: 700; background: #fff; border-bottom: 2px solid #d9e1dc; }
.qc-details .qc-detail-component th { padding-left: 28px; color: #4f615a; }
.qc-details .qc-detail-component td { color: #4f615a; }
.qc-details .qc-detail-subtotal th, .qc-details .qc-detail-subtotal td { font-weight: 700; border-top: 1px solid #9db2a8; }
.qc-support > .qc-navigation { margin-top: 0; }
.qc-support > .qc-nav-link { margin-top: 8px; }
.qc-support > .qc-zero-note:not([hidden]) { margin-bottom: 24px; }
.qc-support .qc-limitations { margin-top: 24px; }
.qc-support .qc-limitations ul { margin: 0; padding-left: 1.3rem; }
.qc-support .qc-limitations li { margin-bottom: 12px; }
.qc-support .qc-limitations li:last-child { margin-bottom: 0; }
.qc-print-report { display: none; }
html[lang^="zh"] .qc-results h2, html[lang^="zh"] .qc-details h2, html[lang^="zh"] .qc-support h2, html[lang^="zh"] .qc-special h2 { font-weight: 650; }
html[lang^="zh"] .qc-inputs > .eyebrow, html[lang^="zh"] .qc-results > .eyebrow { letter-spacing: 0; }
@container (min-width: 760px) { .qc-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 640px) { .qc-body .qc-flow > .quick-card { padding: 14px; } .qc-flow { gap: 14px; } .qc-helper { font-size: .92rem; } body.quick-ui-v2.qc-body .qc-metric { font-size: 1.9rem; } .qc-body .qc-metric-panel { padding: 14px; } .qc-field-grid { row-gap: 10px; } }
@container (max-width: 480px) { .qc-actions { flex-direction: column; gap: 8px !important; } .qc-actions button { width: 100%; min-height: 48px; } }
@container (max-width: 20em) { .qc-details table, .qc-details tbody { display: block; width: 100%; } .qc-details tr { display: grid; grid-template-columns: minmax(0, 1fr); padding: 9px 0; border-bottom: 1px solid #e4eae6; } .qc-details th, .qc-details td { display: block; width: 100%; padding: 0 6px; border: 0; } .qc-details th { overflow-wrap: anywhere; } .qc-details td { margin-top: 4px; text-align: right; } }
@media print {
  @page { margin: .55in .6in; }
  .qc-gain-dialog, .qc-context-help, .qc-help-button { display: none !important; }
  html, body.qc-body { color: #17201b; background: #fff; }
  .qc-app { max-width: none; padding: 0; }
  .qc-status, .qc-flow { display: none !important; }
  .qc-print-report:not([hidden]) { display: block; font-size: 10pt; line-height: 1.32; }
  .qc-print-report .quick-print-title-row { flex-wrap: wrap; }
  .qc-print-report > h2 { margin: 8pt 0 3pt; font-size: 12pt; break-after: avoid; }
  .qc-print-report > p { margin: 0 0 5pt; }
  .qc-print-report table { width: 100%; border-collapse: collapse; margin: 0 0 5pt; }
  .qc-print-report thead { display: table-header-group; }
  .qc-print-report thead th { padding-top: 6pt; font-weight: 700; color: #183b31; border-bottom: 1.5pt solid #9db2a8; }
  .qc-print-report th, .qc-print-report td { padding: 2.5pt 5pt; border-bottom: 1px solid #cfd9d4; text-align: left; vertical-align: top; }
  .qc-print-report th { font-weight: 400; }
  .qc-print-report .qc-detail-component th { padding-left: 18pt; color: #4f615a; }
  .qc-print-report .qc-detail-component td { color: #4f615a; }
  .qc-print-report .qc-detail-subtotal th, .qc-print-report .qc-detail-subtotal td { font-weight: 700; border-top: 1pt solid #9db2a8; }
  .qc-print-report td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .qc-print-report tr { break-inside: avoid; }
  .qc-print-report h2 { break-after: avoid; }
  .qc-print-report thead { break-after: avoid; }
  .qc-print-report ul { margin-top: 0; }
  .qc-print-report .qc-report-sources { break-inside: avoid; }
  .qc-print-report .qc-report-sources h2 { margin: 8pt 0 3pt; font-size: 12pt; break-after: avoid; }
  .qc-print-report a { color: #17201b; text-decoration: underline; }
}
