/* Shared visual shell only. Service questions, profile logic and APIs remain owned by each page. */
:root{--wk-font:Inter,"SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--wk-page:#071426;--wk-panel:#102239;--wk-line:#2b425c;--wk-ink:#f1f6ff;--wk-muted:#aec1d8;--wk-accent:#75ccff;--wk-width:800px;--wk-header:72px}
body[data-wk-service="events"]{--wk-accent:#ffca7d}
body[data-wk-service="health"]{--wk-accent:#f08da7}
body[data-wk-service="special-needs"]{--wk-accent:#b69cff}
body[data-wk-service="answers"]{--wk-accent:#96b4ff}
body[data-wk-service="mail"]{--wk-accent:#8cddc8}
body[data-wk-service]{--page:var(--wk-page);--hero:var(--wk-page);--surface:var(--wk-panel);--panel:var(--wk-panel);--surf:var(--wk-panel);--line:var(--wk-line);--line2:var(--wk-line);--ink:var(--wk-ink);--silver:var(--wk-ink);--ink2:var(--wk-muted);--muted:var(--wk-muted);--ice:var(--wk-accent);--muted-foreground:var(--wk-muted);font-family:var(--wk-font);background:var(--wk-page);color:var(--wk-ink);padding-left:0;padding-right:0;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body[data-wk-service]>.wk-chat-header,body[data-wk-service] .qs .head{position:relative;inset:auto;display:flex!important;flex-direction:row;align-items:center;gap:12px;min-height:var(--wk-header);height:var(--wk-header);flex:none;width:100%;max-width:none;margin:0;padding:12px max(24px,env(safe-area-inset-right)) 12px max(24px,env(safe-area-inset-left));background:var(--wk-page);border:0;border-bottom:1px solid var(--wk-line);box-sizing:border-box;z-index:12;backdrop-filter:none}
body[data-wk-service] .wk-chat-brand{display:inline-flex;align-items:center;gap:10px;min-width:0;flex:none;color:var(--wk-ink);text-decoration:none;letter-spacing:0;padding:0;white-space:nowrap}
body[data-wk-service] .wk-chat-brand>img{width:38px;height:38px;display:block;object-fit:contain;flex:none;border-radius:11px}
body[data-wk-service] .wk-chat-brand .wk-brand-copy{display:flex;flex-direction:column;gap:2px;text-align:left}
body[data-wk-service] .wk-chat-brand .wk-brand-copy small{font:500 11px/1.1 var(--wk-font);letter-spacing:.04em;color:var(--wk-muted)}
body[data-wk-service] .wk-chat-brand .wk-brand-copy b{font:600 17px/1.2 var(--wk-font);color:var(--wk-accent);letter-spacing:-.02em}
body[data-wk-service] .wk-chat-header>.tb-sp,body[data-wk-service] .wk-chat-header>.sp{display:block;flex:1;min-width:0}
body[data-wk-service] .wk-chat-header :is(.tb-btn,.back,.profile,.wkid-acct),body[data-wk-service] .qs .head :is(.back,.menu){display:inline-flex;align-items:center;justify-content:center;gap:8px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;margin:0;flex:none;border:1px solid var(--wk-line);border-radius:50%;background:var(--wk-panel);color:var(--wk-ink);box-shadow:none;font:600 15px var(--wk-font);cursor:pointer;order:initial;text-decoration:none}
body[data-wk-service] .wk-chat-header :is(.tb-btn,.back,.profile)>span{display:none}
body[data-wk-service] .wk-chat-header :is(.tb-btn,.back,.profile,.wkid-acct) svg,body[data-wk-service] .qs .head :is(.back,.menu) svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body[data-wk-service] .wk-chat-header :is(.tb-btn,.back,.profile,.wkid-acct):hover,body[data-wk-service] .qs .head :is(.back,.menu):hover{border-color:var(--wk-accent);background:#19334e}
body[data-wk-service] .wk-chat-header #wkAcct{position:relative!important;inset:auto!important;display:inline-flex;align-items:center;flex:none;order:10;margin:0}
body[data-wk-service] .wk-chat-header #wkAcct .wkid-menu{top:calc(100% + 10px);right:0;bottom:auto;left:auto;background:var(--wk-panel);color:var(--wk-ink);border-color:var(--wk-line)}
body[data-wk-service] .wk-chat-header #wkAcct .wkid-menu button{color:var(--wk-ink)}
body[data-wk-service] .wk-chat-header .tb-heart{display:none}
body[data-wk-service] .wk-chat-header .back{order:-1;display:inline-flex}
body[data-wk-service] .wk-chat-header [hidden]{display:none!important}
body[data-wk-service] :is(button,a,input,textarea):focus-visible{outline:2px solid var(--wk-accent);outline-offset:3px}
/* Keep existing history controls as a drawer at every size, leaving account placement consistent. */
body[data-wk-service]:is([data-wk-service="answers"],[data-wk-service="health"])>.recent{position:fixed;inset:0 auto 0 0;z-index:30;width:min(86vw,340px);padding:20px 14px max(20px,env(safe-area-inset-bottom));background:var(--wk-panel);color:var(--wk-ink);border-right:1px solid var(--wk-line);transform:translateX(-102%);visibility:hidden;box-shadow:0 16px 48px #0006}
body[data-wk-service].drawer>.recent{transform:none;visibility:visible}
body[data-wk-service]>.recent .rc-close{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--wk-line);border-radius:50%;background:var(--wk-page);color:var(--wk-ink)}
body[data-wk-service]>.recent .rc-top{display:flex;border:0;padding:0;margin:0 0 12px;align-items:center;justify-content:space-between}
body[data-wk-service]>.recent :is(.rc-head,.rc-item,.rc-top b){color:var(--wk-ink)}
body[data-wk-service]>.scrim{z-index:29}
/* Common reading column, input surface and rhythm. */
body[data-wk-service]>.thread{min-height:0;padding:24px max(24px,env(safe-area-inset-left)) 16px;scrollbar-width:thin}
body[data-wk-service]>.thread>.msg,body[data-wk-service]>.thread>.after{max-width:var(--wk-width)}
body[data-wk-service]>.thread>.msg{margin-bottom:20px}
body[data-wk-service]>.thread .bubble{font-family:var(--wk-font);font-size:16px;line-height:1.65;color:var(--wk-ink)}
body[data-wk-service]>.thread>.msg.way>.bubble{background:transparent;border:0;box-shadow:none}
body[data-wk-service]>.thread>.msg.user>.bubble{background:var(--wk-panel);border:1px solid var(--wk-line);border-radius:20px}
body[data-wk-service]>.composer,body[data-wk-service][data-state]>.composer{background:var(--wk-page)!important;padding:12px max(24px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));border:0;flex:none}
body[data-wk-service]>.composer :is(.compin,.pill),body[data-wk-service]>.greet{max-width:var(--wk-width)}
body[data-wk-service]>.composer .pill,body[data-wk-service] .qs .compose{border:1px solid var(--wk-line);border-radius:24px;background:var(--wk-panel);box-shadow:0 8px 28px #0002;color:var(--wk-ink)}
body[data-wk-service]>.composer .pill:focus-within,body[data-wk-service] .qs .compose:focus-within{border-color:var(--wk-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--wk-accent) 15%,transparent)}
body[data-wk-service]>.composer textarea,body[data-wk-service] .qs textarea{font:400 16px/1.5 var(--wk-font);color:var(--wk-ink);caret-color:var(--wk-accent)}
body[data-wk-service]>.composer textarea::placeholder,body[data-wk-service] .qs textarea::placeholder{color:var(--wk-muted);opacity:1}
body[data-wk-service]>.composer .pill textarea:focus-visible{outline:none}
body[data-wk-service]>.composer :is(.sendb,.stopb),body[data-wk-service] .qs .send{width:44px;height:44px;min-width:44px;min-height:44px;border-radius:50%}
body[data-wk-service]>.composer .sendb,body[data-wk-service] .qs .send{background:var(--wk-accent);color:#071426}
body[data-wk-service]>.composer :is(.disc,.cnote){font:400 12px/1.5 var(--wk-font);color:var(--wk-muted);margin:10px auto 0;max-width:var(--wk-width)}
body[data-wk-service]>.greet{width:calc(100% - 48px);margin:28px auto 0;color:var(--wk-ink)}
body[data-wk-service]>.greet b{font-family:var(--wk-font);font-size:24px;line-height:1.3}
body[data-wk-service]>.greet span{color:var(--wk-muted);font-size:15px}
body[data-wk-service]>.greet{display:flex;align-items:center;gap:12px;text-align:left}
body[data-wk-service]>.greet>svg{width:28px;height:28px;margin:0;flex:none}
body[data-wk-service]>.greet>div{text-align:left}
body[data-wk-service] .wkid-box{background:var(--wk-panel)!important;color:var(--wk-ink)!important;border:1px solid var(--wk-line)!important;font-family:var(--wk-font)}
body[data-wk-service] .wkid-box h2{color:var(--wk-ink)!important;font:600 22px/1.35 var(--wk-font)}
body[data-wk-service] .wkid-box :is(p,.wkid-note){color:var(--wk-muted)!important}
body[data-wk-service] .wkid-box :is(legend,label){color:var(--wk-ink)!important}
body[data-wk-service] .wkid-box input[type=text],body[data-wk-service] .wkid-opts label,body[data-wk-service] .wkid-btn{background:var(--wk-page)!important;color:var(--wk-ink)!important;border-color:var(--wk-line)!important}
body[data-wk-service] .wkid-btn.primary{background:var(--wk-accent)!important;color:#071426!important;border-color:var(--wk-accent)!important}
body[data-wk-service] #fprof{--white:var(--wk-ink);--glass-line:var(--wk-line);--blue:var(--wk-accent);background:var(--wk-panel);color:var(--wk-ink);font-family:var(--wk-font);border-color:var(--wk-line)}
body[data-wk-service] #fprof .pbtn{min-height:44px;padding:10px 18px;border:1px solid var(--wk-line);border-radius:999px;background:var(--wk-page);color:var(--wk-ink);font:600 14px var(--wk-font);cursor:pointer}
body[data-wk-service] #fprof .pbtn.primary{background:var(--wk-accent);color:#071426}
/* Activities' existing question screen uses the same shell without changing intake or typewriter timing. */
body[data-wk-service="activities"] .qs{padding:0;background:var(--wk-page);min-height:0;height:100%;overflow:hidden;font-family:var(--wk-font)}
body[data-wk-service="activities"] .qs>.inner{width:100%;max-width:none;min-height:0;height:100%;flex:1 1 auto}
body[data-wk-service="activities"] .qs .head .who{margin-right:auto}
body[data-wk-service="activities"] .qs .head-actions{display:flex;gap:8px;margin-left:auto}
body[data-wk-service="activities"] .qs .head-actions>.menu:first-child{order:2}
body[data-wk-service="activities"] .qs .conv{width:min(calc(100% - 48px),var(--wk-width));margin:0 auto;padding:28px 0 20px;flex:1 1 auto;min-height:0;overflow:auto}
body[data-wk-service="activities"] .qs .asks{margin:0;font:500 13px/1.5 var(--wk-font);color:var(--wk-accent);gap:8px}
body[data-wk-service="activities"] .qs h2{font-family:"Courier New","Courier Prime",monospace;font-size:clamp(24px,3.5vw,32px);font-weight:700;line-height:1.4;margin:18px 0 0;letter-spacing:-.02em}
body[data-wk-service="activities"] .qs .foot{width:min(calc(100% - 48px),var(--wk-width));margin:0 auto;padding:12px 0 max(16px,env(safe-area-inset-bottom));flex:none}
body[data-wk-service="activities"] .qs .answer{margin:0}
body[data-wk-service="activities"] .qs .msg{font:400 13px/1.5 var(--wk-font)}
/* Events keeps its existing questions, choice buttons and confirmation. */
body[data-wk-service="events"]{padding:0;overflow:hidden;height:100dvh}
body[data-wk-service="events"]>main{width:min(calc(100% - 48px),var(--wk-width));flex:1;min-height:0;margin:0 auto;overflow:auto;padding:28px 0 20px;display:flex;flex-direction:column}
body[data-wk-service="events"] .eyebrow{color:var(--wk-accent);font:500 13px/1.5 var(--wk-font);letter-spacing:0;text-transform:none;margin:0 0 12px}
body[data-wk-service="events"] #context{font-size:14px;color:var(--wk-muted);margin:0 0 8px}
body[data-wk-service="events"] #question{font:700 clamp(24px,3.5vw,32px)/1.4 "Courier New","Courier Prime",monospace;letter-spacing:-.02em;margin:12px 0 24px}
body[data-wk-service="events"] #question:focus{outline:none}
body[data-wk-service="events"] .choices{gap:10px;margin-bottom:24px}
body[data-wk-service="events"] .choices button{min-height:44px;padding:10px 16px;border-radius:999px;background:var(--wk-panel);border:1px solid var(--wk-line);font:500 14px/1.4 var(--wk-font);color:var(--wk-ink)}
body[data-wk-service="events"] #form{margin-top:auto;min-height:66px;flex:none;align-items:center;border:1px solid var(--wk-line);border-radius:24px;background:var(--wk-panel);padding:10px 10px 10px 18px}
body[data-wk-service="events"] #answer{font:400 16px/1.5 var(--wk-font);padding:8px 0;color:var(--wk-ink)}
body[data-wk-service="events"] #answer::placeholder{color:var(--wk-muted);opacity:1}
body[data-wk-service="events"] #form button{width:44px;height:44px;flex:none;border-radius:50%;background:var(--wk-accent)}
body[data-wk-service="events"]>footer{margin:0;padding:0 24px max(16px,env(safe-area-inset-bottom));flex:none;color:var(--wk-muted);font:400 12px/1.5 var(--wk-font)}
/* Answers retains the existing answer engine and controls, using the Waykin navy surface. */
body[data-wk-service="answers"] :is(.head,.welcome){background:transparent}
body[data-wk-service="answers"] .head h1,body[data-wk-service="answers"] .head h1 span{color:var(--wk-ink)}
body[data-wk-service="answers"] .examples button,body[data-wk-service="answers"] :is(.more,.skip,.explore button){background:var(--wk-panel);color:var(--wk-ink);border-color:var(--wk-line)}
body[data-wk-service="answers"]>.composer .pill{min-height:0;display:flex;flex-direction:row;align-items:flex-end;padding:10px 10px 10px 18px;gap:8px}
body[data-wk-service="answers"]>.composer .pill textarea{width:auto;min-width:0;flex:1;margin:0;min-height:44px}
body[data-wk-service="answers"]>.composer .pill-row{display:flex;flex:none;gap:8px;width:auto}
body[data-wk-service="answers"]>.composer .pill-sp{display:none}
/* Mail remains an inbox; only its visual shell is shared. */
body[data-wk-service="mail"]>main{min-height:calc(100dvh - var(--wk-header))}
/* The same focused typewriter presentation as Activities, with UI controls in Inter. */
.wk-sr-answer{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
body[data-wk-service]:is([data-wk-service="health"],[data-wk-service="special-needs"])>.greet{display:none}
body[data-wk-service]:is([data-wk-service="health"],[data-wk-service="special-needs"]) .thread>.msg.way>.av{display:none}
body[data-wk-service]:is([data-wk-service="health"],[data-wk-service="special-needs"]) .thread>.msg.way>.bubble{padding:0;width:100%;max-width:100%;flex:1;min-width:0}
body[data-wk-service]:is([data-wk-service="health"],[data-wk-service="special-needs"]) .wkh-point-view{font:700 clamp(24px,3.5vw,32px)/1.4 "Courier New","Courier Prime",monospace;letter-spacing:-.02em;padding:0 2px 8px;max-height:min(48dvh,480px);color:var(--wk-ink)}
body[data-wk-service] .wkh-point-view :is(h1,h2,h3,p,li,strong){font:inherit;color:inherit;letter-spacing:inherit}
body[data-wk-service] .wkh-point-view :is(h1,h2,h3){margin:0 0 .65em}
body[data-wk-service] .wkh-point-view .cite,body[data-wk-service] .wkh-point-nav{font:500 13px/1.5 var(--wk-font);letter-spacing:0}
body[data-wk-service] .wkh-point-nav{margin-top:20px;padding-top:16px;gap:12px}
body[data-wk-service] .wkh-point-next{background:var(--wk-accent);color:#071426;border-color:var(--wk-accent)}
body[data-wk-service] .wkh-point-previous{color:var(--wk-ink);border-color:var(--wk-line)}
body[data-wk-service] .wkh-history-toggle{color:var(--wk-muted)}
body[data-wk-service="answers"] .head h1,body[data-wk-service="answers"]>.thread>.msg.way>.bubble{font:700 clamp(24px,3.5vw,32px)/1.4 "Courier New","Courier Prime",monospace;letter-spacing:-.02em}
body[data-wk-service="answers"]>.thread>.msg.way>.bubble :is(p,li,h1,h2,h3){font:inherit;color:inherit}
@media(max-width:639px){
 :root{--wk-header:64px}
 body[data-wk-service]>.wk-chat-header,body[data-wk-service] .qs .head{padding:10px max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));gap:8px}
 body[data-wk-service] .wk-chat-brand{gap:8px}body[data-wk-service] .wk-chat-brand>img{width:32px;height:32px;border-radius:9px}
 body[data-wk-service] .wk-chat-brand .wk-brand-copy b{font-size:15px}
 body[data-wk-service] .wk-chat-header .back{display:inline-flex}
 body[data-wk-service]>.thread{padding:18px 16px 12px}
 body[data-wk-service]>.composer,body[data-wk-service][data-state]>.composer{padding:10px 16px max(12px,env(safe-area-inset-bottom))}
 body[data-wk-service]>.greet{width:calc(100% - 32px);margin:20px auto 0}
 body[data-wk-service="activities"] .qs :is(.conv,.foot),body[data-wk-service="events"]>main{width:calc(100% - 32px)}
 body[data-wk-service="activities"] .qs .conv,body[data-wk-service="events"]>main{padding-top:20px}
}
@media(max-width:374px){body[data-wk-service]>.wk-chat-header,body[data-wk-service] .qs .head{padding-left:10px;padding-right:10px;gap:6px}body[data-wk-service] .wk-chat-brand>img{width:28px;height:28px}body[data-wk-service] .wk-chat-brand .wk-brand-copy b{font-size:14px}body[data-wk-service] .wk-chat-brand{gap:6px}}
@media(orientation:landscape) and (max-height:550px) and (max-width:1100px){
 :root{--wk-header:56px}
 body[data-wk-service]:is([data-wk-service="health"],[data-wk-service="special-needs"],[data-wk-service="answers"]){display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);grid-template-rows:56px auto minmax(0,1fr);column-gap:24px;padding:0 max(20px,env(safe-area-inset-right)) 0 max(20px,env(safe-area-inset-left));overflow:hidden}
 body[data-wk-service]>.wk-chat-header{grid-area:1/1/2/3;padding:6px 0;min-height:56px;height:56px;gap:8px}
 body[data-wk-service]>.greet{display:none}
 body[data-wk-service]>.thread{grid-area:3/1;min-width:0;padding:12px 0;overflow:auto;align-self:stretch}
 body[data-wk-service]>.composer,body[data-wk-service][data-state]>.composer{grid-area:2/2/4/3;align-self:center;max-height:100%;overflow:auto;padding:10px 0;background:transparent!important;min-width:0}
 body[data-wk-service]>.thread .msg .av{display:none}body[data-wk-service]>.thread .msg .bubble{width:100%;max-width:100%;padding:0}
 body[data-wk-service="answers"]>.head{grid-area:2/1/4/2;width:100%;margin:auto 0!important;padding:8px 0!important}
 body[data-wk-service="answers"]>.head h1{font-size:26px;line-height:1.3;margin:0}
 body[data-wk-service="answers"]>.welcome{display:none}
 body[data-wk-service="activities"] .qs>.inner{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);grid-template-rows:56px minmax(0,1fr);gap:0 24px;padding:0 max(20px,env(safe-area-inset-left))}
 body[data-wk-service="activities"] .qs .head{grid-area:1/1/2/3;height:56px;min-height:56px;padding:6px 0}
 body[data-wk-service="activities"] .qs .conv{grid-area:2/1;width:100%;padding:12px 0}
 body[data-wk-service="activities"] .qs .foot{grid-area:2/2;width:100%;align-self:center;max-height:100%;overflow:auto;padding:12px 0}
 body[data-wk-service="activities"] .qs h2{font-size:24px;margin-top:12px}
 body[data-wk-service="events"]>.wk-chat-header,body[data-wk-service="mail"]>.wk-chat-header{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
 body[data-wk-service="events"]>main{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);grid-template-rows:auto auto 1fr auto;gap:8px 24px;width:calc(100% - 40px);padding:12px 0}
 body[data-wk-service="events"]>main>:is(.eyebrow,#context,#question){grid-column:1;margin:0}
 body[data-wk-service="events"] #question{font-size:24px;grid-row:3/5;align-self:start}
 body[data-wk-service="events"] #choices{grid-column:2;grid-row:1/4;margin:0;align-content:normal;align-items:center;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;min-height:52px;gap:8px}
 body[data-wk-service="events"] #choices button{font-size:13px;padding:8px 12px;flex:none;white-space:nowrap}
 body[data-wk-service="events"] #form{grid-area:4/2;min-height:60px}
 body[data-wk-service="events"] #summary,body[data-wk-service="events"] #notice{grid-column:1/-1}
 body[data-wk-service="events"]>footer{padding-bottom:8px;font-size:11px}
 body[data-wk-service]:is([data-wk-service="health"],[data-wk-service="special-needs"]) .wkh-point-view{font-size:24px;line-height:1.4;max-height:none;min-height:32px;flex:1}
 body[data-wk-service]:is([data-wk-service="health"],[data-wk-service="special-needs"]) .thread>.msg.way>.bubble.wkh-paged{max-height:calc(var(--wkh-view-height,100dvh) - 160px)}
 body[data-wk-service] .wkh-point-nav{margin-top:8px;padding-top:8px;gap:8px}
}
@media(orientation:landscape) and (max-height:290px){
 body[data-wk-service]:is([data-wk-service="health"],[data-wk-service="special-needs"]) .thread>.msg.way>.bubble.wkh-paged{max-height:calc(var(--wkh-view-height,100dvh) - 110px)}
 body[data-wk-service] .wkh-focus .wkh-point-nav{margin-top:4px;padding-top:4px}
 body[data-wk-service].wkh-focus:not(.wkh-history-open):has(.wkh-current .wkh-paged) .wkh-history-toggle{position:static;grid-area:2/2;justify-self:start;margin:0;min-height:24px;font-size:11px;padding:0;align-self:start}
 body[data-wk-service].wkh-focus>.composer{grid-area:3/2;align-self:start;max-height:100%;padding-top:6px;padding-bottom:6px}
 body[data-wk-service].wkh-focus>.composer textarea{height:44px;min-height:44px;padding:2px 6px}
}
