/* Shared admin enhancements: KPI icons, data tables and guided Face ID. */
.kpi{--kpi-color:var(--txt-2);--kpi-soft:var(--panel-2);border-radius:16px!important;
  padding:15px 17px 16px!important;transition:transform .18s,border-color .18s,box-shadow .18s}
.kpi:hover{transform:translateY(-2px);border-color:var(--line-2);box-shadow:0 12px 28px rgba(0,0,0,.12)}
.kpi .kpi-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.kpi .kpi-top .lab{margin:0}
.kpi .kpi-icon{width:40px;height:40px;flex:0 0 40px;border-radius:12px;display:grid;place-items:center;
  background:var(--kpi-soft);color:var(--kpi-color);border:1px solid color-mix(in srgb,var(--kpi-color) 18%,transparent)}
.kpi .kpi-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.kpi .val{color:var(--kpi-color)!important}
.kpi.b-accent{--kpi-color:var(--accent);--kpi-soft:var(--accent-soft)}
.kpi.b-ok{--kpi-color:var(--ok);--kpi-soft:var(--ok-soft)}
.kpi.b-warn{--kpi-color:var(--warn);--kpi-soft:var(--warn-soft)}
.kpi.b-bad{--kpi-color:var(--bad);--kpi-soft:var(--bad-soft)}

.smart-table{min-width:0}
.table-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 13px}
.table-search{position:relative;flex:1;min-width:210px;max-width:390px}
.table-search input{width:100%;padding-inline-start:38px}
.table-search svg{position:absolute;inset-inline-start:12px;top:50%;transform:translateY(-50%);width:17px;height:17px;
  fill:none;stroke:var(--txt-3);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.table-size{display:flex;align-items:center;gap:8px;color:var(--txt-2);font-size:12.5px;white-space:nowrap}
.table-size select{width:78px;min-width:78px}
.smart-pager{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;padding-top:14px}
.smart-pager .info{font-size:13px;color:var(--txt-2);min-width:190px;text-align:center}
.smart-pager button{min-width:76px}
.table-no-results{display:none;text-align:center;color:var(--txt-2);padding:26px 10px 12px;font-size:13px}
.table-no-results.show{display:block}
.smart-generated-wrap{margin:0!important;padding:0!important}
th.smart-sortable{cursor:pointer;padding-inline-end:27px!important;position:relative}
th.smart-sortable::after{content:'⇅';position:absolute;inset-inline-end:9px;color:var(--txt-3);font-size:11px;opacity:.65}
th.smart-sortable.sort-asc::after{content:'▲';color:var(--accent);opacity:1}
th.smart-sortable.sort-desc::after{content:'▼';color:var(--accent);opacity:1}
.native-size{margin-inline-end:2px}

.quality-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:11px}
.quality-grid>div{display:flex;align-items:flex-start;gap:10px;background:var(--panel-2);border:1px solid var(--line);border-radius:12px;padding:12px 13px}
.quality-grid svg{width:19px;height:19px;flex:none;color:var(--accent);fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.quality-grid b{display:block;font-size:13px;margin-bottom:2px}.quality-grid span{display:block;font-size:11.5px;color:var(--txt-2);line-height:1.5}
.enrol-guide-card{padding:0!important;overflow:hidden}
.enrol-guide-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:23px 24px 20px;
  border-bottom:1px solid var(--line);background:linear-gradient(135deg,color-mix(in srgb,var(--accent-soft) 68%,var(--panel)),var(--panel) 58%)}
.enrol-guide-copy{max-width:720px}.enrol-guide-kicker{display:flex;align-items:center;gap:7px;color:var(--accent);font-size:11.5px;font-weight:700;margin-bottom:7px}
.enrol-guide-kicker i{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 5px var(--accent-soft)}
.enrol-guide-copy h2{font-size:21px;margin:0 0 4px}.enrol-guide-copy p{font-size:13px;line-height:1.75;color:var(--txt-2);margin:0}
.enrol-guide-badges{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end;max-width:350px}
.enrol-guide-badges span{display:inline-flex;align-items:center;gap:5px;padding:6px 10px;border:1px solid var(--line);border-radius:999px;
  background:color-mix(in srgb,var(--panel) 82%,transparent);color:var(--txt-2);font-size:11.5px;white-space:nowrap}
