/* First-use and profile controls share the prototype's phone shell and wordmark. */
.profile-page{color:#482918;max-width:36rem;margin:auto;padding:0 .15rem max(22px,env(safe-area-inset-bottom));overflow-wrap:anywhere}
.profile-page h1,.profile-page h2{font-family:Baskerville,Georgia,serif;font-size:clamp(1.85rem,7.6vw,2.65rem);line-height:1.08;letter-spacing:-.035em;margin:.4em 0}
.profile-flow #menu{visibility:hidden}
.profile-art{display:block;width:clamp(92px,28vw,143px);height:clamp(96px,29vw,150px);object-fit:contain;margin:.65em auto .35em;pointer-events:none}
.profile-welcome{text-align:center}.profile-welcome>.profile-art{width:min(58%,260px);height:clamp(170px,49vw,260px);margin:1.2em auto}
.profile-welcome p,.profile-hint,.profile-note,.profile-intro p{line-height:1.48}.profile-welcome p{margin:1em auto 1.35em;max-width:32ch}
.profile-quote{background:#f0efdf;border:1px solid #dcdcc5;border-radius:14px;padding:1em;line-height:1.55;margin:1em 0}
.profile-action,.profile-summary-row{display:flex;width:100%;min-height:50px;align-items:center;justify-content:space-between;gap:.55em;border:1px solid #d7c2a6;border-radius:12px;background:linear-gradient(105deg,#fcf6e9,#f9efdd);padding:.55em 1em;font-weight:700;color:#452715}
.profile-action{position:relative;margin:.8em 0 .25em;justify-content:center}
.profile-action i{font:1.5em Georgia;margin-inline-start:auto}.profile-action span{margin-inline-start:auto}
.profile-action:active,.profile-summary-row:active{background:#ede4cf}
.profile-link{min-height:48px;text-underline-offset:.18em;text-decoration:underline;font-weight:650;padding:.5em;color:#67422a}
.profile-nav{display:flex;align-items:center;justify-content:space-between;gap:.4em;font-size:.94em}
.profile-nav .profile-link:first-child{padding-left:0}.profile-nav .profile-link:last-child{padding-right:0}
.profile-meter{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.profile-meter i{height:5px;background:#e3dac9;border-radius:6px}.profile-meter .filled{background:#87925c}
.profile-question h1,.profile-question>.profile-hint{text-align:center}.profile-hint{margin:.4em 0 .8em}
.profile-options{border:none;margin:0;padding:0;display:grid;gap:.45em}
.profile-options label{display:flex;align-items:center;gap:.65em;line-height:1.35;min-height:48px;border:1px solid #dfcdb5;border-radius:10px;padding:.65em .75em;background:#fffaf1;cursor:pointer}
.profile-options label:has(input:checked){background:#edf0d9;border-color:#a1aa74}
.profile-options input{accent-color:#667546;width:1.23em;height:1.23em;flex:none;margin:0}
.profile-options label:focus-within{outline:2px solid #697445;outline-offset:2px}
.profile-name,.profile-room label{display:block;font-weight:700;margin:.5em 0}
.profile-name input,.profile-stepper input{display:block;width:100%;min-width:0;min-height:48px;padding:.45em .6em;margin-top:.3em;background:#fffaf2;border:1px solid #cfb89a;border-radius:9px;color:inherit;font:inherit}
.profile-note,.profile-alert{font-size:.9em;text-align:center}.profile-alert{color:#82371d}.profile-alert:empty{display:none}
.profile-room{margin:.8em 0}.profile-room small{font-weight:400}.profile-stepper{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;gap:.45em}
.profile-stepper input{text-align:center;margin:0}.profile-stepper button{border:1px solid #cec2a9;border-radius:9px;font-weight:700;font-size:1.3em;background:#e9edd7}
.profile-stepper button:disabled{opacity:.45}.profile-room .profile-link{display:block;margin-left:auto}.profile-room .profile-link[hidden]{display:none}
.profile-question form>.profile-link:last-child{display:block;margin:auto}
.profile-settings .profile-art{width:76px;height:88px;flex:none;margin:0}
.profile-intro{display:flex;align-items:center;gap:1em;margin:.6em 0 1em}
.profile-summary-row{background:#fffaf1;text-align:left;margin:.45em 0}.profile-summary-row strong,.profile-summary-row small{display:block}
.profile-summary-row small{font-weight:450;margin:.2em 0;line-height:1.35}.profile-summary-row u{align-self:center;margin-left:auto}
.profile-testing{margin:1em 0;padding:1em .1em 0;border-top:1px solid #dbc9b3}.profile-testing h3{margin:0 0 .3em}.profile-testing button{min-height:48px;text-align:left}.profile-testing small{display:block}
.profile-reset .profile-art{max-height:128px;margin:.6em auto}
@media(max-height:640px){.profile-question .profile-art{height:85px}.profile-welcome .profile-art{height:150px}}


.profile-sprig{width:34px;height:34px;object-fit:contain}.profile-sprig+span{margin-inline-start:.15em}#dialog:has(.profile-reset) #close{display:none}

.profile-page h1[tabindex="-1"]:focus{outline:none}
