/* V0.17.4 — Three doors, one purpose, no visual clutter.
   Reuses the established Tolga brand and current back-end/UI contracts. */
html[data-ui="refined"] .portal-main{background:#f6f2e9;min-height:calc(100dvh - 72px);overflow:hidden}
html[data-ui="refined"] #portal-gateway[hidden],html[data-ui="refined"] #portal-candidate-view[hidden]{display:none!important}
html[data-ui="refined"] .portal-site-header{background:#f6f2e9}
html[data-ui="refined"] .portal-site-header .head-inner{min-height:70px}
html[data-ui="refined"] .portal-head-note{font-size:12px;font-weight:500;color:#758276}
html[data-ui="refined"] .portal-gateway{width:min(790px,calc(100% - 40px));margin:0 auto;min-height:calc(100dvh - 74px);display:flex;flex-direction:column;justify-content:center;padding:34px 0 16px;animation:portal-reveal .44s cubic-bezier(.16,.88,.27,1) both;}
html[data-ui="refined"] .portal-intro{text-align:center;padding:0 10px 30px;}
html[data-ui="refined"] .portal-eyebrow{display:block;font-size:12px;font-weight:600;color:#8a6a50;letter-spacing:.01em;margin-bottom:7px;}
html[data-ui="refined"] .portal-intro h1{font:740 clamp(32px,5vw,53px)/1.42 var(--display);letter-spacing:-.045em;color:#18372c;margin:0;}
html[data-ui="refined"] .portal-intro p{font-size:15px;font-weight:400;color:#657367;margin-top:6px;}
html[data-ui="refined"] .portal-doorway{background:#18372c;border-radius:26px;padding:9px 23px;box-shadow:0 20px 56px rgba(24,55,44,.14);}
html[data-ui="refined"] .portal-option{border:0;border-radius:0;padding:21px 13px;min-height:118px;background:transparent;color:#fffaf0;display:grid;grid-template-columns:62px minmax(0,1fr) 40px;align-items:center;gap:18px;width:100%;text-align:right;position:relative;isolation:isolate;transition:transform .2s cubic-bezier(.22,.85,.35,1),background-color .2s ease;}
html[data-ui="refined"] .portal-option+.portal-option{border-top:1px solid rgba(255,250,239,.20);}
html[data-ui="refined"] .portal-option:before{content:"";position:absolute;inset:7px 0;border-radius:15px;background:rgba(255,255,255,.055);opacity:0;transition:opacity .2s ease;z-index:-1;}
html[data-ui="refined"] .portal-option:hover:before,html[data-ui="refined"] .portal-option:focus-visible:before{opacity:1;}
html[data-ui="refined"] .portal-option:active{transform:scale(.988);}
html[data-ui="refined"] .portal-symbol{display:grid;place-items:center;width:57px;height:57px;min-width:57px;color:#e2dfcf;border:1px solid rgba(235,236,222,.30);border-radius:18px;}
html[data-ui="refined"] .portal-symbol svg{width:27px;height:27px;display:block;}
html[data-ui="refined"] .portal-option-copy{display:flex;flex-direction:column;gap:6px;min-width:0;}
html[data-ui="refined"] .portal-option-copy strong{font:720 clamp(19px,2.6vw,25px)/1.4 var(--display);color:#fffaf0;}
html[data-ui="refined"] .portal-option-copy small{font:400 13px/1.7 var(--font);color:#c8d5cc;}
html[data-ui="refined"] .portal-option-arrow{color:#e3be92;font-size:24px;font-weight:400;text-align:center;transition:transform .23s ease;}
html[data-ui="refined"] .portal-option:hover .portal-option-arrow,html[data-ui="refined"] .portal-option:focus-visible .portal-option-arrow{transform:translateX(-5px);}
html[data-ui="refined"] .portal-option:focus-visible{outline:3px solid #e3be92!important;outline-offset:-3px;border-radius:16px;}
html[data-ui="refined"] .portal-microfooter{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;text-align:center;color:#67756a;font-size:11px;line-height:1.8;padding:21px 5px 4px;}
html[data-ui="refined"] .portal-microfooter button{font-size:11px;color:#18372c;border:0;border-bottom:1px solid #9cab9f;background:transparent;padding:1px 0;min-height:34px;}
html[data-ui="refined"] .portal-gateway.portal-leaving{opacity:0;transform:translateY(-17px) scale(.985);filter:blur(4px);transition:opacity .23s ease,transform .23s ease,filter .23s ease;animation:none;pointer-events:none;}
html[data-ui="refined"] .portal-candidate-view{background:#18372c;min-height:calc(100dvh - 70px);animation:portal-reveal .42s cubic-bezier(.16,.88,.27,1) both;}
html[data-ui="refined"] .portal-route-heading{width:min(1160px,calc(100% - 48px));margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 0 0;color:#d5e0d8;}
html[data-ui="refined"] .portal-back{background:transparent;border:1px solid #ffffff50;color:#fffaf0;border-radius:999px;padding:10px 15px;min-height:44px;font-size:13px;font-weight:600;display:flex;align-items:center;gap:12px;}
html[data-ui="refined"] .portal-back:hover{background:rgba(255,255,255,.10);}
html[data-ui="refined"] .portal-route-caption{color:#d1dace;font-size:12px;}
html[data-ui="refined"] .portal-candidate-view .carousel-stage{padding-top:20px;}
html[data-ui="refined"] .site-foot{display:none!important;}
html[data-ui="refined"] #track-panel.sheet,html[data-ui="refined"] #dialogue-panel.sheet{border-radius:20px;box-shadow:0 25px 75px rgba(13,34,21,.23);}
html[data-ui="refined"] #track-panel .sheet-head,html[data-ui="refined"] #dialogue-panel .sheet-head{border-bottom:1px solid #e5e6dd;}
html[data-ui="refined"] #track-panel[open] .sheet-shell,html[data-ui="refined"] #dialogue-panel[open] .sheet-shell{animation:portal-sheet-in .27s cubic-bezier(.2,.87,.28,1) both;}
html[data-ui="refined"] #track-panel::backdrop,html[data-ui="refined"] #dialogue-panel::backdrop{background:rgba(12,30,20,.49);backdrop-filter:blur(5px);}
html[data-ui="refined"] .preview-track-hint{font-size:13px;line-height:1.8;color:#8a5b36;margin:4px 0 13px;}
@keyframes portal-reveal{from{opacity:0;transform:translateY(13px)}to{opacity:1;transform:translateY(0)}}
@keyframes portal-sheet-in{from{opacity:.5;transform:translateY(14px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:650px){
 html[data-ui="refined"] .portal-head-note{font-size:10px;letter-spacing:0;}
 html[data-ui="refined"] .portal-site-header .head-inner{min-height:61px;}
 html[data-ui="refined"] .portal-main{min-height:calc(100dvh - 61px)}
 html[data-ui="refined"] .portal-gateway{min-height:calc(100dvh - 61px);width:calc(100% - 36px);padding:24px 0 max(18px,env(safe-area-inset-bottom));}
 html[data-ui="refined"] .portal-intro{padding-bottom:22px;}
 html[data-ui="refined"] .portal-intro h1{font-size:clamp(30px,8vw,39px);}
 html[data-ui="refined"] .portal-intro p{font-size:13px;margin-top:5px;}
 html[data-ui="refined"] .portal-doorway{border-radius:22px;padding:8px 12px;box-shadow:0 17px 38px #18372c1a;}
 html[data-ui="refined"] .portal-option{grid-template-columns:49px minmax(0,1fr) 24px;gap:13px;min-height:108px;padding:16px 6px;}
 html[data-ui="refined"] .portal-symbol{width:48px;height:48px;min-width:48px;border-radius:15px;}
 html[data-ui="refined"] .portal-symbol svg{width:24px;height:24px;}
 html[data-ui="refined"] .portal-option-copy strong{font-size:20px;}
 html[data-ui="refined"] .portal-option-copy small{font-size:12px;line-height:1.5;}
 html[data-ui="refined"] .portal-microfooter{font-size:10px;padding-top:20px;}
 html[data-ui="refined"] .portal-route-heading{width:calc(100% - 36px);padding-top:10px;}
 html[data-ui="refined"] .portal-route-caption{font-size:11px;}
 html[data-ui="refined"] .portal-candidate-view .carousel-stage{padding-top:16px;}
}
@media(max-width:360px){
 html[data-ui="refined"] .portal-gateway{width:calc(100% - 28px);}
 html[data-ui="refined"] .portal-doorway{padding-inline:9px;}
 html[data-ui="refined"] .portal-option{gap:9px;grid-template-columns:45px minmax(0,1fr) 20px;}
 html[data-ui="refined"] .portal-symbol{width:43px;height:43px;min-width:43px;}
 html[data-ui="refined"] .portal-option-copy strong{font-size:18px;}
 html[data-ui="refined"] .portal-option-copy small{font-size:11px;}
}
@media(prefers-reduced-motion:reduce){
 html[data-ui="refined"] .portal-gateway,html[data-ui="refined"] .portal-gateway.portal-leaving,html[data-ui="refined"] .portal-candidate-view,html[data-ui="refined"] .portal-option,html[data-ui="refined"] .portal-option-arrow,html[data-ui="refined"] #track-panel[open] .sheet-shell,html[data-ui="refined"] #dialogue-panel[open] .sheet-shell{animation:none!important;transition:none!important;transform:none!important;filter:none!important;}
}
