/* Tolga Tasal v0.17.3 — Refined Two-Action Citizen UX.
   Palette stays intact; no extra candidate, API, authorization or database paths. */
:root, html[data-ui="refined"] {
  --bg:#f6f2e9; --paper:#fffdf9; --ink:#18372c; --deep:#18372c;
  --deep2:#18372c; --deep-text:#fffaf0; --accent:#ab7545;
  --line:#d9d9cb; --muted:#657269; --pale:#ecebe2;
  --carousel-card:348px; --carousel-radius:18px;
  --display:'Noto Sans Arabic','Noto Kufi Arabic',Tahoma,sans-serif;
  --font:'Noto Sans Arabic',Tahoma,sans-serif;
}
html[data-ui="refined"]{scroll-behavior:auto;}
html[data-ui="refined"] body{background:var(--bg);color:var(--ink);font-size:16px;}
html[data-ui="refined"] button,html[data-ui="refined"] input,html[data-ui="refined"] textarea{font-family:var(--font)}
html[data-ui="refined"] button:focus-visible,html[data-ui="refined"] a:focus-visible,html[data-ui="refined"] input:focus-visible,html[data-ui="refined"] textarea:focus-visible{outline:3px solid var(--accent)!important;outline-offset:3px}
/* A status indicator should not consume visual real estate in the normal state. */
html[data-ui="refined"] .service-status{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;min-height:0!important;padding:0!important}
html[data-ui="refined"] .service-status.is-error{position:relative!important;width:auto!important;height:auto!important;clip-path:none!important;min-height:32px!important;display:block!important;padding:6px 16px!important;text-align:center;background:#fff1df;color:#6b4229}
html[data-ui="refined"] .site-head{background:var(--bg);border-bottom:1px solid rgba(24,55,44,.09);box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;position:relative}
html[data-ui="refined"] .site-head .head-inner{width:min(1160px,calc(100% - 48px));min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px}
html[data-ui="refined"] .logo{font:800 25px/1.4 var(--display);letter-spacing:-.04em;color:var(--deep)}
html[data-ui="refined"] .quiet-nav{margin:0;display:flex;align-items:center;gap:23px}
html[data-ui="refined"] .quiet-nav button{background:transparent;border:0;color:#465e50;min-height:44px;padding:9px 0;font-size:13px;font-weight:650;transition:color .15s}
html[data-ui="refined"] .quiet-nav button:hover{color:var(--accent)}
/* The stage is one calm surface, not a stack of miniature panels. */
html[data-ui="refined"] .carousel-stage{background:#18372c;min-height:0;padding:38px 0 27px;overflow:hidden;color:#f6f2e9}
html[data-ui="refined"] .carousel-stage:before,html[data-ui="refined"] .carousel-stage:after{content:none!important}
html[data-ui="refined"] .carousel-stage>.wrap{
  width:min(1160px,calc(100% - 48px));min-height:0;
  display:grid;grid-template-columns:minmax(250px,.8fr) minmax(0,1.2fr);
  grid-template-rows:auto 1fr auto auto;align-items:center;gap:0 40px
}
html[data-ui="refined"] .stage-intro{grid-column:1;grid-row:1/3;min-height:0;padding:0 0 14px;margin:0;align-self:center;display:block}
html[data-ui="refined"] .stage-intro h1{font:750 clamp(35px,4.3vw,62px)/1.36 var(--display);letter-spacing:-.05em;color:#fffaf0;max-width:500px;margin:0 0 15px}
html[data-ui="refined"] .stage-intro h1 em{color:inherit;display:inline}
html[data-ui="refined"] .stage-description{font:400 clamp(14px,1.35vw,16px)/1.9 var(--font);color:#cbd8cd;max-width:350px}
html[data-ui="refined"] .slide-window{grid-column:2;grid-row:1/5;margin:0;min-width:0;overflow:visible;align-self:center}
html[data-ui="refined"] .slide-window:after{display:none!important}
html[data-ui="refined"] .candidate-carousel{
 --carousel-card:clamp(282px,27vw,348px);min-height:0;
 display:flex;align-items:center;gap:16px;padding:20px max(22px,calc((100% - var(--carousel-card))/2)) 23px;
 scroll-snap-type:x mandatory;scroll-behavior:smooth;scroll-padding-inline:calc((100% - var(--carousel-card))/2);
 overscroll-behavior-x:contain;overflow-x:auto;overflow-y:hidden
}
html[data-ui="refined"] .candidate-slide{
 display:flex;flex-direction:column;flex:0 0 var(--carousel-card);height:445px;
 padding:0;border:0;border-radius:19px;overflow:hidden;background:var(--bg);color:var(--deep);
 box-shadow:0 13px 40px rgba(4,24,14,.15);
 opacity:.52;filter:none;transform:translateY(7px) scale(.955);
 transition:transform .29s ease,opacity .29s ease,box-shadow .29s ease;
 scroll-snap-align:center;text-align:right
}
html[data-ui="refined"] .candidate-slide.is-before,html[data-ui="refined"] .candidate-slide.is-after{transform:translateY(7px) scale(.955)}
html[data-ui="refined"] .candidate-slide.is-centered,html[data-ui="refined"] .candidate-slide.is-centered:hover{transform:translateY(0) scale(1);opacity:1;filter:none;background:var(--bg);border:0;box-shadow:0 21px 43px rgba(4,24,14,.22)}
html[data-ui="refined"] .candidate-slide:hover:not(.is-centered){transform:translateY(2px) scale(.965);opacity:.8}
html[data-ui="refined"] .slide-overline{display:none!important}
html[data-ui="refined"] .slide-photo-frame{height:342px;flex:1 1 auto;min-height:0;border-radius:0;background:#e0e5dd;display:grid;place-items:center;overflow:hidden}
html[data-ui="refined"] .slide-photo-frame:before,html[data-ui="refined"] .slide-photo-frame:after{display:none!important}
html[data-ui="refined"] .slide-portrait-img{display:block;height:100%;width:100%;object-fit:contain;object-position:center bottom;filter:none}
html[data-ui="refined"] .slide-initial{font:650 clamp(78px,9vw,132px)/1 var(--display);color:#3b5a48;letter-spacing:-.08em}
html[data-ui="refined"] .slide-profile{flex:none;display:flex;flex-direction:column;gap:5px;padding:17px 20px 19px;min-height:103px;background:var(--bg)}
html[data-ui="refined"] .slide-name{font:750 clamp(19px,1.7vw,22px)/1.45 var(--display);color:var(--deep);letter-spacing:-.02em}
html[data-ui="refined"] .slide-meta{font:450 12px/1.5 var(--font);color:#69766b;min-height:0;max-height:38px;overflow:hidden}
html[data-ui="refined"] .slide-cta{display:none!important}
html[data-ui="refined"] .stage-bar{grid-column:1;grid-row:3;padding:0;display:flex;flex-direction:column;align-items:start;gap:16px;margin:16px 0 0}
html[data-ui="refined"] .stage-nav{order:2;display:flex;align-items:center;gap:13px}
html[data-ui="refined"] .slide-arrow{width:44px;height:44px;border:1px solid rgba(255,250,240,.28);border-radius:50%;color:#fff8ee;font-size:21px;font-weight:400;background:transparent;box-shadow:none;transition:background .18s}
html[data-ui="refined"] .slide-arrow:hover:not(:disabled){background:#ffffff18;color:#fff;border-color:#ffffff5d;transform:none}
html[data-ui="refined"] .slide-indicator{min-width:56px;color:#d9e0d5;font:500 11px/1.3 ui-monospace,monospace;letter-spacing:.04em;direction:ltr;margin:0;text-align:center}
html[data-ui="refined"] .stage-find{order:1;display:flex;align-items:center;gap:9px;width:min(320px,100%);height:49px;min-height:49px;background:transparent;border:0;border-bottom:1px solid #ffffff58;border-radius:0;color:#f8f3e8;padding:0 2px;box-shadow:none}
html[data-ui="refined"] .stage-find input{width:100%;background:transparent;color:#fff8ec;font-size:14px;min-height:46px}
html[data-ui="refined"] .stage-find input::placeholder{color:#ccdad0}
html[data-ui="refined"] .stage-find span{color:#d8dccf;font-size:25px}
html[data-ui="refined"] .stage-foot{grid-column:2;grid-row:5;justify-content:center;color:#cad8cd;font-size:11px;margin:1px 0 0;padding:0 0 12px;border:0}
html[data-ui="refined"] .stage-general{grid-column:1;grid-row:4;display:flex;padding:18px 0 5px}
html[data-ui="refined"] .stage-general button{color:#e6ceaa;border:0;background:none;font-size:13px;font-weight:500;min-height:44px;padding:5px 0}
html[data-ui="refined"] .stage-general button:hover{text-decoration:underline}
html[data-ui="refined"] .slide-empty{grid-column:1/-1;background:transparent;border:0;color:#fff;max-width:480px}
html[data-ui="refined"] .slide-loading{color:#eef1e9;padding:105px 10px}
html[data-ui="refined"] .stage-more{display:flex;align-items:center;justify-content:center;gap:14px;min-height:78px;padding:14px 0;margin:0 auto;background:transparent;color:#677668}
html[data-ui="refined"] .stage-more button{border:0;background:none;font-size:13px;color:#385446;min-height:44px;padding:8px 4px;font-weight:600}
html[data-ui="refined"] .stage-more button:hover{text-decoration:underline}
html[data-ui="refined"] .site-foot{padding:25px 0;border-top:1px solid #dadccd;background:var(--bg)}
html[data-ui="refined"] .site-foot .foot-inner{width:min(1160px,calc(100% - 48px));display:flex;align-items:start;gap:28px;justify-content:space-between}
html[data-ui="refined"] .site-foot strong{font-size:13px}
html[data-ui="refined"] .site-foot span{font-size:12px;color:#6a756d}
html[data-ui="refined"] .site-foot .foot-links{display:flex;flex-wrap:wrap;gap:12px}
html[data-ui="refined"] .site-foot .foot-links button{font-size:12px;min-height:44px;background:transparent;border:0;color:#516153;padding:6px}
html[data-ui="refined"] .site-foot .install-button[hidden]{display:none!important}
html[data-ui="refined"] .mobile-tabs,html[data-ui="refined"] .living-start,html[data-ui="refined"] .demo-tweaks{display:none!important}
/* A true conversation shell, not multiple nested cards. */
html[data-ui="refined"] #ask-panel.sheet{background:var(--bg)}
html[data-ui="refined"] #ask-panel .sheet-shell{background:var(--bg);animation:refined-enter .28s ease-out both;max-width:900px}
html[data-ui="refined"] #ask-panel .sheet-head{background:var(--bg);border-bottom:1px solid #daddd2;min-height:76px;padding:13px 22px;color:var(--deep)}
html[data-ui="refined"] #ask-panel.chat-active .sheet-head:after{display:none!important}
html[data-ui="refined"] #ask-panel .sheet-head h2{font-size:19px;font-weight:720}
html[data-ui="refined"] #ask-panel .chat-peer{gap:12px;max-width:calc(100% - 60px)}
html[data-ui="refined"] #ask-panel .peer-portrait{width:45px;height:45px;border-radius:50%;border:1px solid #d2dacc;background:#e4e9e1;font-size:14px}
html[data-ui="refined"] #ask-panel .peer-info{gap:1px}
html[data-ui="refined"] #ask-panel .peer-info small{font-size:11px;color:#758177}
html[data-ui="refined"] #ask-panel .peer-info strong{font-size:16px;font-weight:750;color:var(--deep)}
html[data-ui="refined"] #ask-panel .peer-offline{font-size:11px;color:#69766d}
html[data-ui="refined"] #ask-panel .peer-offline i{background:#aab6a9}
html[data-ui="refined"] #ask-panel .chat-change{min-height:44px;background:transparent;border:0;color:#536c5c;font-size:12px;padding:5px 0;font-weight:600}
html[data-ui="refined"] #ask-panel .sheet-close{background:transparent;border:1px solid #daddd2;color:#263d30;width:44px;height:44px;border-radius:50%;font-weight:400}
html[data-ui="refined"] #ask-panel .chat-history{background:var(--bg);padding:18px 24px;justify-content:flex-start;align-items:stretch;flex:1;min-height:38px}
html[data-ui="refined"] #ask-panel .chat-history:before{display:none!important;content:none!important}
html[data-ui="refined"] #ask-panel .chat-guidance{width:100%;max-width:630px;margin:0 auto;color:#53685a;font-size:15px;line-height:1.9;text-align:right;padding:10px 0;border:0;background:none;box-shadow:none}
html[data-ui="refined"] #ask-panel .chat-guidance strong{color:#18372c;font-weight:750}
html[data-ui="refined"] #ask-panel .chat-editor{width:100%;background:var(--paper);border-top:1px solid #dadcd3;padding:22px max(24px,env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom));box-shadow:none}
html[data-ui="refined"] #ask-panel .chat-input-label{display:block;max-width:760px;margin:0 auto 9px;font-weight:750;color:#203e2c;font-size:15px}
html[data-ui="refined"] #ask-panel #ask-compose-step textarea{display:block;max-width:760px;width:100%;min-height:118px;max-height:250px;margin:0 auto;padding:13px 16px;background:#f6f2e9;border:1px solid #cfd7cb;border-radius:13px;font:450 16px/1.9 var(--font);resize:vertical;color:#18372c}
html[data-ui="refined"] #ask-panel #ask-compose-step textarea::placeholder{color:#76877a}
html[data-ui="refined"] #ask-panel .chat-editor-foot{max-width:760px;margin:8px auto 0;color:#758177}
html[data-ui="refined"] #ask-panel .chat-editor-foot small{font-size:11px}
html[data-ui="refined"] #ask-panel .quick-send-actions{max-width:760px;margin:17px auto 0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
html[data-ui="refined"] #ask-panel .quick-send-actions button{width:100%;min-height:52px;border-radius:13px;min-width:0;padding:9px 12px;font-size:13px;font-weight:710;line-height:1.6;box-shadow:none;display:flex;justify-content:center;align-items:center;gap:8px}
html[data-ui="refined"] #ask-panel .quick-send-actions .chat-send{background:#18372c;color:#fffaf0;border:1px solid #18372c}
html[data-ui="refined"] #ask-panel .quick-send-actions .chat-send-auto{background:transparent;color:#18372c;border:1px solid #a6b2a5}
html[data-ui="refined"] #ask-panel .quick-send-actions button:hover:not(:disabled){filter:brightness(.97)}
html[data-ui="refined"] #ask-panel .chat-consent-hint{max-width:760px;margin:10px auto 0;color:#647268;font-size:11px;line-height:1.8}
html[data-ui="refined"] #ask-panel #ask-error{max-width:760px;margin:8px auto;color:#9b321c}
/* Confirmation is one clear hierarchy: receipt, code, then a single optional action. */
html[data-ui="refined"] #ask-panel #ask-success{padding:28px 18px 42px;margin:1.5vh auto 0;max-width:630px;text-align:center}
html[data-ui="refined"] #ask-panel #ask-success:before{content:none!important}
html[data-ui="refined"] #ask-panel #ask-success .success-mark{width:58px;height:58px;display:grid;place-items:center;border-radius:50%;margin:0 auto 15px;background:#e1eae0;color:#18372c;font-size:29px;box-shadow:none}
html[data-ui="refined"] #ask-panel #ask-success h3{font:760 clamp(26px,3.2vw,37px)/1.4 var(--display);color:var(--deep);margin:0 0 10px}
html[data-ui="refined"] #ask-panel #ask-success p{color:#5d7063;line-height:1.7;font-size:13px;margin:8px auto}
html[data-ui="refined"] #ask-panel #ask-success .code-card{background:transparent;border:1px solid #c8d2c6;border-radius:14px;padding:20px 10px;margin:21px 0 16px;box-shadow:none;color:var(--deep)}
html[data-ui="refined"] #ask-panel #ask-success .code-card span{color:#5f7263;font-size:12px}
html[data-ui="refined"] #ask-panel #ask-success .code-card strong{color:var(--deep);font-weight:740;letter-spacing:.08em}
html[data-ui="refined"] #ask-panel #ask-success .success-buttons{display:flex;gap:10px;justify-content:center}
html[data-ui="refined"] #ask-panel #ask-success .success-buttons button{min-height:48px;border-radius:12px;box-shadow:none;font-size:14px}
html[data-ui="refined"] #ask-panel #ask-success .fill-button{background:var(--deep)}
@keyframes refined-enter{from{opacity:.85;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){
 html[data-ui="refined"] .carousel-stage>.wrap{grid-template-columns:minmax(0,1fr);width:min(680px,calc(100% - 32px));gap:0}
 html[data-ui="refined"] .stage-intro{grid-column:1;grid-row:1;padding:0 6px 16px;min-height:0;align-self:start}
 html[data-ui="refined"] .stage-intro h1{font-size:clamp(30px,5vw,44px);margin:0 0 5px}
 html[data-ui="refined"] .slide-window{grid-column:1;grid-row:2}
 html[data-ui="refined"] .stage-bar{grid-column:1;grid-row:3;flex-direction:row;justify-content:space-between;align-items:center;margin:0;padding:5px 6px}
 html[data-ui="refined"] .stage-find{order:2;width:min(260px,48%)}
 html[data-ui="refined"] .stage-nav{order:1}
 html[data-ui="refined"] .stage-foot{grid-column:1;grid-row:4;padding:2px 10px 4px;margin:0;text-align:center}
 html[data-ui="refined"] .stage-general{grid-column:1;grid-row:5;padding:4px 9px 0}
 html[data-ui="refined"] .candidate-carousel{--carousel-card:min(336px,calc(100vw - 92px));padding-block:10px 14px;gap:12px}
 html[data-ui="refined"] .candidate-slide{height:420px}
}
@media(max-width:640px){
 html[data-ui="refined"] .site-head .head-inner{width:calc(100% - 36px);min-height:59px}
 html[data-ui="refined"] .logo{font-size:23px}
 html[data-ui="refined"] .quiet-nav{gap:8px}
 html[data-ui="refined"] .quiet-nav button{font-size:11px;min-height:44px;padding:6px 4px}
 html[data-ui="refined"] .quiet-nav button:last-child{display:none}
 html[data-ui="refined"] .carousel-stage{padding:23px 0 20px}
 html[data-ui="refined"] .carousel-stage>.wrap{width:100%}
 html[data-ui="refined"] .stage-intro{padding:0 24px 12px}
 html[data-ui="refined"] .stage-intro h1{font-size:clamp(29px,7.4vw,38px);line-height:1.4;letter-spacing:-.045em}
 html[data-ui="refined"] .stage-description{font-size:13px;line-height:1.7}
 html[data-ui="refined"] .candidate-carousel{--carousel-card:calc(100vw - 90px);padding:10px max(22px,calc((100% - var(--carousel-card))/2)) 13px;gap:12px}
 html[data-ui="refined"] .candidate-slide{height:min(414px,51vh);min-height:320px;border-radius:16px}
 html[data-ui="refined"] .slide-photo-frame{height:auto;flex:1 1 auto}
 html[data-ui="refined"] .slide-profile{min-height:88px;padding:12px 16px 15px;gap:3px}
 html[data-ui="refined"] .slide-name{font-size:18px;line-height:1.35}
 html[data-ui="refined"] .slide-meta{font-size:11px;line-height:1.6;max-height:34px}
 html[data-ui="refined"] .stage-bar{padding:7px 20px 0;gap:6px}
 html[data-ui="refined"] .stage-nav{gap:7px}
 html[data-ui="refined"] .slide-arrow{width:40px;height:40px;font-size:20px}
 html[data-ui="refined"] .slide-indicator{min-width:49px;font-size:10px}
 html[data-ui="refined"] .stage-find{width:43%;height:44px;min-height:44px;flex:0 0 43%}
 html[data-ui="refined"] .stage-find input{font-size:12px;min-height:40px}
 html[data-ui="refined"] .stage-foot{font-size:10px;padding-top:6px;color:#c3d5c9}
 html[data-ui="refined"] .stage-general{padding:4px 23px 0}
 html[data-ui="refined"] .stage-general button{font-size:12px}
 html[data-ui="refined"] .stage-more{min-height:65px;padding:9px 5px;gap:6px}
 html[data-ui="refined"] .stage-more button{font-size:11px}
 html[data-ui="refined"] .site-foot{padding:18px 0}
 html[data-ui="refined"] .site-foot .foot-inner{width:calc(100% - 36px);display:block}
 html[data-ui="refined"] .site-foot .foot-links{margin-top:10px}
 html[data-ui="refined"] #ask-panel .sheet-head{min-height:70px;padding:10px 17px}
 html[data-ui="refined"] #ask-panel .peer-portrait{width:42px;height:42px}
 html[data-ui="refined"] #ask-panel .peer-info strong{font-size:15px}
 html[data-ui="refined"] #ask-panel .peer-info small{font-size:10px}
 html[data-ui="refined"] #ask-panel .chat-history{padding:17px 22px 10px;flex:1}
 html[data-ui="refined"] #ask-panel .chat-guidance{font-size:14px;line-height:1.8}
 html[data-ui="refined"] #ask-panel .chat-editor{padding:17px 16px max(15px,env(safe-area-inset-bottom))}
 html[data-ui="refined"] #ask-panel #ask-compose-step textarea{min-height:118px;font-size:16px}
 html[data-ui="refined"] #ask-panel .quick-send-actions{grid-template-columns:1fr;gap:9px;margin-top:13px}
 html[data-ui="refined"] #ask-panel .quick-send-actions button{min-height:50px;font-size:13px}
 html[data-ui="refined"] #ask-panel .chat-consent-hint{font-size:11px;line-height:1.65}
 html[data-ui="refined"] #ask-panel .chat-editor-foot small{font-size:10px}
 html[data-ui="refined"] #ask-panel #ask-success{padding:20px 6px 36px}
}
@media(max-width:360px){
 html[data-ui="refined"] .candidate-slide{min-height:310px}
 html[data-ui="refined"] .stage-intro h1{font-size:27px}
 html[data-ui="refined"] .stage-nav{gap:3px}
 html[data-ui="refined"] .stage-find{flex-basis:40%;width:40%}
 html[data-ui="refined"] #ask-panel .chat-history{padding-top:9px}
}
@media(prefers-reduced-motion:reduce){
 html[data-ui="refined"] .candidate-slide,html[data-ui="refined"] .slide-arrow,html[data-ui="refined"] #ask-panel .sheet-shell{transition:none!important;animation:none!important;transform:none!important}
}

html[data-ui="refined"] #ask-panel .sheet-head:before{display:none!important;content:none!important}

@media(max-width:640px){
 html[data-ui="refined"] .quiet-nav{gap:5px}
 html[data-ui="refined"] .quiet-nav button:last-child{display:inline-flex;align-items:center}
 html[data-ui="refined"] .quiet-nav button{font-size:10px;padding-inline:3px}
}
html[data-ui="refined"] .site-foot .foot-inner strong{color:#18372c!important}
html[data-ui="refined"] .site-foot .foot-inner span{color:#607366!important}
