@layer reset, base, components, responsive;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, figure { margin: 0; }
  button, input { font: inherit; }
  button, a, input, summary { -webkit-tap-highlight-color: transparent; }
  button { cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  button, fieldset { border: 0; }
  img, svg { display: block; }
}
@layer base {
  :root { --ink: #28392f; --muted: #798177; --green: #456d57; --green-light: #eaf1e8; --line: #e8ebe4; --paper: #fcfcfa; }
  html { scroll-behavior: smooth; scroll-padding-top: 95px; }
  body { background: var(--paper); color: var(--ink); font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
  button { color: inherit; background: none; }
  :focus-visible { outline: 3px solid #a986ce; outline-offset: 5px; }
  #main:focus { outline: none; }
  ::selection { background: #dce8d5; }
  h1, h2, h3 { line-height: 1.35; letter-spacing: -.045em; }
  h1 { font-size: 54px; font-weight: 800; }
  h2 { font-size: 32px; font-weight: 750; }
  h3 { font-size: 20px; font-weight: 650; }
  p { text-wrap: pretty; }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .skip-link { position: fixed; top: -80px; left: 20px; padding: 12px 24px; background: white; z-index: 50; }
  .skip-link:focus { top: 12px; }
  .mobile-only { display: none; }
}
@layer components {
  .site-header { height: 86px; display: flex; align-items: center; gap: 35px; padding: 0 max(32px, calc((100vw - 1250px) / 2)); border-bottom: 1px solid var(--line); background: #fcfcfaf5; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
  .brand { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
  .brand > svg { width: 34px; height: 34px; fill: var(--green); }
  .brand > span:first-of-type { font-size: 31px; font-weight: 850; letter-spacing: -.055em; }
  .brand-dot { color: #87a48a; }
  .brand-caption { font-size: 12px; color: #7b847b; border-left: 1px solid #d9dfd4; padding-left: 13px; margin-left: 5px; }
  .site-header nav { display: flex; gap: 31px; margin: auto; height: 100%; align-items: center; font-size: 14px; }
  .site-header nav a { height: 100%; display: flex; align-items: center; position: relative; color: #72796f; }
  .site-header nav a:hover, .site-header nav a[aria-current] { color: var(--green); }
  .site-header nav a[aria-current]::after { content: ''; position: absolute; bottom: 0; height: 3px; width: 24px; background: var(--green); left: calc(50% - 12px); border-radius: 3px 3px 0 0; }
  .header-actions { display: flex; gap: 23px; align-items: center; font-size: 13px; white-space: nowrap; }
  .records-link { color: #616d61; }
  .button { display: inline-flex; align-items: center; justify-content: center; gap: 26px; min-height: 52px; padding: 12px 25px; background: var(--green); color: white; border: 1px solid var(--green); border-radius: 9px; font-weight: 650; font-size: 15px; line-height: 1.5; transition: background .18s, transform .18s; }
  .button:hover { background: #365c46; transform: translateY(-2px); }
  .button span { font-size: 20px; font-weight: 400; }
  .button.small { min-height: 42px; font-size: 13px; padding: 8px 18px; gap: 17px; border-radius: 7px; }
  .button.secondary { background: transparent; color: var(--green); border-color: #cfdacf; }
  .button.secondary:hover { background: #eaf1e8; }
  .button.full { width: 100%; }
  .button:disabled { cursor: default; opacity: .5; transform: none; }
  .text-button { display: inline-flex; align-items: center; gap: 15px; color: var(--green); font-size: 14px; font-weight: 600; }
  .text-button:hover { color: #273d2f; }
  .eyebrow { font-size: 11px; letter-spacing: .16em; font-weight: 650; color: var(--green); margin-bottom: 17px; }
  .status-dot { display: inline-block; width: 6px; height: 6px; background: #76937a; border-radius: 50%; vertical-align: middle; margin-right: 8px; }
  .hero { max-width: 1320px; margin: auto; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; min-height: 665px; padding: 66px 40px 56px; gap: 35px; }
  .hero-copy { position: relative; z-index: 2; }
  .hero h1 { font-size: clamp(44px,4.3vw,62px); line-height: 1.3; letter-spacing: -.06em; }
  .title-accent { position: relative; color: var(--green); }
  .title-accent svg { position: absolute; width: 100%; bottom: -9px; left: 0; stroke: #b1c9a6; stroke-width: 6; fill: none; }
  .hero-description { color: #738071; font-size: 16px; line-height: 1.9; margin-top: 26px; }
  .hero-meta { display: flex; flex-wrap: wrap; gap: 24px; margin: 25px 0 29px; font-size: 12px; color: #748071; }
  .hero-meta > span { display: flex; align-items: center; gap: 6px; }
  .hero-meta svg, .autosave svg, .local-note svg { width: 15px; height: 15px; fill: none; stroke: #7e9a79; stroke-width: 1.8; }
  .species-choices { display: flex; gap: 12px; }
  .species-choice { border: 1px solid #d9e2d2; border-radius: 13px; background: #f1f5ec; flex: 1; padding: 20px 16px; text-align: left; position: relative; overflow: hidden; min-height: 127px; transition: transform .2s, border-color .2s; }
  .species-choice:nth-child(2) { background: #f6f3eb; border-color: #e5dfd3; }
  .species-choice:hover { border-color: #7c9b77; transform: translateY(-3px); }
  .choice-copy { display: flex; flex-direction: column; position: relative; z-index: 1; pointer-events: none; }
  .choice-label { font-size: 9px; letter-spacing: .14em; color: #8a9684; margin-bottom: 3px; }
  .choice-copy strong { font-size: 20px; letter-spacing: -.04em; }
  .choice-copy > span:last-child { font-size: 10px; margin-top: 9px; color: #778171; }
  .choice-copy b { margin-left: 6px; font-size: 17px; font-weight: 400; }
  .species-choice .pet-image { width: 112px; height: 112px; position: absolute; right: -6px; bottom: 0; opacity: .92; }
  .pet-image { object-fit: contain; }
  .hero-note { margin-top: 17px; font-size: 11px; color: #99a092; }
  .hero-art { position: relative; height: 520px; isolation: isolate; }
  .hero-art::before { content: ''; position: absolute; inset: 30px -20px 10px 0; border-radius: 48% 52% 57% 43%; background: #f0f4e9; z-index: -2; }
  .orbit { position: absolute; border: 1px solid #dce5d4; border-radius: 50%; z-index: -1; transform: rotate(-20deg); }
  .orbit-one { inset: 65px 38px 65px 38px; }
  .orbit-two { inset: 50px 55px 40px 75px; transform: rotate(22deg); }
  .hero-cat { position: absolute; width: 285px; height: 285px; top: 22px; left: -9px; transform: rotate(-6deg); }
  .hero-dog { position: absolute; width: 355px; height: 355px; top: 151px; right: -15px; transform: rotate(4deg); }
  .art-label { position: absolute; background: #fffefa; padding: 11px 17px; border: 1px solid #e8ebe1; box-shadow: 0 7px 20px #394f3210; border-radius: 9px; display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .03em; z-index: 3; }
  .art-label b { font-size: 12px; letter-spacing: 0; }
  .label-cat { top: 75px; right: 27px; transform: rotate(5deg); }
  .label-dog { bottom: 78px; left: 20px; transform: rotate(-5deg); }
  .mini-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
  .purple { background: #9180b2; }
  .green { background: #799d77; }
  .art-note { position: absolute; top: 25px; right: 34px; transform: rotate(5deg); font-size: 16px; line-height: 1.6; color: #8d9b79; margin-top: 100px; }
  .art-note > span { font-size: 55px; font-family: Georgia, serif; position: absolute; left: -20px; top: -34px; color: #bac8a4; }
  .art-spark { position: absolute; color: #b7c69c; font-size: 29px; }
  .spark-one { right: 0; top: 22px; }
  .spark-two { left: 10px; bottom: 60px; font-size: 38px; }
  .art-caption { position: absolute; bottom: 7px; left: 24%; color: #98a488; font-size: 9px; letter-spacing: .18em; }
  .section-wrap { max-width: 1240px; margin: 0 auto; padding: 70px 24px; }
  .intro-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 1192px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); padding: 27px 0; }
  .intro-strip > div { padding: 0 30px; border-right: 1px solid var(--line); }
  .intro-strip > div:first-child { padding-left: 0; }
  .intro-strip > div:last-child { border: 0; }
  .intro-strip strong { color: var(--green); font-size: 30px; font-weight: 700; letter-spacing: -.04em; }
  .intro-strip strong > span { font-size: 13px; color: #53664f; margin-left: 11px; letter-spacing: 0; font-weight: 500; }
  .intro-strip p { font-size: 11px; color: #8c9485; margin-top: 3px; }
  .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
  .section-heading .eyebrow { margin-bottom: 12px; }
  .section-heading p:not(.eyebrow) { color: #889080; font-size: 14px; margin-top: 13px; }
  .section-heading > .text-button { padding-bottom: 5px; }
  .featured-types { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
  .type-card { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); position: relative; transition: transform .22s, box-shadow .22s; }
  .type-card:hover { transform: translateY(-5px); box-shadow: 0 8px 26px #35412f0c; }
  .type-illustration { background: var(--group-pale); height: 215px; display: flex; justify-content: center; position: relative; }
  .type-illustration .pet-image { width: 215px; height: 215px; padding: 9px; }
  .species-pill { color: #7c8478; font-size: 10px; background: #ffffff9c; border: 1px solid #e7e9de; border-radius: 5px; padding: 2px 8px; font-weight: 500; }
  .type-illustration .species-pill { position: absolute; top: 13px; right: 13px; }
  .type-card-copy { padding: 20px 20px 25px; }
  .type-code { font-size: 11px; font-weight: 750; color: var(--group-color); letter-spacing: .08em; }
  .type-card h3 { margin: 4px 0 8px; font-size: 19px; }
  .type-card p { font-size: 11px; color: #92968c; }
  .card-arrow { position: absolute; bottom: 28px; right: 17px; color: var(--group-color); font-size: 19px; }
  .how-section { display: grid; grid-template-columns: .95fr 1.4fr; gap: 100px; margin-top: 12px; padding-top: 50px; padding-bottom: 55px; background: #f1f5ed; border-radius: 18px; max-width: 1192px; padding-left: 52px; padding-right: 52px; }
  .how-title h2 { font-size: 33px; margin-bottom: 19px; }
  .how-title p:not(.eyebrow) { color: #89937e; font-size: 13px; }
  .how-steps { padding: 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 23px; }
  .how-steps li { display: flex; gap: 22px; }
  .how-steps li > span { color: #9caf90; font-size: 13px; margin-top: 3px; font-family: "Avenir Next", sans-serif; }
  .how-steps h3 { font-size: 17px; margin-bottom: 8px; }
  .how-steps p { font-size: 12px; color: #88927f; }
  .faq { padding-top: 75px; }
  .faq-list { border-top: 1px solid var(--line); }
  .faq-list details { border-bottom: 1px solid var(--line); }
  .faq-list summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 15px; padding: 21px 2px; list-style: none; }
  .faq-list summary::-webkit-details-marker { display: none; }
  .faq-list summary > span { font-size: 23px; color: #85977d; font-weight: 400; }
  .faq-list details[open] summary > span { transform: rotate(45deg); }
  .faq-list details p { padding: 0 30px 23px 2px; max-width: 880px; font-size: 13px; color: #7c8775; }
  .closing { text-align: center; padding: 35px 24px 72px; }
  .closing > span { font-size: 30px; color: #b2c49f; display: inline-block; margin-bottom: 18px; }
  .closing h2 { font-size: 29px; }
  .closing p { color: #909884; margin: 15px 0 25px; font-size: 13px; }
  .site-footer { max-width: 1240px; margin: auto; border-top: 1px solid var(--line); padding: 30px 24px 24px; color: #919988; font-size: 10px; }
  .site-footer > div:first-child { display: flex; gap: 17px; align-items: center; }
  .footer-brand { font-size: 24px; font-weight: 800; color: var(--green); letter-spacing: -.04em; }
  .site-footer > p { margin: 10px 0 15px; }
  .footer-links { display: flex; gap: 22px; }
  .footer-links > span { margin-left: auto; letter-spacing: .06em; }
  .resume-banner { max-width: 1192px; margin: 0 auto 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 21px 25px; border-radius: 12px; border: 1px solid #dfe8d7; background: #f0f5e9; }
  .resume-banner div { display: flex; gap: 20px; align-items: center; font-size: 13px; }
  .resume-banner div > span { color: #8b967e; font-size: 12px; }
  dialog { border: 1px solid var(--line); border-radius: 18px; padding: 35px; width: 530px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 40px); background: var(--paper); box-shadow: 0 24px 100px #24382730; color: var(--ink); }
  dialog::backdrop { background: #22382865; backdrop-filter: blur(5px); }
  .dialog-close { position: absolute; top: 12px; right: 15px; font-size: 29px; color: #88937c; width: 40px; height: 40px; }
  dialog h2 { font-size: 27px; }
  .dialog-description { font-size: 13px; color: #89947f; margin-top: 8px; }
  .dialog-species { padding: 0; margin: 24px 0; display: flex; gap: 14px; }
  .pet-option { display: flex; position: relative; flex: 1; align-items: center; flex-direction: column; border: 1px solid #dfe5d8; border-radius: 12px; padding: 10px 0 14px; cursor: pointer; transition: .2s; }
  .pet-option:has(input:checked) { border-color: #6f9067; background: #edf3e8; }
  .pet-option:has(input:focus-visible) { outline: 3px solid #a986ce; outline-offset: 3px; }
  .pet-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .pet-option .pet-image { width: 130px; height: 130px; }
  .pet-option strong { font-size: 15px; }
  .option-tick { position: absolute; top: 10px; right: 10px; border-radius: 50%; width: 20px; height: 20px; border: 1px solid #d3ddce; }
  .option-tick svg { stroke: white; fill: none; stroke-width: 2; visibility: hidden; }
  .pet-option:has(input:checked) .option-tick { background: var(--green); border-color: var(--green); }
  .pet-option:has(input:checked) .option-tick svg { visibility: visible; }
  .name-label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 9px; }
  .name-label > span { font-size: 11px; font-weight: 400; color: #98a08e; }
  .name-input { width: 100%; border: 1px solid #dce2d5; border-radius: 8px; padding: 12px 14px; background: white; color: var(--ink); outline-offset: 2px; }
  .name-input::placeholder { color: #a7ae9d; font-size: 13px; }
  .form-note { font-size: 11px; color: #89967e; margin: 16px 0; text-align: center; }
  .draft-warning { font-size: 11px; color: #987d53; margin-bottom: 15px; }
  #toast { position: fixed; bottom: 27px; left: 50%; transform: translate(-50%,20px); background: #2e4838; color: white; border-radius: 10px; padding: 13px 21px; max-width: min(90vw,550px); width: max-content; opacity: 0; pointer-events: none; font-size: 13px; box-shadow: 0 7px 30px #0002; transition: .2s; z-index: 60; }
  #toast.visible { opacity: 1; transform: translate(-50%,0); pointer-events: auto; }
  #toast button { color: #d3e5b9; text-decoration: underline; padding: 4px 10px; }
  .quiz-wrap { max-width: 865px; padding: 36px 24px 70px; margin: auto; }
  .quiz-topline, .result-topline { display: flex; justify-content: space-between; gap: 15px; align-items: center; font-size: 12px; color: #7d8877; }
  .quiz-topline > span { display: flex; align-items: center; gap: 10px; }
  .quiz-heading { text-align: center; margin: 45px 0 30px; }
  .quiz-heading h1 { font-size: 35px; }
  .quiz-heading p:not(.eyebrow) { color: #8b947f; font-size: 13px; margin-top: 14px; }
  .quiz-progress { margin: 0 20px 28px; }
  .quiz-progress > div { display: flex; justify-content: space-between; font-size: 11px; color: #97a08d; margin-bottom: 8px; }
  .quiz-progress strong { font-weight: 600; color: #6b8662; }
  progress { appearance: none; width: 100%; height: 6px; display: block; border: 0; background: #e7ece0; border-radius: 5px; overflow: hidden; }
  progress::-webkit-progress-bar { background: #e7ece0; }
  progress::-webkit-progress-value { background: #77936c; border-radius: 5px; transition: width .25s; }
  progress::-moz-progress-bar { background: #77936c; border-radius: 5px; }
  .scale-hint { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 10px; color: #99a18f; margin-bottom: 20px; }
  .scale-line { height: 1px; width: 35px; background: #dfe5d6; }
  .question { position: relative; margin: 0; padding: 22px 22px 24px; border-bottom: 1px solid var(--line); min-width: 0; transition: background .2s; }
  .question legend { float: left; width: 100%; font-size: 16px; font-weight: 550; color: #354733; padding: 0; line-height: 1.8; margin-bottom: 22px; }
  .question legend + * { clear: both; }
  .question-number { color: #a6ae9c; font-size: 11px; margin-right: 13px; font-weight: 400; }
  .answer-scale { display: flex; justify-content: center; align-items: center; gap: 26px; }
  .scale-options { display: flex; align-items: start; justify-content: center; gap: 20px; }
  .answer-option { display: flex; align-items: center; flex-direction: column; position: relative; width: 62px; cursor: pointer; }
  .answer-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
  .answer-circle { display: flex; align-items: center; justify-content: center; border: 2px solid var(--answer-color); width: var(--circle-size); height: var(--circle-size); border-radius: 50%; margin-top: calc((52px - var(--circle-size)) / 2); transition: background .16s, transform .16s; }
  .answer-circle svg { width: 24px; height: 24px; fill: none; stroke: white; stroke-width: 2; opacity: 0; }
  .answer-0 { --answer-color: #9282b2; --circle-size: 52px; }
  .answer-1 { --answer-color: #a69abf; --circle-size: 42px; }
  .answer-2 { --answer-color: #c2c6b9; --circle-size: 33px; }
  .answer-3 { --answer-color: #8eab80; --circle-size: 42px; }
  .answer-4 { --answer-color: #668c5f; --circle-size: 52px; }
  .answer-option:has(input:checked) .answer-circle { background: var(--answer-color); }
  .answer-option:has(input:checked) .answer-circle svg { opacity: 1; }
  .answer-option:has(input:focus-visible) .answer-circle { outline: 3px solid #c3a1e5; outline-offset: 5px; }
  .answer-option:hover .answer-circle { transform: scale(1.06); }
  .answer-label { font-size: 9px; color: #8e9886; text-align: center; margin-top: auto; padding-top: 9px; line-height: 1.5; white-space: nowrap; }
  .answer-option { min-height: 83px; }
  .scale-end { font-size: 12px; }
  .scale-end.negative { color: #9282b2; }
  .scale-end.positive { color: #668c5f; }
  .question.invalid { background: #faf3eb; border-radius: 10px; }
  .question-error { display: block; color: #9e6746; font-size: 11px; margin-top: 5px; }
  .question-error:empty { display: none; }
  .quiz-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; }
  .autosave { display: flex; align-items: center; gap: 5px; color: #9aa390; font-size: 10px; }
  .quiz-footnote { text-align: center; margin-top: 29px; font-size: 11px; color: #9ea594; }
  .testing .site-footer { max-width: 865px; }
  .page-heading { text-align: center; padding: 18px 0 45px; }
  .page-heading h1 { font-size: 44px; }
  .page-heading > p:not(.eyebrow) { color: #88957c; margin-top: 20px; font-size: 14px; }
  .species-toggle { display: inline-flex; border: 1px solid #dbe3d3; border-radius: 9px; padding: 4px; gap: 4px; margin-top: 30px; background: #f0f4e9; }
  .species-toggle button { padding: 9px 30px; font-size: 13px; border-radius: 6px; color: #8b967e; }
  .species-toggle button[aria-pressed="true"] { background: #fff; color: var(--green); box-shadow: 0 2px 7px #31422a0c; font-weight: 650; }
  .gallery-group { margin-top: 40px; }
  .group-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
  .group-heading h2 { font-size: 23px; display: flex; align-items: center; gap: 12px; }
  .group-heading p { font-size: 12px; color: #939a89; }
  .group-dot { display: block; width: 10px; height: 10px; border-radius: 3px; background: var(--group-color); }
  .gallery-cta { display: flex; justify-content: space-between; align-items: center; padding: 30px; background: #eff4e9; border-radius: 12px; margin-top: 52px; }
  .gallery-cta p { font-size: 19px; font-weight: 650; }
  .gallery-cta p > span { display: block; font-size: 12px; font-weight: 400; color: #89967c; margin-top: 5px; }
  .result-wrap { max-width: 1150px; margin: auto; padding: 35px 24px 65px; }
  .result-hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; padding: 35px 40px; border-radius: 18px; background: var(--group-pale); margin: 25px 0 42px; }
  .result-hero .eyebrow { color: var(--group-color); }
  .result-pretitle { font-size: 14px; color: #849079; margin-bottom: 5px; }
  .result-hero h1 { font-size: 44px; }
  .result-type-code { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; color: var(--group-color); font-size: 29px; font-weight: 750; margin: 9px 0 13px; letter-spacing: .03em; }
  .result-type-code > span { font-size: 12px; font-weight: 500; letter-spacing: .025em; }
  .result-quote { font-size: 16px; color: #64735c; margin: 19px 0; }
  .tags { display: flex; flex-wrap: wrap; gap: 8px; }
  .tag { padding: 4px 10px; background: #ffffff7d; color: var(--group-color); border-radius: 5px; font-size: 11px; }
  .result-buttons { display: flex; gap: 10px; margin-top: 27px; }
  .result-buttons .button { font-size: 13px; gap: 13px; }
  .result-art { display: flex; flex-direction: column; align-items: center; }
  .result-art .pet-image { width: 330px; height: 330px; max-width: 100%; }
  .result-species { color: var(--group-color); font-size: 10px; letter-spacing: .04em; }
  .result-notice { margin: -16px 0 35px; padding: 18px 24px; border: 1px solid #e8ddc8; background: #f8f4e9; color: #897a59; border-radius: 9px; font-size: 13px; }
  .result-overview { display: grid; grid-template-columns: 1.3fr .8fr; gap: 70px; padding: 10px 18px 45px; }
  .result-story h2 { font-size: 28px; margin-bottom: 22px; }
  .result-story > p:not(.eyebrow) { font-size: 14px; color: #7b8873; line-height: 1.95; }
  .behavior-note { background: #f2f5ec; border-left: 3px solid #b0c29c; padding: 19px 23px; margin: 25px 0; border-radius: 0 8px 8px 0; }
  .behavior-note > span { font-size: 11px; font-weight: 650; color: #6d865e; }
  .behavior-note p { font-size: 13px; color: #859179; margin-top: 8px; line-height: 1.85; }
  .result-story .observation-count { font-size: 11px !important; color: #99a28d !important; }
  .radar-panel { text-align: center; padding: 20px 0; border: 1px solid #e5e9dd; border-radius: 12px; }
  .radar-panel h3 { font-size: 16px; }
  .radar { width: 260px; max-width: 100%; height: auto; margin: 8px auto; overflow: visible; }
  .radar-grid, .radar-axis { stroke: #dce4d4; stroke-width: 1; fill: none; }
  .radar-data { fill: #9db88a55; stroke: #77976a; stroke-width: 2; }
  .radar text { fill: #819076; font-size: 9px; }
  .radar-panel p { font-size: 10px; color: #a1a990; line-height: 1.8; }
  .dimensions-panel { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 37px 18px 25px; }
  .dimensions-panel h2 { font-size: 27px; }
  .dimension-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 37px 55px; }
  .dimension-title, .dimension-labels { display: flex; justify-content: space-between; gap: 15px; }
  .dimension-title { margin-bottom: 17px; }
  .dimension-title strong { font-size: 14px; }
  .dimension-title > span { color: #939c85; font-size: 11px; }
  .dimension-labels { font-size: 10px; color: #89937e; margin-bottom: 8px; }
  .dimension-labels b { font-weight: 500; }
  .dimension-track { height: 9px; background: #e8ebdf; border-radius: 6px; position: relative; }
  .dimension-track > div { height: 100%; background: var(--dimension-color); border-radius: 6px; opacity: .68; }
  .dimension-marker { display: block; height: 16px; width: 5px; border-radius: 3px; background: var(--dimension-color); position: absolute; top: -3px; transform: translateX(-50%); box-shadow: 0 0 0 2px var(--paper); }
  .score-footnote { font-size: 10px; color: #9da58f; margin-top: 32px; }
  .care-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; margin: 44px 18px; }
  .care-grid h2 { font-size: 26px; }
  .care-tips { padding: 0; list-style: none; margin: 22px 0 0; }
  .care-tips li { display: flex; align-items: start; gap: 16px; margin-bottom: 20px; }
  .care-tips li > span { width: 26px; height: 26px; background: #e9efe1; border-radius: 7px; color: #7a946a; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .care-tips p { font-size: 13px; color: #7d8972; }
  .environment-panel { background: #f1f5ec; border-radius: 12px; padding: 30px; }
  .environment-panel > span { font-size: 37px; color: #9bb387; margin-bottom: 13px; display: block; line-height: 1; }
  .environment-panel p:not(.eyebrow) { font-size: 13px; color: #859177; line-height: 1.9; margin-top: 21px; }
  .environment-panel .care-note { font-size: 10px !important; color: #a1ab95 !important; }
  .result-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; border-top: 1px solid var(--line); margin-top: 50px; padding: 30px 18px 0; }
  .result-bottom > p { font-size: 11px; color: #99a48b; margin-right: auto; }
  .type-detail { max-width: 1100px; padding-top: 36px; }
  .type-detail .result-hero-copy > .button { margin-top: 26px; font-size: 13px; }
  .detail-description { max-width: 820px; padding: 0 18px; }
  .detail-description > p { font-size: 14px; color: #7d8a72; line-height: 1.95; margin-top: 20px; }
  .detail-switch { display: flex; gap: 25px; justify-content: center; align-items: center; border-top: 1px solid var(--line); padding-top: 30px; color: #9ca68e; font-size: 12px; }
  .records-wrap { max-width: 1140px; min-height: 650px; }
  .records-wrap h1 { font-size: 40px; }
  .local-note { display: flex; align-items: center; gap: 9px; font-size: 11px; color: #99a28b; padding: 13px 0 30px; }
  .records-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
  .record-card { border: 1px solid #e4e9db; border-radius: 13px; overflow: hidden; }
  .record-main { display: flex; gap: 20px; align-items: center; padding: 18px; background: var(--group-pale); }
  .record-main img { width: 100px; height: 100px; }
  .record-main h2 { font-size: 23px; margin: 4px 0; overflow-wrap: anywhere; }
  .record-main p { font-size: 12px; color: #7d8d71; }
  .record-main p > strong { margin-right: 8px; font-weight: 650; }
  .record-main > span { margin-left: auto; font-size: 20px; color: #8da37a; }
  .record-date { font-size: 10px; color: #98a58a; }
  .record-actions { display: flex; justify-content: space-between; padding: 11px 20px; font-size: 11px; color: #879c74; }
  .record-actions > button:last-child { color: #a1a894; }
  .empty-state { text-align: center; min-height: 580px; padding: 55px 24px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
  .empty-state img { width: 220px; height: 220px; }
  .empty-state h1, .empty-state h2 { font-size: 29px; }
  .empty-state p { color: #92a085; font-size: 13px; max-width: 500px; }
  .about-wrap { max-width: 960px; }
  .about-content { max-width: 810px; margin: 0 auto; }
  .about-content > section { padding: 32px 0; border-bottom: 1px solid var(--line); }
  .about-content h2 { font-size: 26px; margin-bottom: 20px; }
  .about-content p { font-size: 14px; color: #7f8c74; line-height: 1.95; margin-bottom: 16px; }
  .about-content a { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
  .about-dimensions { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 25px 0; }
  .about-dimensions > div { border: 1px solid var(--line); padding: 18px 13px; border-radius: 9px; }
  .about-dimensions strong { color: var(--dimension-color); font-size: 20px; }
  .about-dimensions h3 { font-size: 15px; margin-top: 5px; }
  .about-dimensions p { font-size: 9px; margin: 5px 0 0; white-space: nowrap; }
  .formula { padding: 19px 21px; border-radius: 8px; background: #f0f4e9; color: #657f59; font-size: 14px; margin: 20px 0; }
  .about-content .faq-list p { margin-bottom: 0; font-size: 13px; }
  .about-cta { text-align: center; padding-top: 45px; }
  .about-cta h2 { font-size: 26px; margin-bottom: 25px; }
  .noscript { padding: 30px; text-align: center; color: var(--green); }
}
@layer responsive {
  @media (min-width: 1450px) { .hero { padding-top: 90px; padding-bottom: 80px; min-height: 740px; } }
  @media (max-width: 1150px) {
    .brand-caption { display: none; }
    .site-header { padding: 0 28px; gap: 25px; }
    .hero { padding-left: 32px; padding-right: 32px; gap: 20px; }
    .hero h1 { font-size: 49px; }
    .hero-art { height: 465px; }
    .hero-cat { width: 245px; height: 245px; }
    .hero-dog { width: 300px; height: 300px; }
    .label-cat { right: 0; top: 45px; }
    .art-note { right: 0; font-size: 13px; }
    .label-dog { bottom: 47px; left: 0; }
    .species-choice { padding: 16px 12px; }
    .species-choice img { opacity: .6; right: -20px; width: 100px; }
    .choice-copy strong { font-size: 18px; }
    .intro-strip { margin-left: 28px; margin-right: 28px; }
    .intro-strip > div { padding: 0 20px; }
    .intro-strip strong { font-size: 27px; }
    .intro-strip strong > span { margin-left: 6px; font-size: 12px; }
    .how-section { margin-left: 24px; margin-right: 24px; gap: 60px; }
    .type-illustration { height: 190px; }
    .type-illustration img { width: 190px; height: 190px; }
    .hero .resume-banner { margin-left: 24px; margin-right: 24px; }
  }
  @media (max-width: 850px) {
    .site-header { gap: 16px; padding: 0 20px; height: 74px; }
    .site-header nav { gap: 20px; font-size: 12px; }
    .header-actions { gap: 14px; }
    .records-link { font-size: 11px; }
    .brand > span:first-of-type { font-size: 28px; }
    .hero { gap: 0; padding: 47px 24px; min-height: 590px; }
    .hero h1 { font-size: 40px; }
    .hero-description { font-size: 13px; }
    .hero-meta { gap: 12px; font-size: 10px; }
    .hero-art { height: 400px; }
    .hero-cat { width: 215px; height: 215px; left: -25px; }
    .hero-dog { width: 260px; height: 260px; top: 130px; }
    .art-note { top: 0; right: -5px; font-size: 12px; }
    .label-cat { right: 0; top: 30px; padding: 7px 10px; font-size: 9px; }
    .label-cat b, .label-dog b { font-size: 10px; }
    .label-dog { bottom: 15px; padding: 7px 10px; }
    .art-caption { font-size: 7px; bottom: -18px; }
    .species-choices { flex-direction: column; gap: 10px; }
    .species-choice { min-height: 93px; padding: 13px 18px; }
    .species-choice .pet-image { width: 100px; height: 100px; right: 8px; opacity: 1; }
    .choice-label { font-size: 8px; }
    .choice-copy > span:last-child { margin-top: 4px; }
    .hero-note { font-size: 10px; }
    .intro-strip { grid-template-columns: 1fr 1fr; row-gap: 21px; }
    .intro-strip > div { padding-left: 20px; }
    .intro-strip > div:nth-child(3) { padding-left: 0; }
    .intro-strip > div:nth-child(even) { border: 0; }
    .featured-types { gap: 14px; grid-template-columns: 1fr 1fr; }
    .type-illustration { height: 215px; }
    .type-illustration img { width: 215px; height: 215px; }
    .section-heading h2 { font-size: 27px; }
    .section-heading p:not(.eyebrow) { font-size: 12px; }
    .section-heading > .text-button { font-size: 12px; white-space: nowrap; }
    .section-wrap { padding-top: 50px; padding-bottom: 50px; }
    .how-section { gap: 35px; padding: 35px 30px; }
    .how-title h2 { font-size: 28px; }
    .how-title p:not(.eyebrow) { font-size: 11px; }
    .how-steps li { gap: 12px; }
    .how-steps p { font-size: 11px; }
    .result-hero { padding: 25px; gap: 20px; }
    .result-hero h1 { font-size: 35px; }
    .result-art .pet-image { width: 270px; height: 270px; }
    .result-buttons { flex-wrap: wrap; }
    .result-overview { gap: 30px; }
    .care-grid { gap: 25px; }
    .care-grid h2 { font-size: 23px; }
    .result-bottom > p { width: 100%; }
    .record-main img { width: 75px; height: 75px; }
    .record-main { gap: 9px; padding: 13px; }
    .record-main h2 { font-size: 19px; }
    .record-main p { font-size: 10px; }
    .record-date { font-size: 9px; }
    .resume-banner { margin: 0 24px 24px; }
    .resume-banner div { flex-direction: column; align-items: start; gap: 4px; }
    .records-wrap .resume-banner { margin-left: 0; margin-right: 0; }
  }
  @media (max-width: 600px) {
    h1 { font-size: 36px; } h2 { font-size: 25px; }
    .site-header { height: 68px; padding: 0 17px; gap: 10px; }
    .brand { gap: 5px; }
    .brand > svg { width: 27px; height: 27px; }
    .brand > span:first-of-type { font-size: 27px; }
    .site-header nav { gap: 16px; margin-left: auto; margin-right: 0; font-size: 11px; }
    .site-header nav a:first-child { display: none; }
    .header-actions { gap: 0; }
    .records-link { width: 48px; font-size: 10px; text-align: center; white-space: normal; line-height: 1.5; padding-left: 10px; }
    .header-actions .button { display: none; }
    .hero { display: flex; flex-direction: column; padding: 36px 21px 32px; min-height: auto; gap: 10px; }
    .hero-copy { width: 100%; }
    .hero .eyebrow { font-size: 8px; letter-spacing: .14em; margin-bottom: 19px; }
    .hero h1 { font-size: 45px; line-height: 1.28; }
    .hero-description { margin-top: 24px; font-size: 13px; }
    .hero-meta { margin: 19px 0 23px; gap: 19px; font-size: 10px; }
    .species-choices { flex-direction: row; }
    .species-choice { padding: 14px 11px; min-height: 132px; }
    .choice-copy strong { font-size: 17px; }
    .choice-copy > span:last-child { font-size: 8px; margin-top: 5px; }
    .species-choice .pet-image { width: 88px; height: 88px; opacity: .6; right: -7px; bottom: -7px; }
    .hero-note { margin-top: 12px; }
    .hero-art { width: 100%; max-width: 380px; height: 310px; margin-top: 12px; }
    .hero-art::before { inset: 15px 8px 10px; }
    .orbit-one { inset: 35px 35px; transform: rotate(-12deg); }
    .orbit-two { inset: 22px 55px 5px; transform: rotate(18deg); }
    .hero-cat { width: 205px; height: 205px; left: -5px; top: 0; }
    .hero-dog { width: 225px; height: 225px; right: -5px; top: 88px; }
    .label-cat { top: 24px; right: 0; }
    .label-dog { bottom: 22px; left: 0; }
    .art-note { margin-top: 55px; right: 10px; top: 24px; font-size: 10px; }
    .art-note > span { font-size: 36px; top: -19px; }
    .spark-one { right: -1px; top: -3px; font-size: 22px; }
    .spark-two { left: 2px; bottom: 63px; font-size: 28px; }
    .art-caption { font-size: 7px; bottom: -4px; left: 18%; }
    .intro-strip { margin: 0 21px; padding: 22px 0; }
    .intro-strip > div { padding-left: 19px; padding-right: 3px; }
    .intro-strip strong { font-size: 27px; }
    .intro-strip strong > span { font-size: 11px; }
    .intro-strip p { font-size: 9px; margin-top: 4px; }
    .section-wrap { padding: 42px 21px; }
    .section-heading { align-items: start; flex-direction: column; gap: 16px; margin-bottom: 24px; }
    .section-heading h2 { font-size: 25px; }
    .section-heading p:not(.eyebrow) { font-size: 11px; }
    .eyebrow { font-size: 9px; letter-spacing: .12em; margin-bottom: 12px; }
    .featured-types { gap: 12px; }
    .type-illustration { height: 165px; }
    .type-illustration .pet-image { width: 165px; height: 165px; padding: 7px; }
    .type-card-copy { padding: 15px 12px 20px; }
    .type-card h3 { font-size: 16px; margin: 3px 0 6px; }
    .type-card p { font-size: 9px; padding-right: 12px; }
    .type-code { font-size: 9px; }
    .species-pill { font-size: 8px; padding: 2px 6px; }
    .type-illustration .species-pill { top: 9px; right: 9px; }
    .card-arrow { font-size: 16px; bottom: 22px; right: 9px; }
    .how-section { margin: 0 21px; display: flex; flex-direction: column; padding: 30px 25px; gap: 27px; }
    .how-title h2 { font-size: 27px; }
    .how-title h2 br { display: none; }
    .how-title p:not(.eyebrow) br { display: none; }
    .how-title p:not(.eyebrow) { line-height: 1.85; }
    .how-steps h3 { font-size: 16px; }
    .how-steps p { font-size: 11px; }
    .faq-list summary { font-size: 13px; padding: 18px 0; }
    .faq-list details p { font-size: 12px; }
    .closing { padding: 14px 21px 50px; }
    .closing h2 { font-size: 23px; }
    .closing p { font-size: 11px; }
    .site-footer { padding: 25px 21px; font-size: 9px; }
    .footer-links { gap: 18px; flex-wrap: wrap; }
    .footer-links > span { margin-left: 0; width: 100%; font-size: 8px; }
    .resume-banner { margin: 0 21px 24px; padding: 17px; }
    .resume-banner strong { font-size: 12px; }
    .resume-banner div > span { font-size: 10px; }
    .resume-banner .text-button { font-size: 11px; flex-shrink: 0; }
    dialog { padding: 29px 23px 25px; }
    dialog h2 { font-size: 23px; }
    .dialog-species { margin: 20px 0; }
    .pet-option .pet-image { width: 120px; height: 120px; }
    .dialog-description { font-size: 12px; }
    .quiz-wrap { padding: 24px 17px 45px; }
    .quiz-topline { font-size: 10px; }
    .quiz-topline .text-button { font-size: 11px; }
    .quiz-topline > span { gap: 6px; }
    .quiz-heading { margin: 36px 0 26px; }
    .quiz-heading h1 { font-size: 29px; }
    .quiz-heading p:not(.eyebrow) { font-size: 11px; line-height: 1.9; }
    .mobile-only { display: inline; }
    .quiz-progress { margin: 0 5px 22px; }
    .scale-hint { margin-bottom: 7px; }
    .question { padding: 22px 5px; }
    .question legend { font-size: 14px; line-height: 1.85; margin-bottom: 20px; }
    .question-number { margin-right: 8px; font-size: 10px; }
    .answer-scale { gap: 0; }
    .scale-end { display: none; }
    .scale-options { gap: 10px; width: 100%; justify-content: space-around; }
    .answer-option { width: 52px; min-height: 80px; }
    .answer-0, .answer-4 { --circle-size: 44px; }
    .answer-1, .answer-3 { --circle-size: 36px; }
    .answer-2 { --circle-size: 29px; }
    .answer-circle { margin-top: calc((44px - var(--circle-size)) / 2); }
    .answer-label { font-size: 8px; white-space: normal; }
    .answer-circle svg { width: 20px; height: 20px; }
    .quiz-controls { gap: 10px; margin-top: 24px; }
    .quiz-controls .button { font-size: 12px; padding: 11px 17px; gap: 13px; min-height: 44px; }
    .autosave { display: none; }
    .quiz-footnote { font-size: 10px; }
    .page-heading { padding: 10px 0 25px; }
    .page-heading h1 { font-size: 31px; }
    .page-heading > p:not(.eyebrow) { font-size: 12px; margin-top: 15px; }
    .species-toggle { margin-top: 25px; }
    .species-toggle button { padding: 8px 25px; font-size: 12px; }
    .gallery-group { margin-top: 28px; }
    .group-heading { display: block; }
    .group-heading h2 { font-size: 21px; gap: 8px; }
    .group-heading p { font-size: 10px; margin-top: 7px; }
    .gallery-cta { padding: 24px; flex-direction: column; align-items: start; gap: 20px; margin-top: 32px; }
    .gallery-cta p { font-size: 18px; }
    .gallery-cta p > span { font-size: 11px; }
    .gallery-cta .button { width: 100%; }
    .result-wrap { padding: 24px 18px 45px; }
    .result-topline { font-size: 9px; }
    .result-topline .text-button { font-size: 11px; }
    .result-hero { display: flex; flex-direction: column; padding: 27px 23px 20px; margin-top: 24px; gap: 10px; }
    .result-hero-copy { width: 100%; }
    .result-hero h1 { font-size: 34px; }
    .result-type-code { font-size: 25px; gap: 10px; }
    .result-type-code > span { font-size: 10px; }
    .result-pretitle { font-size: 12px; }
    .result-quote { font-size: 14px; margin: 15px 0; }
    .result-buttons { gap: 8px; flex-wrap: nowrap; margin-top: 22px; }
    .result-buttons .button { font-size: 11px; padding: 10px 14px; min-height: 44px; gap: 7px; }
    .result-art .pet-image { width: 265px; height: 265px; }
    .result-art { margin-top: 4px; }
    .result-species { font-size: 9px; }
    .result-overview { display: flex; flex-direction: column; padding: 0 3px 32px; gap: 25px; }
    .result-story h2 { font-size: 25px; }
    .result-story > p:not(.eyebrow) { font-size: 13px; }
    .behavior-note { padding: 16px 18px; }
    .behavior-note p { font-size: 12px; }
    .radar-panel { padding: 24px 10px; }
    .radar { width: 265px; }
    .dimension-grid { grid-template-columns: 1fr; gap: 30px; }
    .dimensions-panel { padding: 30px 3px 25px; }
    .dimensions-panel .section-heading { gap: 12px; }
    .dimensions-panel h2 { font-size: 24px; }
    .dimension-title > span { font-size: 10px; }
    .care-grid { display: flex; flex-direction: column; margin: 32px 3px; gap: 20px; }
    .environment-panel { padding: 25px; }
    .result-bottom { margin-top: 25px; padding: 25px 3px 0; gap: 18px; }
    .result-bottom > .button { width: 100%; }
    .result-bottom > .text-button { font-size: 12px; }
    .result-notice { font-size: 11px; padding: 16px 18px; }
    .type-detail { padding-top: 25px; }
    .type-detail .result-hero-copy > .button { font-size: 11px; gap: 9px; padding: 10px 15px; }
    .detail-description { padding: 0 3px; }
    .detail-description > p { font-size: 13px; }
    .detail-switch { gap: 15px; font-size: 10px; }
    .detail-switch a { font-size: 11px; }
    .records-wrap .section-heading { flex-direction: row; gap: 15px; align-items: center; }
    .records-wrap h1 { font-size: 31px; }
    .records-wrap .section-heading p:not(.eyebrow) { font-size: 10px; }
    .records-wrap .section-heading > .button { font-size: 11px; min-height: 42px; padding: 9px 13px; flex-shrink: 0; }
    .local-note { font-size: 9px; align-items: start; padding-top: 0; }
    .records-grid { grid-template-columns: 1fr; gap: 17px; }
    .record-main { padding: 17px; gap: 16px; }
    .record-main img { width: 93px; height: 93px; }
    .record-main h2 { font-size: 21px; }
    .record-main p { font-size: 12px; }
    .record-date { font-size: 10px; }
    .empty-state { min-height: 490px; padding: 35px 20px; }
    .empty-state img { width: 180px; height: 180px; }
    .empty-state h1, .empty-state h2 { font-size: 24px; }
    .empty-state p { font-size: 11px; }
    .about-content h2 { font-size: 23px; }
    .about-content p { font-size: 13px; }
    .about-dimensions { grid-template-columns: 1fr 1fr; }
    .about-dimensions p { font-size: 10px; }
    .formula { font-size: 12px; padding: 17px; }
    .about-cta h2 { font-size: 23px; }
  }
  @media (max-width: 360px) {
    .hero h1 { font-size: 39px; }
    .site-header nav { gap: 10px; }
    .hero-meta { gap: 10px; }
    .type-illustration { height: 145px; }
    .type-illustration .pet-image { width: 145px; height: 145px; }
    .answer-option { width: 47px; }
    .scale-options { gap: 6px; }
  }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
}
