/* VERVE POS WEB R21 FINAL STRICT CLOSURE — last visual/interaction override. */
:root{--vfr-sidebar:178px!important;--vfr-sidebar-collapsed:60px!important}

/* Open sidebar: slimmer but readable. Closed: locked icon-only stack remains 60px. */
.vd-sidebar-head{padding-left:5px!important;padding-right:31px!important}.vd-sidebar-head img{width:100px!important}.vd-outlet{margin-left:6px!important;margin-right:6px!important}.vd-nav-top-level{padding-left:4px!important;padding-right:4px!important}.vd-nav-top-level .vd-nav-item{padding-left:5px!important;padding-right:5px!important;grid-template-columns:24px minmax(0,1fr) 13px!important;gap:5px!important}.vd-nav-top-level .vd-nav-label{font-size:11.5px!important}.vfr-inline-subnav.r3-open{margin-left:27px!important}.vd-sidebar-bottom{flex-direction:row!important;gap:9px!important}.vd-app.collapsed .vd-sidebar-bottom{flex-direction:column!important;gap:7px!important}.vd-app.collapsed .vd-status-ghost{order:1!important}.vd-app.collapsed .vd-kshield{order:2!important}

/* All core modal workspaces stay inside one viewport; their own panes scroll. */
.vd-modal-card:has(.vf-catalog){width:min(1080px,97vw)!important;height:min(840px,92vh)!important;max-height:92vh!important;overflow:hidden!important;padding:15px 18px 17px!important}.vd-modal-card:has(.vf-catalog) #dialogContent,.vd-modal-card:has(.vf-catalog) .vf-catalog{height:100%!important;min-height:0!important}.vf-catalog{grid-template-rows:auto auto minmax(0,1fr)!important}.vf-catalog #vfCatalogBody{min-height:0!important;overflow:hidden!important}.vf-integrated-menu{height:100%!important;min-height:0!important;grid-template-columns:minmax(185px,235px) minmax(0,1fr)!important}.vf-category-pane,.vf-item-pane{min-height:0!important;height:100%!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}.vf-category-list{min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding-right:5px!important;scrollbar-width:thin}.vf-item-pane>.vf-catalog-list{flex:1 1 auto!important;max-height:none!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin;padding-right:6px!important}.vf-catalog-row{grid-template-columns:60px minmax(0,1fr) auto!important}.vf-product-thumb{width:56px!important;height:56px!important;border-radius:10px!important;overflow:hidden!important;background:var(--surface)!important;display:grid!important;place-items:center!important}.vf-product-thumb img{width:100%!important;height:100%!important;object-fit:cover!important}.vf-catalog-actions{flex-wrap:wrap!important;justify-content:flex-end!important}.vf-danger,.danger{color:var(--bad)!important;border-color:color-mix(in srgb,var(--bad) 45%,var(--line))!important}

/* K Shield: one page, no outer/full-modal scrolling. */
.vd-modal-card:has(.fc-kshield-r21){width:min(850px,96vw)!important;height:min(640px,91vh)!important;max-height:91vh!important;overflow:hidden!important;padding:12px 14px 14px!important}.vd-modal-card:has(.fc-kshield-r21) #dialogContent{height:100%!important;overflow:hidden!important}.fc-kshield-r21{width:100%!important;height:100%!important;max-width:none!important;grid-template-columns:210px minmax(0,1fr)!important;gap:14px!important;overflow:hidden!important}.fc-kshield-r21 .fc-kshield-vera{width:210px!important;min-width:210px!important;height:100%!important;overflow:visible!important;align-self:stretch!important;justify-content:center!important}.fc-kshield-r21 .fc-kshield-vera>.vera-motion-host{width:205px!important;height:300px!important;min-width:205px!important;min-height:300px!important}.fc-kshield-r21 .fc-kshield-talk{display:flex!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important}.fc-kshield-r21 .fc-speech{flex:0 0 auto!important;padding:10px 12px!important}.fc-kshield-r21 .fc-speech h2{font-size:20px!important;margin:3px 0!important}.fc-kshield-r21 .fc-speech p{font-size:11px!important;margin:3px 0!important}.fc-kshield-r21 .fc-vera-support-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;margin-top:8px!important}.fc-kshield-r21 .fc-vera-tech-result{min-height:0!important;max-height:185px!important;overflow:auto!important;margin-top:8px!important;padding-right:3px!important}.fc-kshield-r21 .fc-vera-tech-result ol{margin:7px 0!important;padding-left:19px!important}.fc-kshield-r21 .fc-vera-tech-result li{margin:3px 0!important;font-size:11px!important}.fc-kshield-r21 .fc-vera-human{margin-top:7px!important;flex:0 0 auto!important}.fc-kshield-r21 .fc-vera-human summary{font-size:11px!important;padding:7px 0!important}.fc-kshield-r21 .fc-vera-human-grid{display:grid!important;grid-template-columns:1fr 1.35fr auto!important;gap:6px!important}.fc-kshield-r21 .fc-vera-human-grid textarea{min-height:42px!important;height:42px!important;resize:none!important}.fc-kshield-r21 .fc-vera-human p{font-size:9px!important;margin:4px 0!important}.fc-kshield-r21 .fc-kshield-actions{margin-top:auto!important;padding-top:8px!important}

