@import 'tailwindcss';
@import 'tw-animate-css';
@import 'shadcn/tailwind.css';

:root {
  --aia-red: #d31145;
  --aia-red-dark: #8f1236;
  --wine: #68112e;
  --coral: #ff7a85;
  --rose: #f6cfda;
  --rose-pale: #fff1f4;
  --cream: #fff8f9;
  --ink: #2e3035;
  --muted: #706970;
  --line: #ead9de;
  --paper: #ffffff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { cursor: pointer; }

.login-shell { height: 100vh; height: 100dvh; display: grid; grid-template-rows: 72px minmax(0, 1fr) 48px; overflow: hidden; background: #fff9fa; }
.login-header { height: 72px; padding: 0 clamp(28px, 6vw, 96px); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.96); border-bottom: 3px solid var(--aia-red); position: relative; z-index: 3; }
.advisor-access { display: flex; align-items: center; gap: 9px; color: #6f6267; font-size: .9rem; font-weight: 700; }
.advisor-access i { width: 8px; height: 8px; background: var(--aia-red); border-radius: 50%; box-shadow: 0 0 0 5px #fbe2e9; }
.login-stage { min-height: 0; padding: clamp(28px, 5vh, 58px) clamp(28px, 8vw, 124px); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .72fr); gap: clamp(48px, 8vw, 120px); align-items: center; position: relative; isolation: isolate; }
.login-stage::before { content: ""; position: absolute; inset: 0; z-index: -3; background: linear-gradient(90deg, rgba(211,17,69,.035) 1px, transparent 1px), linear-gradient(rgba(211,17,69,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to right, black, transparent 78%); }
.login-geometry { position: absolute; z-index: -2; pointer-events: none; }
.login-geometry-one { width: 570px; height: 520px; right: -190px; top: -110px; background: linear-gradient(145deg, var(--aia-red) 0 42%, var(--coral) 42% 68%, var(--rose) 68%); clip-path: polygon(16% 0,100% 0,100% 100%,66% 78%,45% 100%,0 53%); opacity: .95; }
.login-geometry-two { width: 370px; height: 230px; left: -118px; bottom: -86px; background: linear-gradient(145deg,var(--rose),var(--coral)); clip-path: polygon(0 30%,55% 0,100% 55%,75% 100%,0 82%); opacity: .58; }
.login-intro { max-width: 650px; position: relative; z-index: 1; }
.login-kicker { display: block; margin-bottom: 14px; color: var(--aia-red); font: 800 .78rem Georgia,serif; letter-spacing: .16em; }
.login-intro h1 { margin: 0; font: 500 clamp(2.65rem,4.5vw,4.4rem)/1.1 "Songti SC","Noto Serif SC",serif; letter-spacing: -.05em; }
.login-intro h1 span { display: block; color: var(--aia-red); }
.login-intro > p { max-width: 590px; margin: 20px 0 27px; color: #705f65; font-size: 1.02rem; line-height: 1.7; }
.login-capabilities { max-width: 620px; display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid #ead5dc; background: rgba(255,255,255,.72); box-shadow: 0 16px 40px rgba(104,17,46,.06); }
.login-capabilities > div { min-height: 88px; padding: 16px 15px; display: flex; gap: 10px; align-items: flex-start; border-right: 1px solid #ead5dc; }
.login-capabilities > div:last-child { border-right: 0; }
.login-capabilities svg { flex: none; color: var(--aia-red); margin-top: 2px; }
.login-capabilities span { display: grid; gap: 5px; }
.login-capabilities strong { font-size: .92rem; }
.login-capabilities small { color: #84757a; font-size: .76rem; line-height: 1.45; }
.login-card { width: 100%; max-width: 470px; justify-self: end; padding: clamp(25px,3vw,36px); background: rgba(255,255,255,.98); border: 1px solid #e5c4ce; border-top: 8px solid var(--aia-red); border-radius: 0 34px 0 0; box-shadow: 0 32px 90px rgba(102,14,42,.18); position: relative; z-index: 2; }
.login-card-heading { display: flex; align-items: center; gap: 14px; }
.login-card-icon { width: 48px; height: 48px; display: grid; place-items: center; color: white; background: var(--aia-red); border-radius: 15px 15px 4px 15px; }
.login-card-heading span { color: #b04464; font: 800 .7rem Georgia,serif; letter-spacing: .13em; }
.login-card-heading h2 { margin: 3px 0 0; font: 600 1.7rem "Songti SC",serif; }
.login-card-note { margin: 18px 0 20px; color: #74646a; font-size: .88rem; }
.login-field { display: grid; gap: 8px; margin-top: 16px; }
.login-field > span { color: #5f5055; font-size: .88rem; font-weight: 750; }
.login-field > div { height: 48px; padding: 0 13px; display: flex; align-items: center; gap: 10px; background: #fffafb; border: 1px solid #dfc8cf; border-radius: 5px; transition: .2s ease; }
.login-field > div:focus-within { border-color: var(--aia-red); box-shadow: 0 0 0 4px rgba(211,17,69,.08); background: white; }
.login-field svg { flex: none; color: #aa6d7f; }
.login-field input { width: 100%; min-width: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: .92rem; }
.login-field input::placeholder { color: #ac9da2; }
.login-error { margin: 11px 0 0; color: #b20f3a; font-size: .82rem; font-weight: 700; }
.login-submit { width: 100%; height: 48px; margin-top: 22px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; color: white; background: var(--aia-red); border: 1px solid var(--aia-red); border-radius: 5px; font-size: .96rem; font-weight: 800; transition: .2s ease; }
.login-submit:hover { background: #af0e39; transform: translateY(-1px); box-shadow: 0 10px 25px rgba(211,17,69,.22); }
.login-support { margin-top: 15px; display: flex; justify-content: center; gap: 5px; color: #85767b; font-size: .8rem; }
.login-support button { padding: 0; color: var(--aia-red-dark); background: none; border: 0; font-weight: 800; }
.login-security { margin: 19px 0 0; padding-top: 14px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #897a7f; border-top: 1px solid #eee0e4; font-size: .75rem; }
.login-footer { padding: 0 clamp(28px,6vw,96px); display: flex; align-items: center; justify-content: space-between; color: #e9d9de; background: var(--wine); font-size: .76rem; }
.login-footer span { color: #ffb4c6; font-weight: 800; letter-spacing: .08em; }
.login-footer p { margin: 0; }

.assessment-shell { height: 100vh; height: 100dvh; display: grid; grid-template-rows: 68px minmax(0,1fr); overflow: hidden; background: #f8f5f6; }
.assessment-header { grid-row: 1; }
.brand-button { padding: 0; background: none; border: 0; text-align: left; }
.assessment-workspace { min-height: 0; height: 100%; display: grid; grid-template-columns: 245px minmax(0,1fr); overflow: hidden; }
.assessment-rail { min-height: 0; height: 100%; padding: 24px 18px 20px; display: flex; flex-direction: column; color: white; background: var(--wine); overflow-y: auto; }
.back-home { padding: 8px 7px; display: flex; align-items: center; gap: 8px; align-self: flex-start; color: #f7dfe6; background: none; border: 0; border-radius: 4px; font-size: .82rem; font-weight: 700; }
.back-home:hover { color: white; background: rgba(255,255,255,.08); }
.rail-heading { margin: 20px 7px 17px; display: grid; gap: 4px; }
.rail-heading > span { color: #f4a5b9; font: 700 .66rem Georgia,serif; letter-spacing: .13em; }
.rail-heading strong { font: 600 1.25rem "Songti SC",serif; }
.rail-heading small { color: #cdb6bd; font-size: .72rem; }
.setup-progress { margin-bottom: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.setup-progress button { min-height: 56px; padding: 8px 9px; display: grid; grid-template-columns: 24px 1fr; gap: 7px; align-items: center; color: white; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); text-align: left; }
.setup-progress button.active { color: var(--wine); background: white; border-color: white; }
.setup-progress button span { width: 23px; height: 23px; display: grid; place-items: center; color: inherit; border: 1px solid currentColor; border-radius: 50%; font: 700 .64rem Georgia,serif; }
.setup-progress button strong { font-size: .72rem; line-height: 1.3; }
.rail-section-label { margin: 0 7px 8px; color: #d6bdc4; font-size: .67rem; font-weight: 800; letter-spacing: .05em; }
.module-progress { display: grid; gap: 6px; }
.module-progress > button { width: 100%; min-height: 52px; padding: 8px 9px; display: grid; grid-template-columns: 32px 1fr auto; gap: 9px; align-items: center; color: #dbc7cd; background: none; border: 1px solid transparent; border-radius: 3px; text-align: left; font: inherit; }
.module-progress > button.active { color: var(--wine); background: white; border-color: white; box-shadow: 0 8px 24px rgba(39,4,16,.18); }
.module-progress > button.available { color: white; cursor: pointer; }
.module-progress > button.available:hover { background: rgba(255,255,255,.09); }
.module-progress > button.locked { color: #dbc7cd; cursor: default; }
.rail-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.09); }
.module-progress .active .rail-icon { color: white; background: var(--aia-red); }
.module-progress > button > span:nth-child(2) { display: grid; gap: 2px; }
.module-progress strong { font-size: .84rem; }
.module-progress small { color: inherit; opacity: .72; font-size: .67rem; }
.module-progress em { color: inherit; font: 700 .64rem Georgia,serif; font-style: normal; }
.report-rail-button { width: 100%; min-height: 54px; margin-top: 12px; padding: 9px 10px; display: flex; align-items: center; gap: 10px; color: white; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.22); border-radius: 3px; text-align: left; }
.report-rail-button:hover,.report-rail-button.active { color: var(--wine); background: white; border-color: white; }
.report-rail-button > span { display: grid; gap: 2px; }
.report-rail-button strong { font-size: .82rem; }
.report-rail-button small { color: inherit; opacity: .72; font-size: .67rem; }
.rail-note { margin-top: auto; padding: 12px; display: flex; gap: 9px; align-items: flex-start; color: #e8d7dc; background: rgba(255,255,255,.075); border-left: 3px solid #ef849e; }
.rail-note svg { flex: none; color: #ffadbf; }
.rail-note p { margin: 0; font-size: .72rem; line-height: 1.55; }
.assessment-content { min-width: 0; min-height: 0; height: 100%; padding: 27px clamp(26px,4vw,60px) 34px; overflow-y: auto; overscroll-behavior: contain; }
.assessment-topline { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.assessment-topline > div:first-child > span { color: var(--aia-red); font-size: .76rem; font-weight: 800; letter-spacing: .08em; }
.assessment-topline h1 { margin: 7px 0 7px; font: 600 clamp(1.65rem,2.4vw,2.25rem) "Songti SC",serif; }
.assessment-topline p { max-width: 790px; margin: 0; color: #75656b; font-size: .9rem; line-height: 1.55; }
.section-time { min-width: 108px; padding: 10px 12px; display: grid; gap: 4px; text-align: right; border-right: 4px solid var(--aia-red); background: white; }
.section-time span { color: #8c7b81; font-size: .7rem; }
.section-time strong { color: var(--wine); font-size: .92rem; }
.logic-banner { max-width: 1120px; margin: 17px auto; padding: 11px 14px; display: flex; gap: 12px; align-items: flex-start; color: #664f57; background: #fff0f4; border: 1px solid #edccd5; border-left: 4px solid var(--aia-red); }
.logic-banner svg { flex: none; color: var(--aia-red); margin-top: 1px; }
.logic-banner strong { font-size: .85rem; }
.logic-banner p { margin: 3px 0 0; font-size: .8rem; line-height: 1.45; }
.responsibility-form { max-width: 1120px; margin: 0 auto; display: grid; gap: 13px; }
.priority-list { max-width: 1120px; margin: 0 auto 14px; display: grid; gap: 8px; }
.priority-item { min-height: 62px; padding: 9px 12px; display: grid; grid-template-columns: 32px 38px 1fr auto; gap: 11px; align-items: center; background: white; border: 1px solid #e3d5d9; box-shadow: 0 5px 16px rgba(65,25,39,.03); }
.priority-item:has(.priority-drag-handle) { grid-template-columns: 44px 32px 38px minmax(0,1fr) auto; }
.priority-drag-handle { width: 44px; height: 44px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; border: 1px solid #e5cdd5; background: #fff4f7; border-radius: 6px; color: var(--wine); font-size: 26px; line-height: 1; }
.priority-drag-handle:focus-visible { outline: 3px solid var(--aia-red); outline-offset: 2px; }
.priority-dragging { border: 2px solid var(--aia-red); background: #fff3f7; box-shadow: 0 8px 24px #70133224; }
.priority-dragging .priority-drag-handle { cursor: grabbing; background: var(--wine); color: white; }
.priority-is-dragging { user-select: none; -webkit-user-select: none; }
.priority-drag-help { max-width: 1120px; margin: 0 auto 12px; color: #725b64; font-size: 14px; line-height: 1.6; }
.priority-rank { width: 30px; height: 30px; display: grid; place-items: center; color: white; background: var(--wine); border-radius: 50%; font: 700 .76rem Georgia,serif; }
.priority-icon { width: 36px; height: 36px; display: grid; place-items: center; color: var(--aia-red); background: #fff0f4; border-radius: 50%; }
.priority-copy { display: grid; gap: 3px; }
.priority-copy strong { color: var(--wine); font-size: .9rem; }
.priority-copy small { color: #7e6e74; font-size: .76rem; }
.priority-controls { display: flex; gap: 6px; }
.priority-controls button { width: 36px; height: 36px; color: var(--wine); background: #fbf6f8; border: 1px solid #dfcfd4; border-radius: 4px; font-size: 1rem; font-weight: 800; }
.priority-controls button:disabled { color: #cdbfc3; background: #f7f4f5; }
.question-card { padding: 17px 18px 18px; background: white; border: 1px solid #e7d9dd; box-shadow: 0 7px 22px rgba(65,25,39,.035); }
.question-heading { margin-bottom: 14px; display: flex; gap: 11px; align-items: flex-start; }
.question-heading > span { width: 28px; height: 28px; flex: none; display: grid; place-items: center; color: white; background: var(--aia-red); border-radius: 50%; font: 750 .64rem Georgia,serif; }
.question-heading h2 { margin: 0; font-size: 1rem; }
.question-heading p { margin: 4px 0 0; color: #83747a; font-size: .76rem; line-height: 1.45; }
.field-grid { display: grid; gap: 13px 14px; }
.three-columns { grid-template-columns: repeat(3,minmax(0,1fr)); }
.amount-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
.field-grid > label { min-width: 0; display: grid; align-content: start; gap: 6px; }
.field-grid > label > span { color: #5f5055; font-size: .78rem; font-weight: 750; }
.field-grid b { color: var(--aia-red); }
.field-grid > label:not(.guided-range):has(input:required) > span:first-child:not(:has(b))::after,.field-grid > label:not(.guided-range):has(select:required) > span:first-child:not(:has(b))::after { content: " *"; color: var(--aia-red); }
.field-grid input,.field-grid select { width: 100%; min-width: 0; height: 42px; padding: 0 11px; color: var(--ink); background: #fffafb; border: 1px solid #dfcfd4; border-radius: 4px; outline: 0; font-size: .82rem; }
.field-grid input:focus,.field-grid select:focus { border-color: var(--aia-red); box-shadow: 0 0 0 3px rgba(211,17,69,.08); background: white; }
.field-grid input::placeholder { color: #afa1a6; }
.income-members { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.income-member-card { min-width: 0; margin: 0; padding: 13px 14px 14px; background: #fffafb; border: 1px solid #dfcbd1; }
.income-member-card.optional { background: #fcfafb; border-style: dashed; }
.income-member-card legend { padding: 0 8px 0 0; display: flex; align-items: center; gap: 7px; color: var(--wine); }
.income-member-card legend > span { width: 22px; height: 22px; display: grid; place-items: center; color: white; background: var(--aia-red); border-radius: 50%; font: 800 .62rem Georgia,serif; }
.income-member-card legend strong { font-size: .82rem; }
.income-member-card legend small { color: #907d83; font-size: .68rem; }
.member-fields { grid-template-columns: 1fr 1fr; }
.shared-finance { margin-top: 15px; padding-top: 13px; border-top: 1px solid #ede1e4; }
.shared-heading { margin-bottom: 10px; display: flex; align-items: baseline; gap: 10px; }
.shared-heading strong { color: var(--wine); font-size: .84rem; }
.shared-heading span { color: #9a717e; font-size: .72rem; }
.shared-amount-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.health-fields { grid-template-columns: 1fr 1fr; }
.medical-target-grid { grid-template-columns: 1fr 1fr; padding: 13px 14px; background: #fff8fa; border-left: 4px solid var(--aia-red); }
.medical-target-grid > label > small { color: #806f75; font-size: .72rem; line-height: 1.5; }
.family-wish-grid { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 13px 14px; background: #fff8fa; border-left: 4px solid var(--aia-red); }
.family-wish-grid > label > small { color: #806f75; font-size: .72rem; line-height: 1.5; }
.guided-range { min-width: 0; padding: 10px 11px 8px; display: grid; gap: 8px; background: white; border: 1px solid #ead9de; border-radius: 4px; }
.guided-range-heading { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: 7px; }
.guided-range-heading strong { min-width: 0; color: #5f5055; font-size: .78rem; line-height: 1.45; }
.guided-range-exact { width: 132px; height: 34px; justify-self: end; display: grid; grid-template-columns: minmax(0,1fr) auto; }
.guided-range-exact input { width: 100%; min-width: 0; height: 34px; padding: 0 8px; color: var(--wine); background: white; border: 1px solid #d8c1c8; border-radius: 3px 0 0 3px; text-align: right; font-size: .78rem; font-weight: 800; }
.guided-range-exact i { min-width: 34px; padding: 0 7px; display: grid; place-items: center; color: white; background: var(--wine); border-radius: 0 3px 3px 0; font-size: .68rem; font-style: normal; }
.guided-range input[type="range"] { width: calc(100% - 24px); height: 28px; margin-inline: 12px; padding: 0; accent-color: var(--aia-red); background: transparent; border: 0; box-shadow: none; cursor: ew-resize; }
.guided-range input[type="range"]::-webkit-slider-thumb { width: 22px; height: 22px; }
.guided-range-marks { width: calc(100% - 24px); height: 18px; margin-inline: 12px; position: relative; }
.guided-range-marks i { position: absolute; left: var(--mark-position); transform: translateX(-50%); color: #907f84; font-size: .61rem; font-style: normal; white-space: nowrap; }
.guided-range-marks i:first-child { transform: none; }
.guided-range-marks i:last-child { transform: translateX(-100%); }
.guided-range-heading b { color: var(--aia-red); }
.guided-range > small { color: #806f75; font-size: .7rem; line-height: 1.45; }
.range-guidance-note { margin: 9px 0 0; color: #806f75; font-size: .7rem; line-height: 1.5; }
.form-error-summary { margin: 0 0 14px; padding: 12px 14px; display: grid; gap: 4px; color: #6e0b29; background: #fff0f4; border: 1px solid #e7a9b9; border-left: 5px solid var(--aia-red); font-size: .76rem; line-height: 1.5; }
.form-error-summary[hidden] { display: none; }
.form-error-summary strong { font-size: .8rem; }
.form-error-summary small { color: #80636c; }
.field-invalid { border-color: var(--aia-red) !important; box-shadow: 0 0 0 3px rgba(211,17,69,.09) !important; background: #fff7f9 !important; }
.health-medical-limit { grid-column: 1 / -1; }
.health-medical-limit .amount-input { max-width: 420px; }
.health-medical-limit small,.coverage-purpose-note { color: #806f75; font-size: .7rem; line-height: 1.5; }
.coverage-purpose-note { margin: 10px 0 0; padding: 8px 10px; background: #fbf6f8; border-left: 3px solid #d8b6c0; }
.education-members { grid-template-columns: 1fr; }
.education-child-controls { margin: 0 0 14px; padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fbf6f8; border: 1px solid #eadce0; }
.education-child-controls > div:first-child { display: grid; gap: 2px; }
.education-child-controls span { color: #806f75; font-size: .72rem; font-weight: 700; }
.education-child-controls strong { color: var(--wine); font-size: .88rem; }
.education-child-buttons { display: flex; gap: 8px; }
.education-child-buttons button { min-height: 38px; padding: 8px 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--wine); font: inherit; font-size: .75rem; font-weight: 800; background: #fff; border: 1px solid #d9c3ca; cursor: pointer; }
.education-child-buttons button:hover:not(:disabled) { border-color: var(--aia-red); }
.education-child-buttons button:disabled { color: #ad9fa4; background: #f3edef; border-color: #e6dce0; cursor: not-allowed; }
.education-child-buttons .add-child-button { color: #fff; background: var(--aia-red); border-color: var(--aia-red); }
.education-child-buttons .add-child-button span { color: inherit; }
.education-children-empty { padding: 20px; display: grid; justify-items: center; gap: 5px; color: #806f75; text-align: center; background: #fcf8f9; border: 1px dashed #d9c3ca; }
.education-children-empty strong { color: var(--wine); font-size: .84rem; }
.education-children-empty span { font-size: .74rem; line-height: 1.5; }
.profile-children-block { margin-top: 14px; padding-top: 14px; border-top: 1px solid #eadce0; }
.profile-children-block .education-child-controls { margin-bottom: 10px; }
.profile-child-age-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.profile-child-age-grid > label { min-width: 0; display: grid; gap: 6px; }
.profile-child-age-grid > label > span { color: #615258; font-size: .75rem; font-weight: 750; }
.profile-child-note { margin: 9px 0 0; color: #806f75; font-size: .7rem; line-height: 1.5; }
.education-fields { grid-template-columns: minmax(180px,.32fr) 1fr; }
.education-age-note { min-height: 42px; padding: 7px 11px; display: flex; flex-direction: column; justify-content: center; gap: 2px; background: #fbf6f8; border-left: 3px solid #d8b6c0; }
.education-age-note strong { color: var(--wine); font-size: .75rem; }
.education-age-note span { color: #83747a; font-size: .69rem; }
.education-stage-list { grid-column: 1 / -1; display: grid; gap: 8px; }
.education-stage-row { padding: 12px; display: grid; grid-template-columns: 160px 170px 190px minmax(250px,1fr); gap: 11px; align-items: start; background: #fffafb; border: 1px solid #e5d6da; }
.education-stage-row > label { min-width: 0; display: grid; gap: 5px; }
.education-stage-row > label > span { color: #75656b; font-size: .75rem; font-weight: 700; }
.education-stage-row input,.education-stage-row select { height: 38px; }
.education-plan-scope { min-height: 63px; padding: 8px 11px; display: grid; align-content: center; gap: 4px; background: #f8f0f3; border-left: 3px solid var(--aia-red); }
.education-plan-scope span { color: #806d74; font-size: .72rem; font-weight: 700; }
.education-plan-scope strong { color: var(--wine); font-size: .88rem; }
.education-cost-input { grid-column: 1 / -1; padding-top: 2px; }
.education-cost-input .amount-input { max-width: 420px; }
.education-cost-reference { min-height: 30px; color: #8a737b; font-size: .65rem; line-height: 1.4; }
.education-cny-reference { min-height: 34px; padding: 7px 9px; color: #8d1738; font-size: .68rem; font-weight: 800; line-height: 1.45; background: #fff0f4; border-left: 3px solid var(--aia-red); }
.care-fields,.retirement-fields { grid-template-columns: 1fr 1fr; }
.care-wide-field { grid-column: 1 / -1; }
.care-wide-field .amount-input { max-width: 420px; }
.retirement-household-grid { grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; }
.retirement-household-grid > label { min-width: 0; align-content: start; }
.asset-overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.asset-overview-grid .asset-allocation-field { grid-column: 1 / -1; }
.asset-overview-grid .asset-allocation-field .amount-input { max-width: 420px; }
.funds-cashflow-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.funds-assets-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.carried-data { margin-bottom: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.carried-data > div { padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fbf6f8; border-left: 3px solid #d8b6c0; }
.carried-data span { color: #75656b; font-size: .74rem; }
.carried-data strong { color: var(--wine); font-size: .76rem; }
.education-carried { margin: 14px 0 0; }
.calculation-caveat { margin: 9px 0 0; color: #78666c; font-size: .72rem; line-height: 1.5; }
.split-actions button:first-child { margin-right: auto; }
.amount-input { height: 42px; min-height: 42px; align-self: start; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: stretch; }
.amount-input input { height: 42px; min-height: 42px; border-radius: 4px 0 0 4px; }
.amount-input i { height: 42px; min-height: 42px; min-width: 58px; padding: 0 9px; display: grid; place-items: center; align-self: start; color: #7d6d72; background: #f4edef; border: 1px solid #dfcfd4; border-left: 0; border-radius: 0 4px 4px 0; font-size: .7rem; line-height: 1.15; white-space: nowrap; font-style: normal; }
.retirement-household-grid .amount-input,.funds-assets-grid .amount-input,.education-fields .amount-input { max-width: 340px; }
.retirement-lump-field { grid-column: auto; }
.retirement-lump-field .amount-input { max-width: 320px; }
.calculation-preview { padding: 14px 17px; background: #fbf7f8; border: 1px solid #dfcbd1; border-top: 3px solid var(--wine); }
.calculation-title { margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.calculation-title svg { color: var(--aia-red); }
.calculation-title > span { display: grid; gap: 2px; }
.calculation-title strong { font-size: .86rem; }
.calculation-title small { color: #83747a; font-size: .72rem; }
.formula-row { min-height: 32px; padding: 6px 10px; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 12px; color: #67565c; background: white; border-top: 1px solid #eadfe2; font-size: .77rem; }
.formula-row > span { color: #8f4860; font-weight: 800; }
.formula-row.accent { color: var(--wine); background: #f8e7ec; }
.assessment-actions { display: flex; justify-content: flex-end; gap: 10px; }
.assessment-actions button { height: 42px; padding: 0 17px; display: flex; align-items: center; gap: 8px; border-radius: 4px; font-size: .84rem; font-weight: 800; }
.draft-button { color: #6d5c62; background: white; border: 1px solid #d9c8cd; }
.save-module { color: white; background: var(--aia-red); border: 1px solid var(--aia-red); }
.save-module:hover { background: #af0e39; }

.site-shell { height: 100vh; height: 100dvh; display: grid; grid-template-rows: 68px minmax(0, 1fr) 74px; overflow: hidden; }
.site-header {
  height: 68px;
  padding: 0 clamp(24px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .94);
  border-bottom: 3px solid var(--aia-red);
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand-mark {
  width: 43px;
  height: 36px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--aia-red);
  clip-path: polygon(0 0, 82% 0, 100% 28%, 86% 100%, 0 100%);
  font: 800 .85rem Arial, sans-serif;
  letter-spacing: -.06em;
}
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 1rem; letter-spacing: .045em; }
.brand-copy small { display: flex; align-items: center; gap: 8px; color: #9b7480; font: 600 .72rem Georgia, serif; letter-spacing: .1em; }
.brand-developer { padding-left: 8px; color: #a34863; border-left: 1px solid #dfc8cf; font-family: "PingFang SC","Microsoft YaHei",sans-serif; letter-spacing: .04em; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.advisor-mode { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .88rem; }
.advisor-mode i { width: 7px; height: 7px; background: #43a267; border-radius: 50%; box-shadow: 0 0 0 4px #e9f5ed; }
.advisor-identity { display: flex; align-items: center; gap: 10px; padding-right: 18px; border-right: 1px solid #ead9de; }
.advisor-avatar { width: 36px; height: 36px; display: grid; place-items: center; color: white; background: var(--wine); border-radius: 50%; box-shadow: 0 0 0 4px #f8e7ec; font: 800 .76rem Arial,sans-serif; letter-spacing: .03em; }
.advisor-account { display: grid; gap: 1px; line-height: 1.1; }
.advisor-account strong { color: #4b373e; font-size: .9rem; }
.advisor-account small { color: #9b7480; font: 700 .7rem Georgia,serif; letter-spacing: .08em; }
.login-button {
  height: 39px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--aia-red-dark);
  background: white;
  border: 1px solid #dfbdc7;
  border-radius: 5px;
  font-size: .9rem;
  font-weight: 700;
  transition: .2s ease;
}
.login-button:hover { border-color: var(--aia-red); background: var(--rose-pale); }

.hero {
  min-height: 0;
  height: 100%;
  padding: clamp(18px, 2.8vh, 32px) clamp(24px, 6vw, 92px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .72fr);
  gap: clamp(38px, 6vw, 92px);
  align-items: center;
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(211, 17, 69, .035) 1px, transparent 1px),
    linear-gradient(rgba(211, 17, 69, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, black, transparent 74%);
}
.hero-geometry { position: absolute; z-index: -2; pointer-events: none; }
.hero-geometry-one {
  width: 530px; height: 390px; right: -175px; top: -92px;
  background: linear-gradient(145deg, var(--aia-red) 0 43%, var(--coral) 43% 69%, var(--rose) 69%);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 68% 78%, 47% 100%, 0 55%);
  opacity: .96;
}
.hero-geometry-two {
  width: 335px; height: 210px; left: -105px; bottom: -80px;
  background: linear-gradient(145deg, var(--rose), var(--coral));
  clip-path: polygon(0 30%, 55% 0, 100% 55%, 75% 100%, 0 82%);
  opacity: .62;
}
.hero-copy { position: relative; z-index: 1; max-width: 790px; }
.eyebrow {
  margin: 0 0 13px;
  color: #c7194b;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .18em;
}
.hero h1 {
  margin: 0;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-weight: 500;
  font-size: clamp(2.65rem, 4vw, 3.9rem);
  line-height: 1.1;
  letter-spacing: -.055em;
}
.hero h1 span { display: block; color: var(--aia-red); }
.lead {
  max-width: 690px;
  margin: 16px 0 12px;
  color: #735e65;
  font-size: 1rem;
  line-height: 1.58;
}
.framework-card { max-width: 730px; margin-top: 14px; background: rgba(255,255,255,.82); border: 1px solid #e7ccd4; border-top: 4px solid var(--aia-red); box-shadow: 0 12px 30px rgba(105,17,46,.06); }
.framework-heading { padding: 7px 12px 6px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid #f0e1e5; }
.framework-heading span { color: var(--aia-red); font: 700 .72rem Georgia, serif; letter-spacing: .12em; }
.framework-heading strong { font-size: .88rem; }
.framework-methods { display: grid; grid-template-columns: repeat(4,1fr); }
.framework-methods > div { min-height: 46px; padding: 7px 10px; display: grid; align-content: center; gap: 3px; border-right: 1px solid #f0e1e5; }
.framework-methods > div:last-child { border-right: 0; }
.framework-methods span { color: #ae6a7e; font: 700 .68rem Georgia, serif; letter-spacing: .04em; }
.framework-methods strong { font-size: .82rem; }
.framework-line { min-height: 27px; padding: 5px 10px; display: grid; grid-template-columns: 82px 1fr; gap: 8px; align-items: center; background: #fff7f9; border-top: 1px solid #f0e1e5; }
.framework-line > span { color: #a44a65; font-size: .72rem; font-weight: 800; }
.framework-line p { margin: 0; color: #6f6267; font-size: .75rem; line-height: 1.4; }
.framework-line.output-line { background: #f9e7ec; }
.framework-line.output-line p { color: #68112e; font-weight: 700; }
.scope-block { max-width: 730px; margin-top: 14px; }
.scope-heading { margin-bottom: 8px; }
.scope-heading h2 { margin: 0; font: 600 1.08rem "Songti SC", serif; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.module-card { min-height: 55px; padding: 8px 12px; display: flex; gap: 9px; align-items: center; background: rgba(255, 255, 255, .56); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.module-icon { width: 31px; height: 31px; display: grid; place-items: center; color: var(--aia-red); background: var(--rose-pale); border-radius: 50%; font-size: 1rem; font-style: normal; font-weight: 700; }
.module-card strong { font-size: .9rem; line-height: 1.25; }

.start-panel {
  width: 100%;
  max-width: 520px;
  justify-self: end;
  padding: 20px 22px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(211, 17, 69, .14);
  border-top: 8px solid var(--aia-red);
  border-radius: 0 32px 0 0;
  box-shadow: 0 30px 80px rgba(102, 14, 42, .17);
  position: relative;
  z-index: 2;
}
.method-banner { margin: 0 0 13px; padding: 9px 11px; display: grid; grid-template-columns: 34px 1fr auto; gap: 9px; align-items: center; background: #fff1f4; border-left: 4px solid var(--aia-red); }
.method-icon { width: 32px; height: 32px; display: grid; place-items: center; color: white; background: var(--aia-red); border-radius: 50%; font-size: .9rem; font-weight: 800; }
.method-banner span { display: block; margin-bottom: 3px; color: #a34863; font-size: .72rem; font-weight: 800; letter-spacing: .07em; }
.method-banner strong { display: block; font-size: .84rem; line-height: 1.4; }
.method-banner p { margin: 4px 0 0; color: #7c6870; font-size: .75rem; line-height: 1.45; }
.method-banner button { padding: 6px; color: #a57986; background: none; border: 0; border-radius: 50%; }
.method-banner button:hover { color: var(--aia-red); background: white; }
.panel-heading { margin-bottom: 11px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.step-kicker { color: var(--aia-red); font: 800 .74rem Georgia, serif; letter-spacing: .14em; }
.panel-heading h2 { margin: 3px 0 0; font: 600 1.45rem "Songti SC", serif; }
.checkup-seal { width: 52px; height: 52px; display: grid; place-content: center; text-align: center; border: 1px solid #e5c4ce; border-radius: 50%; box-shadow: inset 0 0 0 4px white, inset 0 0 0 5px #f1dee4; }
.checkup-seal span { color: var(--aia-red); font: 600 1.35rem Georgia, serif; line-height: 1; }
.checkup-seal small { margin-top: 3px; color: var(--muted); font-size: .66rem; }

.entry-card { padding: 14px 16px; border: 1px solid var(--line); }
.primary-entry { background: #fffafb; border-color: #e6b9c6; box-shadow: 0 10px 24px rgba(131, 23, 55, .06); }
.secondary-entry { margin-top: 8px; padding-bottom: 14px; background: white; }
.entry-topline { display: flex; justify-content: space-between; align-items: center; }
.entry-number { color: #bd3159; font: 700 .74rem Georgia, serif; letter-spacing: .09em; }
.recommend-tag, .quiet-tag { padding: 5px 8px; font-size: .7rem; font-weight: 750; }
.recommend-tag { color: var(--aia-red-dark); background: var(--rose); }
.quiet-tag { color: #8b7b80; background: #f4eff1; }
.entry-heading { margin: 8px 0 7px; display: flex; align-items: center; gap: 11px; }
.entry-heading.compact { margin-bottom: 9px; }
.entry-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; color: white; background: var(--aia-red); border-radius: 12px 12px 4px 12px; }
.entry-icon.pale { color: var(--aia-red); background: var(--rose-pale); }
.entry-heading h3 { margin: 0; font-size: 1.04rem; }
.entry-heading p { margin: 4px 0 0; color: var(--muted); font-size: .8rem; }
.entry-description { margin: 0 0 9px; color: #6d5d62; font-size: .82rem; line-height: 1.45; }
.entry-points { margin: 14px 0 17px; display: flex; flex-wrap: wrap; gap: 7px 16px; }
.entry-points span { display: flex; align-items: center; gap: 6px; color: #755f66; font-size: .78rem; }
.entry-points i { width: 5px; height: 5px; background: var(--coral); border-radius: 50%; }
.primary-action {
  width: 100%; height: 41px; padding: 0 15px;
  display: flex; align-items: center; justify-content: space-between;
  color: white; background: var(--aia-red); border: 1px solid var(--aia-red); border-radius: 5px;
  font-size: .9rem; font-weight: 750; transition: .2s ease;
}
.primary-action:hover { background: #af0e39; transform: translateY(-1px); box-shadow: 0 9px 22px rgba(211, 17, 69, .21); }
.invite-label { display: block; margin-bottom: 7px; color: #7d6b71; font-size: .78rem; font-weight: 700; }
.quick-lookup-shell { position: relative; }
.invite-row { display: grid; grid-template-columns: 1fr 48px; }
.invite-row input { min-width: 0; height: 43px; padding: 0 12px; color: var(--ink); background: #fffafb; border: 1px solid #e2cbd2; border-right: 0; border-radius: 5px 0 0 5px; outline: none; font-size: .84rem; }
.invite-row input:focus { border-color: var(--aia-red); box-shadow: 0 0 0 3px rgba(211, 17, 69, .08); }
.invite-row button { display: grid; place-items: center; color: white; background: var(--wine); border: 1px solid var(--wine); border-radius: 0 5px 5px 0; }
.invite-row button:hover { background: var(--aia-red); border-color: var(--aia-red); }
.quick-lookup-results { max-height: 230px; overflow: auto; position: absolute; z-index: 20; left: 0; right: 0; bottom: calc(100% + 5px); background: white; border: 1px solid #dbc8cf; border-radius: 6px; box-shadow: 0 15px 32px rgba(67,20,36,.16); }
.quick-client-match { width: 100%; padding: 10px 11px; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ink); background: white; border: 0; border-bottom: 1px solid #eee2e6; text-align: left; }
.quick-client-match:last-child { border-bottom: 0; }
.quick-client-match:hover { background: #fff4f7; }
.quick-client-match > span { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 9px; align-items: baseline; }
.quick-client-match strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--wine); font-size: .84rem; }
.quick-client-match small { grid-column: 1 / -1; color: #7b6b71; font-size: .68rem; line-height: 1.35; }
.quick-client-match code { color: #9a3a58; font-size: .62rem; }
.quick-client-match em { flex: none; color: var(--aia-red); font-size: .7rem; font-style: normal; font-weight: 800; }
.quick-match-empty { padding: 12px; display: grid; gap: 4px; }
.quick-match-empty strong { color: var(--wine); font-size: .8rem; }
.quick-match-empty span { color: #7b6b71; font-size: .7rem; line-height: 1.4; }
.panel-footnote { margin-top: 9px; display: flex; gap: 8px; align-items: flex-start; color: #82747a; font-size: .72rem; line-height: 1.4; }
.panel-footnote svg { flex: none; margin-top: 1px; color: #b75a76; }

.how-it-works {
  min-height: 0;
  padding: 12px clamp(24px, 6vw, 92px);
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.6fr);
  gap: 48px;
  align-items: center;
  color: white;
  background: var(--wine);
  position: relative;
}
.how-it-works::after { content: ""; width: 170px; height: 100%; position: absolute; right: 0; top: 0; background: var(--aia-red); clip-path: polygon(64% 0, 100% 0, 100% 100%, 0 100%); opacity: .8; }
.process-intro { display: grid; gap: 3px; position: relative; z-index: 1; }
.process-intro span { color: #f4a5b9; font: 700 .7rem Georgia, serif; letter-spacing: .14em; }
.process-intro strong { font: 600 1.1rem "Songti SC", serif; }
.process-steps { display: grid; grid-template-columns: 1fr 42px 1fr 42px 1fr; gap: 10px; align-items: center; position: relative; z-index: 1; }
.process-steps > div { display: grid; grid-template-columns: 33px 1fr; gap: 9px; align-items: start; }
.process-steps > div > span { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #b4677e; border-radius: 50%; color: #ffbdcc; font: 700 .58rem Georgia, serif; }
.process-steps p { margin: 0; color: #eedee3; font-size: .76rem; line-height: 1.45; }
.process-steps strong { display: block; margin-bottom: 2px; color: white; font-size: .84rem; }
.process-steps > i { height: 1px; background: #a95c74; position: relative; }
.process-steps > i::after { content: ""; width: 5px; height: 5px; position: absolute; right: 0; top: -2px; background: #ff9fb5; border-radius: 50%; }

.site-footer { min-height: 58px; padding: 16px clamp(24px, 7vw, 110px); display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; color: #8e747d; background: white; border-top: 1px solid var(--line); font-size: .66rem; }
.site-footer > span { color: var(--aia-red); font: 700 .61rem Georgia, serif; letter-spacing: .12em; }
.site-footer p { margin: 0; }
.site-footer small { justify-self: end; }
.report-heading { max-width: 1120px; margin: 0 auto 13px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.report-heading > div:first-child > span { color: var(--aia-red); font: 800 .7rem Georgia,serif; letter-spacing: .12em; }
.report-heading h1 { margin: 6px 0; font: 600 clamp(1.75rem,2.5vw,2.35rem) "Songti SC",serif; }
.report-heading p { margin: 0; color: #75656b; font-size: .82rem; }
.report-actions { display: flex; gap: 8px; }
.report-actions button { min-height: 40px; padding: 8px 12px; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; color: var(--wine); background: white; border: 1px solid #dcc7ce; font-size: .76rem; font-weight: 800; white-space: nowrap; word-break: keep-all; overflow-wrap: normal; }
.report-actions button > span { flex: 0 0 auto; white-space: nowrap; word-break: keep-all; }
.report-demo-note { max-width: 1120px; margin: 0 auto 12px; padding: 9px 12px; display: flex; align-items: center; gap: 9px; color: #755b20; background: #fff9e8; border: 1px solid #ead9a8; font-size: .72rem; }
.report-demo-note svg { flex: none; }
.report-demo-note p { margin: 0; line-height: 1.5; }
.family-scope-note { max-width: 1120px; margin: 0 auto 12px; padding: 10px 12px; display: flex; align-items: center; gap: 9px; color: #654e57; background: #fff; border: 1px solid #e6d7dc; border-left: 4px solid var(--wine); font-size: .72rem; }
.family-scope-note svg,.family-scope-note > span { flex: none; color: var(--aia-red); font-weight: 900; }
.family-scope-note p { margin: 0; line-height: 1.5; }
.report-cover-card { max-width: 1120px; margin: 0 auto 14px; padding: 19px 21px; display: grid; grid-template-columns: .75fr 1.7fr .8fr; gap: 20px; color: white; background: linear-gradient(130deg,var(--wine),#9f153f 72%,var(--aia-red)); box-shadow: 0 16px 38px rgba(90,13,40,.18); }
.report-client,.report-meta { display: grid; align-content: center; gap: 4px; }
.report-client span,.report-summary span,.report-meta span { color: #f4b7c7; font-size: .68rem; font-weight: 800; letter-spacing: .06em; }
.report-client strong { font: 600 1.35rem "Songti SC",serif; }
.report-client small,.report-meta small { color: #ead7dc; font-size: .7rem; }
.report-summary { padding: 0 20px; display: grid; align-content: center; gap: 5px; border-left: 1px solid rgba(255,255,255,.22); border-right: 1px solid rgba(255,255,255,.22); }
.report-summary strong { font-size: 1.05rem; }
.report-summary p { margin: 0; color: #f2e3e7; font-size: .76rem; line-height: 1.5; }
.report-meta { gap: 10px; }
.report-meta > div { display: grid; gap: 2px; }
.report-meta strong { font-size: 1rem; }
.report-section,.report-next-step { max-width: 1120px; margin: 0 auto 14px; padding: 17px 18px; background: white; border: 1px solid #e4d5da; box-shadow: 0 7px 22px rgba(65,25,39,.035); }
.report-section-heading { margin-bottom: 13px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.report-section-heading > div { display: flex; align-items: center; gap: 9px; }
.report-section-heading > div > span { width: 27px; height: 27px; display: grid; place-items: center; color: white; background: var(--aia-red); border-radius: 50%; font: 800 .62rem Georgia,serif; }
.report-section-heading h2 { margin: 0; color: var(--wine); font-size: 1rem; }
.report-section-heading > p { max-width: 610px; margin: 0; color: #826f75; font-size: .7rem; line-height: 1.45; text-align: right; }
.coverage-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.coverage-print-row { display: contents; }
.metric-print-row { display: contents; }
.coverage-card { min-width: 0; padding: 13px; background: #fffafb; border: 1px solid #eadde1; }
.coverage-card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.coverage-card-title strong { color: var(--wine); font-size: .83rem; }
.coverage-card-title span { padding: 4px 6px; border-radius: 999px; font-size: .61rem; font-weight: 800; }
.coverage-card-title .high { color: #a50f38; background: #ffe7ed; }
.coverage-card-title .medium { color: #875b11; background: #fff4d7; }
.coverage-card-title .steady { color: #1e704e; background: #e7f5ed; }
.coverage-card-body { margin-top: 10px; display: grid; grid-template-columns: 94px minmax(0,1fr); gap: 12px; align-items: center; }
.coverage-ring { --coverage: 90deg; width: 90px; height: 90px; display: grid; place-items: center; background: conic-gradient(var(--aia-red) 0 var(--coverage),#e3dcde var(--coverage) 360deg); border-radius: 50%; position: relative; }
.coverage-ring::after { content: ""; position: absolute; z-index: 1; inset: 11px; background: white; border-radius: 50%; }
.ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.ring-svg circle { fill: none; stroke-width: 12; }
.ring-track { stroke: #e3dcde; }
.ring-value { stroke: var(--aia-red); }
.coverage-ring > span,.score-ring > span { position: relative; z-index: 2; display: grid; text-align: center; }
.coverage-ring strong { color: var(--wine); font-size: 1rem; }
.coverage-ring small { color: #8a767c; font-size: .59rem; }
.coverage-card dl { margin: 0; display: grid; gap: 5px; }
.coverage-card dl > div { display: flex; justify-content: space-between; gap: 8px; }
.coverage-card dt { color: #89777d; font-size: .65rem; }
.coverage-card dd { margin: 0; color: #4d4045; font-size: .68rem; font-weight: 800; }
.coverage-card .gap { padding-top: 5px; border-top: 1px solid #eadde1; }
.coverage-card .gap dd { color: var(--aia-red); }
.coverage-ring.pending { background: #e6dfe1; }
.coverage-source { margin: 9px 0 0; padding-top: 8px; color: #85747a; border-top: 1px dashed #e1d2d7; font-size: .62rem; line-height: 1.4; }
.member-coverage-list { margin-top: 10px; padding-top: 9px; display: grid; gap: 7px; border-top: 1px solid #eadde1; }
.member-coverage-list > div { display: grid; grid-template-columns: 90px minmax(52px,1fr) auto; gap: 7px; align-items: center; }
.member-coverage-list span { color: #6e5d63; font-size: .62rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-coverage-list i { height: 5px; overflow: hidden; background: #e8e0e3; border-radius: 999px; }
.member-coverage-list i b { width: var(--member-coverage); height: 100%; display: block; background: var(--aia-red); border-radius: inherit; }
.member-coverage-list strong { color: #6f5961; font-size: .6rem; text-align: right; }
.metric-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; }
.metric-grid article { min-width: 0; padding: 12px; display: grid; gap: 5px; background: #fbf7f8; border-top: 3px solid #d9bec7; }
.metric-grid span { color: #806d73; font-size: .67rem; }
.metric-grid strong { color: var(--wine); font-size: 1rem; }
.metric-grid small { color: #8c7b80; font-size: .62rem; line-height: 1.4; }
.metric-grid .warning-text { color: #aa6130; }
.metric-grid .steady-text { color: #30785a; }
.stress-table { border: 1px solid #eadde1; }
.stress-row { min-height: 43px; padding: 8px 11px; display: grid; grid-template-columns: 1.65fr .75fr .75fr .8fr; gap: 10px; align-items: center; border-top: 1px solid #eee3e6; font-size: .72rem; }
.stress-row:first-child { border-top: 0; }
.stress-head { color: white; background: var(--wine); font-weight: 800; }
.stress-row strong { color: #55454b; font-size: .72rem; }
.stress-row em { padding: 5px 7px; justify-self: start; border-radius: 999px; font-size: .64rem; font-style: normal; font-weight: 800; }
.risk-high { color: #a50f38; background: #ffe6ec; }
.risk-medium { color: #875b11; background: #fff4d7; }
.risk-steady { color: #1e704e; background: #e7f5ed; }
.report-formula-note { margin: 10px 0 0; padding: 10px 12px; color: #705d64; background: #fbf6f8; border-left: 3px solid var(--aia-red); font-size: .68rem; line-height: 1.55; }
.report-formula-note strong { color: var(--wine); }
#report-score-panel { margin-top: 14px; display: grid; gap: 11px; }
.financial-score-card { padding: 16px; display: grid; gap: 14px; background: #fff; border: 1px solid #e6d8dd; border-top: 4px solid var(--aia-red); }
.financial-score-card.score-critical { border-top-color: #a80e38; }
.financial-score-card.score-warning,.financial-score-card.score-low { border-top-color: #d47617; }
.financial-score-card.score-building { border-top-color: #ae7d1d; }
.financial-score-card.score-steady,.financial-score-card.score-good,.financial-score-card.score-strong { border-top-color: #287858; }
.financial-score-main { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 17px; align-items: center; }
.score-ring { width: 108px; height: 108px; display: grid; place-items: center; position: relative; flex: none; background: conic-gradient(var(--aia-red) 0 var(--score-angle),#e8e0e3 var(--score-angle) 360deg); border-radius: 50%; }
.score-ring::after { content: ""; position: absolute; z-index: 1; inset: 12px; background: white; border-radius: 50%; }
.score-ring > span { line-height: 1; }
.score-ring strong { color: var(--wine); font-size: 1.75rem; }
.score-ring small { margin-top: 4px; color: #8b777e; font-size: .62rem; }
.financial-score-main > div:last-child > span { color: #9b5268; font-size: .68rem; font-weight: 800; letter-spacing: .03em; }
.financial-score-main h3 { margin: 4px 0; color: var(--wine); font-size: 1.16rem; }
.financial-score-main p { margin: 0; color: #77666c; font-size: .72rem; line-height: 1.55; }
.financial-score-main p b { color: var(--aia-red); }
.financial-score-main p span { color: var(--wine); font-weight: 750; }
.module-score-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.module-score-grid > div { min-width: 0; padding: 10px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 8px; background: #fbf7f8; border: 1px solid #ecE1e4; }
.module-score-grid span { min-width: 0; color: #6e5c63; font-size: .66rem; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.module-score-grid strong { color: var(--wine); font-size: .7rem; }
.module-score-grid i { grid-column: 1 / -1; height: 5px; overflow: hidden; background: #e5dcdf; border-radius: 999px; }
.module-score-grid i b { height: 100%; display: block; background: linear-gradient(90deg,#df1249,var(--wine)); border-radius: inherit; }
.module-score-grid small { grid-column: 1 / -1; color: #9a898e; font-size: .57rem; }
.score-method { margin: 0; padding-top: 10px; color: #89777d; border-top: 1px dashed #e5d7dc; font-size: .62rem; line-height: 1.5; }
.benchmark-case-card { padding: 15px 16px; background: linear-gradient(135deg,#68122f,#8d173d); color: white; }
.benchmark-kicker { display: flex; align-items: center; gap: 9px; }
.benchmark-kicker span { color: #ef9caf; font: 800 .57rem Georgia,serif; letter-spacing: .11em; }
.benchmark-kicker strong { font-size: .75rem; }
.benchmark-case-body { margin-top: 12px; display: grid; grid-template-columns: 1.35fr .85fr; gap: 19px; }
.benchmark-case-body > div:first-child > span,.benchmark-action > span { color: #f1b5c4; font-size: .62rem; font-weight: 800; }
.benchmark-case-body h3 { margin: 4px 0; font-size: 1rem; }
.benchmark-case-body p { margin: 0; color: #f1e2e7; font-size: .68rem; line-height: 1.55; }
.benchmark-tags { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 5px; }
.benchmark-tags b { padding: 4px 7px; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; font-size: .58rem; }
.benchmark-action { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.22); }
.benchmark-action p { margin-top: 5px; }
.benchmark-action ul { margin: 7px 0 0; padding-left: 17px; display: grid; gap: 4px; color: #fff; font-size: .65rem; line-height: 1.45; }
.benchmark-note { margin: 12px 0 0; padding-top: 9px; color: #dcbfc8; border-top: 1px solid rgba(255,255,255,.17); font-size: .59rem; line-height: 1.48; }

#report-planning-logic { margin-top: 14px; }
.planning-logic-block { display: grid; gap: 12px; }
.planning-logic-heading { padding: 14px 16px; background: linear-gradient(120deg,#fff4f7,#fff); border: 1px solid #eadde1; border-left: 4px solid var(--aia-red); }
.planning-logic-heading > span { color: var(--aia-red); font: 800 .57rem Georgia,serif; letter-spacing: .12em; }
.planning-logic-heading h2 { margin: 4px 0; color: var(--wine); font-size: 1.03rem; }
.planning-logic-heading p { margin: 0; color: #78666d; font-size: .68rem; line-height: 1.5; }
.planning-visual-card { padding: 15px; display: grid; grid-template-columns: minmax(300px,.88fr) minmax(0,1.12fr); gap: 18px; background: #fff; border: 1px solid #e6d8dd; }
.pyramid-report-card > .planning-logic-heading { grid-column: 1 / -1; margin: 0; }
.pyramid-report-card::before,.iceberg-report-card::before { grid-column: 1 / -1; margin: -2px 0 -3px; padding: 0 0 10px; color: var(--wine); border-bottom: 1px solid #eadde1; font-size: 1.02rem; font-weight: 850; letter-spacing: .01em; }
.pyramid-report-card::before { content: "01  家庭保障与财务规划金字塔"; }
.iceberg-report-card::before { content: "02  家庭健康风险冰山图"; }
.planning-visual { min-width: 0; display: grid; align-content: start; }
.planning-visual svg { width: 100%; height: auto; display: block; }
.planning-visual > p { margin: 7px 4px 0; color: #78666d; font-size: .64rem; line-height: 1.45; }
.pyramid-svg .pyramid-layer { stroke: none; }
.pyramid-svg .pyramid-layer.active { filter: brightness(1.04); }
.pyramid-svg > path { stroke-width: 2; }
.pyramid-svg > line { stroke-width: 3; opacity: .9; }
.pyramid-svg .pyramid-growth { fill: #b96868; }
.pyramid-svg .pyramid-manage { fill: url(#pyramidManage); }
.pyramid-svg .pyramid-risk { fill: url(#pyramidRisk); stroke: #efc56a; stroke-width: 4; }
.pyramid-label { fill: #fff; stroke: none; filter: drop-shadow(0 1px 1px rgba(53,4,22,.55)); font: 850 22px "PingFang SC","Microsoft YaHei",sans-serif; letter-spacing: .02em; }
.pyramid-small { display: none; }
.pyramid-motto { fill: #fff; stroke: none; filter: drop-shadow(0 1px 1px rgba(53,4,22,.48)); font: 800 13.5px "Songti SC",serif; letter-spacing: .1em; }
.pyramid-top-label { font-size: 15.5px; transform: translateY(31px); }
.pyramid-svg text:nth-of-type(3) { transform: translateY(15px); }
.pyramid-svg text:nth-of-type(5) { transform: translateY(-2px); }
.pyramid-svg text:nth-of-type(6) { transform: translateY(12px); }
.pyramid-svg text:nth-of-type(8) { transform: translateY(-4px); }
.planning-analysis { min-width: 0; display: grid; align-content: center; gap: 8px; }
.pyramid-layer-list { height: 100%; grid-template-rows: repeat(3,minmax(0,1fr)); align-content: stretch; }
.logic-layer-row { min-width: 0; padding: 14px 15px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 13px; align-items: center; background: #fbf7f8; border-left: 5px solid #cdb9c0; }
.logic-layer-row > span { padding: 5px 8px; color: #fff; background: #8f6574; border-radius: 999px; font-size: .66rem; font-weight: 850; }
.logic-layer-row strong { color: var(--wine); font-size: .9rem; line-height: 1.3; }
.logic-layer-row p { margin: 5px 0 0; display: block; color: #67565d; font-size: .7rem; font-weight: 650; line-height: 1.42; }
.logic-layer-row p::before { content: "对应配置  "; color: #a43d5e; font-size: .61rem; font-weight: 850; letter-spacing: .03em; }
.logic-layer-row small { margin-top: 5px; display: block; color: #89757c; font-size: .65rem; line-height: 1.4; }
.logic-layer-row > b { color: var(--wine); font-size: .9rem; text-align: right; white-space: nowrap; }
.logic-layer-row.covered { border-left-color: #2f805f; }
.logic-layer-row.building { border-left-color: #b58f34; }
.logic-layer-row.gap { border-left-color: var(--aia-red); }
.logic-layer-row.pending { border-left-color: #9c8c91; }
.planning-conclusion { margin: 2px 0 0; padding: 10px 11px; color: #6d5960; background: #fff2f5; border-left: 3px solid var(--aia-red); font-size: .66rem; line-height: 1.52; }
.planning-conclusion strong { display: block; margin-bottom: 2px; color: var(--wine); font-size: .7rem; }
.pyramid-principle,.pyramid-conclusion { grid-column: 1 / -1; }
.pyramid-principle { margin: 0; padding: 11px 14px; color: #6e5961; background: linear-gradient(90deg,#fce9ef,#fff); border-left: 5px solid var(--wine); font-size: .7rem; line-height: 1.55; text-align: center; }
.pyramid-principle strong { margin-right: 7px; color: var(--wine); font-size: .78rem; }
.pyramid-conclusion { margin-top: -4px; }
.iceberg-visual { align-content: center; }
.iceberg-label { font: 800 18px "PingFang SC","Microsoft YaHei",sans-serif; }
.iceberg-small { font: 600 13px "PingFang SC","Microsoft YaHei",sans-serif; }
.iceberg-label.dark,.iceberg-small.dark { fill: #7a1235; }
.iceberg-label.light,.iceberg-small.light { fill: #fff; paint-order: stroke; stroke: #0b4f70; stroke-width: 1.5px; stroke-linejoin: round; }
.iceberg-visual blockquote { margin: 8px 4px 0; color: var(--aia-red); font: 700 1rem "Songti SC",serif; text-align: center; }
.iceberg-analysis { min-width: 0; display: grid; gap: 10px; }
.iceberg-analysis section { min-width: 0; }
.iceberg-analysis header { margin-bottom: 7px; display: flex; align-items: center; gap: 8px; }
.iceberg-analysis header span { padding: 4px 7px; color: #fff; background: var(--aia-red); border-radius: 999px; font-size: .58rem; font-weight: 800; }
.iceberg-analysis section:nth-child(2) header span { background: #317fa4; }
.iceberg-analysis header strong { color: var(--wine); font-size: .72rem; }
.logic-status-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.logic-status-grid.below { grid-template-columns: repeat(2,minmax(0,1fr)); }
.logic-status { min-width: 0; padding: 8px 9px; background: #fbf7f8; border-top: 3px solid #c9b7bd; }
.logic-status.covered { border-top-color: #2f805f; }
.logic-status.building { border-top-color: #b58f34; }
.logic-status.gap { border-top-color: var(--aia-red); }
.logic-status.pending { border-top-color: #97878c; }
.logic-status > span { display: block; color: #806d73; font-size: .56rem; font-weight: 800; }
.logic-status > strong { margin-top: 3px; display: block; color: var(--wine); font-size: .68rem; line-height: 1.35; }
.logic-status > p { margin: 4px 0 0; color: #806f75; font-size: .55rem; line-height: 1.4; }

.dependent-coverage-section { margin-top: 12px; padding: 14px; background: #fbf7f8; border: 1px solid #e8dce0; }
.dependent-coverage-heading { display: grid; gap: 2px; }
.dependent-coverage-heading > span { color: var(--aia-red); font-size: .6rem; font-weight: 850; letter-spacing: .08em; }
.dependent-coverage-heading h3 { margin: 0; color: var(--wine); font-size: .88rem; }
.dependent-coverage-heading p { margin: 0; color: #806f75; font-size: .64rem; line-height: 1.45; }
.dependent-coverage-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.dependent-coverage-card { min-width: 0; padding: 10px 11px; display: grid; gap: 4px; background: white; border-left: 3px solid #d58b9f; }
.dependent-coverage-card.covered { border-left-color: #2f805f; }
.dependent-coverage-card.gap { border-left-color: var(--aia-red); }
.dependent-coverage-card.pending { border-left-color: #b58f34; }
.dependent-coverage-card > span { color: #7a666d; font-size: .62rem; font-weight: 800; }
.dependent-coverage-card > div { display: flex; align-items: baseline; gap: 3px; }
.dependent-coverage-card strong { color: var(--wine); font-size: 1.28rem; line-height: 1; }
.dependent-coverage-card small { color: #8a777d; font-size: .6rem; }
.dependent-coverage-card p { margin: 0; color: #65545b; font-size: .64rem; line-height: 1.42; }
.dependent-conclusion { margin-top: 8px; padding: 9px 10px; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 9px; align-items: start; background: #fff; border: 1px solid #eadde1; }
.dependent-conclusion strong { color: var(--aia-red); font-size: .67rem; }
.dependent-conclusion p { margin: 0; color: #6c5a61; font-size: .63rem; line-height: 1.48; }
.medical-emergency-line { margin-top: 8px; padding: 9px 10px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 10px; background: #f5eaee; }
.medical-emergency-line span { color: #715d64; font-size: .63rem; font-weight: 800; }
.medical-emergency-line strong { color: var(--wine); font-size: .82rem; }
.medical-emergency-line small { grid-column: 1 / -1; color: #8b787e; font-size: .59rem; line-height: 1.4; }
#report-formula-breakdown { margin-top: 13px; display: grid; gap: 9px; }
.report-breakdown-intro { padding: 11px 13px; display: grid; gap: 3px; color: #725f66; background: #fff3f6; border-left: 4px solid var(--aia-red); font-family: "PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif; }
.report-breakdown-intro strong { color: var(--wine); font-size: .79rem; }
.report-breakdown-intro span { font-size: .68rem; line-height: 1.5; }
.report-breakdown-card { padding: 12px 13px; color: #68575e; background: #fff; border: 1px solid #eadde1; font-family: "PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif; }
.report-breakdown-head { margin-bottom: 7px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.report-breakdown-head span { color: var(--wine); font-size: .84rem; font-weight: 800; }
.report-breakdown-head strong { color: #a33c5c; font-size: .63rem; }
.report-breakdown-card > p { margin: 7px 0; font-size: .7rem; line-height: 1.58; }
.report-breakdown-card > p b { color: var(--wine); }
.protection-budget-card { margin-top: 11px; padding: 13px 14px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; color: white; background: linear-gradient(120deg,var(--wine),#93143a); }
.protection-budget-card > div { display: grid; align-content: center; gap: 4px; }
.protection-budget-card span { color: #f2b3c3; font-size: .68rem; font-weight: 800; }
.protection-budget-card strong { font-size: 1rem; }
.protection-budget-card p { margin: 0; color: #efdfe4; font-size: .65rem; line-height: 1.5; }
.protection-budget-card dl { margin: 0; display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid rgba(255,255,255,.2); }
.protection-budget-card dl > div { padding: 9px; display: grid; gap: 3px; border-left: 1px solid rgba(255,255,255,.18); }
.protection-budget-card dl > div:first-child { border-left: 0; }
.protection-budget-card dt { color: #edcbd4; font-size: .6rem; }
.protection-budget-card dd { margin: 0; font-size: .72rem; font-weight: 800; }
.report-two-column { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; }
.report-two-column .report-section { width: 100%; margin: 0 0 14px; }
.priority-findings ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.priority-findings li { padding: 10px 11px; display: grid; grid-template-columns: 72px 1fr; gap: 3px 8px; background: #fbf7f8; border-left: 3px solid #d8b6c0; }
.priority-findings li > span { color: var(--aia-red); font-size: .64rem; font-weight: 800; }
.priority-findings li > strong { color: var(--wine); font-size: .76rem; }
.priority-findings li > p { grid-column: 1 / -1; margin: 0; color: #806f75; font-size: .68rem; line-height: 1.45; }
.evidence-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.evidence-card li { display: grid; gap: 2px; }
.evidence-card li strong { color: var(--wine); font-size: .74rem; }
.evidence-card li span { color: #806f75; font-size: .66rem; line-height: 1.45; }
.missing-data-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.missing-data-grid > div { padding: 11px; background: #fff9ea; border: 1px solid #eadcb2; }
.missing-data-grid strong { color: #755014; font-size: .73rem; }
.missing-data-grid p { margin: 4px 0 0; color: #816f50; font-size: .65rem; line-height: 1.45; }
.report-next-step { padding: 19px; display: grid; grid-template-columns: 1.45fr .8fr; gap: 24px; color: white; background: var(--wine); border-color: var(--wine); }
.report-next-step > div:first-child > span { color: #f3a3b7; font: 800 .66rem Georgia,serif; letter-spacing: .12em; }
.report-next-step h2 { margin: 5px 0; font: 600 1.15rem "Songti SC",serif; }
.report-next-step p { margin: 0; color: #ead9de; font-size: .72rem; line-height: 1.55; }
.report-boundary { padding: 12px; display: flex; gap: 9px; align-items: flex-start; background: rgba(255,255,255,.08); border-left: 3px solid #f48aa3; }
.report-boundary svg { flex: none; color: #ffb2c4; }
.report-boundary p { display: grid; gap: 3px; }
.report-boundary strong { color: white; font-size: .72rem; }
.report-boundary span { color: #e5d3d8; font-size: .65rem; line-height: 1.45; }
.report-bottom-actions { max-width: 1120px; margin: 0 auto; }
.deep-rail-button { margin-top: 6px; background: rgba(255,255,255,.045); }
.deep-heading { max-width: 1120px; margin: 0 auto 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.deep-heading > div:first-child { max-width: 760px; }
.deep-heading > div:first-child > span { color: var(--aia-red); font: 800 .72rem Georgia,serif; letter-spacing: .13em; }
.deep-heading h1 { margin: 7px 0; color: var(--ink); font: 600 clamp(1.75rem,2.5vw,2.35rem) "Songti SC",serif; }
.deep-heading p { margin: 0; color: #75656b; font-size: .86rem; line-height: 1.6; }
.deep-heading-actions { display: flex; gap: 8px; flex: none; }
.deep-heading-actions button { min-height: 41px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 7px; color: var(--wine); background: white; border: 1px solid #dcc7ce; font-size: .76rem; font-weight: 800; }
.deep-heading-actions button:hover { color: var(--aia-red); border-color: #dba3b3; }
.deep-summary-card { max-width: 1120px; margin: 0 auto 13px; padding: 17px 19px; display: grid; grid-template-columns: .8fr 1.55fr .8fr; gap: 21px; color: white; background: linear-gradient(130deg,var(--wine),#95143b 72%,var(--aia-red)); box-shadow: 0 14px 34px rgba(90,13,40,.16); }
.deep-client,.deep-time { display: grid; align-content: center; gap: 4px; }
.deep-client > span,.deep-time > span,.deep-progress span { color: #f3b3c3; font-size: .7rem; font-weight: 800; letter-spacing: .04em; }
.deep-client > strong { font: 600 1.25rem "Songti SC",serif; }
.deep-client small,.deep-time small,.deep-progress small { color: #ead8dd; font-size: .7rem; line-height: 1.45; }
.deep-client small b { color: inherit; }
.deep-progress { padding-inline: 20px; display: grid; align-content: center; gap: 7px; border-inline: 1px solid rgba(255,255,255,.2); }
.deep-progress > div:first-child { display: flex; justify-content: space-between; align-items: baseline; }
.deep-progress > div strong { font-size: 1rem; }
.deep-progress-track { height: 7px; overflow: hidden; background: rgba(255,255,255,.2); border-radius: 999px; }
.deep-progress-track i { width: 0; height: 100%; display: block; background: #ffb0c2; border-radius: inherit; transition: width .25s ease; }
.deep-time { text-align: right; }
.deep-time strong { font-size: .9rem; }
.deep-principles { max-width: 1120px; margin: 0 auto 13px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: white; border: 1px solid #e4d5da; }
.deep-principles > div { min-width: 0; padding: 12px 13px; display: grid; gap: 3px; border-left: 1px solid #eadde1; }
.deep-principles > div:first-child { border-left: 0; }
.deep-principles strong { color: var(--wine); font-size: .76rem; }
.deep-principles span { color: #806f75; font-size: .7rem; line-height: 1.45; }
.deep-checklist-sections { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; align-items: start; }
.deep-checklist-card { min-width: 0; background: white; border: 1px solid #e4d5da; box-shadow: 0 7px 22px rgba(65,25,39,.035); }
.deep-card-heading { min-height: 92px; padding: 14px 15px; display: grid; grid-template-columns: 31px minmax(0,1fr) auto; gap: 10px; align-items: start; background: #fbf6f8; border-bottom: 1px solid #eadde1; }
.deep-card-heading > span { width: 29px; height: 29px; display: grid; place-items: center; color: white; background: var(--aia-red); border-radius: 50%; font: 800 .64rem Georgia,serif; }
.deep-card-heading h2 { margin: 1px 0 4px; color: var(--wine); font-size: .94rem; }
.deep-card-heading p { margin: 0; color: #806f75; font-size: .72rem; line-height: 1.5; }
.deep-card-heading > em { padding: 4px 7px; color: var(--wine); background: white; border: 1px solid #dfcbd2; border-radius: 999px; font-size: .65rem; font-style: normal; font-weight: 800; }
.deep-checklist-items { padding: 3px 13px 8px; }
.deep-checklist-items > label { min-height: 69px; padding: 10px 2px; display: grid; grid-template-columns: 24px minmax(0,1fr) auto; gap: 10px; align-items: center; border-top: 1px solid #eee4e7; cursor: pointer; }
.deep-checklist-items > label:first-child { border-top: 0; }
.deep-checklist-items input { position: absolute; opacity: 0; pointer-events: none; }
.deep-checkmark { width: 22px; height: 22px; display: grid; place-items: center; color: transparent; background: white; border: 1.5px solid #cdb8bf; border-radius: 4px; font-size: .74rem; font-weight: 900; transition: .18s ease; }
.deep-checklist-items label.checked .deep-checkmark { color: white; background: var(--aia-red); border-color: var(--aia-red); }
.deep-checklist-items label.checked .deep-item-copy { opacity: .64; }
.deep-item-copy { min-width: 0; display: grid; gap: 4px; }
.deep-item-copy strong { color: #55444b; font-size: .79rem; }
.deep-item-copy small { color: #806f75; font-size: .72rem; line-height: 1.45; }
.deep-checklist-items > label > em { max-width: 64px; padding: 4px 6px; color: #77666c; background: #f4eef0; border-radius: 999px; text-align: center; font-size: .61rem; line-height: 1.25; font-style: normal; font-weight: 800; }
.deep-checklist-items > label > em.required { color: #a50f38; background: #ffe7ed; }
.deep-checklist-items > label > em.advisor { color: #755014; background: #fff3cf; }
.deep-boundary-card { max-width: 1120px; margin: 14px auto; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; color: #684f58; background: #fff0f4; border: 1px solid #edccd5; border-left: 4px solid var(--aia-red); }
.deep-boundary-card > svg,.deep-boundary-card > span { flex: none; color: var(--aia-red); font-weight: 900; }
.deep-boundary-card strong { color: var(--wine); font-size: .82rem; }
.deep-boundary-card p { margin: 4px 0 0; font-size: .75rem; line-height: 1.55; }
.deep-bottom-actions { padding-bottom: 8px; }
.deep-entry-heading { max-width: 1120px; margin: 0 auto 13px; display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; }
.deep-entry-heading > div:first-child { max-width: 760px; }
.deep-entry-heading > div:first-child > span { color: var(--aia-red); font: 800 .72rem Georgia,serif; letter-spacing: .13em; }
.deep-entry-heading h1 { margin: 7px 0; color: var(--ink); font: 600 clamp(1.75rem,2.5vw,2.35rem) "Songti SC",serif; }
.deep-entry-heading p { margin: 0; color: #75656b; font-size: .87rem; line-height: 1.58; }
.deep-mode-switch { min-width: 238px; padding: 10px 11px; display: grid; gap: 7px; background: white; border: 1px solid #e0cdd3; border-top: 4px solid var(--aia-red); }
.deep-mode-switch > span { color: #806d73; font-size: .72rem; font-weight: 800; }
.deep-mode-switch > div { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.deep-mode-switch button { min-height: 34px; color: #76636a; background: #f7f1f3; border: 1px solid transparent; font-size: .72rem; font-weight: 800; }
.deep-mode-switch button.active { color: white; background: var(--wine); }
.deep-entry-summary { max-width: 1120px; margin: 0 auto 12px; padding: 12px 15px; display: grid; grid-template-columns: .8fr .65fr 1.8fr; gap: 18px; align-items: center; color: white; background: linear-gradient(120deg,var(--wine),#8e1538); }
.deep-entry-summary > div { display: grid; gap: 3px; }
.deep-entry-summary > div > span { color: #f3b3c3; font-size: .67rem; font-weight: 800; }
.deep-entry-summary > div > strong { font-size: .86rem; }
.deep-entry-summary > div > small { color: #ead8dd; font-size: .67rem; }
.deep-entry-summary > p { margin: 0; padding-left: 16px; display: flex; gap: 8px; align-items: flex-start; color: #f0e3e7; border-left: 1px solid rgba(255,255,255,.22); font-size: .74rem; line-height: 1.5; }
.deep-entry-summary > p svg,.deep-entry-summary > p > span:first-child { flex: none; color: #ffadc0; font-weight: 900; }
.deep-record-bridge { max-width: 1120px; margin: 0 auto 12px; padding: 14px 15px; display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 14px 18px; align-items: center; background: #fff; border: 1px solid #dfcbd2; border-left: 5px solid var(--aia-red); box-shadow: 0 7px 20px rgba(65,25,39,.035); }
.deep-bridge-heading { min-width: 0; display: grid; gap: 4px; }
.deep-bridge-heading > span { color: #8b747c; font-size: .68rem; font-weight: 800; }
.deep-bridge-heading > strong { overflow-wrap: anywhere; color: var(--wine); font: 750 .96rem Georgia,"Songti SC",serif; }
.deep-bridge-heading > small { color: #99848b; font-size: .64rem; line-height: 1.4; }
.deep-bridge-values { min-width: 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border: 1px solid #eee1e5; }
.deep-bridge-values > div { min-width: 0; padding: 9px 10px; display: grid; gap: 3px; border-left: 1px solid #eee1e5; }
.deep-bridge-values > div:first-child { border-left: 0; }
.deep-bridge-values span { color: #8e7b82; font-size: .62rem; font-weight: 750; }
.deep-bridge-values strong { overflow-wrap: anywhere; color: #4d3941; font-size: .72rem; line-height: 1.35; }
.deep-record-bridge > p { grid-column: 1 / -1; margin: 0; padding-top: 9px; color: #715e65; border-top: 1px solid #eee1e5; font-size: .72rem; line-height: 1.5; }
.deep-step-nav { max-width: 1120px; margin: 0 auto 12px; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); background: white; border: 1px solid #e1cfd5; }
.deep-step-nav button { min-width: 0; min-height: 65px; padding: 8px 9px; display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 2px 7px; align-content: center; color: #74636a; background: white; border: 0; border-left: 1px solid #eadde1; text-align: left; }
.deep-step-nav button:first-child { border-left: 0; }
.deep-step-nav button > span { grid-row: 1 / 3; width: 24px; height: 24px; display: grid; place-items: center; color: var(--wine); border: 1px solid #cdb6be; border-radius: 50%; font: 800 .58rem Georgia,serif; }
.deep-step-nav button strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .73rem; }
.deep-step-nav button small { color: #99868c; font-size: .62rem; }
.deep-step-nav button.active { color: white; background: var(--aia-red); }
.deep-step-nav button.active > span { color: white; border-color: rgba(255,255,255,.75); }
.deep-step-nav button.active small { color: #ffe4eb; }
.deep-entry-form { max-width: 1120px; margin: 0 auto; display: grid; gap: 12px; }
.deep-entry-pane { display: grid; gap: 12px; }
.deep-form-heading { padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: white; border: 1px solid #e1d3d8; border-left: 5px solid var(--aia-red); }
.deep-form-heading > div > span { color: var(--aia-red); font-size: .7rem; font-weight: 850; letter-spacing: .05em; }
.deep-form-heading h2 { margin: 4px 0 3px; color: var(--wine); font-size: 1.08rem; }
.deep-form-heading p { margin: 0; color: #7c6b71; font-size: .76rem; line-height: 1.45; }
.deep-form-heading > button,.deep-add-row { min-height: 37px; padding: 7px 11px; display: inline-flex; align-items: center; gap: 6px; color: var(--wine); background: #fff7f9; border: 1px solid #dcbfc8; font-size: .72rem; font-weight: 800; }
.deep-member-list { display: grid; gap: 11px; }
.deep-record-card,.deep-data-card { min-width: 0; margin: 0; padding: 15px 16px 16px; background: white; border: 1px solid #e3d5d9; box-shadow: 0 6px 18px rgba(65,25,39,.03); }
.deep-record-card legend { padding: 0 8px 0 0; display: flex; align-items: center; gap: 8px; color: var(--wine); font-size: .82rem; }
.deep-record-card legend > span { width: 25px; height: 25px; display: grid; place-items: center; color: white; background: var(--wine); border-radius: 50%; font: 800 .62rem Georgia,serif; }
.deep-record-card legend button { margin-left: 8px; padding: 4px 7px; display: inline-flex; align-items: center; gap: 4px; color: #9d3151; background: #fff1f5; border: 1px solid #e8c4ce; font-size: .66rem; font-weight: 800; }
.deep-field-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.deep-field-grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.deep-field-grid > label { min-width: 0; display: grid; gap: 6px; color: #65565c; font-size: .76rem; font-weight: 750; }
.deep-field-grid > label > input,.deep-field-grid > label > select { width: 100%; min-width: 0; height: 42px; padding: 0 10px; color: var(--ink); background: #fffbfc; border: 1px solid #ddcbd1; border-radius: 3px; outline: none; }
.deep-field-grid input:focus,.deep-field-grid select:focus { border-color: var(--aia-red); box-shadow: 0 0 0 3px rgba(211,17,69,.08); background: white; }
.deep-field-grid .amount-input { height: 42px; }
.deep-data-card { display: grid; gap: 13px; }
.deep-data-title { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding-bottom: 9px; border-bottom: 1px solid #ecdfE3; }
.deep-data-title h3 { margin: 0; color: var(--wine); font-size: .92rem; }
.deep-data-title p { margin: 0; color: #84737a; font-size: .7rem; }
.deep-add-row { justify-self: start; }
.deep-table-grid { display: grid; grid-template-columns: 1.1fr repeat(4,minmax(110px,1fr)); gap: 7px; align-items: center; overflow-x: auto; }
.deep-table-grid > b { color: #806d73; font-size: .68rem; }
.deep-table-row { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr repeat(4,minmax(110px,1fr)); gap: 7px; align-items: center; }
.deep-table-row > strong { color: #5e4d54; font-size: .72rem; }
.deep-table-row input,.deep-table-row select { min-width: 0; height: 39px; padding: 0 8px; background: #fffbfc; border: 1px solid #ddcbd1; }
.deep-form-guidance { padding: 11px 13px; display: flex; gap: 9px; align-items: flex-start; color: #6e5b62; background: #fff4d9; border: 1px solid #ead8a7; }
.deep-form-guidance > svg,.deep-form-guidance > span { flex: none; color: #93651a; font-weight: 900; }
.deep-form-guidance p { margin: 0; display: grid; gap: 2px; font-size: .74rem; line-height: 1.45; }
.deep-form-guidance strong { color: #704f18; }
.deep-entry-actions { padding-bottom: 8px; }
.medical-comparison,.medical-comparison * { font-family: "PingFang SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif; }
.medical-comparison h2 { font-size: 1rem; line-height: 1.35; color: var(--wine); margin-bottom: 9px; }
.medical-comparison p { font-size: .76rem; line-height: 1.58; }
.medical-details { margin: 12px 0; display: grid; gap: 12px; }
.medical-details > div { display: grid; grid-template-columns: 116px minmax(0,1fr); gap: 10px; font-size: .75rem; line-height: 1.5; }
.medical-details dt { color: #78676d; }
.medical-details dd { margin: 0; color: var(--wine); font-weight: 700; overflow-wrap: anywhere; }
.deep-report-parameters { max-width: 1120px; margin: 16px auto; }
.deep-report-parameters > p,.deep-report-parameters label { font-size: 14px; line-height: 1.6; }
.deep-confirm { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: #fff3f6; }
.deep-confirm input { width: 20px; height: 20px; flex: none; margin-top: 2px; }
#deep-report-module { max-width: 1120px; margin: auto; }
#deep-report-module h2 { font-size: 20px; margin-bottom: 16px; color: var(--wine); }
#deep-report-module p,#deep-report-module li { font-size: 14px; line-height: 1.75; }
#deep-report-module ul { padding-left: 22px; list-style: disc; }
#deep-report-module li { margin: 10px 0; }
.deep-table-scroll { overflow-x: auto; }
.deep-comparison { width: 100%; border-collapse: collapse; min-width: 580px; font-size: 14px; }
.deep-comparison th,.deep-comparison td { padding: 14px 12px; text-align: left; border-bottom: 1px solid #ecdce2; }
.deep-comparison thead { background: #faf0f3; color: var(--wine); }
#deep-report-save-state { padding: 16px; background: #f7edf0; border-left: 4px solid var(--aia-red); }
@media print {
  #deep-report-module .report-actions { display: none; }
  #deep-report-module .coverage-card,#deep-report-module .report-section { break-inside: avoid; }
  #deep-report-module .coverage-ring { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* 2026 visual system refresh: a calm advisor's family file, not a sales landing page. */
@media screen {
  :root {
    --aia-red: #d5003f;
    --aia-red-dark: #b60036;
    --wine: #a50035;
    --coral: #ea7293;
    --rose: #e68aa5;
    --rose-pale: #f7ceda;
    --cream: #f7f7f7;
    --ink: #333b43;
    --muted: #68717a;
    --line: #e4e4e4;
    --paper: #ffffff;
    --gold: #d31145;
    --positive: #287052;
    --surface-soft: #f8f6f5;
    --shadow-low: 0 1px 2px rgba(45,25,31,.05), 0 12px 32px rgba(45,25,31,.05);
    --shadow-high: 0 22px 70px rgba(60,18,33,.13);
  }

  html { background: #fff; }
  body { color: var(--ink); background: #fff; letter-spacing: 0; }
  h1, h2, h3, h4,
  .rail-heading strong,
  .report-client strong,
  .report-next-step h2,
  .records-heading h2 {
    font-family: "PingFang SC","Noto Sans SC","Microsoft YaHei",Arial,sans-serif !important;
  }
  button, a, input, select { -webkit-tap-highlight-color: transparent; }
  button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
    outline: 3px solid rgba(200,15,67,.22);
    outline-offset: 2px;
  }

  /* Brand and global chrome */
  .brand { gap: 12px; }
  .brand-mark {
    width: 42px; height: 42px; border-radius: 2px; display: grid; place-items: center;
    color: #fff; background: var(--aia-red); box-shadow: none;
    font-size: .84rem; font-weight: 850;
  }
  .brand-copy { gap: 3px; }
  .brand-copy strong { color: #333b43; font-size: 1rem; letter-spacing: .02em; }
  .brand-copy small { color: #887b80; font-size: .64rem; line-height: 1.3; }
  .brand-english { letter-spacing: .08em; }
  .brand-developer { color: #9e6e7c; }
  .site-header, .login-header {
    height: 72px; padding-inline: clamp(20px,4vw,64px); background: rgba(255,255,255,.94);
    border: 0; border-bottom: 1px solid #e2e2e2; backdrop-filter: blur(14px);
  }
  .advisor-access { color: #665c60; font-size: .82rem; }
  .advisor-access i { background: var(--positive); box-shadow: 0 0 0 4px #e6f1eb; }
  .login-button { border-radius: 2px; }

  /* Login: a quiet opening spread with one strong typographic moment. */
  .login-shell { grid-template-rows: 72px minmax(0,1fr) 44px; background: #fff; }
  .login-stage {
    padding: clamp(34px,6vh,76px) clamp(24px,7vw,108px);
    grid-template-columns: minmax(0,1.08fr) minmax(380px,.72fr); gap: clamp(44px,8vw,116px);
    align-items: center; overflow: hidden;
  }
  .login-stage::before { inset: auto 0 0 auto; width: min(44vw,620px); height: 42%; background: linear-gradient(145deg,transparent 0 22%,#f7ceda 22% 45%,#e67c9b 45% 68%,#d5003f 68%); clip-path: polygon(44% 0,100% 0,100% 100%,0 100%); mask-image: none; opacity: .92; }
  .login-geometry-one {
    width: min(48vw,690px); height: min(60vh,580px); right: -18%; top: -12%; opacity: .07;
    background: var(--wine); clip-path: polygon(35% 0,100% 0,100% 100%,0 100%);
  }
  .login-geometry-two { display: none; }
  .login-intro { max-width: 720px; padding-left: clamp(10px,2vw,28px); }
  .login-kicker { margin-bottom: 18px; color: var(--aia-red-dark); font: 780 .82rem/1.2 inherit; letter-spacing: .08em; }
  .login-intro h1 { max-width: 700px; color: #333b43; font: 760 clamp(2.7rem,5vw,5.1rem)/1.08 "PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif; letter-spacing: -.045em; }
  .login-intro h1 span { margin-top: .1em; color: var(--aia-red); }
  .login-intro > p { max-width: 620px; margin: 24px 0 34px; color: #695f63; font-size: 1rem; line-height: 1.8; }
  .login-capabilities {
    max-width: 650px; background: transparent; border: 0; border-top: 1px solid #cfc6c9; border-bottom: 1px solid #cfc6c9;
    box-shadow: none;
  }
  .login-capabilities > div { min-height: 92px; padding: 18px 18px 18px 0; border-color: #d8cfd2; }
  .login-capabilities > div + div { padding-left: 18px; }
  .login-capabilities .mini-symbol { color: var(--aia-red); background: #fff; border: 1px solid #e4cbd2; border-radius: 50%; }
  .login-capabilities strong { color: #4c3d42; font-size: .88rem; }
  .login-capabilities small { color: #847a7d; }
  .login-card {
    max-width: 440px; padding: clamp(28px,3vw,42px); border: 1px solid #e1e1e1; border-top: 5px solid var(--aia-red);
    border-radius: 0; box-shadow: 0 16px 44px rgba(44,50,56,.11);
  }
  .login-card::before { display: none; }
  .login-card-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--aia-red); }
  .login-card-heading span { color: #8b6572; font: 750 .72rem/1.2 inherit; letter-spacing: .06em; }
  .login-card-heading h2 { font: 750 1.65rem "PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif; }
  .login-field > div {
    height: 48px;
    padding: 0 2px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #cfc6c9;
    border-radius: 0;
  }
  .login-field > div:focus-within {
    background: transparent;
    border-color: var(--aia-red);
    box-shadow: inset 0 -2px 0 var(--aia-red);
  }
  .login-field .mini-symbol { width: 24px; color: var(--aia-red); }
  .login-submit { height: 50px; border-radius: 0; background: var(--aia-red); border-color: var(--aia-red); }
  .login-submit:hover { background: var(--aia-red-dark); }
  .login-footer { color: #fff; background: var(--aia-red); }
  .login-footer span { color: #fff; letter-spacing: .04em; }

  /* Workspace home */
  .site-shell {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    grid-template-rows: 72px auto auto;
    overflow: visible;
    background: var(--cream);
  }
  .hero {
    min-height: auto;
    padding: clamp(42px,5vh,72px) clamp(24px,6vw,94px); gap: clamp(44px,6vw,92px);
    background: linear-gradient(90deg,#fff 0 60%,#fafafa 60% 100%);
    position: relative;
  }
  .hero::before { content: ""; display: block; position: absolute; right: 0; bottom: 0; width: min(28vw,430px); height: 155px; background: linear-gradient(145deg,transparent 0 18%,#f7ceda 18% 42%,#e57b9a 42% 67%,#d5003f 67%); clip-path: polygon(40% 0,100% 0,100% 100%,0 100%); opacity: .85; pointer-events: none; }
  .hero-geometry { display: none; }
  .hero-copy { max-width: 820px; }
  .hero h1 { max-width: 790px; color: #333b43; font: 760 clamp(2.8rem,4.5vw,4.75rem)/1.08 "PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif; letter-spacing: -.045em; }
  .hero h1 span { margin-top: .08em; color: var(--aia-red); }
  .lead { max-width: 720px; margin: 22px 0 26px; color: #665d61; font-size: 1rem; line-height: 1.75; }
  .framework-card { border: 1px solid #e1e1e1; border-left: 5px solid var(--aia-red); box-shadow: none; background: #fff; }
  .framework-heading { padding: 14px 16px; background: #fff; }
  .framework-heading span { color: var(--aia-red-dark); font-size: .7rem; letter-spacing: .04em; }
  .framework-heading strong { color: #333b43; }
  .framework-methods > div { padding: 13px 14px; background: #faf8f7; }
  .framework-methods span { color: #8c737c; font-size: .64rem; letter-spacing: .02em; }
  .framework-line { background: #fff; }
  .scope-block { margin-top: 26px; }
  .scope-heading h2 { font: 750 1.15rem "PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif; }
  .module-grid { gap: 1px; background: #d9d1d3; border: 1px solid #d9d1d3; }
  .module-card { min-height: 66px; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
  .module-icon { color: var(--aia-red); background: #fae9ee; border-radius: 50%; }
  .start-panel { padding: clamp(24px,3vw,36px); background: #fff; border: 1px solid #dedede; border-radius: 0; box-shadow: 0 16px 44px rgba(44,50,56,.1); }
  .method-banner { background: #fff1f4; border: 0; border-left: 4px solid var(--aia-red); }
  .method-icon { color: #fff; background: var(--aia-red); border-radius: 50%; }
  .panel-heading h2 { font: 750 1.75rem "PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif; }
  .step-kicker { color: var(--aia-red-dark); letter-spacing: .04em; }
  .checkup-seal { color: var(--wine); background: #fff; border: 1px solid #ccb8bf; box-shadow: none; }
  .entry-card { border-radius: 0; box-shadow: none; }
  .primary-entry { border: 1px solid #e0e0e0; border-left: 5px solid var(--aia-red); }
  .secondary-entry { background: #faf8f7; border: 1px solid #ded7d8; }
  .entry-number { color: #92707c; background: transparent; border: 0; }
  .recommend-tag { color: var(--wine); background: #f6e6eb; border-radius: 2px; }
  .primary-action { border-radius: 0; background: var(--aia-red); }
  .record-list-button { border-radius: 2px; }
  .how-it-works { background: #fff; border-top: 1px solid var(--line); }
  .process-intro span { color: var(--aia-red-dark); letter-spacing: .04em; }
  .process-steps > div > span { color: var(--wine); background: #f3e7eb; }

  /* Assessment workspace */
  .assessment-shell { grid-template-rows: 72px minmax(0,1fr); background: var(--cream); }
  .assessment-workspace { grid-template-columns: 268px minmax(0,1fr); }
  .assessment-rail { padding: 23px 17px 20px; background: #383f46; border-right: 7px solid var(--aia-red); }
  .back-home { color: #f0dce2; }
  .rail-heading { margin: 22px 7px 18px; }
  .rail-heading > span { color: #eaa7b9; font: 750 .69rem/1.2 inherit; letter-spacing: .06em; }
  .rail-heading strong { font: 600 1.28rem "Songti SC","STSong",serif; }
  .setup-progress button, .module-progress > button, .report-rail-button { border-radius: 2px; }
  .setup-progress button.active, .module-progress > button.active, .report-rail-button.active { box-shadow: none; }
  .module-progress > button.available:hover { background: rgba(255,255,255,.1); }
  .rail-icon { border-radius: 50%; }
  .assessment-content { padding: 34px clamp(24px,4.5vw,72px) 52px; }
  .assessment-topline { max-width: 1180px; padding-bottom: 20px; border-bottom: 1px solid #d8d0d2; }
  .assessment-topline > div:first-child > span { color: var(--aia-red-dark); letter-spacing: .04em; }
  .assessment-topline h1 { color: #333b43; font: 750 clamp(1.9rem,2.7vw,2.6rem) "PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif; }
  .assessment-topline p { color: #6f6669; font-size: .9rem; line-height: 1.65; }
  .section-time { padding: 10px 13px; background: #fff; border: 1px solid #ddd4d6; border-right: 4px solid var(--aia-red); }
  .priority-drag-help, .logic-banner, .range-guidance-note { border-radius: 0; }
  .priority-list { gap: 9px; }
  .priority-item { min-height: 70px; border-color: #ddd5d7; border-left: 4px solid transparent; box-shadow: none; }
  .priority-item:hover { border-left-color: var(--aia-red); background: #fffdfd; }
  .priority-drag-handle { border-radius: 2px; background: #f8f4f5; }
  .priority-rank { border-radius: 50%; background: var(--aia-red); }
  .priority-icon { border-radius: 50%; }
  .question-card {
    padding: 22px 24px 24px; border-color: #ddd5d7; border-left: 5px solid #ece4e6; box-shadow: var(--shadow-low);
  }
  .question-card + .question-card { margin-top: 14px; }
  .question-heading { margin-bottom: 19px; gap: 13px; }
  .question-heading > span { width: 30px; height: 30px; border-radius: 50%; background: var(--aia-red); font-family: inherit; }
  .question-heading h2 { color: #333b43; font-size: 1.05rem; }
  .question-heading p { color: #7a7074; font-size: .78rem; line-height: 1.55; }
  .income-member-card { border-color: #ddd3d6; border-radius: 0; background: #fff; }
  .income-member-card legend > span { border-radius: 50%; background: var(--aia-red); }
  .field-grid label > span, .guided-range-heading strong { color: #51474b; }
  .amount-input, .field-grid input, .field-grid select { border-radius: 2px !important; }
  .amount-input:focus-within, .field-grid input:focus, .field-grid select:focus { border-color: var(--aia-red); box-shadow: 0 0 0 3px rgba(200,15,67,.07); }
  .amount-input i { background: #f2edef; }
  .calculation-preview { border-radius: 0; border-color: #dacfd2; }
  .calculation-title { background: #f5edef; }
  .formula-row.accent { background: #f5eef0; }
  .assessment-actions { padding-top: 18px; border-top: 1px solid #ddd5d7; }
  .assessment-actions button { min-height: 44px; border-radius: 2px; }
  .save-module { background: var(--aia-red); }
  .save-module:hover { background: var(--aia-red-dark); }
  .draft-button { background: #fff; border-color: #d7cdcf; }

  /* Records and admin: drawers behave like working files, not pop-up cards. */
  .customer-records-overlay { background: rgba(38,22,28,.46); backdrop-filter: blur(3px); }
  .customer-records-panel { border-left: 7px solid var(--aia-red); box-shadow: -18px 0 60px rgba(42,16,25,.16); }
  .records-heading { padding-bottom: 18px; }
  .records-heading > div > span { color: var(--aia-red-dark); font: 750 .72rem/1.2 inherit; letter-spacing: .05em; }
  .records-heading h2 { font: 750 1.8rem "PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif; }
  .records-toolbar input, .admin-create-form input { border-radius: 2px; }
  .customer-record-card, .admin-advisor-card { border-radius: 0; box-shadow: none; border-left: 4px solid #e9dfe2; }
  .customer-record-card:hover { border-left-color: var(--aia-red); }

  /* Report on screen: editorial hierarchy, fewer decorative containers. */
  .report-heading { max-width: 1180px; padding-bottom: 18px; border-bottom: 1px solid #d8d0d2; }
  .report-heading > div:first-child > span { color: var(--aia-red-dark); font-family: inherit; letter-spacing: .05em; }
  .report-heading h1 { color: #333b43; font: 750 clamp(2rem,3vw,2.75rem) "PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif; }
  .report-actions button { border-radius: 2px; }
  .report-cover-card { max-width: 1180px; padding: 24px 26px; background: var(--aia-red); border-left: 8px solid var(--aia-red-dark); box-shadow: none; }
  .report-section, .report-next-step { max-width: 1180px; padding: 22px 24px; border-color: #ddd5d7; box-shadow: none; }
  .report-section-heading > div > span { border-radius: 50%; background: var(--aia-red); }
  .report-section-heading h2 { color: #333b43; font-size: 1.08rem; }
  .coverage-card, .metric-grid article, .report-breakdown-card { border-radius: 0; box-shadow: none; }
  .coverage-card { border-top: 4px solid #dbcbd0; }
  .coverage-card.priority { border-top-color: var(--aia-red); }
  .financial-score-card, .benchmark-case-card, .protection-budget-card { border-radius: 0; }
  .report-next-step { background: var(--aia-red); border-left: 8px solid var(--aia-red-dark); }
  .report-next-step h2 { font: 750 1.25rem "PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif; }
  .planning-visual-card, .iceberg-report-card { border-radius: 0; }

  @media (max-width: 980px) {
    .login-stage { grid-template-columns: 1fr; overflow: visible; }
    .login-shell { height: auto; min-height: 100dvh; overflow: visible; }
    .login-intro, .login-card { max-width: 720px; justify-self: stretch; }
    .site-shell { height: auto; min-height: 100dvh; overflow: visible; }
    .hero { grid-template-columns: 1fr; background: #fff; }
    .start-panel { max-width: 760px; }
  }

  @media (max-width: 680px) {
    html, body { width: 100%; max-width: 100%; overflow-x: clip; }
    .login-header, .site-header { padding-inline: 16px; }
    .brand { min-width: 0; }
    .brand-mark { width: 38px; height: 38px; flex: none; }
    .brand-copy { min-width: 0; }
    .brand-copy small { display: none; }
    .login-stage { padding: 32px 18px 40px; gap: 28px; }
    .login-stage::before { display: none; }
    .login-intro { padding-left: 0; }
    .login-intro h1 { font-size: clamp(2.4rem,11.5vw,3.35rem); letter-spacing: -.05em; }
    .login-intro > p { margin: 18px 0 22px; font-size: .94rem; }
    .login-capabilities { grid-template-columns: 1fr; }
    .login-capabilities > div, .login-capabilities > div + div { min-height: 0; padding: 14px 0; border-right: 0; border-bottom: 1px solid #ddd4d6; }
    .login-capabilities > div:last-child { border-bottom: 0; }
    .login-card { padding: 25px 20px; }
    .login-footer { padding-inline: 18px; }
    .hero { padding: 36px 18px 42px; }
    .hero h1 { font-size: clamp(2.5rem,12vw,3.5rem); }
    .framework-methods { grid-template-columns: 1fr 1fr; }
    .module-grid { grid-template-columns: 1fr 1fr; }
    .start-panel { padding: 22px 17px; }
    .how-it-works { padding-inline: 18px; }
    .assessment-shell { height: auto; min-height: 100dvh; display: block; overflow: visible; }
    .assessment-workspace { display: block; height: auto; overflow: visible; }
    .assessment-rail { height: auto; max-height: none; padding: 15px 14px; border-right: 0; border-bottom: 5px solid var(--aia-red); overflow: visible; }
    .rail-heading, .rail-note { display: none; }
    .setup-progress { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 10px 0; }
    .module-progress { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
    .module-progress > button { min-height: 46px; grid-template-columns: 26px minmax(0,1fr); padding: 7px; }
    .module-progress em, .module-progress small { display: none; }
    .rail-icon { width: 26px; height: 26px; }
    .report-rail-button { min-height: 46px; margin-top: 7px; }
    .assessment-content { height: auto; padding: 25px 15px 42px; overflow: visible; }
    .assessment-topline { display: block; }
    .section-time { width: fit-content; margin-top: 14px; text-align: left; border-right: 1px solid #ddd4d6; border-left: 4px solid var(--aia-red); }
    .question-card { padding: 18px 15px 20px; border-left-width: 4px; }
    .priority-item:has(.priority-drag-handle) { grid-template-columns: 40px 26px minmax(0,1fr) auto; }
    .priority-drag-handle { width: 40px; }
    .assessment-actions { position: sticky; bottom: 0; z-index: 5; margin-inline: -15px; padding: 12px 15px; background: rgba(248,246,245,.96); backdrop-filter: blur(10px); }
    .customer-records-panel { width: 100%; border-left-width: 5px; }
    .report-cover-card, .report-next-step { padding: 19px 16px; }
  }
}

.record-list-button { width: 100%; min-height: 38px; margin-top: 8px; padding: 7px 12px; display: flex; justify-content: center; align-items: center; gap: 7px; color: var(--wine); background: #fff7f9; border: 1px solid #dcbfc8; font-size: .78rem; font-weight: 800; }
.record-list-button:hover { color: white; background: var(--wine); border-color: var(--wine); }
.customer-records-overlay { position: fixed; inset: 0; height: 100dvh; z-index: 60; display: grid; justify-items: end; overflow: hidden; background: rgba(41,19,27,.38); backdrop-filter: blur(3px); }
.records-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; border: 0; }
.customer-records-panel { position: relative; width: min(680px,calc(100vw - 42px)); height: 100dvh; min-height: 0; overflow: hidden; padding: 24px; display: grid; grid-template-rows: auto auto auto minmax(0,1fr); gap: 15px; color: var(--ink); background: #fbf7f8; border-left: 7px solid var(--aia-red); box-shadow: -24px 0 70px rgba(44,15,26,.22); animation: records-in .24s ease both; }
.admin-panel { width: min(760px,calc(100vw - 42px)); }
.admin-create-form { padding: 12px; display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 9px; align-items: end; background: white; border: 1px solid #e4d5da; }
.admin-create-form label { min-width: 0; display: grid; gap: 5px; color: #66545b; font-size: .7rem; font-weight: 800; }
.admin-create-form input { width: 100%; min-width: 0; height: 39px; padding: 0 9px; background: #fffafb; border: 1px solid #dbc8cf; }
.admin-create-form button { height: 39px; padding: 0 13px; color: white; background: var(--aia-red); border: 0; font-size: .72rem; font-weight: 800; }
.admin-advisor-card { padding: 12px 13px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; background: white; border: 1px solid #e3d5da; }
.admin-advisor-card h3 { margin: 0; color: var(--wine); font-size: .86rem; }
.admin-advisor-card p { margin: 3px 0 0; color: #857279; font-size: .65rem; }
.admin-advisor-actions { display: flex; gap: 7px; }
.admin-advisor-actions button { min-height: 34px; padding: 6px 9px; color: var(--wine); background: #fff; border: 1px solid #d9c6cd; font-size: .66rem; font-weight: 800; }
.admin-advisor-actions button.danger { color: #a20e37; border-color: #e0a8b8; }
@keyframes records-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: translateX(0); } }
.records-heading { padding-bottom: 14px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e7d8dd; }
.records-heading > div > span { color: var(--aia-red); font: 800 .7rem Georgia,serif; letter-spacing: .13em; }
.records-heading h2 { margin: 5px 0 4px; color: var(--wine); font: 650 1.7rem "Songti SC",serif; }
.records-heading p { margin: 0; color: #78666d; font-size: .82rem; line-height: 1.5; }
.records-heading > button { width: 40px; height: 40px; flex: none; color: #73535e; background: white; border: 1px solid #dfcbd2; font-size: 1.5rem; line-height: 1; }
.records-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: end; }
.records-toolbar label { display: grid; gap: 6px; color: #65545b; font-size: .76rem; font-weight: 800; }
.records-toolbar input { width: 100%; height: 43px; padding: 0 12px; background: white; border: 1px solid #dbc8cf; outline: none; }
.records-toolbar input:focus { border-color: var(--aia-red); box-shadow: 0 0 0 3px rgba(211,17,69,.08); }
.records-toolbar button { height: 43px; padding: 0 15px; display: flex; align-items: center; gap: 6px; color: white; background: var(--wine); border: 0; font-size: .76rem; font-weight: 800; }
.admin-record-scope { grid-column: 1 / -1; padding-top: 2px; display: grid; grid-template-columns: auto minmax(190px,1fr); gap: 10px; align-items: end; }
.admin-record-scope[hidden],#record-advisor-filter-wrap[hidden] { display: none !important; }
.record-scope-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #d8c3ca; border-radius: 5px; overflow: hidden; }
.record-scope-tabs button { min-width: 105px; height: 39px; justify-content: center; color: #795461; background: white; border: 0; border-right: 1px solid #d8c3ca; }
.record-scope-tabs button:last-child { border-right: 0; }
.record-scope-tabs button.active { color: white; background: var(--wine); }
.admin-record-scope > label { min-width: 0; display: grid; gap: 5px; }
.admin-record-scope > label > span { color: #65545b; font-size: .7rem; font-weight: 800; }
.admin-record-scope select { width: 100%; height: 39px; padding: 0 10px; color: var(--ink); background: white; border: 1px solid #dbc8cf; }
.records-summary { padding: 10px 12px; display: flex; justify-content: space-between; gap: 18px; color: #705d64; background: #f2e8eb; border-left: 4px solid #b86d82; font-size: .75rem; }
.records-summary strong { color: var(--wine); }
.customer-record-list { min-height: 0; max-height: 100%; display: grid; align-content: start; gap: 9px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; padding-right: 7px; }
.customer-record-card { padding: 13px 14px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 11px 16px; background: white; border: 1px solid #e2d3d8; box-shadow: 0 5px 16px rgba(60,24,37,.035); }
.customer-record-card > div:first-child { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 14px; align-items: baseline; }
.customer-record-card h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; color: #4e3740; font-size: .95rem; }
.customer-record-card code { color: #8f2848; background: #fff0f4; padding: 3px 6px; font: 750 .7rem Georgia,serif; }
.record-detail-line { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px 13px; color: #806f75; font-size: .69rem; }
.record-detail-line b { color: #614c54; }
.record-status { justify-self: end; padding: 4px 7px; color: #865066; background: #f6e8ed; border-radius: 999px; font-size: .66rem; font-weight: 800; }
.record-status.deep { color: #805710; background: #fff2cf; }
.record-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.record-actions button { min-height: 36px; padding: 6px 10px; color: var(--wine); background: #fff7f9; border: 1px solid #dcbfc8; font-size: .73rem; font-weight: 800; }
.record-actions button.primary { color: white; background: var(--wine); border-color: var(--wine); }
.record-actions button.danger { color: #a20e37; background: white; border-color: #e2a9b9; }
.records-empty { min-height: 180px; padding: 30px; display: grid; place-content: center; gap: 6px; color: #89777e; background: white; border: 1px dashed #d9c6cc; text-align: center; }
.records-empty strong { color: var(--wine); }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 30; transform: translateX(-50%); max-width: calc(100% - 36px); padding: 12px 17px; color: white; background: #3d2730; border-left: 4px solid var(--coral); box-shadow: 0 12px 34px rgba(43, 16, 25, .25); font-size: .78rem; animation: toast-in .25s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 1040px) {
  .assessment-workspace { grid-template-columns: 215px minmax(0,1fr); }
  .assessment-rail { padding-inline: 13px; }
  .assessment-content { padding-inline: 24px; }
  .three-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .amount-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .login-stage { padding-inline: 48px; grid-template-columns: minmax(0,1fr) minmax(370px,.82fr); gap: 48px; }
  .login-intro h1 { font-size: clamp(2.6rem,5vw,3.5rem); }
  .login-capabilities { grid-template-columns: 1fr; max-width: 330px; }
  .login-capabilities > div { min-height: 0; padding: 10px 13px; align-items: center; border-right: 0; border-bottom: 1px solid #ead5dc; }
  .login-capabilities > div:last-child { border-bottom: 0; }
  .login-capabilities small { font-size: .74rem; }
  .hero { grid-template-columns: 1fr minmax(370px, .82fr); gap: 44px; padding-inline: 38px; }
  .hero h1 { font-size: clamp(2.55rem, 4.4vw, 3.5rem); }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .how-it-works { grid-template-columns: 210px 1fr; gap: 28px; padding-inline: 38px; }
  .coverage-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .missing-data-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .report-heading { gap: 14px; }
  .report-heading > div:first-child { min-width: 0; }
  .report-actions { flex: 0 0 auto; gap: 6px; }
  .report-actions button { min-width: 0; padding-inline: 9px; gap: 4px; font-size: .71rem; }
  .deep-summary-card { grid-template-columns: 1fr 1.4fr; }
  .deep-time { grid-column: 1 / -1; padding-top: 10px; text-align: left; border-top: 1px solid rgba(255,255,255,.2); }
  .deep-principles { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .deep-principles > div:nth-child(3) { border-left: 0; border-top: 1px solid #eadde1; }
  .deep-principles > div:nth-child(4) { border-top: 1px solid #eadde1; }
  .deep-step-nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .deep-step-nav button:nth-child(4) { border-left: 0; border-top: 1px solid #eadde1; }
  .deep-step-nav button:nth-child(n+5) { border-top: 1px solid #eadde1; }
  .deep-field-grid.four { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .deep-record-bridge { grid-template-columns: 180px minmax(0,1fr); }
  .deep-bridge-values { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .deep-bridge-values > div:nth-child(4) { border-left: 0; border-top: 1px solid #eee1e5; }
  .deep-bridge-values > div:nth-child(n+4) { border-top: 1px solid #eee1e5; }
}
@media (min-width: 821px) and (max-height: 720px) {
  .login-shell { grid-template-rows: 62px minmax(0,1fr) 42px; }
  .login-header { height: 62px; }
  .login-stage { padding-block: 18px; }
  .login-intro h1 { font-size: clamp(2.45rem,4vw,3.2rem); }
  .login-intro > p { margin: 13px 0 17px; line-height: 1.55; }
  .login-capabilities > div { padding-block: 8px; }
  .login-card { padding: 20px 25px; border-top-width: 6px; }
  .login-card-note { margin: 13px 0 14px; }
  .login-field { margin-top: 12px; }
  .login-field > div { height: 44px; }
  .login-submit { height: 44px; margin-top: 16px; }
  .login-support { margin-top: 11px; }
  .login-security { margin-top: 13px; padding-top: 11px; }
  .site-shell { grid-template-rows: 60px minmax(0, 1fr) 64px; }
  .site-header { height: 60px; }
  .hero { padding-block: 10px; }
  .eyebrow { margin-bottom: 10px; }
  .hero h1 { font-size: clamp(2.45rem, 3.7vw, 3.25rem); }
  .lead { margin: 9px 0 7px; font-size: .94rem; line-height: 1.48; }
  .framework-card { margin-top: 8px; }
  .framework-heading { padding-block: 4px; }
  .framework-methods > div { min-height: 39px; padding: 5px 8px; }
  .framework-line { min-height: 23px; padding: 3px 8px; }
  .scope-block { margin-top: 8px; }
  .scope-heading { margin-bottom: 5px; }
  .module-card { min-height: 45px; padding: 5px 10px; }
  .module-icon { width: 27px; height: 27px; font-size: .88rem; }
  .start-panel { padding: 13px 17px; border-top-width: 6px; }
  .method-banner { margin-bottom: 7px; padding: 6px 9px; }
  .panel-heading { margin-bottom: 6px; }
  .panel-heading h2 { font-size: 1.4rem; }
  .checkup-seal { width: 43px; height: 43px; }
  .checkup-seal span { font-size: 1.12rem; }
  .entry-card { padding: 9px 13px; }
  .entry-heading { margin: 5px 0; }
  .entry-heading.compact { margin-bottom: 5px; }
  .entry-icon { width: 34px; height: 34px; }
  .entry-description { margin-bottom: 6px; line-height: 1.4; }
  .primary-action { height: 37px; }
  .secondary-entry { margin-top: 5px; padding-bottom: 9px; }
  .invite-label { margin-bottom: 4px; }
  .invite-row input { height: 38px; }
  .panel-footnote { margin-top: 5px; }
  .how-it-works { padding-block: 8px; }
}
@media (max-width: 820px) {
  .assessment-shell { height: auto; min-height: 100vh; display: block; overflow: visible; }
  .assessment-workspace { display: block; }
  .assessment-rail { padding: 17px 20px; }
  .rail-heading { margin-block: 12px; }
  .module-progress { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .module-progress > button { grid-template-columns: 28px 1fr; }
  .module-progress em { display: none; }
  .rail-note { margin-top: 13px; }
  .assessment-content { overflow: visible; }
  .income-members { grid-template-columns: 1fr; }
  .education-stage-row { grid-template-columns: 1fr 1fr; }
  .education-plan-scope,.education-cost-input { grid-column: 1 / -1; }
  .retirement-household-grid,.funds-cashflow-grid,.funds-assets-grid,.asset-overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .family-wish-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .report-rail-button { max-width: 260px; }
  .report-cover-card { grid-template-columns: 1fr 1.6fr; }
  .report-meta { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.2); }
  .report-two-column,.report-next-step { grid-template-columns: 1fr; }
  .module-score-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .benchmark-case-body { grid-template-columns: 1fr; }
  .benchmark-action { padding: 10px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.22); }
  .planning-visual-card { grid-template-columns: 1fr; }
  .planning-visual svg { max-width: 560px; justify-self: center; }
  .deep-checklist-sections { grid-template-columns: 1fr; }
  .login-shell { height: auto; min-height: 100vh; display: block; overflow: visible; }
  .login-header { height: 68px; padding-inline: 22px; }
  .login-stage { grid-template-columns: 1fr; gap: 32px; padding: 42px 24px 46px; }
  .login-intro { max-width: 640px; }
  .login-intro h1 { font-size: clamp(2.5rem,8vw,3.5rem); }
  .login-capabilities { max-width: none; grid-template-columns: repeat(3,1fr); }
  .login-capabilities > div { min-height: 82px; border-right: 1px solid #ead5dc; border-bottom: 0; }
  .login-capabilities > div:last-child { border-right: 0; }
  .login-card { max-width: 640px; justify-self: stretch; }
  .login-footer { min-height: 54px; padding: 13px 24px; gap: 16px; }
  .site-shell { height: auto; min-height: 100vh; display: block; overflow: visible; }
  .site-header { padding: 0 22px; }
  .advisor-mode { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 48px 24px 44px; }
  .hero-copy { max-width: none; }
  .hero h1 { max-width: 680px; }
  .start-panel { max-width: 640px; justify-self: stretch; }
  .hero-geometry-one { right: -290px; opacity: .48; }
  .how-it-works { grid-template-columns: 1fr; gap: 22px; padding: 28px 24px; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer p { grid-column: 1 / -1; grid-row: 2; }
}
@media (min-width: 681px) and (max-width: 820px) {
  .assessment-shell { height: 100vh; height: 100dvh; display: grid; grid-template-rows: 68px minmax(0,1fr); overflow: hidden; }
  .assessment-workspace { height: 100%; display: grid; grid-template-columns: 205px minmax(0,1fr); overflow: hidden; }
  .assessment-rail { height: 100%; padding: 16px 12px; overflow-y: auto; }
  .module-progress { grid-template-columns: 1fr; }
  .module-progress > button { grid-template-columns: 28px 1fr auto; }
  .module-progress em { display: block; }
  .assessment-content { height: 100%; padding: 22px 18px 28px; overflow-y: auto; }
  .rail-note { margin-top: 12px; }
  .report-rail-button { max-width: none; }
}
@media (max-width: 580px) {
  .assessment-topline { display: block; }
  .section-time { width: max-content; margin-top: 13px; text-align: left; border-right: 0; border-left: 4px solid var(--aia-red); }
  .module-progress { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .report-heading,.report-section-heading { align-items: flex-start; flex-direction: column; }
  .protection-budget-card { grid-template-columns: 1fr; }
  .protection-budget-card dl { grid-template-columns: 1fr; }
  .protection-budget-card dl > div { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .protection-budget-card dl > div:first-child { border-top: 0; }
  .member-coverage-list > div { grid-template-columns: 82px minmax(42px,1fr); }
  .member-coverage-list strong { grid-column: 1 / -1; text-align: left; }
  .deep-heading { flex-direction: column; }
  .deep-heading-actions { width: 100%; }
  .deep-heading-actions button { flex: 1; justify-content: center; }
  .report-actions { width: 100%; }
  .report-actions button { flex: 1; justify-content: center; }
  .report-cover-card,.coverage-grid,.metric-grid,.missing-data-grid { grid-template-columns: 1fr; }
  .financial-score-main { grid-template-columns: 88px minmax(0,1fr); gap: 12px; }
  .score-ring { width: 84px; height: 84px; }
  .score-ring::after { inset: 9px; }
  .score-ring strong { font-size: 1.35rem; }
  .module-score-grid,.dependent-coverage-grid,.logic-status-grid,.logic-status-grid.below { grid-template-columns: 1fr; }
  .logic-layer-row { grid-template-columns: auto minmax(0,1fr); }
  .logic-layer-row > b { grid-column: 2; text-align: left; }
  .admin-create-form { grid-template-columns: 1fr; }
  .report-summary { padding: 12px 0; border: 0; border-top: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); }
  .report-meta { grid-column: auto; }
  .deep-summary-card { grid-template-columns: 1fr; }
  .deep-progress { padding: 12px 0; border: 0; border-top: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); }
  .deep-time { grid-column: auto; padding-top: 0; border-top: 0; }
  .deep-principles { grid-template-columns: 1fr; }
  .deep-principles > div,.deep-principles > div:nth-child(3),.deep-principles > div:nth-child(4) { border-left: 0; border-top: 1px solid #eadde1; }
  .deep-principles > div:first-child { border-top: 0; }
  .deep-checklist-items > label { grid-template-columns: 24px minmax(0,1fr); }
  .deep-checklist-items > label > em { grid-column: 2; justify-self: start; }
  .deep-entry-heading { flex-direction: column; }
  .deep-mode-switch { width: 100%; min-width: 0; }
  .deep-entry-summary { grid-template-columns: 1fr; }
  .deep-entry-summary > p { padding: 10px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.22); }
  .deep-step-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .deep-step-nav button:nth-child(odd) { border-left: 0; }
  .deep-step-nav button:nth-child(n+3) { border-top: 1px solid #eadde1; }
  .deep-form-heading { align-items: flex-start; flex-direction: column; }
  .deep-field-grid,.deep-field-grid.four { grid-template-columns: 1fr; }
  .deep-data-title { align-items: flex-start; flex-direction: column; gap: 4px; }
  .deep-entry-actions { grid-template-columns: 1fr; }
  .stress-row { grid-template-columns: 1.35fr .8fr .8fr; }
  .stress-row > :last-child { grid-column: 2 / -1; }
  .stress-head > :last-child { display: none; }
  .assessment-content { padding: 24px 17px 32px; }
  .three-columns,.amount-grid { grid-template-columns: 1fr; }
  .member-fields,.shared-amount-grid,.health-fields,.medical-target-grid,.family-wish-grid,.education-fields,.care-fields,.retirement-fields,.retirement-household-grid,.funds-cashflow-grid,.funds-assets-grid,.asset-overview-grid,.carried-data,.profile-child-age-grid { grid-template-columns: 1fr; }
  .retirement-lump-field,.asset-overview-grid .asset-allocation-field { grid-column: auto; }
  .education-child-controls { align-items: stretch; flex-direction: column; }
  .education-child-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .education-stage-row { grid-template-columns: 1fr; }
  .education-plan-scope,.education-cost-input { grid-column: auto; }
  .formula-row { grid-template-columns: 1fr; gap: 4px; }
  .assessment-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .assessment-actions button { justify-content: center; padding-inline: 10px; }
  .deep-bottom-actions { grid-template-columns: 1fr; }
  .split-actions { grid-template-columns: 1fr 1fr; }
  .split-actions button:first-child { grid-column: 1 / -1; margin-right: 0; }
  .priority-item { grid-template-columns: 30px 1fr auto; }
  .priority-item:has(.priority-drag-handle) { grid-template-columns: 44px 24px minmax(0,1fr) auto; gap: 6px; padding-inline: 7px; }
  .priority-icon { display: none; }
  .priority-copy small { font-size: .72rem; }
  .advisor-access { font-size: 0; }
  .login-stage { padding-top: 34px; }
  .login-intro h1 { font-size: 2.55rem; }
  .login-intro > p { margin-block: 17px 20px; font-size: .96rem; }
  .login-capabilities { grid-template-columns: 1fr; }
  .login-capabilities > div { min-height: 0; border-right: 0; border-bottom: 1px solid #ead5dc; }
  .login-capabilities > div:last-child { border-bottom: 0; }
  .login-card { padding: 25px 19px; border-radius: 0 27px 0 0; }
  .login-footer { display: grid; justify-content: start; }
  .site-header { height: 69px; }
  .header-actions { gap: 10px; }
  .advisor-identity { padding-right: 10px; }
  .advisor-avatar { width: 32px; height: 32px; }
  .advisor-account small { font-size: .66rem; }
  .brand-english { display: none; }
  .brand-copy small { gap: 0; font-size: .68rem; }
  .brand-developer { padding-left: 0; border-left: 0; }
  .brand-copy strong { font-size: .9rem; }
  .login-button { width: 39px; padding: 0; justify-content: center; font-size: 0; }
  .login-button svg { width: 17px; height: 17px; }
  .hero { padding-top: 39px; }
  .hero h1 { font-size: 2.64rem; }
  .lead { margin-block: 22px; font-size: 1rem; line-height: 1.7; }
  .framework-methods { grid-template-columns: 1fr 1fr; }
  .framework-methods > div { border-bottom: 1px solid #f0e1e5; }
  .framework-methods > div:nth-child(2) { border-right: 0; }
  .framework-methods > div:nth-last-child(-n+2) { border-bottom: 0; }
  .framework-line { grid-template-columns: 76px 1fr; }
  .scope-heading { display: block; }
  .scope-heading h2 { margin-top: 5px; }
  .module-grid { grid-template-columns: 1fr 1fr; }
  .module-card { min-height: 63px; padding: 10px 9px; gap: 8px; }
  .module-icon { width: 29px; height: 29px; font-size: .9rem; }
  .start-panel { padding: 23px 18px; border-radius: 0 25px 0 0; }
  .method-banner { grid-template-columns: 34px 1fr; }
  .method-banner button { display: none; }
  .panel-heading h2 { font-size: 1.55rem; }
  .checkup-seal { width: 55px; height: 55px; }
  .entry-card { padding: 18px 15px; }
  .entry-points { display: grid; }
  .process-steps { grid-template-columns: 1fr; gap: 14px; }
  .process-steps > i { display: none; }
  .how-it-works::after { opacity: .25; }
  .site-footer { padding-inline: 20px; }
  .customer-records-panel { width: 100%; padding: 20px 16px; border-left-width: 4px; }
  .records-toolbar { grid-template-columns: 1fr; }
  .records-toolbar button { justify-content: center; }
  .admin-record-scope { grid-template-columns: 1fr; }
  .customer-record-card { grid-template-columns: 1fr; }
  .record-status { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 8mm 9mm 12mm;

    /*
     * This is the report's own page number, not the browser's header/footer.
     * Chromium 131+ prints page-margin boxes even when "Headers and footers"
     * is disabled, so the URL/date stay hidden while this counter remains.
     */
    @bottom-right {
      content: counter(page) " / " counter(pages);
      font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
      font-size: 8pt;
      font-weight: 600;
      color: #6f6267;
    }
  }
  /* iPadOS/WebKit does not yet render CSS page-margin counters reliably.
     Suppress its malformed glyph output; Safari's print sheet can provide
     the native page number when that option is enabled. */
  @supports (-webkit-touch-callout: none) {
    @page {
      @bottom-right { content: none; }
    }
  }
  html,body { width: 100%; height: auto !important; min-height: 0 !important; overflow: visible !important; background: white !important; }
  body { color: #2e3035; font-size: 9.5pt; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  #login-screen,#workspace-screen,.customer-records-overlay,.toast { display: none !important; }
  #nl-badge-frame,
  iframe#nl-badge-frame,
  netlify-toolbar,
  netlify-drawer,
  #netlify-drawer {
    display: none !important;
    visibility: hidden !important;
  }
  #assessment-screen { display: block !important; width: 100% !important; height: auto !important; min-height: 0 !important; overflow: visible !important; background: white !important; }
  .assessment-shell { display: block !important; height: auto !important; min-height: 0 !important; overflow: visible !important; }
  .assessment-header,.assessment-rail,.report-actions,.deep-heading-actions,.assessment-actions,.toast { display: none !important; }
  .assessment-workspace { display: block !important; width: 100% !important; height: auto !important; min-height: 0 !important; overflow: visible !important; }
  .assessment-content { width: 100% !important; height: auto !important; min-height: 0 !important; padding: 0 !important; overflow: visible !important; }
  .assessment-module { display: none !important; }
  #report-module:not([hidden]) { display: block !important; width: 100% !important; overflow: visible !important; }
  #report-module > * { max-width: none !important; }
  .report-heading { margin: 0 0 5mm; }
  .report-heading h1 { font-size: 22pt; }
  .report-demo-note,.family-scope-note,.report-cover-card,.report-next-step,.financial-score-card,.benchmark-case-card,.protection-budget-card { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .report-demo-note,.family-scope-note,.report-cover-card,.coverage-card,.financial-score-card,.benchmark-case-card,.report-breakdown-card,.metric-grid article,.protection-budget-card,.stress-row,.priority-findings li,.evidence-card li,.report-next-step,.dependent-coverage-card,.dependent-conclusion,.medical-emergency-line,.medical-member-card,.medical-comparison,.medical-dependent-report,.report-two-column { break-inside: avoid !important; page-break-inside: avoid !important; }
  .report-section { margin-bottom: 4mm; padding: 3.5mm; box-shadow: none; break-inside: auto; page-break-inside: auto; }
  .report-main-section { padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
  #report-module > .report-section:not(.medical-comparison):not(.medical-dependent-report) { padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
  #report-module > .report-section:not(.report-main-section):not(.medical-comparison):not(.medical-dependent-report):not(.cashflow-report-section):not(.stress-report-section) { display: contents !important; }
  #report-module > .cashflow-report-section,
  #report-module > .stress-report-section {
    display: block !important;
    margin-bottom: 4mm !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }
  #report-module > .stress-report-section {
    break-before: page !important;
    page-break-before: always !important;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }
  .stress-report-section > .report-section-heading { margin: 0 0 2.5mm !important; padding: 2.7mm 3.2mm !important; }
  .stress-report-section .stress-row { min-height: 0; padding: 1.8mm 3mm; gap: 2.5mm; font-size: 8pt; line-height: 1.32; }
  .stress-report-section .stress-row strong { font-size: 8pt; }
  .stress-report-section .stress-row em { padding: 1.2mm 2mm; font-size: 7pt; }
  .stress-report-section > .report-formula-note { margin-top: 2.2mm !important; padding: 2.5mm 3mm !important; font-size: 7.2pt; line-height: 1.42; }
  #report-module > .report-section > .report-section-heading,.report-main-section > .report-formula-note { padding: 3.2mm; background: white; border: 1px solid #e4d5da; }
  #report-module > .report-section > .report-section-heading { margin-top: 4mm; }
  .report-cover-card { margin-bottom: 4mm; box-shadow: none; }
  .coverage-grid { display: block !important; font-size: 0; }
  .coverage-print-row { margin-bottom: 3mm; display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3mm; align-items: stretch; break-inside: avoid !important; page-break-inside: avoid !important; }
  .coverage-print-row .coverage-card { width: auto; min-height: 100%; margin: 0; padding: 2.8mm 3mm 3.2mm; box-sizing: border-box; display: block !important; font-size: 9pt; }
  .coverage-card-body { grid-template-columns: 20mm minmax(0,1fr); gap: 2.5mm; }
  .coverage-ring { width: 19mm; height: 19mm; }
  .coverage-ring,.score-ring,.ring-svg,.ring-svg circle { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .member-coverage-list { margin-bottom: 1mm; }
  .metric-grid { display: block !important; }
  .metric-print-row { margin-bottom: 3mm; display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3mm; align-items: stretch; break-inside: avoid !important; page-break-inside: avoid !important; }
  .metric-print-row article { width: auto; height: 100%; min-height: 21mm; margin: 0; display: block !important; font-size: 9pt; }
  .module-score-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #initial-medical-report { display: block !important; }
  #report-score-panel { display: block !important; break-before: auto; page-break-before: auto; }
  #report-score-panel > *,#report-formula-breakdown > *,#initial-medical-report > * { margin-bottom: 3mm; }
  #report-planning-logic { margin-top: 4mm; }
  .planning-logic-block { display: block !important; }
  .planning-logic-heading { grid-column: 1 / -1; margin: 0 0 1mm; padding: 3.2mm 4mm; break-before: auto !important; page-break-before: auto !important; break-after: avoid-page !important; page-break-after: avoid !important; break-inside: avoid-page !important; page-break-inside: avoid !important; }
  .planning-visual-card { margin-bottom: 4mm; padding: 4mm; display: grid !important; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr) !important; gap: 4mm 5mm; align-content: start; break-inside: avoid-page !important; page-break-inside: avoid !important; }
  .planning-visual-card::before { grid-column: 1 / -1; display: block !important; margin-bottom: 1mm; }
  .planning-visual-card > .planning-visual { width: auto; margin: 0; display: grid !important; box-sizing: border-box; }
  .planning-visual-card > .planning-analysis { width: auto; display: grid !important; box-sizing: border-box; }
  .planning-visual-card > .pyramid-principle,.planning-visual-card > .planning-conclusion { grid-column: 1 / -1; width: 100%; margin-top: 0; display: block !important; box-sizing: border-box; }
  .iceberg-report-card { margin-top: 0; break-before: page !important; page-break-before: always !important; }
  .planning-visual svg { max-height: 112mm; }
  .logic-layer-row { padding: 3.2mm 3.5mm; }
  .logic-status-grid { gap: 2mm; }
  .logic-status { padding: 2.5mm; }
  .planning-conclusion { padding: 3mm; }
  /* Multi-page CSS Grid is clipped by iPadOS Safari. Inline blocks preserve
     the two-column rhythm but let WebKit paginate between individual cards. */
  #report-formula-breakdown { display: block !important; font-size: 0; break-before: page !important; page-break-before: always !important; }
  #report-formula-breakdown > .report-breakdown-intro { width: 100%; margin: 0 0 3mm !important; display: grid !important; box-sizing: border-box; font-size: 9pt; }
  #report-formula-breakdown > .report-breakdown-card { width: calc(50% - 1.6mm); margin: 0 3.2mm 3mm 0 !important; display: inline-block !important; vertical-align: top; box-sizing: border-box; font-size: 9pt; }
  #report-formula-breakdown > .report-breakdown-card:nth-child(odd) { margin-right: 0 !important; }
  .coverage-card,.module-score-grid > div,.logic-layer-row,.logic-status,.planning-conclusion,.pyramid-principle,.score-method,.benchmark-action,.dependent-coverage-card,.dependent-conclusion,.medical-emergency-line,.medical-member-card,.report-breakdown-intro,.report-breakdown-card,.stress-row,.priority-findings li,.evidence-card li,.report-formula-note { break-inside: avoid-page !important; page-break-inside: avoid !important; }
  .medical-comparison .coverage-grid { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3mm; }
  .medical-comparison .coverage-card { min-height: 100%; }
  .benchmark-case-body,.protection-budget-card,.report-next-step { grid-template-columns: 1fr 1fr; }
  .report-final-print-group { margin-top: 3mm; display: block !important; break-before: auto !important; page-break-before: auto !important; break-inside: auto !important; page-break-inside: auto !important; }
  .report-final-print-group > * + * { margin-top: 3mm !important; }
  .report-final-print-group .report-two-column,.report-final-print-group .report-next-step { break-inside: avoid-page !important; page-break-inside: avoid !important; }
  .report-final-print-group .report-two-column { margin: 0; grid-template-columns: 1.25fr .75fr; gap: 3mm; }
  .report-final-print-group .report-section { padding: 3mm; }
  .report-final-print-group .report-section-heading { margin-bottom: 2mm; }
  .report-final-print-group .priority-findings ol { gap: 1.8mm; }
  .report-final-print-group .priority-findings li { padding: 2mm 2.5mm; gap: 1mm 2mm; }
  .report-final-print-group .evidence-card ul { gap: 1.8mm; }
  .report-final-print-group .report-next-step { margin: 0; padding: 3.5mm 4mm; gap: 5mm; }
  .stress-table { overflow: visible; }
  .stress-row { grid-template-columns: 1.55fr .82fr .82fr .9fr; }
  .report-section-heading { break-after: avoid; page-break-after: avoid; }
  .report-section-heading > p { max-width: 55%; }
  a { color: inherit; text-decoration: none; }
  .deep-heading,.deep-summary-card,.deep-principles,.deep-checklist-sections,.deep-boundary-card { max-width: none; }
  .deep-checklist-sections { grid-template-columns: 1fr; }
  .deep-checklist-card { break-inside: avoid; box-shadow: none; }
  .deep-summary-card { color-adjust: exact; print-color-adjust: exact; }
}

/* Final interaction corrections: one visible login field boundary and a one-screen desktop home. */
@media screen {
  .login-field > div {
    height: 48px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fffafb;
    border: 1px solid #dfc8cf;
    border-radius: 5px;
    box-shadow: none;
  }
  .login-field > div:focus-within {
    background: #fff;
    border-color: var(--aia-red);
    box-shadow: none;
  }
  .login-field input,
  .login-field input:focus,
  .login-field input:focus-visible,
  .login-field input:active {
    width: 100%;
    min-width: 0;
    padding: 0;
    color: var(--ink);
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
  }

  @media (min-width: 821px) {
    #workspace-screen.site-shell {
      width: 100%;
      height: 100vh;
      height: 100dvh;
      min-height: 0;
      display: grid;
      grid-template-rows: 72px minmax(0,1fr);
      overflow: hidden;
    }
    #workspace-screen .hero {
      min-height: 0;
      height: 100%;
      grid-template-columns: minmax(0,1fr) minmax(330px,.82fr);
      gap: clamp(28px,4vw,62px);
      padding-block: clamp(18px,3vh,40px);
      overflow: hidden;
      align-items: center;
    }
    #workspace-screen .how-it-works { display: none; }
  }

  @media (min-width: 821px) and (max-height: 720px) {
    #workspace-screen.site-shell { grid-template-rows: 60px minmax(0,1fr); }
    #workspace-screen .site-header { height: 60px; }
    #workspace-screen .hero { padding-block: 10px; }
    #workspace-screen .panel-footnote { display: none; }
  }

  /* Light AIA assessment navigation */
  .assessment-rail {
    color: #fff;
    background: #596168;
    border-right: 6px solid var(--aia-red);
  }
  .back-home {
    color: #f5f6f6;
  }
  .back-home:hover {
    color: #fff;
    background: rgba(255,255,255,.1);
  }
  .rail-heading > span {
    color: #ffc0d0;
  }
  .rail-heading strong {
    color: #fff;
  }
  .rail-heading small,
  .rail-section-label {
    color: #d9dde0;
  }
  .setup-progress button {
    color: #fff;
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.22);
  }
  .setup-progress button.active {
    color: var(--aia-red-dark);
    background: #fff;
    border-color: #fff;
  }
  .module-progress > button {
    color: #f2f3f3;
    border-color: transparent;
  }
  .module-progress > button.available,
  .module-progress > button.locked {
    color: #f2f3f3;
  }
  .module-progress > button.available:hover {
    color: #fff;
    background: rgba(255,255,255,.1);
  }
  .module-progress > button.active {
    color: var(--aia-red);
    background: #fff;
    border-color: #fff;
    box-shadow: inset 4px 0 0 var(--aia-red);
  }
  .rail-icon {
    color: #fff;
    background: rgba(255,255,255,.13);
  }
  .module-progress .active .rail-icon {
    color: #fff;
    background: var(--aia-red);
  }
  .report-rail-button {
    color: var(--aia-red);
    background: #fff;
    border-color: #fff;
  }
  .report-rail-button:hover,
  .report-rail-button.active {
    color: var(--aia-red-dark);
    background: #fff;
    border-color: #fff;
  }
  .rail-note {
    color: #f2f3f3;
    background: rgba(255,255,255,.09);
    border-left-color: #f09ab0;
  }
  .rail-note svg,
  .rail-note > span {
    color: #ffc0d0;
  }

  .report-cover-card {
    background: #8f1236;
    border-left-color: var(--aia-red);
  }
  .report-next-step {
    background: #8f1236;
    border-color: #8f1236;
    border-left-color: var(--aia-red);
  }
  .report-next-step .report-boundary {
    background: rgba(255,255,255,.08);
    border-left-color: #f4a4b8;
  }
}
