/* V0.17.1 - Carousel-first citizen UX. Preserves the site's original oasis palette. */
:root{--carousel-radius:24px;--carousel-card:342px}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--ink);font-family:var(--font)}
button,input,textarea{font-family:var(--font)}
.wrap{width:min(1160px,calc(100% - 52px));margin-inline:auto}
.service-status{background:var(--deep);color:var(--deep-text);min-height:29px}
.site-head{background:color-mix(in srgb,var(--paper) 93%,transparent);backdrop-filter:blur(15px);border-bottom:1px solid var(--line)}
.site-head .head-inner{min-height:75px}
.logo{color:var(--ink)}
.desktop-nav{gap:7px}
.desktop-nav button{border-radius:11px}
button:focus-visible,.slide-window:focus-visible{outline:3px solid var(--accent)!important;outline-offset:4px}
.carousel-page{overflow:clip}
.carousel-stage{position:relative;isolation:isolate;background:var(--bg);padding:26px 0 43px;overflow:hidden}
.carousel-stage::before{content:'؟';position:absolute;font:900 480px/1 var(--font);inset-inline-end:-100px;top:-88px;color:var(--deep);opacity:.018;pointer-events:none;z-index:-1}
.stage-eyebrow{display:flex;align-items:center;gap:11px;color:var(--deep);font-size:12px;font-weight:800;letter-spacing:0;margin:9px 0 20px}
.stage-flower{width:34px;height:34px;background:var(--deep);border-radius:11px;color:var(--deep-text);font-size:22px;line-height:34px;display:inline-grid;place-items:center}
.stage-slash{color:var(--accent)}
.stage-intro{display:flex;align-items:end;justify-content:space-between;gap:32px;min-height:155px;margin-bottom:29px}
.stage-intro h1{font-size:clamp(48px,5.4vw,82px);line-height:1.27;letter-spacing:-2.1px;margin:0 0 12px;font-weight:900;color:var(--ink)}
.stage-intro h1 em{font-style:normal;color:var(--accent)}
.stage-description{font-size:15px;max-width:720px;color:var(--muted);line-height:1.9}
.stage-side{border-inline-start:1px solid var(--line);padding-inline-start:22px;min-width:185px;margin-bottom:5px}
.stage-step{color:var(--accent);font-size:12px;font-weight:900;direction:ltr;display:inline-block}
.stage-side p{color:var(--ink);font-size:13px;line-height:1.8;font-weight:650;margin-top:11px}
.stage-bar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:15px}
.stage-nav{display:flex;align-items:center;gap:9px}
.slide-arrow{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--line);background:var(--paper);color:var(--deep);font-size:23px;transition:transform .18s,background .18s,border-color .18s}
.slide-arrow:hover:not(:disabled){background:var(--deep);color:var(--deep-text);transform:translateY(-2px);border-color:var(--deep)}
.slide-arrow:disabled{opacity:.30;cursor:default}
.slide-indicator{direction:ltr;unicode-bidi:isolate;font:700 12px/1.3 ui-monospace,monospace;color:var(--muted);min-width:90px;margin-inline-start:9px}
.stage-find{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:13px;background:var(--paper);padding:0 13px;width:min(275px,36%);min-height:47px}
.stage-find input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:13px;line-height:1.4}
.stage-find:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.stage-find span{font-size:23px;color:var(--accent);transform:rotate(-30deg)}
.slide-window{max-width:100vw;margin:0;position:relative;outline-offset:-2px}
.candidate-carousel{display:flex;direction:rtl;gap:22px;align-items:stretch;overflow-x:auto;overflow-y:hidden;padding-block:18px 31px;padding-inline:max(14px,calc((100% - var(--carousel-card))/2));scroll-snap-type:x mandatory;scroll-padding-inline:calc((100% - var(--carousel-card))/2);scroll-behavior:smooth;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}
.candidate-carousel::-webkit-scrollbar{display:none}
.candidate-slide{flex:0 0 var(--carousel-card);height:466px;display:flex!important;flex-direction:column;text-align:right;align-items:stretch;justify-content:start;gap:0;scroll-snap-align:center;scroll-snap-stop:always;background:var(--paper);border:1px solid var(--line);color:var(--ink);border-radius:var(--carousel-radius);padding:13px;position:relative;box-shadow:0 3px 0 color-mix(in srgb,var(--deep) 6%,transparent);transition:transform .2s,border-color .2s,box-shadow .2s,opacity .2s;overflow:hidden;opacity:.67}
.candidate-slide.is-centered{opacity:1;border-color:color-mix(in srgb,var(--accent) 50%,var(--line));box-shadow:0 20px 40px color-mix(in srgb,var(--deep) 14%,transparent);transform:translateY(-4px)}
.candidate-slide:hover{opacity:1;transform:translateY(-5px);border-color:var(--accent)}
.candidate-slide:active{transform:translateY(-2px)}
.slide-overline{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:4px 7px 12px;color:var(--muted);font-size:11px;font-weight:850}
.slide-num{font:900 12px/1 ui-monospace,monospace;color:var(--accent)}
.slide-photo-frame{height:250px;flex:none;border-radius:15px;overflow:hidden;background:color-mix(in srgb,var(--deep) 13%,var(--paper));display:grid;place-items:center;position:relative}
.slide-photo-frame:after{content:'';position:absolute;inset:0;border:1px solid color-mix(in srgb,var(--deep) 12%,transparent);border-radius:inherit;pointer-events:none}
.slide-portrait-img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom}
.slide-initial{display:grid;place-items:center;width:100%;height:100%;font-size:clamp(76px,10vw,124px);font-weight:800;color:var(--deep);letter-spacing:-4px;position:relative;isolation:isolate}
.slide-initial:before{content:'؟';position:absolute;font-size:245px;opacity:.05;inset-inline-start:-20px;bottom:-45px;z-index:-1}
.slide-profile{display:flex;flex:1;min-height:0;flex-direction:column;padding:15px 8px 6px;gap:5px;text-align:right;min-width:0}
.slide-name{display:block;font-size:21px;line-height:1.38;font-weight:900;overflow-wrap:anywhere;color:var(--ink);letter-spacing:-.5px}
.slide-meta{font-size:11px;color:var(--muted);line-height:1.6;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:17px}
.slide-cta{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:14px;color:var(--deep);font-size:13px;font-weight:900;padding-top:9px;border-top:1px solid var(--line)}
.slide-cta::after{content:'↗';font:900 22px/1 var(--font);color:var(--accent)}
.slide-loading{width:100%;text-align:center;padding:120px 15px;color:var(--muted);font-size:15px}
.slide-empty{background:var(--paper);border:1px dashed var(--line);padding:22px;border-radius:16px;color:var(--muted);font-size:14px}
.stage-foot{display:flex;align-items:center;gap:11px;border-bottom:1px solid var(--line);padding:0 2px 24px;color:var(--muted);font-size:12px;font-weight:680}
.swipe-cue{font-size:22px;line-height:1;color:var(--accent)}
.stage-foot-mark{margin-inline-start:auto;color:var(--deep);font-size:11px}
.stage-general{display:flex;align-items:center;flex-wrap:wrap;gap:12px 19px;padding:19px 2px 0}
.stage-general button{border:0;color:var(--deep);background:none;text-decoration:underline;text-underline-offset:5px;padding:8px 0;font-size:13px;font-weight:900}
.stage-general button:hover{color:var(--accent)}
.stage-general>span{color:var(--muted);font-size:11px}
.stage-more{display:grid;grid-template-columns:minmax(0,.55fr) minmax(0,1fr);column-gap:50px;row-gap:18px;padding-block:35px 95px}
.stage-more-line{font-size:11px;letter-spacing:.2px;color:var(--accent);font-weight:900}
.stage-more h2{font-size:clamp(24px,2.4vw,34px);line-height:1.55;letter-spacing:-.6px;margin-top:7px}
.stage-links{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.stage-links button{min-height:116px;display:flex;gap:14px;align-items:center;text-align:right;padding:17px;border:1px solid var(--line);border-radius:19px;background:var(--paper);color:var(--ink);transition:border-color .16s,transform .16s}
.stage-links button:hover{border-color:var(--accent);transform:translateY(-2px)}
.shortcut-mark{flex:none;width:40px;height:40px;display:grid;place-items:center;background:var(--pale);color:var(--deep);border-radius:12px;font-size:22px}
.stage-links button>span:nth-child(2){display:grid;gap:5px;min-width:0;flex:1}
.stage-links strong{font-size:14px;font-weight:900}
.stage-links small{font-size:11px;color:var(--muted);line-height:1.7}
.shortcut-arr{color:var(--accent)}
.stage-disclosure{grid-column:2;color:var(--muted);font-size:12px;line-height:1.7}
/* The underlying, permission-checked question form becomes a full-screen conversation. */
#ask-panel.sheet{inset:0!important;max-width:100vw!important;width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;border-radius:0!important;border:0!important;padding:0!important;overflow:hidden}
#ask-panel .sheet-shell{width:100%;max-width:940px;height:100dvh!important;max-height:100dvh!important;overflow:hidden;display:flex;flex-direction:column;margin-inline:auto;background:var(--paper)}
#ask-panel .sheet-head{flex:none;align-items:center;min-height:82px;padding:13px 26px;background:var(--paper)}
#ask-panel .sheet-head h2{font-size:24px}
#ask-panel .sheet-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
#ask-panel.chat-active .sheet-head>div:first-child{display:none}
#ask-panel.chat-active .chat-peer{display:flex!important;align-items:center;gap:13px;min-width:0}
#ask-panel.chat-active .sheet-body{display:flex;flex-direction:column;overflow:hidden;padding:0}
.chat-peer{max-width:calc(100% - 55px)}
.peer-portrait{display:grid;place-items:center;width:52px;height:52px;flex:none;border-radius:17px;overflow:hidden;border:1px solid var(--line);background:var(--pale);color:var(--deep);font-size:17px;font-weight:900}
.peer-portrait img{width:100%;height:100%;object-fit:cover;object-position:center 22%}
.peer-info{display:flex;flex-direction:column;gap:3px;min-width:0}
.peer-info small{font-size:11px;color:var(--muted)}
.peer-info strong{font-size:19px;line-height:1.25;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.peer-offline{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:6px}
.peer-offline i{width:6px;height:6px;border-radius:50%;background:var(--accent);display:inline-block}
#ask-panel.chat-active #ask-editor{flex:1;min-height:0;display:flex;flex-direction:column}
#ask-panel.chat-active #ask-form{flex:1;min-height:0;display:flex;flex-direction:column}
#ask-panel.chat-active #ask-compose-step{flex:1;min-height:0;display:flex;flex-direction:column}
#ask-panel.chat-active .question-flow,
#ask-panel.chat-active #ask-draft-notice,
#ask-panel.chat-active #ask-editor>.privacy-small,
#ask-panel.chat-active #ask-editor>.under-link{display:none!important}
.chat-history{width:100%;flex:1;min-height:0;overflow-y:auto;padding:24px 31px;display:flex;flex-direction:column;align-items:flex-start;background:color-mix(in srgb,var(--bg) 72%,var(--paper))}
.chat-date{font-size:11px;color:var(--muted);align-self:center;margin-bottom:26px;padding:7px 15px;border:1px solid var(--line);background:var(--paper);border-radius:999px}
.chat-bubble{background:var(--paper);border:1px solid var(--line);border-radius:18px 18px 3px 18px;padding:21px;max-width:min(525px,100%);display:flex;align-items:flex-start;gap:13px;box-shadow:0 6px 16px color-mix(in srgb,var(--deep) 4%,transparent)}
.chat-bubble-icon{display:grid;place-items:center;width:37px;height:37px;flex:0 0 37px;background:var(--deep);color:var(--deep-text);border-radius:12px;font-size:21px}
.chat-bubble strong{font-size:16px;line-height:1.5;font-weight:900}
.chat-bubble p{font-size:14px;line-height:1.95;margin-top:9px;color:var(--ink)}
.chat-bubble p span{color:var(--deep);font-weight:850}
.chat-bubble small{display:block;margin-top:12px;color:var(--muted);font-size:11px;line-height:1.6}
.chat-editor{background:var(--paper);border-top:1px solid var(--line);padding:19px max(25px,env(safe-area-inset-right)) max(19px,env(safe-area-inset-bottom))}
.chat-editor-row{display:flex;align-items:end;gap:12px}
#ask-panel #ask-compose-step textarea{flex:1;min-width:0;min-height:82px;max-height:160px;border-radius:18px;background:var(--bg);font-size:16px;line-height:1.8;padding:14px 18px;resize:vertical}
#ask-panel #ask-compose-step button.chat-send{width:auto;flex:none;min-height:57px;padding:15px 17px;border-radius:15px;gap:9px;font-size:14px}
.chat-editor-foot{display:flex;gap:10px;justify-content:space-between;margin-top:7px;color:var(--muted)}
.chat-editor-foot small{font-size:10px}
.chat-consent-hint{font-size:11px;color:var(--muted);line-height:1.7;margin-top:12px}
#ask-panel #ask-error{margin-top:10px;margin-bottom:0}
#ask-panel #ask-success{max-width:610px;width:100%;margin:4vh auto 0;padding:25px 18px 50px}
#ask-panel #ask-success .code-card{overflow-wrap:anywhere}
#ask-panel #ask-picker-step{padding-bottom:18px}
#ask-panel .sheet-body:has(#ask-success:not([hidden])){display:block;overflow-y:auto;padding:22px 24px}
#ask-panel .sheet-body:has(#ask-picker-step:not([hidden])){overflow-y:auto;padding:20px 24px}
#ask-panel #ask-picker-step .recipient-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
#ask-panel #ask-picker-step .recipient-status{margin-top:10px}
#ask-panel .sheet-close{border-radius:50%;width:46px;height:46px}
/* Preserved consent dialog + track panel are intentionally not restyled. */
@media(max-width:800px){.stage-side{display:none}.stage-intro{min-height:0}}
@media(max-width:640px){
 :root{--carousel-card:min(305px,calc(100vw - 76px));--carousel-radius:20px}
 .wrap{width:calc(100% - 34px)}
 .site-head .head-inner{min-height:66px}
 .carousel-stage{padding:17px 0 29px}
 .stage-eyebrow{font-size:11px;margin:5px 0 11px;gap:8px}
 .stage-flower{width:29px;height:29px;font-size:18px;border-radius:9px}
 .stage-intro{margin-bottom:15px}
 .stage-intro h1{font-size:clamp(37px,9.7vw,49px);letter-spacing:-1.6px;line-height:1.25;margin-bottom:9px}
 .stage-description{font-size:13px;line-height:1.8}
 .stage-bar{gap:10px;margin-bottom:0}
 .stage-nav{gap:6px}
 .slide-arrow{width:43px;height:43px;font-size:20px}
 .slide-indicator{margin-inline-start:3px;min-width:51px;font-size:10px}
 .stage-find{min-height:42px;width:42%;padding:0 10px}
 .stage-find input{font-size:12px}
 .candidate-carousel{gap:13px;padding-block:15px 22px}
 .candidate-slide{height:370px;padding:10px;border-radius:20px}
 .slide-overline{font-size:10px;padding:5px 6px 9px}
 .slide-photo-frame{height:172px;border-radius:13px}
 .slide-initial{font-size:85px}
 .slide-profile{padding:12px 6px 5px}
 .slide-name{font-size:19px}
 .slide-meta{font-size:10px}
 .slide-cta{font-size:12px}
 .stage-foot{padding-bottom:16px;font-size:11px;gap:8px;flex-wrap:wrap}
 .stage-foot-mark{font-size:10px}
 .stage-general{padding-top:9px;gap:3px 13px}
 .stage-general button{font-size:12px}
 .stage-general>span{font-size:10px}
 .stage-more{display:block;padding-block:20px 39px}
 .stage-more h2{font-size:22px;margin:2px 0 14px}
 .stage-links{gap:8px}
 .stage-links button{min-height:102px;align-items:start;flex-direction:column;gap:5px;padding:13px;border-radius:14px}
 .stage-links .shortcut-mark{display:none}
 .stage-links strong{font-size:13px}
 .stage-links small{font-size:10px}
 .stage-links .shortcut-arr{align-self:end}
 .stage-disclosure{margin-top:12px;font-size:10px}
 #ask-panel .sheet-shell{max-width:none}
 #ask-panel .sheet-head{min-height:74px;padding:11px 15px}
 #ask-panel .peer-portrait{width:47px;height:47px;border-radius:14px}
 #ask-panel .peer-info strong{font-size:16px}
 #ask-panel .sheet-close{width:44px;height:44px}
 #ask-panel .chat-history{padding:22px 17px}
 #ask-panel .chat-bubble{padding:15px;gap:9px}
 #ask-panel .chat-bubble-icon{width:30px;height:30px;flex-basis:30px;font-size:17px}
 #ask-panel .chat-bubble strong{font-size:14px}
 #ask-panel .chat-bubble p{font-size:13px}
 #ask-panel .chat-editor{padding:13px 13px max(13px,env(safe-area-inset-bottom))}
 #ask-panel .chat-editor-row{gap:8px}
 #ask-panel #ask-compose-step textarea{min-height:76px;max-height:120px;padding:12px;font-size:16px;border-radius:14px}
 #ask-panel #ask-compose-step button.chat-send{min-height:52px;padding:12px 11px;font-size:12px;border-radius:12px;gap:3px}
 #ask-panel .chat-editor-foot small{font-size:9px}
 #ask-panel #ask-success{margin:0 auto;padding:20px 0 36px}
}
@media(max-width:360px){:root{--carousel-card:calc(100vw - 58px)}.slide-name{font-size:18px}.stage-foot-mark{margin-inline-start:0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.candidate-carousel{scroll-behavior:auto}.candidate-slide,.slide-arrow,.stage-links button{transition:none!important}}
.candidate-slide[hidden]{display:none!important}
#ask-panel.chat-active .chat-peer{flex:1;max-width:none}
.chat-change{margin-inline-start:12px;padding:7px 11px;min-height:40px;border:1px solid var(--line);border-radius:11px;background:var(--paper);color:var(--deep);font-size:12px;font-weight:800;white-space:nowrap}
.chat-change:hover{background:var(--pale)}
@media(max-width:640px){.chat-change{font-size:11px;padding:6px 8px;min-height:38px;margin-inline-start:3px}}
