/* Shared visual system; print documents retain their existing layout. */
@media screen {
 :root{--qd-bg:#f3f6f9;--qd-surface:#fff;--qd-ink:#192c36;--qd-muted:#6c7e88;--qd-line:#e5ebef;--qd-green:#079b78;--qd-radius:18px;font-family:Inter,'Segoe UI',system-ui,sans-serif;color:var(--qd-ink);background:var(--qd-bg)}
 body{background:var(--qd-bg);line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}
 button{font-size:13px;font-weight:600;min-height:40px;border-radius:11px;transition:background .18s,box-shadow .18s,transform .18s;background:#08866a;box-shadow:none}button:hover{filter:none;background:#06765e;box-shadow:0 5px 15px #08785e1c}button:active{transform:scale(.98)}button:disabled{opacity:.5;cursor:default}
 :focus-visible{outline:3px solid #20b99580;outline-offset:3px}.secondary{background:#f1f5f7!important;color:#36535e!important;border:1px solid var(--qd-line)}
 .shell{min-height:100dvh}.sidebar{width:232px!important;position:sticky;top:0;height:100dvh;overflow-y:auto;background:#fff!important;border-right:1px solid var(--qd-line);padding:24px 14px!important;scrollbar-width:thin;scrollbar-color:#dbe5e6 transparent;flex-shrink:0}
 .sidebar .brand,.sidebar .brand-link{margin-bottom:24px}.sidebar .nav{display:flex!important;align-items:center;gap:11px;width:100%;min-height:43px;margin:4px 0;padding:10px 13px;border-radius:12px;color:#627780!important;font-size:13px;font-weight:550;text-decoration:none;transition:background .2s,color .2s,transform .2s}.sidebar .nav:hover{background:#f0f8f5!important;color:#087c61!important;transform:translateX(2px)}.sidebar .nav.active{background:#e5f6ef!important;color:#087857!important;box-shadow:inset 3px 0 #0c9b76;font-weight:700}.nav-icon{width:20px;height:20px;flex:0 0 20px;display:grid;place-items:center}.nav-icon svg{width:19px;height:19px}
 .main{min-width:0;flex:1}.top{position:sticky;top:0;z-index:30;display:flex;flex-wrap:wrap;gap:12px;padding:16px 28px!important;min-height:83px;background:#ffffffed!important;backdrop-filter:blur(18px);border-bottom:1px solid var(--qd-line)}.top>div:first-of-type{flex:1 1 180px;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;min-width:0}.top>div:first-of-type>.muted{flex-basis:100%}#pagetitle{font-size:16px;letter-spacing:-.35px}#serverStatus{font-size:10px!important;color:#72868a!important;flex:0 1 auto}#organizationSwitcher{display:flex;align-items:center;gap:8px;margin-left:0!important;font-size:11px}#activeOrganization{max-width:190px;min-height:38px;font-size:12px}.top #logout{order:8;background:#f1f5f7!important;color:#44606a!important}#notificationBell{min-width:40px;width:40px;height:40px;padding:9px!important;background:#f4f8f7!important;border:1px solid #e7eeea}#qdesk-tour-launch{background:transparent;color:#52716e;padding:8px;font-size:12px}#qdesk-menu{display:none}
 .content{padding:28px clamp(16px,3vw,42px) 24px!important;max-width:1600px;width:100%;margin:0 auto}.content>#view{min-width:0}.content>.warning{font-size:11px;line-height:1.5;padding:9px 14px;margin:0 0 20px;background:#fff8e8;border:1px solid #f2e8cb;border-radius:10px;color:#89784f}
 #view h1{font-size:clamp(24px,2.3vw,32px);letter-spacing:-1px;line-height:1.2;margin:24px 0 18px;font-weight:750}#view h2{font-size:19px;letter-spacing:-.5px;line-height:1.3}#view h3{font-size:15px;letter-spacing:-.2px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:#82958d}.muted{color:var(--qd-muted)}
 .panel,.card{background:var(--qd-surface);border:1px solid var(--qd-line);border-radius:var(--qd-radius);box-shadow:0 4px 24px #20384804}.panel{padding:clamp(16px,2vw,26px);margin-top:20px;min-width:0}.card{padding:20px;min-width:0;position:relative;overflow:hidden;transition:box-shadow .2s,border-color .2s}.card:hover{border-color:#b9dace;box-shadow:0 8px 26px #16493609}.card small{font-size:12px;font-weight:500;line-height:1.5;color:#72868c}.card strong{font-size:clamp(21px,2.1vw,30px);letter-spacing:-.8px;line-height:1.25;overflow-wrap:anywhere;margin-top:14px}.cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:16px;margin:18px 0}.row{gap:12px;min-width:0}.row.between{gap:16px}.row>div{min-width:0}
 #view .fields,#detailDialog .fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:end}#view .fields>*,#detailDialog .fields>*{min-width:0}.fields label,.panel label{font-size:12px;font-weight:550;color:#536b73;line-height:1.5}.fields label{display:grid;gap:7px}input:not([type=checkbox]):not([type=radio]),select,textarea{background:#fff;border:1px solid #dfe7eb;border-radius:10px;color:#253e48;min-height:43px;padding:10px 12px;transition:border-color .18s,box-shadow .18s;max-width:100%}input:focus,select:focus,textarea:focus{border-color:#32ae8b;box-shadow:0 0 0 3px #079b780d}textarea{resize:vertical;min-height:92px}.fields input:not([type=checkbox]):not([type=radio]),.fields select,.fields textarea{width:100%}.fields>button{align-self:end;min-height:43px}.fields>div:has(>button){display:flex;gap:8px;flex-wrap:wrap;align-self:end}.panel>form{min-width:0}
 table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px}th{background:#f7f9fb;color:#80929c;font-size:10px;letter-spacing:.6px;font-weight:650;padding:13px 14px;border-bottom:1px solid var(--qd-line);white-space:nowrap}td{padding:15px 14px;border-bottom:1px solid #edf1f4;vertical-align:middle;line-height:1.6}tbody tr{transition:background .16s}tbody tr:hover{background:#f7fbf9}td button{font-size:11px;padding:7px 10px;min-height:33px;margin:3px 4px 3px 0;white-space:nowrap}td .muted{font-size:11px}tfoot th{font-size:11px;background:#edf7f2}table input{font-size:12px}.pill{font-size:10px;font-weight:600;background:#e9f6f0;color:#168266;padding:5px 9px}.notification-item{display:flex;gap:16px;align-items:start;padding:20px;border:1px solid var(--qd-line);border-radius:15px;margin:12px 0;background:#fff;overflow:hidden}.notification-copy{min-width:0;flex:1}.notification-copy h3{margin:6px 0}.notification-copy p{font-size:13px;color:#71838c;line-height:1.6}.notification-symbol{width:42px;height:42px;display:grid;place-items:center;background:#e9f7f0;border-radius:13px;color:#15916e;flex-shrink:0}.notification-read{opacity:.6}.notification-dropdown{border:1px solid var(--qd-line);border-radius:18px;box-shadow:0 18px 70px #1b393126;padding:18px;max-width:calc(100vw - 32px)}.dropdown-alert{border:1px solid #e6eee9;border-radius:12px;padding:15px;margin:10px 0;background:#f8fcfa;overflow:hidden}.dropdown-alert strong{display:block;font-size:13px;margin:5px 0}.dropdown-alert p{font-size:12px;color:#71838c}.notification-badge,.bell-count{background:#ef6464!important;box-shadow:0 2px 5px #f2676722;font-size:10px}.qdesk-footer{padding:32px 0 10px;color:#98a7ad;font-size:10px}
 dialog{border:1px solid var(--qd-line);border-radius:22px;box-shadow:0 26px 100px #1c373638;max-width:calc(100vw - 30px);padding:26px}dialog::backdrop{background:#112e3466;backdrop-filter:blur(4px)}#detailDialog{width:min(920px,calc(100vw - 30px));max-height:90dvh}#view.qd-enter{animation:qd-page-in .24s ease-out}.qd-exit{pointer-events:none;animation:qd-swipe-out .32s ease-in forwards!important;animation-delay:var(--qd-delay,0ms)!important}
 .qd-tour{width:480px;max-width:calc(100vw - 32px);padding:32px;color:var(--qd-ink);background:#fff}.qd-tour-symbol{width:60px;height:60px;display:grid;place-items:center;background:#e5f7ef;color:#06936c;border-radius:19px;margin-bottom:24px}.qd-tour h2{font-size:26px;letter-spacing:-.8px;margin:10px 0}.qd-tour p{font-size:14px;color:#72858d;line-height:1.8}.qd-tour .row{margin-top:28px}.qd-tour-progress{display:flex;gap:5px;margin-bottom:24px}.qd-tour-progress span{height:4px;flex:1;background:#e9efec;border-radius:3px}.qd-tour-progress .done{background:#12a57c}.qd-tour small{font-size:11px;color:#82958d}.qd-tour-target{outline:3px solid #22b68f;outline-offset:3px}
 .auth-page{background:radial-gradient(ellipse at 15% 20%,#b2ead347,transparent 45%),radial-gradient(ellipse at 90% 80%,#b1dfe044,transparent 50%),#f3f8f6!important;min-height:100dvh;padding:24px}.auth-page .auth-panel{border-radius:26px;border:1px solid #e1eae5;box-shadow:0 22px 85px #244e3c0d;padding:36px;animation:qd-page-in .35s ease-out}.auth-panel h1{letter-spacing:-1px;font-size:28px}.auth-panel input{min-height:46px}
 [data-theme=dark]{--qd-bg:#101c24;--qd-surface:#172732;--qd-ink:#e0edf0;--qd-muted:#92abb2;--qd-line:#2a3e48}[data-theme=dark] .sidebar,[data-theme=dark] .top{background:#14232e!important}[data-theme=dark] th{background:#1b303b}[data-theme=dark] td{border-color:#293b44}[data-theme=dark] tbody tr:hover{background:#1b323b}[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea{background:#172b36;color:#deedf0;border-color:#354a55}[data-theme=dark] .notification-item,[data-theme=dark] .dropdown-alert,[data-theme=dark] .qd-tour{background:#172732;color:#e0edf0}[data-theme=dark] .sidebar .nav.active{background:#174338!important;color:#9ae4c8!important}
 @keyframes qd-page-in{from{opacity:.45;transform:translateY(7px)}to{opacity:1;transform:none}}@keyframes qd-swipe-out{to{opacity:0;transform:translateX(70px) scale(.97)}}
 @media(min-width:1200px){.top{flex-wrap:nowrap}.top>div:first-of-type{flex:1 1 auto}.content{padding-top:30px!important}}
 @media(max-width:1100px) and (min-width:761px){.sidebar{width:196px!important;padding:20px 10px!important}.top{padding:14px 20px!important}#serverStatus{display:none}.top>div:first-of-type{flex:1 1 200px}#organizationSwitcher{margin-left:auto!important}}
 @media(max-width:760px){.shell{display:block}.sidebar{position:fixed;left:0;top:0;bottom:0;width:240px!important;height:100dvh;z-index:100;transform:translateX(-100%);transition:transform .24s ease;box-shadow:20px 0 60px #14322c1c}.qd-menu-open .sidebar{transform:none}.qd-menu-open:after{content:'';position:fixed;inset:0;background:#18382d33;z-index:90;pointer-events:none}.top{padding:12px 16px!important;gap:8px;min-height:72px}.top>div:first-of-type{flex:1 1 150px}#qdesk-menu{display:inline-grid;place-items:center;width:36px;min-height:36px;padding:5px;flex-shrink:0;background:#eaf3ef;color:#176b52}#serverStatus{display:none}#organizationSwitcher{order:9;margin-left:auto!important}#qdesk-tour-launch{font-size:11px;padding:5px}#pagetitle{font-size:14px}.top .pill{font-size:9px}.content{padding:18px 14px!important}.content>.warning{font-size:10px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.card{padding:15px}.card strong{font-size:22px}.panel{padding:16px;border-radius:15px}.fields,#view .fields,#detailDialog .fields{grid-template-columns:minmax(0,1fr);gap:14px}.notification-item{padding:14px;gap:12px}.notification-symbol{width:32px;height:32px;border-radius:10px}.notification-dropdown{position:fixed!important;top:116px!important;right:12px!important;left:12px!important;width:auto!important;max-height:70dvh;overflow:auto}.qd-tour{padding:24px}.auth-page .auth-panel{padding:26px}}
 @media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-delay:0ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}
}
@media print{#qdesk-menu,#qdesk-tour-launch,.qd-tour{display:none!important}}

@media screen and (max-width:1100px){
 .top{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:10px 12px;align-items:center}
 .top>div:first-of-type{grid-column:1/4;grid-row:1;min-width:0}
 #notificationBell{grid-column:4;grid-row:1;justify-self:end}
 #organizationSwitcher{grid-column:1/3;grid-row:2;justify-self:start;margin:0!important;min-width:0}
 #qdesk-tour-launch{grid-column:3;grid-row:2;white-space:nowrap}
 .top #logout{grid-column:4;grid-row:2;white-space:nowrap}
 #serverStatus{display:none}
}
@media screen and (max-width:760px){
 .top{grid-template-columns:36px minmax(0,1fr) auto auto;gap:9px}
 #qdesk-menu{grid-column:1;grid-row:1}
 .top>div:first-of-type{grid-column:2/4}
 #organizationSwitcher{grid-column:1/3}
 #activeOrganization{max-width:145px;min-width:90px}
}
@media screen and (max-width:480px){#organizationSwitcher>span{display:none}.top .pill{font-size:8px}.top>div:first-of-type{gap:4px}#qdesk-tour-launch{font-size:10px}.top #logout{padding:8px 10px;font-size:11px}}
