/* Large-screen fitting. On 1440p/4K screens at 100% OS scaling the fixed-width pages became a narrow strip of
   small text, so the whole UI scales in steps until it fills the screen like 1080p does. Nothing changes below
   2200px wide (phones, laptops, 1080p) unless the user picks a text size for that screen.
   CSS zoom also scales vh/vw lengths, so every full-viewport size that is not already capped in px is divided by
   --kz below. tests/Unit/Korps/ScreenFitCssTest.php fails when a new vh/vw rule appears, so it gets reviewed here. */
/* The zoom factor is set per screen by the inline script in components/styles.blade.php (its width steps
   times the user's "Text size on this screen" choice), which adds .kz to <html> whenever the factor is not 1. */
html.kz{zoom:var(--kz)}
/* Krayin build utilities */
html.kz .h-\[100vh\]{height:calc(100vh / var(--kz))}
html.kz .h-\[calc\(100vh-100px\)\]{height:calc(100vh / var(--kz) - 100px)}
html.kz .h-\[calc\(100vh-317px\)\]{height:calc(100vh / var(--kz) - 317px)}
html.kz .max-h-\[60vh\]{max-height:calc(60vh / var(--kz))}
html.kz .max-h-\[80vh\]{max-height:calc(80vh / var(--kz))}
html.kz .max-h-\[calc\(100vh-300px\)\]{max-height:calc(100vh / var(--kz) - 300px)}
html.kz .min-h-\[calc\(100vh-62px\)\]{min-height:calc(100vh / var(--kz) - 62px)}
/* Shell, chat, search and auth (workspace.css, sales-queues.css, inline view styles) */
html.kz .korps-main{min-height:calc(100vh / var(--kz) - 68px)!important}
html.kz #admin-sidebar.korps-sidebar{height:calc(100dvh / var(--kz) - 68px)}
html.kz .k-juno-panel{height:calc(100dvh / var(--kz))}
html.kz .korps-chat{height:calc(100dvh / var(--kz))}
html.kz .korps-chat #agent-messages{max-height:calc(100dvh / var(--kz) - 230px)!important}
html.kz .korps-app #agent-messages{max-height:calc(55vh / var(--kz))}
html.kz .korps-auth{min-height:calc(100vh / var(--kz))}
html.kz .korps-auth-shell{min-height:calc(100dvh / var(--kz))}
html.kz .korps-auth-form{min-height:calc(100dvh / var(--kz))!important}
html.kz .k-photo-editor{max-height:calc(100dvh / var(--kz) - 24px)}
html.kz .k-queue-menu{max-height:calc(100vh / var(--kz) - 16px)}
html.kz .k-agent-stack[style*="dvh"]{max-height:calc(100dvh / var(--kz) - 100px)!important}
html.kz #agent-browser-dialog{width:calc(100vw / var(--kz) - 16px)!important;height:calc(100dvh / var(--kz) - 16px)!important}
html.kz body.k-browser-page{min-height:calc(100dvh / var(--kz))}
html.kz .k-browser-stage img{max-height:calc(100dvh / var(--kz) - 250px)}
/* Recruiting and candidate directory */
html.kz .kro .kro-col{max-height:calc(78vh / var(--kz))}
html.kz .krp{min-height:calc(100vh / var(--kz))}
html.kz .cd-dialog,html.kz .cd-preview{max-height:calc(85vh / var(--kz))}
html.kz .cd-preview{height:calc(100dvh / var(--kz));max-height:calc(100dvh / var(--kz))}
/* Jobs list bulk dialog + toast (jobs-ui.css) and the shared .kui-dialog/.kui-toast primitives (k-ui.css) */
html.kz .k-jobs-list .kj-dialog,html.kz .kui-dialog{max-height:calc(85vh / var(--kz));width:min(520px,calc(100vw / var(--kz) - 30px))}
html.kz .k-jobs-list .kj-toast,html.kz .kui-toast{max-width:calc(90vw / var(--kz))}
/* Sign-in */
html.kz .kl{min-height:calc(100dvh / var(--kz))}
html.kz .kl-wrap{min-height:calc(100dvh / var(--kz));gap:calc(6vw / var(--kz));padding:48px calc(7vw / var(--kz))}
/* "Text size on this screen" control in the profile menu (desktop widths only, matching the script). */
.korps-text-size{display:flex;align-items:center;gap:6px;padding:8px 20px;font-size:13px;color:var(--kui-muted,#8b93a7)}
.korps-text-size>span{flex:1;min-width:0;white-space:nowrap}
.korps-text-size button{min-width:30px;height:28px;padding:0 8px;border:1px solid var(--kui-line,#2a3142);border-radius:8px;background:transparent;color:var(--kui-ink,inherit);font-size:12px;font-weight:650;cursor:pointer}
.korps-text-size button:hover,.korps-text-size button:focus-visible{border-color:var(--kui-accent,#e3a43b);color:var(--kui-accent,#e3a43b)}
.korps-text-size output{min-width:42px;text-align:center;font-variant-numeric:tabular-nums;color:var(--kui-ink,inherit)}
@media (max-width:1279px){.korps-text-size{display:none}}
