/* Business UI adaptation of the three glass routes. All motion uses cubic-bezier curves. */
:root{--motion-soft:cubic-bezier(.22,1,.36,1);--motion-standard:cubic-bezier(.4,0,.2,1);--motion-spring:cubic-bezier(.18,.82,.28,1.08);--glass-border:rgba(255,255,255,.86)}
html{scroll-behavior:smooth;scrollbar-gutter:stable}body{background:radial-gradient(ellipse at 90% 0%,#e8edff75,transparent 42%),var(--bg);overflow-x:clip}
.cs-filter-definitions{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:-1}
header[data-effect=frosted]{position:sticky;top:0;z-index:8;background:rgba(255,255,255,.82);backdrop-filter:blur(18px) saturate(150%);-webkit-backdrop-filter:blur(18px) saturate(150%);border-bottom-color:#e1e6f077}
.sidebar[data-effect=frosted]{background:rgba(255,255,255,.89);backdrop-filter:blur(18px) saturate(130%);-webkit-backdrop-filter:blur(18px) saturate(130%);box-shadow:inset -1px 0 #ffffffa6}
dialog[data-effect=frosted]{background:rgba(255,255,255,.96);backdrop-filter:blur(20px) saturate(125%);-webkit-backdrop-filter:blur(20px) saturate(125%);border-color:var(--glass-border);box-shadow:inset 0 1px #fff,0 25px 90px #26386126;max-height:calc(100dvh - 44px);overflow-y:auto;overscroll-behavior:contain;animation:cs-dialog-enter .3s var(--motion-soft) both}
dialog::backdrop{background:#27395636;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);animation:cs-backdrop-enter .25s var(--motion-standard) both}
.cs-refraction{position:relative;isolation:isolate;border:1px solid #ffffffc7;box-shadow:inset 0 1px 0 #ffffffde,inset 1px 0 0 #ffffff8c,0 7px 24px #334f8710;backdrop-filter:var(--cs-lens,blur(9px)) saturate(130%);-webkit-backdrop-filter:blur(9px) saturate(130%)}
.duty-banner.cs-refraction{background:linear-gradient(120deg,#edf3ffbd,#f7faffdc);border-radius:14px}.stat.accent.cs-refraction{background:linear-gradient(135deg,#4263ebf2,#5273e9dc 65%,#6b89eee6);border-color:#7089f759;box-shadow:inset 0 1px 0 #ffffff66,0 9px 26px #4263eb1c}
.cs-refraction:before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(135deg,#ffffff30,transparent 42%,#ffffff08 75%,#ffffff16);z-index:-1}
.cs-shader-host{position:relative;isolation:isolate;border-radius:24px;overflow:hidden;padding:36px 30px;min-height:390px;border:1px solid #e2e9fa;background:radial-gradient(ellipse at 20% 0%,#d9e2ff,transparent 68%),linear-gradient(145deg,#f5f7ff,#edf3ff);box-shadow:inset 0 1px 0 #fff,0 16px 42px #4263eb07}
.cs-shader-host>*:not(canvas){position:relative;z-index:1}.cs-shader-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0;opacity:.9}.cs-shader-host:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#f3f6ff35,#ffffff00 80%);pointer-events:none;z-index:0}.auth-copy.cs-shader-host p{color:#68788f}.auth-copy.cs-shader-host .tag{color:#617391;font-size:10px;letter-spacing:.4px;line-height:2}
.auth-shell{gap:34px;max-width:1090px;margin-top:5vh}.auth-card{box-shadow:0 12px 38px #26375806;border-color:#e4e8f1}.auth-copy h1{font-size:clamp(29px,2.5vw,38px)}
nav button,.quiet,.account,.shift-option,.person,.cover,.pill,.avatar,.logo{transition:background-color .24s var(--motion-standard),border-color .24s var(--motion-standard),color .2s var(--motion-standard),box-shadow .34s var(--motion-soft),transform .34s var(--motion-soft),opacity .22s var(--motion-standard)}
.cover:hover,.person:hover{border-color:#d3ddf6;box-shadow:0 6px 18px #273e6d08}.tabs button:hover{transform:translateY(-1px)}.avatar{box-shadow:inset 0 1px #ffffffb3}.logo:hover{transform:rotate(-4deg) scale(1.04)}.account:has(input:checked),.shift-option:has(input:checked){transform:translateY(-1px)}.notice,.duty-banner{transition:border-color .25s var(--motion-standard),background-color .25s var(--motion-standard),box-shadow .35s var(--motion-soft)}
.card,.stat,.person{animation-duration:.42s;animation-timing-function:var(--motion-soft)}.stat:nth-child(2){animation-delay:.025s}.stat:nth-child(3){animation-delay:.05s}.stat:nth-child(4){animation-delay:.075s}#toast{transition:opacity .28s var(--motion-standard),transform .38s var(--motion-soft)}
.sidebar{min-height:0}.sidebar nav{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.sidebar .side-bottom{flex-shrink:0;padding-top:14px}.page-title,.card-head,.person-head{min-width:0}.page-title h1{overflow-wrap:anywhere}.top-right{min-width:0}#identity{overflow-wrap:anywhere;line-height:1.6}.filters>*,.actions>*{min-width:0}.table-wrap{max-width:100%;scrollbar-width:thin;overscroll-behavior-x:contain}.table-wrap:focus-visible{outline:2px solid var(--blue);outline-offset:4px}input,select,textarea{scroll-margin-top:110px}input[type=time]{min-width:0;min-height:42px}.coverage .cover h3{line-height:1.8}.detail-grid{min-width:0}.detail-grid>*{min-width:0}.event b{line-height:1.7}.event .row{align-items:flex-start}.event time{white-space:nowrap;line-height:1.8}.event small{overflow-wrap:anywhere}.duty-banner>*{min-width:0}.duty-banner p{overflow-wrap:anywhere}
@keyframes cs-dialog-enter{from{opacity:0;transform:translateY(12px) scale(.975)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes cs-backdrop-enter{from{opacity:0}to{opacity:1}}
@media(min-width:581px) and (max-height:760px){.sidebar{padding-top:22px;padding-bottom:18px}.workspace{margin-top:27px}.sidebar nav{gap:3px}.sidebar nav button{padding-top:10px;padding-bottom:10px}.side-bottom small{display:none}.side-bottom a{margin-top:10px;padding-top:10px}}
@media(max-width:1150px){.auth-shell{gap:25px}.cs-shader-host{padding:30px 23px;min-height:370px}.auth-copy.cs-shader-host .tag{margin-top:26px}.top-right{gap:12px}}
@media(min-width:581px) and (max-width:880px){.sidebar nav button{font-size:10px;line-height:1.4;padding:10px 4px;white-space:normal}.sidebar nav b{display:block;margin:0 auto 5px}.sidebar nav{gap:5px;overflow-x:hidden}.cs-shader-host{min-height:230px;padding:28px}.auth-copy.cs-shader-host p{display:block;max-width:none;font-size:12px;margin-bottom:0}.auth-copy.cs-shader-host .tag{display:block;margin-top:15px}.auth-copy.cs-shader-host h1{font-size:28px}.auth-shell{max-width:520px;margin-top:12px}}
@media(max-width:580px){html{scrollbar-gutter:auto}.sidebar[data-effect=frosted]{position:sticky;top:0;z-index:12;display:block;padding:13px 16px 0;box-shadow:0 2px 15px #334a7510;backdrop-filter:blur(18px) saturate(140%)}.sidebar .brand{justify-content:flex-start;gap:9px;width:max-content}.sidebar nav{display:flex;flex-wrap:nowrap;justify-content:flex-start;margin:13px -16px 0;padding:0 12px 9px;gap:5px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;max-width:calc(100vw - 2px)}.sidebar nav::-webkit-scrollbar{display:none}.sidebar nav button{font-size:11px;padding:10px 11px;display:flex;align-items:center;gap:6px;white-space:nowrap;flex:0 0 auto;scroll-snap-align:start;min-height:37px}.sidebar nav b{font-size:14px;margin:0;width:14px}.sidebar nav button:hover{transform:none}.sidebar nav button.active{box-shadow:inset 0 1px #fff,0 2px 7px #4263eb0b}.sidebar nav button:focus-visible{outline-offset:-2px}header[data-effect=frosted]{position:relative;top:auto;z-index:5;min-height:56px;height:auto;padding-top:10px;padding-bottom:10px;gap:10px}.breadcrumb{flex-shrink:0}.top-right{justify-content:flex-end;gap:5px;flex-wrap:wrap;max-width:76%}#identity{font-size:10px;padding-left:7px;max-width:180px}.top-right .quiet{padding:5px 7px}#app{padding-top:23px}.page-title{flex-wrap:wrap;gap:12px}.page-title h1{font-size:23px}.page-title>button{padding:9px 12px;font-size:12px}.page-title>.pill{margin-top:2px}.auth-shell{margin-top:0;gap:14px}.auth-copy.cs-shader-host{margin:0;min-height:200px;padding:24px;border-radius:18px}.auth-copy.cs-shader-host h1{font-size:28px;margin-bottom:4px}.auth-copy.cs-shader-host .eyebrow{font-size:8px;letter-spacing:1.1px}.auth-copy.cs-shader-host p{display:none}.auth-copy.cs-shader-host .tag{display:block;margin-top:13px;font-size:9px;line-height:1.8;max-width:240px}.auth-card{padding:24px 21px}.auth-card .tabs{gap:21px}.stats{gap:9px}.stat{padding:15px 13px}.stat label{font-size:11px}.stat small{font-size:10px;line-height:1.8}.stat strong{font-size:27px}.stat.accent strong{font-size:23px!important}.shifts{gap:6px}.shift-option{padding:14px 8px 12px}.shift-option small{display:block;line-height:1.8;font-size:9px;white-space:normal}.shift-option input{right:6px;top:9px}.shift-option b{margin-top:9px}.duty-banner.cs-refraction{padding:17px 14px;gap:9px}.duty-icon{flex-shrink:0;width:35px}.actions{gap:8px}.actions button{padding:11px 12px;min-height:41px}.actions small.hint{flex-basis:100%;text-align:left}.card-head{margin-bottom:20px}.filters{gap:8px;align-items:stretch}.filters input,.filters select{width:calc(50% - 4px);max-width:none;flex:1 1 calc(50% - 4px);min-width:100px}.filters>span{display:none}.filters button{flex:1 1 calc(50% - 4px);min-height:40px}.filters input[name=q]{flex-basis:100%}.table-wrap{margin:0 -3px}.table-wrap table{font-size:11px}td,th{padding:13px 11px}.event{padding-left:18px}.event .row{display:block}.event time{display:block;margin-top:4px}.event b{font-size:11px}.event .quiet{min-height:27px}dialog[data-effect=frosted]{padding:23px 20px;width:calc(100% - 24px);max-height:calc(100dvh - 28px);border-radius:16px}dialog .actions{position:sticky;bottom:-23px;padding:14px 0 10px;background:linear-gradient(#fffffff2,#fff);z-index:2}dialog .actions button{flex:1}.detail-grid{gap:11px}.cover{padding:16px}.rule{flex-wrap:wrap;gap:7px}.rule small{font-size:10px}.rule .quiet{margin-left:auto}input,select,textarea{scroll-margin-top:155px}footer{font-size:9px}#toast{bottom:max(18px,env(safe-area-inset-bottom));max-width:calc(100vw - 28px);width:max-content;line-height:1.7}}
@media(max-width:359px){#app{padding-left:12px;padding-right:12px}.sidebar[data-effect=frosted]{padding-left:12px;padding-right:12px}.sidebar nav{margin-left:-12px;margin-right:-12px;padding-left:8px;padding-right:8px}.card{padding:16px}.stat{padding:13px 11px}.auth-copy.cs-shader-host{padding:21px}.auth-copy.cs-shader-host h1{font-size:26px}.detail-grid{grid-template-columns:1fr}.shift-option small{font-size:8px}header{padding-left:14px;padding-right:14px}}
@media(prefers-reduced-transparency:reduce){header[data-effect=frosted],.sidebar[data-effect=frosted],dialog[data-effect=frosted]{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}.cs-refraction{backdrop-filter:none;-webkit-backdrop-filter:none}.duty-banner.cs-refraction{background:#eef4ff}.stat.accent.cs-refraction{background:#4263eb}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-delay:0ms!important;transition-duration:.01ms!important;transition-delay:0ms!important}.card:hover,.stat:hover,.logo:hover,.account:has(input:checked),.shift-option:has(input:checked){transform:none}}

/* Identity and permission controls share the same interaction rhythm as the workspace. */
#identity{display:flex;align-items:center;gap:8px}.identity-badge{display:inline-flex;align-items:center;border:1px solid #e4e8f1;background:#f1f4f9;color:#738198;border-radius:5px;font-size:10px;line-height:1.4;padding:4px 6px;white-space:nowrap}.identity-badge.is-admin{color:#4d62c6;background:#edf0ff;border-color:#dfe5ff}.nav-section{font-size:10px;color:#a1a7b4;padding:14px 14px 5px;letter-spacing:1px}.permission-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.permission-grid .account{margin:0;min-width:0}.cover>p{line-height:1.9;overflow-wrap:anywhere}.sidebar nav{flex:1 1 auto}.sidebar .brand,.workspace{flex-shrink:0}.nav-label{min-width:0}
@media(min-width:581px) and (max-width:880px){.nav-section{font-size:8px;padding:10px 0 3px;text-align:center}.nav-label{display:block}}
@media(max-width:580px){.nav-section{padding:10px 9px;flex:0 0 auto;align-self:center;font-size:9px;border-left:1px solid #e0e5f1;margin-left:4px}#identity{display:flex;gap:5px;max-width:none}.identity-badge{font-size:9px;padding:3px 5px}.permission-grid{grid-template-columns:1fr}.permission-grid .account{padding:12px}.has-management .sidebar nav button{font-size:11px}.sidebar nav .nav-label{display:inline}}

/* Continuous decorative rainbow rims removed pending design selection. */
.sidebar nav{align-content:start}

