.tp .intro { padding-block: clamp(28px, 5vw, 52px) 24px; display: grid; gap: 12px; }
.tp .kick { font-size: 14px; font-weight: 700; color: var(--indigo); }
.tp .intro h1 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.2; max-width: 22ch; }
.tp .intro p { color: var(--mute); max-width: 62ch; }
.tp .card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 3.4vw, 34px); }
.tp .prog { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--mute); margin-bottom: 18px; }
.tp .ptrack { flex: 1; height: 6px; background: #ebe8e1; border-radius: 9px; overflow: hidden; }
.tp .fill { height: 100%; width: 0; background: var(--indigo); border-radius: 9px; transition: width .25s ease; }
.tp .part { font-size: 13px; font-weight: 700; color: var(--indigo); margin-bottom: 6px; }
.tp .qtitle { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.35; margin-bottom: 6px; }
.tp .hint { font-size: 15px; color: var(--mute); margin-bottom: 16px; }
.tp .opts { display: grid; gap: 10px; margin-top: 14px; }
.tp .opts.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tp .opt { text-align: start; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1.5px solid transparent; border-radius: 8px; padding: 13px 16px; cursor: pointer; min-height: 48px; transition: border-color .12s, background .12s; }
.tp .opt:hover { border-color: rgba(61,79,181,.35); }
.tp .opt[aria-pressed="true"] { border-color: var(--indigo); background: #eef0fb; font-weight: 700; }
.tp .chips .opt { border-radius: 999px; padding: 9px 16px; min-height: 42px; font-size: 15px; }
.tp .field { display: grid; gap: 6px; margin-top: 12px; }
.tp .field label { font-size: 14px; font-weight: 700; }
.tp .field input, .tp .field textarea { width: 100%; font: 16px var(--ar); color: var(--ink); background: var(--paper); border: 1.5px solid transparent; border-radius: 8px; padding: 12px 14px; }
.tp .field textarea { min-height: 90px; resize: vertical; line-height: 1.6; }
.tp .field input:focus, .tp .field textarea:focus { outline: none; border-color: var(--indigo); background: #fff; }
.tp .qnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
[data-lang="en"] .tp .btn { font-family: var(--serif); font-weight: 600; }
.tp .err { color: var(--bad); font-size: 14px; font-weight: 500; margin-top: 10px; }
.tp .count { font-size: 13px; color: var(--mute); margin-top: 8px; }
.tp /* report */
.report { display: grid; gap: 22px; }
.tp .rhead { background: var(--black); color: var(--paper); border-radius: 10px; padding: clamp(22px, 3.6vw, 36px); display: grid; gap: 10px; }
.tp .rhead .rk { font-size: 14px; color: var(--indigo-d); font-weight: 700; }
.tp .rhead h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.25; }
.tp .rhead p { color: #d6d4ce; max-width: 64ch; }
.tp .scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-top: 1px solid rgba(244,242,237,.16); margin-top: 8px; }
.tp .score { padding: 16px 16px 0 0; }
.tp .score + .score { border-inline-start: 1px solid rgba(244,242,237,.16); padding-inline-start: 16px; }
.tp .score b { display: block; font: 400 clamp(36px, 4.4vw, 50px)/1 var(--serif); direction: ltr; text-align: start; unicode-bidi: plaintext; }
.tp .score b small { font-size: .4em; color: var(--mute-d); }
[dir="rtl"] .tp .score b { text-align: right; }
.tp .score span { display: block; font-size: 14px; color: var(--mute-d); margin-top: 6px; }
.tp .verdict { display: inline-block; justify-self: start; margin-top: 6px; padding: 5px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--indigo-d); color: var(--black); }
.tp .block { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 3vw, 30px); display: grid; gap: 14px; }
.tp .block h3 { font-size: 20px; }
.tp .bars { display: grid; gap: 12px; }
.tp .rbar { display: grid; gap: 5px; }
.tp .rbar .lab { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.tp .rbar .lab span { color: var(--mute); direction: ltr; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tp .rbar .tr { height: 9px; background: #ebe8e1; border-radius: 9px; overflow: hidden; }
.tp .rbar .tr i { display: block; height: 100%; border-radius: 9px; background: var(--indigo); }
.tp .rbar .tr i.lo { background: var(--bad); }
.tp .rbar .tr i.mid { background: var(--warn); }
.tp .items { display: grid; gap: 0; }
.tp .item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.tp .item:first-child { border-top: 0; padding-top: 4px; }
.tp .item .n { font: 400 30px/1 var(--serif); color: var(--indigo); min-width: 1.6em; direction: ltr; text-align: start; unicode-bidi: plaintext; white-space: nowrap; }
.tp .item h4 { margin: 0 0 4px; font-size: 18px; }
.tp .item p { font-size: 15.5px; color: #3a3935; }
.tp .item .tag { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--indigo); }
.tp .note { font-size: 13px; color: var(--mute); }
.tp .cta { background: var(--black); color: var(--paper); border-radius: 10px; padding: clamp(20px, 3vw, 30px); display: grid; gap: 12px; }
.tp .cta h3 { font-size: 22px; }
.tp .cta p { color: #d6d4ce; }
.tp .cta .field label { color: var(--paper); }
.tp .cta .field input { background: #1c1c1e; color: var(--paper); border-color: #2c2c2f; }
.tp .cta .field input:focus { border-color: var(--indigo-d); background: #232326; }
.tp .cta .btn-ink { background: var(--paper); color: var(--ink); }
.tp .cta .status { color: var(--indigo-d); font-size: 15px; min-height: 1.2em; }
.tp .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 600px) { .tp .two { grid-template-columns: minmax(0, 1fr); } }
.tp .foot { padding-block: 34px; font-size: 14px; color: var(--mute); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.tp .foot a { text-decoration: none; font-weight: 700; color: var(--indigo); }
@media (prefers-reduced-motion: reduce) { .tp .fill, .tp .opt { transition: none; } }
/* --- v3 tool page additions --- */
body.tp { background: var(--paper); color: var(--ink); }
.tp { --mute: #5f5d58; --line: rgba(18,18,18,.14); --good: #2f7a4f; --warn: #b7791f; --bad: #b0442c; }
.tp main.wrap { max-width: 1080px; margin-inline: auto; padding-inline: max(5vw, 18px); padding-bottom: 20px; }
.tp .crumb { font-size: 14px; color: var(--mute); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tp .crumb a { color: var(--indigo); text-decoration: none; font-weight: 700; }
.tp .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tp .meta span { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; color: var(--mute); background: #fff; }
.tp .resume { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; background: #eef0fb; border: 1px solid rgba(61,79,181,.25); border-radius: 10px; padding: 14px 18px; margin-bottom: 16px; }
.tp .resume p { font-size: 15px; }
.tp .resume .qnav { margin: 0; }
.tp .btn-ghost { color: var(--ink); border-color: var(--line); background: none; }
.tp .btn-ghost:hover { border-color: var(--ink); }
.tp .btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.tp .qnav { margin-top: 22px; }
.tp .privacy-line { font-size: 13px; color: var(--mute); margin-top: 14px; display: flex; gap: 8px; align-items: flex-start; }
.tp .privacy-line::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: .55em; border-radius: 50%; background: var(--good); }
.tp .dims4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(244,242,237,.16); margin-top: 10px; }
.tp .d4 { padding: 16px 14px 2px 0; display: grid; gap: 6px; align-content: start; }
.tp .d4 + .d4 { border-inline-start: 1px solid rgba(244,242,237,.16); padding-inline-start: 14px; }
.tp .d4 b { font: 400 clamp(34px, 4vw, 46px)/1 var(--serif); direction: ltr; text-align: start; unicode-bidi: plaintext; }
[dir="rtl"] .tp .d4 b { text-align: right; }
.tp .d4 b small { font-size: .4em; color: var(--mute-d); }
.tp .d4 .dl { font-size: 14px; color: var(--paper); font-weight: 700; }
.tp .d4 .dv { font-size: 13px; color: var(--mute-d); }
.tp .d4 .meter { height: 5px; border-radius: 9px; background: #2a2a2d; overflow: hidden; }
.tp .d4 .meter i { display: block; height: 100%; background: var(--indigo-d); }
.tp .d4 .meter i.lo { background: #e0795f; } .tp .d4 .meter i.mid { background: #e3b24f; }
@media (max-width: 760px) { .tp .dims4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tp .d4:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; } .tp .d4:nth-child(n+3) { border-top: 1px solid rgba(244,242,237,.16); margin-top: 12px; } }
.tp .sepnote { font-size: 13px; color: var(--mute-d); border-top: 1px solid rgba(244,242,237,.16); padding-top: 10px; margin-top: 4px; }
.tp .verdict.go { background: #a6e3bf; } .tp .verdict.test { background: var(--indigo-d); } .tp .verdict.adjust { background: #f1d64a; } .tp .verdict.stop { background: #f0a58f; }
.tp .block p.para { font-size: 16px; color: #2b2a27; }
.tp .block .lead2 { font-size: 17px; color: var(--ink); }
.tp .chk { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tp .chk li { display: flex; gap: 10px; font-size: 15.5px; color: #2b2a27; }
.tp .chk li::before { content: ""; flex: 0 0 7px; height: 7px; margin-top: .7em; border-radius: 50%; background: var(--indigo); }
.tp .chk.good li::before { background: var(--good); } .tp .chk.bad li::before { background: var(--bad); }
.tp .cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 760px) { .tp .cols2 { grid-template-columns: minmax(0, 1fr); } }
.tp .cols2 h4 { margin: 0 0 8px; font-size: 16px; }
.tp .plan { display: grid; gap: 0; }
.tp .ph { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.tp .ph:first-child { border-top: 0; padding-top: 2px; }
.tp .ph .when { font-size: 14px; font-weight: 700; color: var(--indigo); }
.tp .ph h4 { margin: 0 0 4px; font-size: 17px; }
.tp .ph p { font-size: 15px; color: #3a3935; }
.tp .ph .crit { display: block; margin-top: 6px; font-size: 13.5px; color: var(--mute); }
@media (max-width: 520px) { .tp .ph { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.tp .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tp .ai { background: #fff; border: 1px dashed rgba(61,79,181,.5); border-radius: 10px; padding: clamp(18px, 3vw, 26px); display: grid; gap: 10px; }
.tp .ai h3 { font-size: 19px; }
.tp .ai .aiout { display: grid; gap: 10px; font-size: 16px; color: #2b2a27; white-space: pre-wrap; }
.tp .cta .consent { color: #d6d4ce; }
.tp .cta .consent input { accent-color: var(--indigo-d); }
.tp .report .note a { color: var(--indigo); }
.tp .handoff { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; background: var(--black); color: var(--paper); border-radius: 10px; padding: 18px 22px; }
.tp .handoff p { color: #d6d4ce; font-size: 15px; }
.tp .handoff .btn { background: var(--paper); color: var(--ink); }
html:not([data-lang="en"]) .tp :is(.qtitle) { font-size: clamp(22px, 2.6vw, 26px); }
html:not([data-lang="en"]) .tp :is(.opt, .field input, .field textarea, .block p.para, .item p, .ph p, .chk li) { font-size: var(--t5); }
html:not([data-lang="en"]) .tp :is(.hint, .part, .crumb, .meta span, .count, .note, .privacy-line, .d4 .dl, .d4 .dv, .sepnote, .ph .when, .ph .crit) { font-size: var(--t6); }
html:not([data-lang="en"]) .tp :is(.block h3, .rhead .rk + h2) { line-height: 1.35; }
@media print {
  .bar, .mnav, footer, .tp .intro, .tp #quiz, .tp .resume, .tp .actions, .tp .cta, .tp .ai, .tp .handoff, .tp .restart, .tp .foot { display: none !important; }
  body.tp { background: #fff; }
  .tp .rhead { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tp .block { break-inside: avoid; }
  .tp .printhead { display: block !important; font-size: 13px; color: #555; margin-bottom: 10px; }
}
.tp .printhead { display: none; }
