:root{--ui-serif:'Songti SC','STSong','SimSun',serif}
body{display:block;background:#e8f1f4;padding:0;min-height:100dvh;font-family:var(--sans);color:var(--ink)}button,input{font:inherit}button,a,input{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #075b8b;outline-offset:4px}a{color:var(--blue);text-underline-offset:4px}input{caret-color:var(--blue)}[hidden]{display:none!important}.app-header{width:min(100% - 40px,1040px);margin:auto;padding:22px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #b4ced9;gap:18px}.app-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-family:var(--ui-serif);font-size:25px}.app-brand img{width:30px;height:35px;object-fit:contain;filter:brightness(0) saturate(100%) invert(20%) sepia(24%) saturate(1394%) hue-rotate(161deg) brightness(92%) contrast(94%)}nav{display:flex;gap:16px}.text-button{border:0;background:transparent;color:var(--blue);padding:8px 0;min-height:44px;font-size:14px}.text-button:hover{text-decoration:underline}.app-main{width:min(100% - 40px,820px);margin:42px auto 56px;min-height:60dvh}.app-main h1:where(:not(.poster *)){font:750 38px/1.3 var(--ui-serif);letter-spacing:-.02em;margin-bottom:20px}.app-main h2:where(:not(.poster *)){font-size:23px;line-height:1.4;margin:28px 0 12px}.app-main h3:where(:not(.poster *)){font-size:18px;margin:0 0 10px}.app-main p:where(:not(.poster *)){line-height:1.75;margin:10px 0;color:#34586b}.intro{max-width:670px;font-size:18px}.hero{display:grid;grid-template-columns:1.3fr 1fr;gap:36px;align-items:center}.hero-image{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:14px}.actions{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0 16px}.button{background:#164762;color:#f5fafb;border:1px solid #164762;border-radius:10px;min-height:48px;padding:12px 20px;font-weight:650;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.4}.button:hover{background:#24607c}.button.secondary{background:transparent;color:#164762;border-color:#8db2c4}.button.secondary:hover{background:#d2e6ef}.quiet{font-size:14px;color:#486775!important}.warm-note{background:#fff1c9;border:1px solid #dec58a;padding:18px 20px;border-radius:12px;margin:22px 0}.warm-note p{margin:6px 0}.test-label{color:#8b3e31!important;font-weight:650}.steps{display:flex;gap:22px;font-size:14px;color:#426476;flex-wrap:wrap;margin:24px 0}.steps strong{color:var(--blue)}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-field{display:flex;flex-direction:column;gap:9px;margin:14px 0}.form-field input{width:100%;border:1px solid #88aebf;background:#f7fafb;border-radius:9px;padding:13px 14px;color:var(--ink);min-height:48px}.form-field input::placeholder{color:#557484}.checkbox{display:flex;align-items:center;gap:10px;min-height:44px;font-size:15px}.checkbox input{width:20px;height:20px;accent-color:var(--blue)}.question{border:0;border-top:1px solid #b4ced9;margin:28px 0 0;padding:24px 0 0;min-width:0}.question legend{font-weight:650;font-size:18px;line-height:1.55;padding:0 0 8px;width:100%}.question .context{font-size:14px;margin:0 0 12px;line-height:1.65}.option{display:flex;gap:12px;border:1px solid #a9c5d1;background:#f4f9fa;border-radius:10px;padding:14px 16px;margin:10px 0;min-height:52px;align-items:flex-start;cursor:pointer;line-height:1.6}.option:has(input:checked){background:#d4e8f0;border-color:#075b8b}.option:focus-within{outline:2px solid #075b8b;outline-offset:2px}.option input{width:18px;height:18px;accent-color:var(--blue);margin:4px 0 0;flex-shrink:0}.option small{display:block;font-size:13px;line-height:1.6;color:#476675;margin-top:3px}.save-state{font-size:13px;min-height:24px;color:#476675;margin-top:16px}.save-state[data-error=true]{color:#8b3e31}.flow-bottom{position:sticky;bottom:0;margin-top:28px;background:#e8f1f4f5;padding:12px 0;border-top:1px solid #b4ced9;display:flex;justify-content:space-between;align-items:center;gap:12px}.flow-bottom .actions{margin:0}.summary-block{padding:26px 0;border-top:1px solid #b4ced9;border-bottom:1px solid #b4ced9;margin:24px 0}.result-code{font:800 70px/1 var(--ui-serif);color:var(--rust);margin-bottom:14px}.tags{display:flex;gap:12px;flex-wrap:wrap;color:var(--blue);font-size:14px}.price-line{display:flex;align-items:baseline;gap:16px;margin:20px 0}.price-line strong{font-size:32px}.private-code{font-family:var(--sans);letter-spacing:.12em;font-size:22px;font-weight:700;overflow-wrap:anywhere;user-select:all;background:#f4f9fa;border:1px solid #a9c5d1;border-radius:8px;padding:16px}.order-meta{font-size:13px;overflow-wrap:anywhere}.recovery-form{max-width:560px;margin-top:32px}.record{padding:20px 0;border-top:1px solid #b4ced9}.record h3{margin:0}.record p{font-size:14px}.record .actions{margin:12px 0 0}.error-box{border:1px solid #bb8679;background:#fff1e9;border-radius:10px;padding:20px}.error-box h1{font-size:26px}.notice{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);background:#153e58;color:#fff;padding:12px 20px;border-radius:10px;z-index:30;font-size:14px;box-shadow:0 8px 24px #153e5826}.app-footer{width:min(100% - 40px,1040px);margin:0 auto;padding:22px 0 30px;border-top:1px solid #b4ced9;font-size:13px;color:#46697a;display:flex;justify-content:space-between;gap:12px}.app-main.report-view{width:min(100% - 28px,1040px);margin-top:24px}.report-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:18px;flex-wrap:wrap}.report-toolbar .actions{margin:0}.report-toolbar h1{font:700 23px/1.4 var(--sans);margin:0}.report-note{font-size:13px}.poster-wrap{display:flex;justify-content:center;overflow:hidden}.report-view .poster{width:min(100%,800px);flex-shrink:0}.report-view .sheet{padding:3cqw}.report-view .personality-summary{display:block;font-size:3.65cqw;line-height:1.45;padding-bottom:0;max-width:100%}.report-view .personality-summary span{white-space:normal}.report-view .identity-traits{font-size:1.3cqw;white-space:normal;max-width:30cqw;text-align:right}.report-view .pet-name{gap:.6cqw;flex-wrap:wrap}.report-view .pet-name strong{font-size:4.45cqw;max-width:29cqw}.report-view .pet-name span{font-size:2cqw}.report-view .panel p,.report-view .panel li{font-size:1.45cqw}.report-view .state-panel .scores div{line-height:2.1cqw}.report-view .scores dt{font-size:1.4cqw}.report-view .scores dd{font-size:1.7cqw}.report-view .monologue p{font-size:2.05cqw}.report-view .care p{font-size:1.55cqw}.report-view .care h3{font-size:1.8cqw}.report-view .care-head>span{font-size:1.2cqw}.report-view .flow span{font-size:1.3cqw;white-space:normal;text-align:center}.report-view .panel .large{font-size:1.65cqw}.report-details{margin-top:30px}.report-details details{border-top:1px solid #b4ced9;padding:18px 0}.report-details summary{font-size:18px;font-weight:650;cursor:pointer}.report-details dl{display:grid;grid-template-columns:1fr;gap:18px;margin-top:18px}.report-details dt{font-weight:650}.report-details dd{line-height:1.7;margin-top:6px;color:#34586b}.export-stage{position:fixed;top:0;left:-9999px;width:1200px;z-index:-1}.export-stage .poster{width:1200px!important;max-width:none!important}.export-stage .poster .sheet{height:1800px}.export-stage .poster *{animation:none!important;transition:none!important}
@media(max-width:640px){.app-header{width:calc(100% - 32px);padding:16px 0;gap:10px}.app-brand{font-size:20px;gap:7px}.app-brand img{width:24px;height:29px}nav{gap:12px}.text-button{font-size:13px}.app-main{width:calc(100% - 32px);margin:28px auto 40px}.app-main h1:where(:not(.poster *)){font-size:31px}.hero{grid-template-columns:1fr;gap:20px}.hero-image{width:100%;max-height:240px;object-position:center 35%;aspect-ratio:3/2}.intro{font-size:16px}.form-row{grid-template-columns:1fr;gap:0}.question legend{font-size:17px}.option{padding:13px 12px}.flow-bottom{align-items:flex-start;flex-direction:column}.flow-bottom .actions{width:100%}.flow-bottom .button{flex:1;padding:12px}.app-footer{width:calc(100% - 32px);flex-direction:column}.report-toolbar .actions{width:100%;gap:8px}.report-toolbar .button{font-size:13px;padding:10px 12px;min-height:44px}.private-code{font-size:19px}.warm-note{padding:16px}.report-view .poster{width:100%}.report-toolbar{gap:12px}.steps{gap:12px}.app-main.report-view{width:calc(100% - 16px)}}
@media(prefers-reduced-motion:no-preference){.option,button{transition:background-color .16s ease,border-color .16s ease}}

.example-types{margin:36px 0}.example-type{padding:14px 0;border-top:1px solid #b4ced9}.example-type strong{color:var(--rust);font:700 20px/1.4 var(--ui-serif)}.example-type p{margin:6px 0;font-size:15px}
/* Eight observations occupy four rows within the approved R5 state panel. */
.report-view .state-panel .scores{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:.7cqw;row-gap:0}
.report-view .state-panel .scores div{line-height:2.7cqw;min-width:0;gap:.3cqw}
.report-view .state-panel .scores dt{font-size:1.25cqw;white-space:nowrap}
.report-view .state-panel .scores dd{font-size:1.45cqw;white-space:nowrap}
.report-view .state-panel .scores small{font-size:1cqw}
.report-view .state-panel .note{font-size:1.05cqw;line-height:1.35;margin-top:.6cqw;white-space:nowrap}
.report-view .panel .chart-note{font-size:1.15cqw;line-height:1.2;margin-top:-.3cqw;white-space:nowrap}

/* Home: a parent's question leads; the familiar R5 blue/yellow world stays. */
body:has(.home-view){background:linear-gradient(145deg,#fff0c1 0%,#e8f1ed 29%,#c9e7f0 68%,#b9deec 100%)}
.app-main.home-view{width:min(100% - 48px,1040px);margin-top:18px}
.home-view>.test-label{font-size:12px;line-height:1.5;margin:0 0 24px}
.home-hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:52px;align-items:center;padding:8px 0 48px}
.home-view #home-title{margin:0 0 24px;font:700 clamp(38px,4.2vw,58px)/1.4 var(--ui-serif);letter-spacing:-.025em;text-wrap:balance}
.home-title-lead{display:block;font-size:.69em;font-weight:600;color:#476574;margin-bottom:9px}
.home-title-question{display:block;color:var(--ink)}
.home-view .home-pain{font-size:21px;font-weight:650;line-height:1.65;color:var(--rust);margin:0 0 20px}
.home-view .home-invitation{font-size:18px;line-height:1.8;margin:0 0 26px}
.home-entry .button{font-size:18px;padding:15px 28px;min-height:56px}
.home-view .home-entry p{font-size:13px;line-height:1.6;margin:11px 0 0}
.home-view .home-price{font-size:12px;line-height:1.7;color:#456777;margin:11px 0 0}
.home-price span{padding:0 9px}
.home-portrait{margin:0;position:relative;overflow:hidden;border-radius:14px;aspect-ratio:4/5;background:#b9dceb;isolation:isolate}
.home-portrait img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 36%}
.home-portrait figcaption{position:absolute;inset:auto 0 0;padding:42px 24px 22px;background:linear-gradient(transparent,#103e59e8);color:#f6fafb}
.home-dog-voice{display:block;font:650 27px/1.5 var(--ui-serif)}
.home-image-note{display:block;font-size:11px;margin-top:10px;color:#e6f0f4}
.home-understanding{padding:50px 0 54px;border-top:1px solid #91b6c6}
.home-view .home-understanding h2{font:650 clamp(25px,3.1vw,36px)/1.6 var(--ui-serif);margin:0 0 22px;text-wrap:balance}
.home-understanding h2 span{color:var(--blue);padding-left:1.3em}
.home-view .home-understanding p{font-size:17px;line-height:1.95;margin:12px 0;max-width:680px}
.home-examples{padding:38px 0 44px;border-top:1px solid #91b6c6}
.home-view .home-section-heading h2{font:650 29px/1.5 var(--ui-serif);margin:0 0 12px}
.home-view .home-section-heading p{font-size:14px;margin:0 0 30px}
.home-example{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:40px;border-top:1px solid #a2c2d0;padding:24px 0;align-items:center}
.home-view .home-example-voice{font:650 25px/1.6 var(--ui-serif);color:var(--ink);margin:0}
.home-example strong{font:650 15px/1.5 var(--sans);color:var(--rust)}
.home-view .home-example div p{font-size:14px;line-height:1.65;margin:6px 0 0}
.home-return{border-top:1px solid #91b6c6;padding:38px 0 20px}
.home-view .home-return h2{font:650 30px/1.5 var(--ui-serif);margin:0 0 16px}
.home-view .home-return>p{font-size:16px;line-height:1.8}
.home-view .home-return .home-price{font-size:12px}
.home-view .home-observation-note{font-size:12px;line-height:1.8;max-width:760px;margin:22px 0 0}
.home-view::selection,.home-view *::selection{background:#ffe09a;color:#134560}
@media(max-width:640px){
  .app-main.home-view{width:calc(100% - 36px);margin-top:16px}
  .home-view>.test-label{font-size:11px;margin-bottom:21px}
  .home-hero{grid-template-columns:1fr;gap:26px;padding:0 0 34px}
  .home-view #home-title{font-size:clamp(28px,8.8vw,38px);line-height:1.45;margin-bottom:18px;letter-spacing:-.025em}
  .home-title-lead{font-size:.77em;margin-bottom:5px}
  .home-view .home-pain{font-size:17px;line-height:1.7;margin-bottom:15px}
  .home-view .home-invitation{font-size:16px;line-height:1.75;margin-bottom:20px}
  .home-entry .button{width:100%;font-size:17px;min-height:52px;padding:13px 20px}
  .home-view .home-entry p{font-size:12px;margin-top:9px}
  .home-portrait{aspect-ratio:4/3;max-height:290px}
  .home-portrait img{object-position:center 37%}
  .home-portrait figcaption{padding:34px 20px 16px}
  .home-dog-voice{font-size:23px;line-height:1.45}
  .home-image-note{font-size:10px;margin-top:7px}
  .home-understanding{padding:32px 0}
  .home-view .home-understanding h2{font-size:clamp(22px,6.3vw,27px);line-height:1.7;margin-bottom:17px}
  .home-understanding h2 span{display:block;padding-left:.75em}
  .home-view .home-understanding p{font-size:15px;line-height:1.85}
  .home-examples{padding:30px 0}
  .home-view .home-section-heading h2{font-size:25px}
  .home-view .home-section-heading p{font-size:13px;margin-bottom:20px}
  .home-example{grid-template-columns:1fr;gap:9px;padding:20px 0}
  .home-view .home-example-voice{font-size:21px;line-height:1.6}
  .home-example strong{font-size:13px}
  .home-view .home-example div p{font-size:13px}
  .home-return{padding-top:28px}
  .home-view .home-return h2{font-size:25px}
  .home-view .home-return>p{font-size:15px}
}

/* Approved cover and full example reports: homepage only. */
.screen-reader-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.home-cover{position:relative;width:100%;max-width:440px;justify-self:end;aspect-ratio:2/3}
.home-cover>img{display:block;width:100%;height:auto}
.home-cover .cover-start{position:absolute;left:5.1%;top:80.25%;width:89.8%;height:9.15%;min-height:44px;padding:0;background:transparent;border:0;border-radius:12px;cursor:pointer;transition:background .15s ease}
.home-cover .cover-start:hover{background:#ffffff18}
.home-cover .cover-start:active{background:#ffffff2b}
.home-cover .cover-start:focus-visible{outline:4px solid #8b3d30;outline-offset:5px}
.home-cover .cover-start:disabled{cursor:progress;background:#b4d4e64d}
.home-cases{padding:42px 0 46px;border-top:1px solid #91b6c6}
.home-view .home-cases .home-section-heading p{max-width:640px;line-height:1.8}
.home-case-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:36px}
.home-case{margin:0;min-width:0}
.home-case-art{display:block;overflow:hidden;border-radius:12px}
.home-case-art img{display:block;width:100%;height:auto;aspect-ratio:2/3}
.home-case-art:focus-visible,.home-case figcaption a:focus-visible{outline:3px solid #8b3d30;outline-offset:5px}
.home-case figcaption{padding:18px 0 0}
.home-view .home-case h3{font:700 25px/1.5 var(--ui-serif);margin:0 0 7px;color:var(--ink)}
.home-case h3 span{font:650 14px/1.6 var(--sans);color:var(--rust);margin-left:12px}
.home-view .home-case figcaption p{font-size:16px;line-height:1.8;margin:0 0 12px}
.home-case figcaption a{font-size:14px;font-weight:650;text-underline-offset:5px;color:var(--ink);display:inline-block;padding:10px 0}
.home-view .home-case-note{font-size:12px;line-height:1.8;margin:24px 0 0;max-width:740px}
@media(max-width:640px){
  body:has(.home-view) .app-header{padding:10px 0;width:calc(100% - 36px);min-height:44px;justify-content:center}
  body:has(.home-view) .app-header .app-brand{display:none}
  body:has(.home-view) .app-header nav{width:100%;justify-content:space-between}
  .app-main.home-view{margin-top:4px}
  .home-view>.test-label{font-size:10px;line-height:1.5;margin-bottom:9px}
  .home-hero{gap:0;padding:0 0 32px}
  .home-hero-copy{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .home-hero-copy .home-entry{display:none}
  .home-cover{width:min(100%,calc((100svh - 88px) * 2 / 3));max-width:none;justify-self:center}
  .home-cases{padding:30px 0 34px}
  .home-case-gallery{grid-template-columns:1fr;gap:32px}
  .home-case-art{width:min(100%,320px);margin-inline:auto}
  .home-view .home-case h3{font-size:24px}
  .home-case h3 span{font-size:13px}
  .home-view .home-case figcaption p{font-size:15px}
}