/* Daily Quote: compact floating card, quote only. */
.vd-modal-card:has(.vera-r21-quote){width:min(470px,90vw)!important;max-height:340px!important;overflow:hidden!important;padding:10px 13px 13px!important}.vd-vera-quote.vera-r21-quote{width:100%!important;display:grid!important;grid-template-columns:88px minmax(0,1fr)!important;gap:11px!important;align-items:center!important;padding:5px 8px 7px!important}.vera-r21-quote .vd-vera-quote-rail{width:84px!important;height:94px!important;overflow:visible!important;display:grid!important;place-items:center!important}.vera-r21-quote .vd-vera-quote-rail>.vera-motion-host{width:84px!important;height:94px!important;min-width:84px!important;min-height:94px!important}.vera-r21-quote .vd-vera-quote-copy h2{font-size:18px!important;line-height:1.16!important;margin:4px 0!important}.vera-r21-quote .vd-kicker{font-size:9px!important}

/* JAKIM: compact and calm, no redundant staff-control remark. */
.vd-prayer-panel.vera-r21-prayer{width:min(585px,calc(100vw - 24px))!important;grid-template-columns:136px minmax(0,1fr)!important;gap:11px!important;padding:11px 12px!important;max-height:390px!important;overflow:hidden!important}.vera-r21-prayer .vd-prayer-vera-rail{width:136px!important;min-width:136px!important;display:flex!important;flex-direction:column!important;align-items:center!important;overflow:visible!important}.vera-r21-prayer .vd-prayer-vera-rail>.vera-motion-host{width:128px!important;height:136px!important;min-width:128px!important;min-height:136px!important}.vera-r21-prayer .vd-prayer-quote{font-size:9.5px!important;line-height:1.3!important;padding:7px!important;margin-top:2px!important}.vera-r21-prayer .vd-prayer-copy h3{font-size:18px!important;margin:2px 0 7px!important}.vera-r21-prayer .vd-prayer-times{gap:4px!important}.vera-r21-prayer .vd-prayer-times>div{padding:5px 7px!important}.vera-r21-prayer .vd-prayer-staff-actions{font-size:9.5px!important;margin-top:6px!important;padding:6px 7px!important}

/* Articulated VERA visibility and stronger independent movement. */
.vera-motion-host>.vera-motion-head,.vera-motion-host>.vera-motion-arm{transform-box:fill-box!important;backface-visibility:hidden!important}.vera-motion-host[data-vera-state="speaking"]>.vera-motion-arm-l{animation-duration:.72s!important}.vera-motion-host[data-vera-state="speaking"]>.vera-motion-arm-r{animation-duration:.86s!important}.vera-motion-host[data-vera-state="speaking"]>.vera-motion-head{animation-duration:.82s!important}.vera-motion-host[data-vera-state="speaking"] .vera-mouth-live{filter:drop-shadow(0 1px 1px rgba(70,20,30,.25))}.vera-motion-host[data-vera-state="speaking"] .vera-mouth-live i{animation-duration:.18s!important}.vera-motion-host[data-vera-state="guiding"]>.vera-motion-arm-l{animation-duration:.55s!important}

