:root {
  color-scheme: light;
  --ink: #102039;
  --navy: #0a1930;
  --deep: #13294a;
  --muted: #4e607b;
  --paper: #fff;
  --surface: #edf3fc;
  --line: #d6e0ef;
  --blue: #234bd9;
  --blue-dark: #1739b1;
  --gold: #e1bd7d;
  --shadow: 0 20px 55px rgba(26, 59, 110, .09);
  --radius: 18px;
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
  font-size: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.66; }
main { min-height: 56vh; }
h1, h2, h3, p, dl { margin: 0; }
h1, h2, h3 { line-height: 1.24; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5vw, 3.85rem); font-weight: 790; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.62rem); font-weight: 770; }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 740; }
p { font-size: 1.06rem; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #5179ff; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 64px, 1220px); margin-inline: auto; }
.section { padding-block: clamp(50px, 7vw, 100px); }
.section h2 + p, .section h3 + p { margin-top: 12px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 34px; }
.section-head > p { max-width: 37ch; color: var(--muted); }
.eyebrow { margin-bottom: 13px; font-size: .86rem; font-weight: 800; letter-spacing: .17em; color: var(--blue-dark); }
.muted { color: var(--muted); font-size: .94rem; }
.surface { background: var(--surface); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 10px 20px; border: 1px solid transparent; border-radius: 9px; text-decoration: none; font-weight: 740; line-height: 1.35; font-size: 1rem; transition: background .18s, transform .18s, border-color .18s; }
.button:not(:disabled):active { transform: translateY(1px); }
.primary { color: white; background: var(--blue); }
.primary:hover { background: var(--blue-dark); }
.secondary { background: #f0f4ff; border-color: #bdccf5; color: #173680; }
.secondary:hover { background: #e1eaff; border-color: #829cf1; }
.light { background: #f4f7ff; color: var(--navy); }
.light:hover { background: #dce8ff; }
.danger { color: #8b251f; background: #fff0ee; border-color: #f3c7c0; }
.danger:hover { background: #ffe1dc; }
.button:disabled { cursor: not-allowed; opacity: .54; }
.full { width: 100%; }
.skip-link { position: fixed; z-index: 30; top: 10px; left: 10px; background: white; padding: 10px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 25px; align-items: center; min-height: 84px; }
#header { position: relative; z-index: 2; background: var(--navy); color: white; }
.brand { display: inline-flex; align-items: center; width: fit-content; gap: 11px; text-decoration: none; color: white; line-height: 1.15; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand span { letter-spacing: .14em; font-size: 1.12rem; font-weight: 820; }
.brand small { display: block; font-size: .81rem; letter-spacing: .055em; margin-top: 6px; font-weight: 500; color: #c4d0e4; }
.site-head nav, .site-foot nav { display: flex; gap: clamp(15px, 2.6vw, 32px); align-items: center; }
.site-head nav a, .site-foot nav a { text-decoration: none; font-weight: 650; color: #dbe5f6; }
.site-head nav a:hover, .site-head nav [aria-current], .site-foot nav a:hover { color: white; text-decoration: underline; text-underline-offset: 7px; }
.partner-link { justify-self: end; border: 1px solid #7287a6; border-radius: 8px; background: #1d3251; text-decoration: none; padding: 9px 14px; font-weight: 700; white-space: nowrap; }
.partner-link:hover { background: #304b73; }
.referral { background: #20375e; padding: 8px 0; font-size: .92rem; color: #e3edff; }
.referral strong { color: white; }
.referral details { display: inline-block; margin-left: 15px; }
.referral summary { font-weight: 600; }
.referral details p { max-width: 68ch; margin-block: 6px; font-size: .94rem; }
#footer { background: var(--navy); color: #bfcee4; }
.site-foot { min-height: 140px; display: flex; justify-content: space-between; align-items: center; gap: 26px; padding-block: 30px; }
.site-foot p { font-size: .94rem; }
.hero {
  color: white;
  background: linear-gradient(90deg, #08172cf2 0%, #091b35ed 35%, #08183244 84%), linear-gradient(0deg,#07172caa,transparent 75%), url("/assets/taipei-boardroom.webp") center 55%/cover;
  border-top: 1px solid #627d9a4a;
}
.hero-inner { padding-block: clamp(69px, 11vw, 145px) 57px; }
.hero .eyebrow, .login-photo .eyebrow, .result-hero .eyebrow, .partner-top .eyebrow { color: var(--gold); }
.hero h1 { max-width: 16em; line-height: 1.18; text-wrap: initial; }
.mobile-break { display: none; }
.hero-copy { max-width: 36em; margin-block: 25px 32px; color: #e0eafa; font-size: clamp(1.08rem, 1.5vw, 1.23rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .button { min-height: 55px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 15px 28px; margin-top: clamp(39px, 6vw, 70px); padding-top: 21px; border-top: 1px solid #b8c9e76e; width: fit-content; color: #d4e1f4; }
.hero-meta b { color: white; font-size: 1.23rem; }
.spotlights { display: grid; grid-template-columns: 1.46fr 1fr; gap: 14px; }
.spot { position: relative; display: flex; flex-direction: column; min-height: 180px; padding: clamp(24px, 3.1vw, 42px); border-radius: var(--radius); background: #edf3fc; border: 1px solid #d9e5f5; text-decoration: none; overflow: hidden; transition: border-color .18s, transform .18s; }
.spot:hover { transform: translateY(-3px); border-color: #7997df; }
.spot.feature { grid-row: span 2; background: linear-gradient(150deg,#0e244a,#1c3b6c); color: white; border-color: #233e6b; }
.spot span { color: var(--blue-dark); letter-spacing: .1em; font-size: .88rem; font-weight: 780; }
.spot.feature span { color: #a9bdff; }
.spot h3 { margin-block: 12px; }
.spot.feature h3 { font-size: clamp(1.85rem, 4vw, 3rem); }
.spot p { max-width: 38ch; color: var(--muted); margin-bottom: 16px; }
.spot.feature p { color: #dfebff; }
.spot strong { margin-top: auto; }
.spot svg { width: 100%; margin-top: auto; }
.advice-band { background: #eef3fa; }
.advice-grid { display: grid; grid-template-columns: .9fr 1fr; align-items: center; gap: clamp(26px, 6vw, 88px); padding-block: clamp(52px,7vw,100px); }
.advice-grid img { width: 100%; height: 100%; max-height: 550px; min-height: 340px; object-fit: cover; border-radius: var(--radius); }
.advice-grid h2+p { margin-top: 15px; color: var(--muted); }
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 12px; margin-block: 25px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 35px auto 1fr; align-items: start; gap: 13px; }
.steps li::before { content: "0" counter(step); font-size: 1rem; font-weight: 800; color: var(--blue); }
.steps span { color: var(--muted); }
.knowledge-strip { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.page-head { background: linear-gradient(115deg,#eaf1fc,#f7f9fd); border-bottom: 1px solid #dce5f1; }
.page-head .wrap { padding-block: clamp(42px, 6vw, 77px); }
.page-head h1 { max-width: 24em; }
.page-head h1 + p { max-width: 62ch; color: var(--muted); margin-top: 16px; overflow-wrap: anywhere; }
.assessment { display: grid; grid-template-columns: minmax(220px,.62fr) minmax(0,1.38fr); align-items: start; gap: clamp(25px, 7vw, 105px); padding-block: clamp(38px, 7vw, 100px); }
.assessment-side { border-top: 3px solid var(--blue); padding-top: 22px; }
.assessment-side h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); margin-bottom: 14px; }
.step-rail { display: grid; gap: 7px; padding-block: 26px; }
.step-rail span { color: #51617a; padding: 9px 13px; border-left: 2px solid var(--line); }
.step-rail b { margin-left: 8px; }
.step-rail .active { background: #eaf0ff; border-color: var(--blue); color: var(--blue-dark); }
.step-rail .done { border-color: #208778; }
.assessment-form { padding: clamp(22px, 4vw, 46px); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.progress-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--blue-dark); font-weight: 750; }
progress { width: 100%; height: 10px; display: block; appearance: none; border: 0; border-radius: 100px; background: #e6ecf8; margin: 12px 0 32px; overflow: hidden; color: var(--blue); }
progress::-webkit-progress-bar { background: #e6ecf8; }
progress::-webkit-progress-value, progress::-moz-progress-bar { background: var(--blue); }
progress::-webkit-progress-value { background: var(--blue); }
fieldset { margin: 0; padding: 0; min-width: 0; border: 0; }
.assessment-form legend { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 790; line-height: 1.34; }
.question-hint { margin-block: 12px 17px; color: var(--muted); font-size: .97rem; }
.options { display: grid; gap: 10px; }
.option { display: grid; grid-template-columns: 31px 1fr; align-items: center; gap: 12px; padding: 11px 14px; min-height: 53px; position: relative; border: 1px solid #cbd8eb; border-radius: 9px; cursor: pointer; font-weight: 620; }
.option input { opacity: 0; position: absolute; margin: 0; width: 1px; height: 1px; }
.option:hover { background: #f3f7ff; }
.option:has(input:checked) { border-color: var(--blue); background: #e8efff; box-shadow: inset 0 0 0 1px var(--blue); }
.option:has(input:focus-visible) { outline: 3px solid #5179ff; outline-offset: 3px; }
.option-key { display: grid; place-items: center; border-radius: 6px; width: 30px; height: 30px; background: #edf2fb; color: #32496d; font-weight: 800; }
.option:has(input:checked) .option-key { background: var(--blue); color: white; }
.suboptions { display: flex; flex-wrap: wrap; gap: 9px; }
.suboptions .option { min-height: 45px; padding: 7px 10px; font-size: .93rem; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 26px; }
.switchline { display: flex; align-items: center; gap: 8px; padding-block: 4px 14px; font-size: .95rem; }
input[type=radio], input[type=checkbox], input[type=range] { accent-color: var(--blue); }
input[type=checkbox] { width: 19px; height: 19px; flex: 0 0 auto; }
.result-hero, .partner-top { background: radial-gradient(ellipse at 85% 0%,#294c80,var(--navy) 69%); color: white; }
.result-top { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding-block: clamp(35px,7vw,81px); }
.result-top h1 { margin-block: 5px 12px; }
.result-top p:not(.eyebrow), .partner-top p:not(.eyebrow) { color: #e0ebfc; max-width: 57ch; }
.stage-label { font-size: .95rem; color: #bccff1; }
.score { display: grid; justify-items: center; align-content: center; min-width: 190px; min-height: 190px; border: 1px solid #a9c4f689; border-radius: 50%; padding: 23px; background: #142d52; box-shadow: 0 0 0 10px #abc4f31a; color: #dbe8fc; text-align: center; }
.score strong { font-size: clamp(3rem, 7vw, 4.8rem); line-height: 1.05; color: white; font-variant-numeric: tabular-nums; }
.priority { display: grid; grid-template-columns: 60px minmax(0,1fr) auto; gap: 24px; align-items: center; border-top: 1px solid var(--line); padding: 23px 0; }
.priority:last-child { border-bottom: 1px solid var(--line); }
.sequence { font-variant-numeric: tabular-nums; font-size: clamp(1.5rem,3.5vw,2.65rem); line-height: 1.2; font-weight: 800; color: #627cba; }
.tag { display: inline-block; color: var(--blue-dark); font-weight: 750; margin-bottom: 4px; font-size: .91rem; }
.priority p, .case-risks { margin-top: 10px; color: var(--muted); }
.risk { color: #8a3123; padding-inline-start: 22px; margin-block: 7px; }
.notice { background: #eff4ff; border: 1px solid #cddbf9; border-left: 4px solid #5578d9; border-radius: 8px; padding: 14px 17px; margin-block: 15px; color: #22395e; overflow-wrap: anywhere; }
.result-dim { background: #f2f6fd; }
.dimension-grid, .case-overview { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: clamp(18px,6vw,80px); }
.radar { width: min(100%,540px); margin-inline: auto; }
.radar text { fill: #354c71; font-size: 14px; font-weight: 650; }
.dimension-list { display: grid; gap: 0 18px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.dimension-list div, .stats div { border-bottom: 1px solid var(--line); padding: 11px 0; }
.dimension-list dt, .stats dt { color: var(--muted); }
.dimension-list dd, .stats dd { margin: 2px 0 0; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.next-step p { max-width: 64ch; color: var(--muted); }
.next-step .row { margin-top: 22px; }
.background, .case-answers { border: 1px solid var(--line); padding: 15px 19px; border-radius: 10px; margin-top: 22px; }
summary { cursor: pointer; font-weight: 760; }
.background-grid, .two-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 17px; }
.background-grid { padding-block: 13px; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.filter { min-height: 43px; padding: 7px 13px; color: #203e75; font-weight: 730; border: 1px solid #c8d6ed; border-radius: 9px; background: #f0f5fd; }
.filter[aria-pressed=true] { background: var(--blue); color: white; border-color: var(--blue); }
.filter:hover:not([aria-pressed=true]) { background: #dfeafe; }
.tool-group + .tool-group { margin-top: 40px; }
.tool-group h2 { font-size: 1.7rem; margin-bottom: 13px; }
.tool-list { border-top: 1px solid var(--line); }
.tool-item { display: grid; grid-template-columns: minmax(170px,.65fr) minmax(0,1fr) 35px; align-items: center; gap: 18px; min-height: 73px; border-bottom: 1px solid var(--line); text-decoration: none; padding: 12px 10px; }
.tool-item:hover { background: #eff5ff; }
.tool-item > span { font-size: 1.13rem; font-weight: 780; }
.tool-item p { color: var(--muted); }
.tool-item b { color: var(--blue); font-size: 1.2rem; text-align: center; }
.calc-wrap { padding-block: 21px 78px; }
.breadcrumbs { font-size: .92rem; margin-bottom: 21px; color: var(--muted); }
.breadcrumbs a { color: var(--blue-dark); }
.calc-grid { display: grid; grid-template-columns: minmax(220px,.55fr) minmax(0,1.45fr); grid-template-areas: "controls metric" "controls result"; grid-template-rows: auto 1fr; align-items: start; gap: 14px 21px; }
#calc-primary { grid-area: metric; min-width: 0; }
.calc-controls, .calc-result { border: 1px solid var(--line); border-radius: var(--radius); }
.calc-controls { grid-area: controls; padding: 18px; background: #f8faff; }
.calc-controls summary { min-height: 34px; }
.calc-controls form { display: grid; gap: 13px; padding-top: 10px; }
.calc-result { grid-area: result; padding: clamp(20px,3vw,37px); box-shadow: var(--shadow); }
.calc-field label, label:has(> input:not([type=checkbox])), label:has(> select), label:has(> textarea) { font-weight: 700; }
input:not([type=radio],[type=checkbox],[type=range]), textarea, select { display: block; width: 100%; min-height: 45px; padding: 9px 11px; margin-top: 5px; color: var(--ink); background: white; border: 1px solid #9eafca; border-radius: 7px; }
input[readonly] { background: #f5f8ff; }
input[type=range] { display: block; width: 100%; min-height: 25px; margin: 6px 0 0; cursor: pointer; }
textarea { resize: vertical; }
.number-wrap { position: relative; }
.number-wrap input { padding-right: 40px; font-variant-numeric: tabular-nums; }
.number-wrap span { position: absolute; right: 11px; top: 9px; color: var(--muted); pointer-events: none; }
.calc-metric { display: grid; gap: 8px; padding: clamp(19px, 4vw, 38px); color: white; background: linear-gradient(125deg,#142c51,#244985); border-radius: 13px; }
.calc-metric span { font-weight: 750; color: #e3ecff; }
.calc-metric strong { font-size: clamp(1.7rem,4.3vw,3.55rem); line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,150px),1fr)); gap: 0 16px; margin: 10px 0 22px; }
.stats dt { font-size: .94rem; }
.stats dd { font-size: 1.1rem; }
.compare { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-block: 12px; }
.compare section { background: #f1f5fd; border: 1px solid var(--line); padding: 13px; border-radius: 9px; }
.compare .eyebrow { letter-spacing: .04em; margin-bottom: 4px; }
.compare strong { font-size: clamp(1rem,2.1vw,1.45rem); }
.compare p:last-child { font-size: .91rem; color: var(--muted); }
.line-chart { width: 100%; background: #f6f9ff; border-radius: 9px; }
.line-chart text { fill: #415677; font-size: 16px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 17px; margin: 13px 0; }
.legend span { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; }
.legend i { width: 15px; height: 6px; border-radius: 3px; }
.chart-slider { display: block; font-size: .95rem; font-weight: 720; }
.chart-reading { min-height: 28px; color: var(--muted); font-size: .92rem; }
.data-bars { display: grid; gap: 12px; padding: 17px 0; }
.data-bars > div { display: grid; grid-template-columns: minmax(90px,.57fr) minmax(20px,1fr) minmax(105px,auto); align-items: center; gap: 10px; }
.data-bars strong { text-align: right; overflow-wrap: anywhere; }
.bar-track { background: #e8eef9; border-radius: 4px; overflow: hidden; min-height: 10px; }
.bar-track b { display: block; min-height: 10px; border-radius: 4px; }
.allocation-chart { display: grid; grid-template-columns: minmax(70px,.45fr) minmax(0,1fr); align-items: center; gap: 16px; }
.allocation-chart svg { width: min(100%,180px); }
.calc-actions { display: flex; gap: 11px; flex-wrap: wrap; margin-block: 20px; }
.assumption { border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); font-size: .94rem; }
.assumption strong { color: var(--ink); }
.assumption + .muted { margin-top: 6px; }
.notes article { display: grid; grid-template-columns: 70px 1fr; border-top: 1px solid var(--line); gap: 12px; padding: 24px 0; }
.notes article:last-child { border-bottom: 1px solid var(--line); }
.notes article p { max-width: 67ch; color: var(--muted); }
.notes .button { margin-top: 14px; }
.privacy { max-width: 800px; }
.privacy h2 { font-size: 1.55rem; margin-top: 26px; }
.privacy h2:first-child { margin-top: 0; }
.privacy .button { margin-top: 16px; }
.share-dialog { width: min(100% - 22px, 630px); max-height: calc(100% - 24px); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(19px,4vw,33px); color: var(--ink); }
.share-dialog::backdrop { background: #06132cba; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 15px; }
.dialog-head .eyebrow { font-size: .75rem; }
.dialog-head .button { min-height: 42px; padding-inline: 11px; }
.lookup { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; }
.lookup .button { min-height: 45px; }
#recipient { min-height: 28px; margin-bottom: 9px; }
.attachments, .report-tools { border: 1px solid var(--line); border-radius: 9px; padding: 10px 13px; margin-top: 12px; }
.attachments legend, .report-tools legend { font-weight: 750; padding-inline: 5px; }
.attachments label, .consent { display: flex; align-items: flex-start; gap: 9px; }
.attachments label { padding: 4px 0; }
.consent { margin: 14px 0 7px; padding: 11px; background: #edf3fc; border-radius: 8px; font-size: .95rem; }
.consent a { margin-left: 6px; color: var(--blue-dark); }
.form-error { color: #922b23; font-weight: 650; margin-block: 5px 10px; }
.form-error:empty { display: none; }
#toast { position: fixed; z-index: 50; inset: auto 16px 16px auto; max-width: min(430px,100% - 32px); color: white; background: #142a4e; border: 1px solid #56739f; padding: 14px 18px; border-radius: 10px; box-shadow: var(--shadow); }
.login-layout { display: grid; grid-template-columns: 1.16fr 1fr; min-height: 65vh; }
.login-photo { background: linear-gradient(100deg,#0a1a32f3,#0c2b5488),url("/assets/taipei-boardroom.webp") center/cover; color: white; padding: clamp(40px,8vw,120px) clamp(22px,6vw,88px); }
.login-photo p:not(.eyebrow) { color: #e1eaff; margin-top: 20px; max-width: 34ch; }
.login-panel { display: grid; place-items: center; padding: 32px; }
.login-panel > div { width: min(100%,410px); }
.login-panel h2 + p { margin-block: 11px 20px; color: var(--muted); }
.login-panel form, .profile-form, .report-form { display: grid; gap: 13px; }
.profile-form, .report-form { max-width: 930px; }
.demo-notice p { font-size: .95rem; margin-block: 5px 8px; }
.partner-top .section { padding-block: 39px; }
.partner-top h1 { font-size: clamp(2rem,4vw,3.15rem); margin-bottom: 13px; overflow-wrap: anywhere; }
.partner-top .section-head { align-items: start; }
.partner-nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.partner-nav a { color: #e9f0ff; text-underline-offset: 5px; padding: 5px 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th,td { min-width: 110px; padding: 13px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
th { background: #eef3fc; }
tr:last-child td { border-bottom: 0; }
.empty { border: 1px dashed #b6c8e3; background: #f7faff; border-radius: 14px; padding: 25px; }
.empty .button { margin-top: 12px; }
.partner-counts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.partner-counts div { border-top: 3px solid var(--blue); background: white; padding: clamp(12px,2vw,22px); border-radius: 8px; }
.partner-counts dd { margin: 2px 0 0; font-size: clamp(1.6rem,4vw,2.7rem); font-weight: 800; }
.link-builder { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr) auto; align-items: end; gap: 11px; margin-top: 24px; }
.link-builder .button, .add-tool .button { min-height: 45px; }
.case-top { justify-content: space-between; margin-bottom: 24px; }
.case-overview { padding: clamp(18px,3vw,32px); border: 1px solid var(--line); border-radius: 14px; }
.case-score { font-size: 3rem; font-weight: 850; }
.case-score span { font-size: 1.15rem; }
.case-dimensions { grid-template-columns: repeat(4,minmax(0,1fr)); margin-block: 12px; }
.case-answers ol { padding-left: 24px; }
.case-answers li { padding-block: 6px; }
.case-answers li span { display: block; color: var(--muted); }
.add-tool { display: flex; align-items: end; gap: 9px; margin-block: 12px; }
.add-tool label { flex: 1; }
.shared-tools { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.included-tool { margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.included-tool > div:first-child { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.included-tool [data-estimate] { font-weight: 750; color: #1f3c74; }
@media (max-width: 900px) {
  .site-head { gap: 15px; }
  .site-foot { flex-wrap: wrap; }
  .steps li { grid-template-columns: 25px auto 1fr; gap: 8px; }
  .line-chart text { font-size: 18px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .site-head { grid-template-columns: 1fr auto; padding: 13px 0 8px; gap: 9px; }
  .site-head nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: 9px; padding-block: 6px; }
  .site-head nav a { font-size: .95rem; }
  .partner-link { grid-row: 1; grid-column: 2; font-size: .92rem; }
  .brand img { width: 36px; height: 36px; }
  .brand span { font-size: .98rem; }
  .brand small { font-size: .73rem; }
  .hero { background-position: center,center,58% 45%; }
  .hero-inner { padding-block: 55px 41px; }
  .hero-meta { gap: 11px 13px; font-size: .9rem; }
  .hero h1 { font-size: clamp(2rem,7.5vw,3.5rem); }
  .mobile-break { display: initial; }
  .section-head, .knowledge-strip { align-items: start; flex-direction: column; }
  .spotlights, .advice-grid, .assessment, .calc-grid, .case-overview { grid-template-columns: 1fr; }
  .spot.feature { grid-row: auto; }
  .advice-grid img { max-height: 300px; min-height: 230px; }
  .assessment-side { display: none; }
  .assessment { padding-block: 27px 50px; }
  .assessment-form { padding: 20px; }
  .result-top { grid-template-columns: minmax(0,1fr) auto; gap: 13px; }
  .score { min-width: 114px; min-height: 114px; padding: 12px; font-size: .8rem; box-shadow: 0 0 0 5px #abc4f31a; }
  .score strong { font-size: 2.4rem; }
  .dimension-grid { grid-template-columns: 1fr; gap: 9px; }
  .priority { grid-template-columns: 35px minmax(0,1fr); gap: 8px 13px; }
  .priority .button { grid-column: 2; justify-self: start; }
  .tool-item { grid-template-columns: minmax(0,1fr) 22px; gap: 4px 10px; }
  .tool-item p { grid-row: 2; font-size: .93rem; }
  .tool-item b { grid-row: 1 / 3; grid-column: 2; }
  .calc-grid { grid-template-areas: "metric" "controls" "result"; grid-template-rows: auto; }
  .calc-controls summary { min-height: 0; }
  .calc-wrap { padding-bottom: 50px; }
  .line-chart text { font-size: 24px; }
  .login-layout { grid-template-columns: 1fr; }
  .login-panel { padding: 28px 18px 45px; }
  .login-photo { padding: 35px 18px; }
  .partner-top .section-head { flex-direction: row; }
  .link-builder { grid-template-columns: 1fr; }
  .link-builder .button { justify-self: start; }
  .case-dimensions { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 430px) {
  .hero-actions .button { width: 100%; }
  .brand { gap: 6px; }
  .result-top { grid-template-columns: 1fr; }
  .score { justify-self: start; }
  .two-fields, .background-grid { grid-template-columns: 1fr; }
  .data-bars > div { grid-template-columns: minmax(78px,1fr) 1fr; gap: 3px 8px; }
  .data-bars > div strong { grid-column: 2; grid-row: 1; }
  .data-bars .bar-track { grid-column: 1 / -1; }
  .allocation-chart { grid-template-columns: 1fr; }
  .allocation-chart svg { margin-inline: auto; }
  .notes article { grid-template-columns: 40px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
