*{box-sizing:border-box}
[hidden]{display:none!important}
:root{font:16px/1.5 "Source Sans 3",Arial,sans-serif;background:#171c29;color:#f6f1e7;--paper:#f6f1e7;--gold:#ecc281;--muted:#c4c9d0;--edge:clamp(15px,3.3vw,62px);--ink:#202637}
body{margin:0}
button,select,input,textarea{font:inherit}
button{cursor:pointer}
button:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #e5ac5c;outline-offset:4px}
button{color:inherit}
button:disabled{cursor:default}
.mast,.dock,.mobile-utility{display:flex;align-items:center;gap:clamp(12px,2.6vw,38px);padding-inline:var(--edge)}
.mast{background:#19202d;min-height:74px;border-bottom:1px solid #74819766;position:relative;z-index:3}
.brand{display:flex;align-items:center;position:relative;gap:10px;flex:none;min-height:62px;padding-bottom:8px}
.wordmark{font:normal clamp(1.2rem,2.05vw,2rem)/1 Georgia,serif;letter-spacing:-.055em;white-space:nowrap}
.wordmark i{font-weight:400;color:#e3cfb2}
#yarnButton{background:none;border:0;width:46px;height:46px;min-width:44px;min-height:44px;padding:0;border-radius:50%;position:relative;z-index:2}
#sunSpool,.signature-mark{display:block;width:100%;height:auto}
.autograph{display:flex;align-items:center;position:absolute;direction:ltr;left:8px;bottom:1px;color:#d4a367;pointer-events:none}
.autograph i{width:47px;height:9px;border-inline-start:1px solid;border-bottom:1px solid;border-radius:0 0 0 10px;transform:translateY(-2px)}
.autograph svg{width:51px;margin-left:-1px}
.utility,.mobile-utility{display:flex;gap:clamp(12px,2vw,28px)}
.utility{margin-inline-start:auto}
.utility button,.mobile-utility button,.text-button,.link,.lang select{border:0;background:transparent;font:inherit}
.utility button,.mobile-utility button{min-height:44px;padding:6px 0;color:#e5e4e7}
.utility button:hover,.mobile-utility button:hover{color:var(--gold)}
.lang{display:flex;align-items:center;gap:5px}
.lang svg{width:18px;height:18px;color:var(--gold)}
.lang select{color:var(--paper);min-height:44px;cursor:pointer;width:auto}
.lang select option{background:#202736;color:white}
.stage{isolation:isolate;position:relative;overflow:hidden;background:#151b29;display:grid;place-items:center;direction:ltr}
.stage::before{content:"";position:absolute;inset:-24px;background:linear-gradient(#12172594,#111726d9),url("assets/salon.webp") center/cover;filter:blur(16px);z-index:-1}
.scene{position:relative;max-width:100%;aspect-ratio:16 / 9;isolation:isolate}
.scene img{display:block;width:100%;height:100%}
.scene img{object-fit:contain}
.book-zones{position:absolute;left:var(--book-x);top:var(--book-y);width:var(--book-width);height:var(--book-height);display:grid;grid-template-columns:repeat(4,1fr);gap:1%}
.spine,.lamp-zone,.ball-zone{position:relative;background:transparent;border:0;padding:0;border-radius:3px;touch-action:manipulation}
.spine{height:100%;display:grid;align-items:center;justify-content:center}
.spine .hint{writing-mode:vertical-rl;transform:rotate(180deg);color:#fff3d8;text-shadow:0 1px 3px #180c05,0 -1px 2px #311b08;font:600 clamp(.7rem,1.1vw,1rem)/1.06 Georgia,serif;letter-spacing:.025em;white-space:nowrap}
.spine:hover,.spine:focus-visible{background:#ffdc8a22;box-shadow:inset 0 0 0 2px #f9d798c9}
.object,.marker{display:inline-flex;align-items:center;justify-content:center;gap:6px;color:#fff9e9;border:1px solid #e9d0a6aa;background:#17202be8;border-radius:999px;box-shadow:0 2px 8px #0005}
.object{position:absolute;min-height:33px;font-size:.81rem;padding:5px 10px;left:var(--shelf-x);top:var(--shelf-y);transform:translate(-50%,-50%)}
.object svg,.marker svg,.primary svg,.secondary svg,.close-button svg{width:19px;height:19px;flex:none}
.marker{width:30px;height:30px;min-width:30px;position:absolute;left:83%;top:82%;transform:translate(-50%,-50%);pointer-events:none}
.lamp-zone,.ball-zone{position:absolute;transform:translate(-50%,-50%);min-width:44px;min-height:44px}
.lamp-zone{left:var(--lamp-x);top:var(--lamp-y);width:var(--shade-w);height:var(--shade-h)}
.ball-zone{left:var(--ball-x);top:var(--ball-y);width:8.4%;height:12%}
.lamp-zone .hint,.ball-zone .hint{position:absolute;white-space:nowrap;padding:5px 9px;border-radius:5px;font-size:.83rem;background:#101624f2;color:white;transform:translate(-50%,0);left:50%;bottom:-26px;opacity:0;pointer-events:none}
.ball-zone .hint{bottom:100%}
.lamp-zone:is(:hover,:focus-visible) .hint,.ball-zone:is(:hover,:focus-visible) .hint{opacity:1}
.lamp-zone:hover .marker,.ball-zone:hover .marker,.object:hover{background:#3b4556;color:white}
.dock{min-height:94px;justify-content:space-between;background:#19202d;border-block:1px solid #78859b55;padding-block:12px}
.location,.panel-head p{font-family:Arial,sans-serif;font-size:.73rem;letter-spacing:.12em;color:var(--gold);margin:0 0 4px}
.dock h1{margin:0;font:normal clamp(1.3rem,2.3vw,2.35rem)/1.15 Georgia,serif;letter-spacing:-.035em}.dock h1 em{color:#ead0a3}
.dock-actions,.panel-actions{display:flex;align-items:center;gap:10px}
.primary,.secondary{border-radius:6px;padding:10px 15px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:600;font-size:.95rem}
.primary{border:1px solid #e2b67b;background:#edc78e;color:#27221d}.primary:hover{background:#f6d9ab}
.secondary{border:1px solid #85909f;background:transparent;color:#fff}.secondary:hover{background:#354153}
.mobile-utility{display:none}
dialog{color:var(--ink);padding:0;width:min(540px,calc(100% - 28px));max-height:87dvh;border:1px solid #384054;border-radius:12px;box-shadow:0 25px 80px #090c17aa;background:#f5f1e9;overscroll-behavior:contain}
dialog::backdrop{background:#0b1224b8;backdrop-filter:blur(4px)}
.panel-head{background:#222a39;color:#fff;display:flex;justify-content:space-between;align-items:center;padding:9px 15px 9px 23px}
.panel-head p{margin:0;letter-spacing:.055em}
.close-button{width:42px;height:42px;display:grid;place-items:center;border:0;background:transparent;color:#fbf4e3;border-radius:50%}.close-button:hover{background:#414959}
.paper{padding:23px clamp(18px,4vw,33px) 27px}
.paper h2{font:normal clamp(1.8rem,4vw,2.5rem)/1.12 Georgia,serif;letter-spacing:-.035em;margin:0 0 12px}.paper h2:focus{outline:none}
.paper p{line-height:1.55}
.catalog{display:grid;gap:9px;margin:19px 0}
.volume{border:0;border-inline-start:6px solid #b99c61;border-radius:3px;background:#25484a;color:white;text-align:start;padding:13px 15px;cursor:pointer;font:1.06rem Georgia,serif;min-height:46px}.volume.buy{background:#754044}.volume.move{background:#805e28}.volume.business{background:#44516d}.volume:hover{filter:brightness(1.12)}
.text-button,.link{font:inherit;color:#3f505e;text-decoration:underline;text-underline-offset:4px;min-height:38px;text-align:start;padding:4px 0}
.steps{padding-inline-start:1.35rem}.steps li{padding-inline-start:4px;margin-bottom:13px}.steps h3{font:1.23rem Georgia,serif;margin:0}.steps p{margin:5px 0}.paper details{margin:14px 0 21px}.paper summary{cursor:pointer}
#modeText,.chat-note,.demo-switch,#feedback{font-size:.87rem;color:#52606a}
#feed{display:grid;gap:8px;max-height:32dvh;overflow:auto;margin-bottom:9px}
.msg{max-width:89%;width:fit-content;padding:9px 12px;background:#e9e2d5;border-radius:9px;overflow-wrap:anywhere}
.msg.own{margin-inline-start:auto;background:#dfe7e3}.msg p{white-space:pre-wrap;margin:2px 0 0}.msg small{display:block;font-size:.77rem}
#empty{font:1.18rem Georgia,serif;margin:14px 0}
#compose{border:1px solid #aaa99f;background:#fffdf9;border-radius:8px;padding:8px}
#message{resize:vertical;width:100%;padding:8px;color:var(--ink);border:0;background:transparent;min-height:75px}
.actions{display:flex;justify-content:flex-end}#topicPill:not([hidden]){display:flex;align-items:center;justify-content:space-between;gap:8px;padding-inline:9px;background:#e6ddce;border-radius:6px;margin-bottom:10px}
#clearTopic{background:transparent;color:var(--ink);border:0;min-height:40px;min-width:35px;font-size:1.25rem}
#emailForm label,#emailForm input{display:block;width:100%}#emailForm input{margin:6px 0;padding:9px;border:1px solid #9daba6;border-radius:5px;color:var(--ink)}
.buttons{display:flex;gap:14px}.chat-note{margin:10px 0 0}.demo-switch{font-size:.81rem}
.sr{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}html:has(dialog[open]){overflow:hidden}
@media(max-width:780px){.utility{display:none}.lang{margin-inline-start:auto}.mobile-utility{display:flex;justify-content:center}.mast{min-height:61px}.brand{min-height:55px}.dock h1{font-size:1.35rem}.dock-actions{gap:6px}.primary,.secondary{padding:9px 12px}}
@media(max-width:630px) and (orientation:portrait){
  .mast{min-height:57px}.brand{gap:5px;min-height:53px}.autograph{bottom:0}.wordmark{font-size:clamp(1rem,4vw,1.32rem)}
  .lang{gap:2px}.lang svg{width:15px}.lang select{font-size:.86rem;max-width:94px}
  .dock{min-height:auto;display:grid;gap:9px;padding-block:12px}.dock h1{font-size:1.18rem}.dock-actions{flex-wrap:wrap}
  .location{font-size:.66rem}.mobile-utility{gap:20px;justify-content:flex-start;font-size:.83rem}
  .object{min-width:44px;min-height:44px;box-shadow:none;border:0;background:transparent;padding:4px}.object span{position:absolute;width:1px;height:1px;clip-path:inset(50%)}.object svg{box-sizing:content-box;background:#17202be8;border:1px solid #edd4a8aa;border-radius:50%;padding:5px}
  .marker{width:25px;height:25px;min-width:25px}.marker svg,.object svg{width:15px;height:15px}.spine .hint{font-size:clamp(.61rem,2.35vw,.84rem)}.panel-actions{flex-wrap:wrap}
}
@media(max-height:520px) and (orientation:landscape){.dock{min-height:64px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media(max-width:630px) and (orientation:portrait){

  .spine .hint{font-size:clamp(.5rem,1.8vw,.8rem);max-inline-size:100%;overflow:hidden}
  .ball-zone{width:14%;height:9.2%}
}

a:is(.spine,.object,.secondary),.utility a,.mobile-utility a{color:inherit;text-decoration:none}
a:focus-visible{outline:3px solid #e5ac5c;outline-offset:4px}
.utility a,.mobile-utility a{display:inline-flex;align-items:center;min-height:44px;padding:6px 0;color:#e5e4e7}
.utility a:hover,.mobile-utility a:hover{color:var(--gold)}

.legal-footer {padding:8px var(--edge);background:#19202d;color:#e4dfd6}
.legal-footer a,.legal-page main a {display:inline-flex;align-items:center;min-height:44px;color:inherit;text-underline-offset:.22em}
.legal-page {background:#f5f0e5;color:#292c2b;min-height:100svh}
.legal-page .wordmark {color:#f6f1e7;text-decoration:none}
.legal-page main {width:min(100% - 2 * var(--edge),44rem);margin:clamp(2rem,7vw,5rem) auto}
.legal-page h1 {font:normal clamp(2.25rem,5vw,4rem)/1.1 Georgia,serif;margin:0 0 1.25rem}
.legal-page dl {padding:1.3rem 0;border-block:1px solid #b7ad9c;margin:0 0 1rem}
.legal-page dt {font-weight:600;color:#47483e}
.legal-page dd {margin:.2rem 0 1.2rem}
.legal-page dd:last-child {margin-bottom:0}
.legal-page address {font-style:normal}
#panel summary{cursor:pointer;padding:.65rem 0;font-weight:600}
#panel #contact,#panel .voice-pref{border-top:1px solid #d6c7b7;margin-top:.65rem}
#panel .voice-pref select,#panel #email{width:100%;font:inherit;padding:.65rem;margin:.4rem 0}
#panel .voice-pref p,#returnNote{line-height:1.5}
#feed .msg p{white-space:pre-wrap;overflow-wrap:anywhere}
#feed .msg a{text-decoration:underline;color:inherit}

.chat-network-nav { display:flex; align-items:center; flex-wrap:wrap; gap:6px 18px; margin-bottom:14px; }
.chat-network-nav #modeText { flex:1 1 12rem; margin:0; }
.utility .partner-link,.mobile-utility .partner-link,#panel .partner-link {
  display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:44px;
  padding:8px 16px; border:1px solid #78b299; border-radius:24px; color:#fffdf5;
  background:#235e49; text-decoration:none; font-weight:650; line-height:1.2; text-align:center;
}
.partner-link::before { content:""; width:8px; height:8px; border-radius:50%; flex:none; background:#bcf2c8; }
.utility .partner-link:hover,.mobile-utility .partner-link:hover,#panel .partner-link:hover { background:#176c4e; color:white; }
.partner-link:focus-visible { outline:3px solid #ffc662; outline-offset:3px; }

#compose #guestName{width:100%;border:1px solid #a9a397;border-radius:.45rem;padding:.55rem .7rem;margin:.25rem 0 .6rem;font:inherit;color:#202637;background:#fff}