.enrol-guide-badges b{color:var(--accent);font-size:11.5px}.enrol-examples{padding:18px 20px 0}.enrol-examples .face-example-visual{height:132px}
.enrol-guide-lower{display:grid;grid-template-columns:1fr 1fr;gap:13px;padding:18px 20px 20px}
.enrol-guide-panel{min-width:0;background:var(--panel-2);border:1px solid var(--line);border-radius:14px;padding:15px 16px}
.enrol-panel-title{display:flex;align-items:center;gap:10px;margin-bottom:12px}.enrol-panel-icon{width:36px;height:36px;flex:none;border-radius:10px;
  display:grid;place-items:center;background:var(--accent-soft);color:var(--accent)}
.enrol-panel-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.enrol-panel-title h3{font-size:14px;line-height:1.4;margin:0}.enrol-panel-title p{font-size:11.5px;line-height:1.5;color:var(--txt-2);margin:2px 0 0}
.enrol-checklist{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:9px 13px}
.enrol-checklist li{display:flex;align-items:flex-start;gap:8px;min-width:0}.enrol-checklist li>span{width:19px;height:19px;flex:none;border-radius:50%;
  display:grid;place-items:center;background:var(--ok-soft);color:var(--ok);font-size:10px;font-weight:800;margin-top:2px}
.enrol-checklist b,.enrol-checklist small{display:block}.enrol-checklist b{font-size:11.5px;line-height:1.55}.enrol-checklist small{font-size:10.5px;line-height:1.5;color:var(--txt-2)}
.enrol-pose-flow{direction:rtl;display:flex;align-items:center;justify-content:space-between;gap:5px;margin:16px 0 14px}
.enrol-pose-flow span{display:flex;flex-direction:column;align-items:center;gap:5px;color:var(--txt-2);font-size:10.5px;white-space:nowrap}
.enrol-pose-flow span i{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:var(--panel);border:1px solid var(--line-2);
  color:var(--accent);font-style:normal;font-size:11px;font-weight:700}.enrol-pose-flow>b{color:var(--txt-3);font-size:15px;font-weight:400}
