/* =====================================================================
   ERPSYS · Security & 3D map styles (dark cinematic HUD)
   ===================================================================== */
.content-bleed { padding: 0 !important; max-width: none !important; height: calc(100vh - 64px); display: flex; flex-direction: column; }
.content-bleed > .alert { margin: 1rem; }
.is-bleed .topbar { background: #061318; border-color: rgba(255,255,255,.06); color: #dcebee; }
.is-bleed .topbar .title { color: #e7f3f5; }
.is-bleed .topbar .btn-ghost, .is-bleed .topbar .user-btn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #e7f3f5; }

.map3d { --hud-bg: rgba(6, 18, 23, .72); --hud-line: rgba(126, 231, 240, .16); --hud-ink: #e5f2f4; --hud-muted: #8fb0b7; --hud-accent: #3fd6c8;
  position: relative; flex: 1; min-height: 520px; overflow: hidden; background: #03090c; color: var(--hud-ink); isolation: isolate; font-family: var(--font); }
.map3d.theme-day { --hud-bg: rgba(255, 255, 255, .8); --hud-line: rgba(8, 62, 72, .14); --hud-ink: #11262c; --hud-muted: #5b737a; --hud-accent: #0b5563; }
.map3d:fullscreen { height: 100vh; }
.map-canvas, .map-canvas canvas, .map-labels { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-labels { z-index: 2; }
.map-vignette { position: absolute; inset: 0; pointer-events: none; z-index: 3; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.55) 100%); }
.theme-day .map-vignette { background: radial-gradient(120% 90% at 50% 45%, transparent 60%, rgba(0,30,40,.18) 100%); }

/* Cinematic letterbox */
.letterbox { position: absolute; inset-inline: 0; height: 0; background: #000; z-index: 6; transition: height .8s cubic-bezier(.7,0,.2,1); pointer-events: none; }
.letterbox-top { top: 0; } .letterbox-bottom { bottom: 0; display: flex; align-items: center; justify-content: center; }
.is-cinematic .letterbox { height: 11%; }
.is-cinematic .hud, .is-cinematic .hud-details, .is-cinematic .map-labels .door-label { opacity: 0; pointer-events: none; }
.tour-caption { color: #fff; text-align: center; opacity: 0; transform: translateY(8px); }
.tour-caption b { display: block; font-size: clamp(1rem, .8rem + 1vw, 1.6rem); font-weight: 800; letter-spacing: .02em; }
.tour-caption span { display: block; color: rgba(255,255,255,.7); font-size: .9rem; margin-top: .15rem; }
.tour-caption.in { animation: capIn 1.1s ease forwards; }
@keyframes capIn { to { opacity: 1; transform: none; } }

/* HUD */
.hud { position: absolute; z-index: 5; display: flex; gap: .75rem; transition: opacity .5s; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-top { top: 1rem; inset-inline: 1rem; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.hud-bottom { bottom: 1rem; inset-inline: 1rem; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
.hud-panel { background: var(--hud-bg); border: 1px solid var(--hud-line); border-radius: 16px; backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 10px 40px rgba(0,0,0,.35); color: var(--hud-ink); }
.hud-location { padding: .75rem .9rem; min-width: 260px; max-width: 420px; }
.hud-kicker { display: flex; gap: .35rem; align-items: center; font-size: .72rem; font-weight: 800; letter-spacing: .06em; color: var(--hud-accent); text-transform: uppercase; margin-bottom: .35rem; }
.hud-title { font-weight: 800; font-size: 1.02rem; margin: .45rem 0 .55rem; }
.hud-title span { color: var(--hud-muted); margin-inline: .2rem; }
.hud-select { width: 100%; font: inherit; font-size: .9rem; color: var(--hud-ink); background: rgba(255,255,255,.06); border: 1px solid var(--hud-line); border-radius: 10px; padding: .45rem .6rem; }
.theme-day .hud-select { background: #fff; }
.hud-select option, .hud-select optgroup { color: #11262c; }
.floor-chips { display: flex; gap: .35rem; flex-wrap: wrap; }
.chip-btn { font: inherit; font-size: .82rem; font-weight: 800; min-width: 38px; height: 32px; padding: 0 .6rem; border-radius: 9px; border: 1px solid var(--hud-line); background: rgba(255,255,255,.05); color: var(--hud-ink); cursor: pointer; }
.chip-btn:hover { border-color: var(--hud-accent); }
.chip-btn.is-active { background: var(--hud-accent); border-color: var(--hud-accent); color: #031114; }

.hud-search { width: min(360px, 100%); padding: .4rem; position: relative; }
.search-box { display: flex; align-items: center; gap: .5rem; padding: 0 .55rem; color: var(--hud-muted); }
.search-box input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--hud-ink); font: inherit; padding: .5rem 0; outline: none; }
.search-results { position: absolute; top: calc(100% + .4rem); inset-inline: 0; background: var(--hud-bg); border: 1px solid var(--hud-line); border-radius: 14px; backdrop-filter: blur(16px); padding: .35rem; max-height: 50vh; overflow-y: auto; }
.sr-item { display: flex; gap: .6rem; align-items: center; width: 100%; background: none; border: 0; color: var(--hud-ink); text-align: start; padding: .5rem .55rem; border-radius: 10px; cursor: pointer; font: inherit; }
.sr-item:hover { background: rgba(63,214,200,.12); }
.sr-item small { display: block; color: var(--hud-muted); font-size: .76rem; }
.sr-kind { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; background: var(--hud-accent); }
.sr-kind.k-person { border-radius: 50%; background: #ffc34d; } .sr-kind.k-door { background: #39e6a0; transform: rotate(45deg); }
.sr-empty { padding: .7rem; color: var(--hud-muted); font-size: .88rem; }

.toolbar { display: flex; align-items: center; gap: .15rem; padding: .35rem; flex-wrap: wrap; max-width: 100%; }
.tool { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-size: .82rem; font-weight: 700; color: var(--hud-ink); background: none; border: 0; border-radius: 10px; padding: .5rem .65rem; cursor: pointer; white-space: nowrap; }
.tool:hover { background: rgba(255,255,255,.07); }
.tool[aria-pressed="true"], .tool.is-on { background: rgba(63,214,200,.18); color: var(--hud-accent); }
.tool .icon { width: 1.05rem; height: 1.05rem; }
.tool-sep { width: 1px; align-self: stretch; margin: .3rem .15rem; background: var(--hud-line); }
.legend { padding: .55rem .8rem; font-size: .76rem; max-width: 520px; }
.legend-group { display: flex; flex-wrap: wrap; gap: .3rem .75rem; }
.legend-group + .legend-group { margin-top: .35rem; padding-top: .35rem; border-top: 1px solid var(--hud-line); }
.legend span { display: inline-flex; align-items: center; gap: .3rem; color: var(--hud-muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend i.line { height: 3px; width: 14px; border-radius: 2px; }

/* Details panel */
.hud-details { position: absolute; z-index: 5; top: 1rem; inset-inline-end: 1rem; width: min(360px, calc(100% - 2rem)); max-height: calc(100% - 7.5rem); overflow-y: auto; padding: 1rem 1.05rem; animation: panelIn .35s ease; margin-top: 4.2rem; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
.hud-details h3 { color: var(--hud-ink); font-size: 1.12rem; margin: .2rem 0 .1rem; display: flex; align-items: center; gap: .5rem; }
.hud-details h4 { color: var(--hud-muted); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; margin: 1rem 0 .4rem; }
.panel-close { position: absolute; top: .55rem; inset-inline-end: .55rem; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--hud-line); background: rgba(255,255,255,.05); color: var(--hud-ink); font-size: 1.2rem; cursor: pointer; }
.panel-crumbs { font-size: .74rem; color: var(--hud-muted); padding-inline-end: 2rem; }
.panel-code { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; color: var(--hud-accent); direction: ltr; text-align: start; }
.panel-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .6rem 0; }
.pchip { font-size: .74rem; font-weight: 800; padding: .15rem .55rem; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--hud-ink); }
.pchip.level-public { background: rgba(111,211,193,.18); color: #6fd3c1; } .pchip.level-standard { background: rgba(88,166,255,.18); color: #7db8ff; }
.pchip.level-restricted { background: rgba(242,184,75,.18); color: #f2b84b; } .pchip.level-critical { background: rgba(255,92,92,.2); color: #ff7b7b; }
.pchip.is-gold { background: rgba(255,195,77,.2); color: #ffc34d; }
.panel-dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem .8rem; margin: .4rem 0 0; font-size: .86rem; }
.panel-dl dt { color: var(--hud-muted); } .panel-dl dd { margin: 0; font-weight: 700; text-align: end; }
.panel-dl .ok { color: #39e6a0; } .panel-dl .no { color: #ff7b7b; }
.panel-list { display: grid; gap: .35rem; }
.pl-item { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .45rem .55rem; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid transparent; color: var(--hud-ink); font: inherit; text-align: start; }
button.pl-item { cursor: pointer; } button.pl-item:hover { border-color: var(--hud-line); background: rgba(63,214,200,.08); }
.pl-item small { display: block; color: var(--hud-muted); font-size: .74rem; }
.pl-item .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(145deg, #b8912f, #8c6d1f); color: #fff; flex-shrink: 0; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex-shrink: 0; }
.st { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; box-shadow: 0 0 10px currentColor; }
.st-online { background: #39e6a0; color: #39e6a0; } .st-maintenance { background: #f5b642; color: #f5b642; } .st-offline { background: #ff5d5d; color: #ff5d5d; }
.st-text.st-online, .st-text.st-maintenance, .st-text.st-offline { background: none; box-shadow: none; }
.devices { display: grid; gap: .3rem; margin: .5rem 0; }
.dev { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--hud-muted); }
.dev b { color: var(--hud-ink); font-family: ui-monospace, Consolas, monospace; font-size: .8rem; }
.panel-actions { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: 1rem; }
.pbtn { display: inline-flex; align-items: center; padding: .5rem .8rem; border-radius: 10px; font-weight: 800; font-size: .84rem; background: var(--hud-accent); color: #031114 !important; text-decoration: none !important; }
.pbtn.ghost { background: rgba(255,255,255,.07); color: var(--hud-ink) !important; border: 1px solid var(--hud-line); }

/* Device icons */
.ic-cam, .ic-mic { display: inline-block; width: 12px; height: 12px; background: currentColor; flex-shrink: 0; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.ic-cam { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h3l2-2h6l2 2h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1Zm8 3a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7Z'/%3E%3C/svg%3E"); }
.ic-mic { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a3 3 0 0 1 3 3v6a3 3 0 0 1-6 0V5a3 3 0 0 1 3-3Zm-7 9h2a5 5 0 0 0 10 0h2a7 7 0 0 1-6 6.9V21h-2v-3.1A7 7 0 0 1 5 11Z'/%3E%3C/svg%3E"); }

/* 3D labels */
.map-label { font: 700 11px/1.25 var(--font); color: #eaf6f8; background: rgba(4, 14, 18, .78); border: 1px solid rgba(126,231,240,.18); padding: .22rem .45rem; border-radius: 8px; white-space: nowrap; pointer-events: auto; cursor: pointer; display: flex; align-items: center; gap: .3rem; transition: opacity .3s, transform .2s; user-select: none; }
.map-label small { display: block; font-weight: 500; color: #9fc3ca; font-size: 10px; margin-inline-start: .25rem; }
.map-label.is-hidden { opacity: 0; pointer-events: none; }
.map-label.is-faded { opacity: .25; }
.map-label:hover, .map-label.is-selected { background: #3fd6c8; color: #031114; transform: scale(1.08); z-index: 10; }
.map-label.is-selected small { color: #06343a; }
.room-label.level-critical { border-color: rgba(255,92,92,.6); }
.room-label.is-mine { border-color: #ffc34d; box-shadow: 0 0 0 1px #ffc34d, 0 0 18px rgba(255,195,77,.4); }
.door-label { font-size: 9.5px; padding: .15rem .35rem; direction: ltr; }
.door-label.status-online { color: #7bffc4; } .door-label.status-maintenance { color: #ffd27a; } .door-label.status-offline { color: #ff8a8a; }
.door-label.is-entrance { border-color: rgba(255,195,77,.6); }
.floor-label { font-size: 12px; background: rgba(63,214,200,.14); border-color: rgba(63,214,200,.4); }
.floor-label b { color: #3fd6c8; }
.theme-day .map-label { background: rgba(255,255,255,.9); color: #11262c; border-color: rgba(8,62,72,.18); }
.theme-day .map-label small { color: #5b737a; }

/* Toasts */
.map-toasts { position: absolute; z-index: 7; bottom: 5.5rem; inset-inline-start: 1rem; display: grid; gap: .45rem; width: min(300px, calc(100% - 2rem)); }
.map-toast { display: grid; grid-template-columns: auto 1fr; gap: 0 .6rem; text-align: start; font: inherit; padding: .55rem .7rem; border-radius: 12px; border: 1px solid var(--hud-line); background: var(--hud-bg); color: var(--hud-ink); backdrop-filter: blur(14px); cursor: pointer; animation: toastIn .4s ease; transition: opacity .6s, transform .6s; border-inline-start: 4px solid #39e6a0; }
.map-toast.denied { border-inline-start-color: #ff5d5d; }
.map-toast b { grid-row: span 2; align-self: center; font-size: .78rem; text-transform: uppercase; color: #39e6a0; }
.map-toast.denied b { color: #ff7b7b; }
.map-toast span { font-family: ui-monospace, Consolas, monospace; font-size: .78rem; }
.map-toast small { color: var(--hud-muted); font-size: .74rem; }
.map-toast.out { opacity: 0; transform: translateX(-20px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

/* Loading */
.map-loading { position: absolute; inset: 0; z-index: 9; display: grid; place-content: center; justify-items: center; gap: 1rem; background: radial-gradient(circle at 50% 40%, #0b2a33, #02070a 70%); color: #bfe3e8; font-weight: 700; transition: opacity .8s; text-align: center; padding: 2rem; }
.map-loading.is-done { opacity: 0; pointer-events: none; }
.map-loading.is-error .loader-ring { border-top-color: #ff5d5d; animation: none; }
.loader-ring { width: 54px; height: 54px; border-radius: 50%; border: 3px solid rgba(63,214,200,.15); border-top-color: #3fd6c8; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .content-bleed { height: calc(100vh - 58px); }
  .tool span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .legend { display: none; }
  .hud-location { min-width: 0; flex: 1 1 100%; max-width: none; }
  .hud-search { flex: 1 1 100%; width: auto; }
  .hud-details { top: auto; bottom: 4.6rem; margin: 0; max-height: 55%; inset-inline: .75rem; width: auto; }
  .map-toasts { bottom: auto; top: 11rem; }
}

/* =====================================================================
   Security pages (light theme)
   ===================================================================== */
.plan-svg-wrap { background: #0a1a20; border-radius: 14px; padding: .75rem; overflow: auto; }
.plan-svg { width: 100%; height: auto; min-width: 560px; display: block; }
.plan-svg text { font-family: var(--font); pointer-events: none; }
.plan-svg .room-rect { stroke-width: .12; cursor: pointer; transition: opacity .2s; }
.plan-svg a:hover .room-rect { opacity: .8; }
.plan-svg .door-dot { stroke: #031114; stroke-width: .08; }
.level-badge { display: inline-flex; padding: .1rem .5rem; border-radius: 999px; font-size: .76rem; font-weight: 800; }
.level-badge.public { background: #e2f6f2; color: #146B5C; } .level-badge.standard { background: #e6effd; color: #1d5fbf; }
.level-badge.restricted { background: #fbf0d6; color: #946300; } .level-badge.critical { background: #fde6e5; color: #b42318; }
.door-status { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .84rem; }
.door-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.door-status.online { color: #1e7a4c; } .door-status.maintenance { color: #7A5500; } .door-status.offline { color: #b42318; }
.tree { list-style: none; margin: 0; padding: 0; }
.tree ul { list-style: none; margin: .35rem 0 0; padding-inline-start: 1.2rem; border-inline-start: 2px solid var(--border); }
.tree li { margin: .35rem 0; }
.tree .node { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .45rem .65rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.tree .node .code { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; color: var(--brand-700); background: var(--brand-50); padding: .05rem .4rem; border-radius: 6px; }
.tree .node .meta { margin-inline-start: auto; color: var(--muted); font-size: .82rem; display: flex; gap: .6rem; }
.access-grid { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 1.25rem; align-items: start; }
.emp-list { max-height: 70vh; overflow-y: auto; }
.emp-item { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border-bottom: 1px solid var(--border); color: var(--ink); text-decoration: none !important; }
.emp-item:hover { background: var(--brand-50); }
.emp-item.is-active { background: var(--brand-50); box-shadow: inset 3px 0 0 var(--brand-700); }
[dir="rtl"] .emp-item.is-active { box-shadow: inset -3px 0 0 var(--brand-700); }
.emp-item small { display: block; color: var(--muted); }
.room-check { display: grid; grid-template-columns: auto 1fr auto auto; gap: .6rem; align-items: center; padding: .5rem .75rem; border-bottom: 1px solid var(--border); }
.room-check:hover { background: var(--surface-2); }
.room-check input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand-700); }
.room-check input[type=date] { min-height: 34px; padding: .2rem .4rem; font-size: .82rem; width: 150px; }
.floor-block { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: .9rem; }
.floor-block > summary { list-style: none; cursor: pointer; padding: .7rem .9rem; background: var(--surface-2); font-weight: 800; display: flex; justify-content: space-between; gap: .5rem; }
.floor-block > summary::-webkit-details-marker { display: none; }
.bar-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; align-items: end; height: 160px; padding-top: .5rem; }
.bar-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; height: 100%; }
.bar-col .b { width: 70%; border-radius: 6px 6px 2px 2px; min-height: 2px; }
.bar-col .g { background: var(--brand-600); } .bar-col .d { background: #e35d57; }
.bar-col small { color: var(--muted); font-size: .72rem; margin-top: .25rem; }

/* Kiosk & enrolment */
.bio-stage { position: relative; background: #02080b; border-radius: 18px; overflow: hidden; aspect-ratio: 4/3; }
.bio-stage video, .bio-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.bio-overlay { position: absolute; inset: 0; pointer-events: none; }
.bio-frame { position: absolute; inset: 14% 24%; border-radius: 45%; border: 2px dashed rgba(63,214,200,.6); box-shadow: 0 0 0 999px rgba(2,8,11,.35); }
.bio-frame.ok { border-style: solid; border-color: #39e6a0; }
.bio-hint { position: absolute; bottom: 1rem; inset-inline: 1rem; text-align: center; color: #fff; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.meter { height: 8px; border-radius: 99px; background: var(--border); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--brand-600); transition: width .3s; }

.kiosk-body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 30% 20%, #0c3440, #02080b 65%); color: #e6f3f5; font-family: var(--font); }
.kiosk { min-height: 100vh; display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; padding: 2rem; align-items: center; }
.kiosk h1, .kiosk h2, .kiosk h3 { color: #fff; }
.kiosk .bio-stage { box-shadow: 0 30px 80px rgba(0,0,0,.5); border: 1px solid rgba(126,231,240,.2); }
.kiosk-panel { background: rgba(6,18,23,.7); border: 1px solid rgba(126,231,240,.16); border-radius: 22px; padding: 1.6rem; backdrop-filter: blur(16px); }
.kiosk-code { font-family: ui-monospace, Consolas, monospace; color: #3fd6c8; direction: ltr; text-align: start; font-size: 1.05rem; }
.kiosk-steps { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .6rem; }
.kiosk-steps li { display: flex; gap: .7rem; align-items: center; padding: .7rem .85rem; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); color: #a9c7cd; }
.kiosk-steps li .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: rgba(255,255,255,.08); flex-shrink: 0; }
.kiosk-steps li.active { color: #fff; border-color: rgba(63,214,200,.5); }
.kiosk-steps li.active .n { background: #3fd6c8; color: #031114; }
.kiosk-steps li.done .n { background: #39e6a0; color: #031114; }
.kiosk-result { border-radius: 16px; padding: 1.2rem; text-align: center; margin-top: 1rem; display: none; }
.kiosk-result.show { display: block; animation: panelIn .4s ease; }
.kiosk-result.granted { background: rgba(57,230,160,.14); border: 1px solid rgba(57,230,160,.5); }
.kiosk-result.denied { background: rgba(255,93,93,.14); border: 1px solid rgba(255,93,93,.5); }
.kiosk-result .big { font-size: 1.8rem; font-weight: 800; }
.kiosk-result.granted .big { color: #39e6a0; } .kiosk-result.denied .big { color: #ff7b7b; }
.kiosk .btn-ghost { background: rgba(255,255,255,.06); color: #e6f3f5; border-color: rgba(255,255,255,.18); }
.kiosk .select, .kiosk .input { background: rgba(255,255,255,.06); color: #e6f3f5; border-color: rgba(255,255,255,.18); }
.kiosk .select option { color: #11262c; }
.door-anim { position: relative; height: 90px; margin: 1rem auto 0; width: 150px; perspective: 400px; }
.door-anim .leaf { position: absolute; top: 0; width: 50%; height: 100%; background: linear-gradient(180deg, #1c3a42, #0d2127); border: 1px solid rgba(126,231,240,.35); transition: transform 1s cubic-bezier(.6,.05,.3,1); }
.door-anim .l { left: 0; transform-origin: left; border-radius: 6px 0 0 6px; } .door-anim .r { right: 0; transform-origin: right; border-radius: 0 6px 6px 0; }
.door-anim.open .l { transform: rotateY(-75deg); } .door-anim.open .r { transform: rotateY(75deg); }
.door-anim::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(57,230,160,.6), transparent 70%); opacity: 0; transition: opacity 1s; z-index: -1; }
.door-anim.open::after { opacity: 1; }
@media (max-width: 900px) { .kiosk { grid-template-columns: 1fr; padding: 1rem; } .access-grid { grid-template-columns: 1fr; } }

/* AI importer */
.ai-stage { position: relative; background: repeating-conic-gradient(#f2efe8 0 25%, #fff 0 50%) 0 0/18px 18px; border-radius: 14px; border: 1px solid var(--border); overflow: auto; min-height: 280px; display: grid; place-items: center; }
.ai-stage canvas { max-width: 100%; height: auto; display: block; }
.dropzone { border: 2px dashed var(--border-2); border-radius: 14px; padding: 2rem 1rem; text-align: center; background: var(--surface-2); cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone.drag, .dropzone:hover { border-color: var(--brand-600); background: var(--brand-50); }
.dropzone .icon { width: 42px; height: 42px; color: var(--brand-700); margin: 0 auto .5rem; display: block; }
.pipeline { display: flex; gap: .4rem; flex-wrap: wrap; }
.pipeline span { font-size: .78rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; background: #edebe6; color: var(--muted); }
.pipeline span.done { background: var(--success-bg); color: var(--success); }
.pipeline span.run { background: var(--info-bg); color: var(--info); }
.ai-table td { padding: .45rem .6rem; }
.ai-table .select, .ai-table .input { min-height: 34px; padding: .25rem .45rem; font-size: .86rem; }
.ai-table tr.is-hover { background: var(--accent-100) !important; }
.conf { display: inline-block; min-width: 42px; text-align: center; font-size: .76rem; font-weight: 800; border-radius: 999px; padding: .1rem .4rem; }
.conf.hi { background: var(--success-bg); color: var(--success); } .conf.mid { background: var(--warning-bg); color: var(--warning); } .conf.lo { background: var(--danger-bg); color: var(--danger); }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; vertical-align: middle; }
#ai-preview3d { height: 360px; border-radius: 14px; overflow: hidden; background: #03090c; position: relative; }

/* ------------------------------------------------------------ enrolment v2 */
.enrol-steps { list-style: none; display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1rem; padding: 0; counter-reset: s; }
.enrol-steps li { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .85rem .4rem .5rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: .88rem; color: var(--muted); }
.enrol-steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--border); color: var(--ink); font-size: .78rem; }
.enrol-steps li.active { border-color: var(--brand-600); color: var(--ink); box-shadow: var(--ring); } .enrol-steps li.active span { background: var(--brand-700); color: #fff; }
.enrol-steps li.done { color: var(--success); } .enrol-steps li.done span { background: var(--success); color: #fff; }
.enrol-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 960px) { .enrol-grid { grid-template-columns: 1fr; } }
.bio-ring { position: absolute; inset: 9% 19%; pointer-events: none; }
.bio-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.bio-ring circle { fill: none; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.bio-ring .trk { stroke: rgba(255,255,255,.15); stroke-width: 4; }
.bio-ring .prg { stroke: #39e6a0; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .35s ease; }
.bio-start { position: absolute; inset: 0; display: grid; place-content: center; gap: .6rem; justify-items: center; text-align: center; background: radial-gradient(circle at 50% 40%, rgba(15,107,122,.55), rgba(2,8,11,.92)); color: #d8f3f5; padding: 1rem; }
.bio-start small { max-width: 30ch; opacity: .85; }
.bio-quality { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .8rem; }
.bio-quality span { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.bio-quality span .icon { width: 14px; height: 14px; }
.bio-quality span.ok { background: var(--success-bg); color: var(--success); border-color: transparent; }
.bio-quality span.bad { background: var(--warning-bg); color: var(--warning); border-color: transparent; }
.bio-error { margin-top: .8rem; padding: .7rem .9rem; border-radius: 10px; background: var(--danger-bg); color: var(--danger); font-weight: 600; font-size: .9rem; }
.voice-meter { display: flex; gap: 3px; align-items: center; height: 42px; padding: 0 .3rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.voice-meter i { flex: 1; height: 6px; border-radius: 3px; background: var(--border-2); transition: height .08s, background .08s; }
.voice-meter i.on { height: 26px; background: var(--brand-600); }
.voice-meter i.voiced { background: var(--success); }
.voice-meter i:nth-child(3n).on { height: 32px; } .voice-meter i:nth-child(4n).on { height: 20px; }
.voice-dots { display: flex; gap: .4rem; } .voice-dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--border-2); } .voice-dots i.on { background: var(--success); border-color: var(--success); }
#btn-record.recording { background: var(--danger); border-color: var(--danger); animation: recPulse 1s ease-in-out infinite; }
@keyframes recPulse { 50% { box-shadow: 0 0 0 8px rgba(180,35,24,.15); } }
.small.good, .good { color: var(--success); } .small.bad { color: var(--danger); }
.bio-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; font-size: .84rem; color: var(--muted); }
.bio-checklist li::before { content: "○"; margin-inline-end: .4rem; } .bio-checklist li.ok { color: var(--success); } .bio-checklist li.ok::before { content: "✓"; }
.bio-test-result { display: grid; gap: .35rem; }
.bt-row { display: flex; justify-content: space-between; padding: .45rem .7rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 700; }
.bt-row.good { background: var(--success-bg); color: var(--success); border-color: transparent; } .bt-row.bad { background: var(--danger-bg); color: var(--danger); border-color: transparent; }

/* ------------------------------------------------------------ face sign-in */
.face-login h1 { margin: 0 0 .25rem; }
.fl-steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); gap: .3rem; padding: 0; margin: .9rem 0; }
.fl-steps li { display: grid; justify-items: center; gap: .2rem; font-size: .74rem; font-weight: 700; color: var(--muted); text-align: center; }
.fl-steps li span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1.5px solid var(--border); }
.fl-steps li span .icon { width: 17px; height: 17px; }
.fl-steps li.active { color: var(--ink); } .fl-steps li.active span { background: var(--brand-700); color: #fff; border-color: var(--brand-700); animation: recPulse 1.2s ease-in-out infinite; }
.fl-steps li.done { color: var(--success); } .fl-steps li.done span { background: var(--success); color: #fff; border-color: var(--success); }
.fl-stage { margin-bottom: .6rem; }
.fl-arrow { position: absolute; top: 42%; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; color: #fff; background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.35); animation: flNudge 1s ease-in-out infinite; }
.fl-arrow.left { left: 6%; } .fl-arrow.right { right: 6%; animation-direction: reverse; }
.fl-arrow.ok { background: #39e6a0; border-color: #39e6a0; color: #02080b; animation: none; }
@keyframes flNudge { 50% { transform: translateX(-6px); } }
.fl-meter { position: absolute; bottom: 3.2rem; inset-inline: 12%; background: rgba(2,8,11,.55); border-color: rgba(255,255,255,.15); }
.fl-result { text-align: center; display: grid; gap: .4rem; justify-items: center; padding: .6rem 0; animation: flIn .5s ease; }
@keyframes flIn { from { opacity: 0; transform: scale(.96); } }
.fl-avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand-600), #6E4BD8); box-shadow: 0 0 0 6px var(--success-bg); }
.fl-result h2 { margin: .3rem 0 0; }
.fl-counts { display: flex; gap: .5rem; } .fl-counts span { padding: .25rem .7rem; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-weight: 800; font-size: .85rem; }
.fl-items { list-style: none; margin: .2rem 0; padding: 0; display: grid; gap: .3rem; width: 100%; text-align: start; }
.fl-items li { padding: .45rem .7rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: .88rem; }
.fl-items li.overdue { border-color: rgba(180,35,24,.35); background: var(--danger-bg); }
.fl-error { margin-top: .6rem; }
.face-login-btn { gap: .5rem; } .face-login-btn .icon { width: 20px; height: 20px; color: var(--brand-600); }
@media (prefers-reduced-motion: reduce) { .fl-arrow, .fl-steps li.active span, #btn-record.recording { animation: none; } }

/* ------------------------------------------------------------ Sprint 9.1: enrolment in the face sign-in design, error states */
.fl-steps li.failed { color: var(--danger); } .fl-steps li.failed span { background: var(--danger); color: #fff; border-color: var(--danger); }
.bio-enrol { max-width: 620px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 1.4rem 1.4rem 1.1rem; box-shadow: var(--shadow); }
.bio-enrol .sub { color: var(--muted); margin: 0 0 .4rem; }
.bio-enrolled { display: inline-flex; align-items: center; gap: .35rem; margin: 0 0 .4rem; padding: .2rem .7rem; border-radius: 999px; background: var(--success-bg); color: var(--success); font-weight: 700; font-size: .84rem; }
.bio-enrolled .icon { width: 15px; height: 15px; }
.bio-enrol .fl-error { margin: 0 0 .7rem; }
.bio-progress { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: .2rem; }
.bio-progress > div { display: flex; align-items: center; gap: .5rem; padding: .5rem .7rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.bp-label { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; font-size: .84rem; color: var(--ink-2); } .bp-label .icon { width: 15px; height: 15px; color: var(--brand-600); }
.bp-dots { display: flex; gap: 4px; flex: 1; justify-content: center; } .bp-dots i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--border-2); transition: background .2s, border-color .2s; }
.bp-dots i.on { background: var(--success); border-color: var(--success); }
.bio-progress b { font-size: .82rem; font-variant-numeric: tabular-nums; }
.bio-panel { display: grid; gap: .7rem; margin-top: 1rem; padding: 1rem; border-radius: 16px; border: 1px solid var(--border); background: linear-gradient(180deg, var(--brand-50), var(--surface)); animation: flIn .4s ease; }
.bio-panel p { margin: 0; }
#voice-prompt { font-weight: 700; font-size: 1.02rem; text-align: center; }
.bio-rec { justify-self: center; min-width: 220px; }
#voice-status, #save-status, #test-status { text-align: center; min-height: 1.2em; }
.bio-panel.fl-result { background: var(--surface); }
.fl-avatar .icon { width: 34px; height: 34px; }
.bio-stage .voice-meter.fl-meter { height: 46px; }
@media (max-width: 560px) { .bio-enrol { padding: 1rem .8rem; border-radius: 16px; } .bio-progress { grid-template-columns: 1fr; } }
.btn-lg { min-height: 50px; padding: .7rem 1.4rem; font-size: 1.02rem; border-radius: 12px; }

/* ---------- Sprint 6 part 2: device check, photo enrolment, doors, kiosk modes, biometric access set-up ---------- */
.bio-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .45rem; margin: .2rem 0 .7rem; }
.bio-status-grid > div { padding: .5rem .65rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.bio-status-grid dt { display: flex; align-items: center; gap: .3rem; font-size: .74rem; color: var(--muted); font-weight: 700; }
.bio-status-grid dt .icon { width: 14px; height: 14px; }
.bio-status-grid dd { margin: .15rem 0 0; font-weight: 800; font-size: .9rem; }
.bio-device { margin: .6rem 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.bio-device > summary { display: flex; align-items: center; gap: .4rem; padding: .6rem .8rem; cursor: pointer; font-weight: 700; font-size: .9rem; list-style: none; }
.bio-device > summary::-webkit-details-marker { display: none; }
.bio-device > summary .icon { width: 16px; height: 16px; }
.bio-device > summary:focus-visible { outline: 3px solid var(--brand-600); outline-offset: 2px; border-radius: 14px; }
.bio-device-sum { margin-inline-start: auto; font-size: .78rem; padding: .1rem .55rem; border-radius: 999px; }
.bio-device-sum.good { background: var(--success-bg); color: var(--success); } .bio-device-sum.bad { background: var(--warning-bg); color: var(--warning); }
.bio-device-body { padding: 0 .8rem .8rem; display: grid; gap: .7rem; }
.bio-device-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; font-size: .86rem; }
.bio-device-list li { display: grid; grid-template-columns: 1.4rem 1fr auto; gap: .4rem; align-items: center; padding: .3rem .1rem; border-bottom: 1px dashed var(--border); }
.bio-device-list .dc-icon { width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; background: var(--surface); border: 1px solid var(--border); }
.bio-device-list li.ok .dc-icon { background: var(--success-bg); color: var(--success); border-color: transparent; }
.bio-device-list li.bad .dc-icon { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.bio-device-list .dc-value { font-weight: 700; color: var(--muted); }
.bio-device-list li.bad .dc-value { color: var(--danger); }
.bio-fixes h3, .bio-phone h3, .bio-door-test h3 { font-size: .9rem; margin: 0 0 .3rem; }
.bio-fixes ol { margin: 0; padding-inline-start: 1.2rem; display: grid; gap: .35rem; font-size: .86rem; }
.bio-phone { display: grid; grid-template-columns: 120px 1fr; gap: .8rem; align-items: center; padding: .7rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.bio-qr svg { width: 120px; height: 120px; display: block; border-radius: 8px; }
.bio-share { overflow-wrap: anywhere; direction: ltr; text-align: start; margin: .2rem 0 .4rem; }
.bio-method { display: flex; gap: .4rem; flex-wrap: wrap; margin: .5rem 0 0; }
.bio-method .btn[aria-pressed="true"] { background: var(--brand-700); color: #fff; border-color: var(--brand-700); }
.bio-trouble { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin: .3rem 0; color: var(--warning); font-weight: 600; }
.bio-trouble .icon { width: 16px; height: 16px; }
.bio-h2 { font-size: 1rem; margin: 0; display: flex; align-items: center; gap: .4rem; }
.bio-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .5rem; }
.bio-thumbs li { position: relative; display: grid; gap: .25rem; justify-items: center; padding: .35rem; border-radius: 12px; border: 2px solid var(--border); background: var(--surface); font-size: .72rem; font-weight: 700; text-align: center; }
.bio-thumbs li.ok { border-color: var(--success); color: var(--success); } .bio-thumbs li.bad { border-color: var(--danger); color: var(--danger); }
.bio-thumbs img { width: 96px; height: 96px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.bio-thumb-del { position: absolute; top: 2px; inset-inline-end: 2px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-size: 1rem; line-height: 1; cursor: pointer; }
.bio-thumb-del:focus-visible { outline: 3px solid var(--brand-600); }
.bio-skip-note { padding: .6rem .8rem; border-radius: 12px; background: var(--warning-bg); color: var(--ink); }
.bio-skip-note ul { margin: .3rem 0 0; padding-inline-start: 1.1rem; display: grid; gap: .25rem; }
.bio-doors { background: var(--surface); }
.bio-door-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; max-height: 320px; overflow: auto; }
.bio-door-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; padding: .45rem .6rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.bio-door-list li.gap { border-color: rgba(180,35,24,.35); }
.bio-door-list .chip { font-size: .72rem; }
.bio-door-list .chip .icon { width: 12px; height: 12px; }
.bio-door-test { border-top: 1px solid var(--border); padding-top: .7rem; }
.bio-door-test .select { flex: 1; min-width: 0; }
.fl-alt { justify-content: center; margin: .5rem 0; }
.fl-shots { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.fl-shots li { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.fl-shots li .btn { flex: 1; min-width: 0; white-space: normal; justify-content: flex-start; text-align: start; }
.fl-shots img { width: 56px; height: 56px; flex-shrink: 0; border-radius: 8px; object-fit: cover; border: 2px solid var(--success); }
.kiosk-mode { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; }
.kiosk .chip { display: inline-flex; align-items: center; gap: .3rem; background: rgba(63,214,200,.12); color: #bff3ee; border-color: rgba(63,214,200,.3); }
.kiosk .chip .icon { width: 14px; height: 14px; }
.kiosk-att { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.kiosk-att .btn[aria-pressed="true"] { background: #3fd6c8; color: #031114; border-color: #3fd6c8; }
.kiosk-voice-stage { display: grid; place-items: center; }
.kiosk-mic { width: min(220px, 60%); aspect-ratio: 1; border-radius: 50%; border: 3px solid rgba(63,214,200,.6); background: radial-gradient(circle, rgba(63,214,200,.25), rgba(2,8,11,.6)); color: #e6f3f5; display: grid; place-content: center; justify-items: center; gap: .4rem; font-weight: 800; font-size: 1.05rem; cursor: pointer; }
.kiosk-mic .icon { width: 56px; height: 56px; }
.kiosk-mic:focus-visible { outline: 4px solid #fff; outline-offset: 4px; }
.kiosk-voice-stage .fl-meter { bottom: 3.4rem; }
.bioac-toc { display: flex; gap: .4rem; flex-wrap: wrap; margin: -.4rem 0 1rem; }
.bioac-toc a { padding: .25rem .7rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: .82rem; font-weight: 700; }
.bioac .card-header h2 { display: flex; align-items: center; gap: .45rem; }
.bioac-h3 { font-size: .95rem; margin: .4rem 0 0; }
.bioac-modes { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .5rem; }
.bioac-modes legend { font-weight: 800; margin-bottom: .45rem; padding: 0; }
.bioac-mode { display: flex; gap: .55rem; align-items: flex-start; padding: .65rem .75rem; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; }
.bioac-mode:has(input:checked) { border-color: var(--brand-700); background: var(--brand-50); }
.bioac-mode input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--brand-700); flex-shrink: 0; }
.bioac-mode span { display: grid; gap: .15rem; } .bioac-mode small { color: var(--muted); font-size: .8rem; }
.bioac-toggles { display: grid; gap: .55rem; }
.bioac-toggles .check, .bioac .check { align-items: flex-start; }
.bioac .check span { display: grid; gap: .1rem; } .bioac .check small { font-weight: 400; }
.bioac-thresholds .field small { display: block; margin-top: .2rem; font-size: .78rem; }
.bioac-save { justify-content: flex-end; }
.bioac-span { grid-column: 1 / -1; }
.bioac-doors-wrap { max-height: 640px; overflow: auto; }
.bioac-doors thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); }
.bioac-doors .select { min-width: 150px; max-width: 230px; }
.bioac-cov { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.bioac-cov span { display: block; height: 100%; }
.bioac-cov .full, .bioac-legend .sw.full { background: var(--success); }
.bioac-cov .face, .bioac-legend .sw.face { background: #f0a63a; }
.bioac-cov .none, .bioac-legend .sw.none { background: repeating-linear-gradient(45deg, #c9d3d6, #c9d3d6 4px, #e8eef0 4px, #e8eef0 8px); }
.bioac-legend { gap: .4rem; flex-wrap: wrap; }
.bioac-legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-inline-end: .35rem; vertical-align: -1px; }
.bioac-filter { align-items: flex-end; gap: .6rem; flex-wrap: wrap; }
.bioac-filter .field { margin: 0; min-width: 180px; }
.bioac-yes { color: var(--success); font-weight: 700; display: inline-flex; align-items: center; gap: .2rem; }
.bioac-no { color: var(--muted); display: inline-flex; align-items: center; gap: .2rem; }
.bioac-yes .icon, .bioac-no .icon { width: 14px; height: 14px; }
.bioac-console { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.bioac-stage { max-width: 480px; }
.bioac-result th { width: 38%; font-weight: 700; }
.bioac-diag { white-space: pre-wrap; overflow-wrap: anywhere; padding: .6rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); direction: ltr; text-align: left; }
@media (max-width: 760px) {
  .bioac-console { grid-template-columns: 1fr; }
  .bio-phone { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .bioac-doors thead { display: none; }
  .bioac-doors tr { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
  .bioac-doors td { border: 0; padding: .15rem .5rem; }
  .bioac-doors td:first-child { grid-column: 1 / -1; }
  .bioac-doors .select { min-width: 0; width: 100%; }
  .bioac-cov-table thead { display: none; }
  .bioac-cov-table tr { display: grid; grid-template-columns: 2rem 1fr 1fr; gap: .2rem .4rem; padding: .55rem 0; border-bottom: 1px solid var(--border); }
  .bioac-cov-table td { border: 0; padding: .1rem .3rem; }
  .bioac-cov-table td:first-child { grid-row: span 3; }
  .bioac-cov-table td:nth-child(2) { grid-column: 2 / -1; }
  .kiosk-mic { width: min(170px, 55%); }
}
@media (prefers-reduced-motion: reduce) { .bio-thumbs li, .bioac-mode { transition: none; } }