/* Settings: left controls + always-useful preview at right. */
.vd-settings-page{overflow:hidden!important}.vd-settings-workspace{display:grid!important;grid-template-columns:minmax(500px,1.35fr) minmax(300px,.8fr)!important;gap:16px!important;height:calc(100vh - 160px)!important;min-height:0!important}.vd-settings-stack{min-height:0!important;overflow-y:auto!important;padding-right:5px!important;scrollbar-width:thin}.vd-settings-preview{position:sticky!important;top:0!important;align-self:start!important;max-height:calc(100vh - 178px)!important;overflow:auto!important;border:1px solid var(--line)!important;border-radius:16px!important;background:var(--surface)!important;padding:16px!important;box-shadow:var(--shadow)!important}.vd-settings-preview-screen{display:flex!important;gap:12px!important;align-items:center!important;margin-top:12px!important;padding:15px!important;border:1px solid var(--line)!important;border-radius:14px!important;background:var(--surface2)!important}.vd-settings-receipt-preview{display:grid!important;gap:5px!important;padding:16px!important;margin-top:12px!important;border-radius:14px!important;background:#fff!important;color:#161616!important}.vd-preview-kshield img{width:52px!important;height:52px!important;object-fit:contain!important;filter:drop-shadow(0 0 7px var(--preview-color))!important}

/* Device Fleet: compact list + real map/health inspector. */
.fc-device-toolbar{margin-bottom:10px!important}.fc-device-split{display:grid!important;grid-template-columns:minmax(260px,32%) minmax(0,1fr)!important;gap:13px!important;height:min(590px,calc(100vh - 205px))!important;min-height:390px!important}.fc-device-list,.fc-device-inspector{min-height:0!important;overflow:hidden!important}.fc-device-list{display:flex!important;flex-direction:column!important;padding:10px!important}.fc-device-list-head{display:flex!important;justify-content:space-between!important;align-items:center!important;padding:4px 4px 10px!important}.fc-device-scroll{min-height:0!important;overflow-y:auto!important;display:grid!important;align-content:start!important;gap:6px!important;padding-right:3px!important;scrollbar-width:thin}.fc-device-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;text-align:left!important;padding:9px 10px!important;border-radius:11px!important}.fc-device-row>span{display:grid!important;gap:2px!important}.fc-device-row.active{border-color:var(--accent)!important;background:color-mix(in srgb,var(--accent) 8%,var(--surface2))!important}.fc-device-inspector{display:grid!important;grid-template-rows:minmax(220px,1fr) auto auto!important;gap:10px!important;padding:10px!important}.fc-device-map{min-height:0!important;border:1px solid var(--line)!important;border-radius:13px!important;overflow:hidden!important;background:var(--surface2)!important}.fc-device-map iframe{display:block!important;width:100%!important;height:100%!important;min-height:250px!important;border:0!important}.fc-device-map-empty{position:relative!important;height:100%!important;min-height:250px!important;display:grid!important;place-content:center!important;text-align:center!important;gap:6px!important;padding:16px!important;overflow:hidden!important}.fc-device-map-grid{position:absolute!important;inset:0!important;opacity:.16!important;background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px)!important;background-size:28px 28px!important}.fc-device-pin{position:relative!important;font-size:28px!important;color:var(--pink)!important}.fc-device-map-empty strong,.fc-device-map-empty small{position:relative!important}.fc-device-health{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px!important}.fc-device-health>div{display:grid!important;gap:2px!important;padding:8px!important;border:1px solid var(--line)!important;border-radius:10px!important;background:var(--surface2)!important}.fc-device-health small{font-size:8px!important;color:var(--muted)!important}.fc-device-health b{font-size:10px!important;overflow-wrap:anywhere!important}.fc-vera-device-fix{padding:10px 12px!important;border:1px solid color-mix(in srgb,var(--pink) 30%,var(--line))!important;border-radius:12px!important;background:color-mix(in srgb,var(--pink) 5%,var(--surface2))!important}.fc-vera-device-fix p{margin:3px 0!important;font-size:10px!important}.fc-device-build-note{margin:9px 0 0!important;font-size:9px!important}

/* Gel Blaster has its own package management surface, never mixed into general catalog. */
.vd-gel-split{display:grid!important;grid-template-columns:minmax(300px,.8fr) minmax(0,1.2fr)!important;gap:14px!important;min-height:0!important}.vd-gel-packages,.vd-gel-bookings{min-height:0!important;max-height:calc(100vh - 330px)!important;overflow:auto!important;scrollbar-width:thin}.vd-gel-package{display:grid!important;grid-template-columns:64px minmax(0,1fr) auto!important;gap:9px!important;align-items:center!important;padding:9px!important}.vd-gel-package-art{width:60px!important;height:60px!important;overflow:hidden!important;border-radius:10px!important}.vd-gel-package-art img{width:100%!important;height:100%!important;object-fit:cover!important}