.enrol-info-note{display:flex;align-items:flex-start;gap:8px;border-radius:10px;padding:9px 10px;background:var(--accent-soft);color:var(--txt-2);font-size:11px;line-height:1.6}
.enrol-info-note svg{width:16px;height:16px;flex:none;margin-top:1px;fill:none;stroke:var(--accent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.enrol-start-card{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 20px!important}
.enrol-start-copy{max-width:430px}.enrol-start-step{display:block;color:var(--accent);font-size:11px;font-weight:700;margin-bottom:2px}
.enrol-start-copy h2{font-size:15px;margin:0 0 2px}.enrol-start-copy .hint{margin:0}
.enrol-start-controls{display:flex;align-items:flex-end;gap:10px;flex:1;max-width:640px}.enrol-start-controls .fld{min-width:220px}
.enrol-launch{display:inline-flex;align-items:center;gap:8px}.enrol-launch svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.approval-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:3px}.approval-heading h2{font-size:15px;margin:0}
.approval-heading span{display:block;color:var(--txt-3);font-size:10.5px;margin-top:2px;min-height:16px}.approval-heading button{display:inline-flex;align-items:center;gap:6px}
.approval-heading button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.face-modal{width:min(1080px,100%)!important;max-height:calc(100dvh - 28px)!important;overflow:hidden!important;
  display:flex;flex-direction:column}
.face-modal .modal-head{flex:0 0 auto}
.face-modal .modal-body{padding:18px;overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1 1 auto}
.face-guide-intro{padding:4px 2px 2px;text-align:center}
.face-guide-intro>h2{font-size:20px;margin:0 0 5px}.face-guide-intro>.hint{margin:0 auto 17px;max-width:680px}
.face-example-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;text-align:start}
.face-example{position:relative;background:var(--panel-2);border:1px solid var(--line);border-radius:14px;padding:10px;overflow:hidden}
.face-example.good{border-color:color-mix(in srgb,var(--ok) 45%,var(--line));background:color-mix(in srgb,var(--ok-soft) 48%,var(--panel-2))}
.face-example.bad{border-color:color-mix(in srgb,var(--bad) 30%,var(--line))}
.face-example-visual{height:150px;border-radius:10px;background:var(--panel);display:grid;place-items:center;overflow:hidden}
.face-example-visual svg{width:100%;height:100%;display:block}
.face-example .verdict{position:absolute;top:18px;inset-inline-end:18px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;
  color:#fff;font-weight:800;font-size:15px;box-shadow:0 5px 14px rgba(0,0,0,.18)}
.face-example.good .verdict{background:var(--ok)}.face-example.bad .verdict{background:var(--bad)}
.face-example b{display:block;font-size:13px;margin:9px 2px 2px}.face-example span{display:block;font-size:11.5px;color:var(--txt-2);line-height:1.5;margin:0 2px}
.face-guide-notes{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin:16px 0;color:var(--txt-2);font-size:12px}
.face-guide-notes span{display:flex;align-items:center;gap:6px}.face-guide-notes i{width:7px;height:7px;border-radius:50%;background:var(--ok)}
.face-guide-start{min-width:190px}
.face-progress{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:16px}
.face-progress i{width:10px;height:10px;border-radius:50%;background:var(--line-2);transition:.2s}
.face-progress i.on{width:28px;border-radius:99px;background:var(--accent)}.face-progress i.done{background:var(--ok)}
.face-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:18px}
.face-stage{position:relative;height:min(52dvh,500px);min-height:300px;background:#05070c;border-radius:16px;overflow:hidden;border:1px solid var(--line-2)}
.face-stage video{width:100%;height:100%;display:block;object-fit:cover;transform:scaleX(-1)}
.face-guide{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.face-guide::before{content:'';height:min(78%,360px);aspect-ratio:260/340;border:0;
  border-radius:44% 44% 42% 42%/40% 40% 48% 48%;box-shadow:0 0 0 999px rgba(2,5,12,.28);transition:box-shadow .3s ease}
.face-scan-ring{position:absolute;height:min(78%,360px);width:auto;aspect-ratio:260/340;overflow:visible;
  filter:drop-shadow(0 3px 10px rgba(21,94,239,.2));isolation:isolate}
.face-scan-ring path{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.face-scan-track{stroke:rgba(226,236,255,.28);stroke-width:7}
.face-scan-progress{stroke:url(#faceScanGradient);stroke-width:6;stroke-dasharray:100;stroke-dashoffset:100;
  transition:stroke-dashoffset .3s cubic-bezier(.22,.75,.25,1),stroke .28s ease,filter .28s ease}
.face-stage[data-state=checking] .face-scan-progress{filter:drop-shadow(0 0 5px rgba(66,151,255,.78))}
.face-scan-value{position:absolute;top:14px;inset-inline-start:14px;min-width:58px;padding:7px 11px;border-radius:999px;
  display:inline-flex;align-items:center;justify-content:center;gap:7px;background:rgba(9,15,27,.58);border:1px solid rgba(255,255,255,.2);
  color:#fff;font:700 11.5px/1 inherit;text-align:center;letter-spacing:.15px;backdrop-filter:blur(14px) saturate(145%);box-shadow:0 5px 20px rgba(0,0,0,.16)}
.face-scan-value::before{content:'';width:6px;height:6px;border-radius:50%;background:#62cfff;box-shadow:0 0 0 4px rgba(83,164,255,.14)}
.face-scan-check{position:absolute;width:60px;height:60px;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(145deg,#51dba6,#20b979);border:1px solid rgba(255,255,255,.48);color:#fff;opacity:0;transform:scale(.78);
  transition:opacity .24s ease,transform .34s cubic-bezier(.2,.85,.28,1.35);box-shadow:0 0 0 9px rgba(44,202,143,.13),0 12px 30px rgba(0,0,0,.24)}
.face-scan-check svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.face-stage[data-state=good] .face-guide::before{box-shadow:0 0 0 999px rgba(2,5,12,.25)}
.face-stage[data-state=good] .face-scan-progress{stroke:#32d399;stroke-dasharray:none;stroke-dashoffset:0;filter:drop-shadow(0 0 7px rgba(50,211,153,.72))}
.face-stage[data-state=good] .face-scan-track{stroke:rgba(209,255,237,.3)}
.face-stage[data-state=good] .face-scan-value{background:rgba(17,139,94,.68);border-color:rgba(201,255,233,.35)}
.face-stage[data-state=good] .face-scan-value::before{background:#b8ffe2;box-shadow:0 0 0 4px rgba(184,255,226,.13)}
.face-stage[data-state=good] .face-scan-check{opacity:1;transform:scale(1)}
.face-status{position:absolute;inset-inline:14px;bottom:14px;background:rgba(8,11,18,.84);color:#fff;border:1px solid rgba(255,255,255,.14);
  border-radius:12px;padding:10px 12px;text-align:center;font-size:13px;backdrop-filter:blur(8px)}
.face-side{display:flex;flex-direction:column;min-width:0}.face-step-no{font-size:11px;color:var(--accent);font-weight:700;margin-bottom:5px}
.face-step-title{font-size:19px;font-weight:700;line-height:1.5}.face-step-hint{font-size:12.5px;color:var(--txt-2);line-height:1.6;margin-top:3px}
.face-live-state{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:12px;color:var(--txt-2)}
.face-live-state i{width:9px;height:9px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 45%,transparent);animation:faceLivePulse 1.2s infinite}
@keyframes faceLivePulse{70%{box-shadow:0 0 0 7px transparent}100%{box-shadow:0 0 0 0 transparent}}
.face-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:16px -18px -18px;
  padding:12px 18px;position:sticky;bottom:-18px;z-index:4;background:color-mix(in srgb,var(--panel) 94%,transparent);
  border-top:1px solid var(--line);backdrop-filter:blur(12px)}
.auto-capture{display:flex;align-items:center;gap:7px;font-size:12.5px;color:var(--txt-2);cursor:pointer}.auto-capture input{min-height:0;width:17px;height:17px}
.face-thumbs{display:flex;gap:7px;flex-wrap:wrap;margin-top:auto;padding-top:14px}
.face-thumbs img,.face-thumbs .slot{width:54px;height:54px;border-radius:10px}.face-thumbs img{object-fit:cover;border:1px solid var(--ok)}
.face-thumbs .slot{border:1px dashed var(--line-2);display:grid;place-items:center;color:var(--txt-3);font-size:12px}
.face-thumbs .shot{position:relative}.face-thumbs .shot button{position:absolute;inset-block-start:-5px;inset-inline-end:-5px;width:19px;height:19px;
  border:0;border-radius:50%;background:var(--bad);color:#fff;display:grid;place-items:center;padding:0;cursor:pointer}
.face-success{text-align:center;padding:36px 18px}.face-success .mark{width:78px;height:78px;margin:0 auto 17px;border-radius:50%;display:grid;place-items:center;background:var(--ok-soft);color:var(--ok)}
.face-success .mark svg{width:40px;height:40px;fill:none;stroke:currentColor;stroke-width:2}
@media(max-width:1000px){.enrol-guide-hero{flex-direction:column}.enrol-guide-badges{justify-content:flex-start;max-width:none}.enrol-guide-lower{grid-template-columns:1fr}.enrol-start-card{align-items:flex-start;flex-direction:column}.enrol-start-controls{width:100%;max-width:none}}
@media(max-width:900px){.face-example-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.face-grid{grid-template-columns:1fr}.face-stage{height:44dvh;min-height:260px}}
@media(max-width:620px){.enrol-guide-hero{padding:19px 17px 16px}.enrol-examples{padding:14px 14px 0}.enrol-guide-lower{padding:14px}.enrol-checklist{grid-template-columns:1fr}.enrol-start-controls{align-items:stretch;flex-direction:column}.enrol-start-controls .fld{min-width:0;width:100%}.enrol-launch{justify-content:center}.approval-heading{align-items:center}}
@media(max-width:520px){.face-example-grid{grid-template-columns:1fr 1fr}.face-example-visual{height:120px}.face-example{padding:8px}.enrol-pose-flow{gap:2px}.enrol-pose-flow span i{width:26px;height:26px}}
@media(prefers-reduced-motion:reduce){.face-scan-progress,.face-scan-check{transition:none}.face-live-state i{animation:none}}
@media(max-width:600px){.table-search{max-width:none;flex-basis:100%}.table-tools{align-items:stretch}}
@media print{.table-tools,.smart-pager,.table-no-results{display:none!important}.smart-table tr[hidden]{display:table-row!important}}

/* ------------------------------------------------ responsive app shell */
.mobile-menu-btn{display:none!important;flex:0 0 auto}
.mobile-menu-btn svg,.pwa-install-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.mobile-nav-backdrop{display:none;position:fixed;inset:0;z-index:69;border:0;padding:0;background:rgba(3,7,14,.58);opacity:0;
  pointer-events:none;backdrop-filter:blur(2px);transition:opacity .22s ease}
.pwa-install-btn{display:none!important;width:100%;align-items:center;justify-content:center;gap:8px}
.pwa-install-btn.ready{display:flex!important}

@media(max-width:940px){
  html,body{min-width:0;min-height:100%;overflow-x:hidden}
  body.mobile-nav-open{overflow:hidden;touch-action:none}
  .shell:not(.hide){display:block!important;min-height:100dvh;width:100%}
  main{width:100%;min-width:0}
  aside{display:flex!important;position:fixed!important;inset-block:0;inset-inline-start:0;top:0!important;width:min(84vw,310px);height:100dvh!important;
    z-index:70;transform:translateX(105%);visibility:hidden;transition:transform .24s cubic-bezier(.22,.75,.25,1),visibility .24s;
    border-inline-end:1px solid var(--line-2);box-shadow:-22px 0 55px rgba(0,0,0,.32);padding-top:env(safe-area-inset-top)}
  body.mobile-nav-open aside{transform:translateX(0);visibility:visible}
  .mobile-nav-backdrop{display:block}
  body.mobile-nav-open .mobile-nav-backdrop{opacity:1;pointer-events:auto}
  .mobile-menu-btn{display:grid!important}
  .topbar{padding:calc(12px + env(safe-area-inset-top)) 16px 12px;gap:10px;min-height:68px}
  .topbar>div:first-of-type{min-width:0}
  .topbar h1,.topbar .sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .content{padding:18px 16px calc(46px + env(safe-area-inset-bottom))}
  .side-foot{padding-bottom:calc(12px + env(safe-area-inset-bottom))!important}
}

@media(max-width:620px){
  body{font-size:14px;line-height:1.75}
  .topbar{padding-inline:10px;gap:8px;min-height:62px}
  .topbar h1{font-size:16px;line-height:1.45}
  .topbar .sub{font-size:10.5px;max-width:56vw}
  .topbar .clock{font-size:14px}
  .mobile-menu-btn,.topbar .iconbtn{width:42px;height:42px;min-height:42px}
  .content{padding:12px 10px calc(34px + env(safe-area-inset-bottom))}
  .card{padding:14px;border-radius:12px;margin-bottom:12px}
  .card>h2{line-height:1.55}
  .tbl-wrap{margin-inline:-14px;padding-inline:14px}
  .content .row{gap:9px}
  .content .row>.fld{flex:1 1 100%;min-width:0}
  .content .row>.fld input,.content .row>.fld select,.content .row>select{width:100%!important;min-width:0!important}
  .content .row>button.btn{flex:1 1 145px;justify-content:center}
  button.btn,input,select,textarea{font-size:13.5px}
  button.btn{min-height:44px}
  input,select{min-height:44px}
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:12px}
  .kpi{padding:13px!important;border-radius:12px!important}
  .kpi .val{font-size:28px}
  .charts{gap:12px}
  .approval-heading{align-items:stretch;flex-direction:column}
  .approval-heading button{align-self:flex-start}

  .enrol-guide-hero{gap:14px;padding:17px 14px 14px}
  .enrol-guide-copy{min-width:0}
  .enrol-guide-copy h2{font-size:18px;line-height:1.55}
  .enrol-guide-copy p{font-size:12px}
  .enrol-guide-badges{gap:6px;width:100%}
  .enrol-guide-badges span{flex:1 1 auto;justify-content:center;white-space:normal;text-align:center}
  .enrol-examples{padding:12px 12px 0}
  .enrol-guide-lower{padding:12px;gap:10px}
  .enrol-guide-panel{padding:13px}
  .enrol-panel-title{align-items:flex-start}
  .enrol-pose-flow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:14px 0}
  .enrol-pose-flow>b{display:none}
  .enrol-pose-flow span{min-width:0;font-size:9.5px;white-space:normal;text-align:center}
  .enrol-start-card{padding:14px!important;gap:14px}
  .enrol-start-controls{gap:9px}
  .enrol-start-controls select,.enrol-launch{width:100%!important}
  .quality-grid{grid-template-columns:1fr;gap:9px}

  .overlay{padding:0;place-items:stretch}
  .modal,.face-modal{width:100%!important;height:100dvh;max-height:none!important;border-radius:0;border-inline:0}
  .face-modal .modal-head{padding:calc(10px + env(safe-area-inset-top)) 12px 10px;gap:9px}
  .face-modal .modal-head>div{min-width:0}
  .face-modal .modal-head>div>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .face-modal .modal-body{padding:12px 10px calc(10px + env(safe-area-inset-bottom))}
  .face-progress{margin-bottom:10px}
  .face-grid{gap:12px}
  .face-stage{height:43dvh;min-height:250px;border-radius:13px}
  .face-guide::before,.face-scan-ring{height:min(76%,330px)}
  .face-status{inset-inline:10px;bottom:10px;font-size:11.5px;padding:8px 9px}
  .face-side{padding-inline:2px}
  .face-step-title{font-size:17px}
  .face-thumbs{padding-top:10px}
  .face-thumbs img,.face-thumbs .slot{width:48px;height:48px}
  .face-actions{align-items:stretch;flex-direction:column;margin:12px -10px -10px;padding:10px 10px calc(10px + env(safe-area-inset-bottom));bottom:-10px}
  .face-actions>.row{width:100%}
  .face-actions>.row .btn{flex:1 1 135px}
}

@media(max-width:430px){
  .topbar .sub{display:none}
  .topbar .clock{font-size:12px}
  .face-example-grid{grid-template-columns:1fr}
  .face-example-visual,.enrol-examples .face-example-visual{height:145px}
  .enrol-guide-badges span{flex-basis:30%}
  .kpis{grid-template-columns:1fr 1fr}
}

@media(max-width:350px){
  .topbar .clock{display:none}
  .enrol-guide-badges span{flex-basis:100%}
  .kpis{grid-template-columns:1fr}
}

@media(max-height:600px) and (orientation:landscape) and (min-width:600px){
  .face-modal .modal-head{padding-block:8px}
  .face-modal .modal-body{padding:9px 10px}
  .face-progress{margin-bottom:7px}
  .face-grid{grid-template-columns:minmax(0,1.2fr) minmax(235px,.8fr);gap:12px}
  .face-stage{height:calc(100dvh - 168px);min-height:215px}
  .face-actions{margin-top:9px;padding-block:8px}
  .face-step-title{font-size:16px}
}

@media(display-mode:standalone){
  .topbar{padding-top:calc(12px + env(safe-area-inset-top))}
  .content{padding-bottom:calc(46px + env(safe-area-inset-bottom))}
}

/* ------------------------------------------------ submenu guarantees */
.nav-submenu.open,
nav > button[data-has-sub].on + .nav-submenu {
  max-height: 500px !important;
  opacity: 1 !important;
  margin-top: 3px !important;
  margin-bottom: 6px !important;
  border-inline-start-color: var(--line) !important;
  display: flex !important;
  visibility: visible !important;
}
.nav-submenu button {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  font-size: 13px !important;
  padding: 8px 11px !important;
}
.nav-submenu button svg {
  width: 16px !important;
  height: 16px !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 1.9 !important;
  flex: none !important;
  opacity: 0.8 !important;
}
.nav-submenu button.on svg {
  stroke: var(--accent) !important;
  opacity: 1 !important;
}

/* ------------------------------------------------ Searchable Select Widget */
.searchable-select-container {
  position: relative;
  display: inline-block;
  min-width: 220px;
  max-width: 100%;
}

.searchable-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  background: var(--panel, #161b22);
  border: 1px solid var(--line, #30363d);
  border-radius: 9px;
  color: var(--txt, #c9d1d9);
  font-size: 13.5px;
  cursor: pointer;
  text-align: start;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.searchable-select-trigger:focus,
.searchable-select-trigger:hover {
  border-color: var(--accent, #3b82f6);
  outline: none;
}

.searchable-select-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.searchable-select-arrow {
  width: 16px;
  height: 16px;
  flex: none;
  stroke: var(--txt-3, #8b949e);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s;
}

.searchable-select-container.open .searchable-select-arrow {
  transform: rotate(180deg);
  stroke: var(--accent, #3b82f6);
}

.searchable-select-menu {
  position: absolute;
  top: calc(100% + 5px);
  inset-inline-start: 0;
  width: 100%;
  min-width: 270px;
  max-width: 380px;
  background: var(--panel, #1c2128);
  border: 1px solid var(--line-2, #444c56);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  z-index: 9999;
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.searchable-select-menu.hide {
  display: none !important;
}

.searchable-select-search-wrap {
  position: relative;
  width: 100%;
}

.searchable-select-search {
  width: 100%;
  padding: 8px 12px 8px 34px;
  background: var(--bg, #0d1117);
  border: 1px solid var(--line, #30363d);
  border-radius: 7px;
  color: var(--txt, #c9d1d9);
  font-size: 13px;
  outline: none;
}

.searchable-select-search:focus {
  border-color: var(--accent, #3b82f6);
}

.searchable-select-search-icon {
  position: absolute;
  inset-inline-start: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  stroke: var(--txt-3, #8b949e);
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}

.searchable-select-items {
  max-height: 230px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-inline-end: 2px;
}

.searchable-select-item {
  padding: 8px 11px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--txt, #c9d1d9);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.searchable-select-item:hover {
  background: var(--accent-soft, rgba(59, 130, 246, 0.15));
  color: var(--accent, #3b82f6);
}

.searchable-select-item.selected {
  background: var(--accent, #3b82f6);
  color: #ffffff;
  font-weight: 600;
}

.searchable-select-no-results {
  padding: 14px;
  text-align: center;
  font-size: 12.5px;
  color: var(--txt-3, #8b949e);
}


