:root {
  color-scheme: light;
  --paper: #faf2ed;
  --paper-soft: #fffaf7;
  --ink: #3e3037;
  --muted: #82757a;
  --line: #e8dad6;
  --green: #829481;
  --green-dark: #657b69;
  --rose: #9c5269;
  --serif: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  --sans: 'Noto Sans JP', 'Yu Gothic UI', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, select { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid #c88d78; outline-offset: 3px; }
.app-shell { max-width: 1440px; min-height: 100vh; margin: auto; padding: 0 6.1%; overflow: hidden; }
.site-header { height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(80, 88, 74, .12); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50% 50% 47% 50%; background: var(--green); color: #fffdf8; font: 500 20px var(--serif); transform: rotate(-8deg); }
.brand strong { display: block; font: 600 16px var(--serif); letter-spacing: .04em; line-height: 1.15; }
.brand small { display: block; font-size: 8px; letter-spacing: .2em; margin-top: 3px; color: #85867d; }
.header-note { display: flex; align-items: center; gap: 8px; color: #767970; font-size: 11px; letter-spacing: .04em; }
.leaf-dot, .local-badge i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #91a18b; }
main { min-height: calc(100vh - 160px); }
.screen { display: none; padding: 38px 0 44px; animation: appear .35s ease both; }
.screen.screen-active { display: block; }
.screen[hidden] { display: none !important; }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 20px; color: #85867b; font-size: 9px; font-weight: 600; letter-spacing: .18em; }
.eyebrow-line { height: 1px; width: 22px; background: var(--rose); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-family: var(--serif); font-weight: 400; letter-spacing: .035em; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; min-height: 500px; gap: 4%; padding: 20px 3.3% 14px; }
.hero-copy { padding: 16px 0 12px; }
.hero-copy h1 { font-size: clamp(37px, 4vw, 55px); line-height: 1.56; }
.hero-lead { margin: 20px 0 27px; color: #6f7168; font-size: 13px; line-height: 2; letter-spacing: .04em; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.button { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 0 21px; border: 1px solid transparent; border-radius: 2px; cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: .035em; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fffdf8; background: var(--green); box-shadow: 0 6px 15px rgba(72, 89, 69, .1); }
.button-primary:hover { background: var(--green-dark); }
.button-primary span { font-size: 17px; font-weight: 400; }
.button-text { min-height: auto; padding: 10px 0; border: 0; color: #626a5f; background: transparent; font-size: 11px; }
.button-text:hover { color: var(--green-dark); }
.button-outline { min-height: 40px; border-color: #b9beb3; color: #576653; background: transparent; }
.button-outline:hover { border-color: var(--green); background: #f2f4ee; }
.button-small { min-height: 34px; padding: 0 13px; font-size: 10px; }
.privacy-note { display: flex; align-items: center; gap: 10px; margin-top: 31px; color: #7b7d74; }
.privacy-icon { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #cfd3c8; border-radius: 50%; color: var(--green); font-size: 20px; transform: rotate(90deg); }
.privacy-note p { margin: 0; font-size: 10px; line-height: 1.8; }
.privacy-note strong { color: #555d51; font-weight: 600; }
.hero-art { position: relative; width: 100%; max-width: 450px; justify-self: center; aspect-ratio: 1 / 1; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(ellipse at 50% 48%, #eee4d6 0%, #eee4d6 57%, rgba(238,228,214,0) 57.4%); }
.hero-garment { width: 88%; height: 100%; filter: drop-shadow(2px 9px 6px rgba(77,72,62,.1)); }
.art-note { position: absolute; z-index: 1; color: #8a8170; font: 11px/1.5 var(--serif); letter-spacing: .06em; }
.art-note-top { top: 16%; left: 6%; transform: rotate(-8deg); }
.art-note-bottom { right: 0; bottom: 20%; transform: rotate(7deg); }
.hero-sparkle { position: absolute; color: #b19071; }
.sparkle-one { top: 26%; right: 16%; font-size: 19px; }
.sparkle-two { bottom: 23%; left: 12%; font-size: 14px; color: #96a18f; }
.home-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 4% 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-item { display: flex; align-items: center; gap: 12px; }
.how-item > span { color: #b2826e; font: 12px var(--serif); }
.how-item p { margin: 0; display: grid; gap: 4px; }
.how-item b { font: 500 11px var(--serif); }
.how-item small { color: #88897f; font-size: 9px; }
.prototype-note { margin: 13px 0 0; color: #8a897f; text-align: right; font-size: 9px; letter-spacing: .025em; }

.page-topline { display: flex; justify-content: space-between; align-items: center; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.back-button { display: inline-flex; align-items: center; gap: 9px; padding: 7px 0; border: 0; color: #73776d; background: transparent; cursor: pointer; font-size: 11px; }
.back-button span { font-size: 16px; }
.back-button:hover { color: var(--green-dark); }
.step-label { color: #99988e; font-size: 9px; letter-spacing: .16em; }
.step-label b { margin-left: 11px; color: #6e7969; font-size: 10px; font-weight: 600; }
.form-heading { margin: 35px 0 30px; text-align: center; }
.form-heading .eyebrow, .results-heading .eyebrow { justify-content: center; margin-bottom: 11px; }
.form-heading h1, .results-heading h1 { font-size: clamp(25px, 3vw, 34px); line-height: 1.5; }
.form-heading > p:last-child { margin: 8px 0 0; color: #83847b; font-size: 11px; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 215px; gap: 56px; max-width: 990px; margin: 0 auto; }
.form-main { min-width: 0; }
.form-section { padding: 23px 0 25px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 15px; }
.section-number { padding-top: 3px; color: #bd8e7a; font: 11px var(--serif); }
.section-heading h2 { margin: 0 0 4px; font: 500 15px var(--serif); letter-spacing: .03em; }
.section-heading p { margin: 0; color: #898a81; font-size: 10px; }
.optional { margin-left: 8px; color: #99988e; font: 10px var(--sans); }
.upload-box { min-height: 88px; margin-left: 30px; border: 1px dashed #c5c8bd; background: rgba(251,249,245,.55); }
.upload-empty, .upload-preview { display: flex; min-height: 86px; align-items: center; gap: 13px; padding: 11px 14px; }
.upload-symbol { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--green); background: #edf0e9; font-size: 24px; font-weight: 300; }
.upload-empty > div:nth-child(2), .preview-copy { display: grid; gap: 4px; flex: 1; min-width: 0; }
.upload-empty strong, .preview-copy strong { font-size: 11px; font-weight: 600; }
.upload-empty small, .preview-copy small { color: #8a8b82; font-size: 9px; }
.upload-empty .button { flex: 0 0 auto; }
.field-footnote { margin: 7px 0 0 30px; color: #97968c; font-size: 9px; }
.upload-preview { min-height: 106px; }
.upload-preview img { width: 61px; height: 78px; border-radius: 2px; object-fit: cover; background: #eceae2; }
.preview-copy { align-self: center; }
.local-badge { display: flex; align-items: center; gap: 5px; color: #687766; font-size: 8px; }
.local-badge i { width: 5px; height: 5px; background: #91a18b; }
.preview-copy strong { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clear-photo { align-self: flex-start; flex: 0 0 auto; padding: 4px 0; border: 0; color: #81837a; background: transparent; cursor: pointer; font-size: 9px; }
.clear-photo:hover { color: #ab6258; }
.clear-photo span { margin-left: 3px; font-size: 15px; vertical-align: -1px; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-left: 30px; }
.choice-chip, .avoid-chip { min-width: 103px; height: 39px; padding: 0 12px; border: 1px solid #deded5; border-radius: 2px; color: #6b6f66; background: var(--paper-soft); cursor: pointer; font-size: 10px; transition: .18s; }
.choice-chip span { margin-left: 9px; color: #a3aa9b; }
.choice-chip:hover, .avoid-chip:hover { border-color: #9eae9a; }
.choice-chip.selected, .avoid-chip.selected { border-color: var(--green); color: #4e604d; background: #eff2eb; box-shadow: inset 0 0 0 1px var(--green); }
.mood-grid { display: grid; grid-template-columns: repeat(4, minmax(90px,1fr)); gap: 8px; margin-left: 30px; }
.mood-chip { min-height: 95px; display: grid; justify-items: start; align-content: center; gap: 4px; padding: 10px 12px; border: 1px solid #deded5; border-radius: 2px; text-align: left; background: var(--paper-soft); cursor: pointer; transition: .18s; }
.mood-chip:hover { border-color: #9eae9a; }
.mood-chip.selected { border-color: var(--green); background: #eff2eb; box-shadow: inset 0 0 0 1px var(--green); }
.mood-icon { height: 22px; color: #879481; font-size: 18px; }
.mood-casual { color: #b48772; }
.mood-soft { color: #b28d9a; }
.mood-cool { color: #758591; }
.mood-chip b { font-size: 10px; font-weight: 600; }
.mood-chip small { color: #8b8c82; font-size: 8px; white-space: nowrap; }
.color-budget-row { display: grid; grid-template-columns: 1.25fr .8fr; gap: 24px; }
.compact-heading { margin-bottom: 14px; }
.color-choices { display: flex; flex-wrap: wrap; gap: 7px 9px; margin-left: 30px; }
.color-chip { display: grid; justify-items: center; gap: 5px; padding: 0; border: 0; background: transparent; cursor: pointer; font-size: 8px; color: #888a81; }
.swatch { width: 21px; height: 21px; display: block; border-radius: 50%; border: 2px solid var(--paper-soft); outline: 1px solid transparent; }
.color-chip.selected .swatch { outline-color: var(--green); }
.swatch-neutral { background: #b8ad9b; }.swatch-blue { background: #879cab; }.swatch-green { background: #82927a; }.swatch-rose { background: #c8948c; }.swatch-brown { background: #8b6851; }
.select-field { width: calc(100% - 30px); height: 38px; margin-left: 30px; padding: 0 10px; border: 1px solid #deded5; border-radius: 2px; color: #676c62; background: var(--paper-soft); font-size: 10px; }
.avoid-choices { display: flex; flex-wrap: wrap; gap: 7px; margin-left: 30px; }
.avoid-chip { height: 34px; min-width: auto; padding: 0 12px; font-size: 9px; }
.hair-pref-grid { display: flex; flex-wrap: wrap; gap: 7px; margin-left: 30px; }
.hair-pref-chip { min-height: 35px; padding: 0 12px; border: 1px solid #deded5; border-radius: 2px; color: #6b6f66; background: var(--paper-soft); cursor: pointer; font-size: 9px; transition: .18s; }
.hair-pref-chip:hover { border-color: #9eae9a; }
.hair-pref-chip.selected { border-color: var(--green); color: #4e604d; background: #eff2eb; box-shadow: inset 0 0 0 1px var(--green); }
.form-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0 8px; border-top: 1px solid var(--line); }
.form-submit-row p { margin: 0; color: #86877d; font-size: 10px; line-height: 1.8; }
.side-note { align-self: start; margin-top: 20px; padding: 21px 19px; border: 1px solid #e3dfd5; background: rgba(250,248,243,.66); }
.side-note-icon { margin-bottom: 14px; color: #b78b74; font-size: 18px; }
.side-note h3 { margin: 0 0 7px; font: 500 13px var(--serif); }
.side-note > p { margin: 0; color: #7f8178; font-size: 10px; line-height: 1.8; }
.side-note-rule { height: 1px; margin: 19px 0 13px; background: #e3dfd5; }
.side-note > small { color: #a28b7e; font-size: 8px; letter-spacing: .15em; }
.side-note .side-note-small { margin-top: 7px; font-size: 9px; }

.results-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 32px 0 20px; }
.results-heading .eyebrow { justify-content: flex-start; margin-bottom: 6px; }
.results-heading h1 { font-size: clamp(27px, 3vw, 36px); }
.result-subtitle { margin: 7px 0 0; color: #818279; font-size: 11px; }
.restart-button { min-height: 35px; padding: 0 13px; font-size: 10px; }
.restart-button span { font-size: 15px; }
.sample-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid #dfd5c5; background: #f1ece2; }
.sample-stamp { flex: 0 0 auto; padding: 5px 7px; border: 1px solid #ae9f83; color: #796a4d; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.sample-banner p { margin: 0; color: #716d61; font-size: 10px; line-height: 1.7; }
.sample-banner strong { color: #555749; font-weight: 600; }
.result-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 57px; }
.preference-summary { display: flex; flex-wrap: wrap; gap: 6px; padding: 11px 0; }
.preference-summary span { padding: 5px 8px; border: 1px solid #e0dfd6; border-radius: 20px; color: #777b70; background: #faf9f5; font-size: 8px; }
.photo-result-preview { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 6px; border: 1px solid #dfded6; background: #fbfaf7; }
.photo-result-preview img { width: 32px; height: 37px; object-fit: cover; background: #eee; }
.photo-result-preview span { display: grid; gap: 2px; }
.photo-result-preview small { color: #8e9188; font-size: 7px; letter-spacing: .08em; }
.photo-result-preview b { color: #596354; font-size: 8px; font-weight: 600; }
.photo-result-preview i { color: #929188; font-size: 7px; font-style: normal; }
.look-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.look-card { min-width: 0; border: 1px solid #e3e0d7; background: #fbfaf7; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.look-card:hover { transform: translateY(-3px); box-shadow: 0 9px 23px rgba(72,78,64,.08); }
.look-card.is-selected { border-color: #7d9379; box-shadow: 0 0 0 1px #7d9379; }
.look-art { position: relative; height: 220px; overflow: hidden; display: grid; place-items: center; background: #eee9de; }
.look-card:nth-child(2) .look-art { background: #e8ebe3; }
.look-card:nth-child(3) .look-art { background: #efe4df; }
.look-art svg { width: 85%; height: 96%; overflow: visible; filter: drop-shadow(0 5px 4px rgba(58,55,45,.11)); }
.look-label { position: absolute; top: 12px; left: 12px; padding: 5px 7px; color: #6e7066; background: rgba(251,249,245,.88); font-size: 7px; letter-spacing: .08em; }
.favorite-button { position: absolute; top: 8px; right: 9px; width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.64); border-radius: 50%; color: #6d7269; background: rgba(251,249,245,.82); cursor: pointer; font-size: 17px; transition: .18s; }
.favorite-button:hover, .favorite-button.is-favorite { color: #af7069; background: #fffaf6; }
.look-body { padding: 15px 16px 16px; }
.look-number { margin-bottom: 7px; color: #ad826e; font-size: 8px; letter-spacing: .14em; }
.look-body h2 { min-height: 42px; margin: 0 0 8px; font: 500 14px/1.6 var(--serif); }
.look-body > p { min-height: 50px; margin: 0; color: #777a70; font-size: 9px; line-height: 1.8; }
.look-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 13px; }
.look-tags span { padding: 4px 6px; border-radius: 20px; color: #73796f; background: #edf0e9; font-size: 7px; }
.look-card:nth-child(2) .look-tags span { background: #f0eee4; }
.look-card:nth-child(3) .look-tags span { background: #f2eae5; }
.look-reason { min-height: 55px; margin-bottom: 12px; padding: 9px 10px; border-left: 2px solid #c7a08c; color: #77796f; background: #f6f3ed; font-size: 8px; line-height: 1.7; }
.look-reason b { display: block; margin-bottom: 2px; color: #6e7064; font-size: 8px; font-weight: 600; }
.select-look { width: 100%; min-height: 36px; border: 1px solid #c9ccc1; border-radius: 1px; color: #697164; background: transparent; cursor: pointer; font-size: 9px; transition: .18s; }
.select-look:hover { border-color: var(--green); background: #f0f3ed; }
.is-selected .select-look { border-color: var(--green); color: white; background: var(--green); }
.hair-results { margin-top: 35px; padding-top: 24px; border-top: 1px solid var(--line); }
.hair-results-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.hair-results-heading .eyebrow { justify-content: flex-start; margin-bottom: 6px; }
.hair-results-heading h2 { margin: 0; font: 500 20px/1.5 var(--serif); letter-spacing: .03em; }
.hair-results-heading p:last-child { margin: 4px 0 0; color: #86877e; font-size: 9px; }
.catalog-count { padding-bottom: 5px; color: #a5a095; font-size: 8px; letter-spacing: .15em; }
.hair-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.hair-card { min-width: 0; border: 1px solid #e3e0d7; background: #fbfaf7; transition: border-color .18s, box-shadow .18s; }
.hair-card.is-selected { border-color: #7d9379; box-shadow: 0 0 0 1px #7d9379; }
.hair-art { position: relative; height: 150px; display: grid; place-items: center; overflow: hidden; background: #ece9df; }
.hair-card:nth-child(2) .hair-art { background: #e9ece5; }
.hair-card:nth-child(3) .hair-art { background: #eee5e0; }
.hair-art svg { height: 94%; width: auto; max-width: 100%; }
.hair-label { position: absolute; left: 9px; top: 8px; padding: 4px 6px; color: #77786e; background: rgba(251,249,245,.86); font-size: 7px; letter-spacing: .05em; }
.hair-card-body { padding: 11px 12px 12px; }
.hair-card-body h3 { margin: 0 0 5px; font: 500 12px var(--serif); }
.hair-card-body p { min-height: 31px; margin: 0; color: #7d7f76; font-size: 8px; line-height: 1.7; }
.hair-tags { display: flex; gap: 5px; margin: 8px 0; }
.hair-tags span { padding: 4px 6px; border-radius: 20px; color: #74796f; background: #edf0e9; font-size: 7px; }
.hair-reason { min-height: 29px; margin-bottom: 8px; color: #83847a; font-size: 8px; line-height: 1.6; }
.hair-choice-actions { display: flex; align-items: center; gap: 8px; }
.hair-choice-actions .select-hair { flex: 1; min-height: 31px; border: 1px solid #c9ccc1; border-radius: 1px; color: #697164; background: transparent; cursor: pointer; font-size: 8px; }
.hair-card.is-selected .select-hair { border-color: var(--green); color: white; background: var(--green); }
.hair-favorite { width: 31px; height: 31px; border: 1px solid #dadbd3; border-radius: 50%; color: #787c72; background: transparent; cursor: pointer; font-size: 15px; }
.hair-favorite.is-favorite { color: #af7069; background: #fffaf6; }
.results-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; padding: 17px 19px; border: 1px solid #e4dfd4; background: #f3efe6; }
.results-bottom > div { display: flex; align-items: center; gap: 12px; }
.tiny-sparkle { color: #b58c72; font-size: 20px; }
.results-bottom p { display: grid; gap: 4px; margin: 0; }
.results-bottom strong { color: #5e6257; font: 500 11px var(--serif); }
.results-bottom small { color: #838378; font-size: 8px; }
.results-bottom .button { min-height: 40px; font-size: 10px; }
.results-prototype-note { margin-top: 10px; }
.site-footer { min-height: 72px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(80, 88, 74, .12); color: #8c8b81; font-size: 9px; letter-spacing: .05em; }
.site-footer span:first-child { font-family: var(--serif); letter-spacing: .08em; }
.site-footer i { margin: 0 4px; color: #b28a73; font-style: normal; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: 25px; padding: 10px 15px; border: 1px solid #d4d7cd; color: #586354; background: #faf9f5; box-shadow: 0 5px 18px rgba(40,45,38,.1); font-size: 10px; opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 1200px) { .hero-grid { min-height: 535px; } .look-art { height: 245px; } }
@media (max-width: 900px) {
  .app-shell { padding-right: 5%; padding-left: 5%; }
  .hero-grid { min-height: 460px; padding-right: 1%; padding-left: 1%; }
  .hero-copy h1 { font-size: 43px; }
  .form-layout { grid-template-columns: minmax(0,1fr) 180px; gap: 28px; }
  .look-grid { gap: 12px; }
  .look-art { height: 190px; }
  .look-body { padding: 13px 12px; }
}
@media (max-width: 680px) {
  .app-shell { padding: 0 19px; }
  .site-header { height: 66px; }
  .brand-mark { width: 31px; height: 31px; font-size: 18px; }
  .header-note { font-size: 9px; }
  main { min-height: calc(100vh - 130px); }
  .screen { padding: 24px 0 33px; }
  .hero-grid { display: flex; min-height: 0; flex-direction: column; align-items: stretch; gap: 3px; padding: 15px 0 10px; }
  .hero-copy { order: 0; padding: 4px 1px 0; }
  .eyebrow { margin-bottom: 13px; font-size: 8px; }
  .hero-copy h1 { font-size: clamp(34px, 10vw, 44px); line-height: 1.48; }
  .hero-lead { margin: 14px 0 18px; font-size: 11px; }
  .hero-actions { gap: 6px 15px; }
  .hero-actions .button-primary { width: 100%; min-height: 48px; justify-content: space-between; }
  .button-text { margin: 0 auto; }
  .privacy-note { margin-top: 13px; }
  .hero-art { order: 1; width: min(83vw, 330px); max-width: none; margin: -1px auto 0; }
  .art-note { font-size: 9px; }
  .home-footer { align-items: stretch; gap: 0; margin-top: 6px; padding: 15px 0; }
  .how-item { align-items: flex-start; gap: 6px; }
  .how-item > span { font-size: 9px; }
  .how-item b { font-size: 9px; }
  .how-item small { max-width: 81px; font-size: 7px; line-height: 1.5; }
  .prototype-note { text-align: left; line-height: 1.6; font-size: 8px; }
  .page-topline { padding-bottom: 12px; }
  .step-label { font-size: 7px; }
  .step-label b { margin-left: 5px; font-size: 8px; }
  .back-button { font-size: 9px; }
  .form-heading { margin: 24px 0 19px; text-align: left; }
  .form-heading .eyebrow { justify-content: flex-start; margin-bottom: 7px; }
  .form-heading h1 { font-size: 25px; }
  .form-heading > p:last-child { font-size: 9px; line-height: 1.7; }
  .form-layout { display: block; }
  .form-section { padding: 18px 0 19px; }
  .section-heading { gap: 10px; margin-bottom: 12px; }
  .section-number { font-size: 10px; }
  .section-heading h2 { font-size: 13px; }
  .section-heading p { font-size: 9px; }
  .upload-box, .choice-grid, .mood-grid, .color-choices, .select-field, .avoid-choices { margin-left: 24px; }
  .upload-empty { gap: 9px; padding: 9px; }
  .upload-symbol { width: 32px; height: 32px; font-size: 20px; }
  .upload-empty strong { font-size: 10px; }
  .upload-empty small { font-size: 8px; }
  .upload-empty .button { min-height: 31px; padding: 0 8px; font-size: 8px; }
  .field-footnote { margin-left: 24px; font-size: 8px; }
  .upload-preview { gap: 8px; padding: 8px; }
  .upload-preview img { width: 51px; height: 68px; }
  .preview-copy strong { max-width: 140px; font-size: 9px; }
  .preview-copy small { font-size: 8px; }
  .local-badge { font-size: 7px; }
  .clear-photo { font-size: 8px; }
  .choice-grid { gap: 7px; }
  .choice-chip { min-width: calc(50% - 4px); height: 38px; }
  .mood-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .mood-chip { min-height: 77px; grid-template-columns: 25px 1fr; align-content: center; column-gap: 7px; }
  .mood-icon { grid-row: span 2; align-self: center; }
  .mood-chip b { font-size: 9px; }
  .mood-chip small { font-size: 7px; }
  .color-budget-row { grid-template-columns: 1fr; gap: 20px; }
  .color-choices { justify-content: space-between; max-width: 300px; }
  .select-field { width: calc(100% - 24px); }
  .avoid-choices { gap: 6px; }
  .avoid-chip { padding: 0 9px; font-size: 8px; }
  .hair-pref-grid { gap: 6px; }
  .hair-pref-chip { min-height: 32px; padding: 0 9px; font-size: 8px; }
  .side-note { margin: 12px 0 0 24px; padding: 14px; }
  .side-note-icon { margin-bottom: 8px; font-size: 15px; }
  .side-note h3 { font-size: 11px; }
  .side-note > p { font-size: 9px; }
  .side-note-rule { margin: 11px 0 8px; }
  .form-submit-row { align-items: stretch; flex-direction: column; gap: 13px; margin-top: 8px; }
  .form-submit-row p { font-size: 9px; }
  .form-submit-row .button { width: 100%; justify-content: space-between; }
  .results-heading { align-items: flex-start; padding: 23px 0 15px; }
  .results-heading h1 { font-size: 25px; }
  .results-heading .eyebrow { margin-bottom: 6px; font-size: 7px; }
  .result-subtitle { max-width: 230px; font-size: 9px; line-height: 1.7; }
  .restart-button { min-height: 32px; flex: 0 0 auto; padding: 0 9px; font-size: 8px; gap: 7px; }
  .sample-banner { align-items: flex-start; gap: 8px; padding: 10px; }
  .sample-stamp { margin-top: 1px; padding: 4px 5px; font-size: 7px; }
  .sample-banner p { font-size: 8px; }
  .result-meta-row { align-items: flex-start; flex-direction: column-reverse; gap: 0; padding: 4px 0 7px; }
  .preference-summary { gap: 5px; padding: 6px 0 2px; }
  .preference-summary span { padding: 4px 7px; font-size: 7px; }
  .photo-result-preview { margin-top: 8px; }
  .look-grid { grid-template-columns: 1fr; gap: 12px; }
  .look-card { display: grid; grid-template-columns: 39% 1fr; }
  .look-art { height: auto; min-height: 210px; }
  .look-art svg { width: 100%; height: 93%; }
  .look-label { top: 7px; left: 6px; padding: 4px 5px; font-size: 6px; }
  .favorite-button { top: 6px; right: 6px; width: 27px; height: 27px; font-size: 15px; }
  .look-body { display: flex; flex-direction: column; padding: 11px 10px; }
  .look-number { margin-bottom: 4px; font-size: 7px; }
  .look-body h2 { min-height: 0; margin-bottom: 6px; font-size: 12px; }
  .look-body > p { min-height: 0; font-size: 8px; }
  .look-tags { gap: 4px; margin: 8px 0; }
  .look-tags span { padding: 4px 5px; font-size: 6px; }
  .look-reason { min-height: 0; margin-bottom: 8px; padding: 7px; font-size: 7px; }
  .look-reason b { font-size: 7px; }
  .select-look { min-height: 32px; margin-top: auto; font-size: 8px; }
  .hair-results { margin-top: 25px; padding-top: 18px; }
  .hair-results-heading { align-items: flex-start; margin-bottom: 11px; }
  .hair-results-heading .eyebrow { margin-bottom: 4px; font-size: 7px; }
  .hair-results-heading h2 { font-size: 16px; }
  .hair-results-heading p:last-child { max-width: 250px; font-size: 8px; line-height: 1.6; }
  .catalog-count { font-size: 7px; }
  .hair-grid { grid-template-columns: 1fr; gap: 8px; }
  .hair-card { display: grid; grid-template-columns: 35% 1fr; }
  .hair-art { height: auto; min-height: 145px; }
  .hair-art svg { height: 95%; max-width: 100%; }
  .hair-label { left: 5px; top: 5px; padding: 3px 4px; font-size: 6px; }
  .hair-card-body { display: flex; flex-direction: column; padding: 9px; }
  .hair-card-body h3 { font-size: 10px; }
  .hair-card-body p { min-height: 0; font-size: 7px; }
  .hair-tags { margin: 6px 0; }
  .hair-tags span { padding: 3px 5px; font-size: 6px; }
  .hair-reason { min-height: 0; margin-bottom: 6px; font-size: 7px; }
  .hair-choice-actions { margin-top: auto; }
  .hair-choice-actions .select-hair { min-height: 29px; font-size: 7px; }
  .hair-favorite { width: 29px; height: 29px; flex: 0 0 auto; }
  .results-bottom { align-items: stretch; flex-direction: column; gap: 13px; margin-top: 16px; padding: 13px; }
  .results-bottom > div { align-items: flex-start; gap: 8px; }
  .tiny-sparkle { font-size: 15px; }
  .results-bottom strong { font-size: 9px; }
  .results-bottom small { font-size: 7px; line-height: 1.6; }
  .results-bottom .button { width: 100%; justify-content: space-between; }
  .results-prototype-note { margin-top: 8px; font-size: 7px; }
  .site-footer { min-height: 60px; font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Warm berry and blush refresh */
body { color: var(--ink); background: linear-gradient(145deg, #fff9f5 0%, #faf1ed 54%, #f5e9e5 100%); font-family: var(--sans); }
.app-shell { background: rgba(255, 250, 247, .56); }
.site-header { border-color: rgba(128, 81, 97, .15); }
.brand-mark { background: var(--rose); box-shadow: 0 5px 13px rgba(156, 82, 105, .16); }
.brand strong, .hero-copy h1, .form-heading h1, .results-heading h1, .look-body h2, .hair-results-heading h2 { font-family: var(--serif); }
.header-note { color: #75656c; }
.leaf-dot, .local-badge i { background: #829481; }
.eyebrow-line { background: #b76c81; }
.hero-copy h1 { color: #49313c; }
.hero-lead { color: #75676c; }
.button { min-height: 48px; border-radius: 999px; font-size: 13px; }
.button-primary { color: #fffaf7; background: var(--rose); box-shadow: 0 8px 19px rgba(126, 56, 78, .18); }
.button-primary:hover { background: #7c3c52; }
.button-outline { border-color: #c89ca8; color: #85485d; background: rgba(255, 250, 247, .82); }
.button-outline:hover { border-color: var(--rose); background: #f8e9ed; }
.button-text { color: #80576a; }
.button-text:hover { color: #703447; }
.button:focus-visible, .back-button:focus-visible, .choice-chip:focus-visible, .mood-chip:focus-visible, .color-chip:focus-visible, .avoid-chip:focus-visible, .hair-pref-chip:focus-visible, .select-look:focus-visible, .favorite-button:focus-visible, .advanced-settings summary:focus-visible { outline: 3px solid #b65f79; outline-offset: 3px; }
.hero-art { background: radial-gradient(ellipse at 50% 48%, #f2dfe0 0%, #f2dfe0 57%, rgba(242,223,224,0) 57.4%); }
.art-note { color: #8e6470; }
.sparkle-one { color: #ba7183; }
.sparkle-two { color: #849582; }
.privacy-note { color: #75676c; }
.privacy-icon { border-color: #d7bac1; color: #9b586e; }
.privacy-note strong { color: #5f424c; }
.home-footer { border-color: #eadbd8; }
.how-item > span { color: #9c5269; }
.how-item b { color: #51434a; }
.prototype-note { color: #7d7076; }
.page-topline { border-color: #eadbd8; }
.back-button:hover, .step-label b { color: #88465b; }
.form-heading h1, .results-heading h1 { color: #49313c; }
.form-heading > p:last-child { color: #75676c; font-size: 13px; }
.form-layout { grid-template-columns: minmax(0, 1fr) 230px; gap: 44px; }
.form-section { border-color: #eadbd8; }
.section-number { color: var(--rose); }
.section-heading { align-items: center; }
.section-heading h2 { color: #4b3a42; font-size: 16px; }
.section-heading p { color: #81737a; font-size: 12px; line-height: 1.6; }
.optional { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; color: #914a60; background: #f5e5e9; font: 600 11px var(--sans); }
.upload-box { min-height: 92px; border: 1px dashed #c799a7; border-radius: 15px; background: rgba(255, 250, 247, .9); }
.upload-empty, .upload-preview { min-height: 90px; gap: 14px; padding: 13px 15px; }
.upload-symbol { width: 42px; height: 42px; color: #934b61; background: #f6e7e9; font-size: 24px; }
.upload-empty strong, .preview-copy strong { color: #4e3c44; font-size: 13px; }
.upload-empty small, .preview-copy small { color: #7c6f75; font-size: 11px; }
.upload-empty .button { min-height: 42px; font-size: 12px; }
.field-footnote { color: #74666e; font-size: 11px; line-height: 1.6; }
.local-badge { color: #526f59; font-size: 10px; }
.clear-photo { font-size: 11px; }
.photo-section { position: relative; margin: 2px 0 18px; padding: 20px; border: 1px solid #eed9df; border-radius: 18px; background: linear-gradient(135deg, #fffaf7, #f9edee); box-shadow: 0 8px 24px rgba(112, 70, 79, .04); }
.photo-section .upload-box, .photo-section .field-footnote { margin-left: 30px; }
.optional-photo-badge { margin-left: auto; padding: 7px 11px; border-radius: 999px; color: #5b725d; background: #e8eee7; font-size: 11px; font-weight: 600; white-space: nowrap; }
.choice-grid { gap: 10px; }
.choice-chip, .avoid-chip { min-width: 110px; min-height: 46px; height: auto; border: 1px solid #e5d6d7; border-radius: 13px; color: #57474e; background: #fffaf7; font-size: 13px; transition: .18s ease; }
.choice-chip span { color: #9c7a83; }
.choice-chip:hover, .avoid-chip:hover, .mood-chip:hover, .hair-pref-chip:hover { border-color: #bd8294; }
.choice-chip.selected, .avoid-chip.selected { border-color: var(--rose); color: #74364d; background: #f5e3e9; box-shadow: inset 0 0 0 1px var(--rose); }
.mood-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mood-chip { min-height: 104px; border: 1px solid #e5d6d7; border-radius: 14px; background: #fffaf7; }
.mood-chip.selected { border-color: var(--rose); background: #f6e6eb; box-shadow: inset 0 0 0 1px var(--rose); }
.mood-chip b { color: #51414a; font-size: 13px; }
.mood-chip small { color: #81727a; font-size: 10px; }
.mood-icon { color: #839482; }
.mood-casual { color: #ad7a69; }
.mood-soft { color: #b16880; }
.mood-cool { color: #778d91; }
.color-chip { color: #675860; font-size: 11px; }
.swatch { width: 26px; height: 26px; }
.color-chip.selected .swatch { outline-color: var(--rose); outline-width: 2px; }
.select-field { height: 46px; border: 1px solid #e1d2d4; border-radius: 12px; color: #51434a; background: #fffaf7; font-size: 13px; }
.avoid-chip { min-width: 0; padding: 0 15px; }
.hair-pref-chip { min-height: 41px; padding: 0 15px; border-color: #e5d6d7; border-radius: 999px; color: #57474e; background: #fffaf7; font-size: 12px; }
.hair-pref-chip.selected { border-color: var(--rose); color: #74364d; background: #f5e3e9; box-shadow: inset 0 0 0 1px var(--rose); }
.advanced-settings { margin: 14px 0 18px 30px; overflow: hidden; border: 1px solid #e7d7d7; border-radius: 16px; background: rgba(255, 250, 247, .84); }
.advanced-settings > summary { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 17px; cursor: pointer; list-style: none; }
.advanced-settings > summary::-webkit-details-marker { display: none; }
.advanced-settings > summary > span { display: grid; gap: 3px; }
.advanced-settings > summary b { color: #67414f; font: 600 14px var(--sans); }
.advanced-settings > summary small { color: #84767c; font-size: 11px; }
.advanced-settings > summary i { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: #8c4d61; background: #f5e5e9; font-size: 19px; font-style: normal; transition: transform .2s; }
.advanced-settings[open] > summary { border-bottom: 1px solid #eadbd8; background: #fcf3f1; }
.advanced-settings[open] > summary i { transform: rotate(45deg); }
.advanced-panel { padding: 0 16px 15px; }
.advanced-panel .form-section { padding: 19px 0; }
.advanced-panel .section-heading { align-items: flex-start; }
.form-submit-row { border-color: #eadbd8; }
.form-submit-row p { color: #766a70; font-size: 12px; line-height: 1.7; }
.side-note { border-color: #e9d8d5; border-radius: 17px; background: rgba(255, 250, 247, .76); }
.side-note-icon { color: #a95b73; }
.side-note h3 { color: #493a42; font-size: 16px; }
.side-note > p { color: #776b71; font-size: 12px; }
.side-note > small { color: #a15e70; font-size: 9px; }
.side-note .side-note-small { font-size: 11px; }
.sample-banner { border-color: #ebcfd7; border-radius: 15px; background: #f8e9ed; }
.sample-stamp { border-color: #b67587; border-radius: 7px; color: #844558; font-size: 10px; }
.sample-banner p { color: #68545d; font-size: 12px; }
.sample-banner strong { color: #513440; }
.result-meta-row { min-height: 66px; }
.preference-summary span { padding: 6px 10px; border-color: #e5d4d8; border-radius: 999px; color: #704a58; background: #fff9f7; font-size: 10px; }
.photo-result-preview { gap: 11px; padding: 8px 12px 8px 8px; border-color: #c9d7ca; border-radius: 13px; background: #f2f6f1; }
.photo-result-preview img { width: 64px; height: 76px; border-radius: 8px; }
.photo-result-preview small { color: #617263; font-size: 9px; }
.photo-result-preview b { color: #465e4a; font-size: 11px; }
.photo-result-preview i { color: #6b796f; font-size: 10px; }
.look-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.look-card { overflow: hidden; border: 1px solid #eadbd8; border-radius: 19px; background: #fffaf7; box-shadow: 0 8px 25px rgba(91, 55, 67, .045); }
.look-card:hover { transform: translateY(-3px); box-shadow: 0 13px 28px rgba(91, 55, 67, .11); }
.look-card.is-selected { border-color: var(--rose); box-shadow: 0 0 0 2px var(--rose), 0 10px 25px rgba(126, 56, 78, .12); }
.look-art { height: auto; aspect-ratio: 3 / 4; overflow: hidden; background: #eee1db; }
.look-art img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 34%; }
.look-card:nth-child(2) .look-art, .look-card:nth-child(3) .look-art { background: #eee5df; }
.look-label { top: auto; bottom: 12px; left: 12px; padding: 7px 10px; border-radius: 999px; color: #513c45; background: rgba(255, 250, 247, .93); font-size: 10px; letter-spacing: .01em; }
.favorite-button { top: 12px; right: 12px; width: 39px; height: 39px; border: 0; color: #8e475e; background: rgba(255, 250, 247, .94); box-shadow: 0 3px 9px rgba(40, 20, 30, .12); font-size: 21px; }
.favorite-button:hover, .favorite-button.is-favorite { color: #a23f5c; background: #fff7f8; }
.look-body { padding: 20px 20px 21px; }
.look-number { color: #9b5369; font-size: 10px; letter-spacing: .16em; }
.look-body h2 { min-height: 0; margin: 0 0 9px; color: #49353e; font-size: 19px; line-height: 1.6; }
.look-body > p { min-height: 72px; margin: 0; color: #73676d; font-size: 13px; line-height: 1.85; }
.photo-credit { display: inline-block; margin: 10px 0 3px; color: #735a64; font-size: 10px; text-decoration-color: #c6a5ae; text-underline-offset: 3px; }
.photo-credit:hover { color: #8d3f58; }
.look-tags { gap: 6px; margin: 10px 0 14px; }
.look-tags span { padding: 6px 9px; border-radius: 999px; color: #506955; background: #eaf0e9; font-size: 10px; }
.look-reason { min-height: 78px; margin-bottom: 14px; padding: 11px 13px; border-left: 3px solid #a75c73; border-radius: 0 11px 11px 0; color: #6d5d65; background: #faf0ef; font-size: 11px; line-height: 1.75; }
.look-reason b { color: #7d4356; font-size: 11px; }
.select-look { min-height: 46px; border: 1px solid #bd8a99; border-radius: 999px; color: #82465a; background: #fffaf7; font-size: 13px; }
.select-look:hover { border-color: var(--rose); color: #773a50; background: #faedf0; }
.is-selected .select-look { border-color: var(--rose); color: #fffaf7; background: var(--rose); }
.hair-results { border-color: #eadbd8; }
.hair-results-heading h2 { color: #49353e; }
.hair-results-heading p:last-child { color: #786b72; font-size: 11px; }
.hair-art, .hair-card, .hair-card-body { border-color: #eadbd8; }
.hair-card { overflow: hidden; border-radius: 15px; background: #fffaf7; }
.hair-card.is-selected { border-color: var(--rose); box-shadow: 0 0 0 1px var(--rose); }
.hair-card-body h3 { color: #4c3c43; font-size: 15px; }
.hair-card-body p { color: #756b70; font-size: 11px; }
.hair-tags span { color: #536957; background: #eaf0e9; font-size: 9px; }
.hair-reason { color: #796d72; font-size: 10px; }
.hair-choice-actions .select-hair { min-height: 38px; border: 1px solid #bd8a99; border-radius: 999px; color: #82465a; font-size: 11px; }
.hair-card.is-selected .select-hair { border-color: var(--rose); background: var(--rose); }
.hair-favorite { width: 38px; height: 38px; border-color: #ddcbd0; color: #8e475e; }
.results-bottom { border-color: #eadbd8; border-radius: 17px; background: #f8eee9; }
.tiny-sparkle { color: #a75c73; }
.results-bottom strong { color: #513a45; font-size: 14px; }
.results-bottom small { color: #74676d; font-size: 11px; }
.site-footer { border-color: rgba(128, 81, 97, .15); color: #756b70; }
.site-footer i { color: #a65c72; }
.toast { border-color: #dfc4cc; border-radius: 999px; color: #643e4b; background: #fffaf7; font-size: 12px; }

@media (max-width: 900px) {
  .form-layout { grid-template-columns: minmax(0, 1fr) 205px; gap: 24px; }
  .look-grid { gap: 13px; }
  .look-body { padding: 16px; }
  .look-body h2 { font-size: 17px; }
  .look-body > p { min-height: 88px; font-size: 12px; }
}

@media (max-width: 680px) {
  .app-shell { padding: 0 17px; }
  .site-header { height: 64px; }
  .header-note { font-size: 11px; }
  .screen { padding: 20px 0 32px; }
  .hero-grid { gap: 8px; padding: 13px 0 7px; }
  .eyebrow { margin-bottom: 11px; font-size: 9px; }
  .hero-copy h1 { font-size: clamp(33px, 9.2vw, 42px); line-height: 1.48; }
  .hero-lead { margin: 13px 0 17px; font-size: 13px; line-height: 1.8; }
  .hero-actions .button-primary { min-height: 53px; }
  .button { font-size: 14px; }
  .button-text { font-size: 13px; }
  .privacy-note { align-items: flex-start; margin-top: 14px; }
  .privacy-note p { font-size: 11px; line-height: 1.75; }
  .hero-art { width: min(80vw, 310px); }
  .home-footer { margin-top: 10px; padding: 14px 0; }
  .how-item { gap: 6px; }
  .how-item > span { font-size: 11px; }
  .how-item b { font-size: 11px; }
  .how-item small { max-width: 92px; font-size: 9px; }
  .prototype-note { font-size: 10px; }
  .step-label { font-size: 9px; }
  .step-label b { font-size: 10px; }
  .back-button { font-size: 12px; }
  .form-heading { margin: 21px 0 10px; }
  .form-heading h1 { font-size: 25px; line-height: 1.5; }
  .form-heading > p:last-child { font-size: 12px; line-height: 1.75; }
  .form-section { padding: 17px 0 18px; }
  .section-heading { gap: 9px; margin-bottom: 11px; }
  .section-heading h2 { font-size: 15px; }
  .section-heading p { font-size: 11px; }
  .choice-grid, .mood-grid { margin-left: 25px; }
  .choice-grid { gap: 8px; }
  .choice-chip { min-width: calc(50% - 4px); min-height: 48px; padding: 0 12px; font-size: 14px; }
  .choice-chip span { margin-left: 7px; }
  .mood-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mood-chip { min-height: 86px; grid-template-columns: 27px 1fr; column-gap: 7px; padding: 10px; }
  .mood-icon { grid-row: span 2; align-self: center; font-size: 21px; }
  .mood-chip b { font-size: 12px; }
  .mood-chip small { font-size: 9px; }
  .photo-section { margin: 5px 0 13px; padding: 15px 12px; }
  .photo-section .section-heading { align-items: flex-start; flex-wrap: wrap; margin-bottom: 13px; }
  .optional-photo-badge { margin-left: 25px; padding: 5px 9px; font-size: 10px; }
  .photo-section .upload-box, .photo-section .field-footnote { margin-left: 0; }
  .upload-empty { min-height: 83px; gap: 9px; padding: 10px; }
  .upload-symbol { width: 36px; height: 36px; font-size: 21px; }
  .upload-empty > div:nth-child(2) { gap: 5px; }
  .upload-empty strong { font-size: 11px; }
  .upload-empty small { font-size: 9px; line-height: 1.5; }
  .upload-empty .button { min-height: 40px; padding: 0 12px; font-size: 11px; }
  .field-footnote { margin: 9px 0 0; font-size: 10px; }
  .upload-preview { gap: 8px; padding: 9px; }
  .upload-preview img { width: 57px; height: 76px; }
  .preview-copy strong { max-width: 155px; font-size: 10px; }
  .preview-copy small { font-size: 9px; }
  .local-badge { font-size: 8px; }
  .clear-photo { font-size: 9px; }
  .advanced-settings { margin: 12px 0 16px 25px; border-radius: 14px; }
  .advanced-settings > summary { min-height: 62px; padding: 10px 13px; }
  .advanced-settings > summary b { font-size: 13px; }
  .advanced-settings > summary small { font-size: 10px; }
  .advanced-panel { padding: 0 12px 11px; }
  .color-budget-row { grid-template-columns: 1fr; gap: 14px; }
  .advanced-panel .section-heading { align-items: flex-start; }
  .color-choices, .select-field, .avoid-choices, .hair-pref-grid { margin-left: 25px; }
  .color-choices { justify-content: space-between; max-width: 315px; }
  .color-chip { font-size: 10px; }
  .select-field { width: calc(100% - 25px); height: 45px; }
  .avoid-choices { gap: 7px; }
  .avoid-chip { min-height: 42px; padding: 0 12px; font-size: 11px; }
  .hair-pref-grid { gap: 7px; }
  .hair-pref-chip { min-height: 39px; padding: 0 12px; font-size: 10px; }
  .form-submit-row { align-items: stretch; flex-direction: column; gap: 10px; padding-top: 17px; }
  .form-submit-row p { font-size: 11px; line-height: 1.65; }
  .form-submit-row .button { min-height: 52px; }
  .side-note { margin: 14px 0 0 25px; padding: 14px; }
  .side-note h3 { font-size: 14px; }
  .side-note > p { font-size: 11px; }
  .side-note .side-note-small { font-size: 10px; }
  .results-heading { align-items: flex-start; gap: 8px; padding: 20px 0 14px; }
  .results-heading h1 { font-size: 24px; line-height: 1.45; }
  .results-heading .eyebrow { font-size: 8px; }
  .result-subtitle { max-width: 225px; font-size: 11px; line-height: 1.7; }
  .restart-button { min-height: 37px; padding: 0 11px; font-size: 10px; }
  .sample-banner { gap: 9px; padding: 11px; }
  .sample-stamp { padding: 5px 7px; font-size: 8px; }
  .sample-banner p { font-size: 11px; line-height: 1.7; }
  .result-meta-row { gap: 4px; padding: 7px 0 10px; }
  .preference-summary { gap: 6px; padding: 5px 0; }
  .preference-summary span { padding: 5px 8px; font-size: 9px; }
  .photo-result-preview { margin-top: 7px; }
  .photo-result-preview img { width: 70px; height: 88px; }
  .look-grid { grid-template-columns: 1fr; gap: 16px; }
  .look-card { display: flex; flex-direction: column; border-radius: 19px; }
  .look-art { width: 100%; min-height: 0; aspect-ratio: 3 / 4; }
  .look-art img { object-position: center 32%; }
  .look-label { bottom: 11px; left: 11px; padding: 7px 10px; font-size: 10px; }
  .favorite-button { top: 11px; right: 11px; width: 40px; height: 40px; font-size: 21px; }
  .look-body { display: flex; flex-direction: column; padding: 17px 17px 18px; }
  .look-number { margin-bottom: 5px; font-size: 10px; }
  .look-body h2 { margin-bottom: 7px; font-size: 18px; line-height: 1.55; }
  .look-body > p { min-height: 0; font-size: 13px; line-height: 1.8; }
  .photo-credit { margin: 9px 0 2px; font-size: 10px; }
  .look-tags { gap: 6px; margin: 11px 0 13px; }
  .look-tags span { padding: 6px 9px; font-size: 10px; }
  .look-reason { min-height: 0; margin-bottom: 13px; padding: 11px 12px; font-size: 11px; line-height: 1.75; }
  .look-reason b { font-size: 11px; }
  .select-look { min-height: 48px; margin-top: 0; font-size: 13px; }
  .hair-results { margin-top: 26px; padding-top: 20px; }
  .hair-results-heading { gap: 8px; }
  .hair-results-heading .eyebrow { font-size: 8px; }
  .hair-results-heading h2 { font-size: 18px; }
  .hair-results-heading p:last-child { font-size: 10px; }
  .catalog-count { font-size: 8px; }
  .hair-grid { gap: 9px; }
  .hair-card { grid-template-columns: 34% 1fr; border-radius: 13px; }
  .hair-art { min-height: 145px; }
  .hair-card-body { padding: 10px; }
  .hair-card-body h3 { font-size: 12px; }
  .hair-card-body p { font-size: 9px; line-height: 1.6; }
  .hair-tags { flex-wrap: wrap; gap: 4px; margin: 7px 0; }
  .hair-tags span { font-size: 8px; }
  .hair-reason { margin-bottom: 7px; font-size: 8px; }
  .hair-choice-actions .select-hair { min-height: 36px; font-size: 9px; }
  .hair-favorite { width: 35px; height: 35px; }
  .results-bottom { gap: 12px; margin-top: 17px; padding: 15px; }
  .results-bottom strong { font-size: 12px; line-height: 1.6; }
  .results-bottom small { font-size: 10px; line-height: 1.7; }
  .results-bottom .button { min-height: 50px; }
  .results-prototype-note { margin-top: 9px; font-size: 9px; line-height: 1.7; }
  .site-footer { min-height: 62px; font-size: 9px; }
}

@media (max-width: 380px) {
  .app-shell { padding-right: 14px; padding-left: 14px; }
  .hero-copy h1 { font-size: 32px; }
  .choice-chip { font-size: 13px; }
  .upload-empty { gap: 7px; padding: 8px; }
  .upload-empty strong { font-size: 10px; }
  .upload-empty .button { padding: 0 9px; }
  .optional-photo-badge { margin-left: 0; }
}

[hidden] { display: none !important; }

/* Personal comparison, real hairstyle photos, and locally saved favorites. */
.result-meta-row { align-items: center; gap: 12px; }
.favorite-filter { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; min-height: 42px; padding: 6px 12px; border: 1px solid #e7cfd6; border-radius: 999px; color: #82465a; background: #fffaf7; cursor: pointer; }
.favorite-filter > span { font-size: 16px; line-height: 1; }
.favorite-filter b { font-size: 11px; font-weight: 600; }
.favorite-filter small { color: #81727a; font-size: 9px; }
.favorite-filter:hover:not(:disabled), .favorite-filter.is-active { border-color: #a8546b; color: #fffaf7; background: #9a4f65; }
.favorite-filter:hover:not(:disabled) small, .favorite-filter.is-active small { color: #f4e6ea; }
.favorite-filter:disabled { opacity: .72; cursor: default; }
.favorite-filter:focus-visible, #add-photo-from-results:focus-visible, #remove-photo-from-results:focus-visible { outline: 3px solid #b65f79; outline-offset: 3px; }
.favorite-empty { grid-column: 1 / -1; margin: 0; padding: 28px 18px; border: 1px dashed #d8b7c0; border-radius: 16px; color: #755a64; background: #fffaf7; font-size: 13px; line-height: 1.8; text-align: center; }

.photo-comparison { margin: 12px 0 22px; padding: 18px; border: 1px solid #ead5da; border-radius: 20px; background: linear-gradient(145deg, #fffaf8 0%, #f8eeea 100%); box-shadow: 0 9px 24px rgba(91, 55, 67, .045); }
.photo-comparison-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.photo-comparison-heading .eyebrow { justify-content: flex-start; margin: 0 0 4px; font-size: 8px; }
.photo-comparison-heading h2 { margin: 0; color: #49353e; font: 500 18px/1.45 var(--serif); letter-spacing: .02em; }
.local-only-pill { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 7px 10px; border: 1px solid #cfddcf; border-radius: 999px; color: #536b58; background: #f3f7f1; font-size: 10px; }
.local-only-pill i { width: 7px; height: 7px; border-radius: 50%; background: #789576; }
.comparison-note { margin: 8px 0 13px; color: #77696f; font-size: 11px; line-height: 1.75; }
.comparison-grid { display: grid; grid-template-columns: minmax(0,1fr) 32px minmax(0,1fr); align-items: center; gap: 10px; }
.comparison-figure { min-width: 0; margin: 0; padding: 8px; border: 1px solid #eadbd8; border-radius: 15px; background: rgba(255, 253, 251, .9); }
.comparison-image-frame { width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; background: #eee4df; }
.comparison-image-frame > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 27%; }
.user-image-frame { display: grid; place-items: center; background: #f1eee9; }
.user-image-frame > img { object-fit: contain; background: #f1eee9; }
.comparison-photo-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; padding: 10px; color: #705764; text-align: center; }
.comparison-photo-empty > span { display: grid; place-items: center; width: 35px; height: 35px; border: 1px dashed #b98898; border-radius: 50%; color: #98536a; font-size: 22px; }
.comparison-photo-empty b { color: #674653; font-size: 11px; }
.comparison-photo-empty small { color: #897980; font-size: 9px; line-height: 1.45; }
.comparison-photo-empty button, #remove-photo-from-results { min-height: 34px; padding: 0 12px; border: 1px solid #b77789; border-radius: 999px; color: #7f4358; background: #fffaf8; cursor: pointer; font-size: 10px; }
.comparison-photo-empty button:hover, #remove-photo-from-results:hover { color: white; background: #9a4f65; }
.comparison-figure figcaption { display: flex; flex-direction: column; gap: 3px; padding: 8px 3px 1px; }
.comparison-figure figcaption b { overflow: hidden; color: #59434d; font-size: 11px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.comparison-figure figcaption small { color: #85777d; font-size: 9px; line-height: 1.45; }
.comparison-figure figcaption button { align-self: flex-start; min-height: 28px !important; margin-top: 3px; padding: 0 10px !important; font-size: 9px !important; }
.comparison-mark { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #9a4f65; }
.comparison-mark span { font: 400 20px/1 var(--serif); }
.comparison-mark small { color: #89777f; font-size: 8px; line-height: 1.35; text-align: center; }
.comparison-hint { margin: 10px 0 0; color: #76676e; font-size: 10px; line-height: 1.6; text-align: center; }
.comparison-hair-row { display: grid; grid-template-columns: 112px minmax(0,1fr); align-items: center; gap: 14px; margin-top: 12px; padding: 9px; border: 1px solid #dfe5dc; border-radius: 15px; background: rgba(255, 255, 252, .88); }
.comparison-hair-image { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; background: #e9e7df; }
.comparison-hair-image::after { position: absolute; right: 5px; bottom: 5px; padding: 4px 7px; border-radius: 999px; color: #513c45; background: rgba(255, 250, 247, .94); content: "髪型の参考"; font-size: 8px; }
.comparison-hair-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.comparison-hair-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 4px; }
.comparison-hair-copy .eyebrow { justify-content: flex-start; margin: 0 0 2px; color: #71806e; font-size: 8px; }
.comparison-hair-copy > b { color: #59434d; font-family: var(--serif); font-size: 15px; font-weight: 500; line-height: 1.45; }
.comparison-hair-copy > small { color: #85777d; font-size: 9px; line-height: 1.5; }
.comparison-hair-link { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; margin-top: 2px; padding: 0 12px; border: 1px solid #b8c5b4; border-radius: 999px; color: #536b58; background: #f5f8f2; font-size: 10px; text-decoration: none; }
.comparison-hair-link:hover { color: #fff; background: #71866e; }
.comparison-hair-link:focus-visible { outline: 3px solid #b65f79; outline-offset: 3px; }

.hair-art { height: auto; aspect-ratio: 4 / 3; }
.hair-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.hair-card:nth-child(2) .hair-art img { object-position: center 35%; }
.hair-card:nth-child(3) .hair-art img { object-position: center 25%; }
.hair-label { top: auto; right: auto; bottom: 7px; left: 7px; padding: 5px 8px; border-radius: 999px; color: #513c45; background: rgba(255, 250, 247, .94); font-size: 8px; }
.hair-photo-credit { margin: 7px 0 2px; font-size: 9px; }

@media (max-width: 680px) {
  .result-meta-row { align-items: center; flex-direction: row; justify-content: space-between; gap: 6px; padding: 8px 0 10px; }
  .preference-summary { min-width: 0; gap: 5px; }
  .favorite-filter { min-height: 39px; gap: 5px; padding: 5px 9px; }
  .favorite-filter b { font-size: 10px; }
  .favorite-filter small { display: none; }
  .photo-comparison { margin: 6px 0 18px; padding: 13px 11px; border-radius: 17px; }
  .photo-comparison-heading { align-items: flex-start; gap: 8px; }
  .photo-comparison-heading .eyebrow { font-size: 7px; }
  .photo-comparison-heading h2 { font-size: 15px; }
  .local-only-pill { gap: 5px; padding: 6px 8px; font-size: 8px; }
  .local-only-pill i { width: 6px; height: 6px; }
  .comparison-note { margin: 7px 0 10px; font-size: 10px; }
  .comparison-grid { grid-template-columns: minmax(0,1fr) 23px minmax(0,1fr); gap: 6px; }
  .comparison-figure { padding: 5px; border-radius: 12px; }
  .comparison-image-frame { border-radius: 8px; }
  .comparison-photo-empty { gap: 5px; padding: 5px; }
  .comparison-photo-empty > span { width: 28px; height: 28px; font-size: 18px; }
  .comparison-photo-empty b { font-size: 10px; }
  .comparison-photo-empty small { font-size: 8px; }
  .comparison-photo-empty button { min-height: 31px; padding: 0 9px; font-size: 9px; }
  .comparison-figure figcaption { gap: 2px; padding: 7px 2px 1px; }
  .comparison-figure figcaption b { font-size: 9px; }
  .comparison-figure figcaption small { font-size: 8px; }
  .comparison-figure figcaption button { min-height: 25px !important; padding: 0 8px !important; font-size: 8px !important; }
  .comparison-mark span { font-size: 17px; }
  .comparison-mark small { font-size: 7px; }
  .comparison-hair-row { grid-template-columns: 82px minmax(0,1fr); gap: 10px; margin-top: 9px; padding: 7px; border-radius: 12px; }
  .comparison-hair-image { border-radius: 8px; }
  .comparison-hair-image::after { right: 4px; bottom: 4px; padding: 3px 6px; font-size: 7px; }
  .comparison-hair-copy { gap: 3px; }
  .comparison-hair-copy .eyebrow { font-size: 7px; }
  .comparison-hair-copy > b { font-size: 12px; }
  .comparison-hair-copy > small { font-size: 8px; }
  .comparison-hair-link { min-height: 31px; padding: 0 10px; font-size: 9px; }
  .comparison-hint { margin-top: 8px; font-size: 9px; }
  .hair-art { min-height: 170px; aspect-ratio: auto; }
  .hair-art img { object-position: center 25%; }
  .hair-photo-credit { margin: 5px 0 2px; font-size: 8px; }
}

@media (max-width: 380px) {
  .photo-comparison-heading h2 { font-size: 14px; }
  .local-only-pill { padding: 5px 6px; font-size: 7px; }
  .comparison-grid { grid-template-columns: minmax(0,1fr) 18px minmax(0,1fr); gap: 4px; }
  .comparison-photo-empty small { font-size: 7px; }
  .comparison-photo-empty button { padding: 0 7px; font-size: 8px; }
  .comparison-hair-row { grid-template-columns: 72px minmax(0,1fr); gap: 8px; padding: 6px; }
}