/* Document master templates: corporate editor + A4 preview. */
.vd-doc-page{overflow:hidden!important}.vd-doc-template-workspace{display:grid!important;grid-template-columns:minmax(330px,.75fr) minmax(420px,1.25fr)!important;gap:16px!important;height:calc(100vh - 170px)!important;min-height:0!important}.vd-doc-template-controls{min-height:0!important;overflow:auto!important;display:grid!important;gap:10px!important;align-content:start!important}.vd-document-logo-preview{display:flex!important;align-items:center!important;gap:10px!important;padding:8px!important;border:1px solid var(--line)!important;border-radius:12px!important}.vd-document-logo-preview img{width:90px!important;height:52px!important;object-fit:contain!important;background:transparent!important}.vd-doc-template-preview{min-height:0!important;overflow:auto!important;display:grid!important;align-content:start!important;justify-items:center!important}.vd-system-a4{width:min(100%,600px)!important;aspect-ratio:210/297!important;min-height:680px!important;background:#fff!important;color:#171717!important;padding:42px 38px!important;box-shadow:0 16px 45px #0005!important;border-radius:3px!important;font-family:Arial,sans-serif!important;overflow:hidden!important}.vd-system-a4 header{display:flex!important;align-items:center!important;gap:14px!important}.vd-system-doc-logo-img{width:74px!important;height:54px!important;object-fit:contain!important;background:transparent!important}.vd-system-a4 h2{margin:0!important;font-size:19px!important;color:#111!important}.vd-system-a4 p,.vd-system-a4 small{color:#555!important;margin:3px 0!important}.vd-system-a4 hr{border:0!important;border-top:3px solid var(--doc-accent,#171717)!important;margin:12px 0 17px!important}.vd-system-doc-kicker{font-size:9px!important;letter-spacing:.15em!important;font-weight:800!important;color:#555!important}.vd-system-a4> b{display:block!important;font-size:20px!important;margin:4px 0 12px!important}.vd-system-a4 h3{font-size:10px!important;letter-spacing:.08em!important;text-transform:uppercase!important;border-bottom:1px solid #bbb!important;padding-bottom:4px!important;margin:17px 0 8px!important;color:#222!important}.vd-system-form-lines{display:grid!important;grid-template-columns:130px 1fr!important;gap:10px!important;font-size:10px!important}.vd-system-form-lines i{border-bottom:1px solid #aaa!important}.vd-system-form-box{height:78px!important;border:1px solid #aaa!important;border-radius:4px!important}.vd-system-form-box.small{height:52px!important}.vd-system-a4 footer{margin-top:28px!important;padding-top:7px!important;border-top:1px solid #ddd!important;font-size:8px!important;color:#666!important}

/* HR live hard-copy previews inherit a corporate document look. */
.hr-corporate-form,.hr-a4-preview{background:#fff!important;color:#15171a!important}.hr-corp-head{display:flex!important;gap:14px!important;align-items:center!important;border-bottom:3px solid #222!important;padding-bottom:11px!important}.hr-corp-head img{width:68px!important;height:52px!important;object-fit:contain!important}.hr-corp-head h1{margin:0!important;font-size:18px!important;color:#111!important}.hr-corp-section h3{font-size:10px!important;letter-spacing:.08em!important;text-transform:uppercase!important;border-bottom:1px solid #aaa!important;padding-bottom:4px!important}

/* Build / version designer signature is transparent and clean. */
.vd-designer-mark{background:transparent!important;border:0!important}.vd-designer-mark img,.vd-designer-signature{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important;mix-blend-mode:screen;max-height:145px!important;object-fit:contain!important}.vd-designer-mark{grid-template-columns:minmax(140px,230px) 1fr!important}

/* Finance protected record controls. */
.vd-finance-row-actions{display:flex!important;gap:5px!important;justify-content:flex-end!important}.vd-finance-row-actions button{min-height:32px!important;padding:6px 8px!important;font-size:10px!important}

/* Generic long-list search pattern stays compact. */
.vd-list-search,.vd-stock-search{position:relative!important}.vd-list-search input,.vd-stock-search input{width:100%!important}

@media(max-width:1050px){:root{--vfr-sidebar:170px!important}.vd-settings-workspace{grid-template-columns:minmax(430px,1.15fr) minmax(260px,.85fr)!important}.fc-device-split{grid-template-columns:minmax(230px,34%) minmax(0,1fr)!important}.fc-device-health{grid-template-columns:repeat(3,minmax(0,1fr))!important}.vd-doc-template-workspace{grid-template-columns:minmax(300px,.8fr) minmax(360px,1.2fr)!important}}
@media(max-width:820px){.vd-settings-workspace,.vd-doc-template-workspace,.fc-device-split,.vd-gel-split{grid-template-columns:1fr!important;height:auto!important}.vd-settings-page,.vd-doc-page{overflow:auto!important}.vd-settings-stack{overflow:visible!important}.vd-settings-preview{position:static!important;max-height:none!important}.fc-device-split{height:auto!important}.fc-device-list{max-height:260px!important}.fc-device-inspector{grid-template-rows:260px auto auto!important}.vd-doc-template-controls{max-height:none!important}.vd-doc-template-preview{max-height:70vh!important}.fc-device-health{grid-template-columns:repeat(2,minmax(0,1fr))!important}.vf-integrated-menu{grid-template-columns:180px minmax(0,1fr)!important}}
@media(max-width:720px){:root{--vfr-sidebar-collapsed:58px!important}.vd-modal-card:has(.fc-kshield-r21){height:92vh!important;overflow:hidden!important}.fc-kshield-r21{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:120px minmax(0,1fr)!important}.fc-kshield-r21 .fc-kshield-vera{width:100%!important;min-width:0!important;height:120px!important}.fc-kshield-r21 .fc-kshield-vera>.vera-motion-host{width:110px!important;height:116px!important;min-width:110px!important;min-height:116px!important}.fc-kshield-r21 .fc-vera-support-grid{grid-template-columns:1fr!important}.fc-kshield-r21 .fc-vera-tech-result{max-height:150px!important}.fc-kshield-r21 .fc-vera-human-grid{grid-template-columns:1fr!important}.vd-prayer-panel.vera-r21-prayer{grid-template-columns:105px minmax(0,1fr)!important}.vera-r21-prayer .vd-prayer-vera-rail{width:105px!important;min-width:105px!important}.vera-r21-prayer .vd-prayer-vera-rail>.vera-motion-host{width:100px!important;height:106px!important;min-width:100px!important;min-height:106px!important}.vera-r21-prayer .vd-prayer-quote{font-size:8.5px!important}.vf-integrated-menu{grid-template-columns:1fr!important;grid-template-rows:165px minmax(0,1fr)!important}.vf-category-pane{max-height:165px!important}.vf-catalog-row{grid-template-columns:50px minmax(0,1fr)!important}.vf-catalog-actions{grid-column:1/-1!important}.vd-modal-card:has(.vf-catalog){height:94vh!important}.vd-vera-quote.vera-r21-quote{grid-template-columns:72px minmax(0,1fr)!important}.vera-r21-quote .vd-vera-quote-rail,.vera-r21-quote .vd-vera-quote-rail>.vera-motion-host{width:68px!important;height:78px!important;min-width:68px!important;min-height:78px!important}.vera-r21-quote .vd-vera-quote-copy h2{font-size:16px!important}.vd-system-a4{min-height:590px!important;padding:28px 24px!important}}
html[data-theme="light"] .vd-designer-mark img,html[data-theme="light"] .vd-designer-signature{filter:invert(1)!important;mix-blend-mode:normal!important}html[data-theme="dark"] .vd-designer-mark img,html[data-theme="dark"] .vd-designer-signature{filter:none!important;mix-blend-mode:normal!important}

/* R21 Demo/QC — dedicated VΞRA articulation acceptance stage. */
.vd-demo-vera-card{grid-column:span 2!important;display:grid!important;grid-template-columns:minmax(0,1fr) 190px!important;gap:16px!important;align-items:center!important}.vd-demo-vera-stage{height:180px!important;display:grid!important;place-items:center!important;overflow:visible!important;border:1px solid var(--line)!important;border-radius:14px!important;background:radial-gradient(circle at 50% 45%,color-mix(in srgb,var(--pink) 12%,transparent),transparent 68%)!important}.vd-demo-vera-stage>.vera-motion-host{width:165px!important;height:165px!important;min-width:165px!important;min-height:165px!important}.vd-demo-vera-stage>img{width:165px!important;height:165px!important;object-fit:contain!important}@media(max-width:720px){.vd-demo-vera-card{grid-column:auto!important;grid-template-columns:1fr!important}.vd-demo-vera-stage{height:150px!important}.vd-demo-vera-stage>.vera-motion-host,.vd-demo-vera-stage>img{width:135px!important;height:135px!important;min-width:135px!important;min-height:135px!important}}
