:root{color-scheme:light;--ink:#10283c;--ink2:#354d61;--muted:#6a7c8e;--teal:#007b71;--mint:#d7f2e9;--bg:#eef3f6;--paper:#fff;--line:#dce5eb;--danger:#a52638;--amber:#996316;--shadow:0 12px 32px rgba(23,43,59,.055)}
*{box-sizing:border-box}html{font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif}body{margin:0;background:var(--bg);color:var(--ink);font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}a{color:var(--teal)}p{line-height:1.6}h1,h2,h3,h4{letter-spacing:-.025em}h1{font-size:clamp(25px,3vw,35px);line-height:1.12;margin:5px 0 12px}h2{font-size:17px;margin:0}h3{font-size:15px;margin:0 0 8px}.muted{color:var(--muted)}.eyebrow{font-weight:800;font-size:10px;letter-spacing:.16em;color:#007b71;text-transform:uppercase}.preline{white-space:pre-wrap;overflow-wrap:anywhere}.small{font-size:12px}.app-shell{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh}.sidebar{background:#12283c;color:#d6e5ec;padding:26px 15px;display:flex;flex-direction:column;gap:28px;position:sticky;top:0;height:100vh}.brand{display:flex;gap:12px;align-items:center;padding:0 10px;color:white;text-decoration:none}.brand-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:#2ac1a1;color:#092d31;font-weight:900;letter-spacing:-.09em;font-size:20px}.brand strong{font-size:17px;letter-spacing:-.04em}.brand small{display:block;opacity:.56;font-size:11px;letter-spacing:.07em}.nav-group{display:grid;gap:5px}.nav-caption{margin:12px 12px 8px;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#7f9aab;font-weight:800}.nav-link{width:100%;text-align:left;background:none;border:0;display:flex;align-items:center;gap:12px;padding:12px 13px;border-radius:11px;color:#b9cedb;font-weight:600}.nav-link span:first-child{font-size:17px;width:24px;text-align:center}.nav-link.active{background:#26445a;color:white}.nav-link:hover{background:#1c3a50;color:white}.sidebar-foot{margin-top:auto;padding:12px;color:#9eb3c1;border-top:1px solid #2c4355}.main{min-width:0}.topbar{height:71px;background:rgba(255,255,255,.87);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,3vw,38px)}.topbar-brand{font-weight:800}.topbar-status{display:flex;align-items:center;gap:16px}.dot{display:inline-block;background:#24ab88;width:8px;height:8px;border-radius:50%;margin-right:8px}.page{padding:33px clamp(18px,3vw,40px) 80px;max-width:1500px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;flex-wrap:wrap;margin-bottom:27px}.page-heading p{margin:5px 0 0;color:var(--muted)}.page-actions,.inline-actions,.form-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.btn{border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink);font-weight:650;padding:10px 15px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:39px}.btn:hover{border-color:#89a5b0;background:#f8fbfc}.btn.primary{background:#006d67;color:white;border-color:#006d67}.btn.primary:hover{background:#00544f}.btn.danger{color:#a52235;border-color:#e8b8bc}.btn.danger:hover{background:#fcf1f2}.btn.quiet{border-color:transparent;background:transparent}.btn.tiny{min-height:28px;padding:5px 9px;font-size:12px}.btn.full{width:100%}.btn.light{background:#f1f6f7}.layout-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,.37fr);gap:20px}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);padding:22px;margin-bottom:18px;min-width:0}.panel-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px}.stat{padding:21px;border:1px solid var(--line);border-radius:14px;background:white}.stat-label{font-size:12px;color:var(--muted);font-weight:700}.stat-number{font-size:34px;font-weight:800;margin-top:8px;letter-spacing:-.06em}.stat-foot{color:var(--muted);margin-top:6px;font-size:12px}.table-scroll{overflow-x:auto}.data-table{width:100%;border-collapse:collapse}.data-table th{text-align:left;text-transform:uppercase;color:var(--muted);font-size:10px;letter-spacing:.07em;padding:11px 12px}.data-table td{border-top:1px solid #edf0f3;padding:13px 12px;vertical-align:top}.data-table tbody tr:hover{background:#fafcfd}.click-row{cursor:pointer}.list-card{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;padding:15px 0;border-bottom:1px solid #edf1f3}.list-card:last-child{border:0}.list-card strong{font-size:15px}.list-card .muted{margin:5px 0}.badge{font-size:11px;font-weight:750;padding:5px 8px;border-radius:7px;background:#eef2f5;color:#567}.badge.active,.badge.done{background:#d7f3ea;color:#096b56}.badge.planned{background:#e9eefb;color:#345c9b}.badge.closed,.badge.cancelled{background:#f0f2f4;color:#637181}.badge.priority{background:#ffebea;color:#9b2933}.badge.warning,.badge.progress{background:#ffefcf;color:#805600}.badge.editor{background:#dff0fb;color:#285c7d}.badge.owner{background:#e0f2ed;color:#026e5d}.tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin-bottom:21px;overflow-x:auto}.tab{background:transparent;border:none;border-bottom:3px solid transparent;color:#63788a;white-space:nowrap;padding:12px 15px;font-weight:750}.tab.active{color:#006e67;border-color:#006e67}.field{display:flex;flex-direction:column;gap:7px;color:#3b5364;font-size:12px;font-weight:750}.field.wide{grid-column:1/-1}.field input,.field textarea,.field select{background:white;border:1px solid #cbd9e0;border-radius:9px;padding:11px 12px;width:100%;outline:0;color:#1c3547;font-weight:500;min-height:42px}.field input:focus,.field textarea:focus,.field select:focus{border-color:#007b71;box-shadow:0 0 0 3px #cde9e1}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-actions{grid-column:1/-1;margin-top:12px}.alert{padding:15px 17px;border-radius:10px;background:#e3f3ed;border:1px solid #c5e8d9;color:#1b6255;margin:0 0 20px}.alert-error{background:#fff0ef;border-color:#f1d0cb;color:#972b31}.alert-warning{background:#fff6de;border-color:#f1e0b7;color:#7e631e}.empty{text-align:center;padding:42px 15px;color:var(--muted)}.empty h3{color:var(--ink)}.empty-symbol{font-size:32px;color:#9ab8c3}.timeline{position:relative;margin:2px 0 8px;padding-left:23px;border-left:2px solid #dce8e9}.timeline-entry{position:relative;border-bottom:1px solid #edf1f3;padding:0 0 21px 17px;margin-bottom:18px}.timeline-entry:before{content:'';position:absolute;left:-31px;top:5px;width:12px;height:12px;border-radius:50%;background:#00a388;border:3px solid #dcefeb}.timeline-entry strong{font-size:14px}.timeline-entry small{color:var(--muted)}.timeline-entry .body{white-space:pre-wrap;margin:7px 0;overflow-wrap:anywhere}.inline-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.incident-hero{background:linear-gradient(110deg,#13324b,#1d4b51);border-radius:18px;color:white;padding:26px 29px;margin-bottom:21px}.incident-hero h1{font-size:27px}.incident-hero .muted{color:#b9cdd5}.incident-hero .badge{background:rgba(255,255,255,.16);color:#fff}.incident-hero .btn{color:#183847}.incident-hero .incident-top{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.incident-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.filters{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:16px}.filters .btn.selected{background:#18354a;color:white}.modal-overlay{position:fixed;inset:0;background:rgba(6,25,40,.62);z-index:10;padding:24px;display:flex;align-items:center;justify-content:center;overflow:auto}.modal{background:white;border-radius:17px;padding:28px;width:min(680px,100%);max-height:95vh;overflow-y:auto;box-shadow:0 25px 85px #071c385e}.modal h2{font-size:23px;margin:0 0 8px}.modal .subtitle{color:var(--muted);margin:0 0 23px}.modal-close{float:right;background:none;border:0;font-size:24px;color:#789}.toast{position:fixed;bottom:23px;right:24px;padding:14px 19px;background:#152f40;color:white;z-index:50;border-radius:11px;box-shadow:0 18px 30px #153b4b40;max-width:min(480px,90vw)}.toast.error{background:#992e3e}.separator{border:0;border-top:1px solid var(--line);margin:22px 0}.brief-grid{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px}.brief-sheet{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.brief-head{background:#152d45;color:#fff;padding:25px}.brief-section{padding:22px 25px;border-bottom:1px solid #e4eaef}.brief-section h3{text-transform:uppercase;letter-spacing:.13em;font-size:12px}.brief-section:last-child{border-bottom:0}.contact-line{display:flex;gap:12px;align-items:center;border-bottom:1px solid #e9eff0;padding:11px 0}.contact-line>*:first-child{min-width:130px}.login-body{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 50% 0,#ccece6,transparent 65%),#eef3f6}.login-card{background:white;padding:40px;width:min(445px,100%);border-radius:20px;box-shadow:0 30px 80px #11283f24}.login-card .brand-mark{margin-bottom:23px}.login-card h1{margin:10px 0;font-size:30px}.login-card label{display:flex;flex-direction:column;gap:7px;font-weight:700;margin:19px 0;color:#2e5261}.login-card input{padding:13px;border:1px solid #bfcfd7;border-radius:8px}.login-card .btn{margin-top:18px}.login-note{font-size:12px;color:#789;text-align:center;margin:22px 0 0}.boot-message{padding:40px}.lock-layout{max-width:580px;margin:45px auto}.lock-layout h1{font-size:30px}.lock-illustration{font-size:44px;margin-bottom:12px}.secondary-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.button-column{display:flex;flex-direction:column;gap:8px}.checkbox-line{display:flex;align-items:center;gap:8px}.print-only{display:none}.numbered-list{padding-left:18px}.numbered-list li{padding:5px 0}.warning-text{color:#a02636}.wrap-any{overflow-wrap:anywhere}@media(max-width:1100px){.layout-two,.brief-grid{grid-template-columns:1fr}.grid-3{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.app-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;padding:13px;gap:9px}.brand{padding:3px}.nav-group{display:flex;overflow-x:auto;gap:5px}.nav-caption,.sidebar-foot,.nav-link span:first-child{display:none}.nav-link{width:auto;white-space:nowrap;font-size:12px;padding:10px}.topbar{height:55px;padding:0 16px}.page{padding:22px 14px 75px}.panel{padding:16px}.grid-2,.grid-3,.form-grid,.form-grid.three,.incident-grid{grid-template-columns:1fr}.incident-hero{padding:22px}.modal{padding:20px}.topbar-status .muted{display:none}}@media print{body{background:white;color:black}.sidebar,.topbar,.page-heading,.page-actions,.btn,.tabs,.filters,.form-actions,.no-print,.modal-overlay,.toast{display:none!important}.app-shell{display:block}.page{padding:0;max-width:none}.panel{box-shadow:none;border:0;padding:0}.print-only{display:block}.brief-sheet{border:0}.brief-head{background:#fff!important;color:#000!important;border-bottom:3px solid #000}.incident-hero{background:#fff!important;color:#000!important;border:0;padding:0}.incident-hero .muted{color:#555}.print-hide{display:none!important}}
#print-root{display:none}@media print{body.printing #app{display:none!important}body.printing #print-root{display:block!important;padding:10mm 15mm;font-size:12pt}body.printing #print-root h1{font-size:23pt}body.printing #print-root section{margin:16pt 0;border-top:1px solid #ccc;padding-top:12pt}}
.org-depth-1{margin-left:18px}.org-depth-2{margin-left:36px}.org-depth-3{margin-left:54px}.org-depth-4{margin-left:72px}.brief-district{padding:13px}.brief-head .eyebrow,.incident-hero .eyebrow{color:#9ce9d4}

/* Startup diagnostics: avoid a silent, infinite loading screen. */
.boot-message,.boot-error,.boot-nojs{max-width:720px;margin:8vh auto;padding:30px;background:#fff;border:1px solid #d7e3e8;border-radius:16px;box-shadow:0 12px 34px #12304712}
.boot-message h1,.boot-error h1{font-size:24px;margin:0 0 12px}
.boot-message p,.boot-error p{color:#526a7d}
.boot-static-help{opacity:0;animation:il-help-show 0s step-end 12s forwards}
@keyframes il-help-show{to{opacity:1}}
.boot-error{border-color:#ecd4d1}
.boot-error h1{color:#8b2936}
.boot-error .inline-actions{margin:18px 0}


/* V8: phone-first navigation and layouts. Desktop UI remains unchanged. */
.sidebar-header{display:flex;align-items:center;justify-content:space-between}
.mobile-drawer-close,.mobile-menu-toggle,.mobile-bottom-nav,.mobile-nav-backdrop{display:none}
.topbar-start{display:flex;align-items:center;gap:12px;min-width:0}
.account-name{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (hover:none){.btn,.nav-link,.tab{-webkit-tap-highlight-color:transparent}}
:where(.btn,.nav-link,.tab,.mobile-bottom-link,.mobile-menu-toggle,.mobile-drawer-close):focus-visible{outline:3px solid #22a792;outline-offset:2px}
:where(.field input,.field textarea,.field select,.login-card input){max-width:100%}

@media(max-width:760px){
 html{scroll-padding-top:85px}
 body{font-size:14px;overflow-x:hidden}
 body.mobile-menu-active{overflow:hidden}
 .app-shell{display:block;min-height:100dvh}
 .main{min-height:100dvh;padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
 .sidebar{display:flex;position:fixed;top:0;bottom:0;left:0;width:min(318px,87vw);height:100dvh;z-index:41;padding:18px 13px calc(24px + env(safe-area-inset-bottom,0px));gap:18px;overflow-y:auto;overscroll-behavior:contain;transform:translateX(-110%);visibility:hidden;pointer-events:none;transition:transform .2s ease,visibility .2s ease;box-shadow:12px 0 28px #0a203244}
 .mobile-menu-open .sidebar{transform:translateX(0);visibility:visible;pointer-events:auto}
 .mobile-nav-backdrop{display:block;position:fixed;inset:0;z-index:40;background:#061a2b99;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,visibility .2s ease}
 .mobile-menu-open .mobile-nav-backdrop{opacity:1;visibility:visible;pointer-events:auto}
 .sidebar-header{gap:6px}
 .brand{padding:2px 5px;min-width:0}
 .brand strong{font-size:16px}
 .nav-group{display:grid;overflow:visible;gap:3px;padding-bottom:15px}
 .nav-caption{display:block}
 .nav-link{display:flex;align-items:center;width:100%;font-size:14px;min-height:46px;padding:11px 14px;border-radius:11px;white-space:normal}
 .nav-link span:first-child{display:inline-block;width:24px;font-size:20px;flex:0 0 24px}
 .sidebar-foot{display:block;margin-top:auto}
 .mobile-drawer-close{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border:1px solid #476274;background:#244156;border-radius:11px;color:#fff;font-size:25px}
 .mobile-menu-toggle{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;color:var(--ink);border:1px solid var(--line);background:#fff;border-radius:11px;font-size:20px}
 .topbar{position:sticky;top:0;z-index:20;min-height:62px;height:auto;gap:8px;padding:9px 14px;background:#fff;box-shadow:0 2px 10px #0c283612}
 .topbar-brand{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .topbar-brand .muted{display:block;font-size:11px;font-weight:500}
 .topbar-status{gap:7px;min-width:0}
 .topbar-status .desktop-status{display:none}
 .account-name{display:none}
 .hide-phone{display:none}
 .lock-button{min-height:44px;padding:8px 12px}
 .mobile-bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;position:fixed;bottom:0;left:0;right:0;z-index:30;height:calc(65px + env(safe-area-inset-bottom,0px));padding:5px 4px calc(4px + env(safe-area-inset-bottom,0px));border-top:1px solid #d4e0e6;background:#fff;box-shadow:0 -4px 20px #14384d13}
 .mobile-bottom-link{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;min-height:54px;padding:4px 1px 3px;border:0;background:transparent;color:#5a7182;font-size:10px;font-weight:700;line-height:1.3;letter-spacing:-.02em;border-radius:9px;white-space:nowrap}
 .mobile-bottom-icon{font-size:23px;font-weight:550;line-height:1.15}
 .mobile-bottom-link.active{color:#006f66;background:#e5f6f1}
 .mobile-bottom-link:active{background:#d8f1e9}
 .page{padding:23px 14px 24px;max-width:100%}
 .page-heading{gap:12px;margin-bottom:18px}
 .page-heading h1{font-size:clamp(25px,7vw,31px);overflow-wrap:anywhere}
 .page-heading .eyebrow{font-size:9px;line-height:1.45}
 .page-heading p{font-size:13px}
 .page-actions{width:100%;flex-wrap:nowrap;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;padding:2px 0 9px}
 .page-actions .btn{flex:0 0 auto}
 .btn{min-height:44px;padding:10px 13px}
 .btn.tiny{min-height:42px;padding:9px 12px;font-size:12px}
 .panel{padding:16px;margin-bottom:14px;border-radius:13px}
 .panel-head{align-items:flex-start;flex-wrap:wrap;gap:10px;margin-bottom:13px}
 .panel-head h2{line-height:1.4}
 .panel-head>.btn,.panel-head>.inline-actions{flex:0 1 auto}
 .layout-two,.brief-grid,.grid-2,.grid-3,.form-grid,.form-grid.three,.incident-grid{grid-template-columns:minmax(0,1fr);gap:12px}
 .stat{padding:16px}
 .stat-number{font-size:28px}
 .incident-hero{padding:20px 17px;border-radius:14px;margin-bottom:14px}
 .incident-hero h1{font-size:25px;overflow-wrap:anywhere}
 .incident-hero .incident-top{gap:16px}
 .incident-hero .inline-meta{gap:7px}
 .list-card{flex-direction:column;gap:11px;padding:14px 0}
 .list-card>div{max-width:100%;min-width:0}
 .list-card .inline-actions{width:100%;justify-content:flex-start;gap:8px}
 .list-card .inline-actions .btn{min-width:85px}
 .tabs{position:relative;gap:2px;padding-bottom:2px;margin-bottom:15px;scroll-snap-type:x proximity;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 .tab{min-height:46px;flex:0 0 auto;padding:11px 13px;scroll-snap-align:center}
 .filters{gap:7px;max-width:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:6px;scrollbar-width:thin}
 .filters .btn{flex:0 0 auto}
 .field{font-size:13px}
 .field input,.field textarea,.field select{font-size:16px;min-height:48px;padding:11px 12px}
 .field textarea{min-height:100px}
 .form-grid,.form-grid.three{gap:14px}
 .form-actions{gap:9px;margin-top:6px}
 .form-actions .btn{flex:1 1 125px}
 .alert{padding:12px 14px}
 .modal-overlay{padding:8px 0 0;align-items:flex-end;z-index:50;overscroll-behavior:contain}
 .modal{width:100%;max-width:none;max-height:calc(100dvh - 8px);padding:22px 18px calc(24px + env(safe-area-inset-bottom,0px));border-radius:20px 20px 0 0;overscroll-behavior:contain;box-shadow:0 -12px 36px #071c3855}
 .modal h2{font-size:22px;line-height:1.3;padding-right:28px}
 .modal-close{float:right;width:44px;height:44px;margin:-8px -6px 0 0;display:grid;place-items:center;font-size:28px}
 .toast{left:12px;right:12px;bottom:calc(78px + env(safe-area-inset-bottom,0px));max-width:none;padding:13px 16px;font-size:13px}
 .contact-line{display:grid;grid-template-columns:1fr;gap:6px;align-items:start;padding:12px 0}
 .contact-line>*:first-child{min-width:0}
 .contact-line .inline-actions{width:100%}
 .brief-section{padding:16px 15px}
 .brief-head{padding:19px 16px}
 .brief-head h1{font-size:25px}
 .brief-district{padding:12px}
 .org-depth-1,.org-depth-2,.org-depth-3,.org-depth-4{margin-left:0;padding-left:12px;border-left:2px solid #c9dfda}
 .lock-layout{max-width:none;margin:14px 14px 30px}
 .lock-layout .panel{padding:22px 18px}
 .lock-layout h1{font-size:27px}
 .login-body{padding:16px;padding-top:max(16px,env(safe-area-inset-top,0px))}
 .login-card{padding:28px 21px;border-radius:16px}
 .login-card h1{font-size:28px}
 .login-card input{font-size:16px;min-height:48px}
 .login-card .btn{min-height:48px}
 .boot-message,.boot-error,.boot-nojs{margin:22px 14px;padding:20px 16px}
 .data-table,.data-table tbody,.data-table tr,.data-table td{display:block;width:100%}
 .data-table thead{display:none}
 .data-table tbody{display:grid;gap:12px}
 .data-table tr{border:1px solid var(--line);border-radius:11px;overflow:hidden;background:#fff;padding:8px 13px}
 .data-table td{border:0;padding:8px 2px;overflow-wrap:anywhere}
 .data-table td:not(:last-child){border-bottom:1px solid #edf2f4}
 .data-table td::before{content:attr(data-label);display:block;color:var(--muted);font-size:10px;letter-spacing:.075em;font-weight:800;text-transform:uppercase;margin-bottom:5px}
 .table-scroll{overflow-x:visible}
 .timeline{padding-left:15px}
 .timeline-entry{padding-left:12px}
 .timeline-entry:before{left:-23px}
}
@media(max-width:360px){
 .mobile-bottom-link{font-size:9px}
 .mobile-bottom-icon{font-size:21px}
 .topbar{padding:8px 10px}
 .page{padding-left:11px;padding-right:11px}
 .modal{padding-left:14px;padding-right:14px}
}
@media(min-width:761px){
 .mobile-menu-toggle,.mobile-bottom-nav,.mobile-nav-backdrop,.mobile-drawer-close{display:none!important}
}
@media(prefers-reduced-motion:reduce){.sidebar,.mobile-nav-backdrop{transition:none!important}}
@media print{
 .mobile-bottom-nav,.mobile-nav-backdrop,.mobile-menu-toggle,.mobile-drawer-close{display:none!important}
 .main{padding-bottom:0}
 .topbar{position:static}
}

@media(max-width:760px){body.modal-active{overflow:hidden}}
@media print{.sidebar{display:none!important}body{overflow:visible!important}}

/* v9: Den kompakta insatsvyn återskapar den tidigare kommando-/arbetsmenyn. */
.incident-workspace-content .panel{margin-bottom:12px}
.incident-command-card{background:#fff;border:1px solid #d6dee5;box-shadow:var(--shadow);border-radius:14px;padding:21px 24px;margin-bottom:14px}
.incident-command-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.incident-command-main{min-width:0;flex:1}
.incident-command-kicker{font-size:10px;letter-spacing:.12em;font-weight:850;text-transform:uppercase;color:#607584;margin-bottom:5px}
.incident-command-card h1{font-size:clamp(22px,2.45vw,30px);font-weight:850;margin:0 0 11px;letter-spacing:-.03em;overflow-wrap:anywhere;color:#142d41}
.incident-command-meta{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;color:#536778;font-size:12px}
.incident-command-meta>span:not(.incident-priority){display:inline-flex;align-items:center;gap:4px}
.incident-priority{padding:4px 8px;border-radius:5px;font-size:12px;font-weight:850;color:#fff;background:#718092}
.incident-priority.priority-1{background:#b32a39}
.incident-priority.priority-2{background:#f0be4f;color:#453300}
.incident-command-actions{display:flex;gap:10px;align-items:flex-end;flex-direction:column;flex-shrink:0}
.incident-command-actions .btn{padding:7px 11px;min-height:34px;font-size:12px}
.incident-live-pill{display:inline-flex;align-items:center;gap:8px;border:1px solid #cbd5df;padding:7px 12px;border-radius:40px;background:#edf2f5;color:#40596c;font-size:11px;font-weight:850;letter-spacing:.075em}
.incident-live-pill i{width:8px;height:8px;background:#8294a2;display:inline-block;border-radius:50%}
.incident-live-pill.is-live{background:#e3f8f0;color:#087859;border-color:#a8e7cf}
.incident-live-pill.is-live i{background:#00a675;box-shadow:0 0 0 4px #10a57920}
.incident-description{margin-top:13px;border-top:1px solid #edf2f4;padding-top:10px;color:#637a89;font-size:12px}
.incident-description summary{cursor:pointer;font-weight:750}
.incident-description p{color:#263d4b;margin:7px 0 0}
.incident-tab-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 2px 13px}
.incident-tab-header .eyebrow{color:#607584}
.incident-tab-header h2{font-size:18px;margin:3px 0 0}
.incident-local-tag{font-size:11px;color:#52776f;white-space:nowrap}
.incident-workspace-shell .page{padding-bottom:124px}
.incident-bottom-nav{position:fixed;left:236px;right:0;bottom:0;min-height:70px;display:flex;align-items:stretch;justify-content:center;gap:6px;z-index:7;background:rgba(255,255,255,.98);border-top:1px solid #dce5eb;box-shadow:0 -9px 26px #0d23321a;padding:8px 12px max(8px,env(safe-area-inset-bottom,0px))}
.incident-dock-item,.incident-dock-popover>summary{position:relative;flex:1 1 120px;max-width:182px;min-width:0;border:0;background:transparent;border-radius:9px;color:#5a7081;font-size:11px;font-weight:750;cursor:pointer;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;text-align:center;padding:5px 7px;list-style:none}
.incident-dock-item>span:first-child,.incident-dock-popover>summary>span:first-child{font-size:24px;line-height:1}
.incident-dock-item.active{color:#006d67;background:#e2f2ef}
.incident-dock-count{position:absolute;top:4px;left:calc(50% + 6px);border-radius:20px;background:#b32a39;color:white;font-size:10px;line-height:17px;min-width:17px;height:17px;padding:0 4px}
.incident-dock-popover{flex:1 1 120px;max-width:182px;min-width:0;position:relative;display:flex;align-items:stretch;justify-content:center}
.incident-dock-popover>summary{max-width:none;width:100%}
.incident-dock-popover>summary::-webkit-details-marker{display:none}
.incident-dock-popover[open]>summary{background:#e2f2ef;color:#006d67}
.incident-dock-plus{display:flex!important;align-items:center;justify-content:center;background:#0b766c;color:white;width:40px;height:40px;border-radius:50%;font-size:29px!important;margin-top:-15px;box-shadow:0 4px 12px #02675e33}
.incident-dock-popover>summary small{font-size:11px}
.incident-popover-list{position:absolute;bottom:calc(100% + 13px);left:50%;transform:translateX(-50%);width:min(300px,90vw);background:#fff;border:1px solid #ccd9e0;border-radius:13px;box-shadow:0 14px 38px #0c2b4250;padding:11px;max-height:65vh;overflow:auto;display:grid;gap:3px;z-index:20}
.incident-popover-list>strong{padding:8px;font-size:11px;color:#506577;letter-spacing:.08em;text-transform:uppercase}
.incident-popover-list>button,.incident-popover-list>.btn{width:100%;text-align:left;justify-content:flex-start;border:none;border-radius:7px;background:transparent;color:#19384c;min-height:41px;padding:10px;font-weight:650}
.incident-popover-list>button:hover,.incident-popover-list>.btn:hover{background:#edf5f4}
.incident-popover-list>button:disabled{opacity:.42}
@media(max-width:760px){
 .incident-workspace-shell .mobile-bottom-nav{display:none!important}
 .incident-bottom-nav{left:0;gap:1px;padding:7px 5px max(7px,env(safe-area-inset-bottom,0px));min-height:68px}
 .incident-dock-item,.incident-dock-popover>summary{font-size:10px;padding:4px 2px}
 .incident-dock-item>span:first-child,.incident-dock-popover>summary>span:first-child{font-size:23px}
 .incident-command-card{padding:15px 14px}
 .incident-command-head{flex-direction:column;gap:12px}
 .incident-command-actions{flex-direction:row;align-items:center;width:100%;justify-content:space-between;flex-wrap:wrap}
 .incident-command-meta{gap:7px 12px;font-size:12px}
 .incident-command-actions .inline-actions{gap:6px}
 .incident-local-tag{font-size:10px}
 .incident-workspace-shell .page{padding-bottom:105px}
}
@media(max-width:360px){.incident-dock-item,.incident-dock-popover>summary{font-size:9px}.incident-live-pill{padding:6px 8px}}
/* Återskapad dagbesked-PDF. Utformad för webbläsarens Skriv ut -> Spara som PDF,
   så att inga person-/insatsuppgifter skickas till servern. */
@media print{
 @page{size:A4 portrait;margin:9mm}
 .incident-bottom-nav{display:none!important}
 body.printing #print-root:has(.legacy-brief-pdf){padding:0!important;margin:0!important;font-size:8pt!important;color:#000!important}
 body.printing #print-root .legacy-brief-pdf{font-family:Arial,Helvetica,sans-serif;color:#000;background:#fff;font-size:8pt;line-height:1.2;max-width:none;width:100%;border:1.5pt solid #000;padding:3mm;box-sizing:border-box}
 .legacy-brief-pdf *{box-sizing:border-box}
 .legacy-brief-pdf .legacy-pdf-header{display:grid;grid-template-columns:16% 68% 16%;border:1.3pt solid #000;margin-bottom:1.5mm;min-height:9mm;align-items:stretch;text-align:center}
 .legacy-brief-pdf .legacy-pdf-header>*{display:flex;align-items:center;justify-content:center;padding:1.5mm 1mm;font-size:8pt;min-width:0;overflow-wrap:anywhere}
 .legacy-brief-pdf .legacy-pdf-header>*+*{border-left:.6pt solid #000}
 .legacy-brief-pdf .legacy-pdf-header strong{font-size:10pt;letter-spacing:.01em}
 .legacy-brief-pdf .legacy-pdf-two-columns{display:grid;grid-template-columns:1fr 1fr;gap:0;margin-bottom:1.5mm}
 .legacy-brief-pdf .legacy-pdf-section{border:1.2pt solid #000;margin-bottom:1.5mm;break-inside:avoid-page;page-break-inside:avoid}
 .legacy-brief-pdf .legacy-pdf-two-columns .legacy-pdf-section{margin-bottom:0}
 .legacy-brief-pdf .legacy-pdf-two-columns .legacy-pdf-section+.legacy-pdf-section{border-left:0}
 .legacy-brief-pdf h2{font-family:Arial,sans-serif!important;font-size:8pt!important;font-weight:700;letter-spacing:.035em;text-transform:uppercase;color:#000!important;background:#ebebeb!important;border-bottom:.6pt solid #000;margin:0!important;padding:1.3mm 2mm!important;break-after:avoid}
 .legacy-brief-pdf .legacy-priorities{display:grid;grid-template-columns:25% 75%;min-height:28mm}
 .legacy-brief-pdf .legacy-priorities>div{padding:1.4mm 2mm;white-space:pre-wrap;overflow-wrap:anywhere;border-bottom:.4pt solid #333}
 .legacy-brief-pdf .legacy-priorities>div:nth-last-child(-n+2){border-bottom:none}
 .legacy-brief-pdf .legacy-priorities>div:nth-child(odd){border-right:.4pt solid #333;font-weight:700}
 .legacy-brief-pdf .legacy-prio-one{background:#c9ebcf!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 .legacy-brief-pdf .legacy-prio-two{background:#ffe79b!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 .legacy-brief-pdf .legacy-other{white-space:pre-wrap;overflow-wrap:anywhere;padding:2mm;min-height:28mm}
 .legacy-brief-pdf .legacy-pdf-table{width:100%;border-collapse:collapse;table-layout:fixed;margin:0;font-size:7.5pt}
 .legacy-brief-pdf .legacy-pdf-table th{font-size:7pt;letter-spacing:.025em;background:#f7f7f7!important;text-transform:uppercase;print-color-adjust:exact;-webkit-print-color-adjust:exact;text-align:left;font-weight:bold}
 .legacy-brief-pdf .legacy-pdf-table td,.legacy-brief-pdf .legacy-pdf-table th{border:.45pt solid #666;padding:1.8mm 1.8mm;vertical-align:top;overflow-wrap:anywhere;white-space:pre-wrap}
 .legacy-brief-pdf .legacy-pdf-table td:first-child,.legacy-brief-pdf .legacy-pdf-table th:first-child{border-left:0}
 .legacy-brief-pdf .legacy-pdf-table td:last-child,.legacy-brief-pdf .legacy-pdf-table th:last-child{border-right:0}
 .legacy-brief-pdf .legacy-pdf-table thead tr:first-child th{border-top:0}
 .legacy-brief-pdf .legacy-pdf-table tbody tr:last-child td{border-bottom:0}
 .legacy-brief-pdf .legacy-pdf-table thead{display:table-header-group}
 .legacy-brief-pdf .legacy-pdf-table tbody tr{break-inside:avoid;page-break-inside:avoid}
 .legacy-brief-pdf .legacy-pdf-table .missing-call{background:#f6c1c1!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 .legacy-brief-pdf .legacy-lpo-table td{min-height:12mm;padding-top:2mm;padding-bottom:3mm;line-height:1.3}
 .legacy-brief-pdf .lpo-responsible{font-size:6.5pt;color:#444}
 .legacy-brief-pdf .lpo-note{font-style:italic;color:#555;font-size:7pt}
 .legacy-brief-pdf .brief-empty{text-align:center;padding:3mm;color:#555;font-style:italic}
 .legacy-brief-pdf .legacy-pdf-handover{display:grid;grid-template-columns:70% 30%;gap:0;break-inside:avoid-page;page-break-inside:avoid}
 .legacy-brief-pdf .legacy-pdf-handover .legacy-pdf-section{margin-bottom:0}
 .legacy-brief-pdf .legacy-handover-content{padding:2mm;white-space:pre-wrap;overflow-wrap:anywhere;min-height:22mm}
 .legacy-brief-pdf .legacy-pdf-brand{border:1.2pt solid #000;border-left:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2mm;text-align:center}
 .legacy-brief-pdf .legacy-pdf-brand strong{font-size:11pt}
 .legacy-brief-pdf .legacy-pdf-brand small{font-size:7pt;color:#666}
}
@media print{
 /* Åsidosätt allmänna rapportutskriftsregler: det äldre dagbeskedet använder sina egna rutnät. */
 body.printing #print-root .legacy-brief-pdf section.legacy-pdf-section{padding:0!important;margin:0 0 1.5mm!important;border:1.2pt solid #000!important;border-top:1.2pt solid #000!important;break-inside:auto!important;page-break-inside:auto!important}
 body.printing #print-root .legacy-brief-pdf .legacy-pdf-two-columns section.legacy-pdf-section{margin:0!important}
 body.printing #print-root .legacy-brief-pdf .legacy-pdf-handover section.legacy-pdf-section{margin:0!important;break-inside:avoid!important}
 body.printing #print-root .legacy-brief-pdf .legacy-pdf-table tr{break-inside:avoid!important}
 body.printing #print-root .legacy-brief-pdf .legacy-pdf-table thead{display:table-header-group}
 body.printing #print-root .legacy-brief-pdf .legacy-pdf-two-columns{break-inside:avoid}
 body.printing #print-root .legacy-brief-pdf .legacy-pdf-handover{break-inside:avoid}
}

/* v10: classic operational pages — style follows the original incident and duty-sheet views. */
.classic-incident-panel{padding:0;overflow:hidden;border:1px solid #d8e0e6;border-radius:12px;box-shadow:0 3px 16px #1026380d}
.classic-incident-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:19px 22px;border-bottom:1px solid #e4eaf0}
.classic-incident-header h2{font-size:19px;margin:4px 0 0;letter-spacing:-.025em}
.classic-incident-header h3{font-size:15px;margin:0}
.classic-incident-header .small{margin:4px 0 0}
.classic-kicker{font-size:10px;line-height:1.3;text-transform:uppercase;letter-spacing:.1em;color:#647687;font-weight:800}
.classic-incident-header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.classic-filter-strip{display:flex;flex-wrap:wrap;gap:7px;padding:12px 22px;border-bottom:1px solid #edf0f2}
.classic-filter{border:1px solid #d4dce4;background:#fff;color:#485b6c;font-weight:700;border-radius:999px;font-size:12px;min-height:32px;padding:6px 12px}
.classic-filter.active{background:#1c3345;color:#fff;border-color:#1c3345}
.classic-filter-decision{border-color:#e9c6c8;color:#9e3237}
.classic-filter-event{border-color:#bcd7ef;color:#256296}
.classic-filter-action{border-color:#c2dfd3;color:#176b51}
.classic-filter-situation{border-color:#f3c6a2;color:#a44908}
.classic-filter-note{border-color:#a7adb5;color:#171717}
.classic-filter-decision.active{background:#b33142;border-color:#b33142;color:white}
.classic-filter-event.active{background:#2e79b3;border-color:#2e79b3;color:white}
.classic-filter-action.active{background:#248568;border-color:#248568;color:white}
.classic-filter-situation.active{background:#bd5810;border-color:#bd5810;color:#fff}
.classic-filter-note.active{background:#181818;border-color:#181818;color:#fff}
.classic-timeline{padding:9px 22px 22px;display:grid;gap:0}
.classic-log-entry{border-bottom:1px solid #e7edf0;padding:14px 2px 17px 13px;position:relative}
.classic-log-entry:last-child{border-bottom:0}
.classic-log-entry:before{content:"";position:absolute;left:0;top:20px;bottom:17px;width:3px;border-radius:5px;background:#9eb2c0}
.classic-log-entry.log-type-event:before{background:#4f9bc6}
.classic-log-entry.log-type-decision:before{background:#cc5c5f}
.classic-log-entry.log-type-action:before{background:#49a681}
.classic-log-entry.log-type-situation:before{background:#df751d}
.classic-log-entry.log-type-note:before{background:#171717}
.classic-log-head{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:11px;color:#647587}
.classic-log-type{font-weight:800;text-transform:uppercase;letter-spacing:.045em;color:#365168}
.log-type-decision .classic-log-type{color:#b33142}
.log-type-event .classic-log-type{color:#2271a1}
.log-type-action .classic-log-type{color:#14775a}
.log-type-situation .classic-log-type{color:#a44908}
.log-type-note .classic-log-type{color:#171717}
.classic-log-reporter{margin-left:auto}
.classic-log-body{font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;color:#20394a;margin:9px 0 6px}
.classic-log-actions{display:flex;gap:7px;justify-content:flex-end;flex-wrap:wrap}
.classic-log-actions .btn{font-size:11px;min-height:31px;padding:6px 9px}
.classic-muted-line{padding:11px 22px;margin:0;font-size:12px;color:#6c7780}
/* Day briefing: faithful duty-sheet hierarchy and table density, screen first. */
.classic-briefing-meta{display:flex;flex-wrap:wrap;align-items:center;gap:12px;background:#fff;border:1px solid #dce3e9;border-radius:10px;padding:11px 16px;margin-bottom:17px}
.classic-briefing-meta label{font-size:11px;font-weight:700;color:#728090;display:flex;gap:8px;align-items:center}
.classic-briefing-meta strong{color:#1e3547;font-size:13px}
.classic-briefing-status{margin-left:auto;color:#526474;background:#f0f3f5;border-radius:7px;padding:5px 9px;font-size:11px;font-weight:750}
.classic-duty-sheet{border:1px solid #b9c4cc;background:#fff;padding:18px;box-shadow:0 5px 22px #1535470b}
.classic-duty-header{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:2px solid #2c3d4a;padding:1px 0 13px;margin-bottom:12px}
.classic-duty-header span{font-size:10px;letter-spacing:.13em;color:#687887;font-weight:850}
.classic-duty-header h2{font-size:23px;font-weight:850;color:#142a3b;margin:3px 0 0}
.classic-duty-header>strong{font-size:13px;white-space:nowrap}
.classic-duty-top{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.classic-duty-block{border:1px solid #cbd4da;background:#fff;margin-bottom:12px;min-width:0}
.classic-duty-top .classic-duty-block{margin-bottom:0}
.classic-duty-block h3{font-size:12px;text-transform:uppercase;letter-spacing:.045em;background:#eef1f3;border-bottom:1px solid #cbd4da;padding:9px 12px;margin:0;font-weight:850;color:#263e50}
.classic-duty-block-header{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#eef1f3;border-bottom:1px solid #cbd4da}
.classic-duty-block-header h3{border:0;flex:1}
.classic-duty-block-header>.btn,.classic-duty-block-header>.inline-actions{margin-right:8px}
.classic-duty-block-header .btn{padding:5px 9px;min-height:30px;font-size:11px}
.classic-duty-row{display:grid;grid-template-columns:87px minmax(0,1fr);border-bottom:1px solid #e1e7eb;min-height:39px;font-size:12px}
.classic-duty-row:last-child{border-bottom:0}
.classic-duty-row>b{padding:10px;border-right:1px solid #d5dde3;display:flex;align-items:center;font-weight:800;color:#263c4b}
.classic-duty-row>span{padding:10px;line-height:1.4;overflow-wrap:anywhere}
.classic-duty-row.priority-one>b{background:#d0ead2;color:#205937}
.classic-duty-row.priority-two>b{background:#fce6a3;color:#6e5410}
.classic-duty-note{padding:12px 13px;font-size:12px;line-height:1.5;min-height:50px;overflow-wrap:anywhere}
.classic-table-wrap{overflow-x:auto;min-width:0}
.classic-duty-table{border-collapse:collapse;width:100%;min-width:490px;font-size:12px}
.classic-duty-table th{background:#f5f6f7;text-transform:uppercase;color:#5a6772;font-size:10px;letter-spacing:.05em;text-align:left;white-space:nowrap;font-weight:800}
.classic-duty-table th,.classic-duty-table td{padding:10px 11px;border-right:1px solid #e3e8ec;border-bottom:1px solid #e1e6ea;vertical-align:top;overflow-wrap:anywhere}
.classic-duty-table td:last-child,.classic-duty-table th:last-child{border-right:0}
.classic-duty-table tr:last-child td{border-bottom:0}
.classic-duty-table .classic-item-actions{display:flex;gap:5px;flex-wrap:wrap}
.classic-item-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.classic-item-actions .btn{padding:5px 9px;min-height:30px;font-size:11px}
.classic-lpo{border-bottom:1px solid #d3dde3}
.classic-lpo:last-child{border-bottom:0}
.classic-lpo-heading{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:9px 12px;background:#fafbfd}
.classic-lpo-heading>div:first-child{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.classic-lpo-heading strong{font-size:13px;text-transform:uppercase}
.classic-lpo-heading span{font-size:11px;color:#71808a}
.classic-lpo-details{display:flex;flex-wrap:wrap;gap:6px 16px;padding:8px 12px;font-size:11px;border-top:1px solid #edf0f1;color:#5e6e7c}
.classic-lpo-details:empty{display:none}
/* Area templates use an original-style list/editor split, but collapse for touch screens. */
.classic-template-layout{display:grid;grid-template-columns:minmax(225px,30%) minmax(0,1fr);gap:16px;align-items:start}
.classic-template-sidebar{padding:0;overflow:hidden}
.classic-template-side-header{display:flex;align-items:center;justify-content:space-between;padding:17px 18px;border-bottom:1px solid #e2e9ed}
.classic-template-side-header span{border-radius:15px;background:#e9f0f2;color:#566b79;padding:3px 8px;font-weight:750;font-size:11px}
.classic-template-picker{display:flex;flex-direction:column;padding:8px}
.classic-template-choice{width:100%;border:0;background:#fff;border-radius:8px;display:flex;flex-direction:column;gap:6px;padding:13px 12px;cursor:pointer;text-align:left;border-left:3px solid transparent}
.classic-template-choice+ .classic-template-choice{border-top:1px solid #f2f4f5}
.classic-template-choice strong{font-size:13px;color:#233e50}
.classic-template-choice>span{font-size:11px;color:#7b8793}
.classic-template-choice.active{background:#ecf5f3;border-left-color:#1a887a}
.classic-template-editor{padding:0;overflow:hidden}
.classic-template-form{padding:18px 20px}
.classic-template-section{border-top:1px solid #e2e8eb;margin-top:22px;padding-top:3px}
.classic-template-section>.classic-incident-header{padding:15px 0;border:none}
.classic-template-section .classic-incident-header h3{font-size:14px}
.classic-template-rows{display:grid;gap:10px}
.classic-template-row{display:flex;align-items:flex-end;gap:8px;border:1px solid #dce5ea;background:#fafcfd;border-radius:9px;padding:12px}
.classic-template-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;flex:1;min-width:0}
.classic-template-row[data-template-row="districts"] .classic-template-fields,.classic-template-row[data-template-row="patrols"] .classic-template-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
.classic-template-row>.btn{flex:0 0 auto}
.classic-template-footer{display:flex;align-items:center;gap:10px;border-top:1px solid #e2e8ec;padding-top:18px;margin-top:22px}
@media(max-width:1020px){.classic-template-layout{grid-template-columns:1fr}.classic-template-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr))}.classic-template-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 .classic-incident-header{padding:14px 15px}
 .classic-filter-strip{padding:11px 13px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
 .classic-filter{flex:0 0 auto;min-height:42px}
 .classic-timeline{padding:5px 13px 13px}
 .classic-log-reporter{margin-left:0}
 .classic-duty-sheet{padding:10px;border-radius:9px}
 .classic-duty-header{padding:5px 4px 12px}
 .classic-duty-header h2{font-size:21px}
 .classic-duty-top{grid-template-columns:1fr;gap:10px}
 .classic-duty-block{border-radius:4px;overflow:hidden}
 .classic-duty-block-header{flex-wrap:wrap}
 .classic-duty-block-header h3{min-width:150px}
 .classic-duty-block-header>.btn,.classic-duty-block-header>.inline-actions{margin:5px 8px 8px auto}
 .classic-duty-table{min-width:450px}
 .classic-briefing-meta{gap:9px}
 .classic-briefing-status{margin-left:0}
 .classic-template-form{padding:14px}
 .classic-template-row{flex-wrap:wrap}
 .classic-template-fields,.classic-template-row[data-template-row="districts"] .classic-template-fields,.classic-template-row[data-template-row="patrols"] .classic-template-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .classic-template-row>.btn{margin-left:auto}
}
@media(max-width:370px){.classic-template-fields,.classic-template-row[data-template-row="districts"] .classic-template-fields,.classic-template-row[data-template-row="patrols"] .classic-template-fields{grid-template-columns:1fr}}
@media print{.classic-template-layout,.classic-briefing-meta,.classic-incident-header-actions,.classic-filter-strip{display:none!important}}
/* Date-oriented briefing overview as in the original application. */
.classic-briefing-index{background:#fff;border:1px solid #dce5e9;border-radius:12px;padding:22px}
.classic-briefing-index-head{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #e2e9ed;padding-bottom:13px}
.classic-briefing-index-head h2{font-size:18px;margin:4px 0}
.classic-briefing-index-head>span{font-size:12px;color:#5c6a79}
.classic-briefing-day{margin-top:21px}
.classic-briefing-day>h3{font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:#5d6c79;margin-bottom:11px}
.classic-briefing-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:11px}
.classic-briefing-card{border:1px solid #d9e2e6;border-radius:10px;padding:16px;background:#fff;box-shadow:0 2px 9px #08253b08;min-width:0}
.classic-briefing-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.classic-briefing-card-top strong{display:block;margin:5px 0;font-size:15px;overflow-wrap:anywhere}
.classic-briefing-card-stats{border-top:1px solid #edf1f3;margin-top:12px;padding-top:10px;display:flex;flex-wrap:wrap;gap:5px 12px;color:#697b8a;font-size:11px}
.classic-briefing-card-actions{display:flex;gap:7px;margin-top:15px;flex-wrap:wrap}
.classic-briefing-card-actions .btn{min-height:36px;padding:8px 11px;font-size:12px}
@media(max-width:760px){.classic-briefing-index{padding:14px}.classic-briefing-cards{grid-template-columns:1fr}}

/* v11: consistently joined grid lines and content-sized leadership columns. */
.classic-duty-sheet .classic-duty-block{border-color:#aeb9c1}
.classic-duty-sheet .classic-duty-block>h3,.classic-duty-sheet .classic-duty-block-header{border-bottom-color:#aeb9c1}
.classic-duty-sheet .classic-duty-row{border-bottom-color:#c8d1d8}
.classic-duty-sheet .classic-duty-row>b{border-right-color:#aeb9c1}
.classic-duty-sheet .classic-duty-table{border-collapse:separate;border-spacing:0;min-width:490px}
.classic-duty-sheet .classic-duty-table :is(td,th){border-right:1px solid #b5c0c8;border-bottom:1px solid #b5c0c8}
.classic-duty-sheet .classic-duty-table :is(td,th):last-child{border-right:0}
.classic-duty-sheet .classic-duty-table tr:last-child td{border-bottom:0}
.classic-duty-sheet .classic-lead-table{table-layout:auto;width:100%;min-width:390px}
.classic-duty-sheet .classic-lead-table :is(th,td){padding:8px 9px}
.classic-duty-sheet .classic-lead-table :is(th,td).compact-col{width:1%;white-space:nowrap}
.classic-duty-sheet .classic-lead-table td:nth-child(1),
.classic-duty-sheet .classic-lead-table td:nth-child(3),
.classic-duty-sheet .classic-lead-table td:nth-child(4),
.classic-duty-sheet .classic-lead-table td:nth-child(5){width:1%;white-space:nowrap}
.classic-duty-sheet .classic-lead-table :is(th,td):nth-child(2){width:auto}
.classic-duty-sheet .classic-lead-table td:nth-child(2){overflow-wrap:anywhere}
/* Checkbox choices are touch-friendly on phones and keyboard-accessible. */
.competency-checklist{grid-column:1/-1;min-width:0;margin:0;padding:10px 12px 12px;border:1px solid #b9c9d1;border-radius:8px;background:#f8fbfc}
.competency-checklist legend{font-size:12px;font-weight:700;color:#344e60;padding:0 5px}
.competency-options{display:flex;flex-wrap:wrap;gap:9px 16px}
.competency-option{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:6px 12px;border:1px solid #cad5dc;border-radius:7px;background:#fff;cursor:pointer;font-weight:750;font-size:13px}
.competency-option:has(input:checked){border-color:#458a7e;background:#edf8f5}
.competency-option input{width:19px;height:19px;flex:0 0 19px;margin:0;accent-color:#087f70;cursor:pointer}
.competency-option:focus-within{outline:2px solid #008a79;outline-offset:2px}
.classic-template-fields>.competency-checklist{align-self:end}
@media(max-width:760px){
 .classic-duty-sheet .classic-lead-table{min-width:390px}
 .classic-duty-sheet .classic-lead-table :is(td,th){padding:8px 7px}
 .competency-option{min-height:44px}
}
@media print{
 /* Outer sections form each box; cells draw precisely one internal grid line. */
 body.printing #print-root .legacy-brief-pdf section.legacy-pdf-section{border:1pt solid #000!important}
 body.printing #print-root .legacy-brief-pdf .legacy-pdf-table{border-collapse:separate;border-spacing:0;table-layout:fixed}
 body.printing #print-root .legacy-brief-pdf .legacy-pdf-table :is(th,td){border:0;border-right:.55pt solid #555;border-bottom:.55pt solid #555;padding:1.55mm 1.6mm}
 body.printing #print-root .legacy-brief-pdf .legacy-pdf-table :is(th,td):last-child{border-right:0}
 body.printing #print-root .legacy-brief-pdf .legacy-pdf-table tbody tr:last-child td{border-bottom:0}
 body.printing #print-root .legacy-brief-pdf .legacy-pdf-table thead th{border-bottom:.65pt solid #555}
 /* Let short call-sign, role and telephone values determine their own widths. */
 body.printing #print-root .legacy-brief-pdf .legacy-lead-table{table-layout:auto}
 body.printing #print-root .legacy-brief-pdf .legacy-lead-table :is(th,td):nth-child(1),
 body.printing #print-root .legacy-brief-pdf .legacy-lead-table :is(th,td):nth-child(3),
 body.printing #print-root .legacy-brief-pdf .legacy-lead-table :is(th,td):nth-child(4){width:1%;white-space:nowrap}
 body.printing #print-root .legacy-brief-pdf .legacy-lead-table :is(th,td):nth-child(2),
 body.printing #print-root .legacy-brief-pdf .legacy-lead-table :is(th,td):nth-child(5){width:auto;overflow-wrap:anywhere}
}

/* v12: compact in-page editors replace routine overlay dialogs. */
.inline-editor{border:1px solid #95c8bf;background:#f8fcfb;scroll-margin-top:20px;box-shadow:0 5px 20px #123a4620;padding:22px 24px}
.inline-editor-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid #d6e7e3}
.inline-editor-heading h2{font-size:21px;margin-top:4px}
.inline-editor-heading p{margin:4px 0 0}
.inline-editor .form-grid{max-width:880px}
.inline-editor .list-card{max-width:880px}
.topbar-refresh{white-space:nowrap;min-width:40px}
.install-link{background:#25465a;color:white;border:1px solid #456378;text-align:center;justify-content:center;margin:0 0 12px;font-size:13px}
.pull-refresh-indicator{position:absolute;top:72px;left:50%;transform:translate(-50%,-150%);opacity:0;background:#163b4b;color:white;border-radius:22px;padding:9px 17px;pointer-events:none;transition:transform .18s,opacity .18s;z-index:8}
.pull-refresh-indicator.is-refreshing{transform:translate(-50%,4px);opacity:1}
/* Prevent native document pull-reload; the app's gesture updates state in place. */
html,body{overscroll-behavior-y:contain}
@media(max-width:760px){
 .inline-editor{padding:16px;margin-bottom:12px}
 .inline-editor-heading h2{font-size:19px}
 .inline-editor .form-grid{grid-template-columns:minmax(0,1fr)}
 .inline-editor .form-grid>.field{grid-column:1/-1}
 .inline-editor .form-actions{position:sticky;bottom:calc(64px + env(safe-area-inset-bottom));background:#f8fcfb;padding:8px 0;z-index:4}
 .pull-refresh-indicator{top:65px}
 .mobile-bottom-nav{padding-bottom:max(6px,env(safe-area-inset-bottom))}
 .page{padding-bottom:calc(100px + env(safe-area-inset-bottom))}
}
@media print{.inline-editor,.pull-refresh-indicator,.install-link,.topbar-refresh{display:none!important}}

/* v13 – in-page document preview, avoiding popup windows in installed apps. */
.print-preview-view{max-width:1040px;margin:0 auto}
.print-preview-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin:18px 0}
.print-preview-scroll{padding:16px;overflow-x:auto;background:#dde4e8;border-radius:12px;border:1px solid #ccd5dc}
.print-preview-paper{width:100%;max-width:794px;min-width:0;margin:0 auto;padding:22px;background:white;color:#111;box-shadow:0 8px 28px #1b344027;font-family:Arial,Helvetica,sans-serif;font-size:11px;line-height:1.3}
.print-preview-paper h1,.print-preview-paper h2{font-family:Arial,Helvetica,sans-serif}
.print-preview-paper .legacy-brief-pdf{border:2px solid #111;padding:8px;background:white;color:#111}
.print-preview-paper .legacy-pdf-header{display:grid;grid-template-columns:18% 64% 18%;text-align:center;align-items:stretch;border:1px solid #111;margin-bottom:5px}
.print-preview-paper .legacy-pdf-header>*{padding:8px 3px;border-right:1px solid #111;overflow-wrap:anywhere;min-width:0}
.print-preview-paper .legacy-pdf-header>*:last-child{border-right:0}
.print-preview-paper .legacy-pdf-header strong{font-size:13px}
.print-preview-paper .legacy-pdf-two-columns{display:grid;grid-template-columns:1fr 1fr}
.print-preview-paper .legacy-pdf-section{border:1px solid #111;margin:5px 0}
.print-preview-paper .legacy-pdf-two-columns>.legacy-pdf-section{margin:0}
.print-preview-paper .legacy-pdf-two-columns>.legacy-pdf-section+.legacy-pdf-section{border-left:0}
.print-preview-paper .legacy-pdf-section h2{background:#ebebeb;border-bottom:1px solid #111;margin:0;padding:5px;text-transform:uppercase;font-size:10px;letter-spacing:0}
.print-preview-paper .legacy-priorities{display:grid;grid-template-columns:24% 76%}
.print-preview-paper .legacy-priorities>div{padding:6px;border-right:1px solid #777;border-bottom:1px solid #777;white-space:pre-wrap;overflow-wrap:anywhere}
.print-preview-paper .legacy-priorities>div:nth-child(even){border-right:0}
.print-preview-paper .legacy-priorities>div:nth-last-child(-n+2){border-bottom:0}
.print-preview-paper .legacy-prio-one{background:#c9ebcf;font-weight:bold}
.print-preview-paper .legacy-prio-two{background:#ffe79b;font-weight:bold}
.print-preview-paper .legacy-other,.print-preview-paper .legacy-handover-content{padding:8px;white-space:pre-wrap;overflow-wrap:anywhere}
.print-preview-paper .legacy-pdf-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:10px}
.print-preview-paper .legacy-pdf-table th,.print-preview-paper .legacy-pdf-table td{border:1px solid #777;padding:5px;vertical-align:top;overflow-wrap:anywhere}
.print-preview-paper .legacy-pdf-table th{background:#f2f2f2;text-align:left}
.print-preview-paper .legacy-pdf-handover{display:grid;grid-template-columns:70% 30%}
.print-preview-paper .legacy-pdf-handover .legacy-pdf-section{margin:0}
.print-preview-paper .legacy-pdf-brand{border:1px solid #111;border-left:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}
.print-preview-paper .legacy-pdf-brand small{font-size:10px}
.print-preview-paper .print-report{padding:12px;font-size:14px}
.print-preview-paper .print-report section{border-top:1px solid #bdc7cf;padding:14px 0}
.print-preview-paper .print-report section h2{margin-bottom:5px}
@media(max-width:760px){
 .print-preview-scroll{padding:7px}
 .print-preview-paper{padding:9px;font-size:9px;box-shadow:none}
 .print-preview-paper .legacy-pdf-header strong{font-size:10px}
 .print-preview-paper .legacy-pdf-table{font-size:8px}
 .print-preview-paper .legacy-pdf-table th,.print-preview-paper .legacy-pdf-table td{padding:3px 2px}
 .print-preview-paper .legacy-pdf-section h2{font-size:9px}
 .print-preview-actions{display:grid;grid-template-columns:1fr 1fr}
 .print-preview-actions .btn{min-height:44px;padding:7px 10px}
}
@media print{.print-preview-view{display:none!important}}

/* v14: gemensam bottenpanel för lägg till, visa och redigera. */
body.modal-active{overflow:hidden}
.sheet-overlay{position:fixed;inset:0;display:flex;justify-content:center;align-items:flex-end;background:rgba(8,24,40,.5);z-index:70;overscroll-behavior:contain;padding:0 16px}
.bottom-sheet{width:min(860px,100%);max-height:min(88dvh,920px);display:flex;flex-direction:column;background:#fff;border-radius:21px 21px 0 0;box-shadow:0 -20px 75px #0a243a47;outline:none;overflow:hidden;animation:sheet-rise .24s ease-out}
@keyframes sheet-rise{from{transform:translateY(28px);opacity:.55}to{transform:translateY(0);opacity:1}}
.sheet-handle{background:#b9c6cf;border-radius:8px;width:44px;height:5px;margin:11px auto 8px;flex:none}
.sheet-heading{padding:5px 24px 17px;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border-bottom:1px solid #e7edf0;flex:none}
.sheet-heading h2{font-size:23px;line-height:1.25;margin:4px 0 0}
.sheet-heading p{margin:6px 0 0}
.sheet-close{width:44px;height:44px;display:grid;place-items:center;border:1px solid #e0e8eb;border-radius:12px;background:#f6f9fa;font-size:25px;color:#2f4e60;flex:none}
.sheet-close:hover{background:#e8f2f2}
.sheet-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:22px 24px calc(25px + env(safe-area-inset-bottom,0px))}
.sheet-body .form-grid{max-width:none}
.sheet-body .form-actions{position:sticky;bottom:-1px;background:#fff;padding:14px 0 1px;z-index:3;border-top:1px solid #eef1f3}
.sheet-body input,.sheet-body textarea,.sheet-body select{font-size:16px}
.sheet-body .form-actions .btn{min-height:45px}
@media(max-width:760px){
 .sheet-overlay{padding:0}
 .bottom-sheet{width:100%;max-height:calc(96dvh - env(safe-area-inset-top,0px));border-radius:22px 22px 0 0}
 .sheet-heading{padding:4px 17px 13px}
 .sheet-heading h2{font-size:20px}
 .sheet-body{padding:17px 16px calc(22px + env(safe-area-inset-bottom,0px))}
 .sheet-body .form-grid{grid-template-columns:minmax(0,1fr);gap:14px}
 .sheet-body .form-grid .field{grid-column:1/-1}
 .sheet-body .form-actions{padding-top:12px;bottom:0}
}
@media(prefers-reduced-motion:reduce){.bottom-sheet{animation:none}}
@media print{.sheet-overlay{display:none!important}}

/* v14: översikt med tydlig prioritering och lättnavigerade arbetsytor. */
.dashboard-v14{display:grid;gap:18px}
.dashboard-welcome{background:linear-gradient(112deg,#142f45,#13504d);border-radius:18px;padding:28px 30px;color:white;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.dashboard-welcome-kicker{font-size:10px;letter-spacing:.16em;font-weight:800;color:#a4e1d7}
.dashboard-welcome h1{color:#fff;font-size:clamp(26px,3vw,36px);margin:7px 0}
.dashboard-welcome p{color:#cfe2e3;font-size:14px;margin:0}
.dashboard-welcome-actions{display:flex;gap:9px;flex-wrap:wrap}
.dashboard-welcome-actions .btn:not(.primary){color:#fff;background:#ffffff18;border-color:#ffffff55}
.dashboard-welcome-actions .btn.primary{background:#d5f6e9;border-color:#d5f6e9;color:#144b45}
.dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.dashboard-metric{background:white;border:1px solid #dfe7eb;border-radius:14px;min-width:0;padding:17px 19px;display:grid;gap:7px;border-top:3px solid #bdcdd7}
.dashboard-metric span{color:#526c7c;font-size:12px;font-weight:800}
.dashboard-metric strong{font-size:31px;line-height:1;letter-spacing:-.05em}
.dashboard-metric small{font-size:11px;color:#728292}
.dashboard-metric.metric-live{border-top-color:#18a784}.dashboard-metric.metric-planned{border-top-color:#6f8fd3}.dashboard-metric.metric-tasks{border-top-color:#d1a050}.dashboard-metric.metric-overdue{border-top-color:#c95a62}
.dashboard-columns{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(310px,1fr);gap:16px;align-items:start}
.dashboard-panel,.dashboard-shortcuts{background:white;border:1px solid var(--line);border-radius:16px;padding:21px;min-width:0;box-shadow:var(--shadow)}
.dashboard-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.dashboard-panel-heading h2{font-size:19px;margin-top:5px}
.dashboard-panel-heading .btn{font-size:12px;min-height:34px;padding:7px 11px}
.dashboard-incident{display:flex;align-items:center;gap:14px;padding:15px 0;border-top:1px solid #eef1f3}
.dashboard-incident-marker{width:5px;align-self:stretch;min-height:57px;flex:none;border-radius:5px;background:#c6d3da}
.dashboard-incident-marker.priority-1{background:#bc4150}.dashboard-incident-marker.priority-2{background:#d09d35}.dashboard-incident-marker.priority-3{background:#318c7e}
.dashboard-incident-info{flex:1;min-width:0}.dashboard-incident-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:11px;color:#71818b}
.dashboard-incident-info h3{margin:8px 0 2px;font-size:15px;overflow-wrap:anywhere}
.dashboard-incident-info p{color:#758693;font-size:12px;margin:0;overflow-wrap:anywhere}
.dashboard-open{white-space:nowrap;font-size:12px}.dashboard-open span{font-size:19px;line-height:0}
.dashboard-task{display:flex;align-items:center;gap:11px;padding:13px 0;border-top:1px solid #eef1f3}
.dashboard-task-mark{width:10px;height:10px;flex:none;border-radius:50%;background:#d6a84a}.dashboard-task-mark.late{background:#c34856}
.dashboard-task>div:nth-child(2){flex:1;min-width:0}.dashboard-task strong{font-size:13px;overflow-wrap:anywhere}
.dashboard-task p{margin:3px 0 0;color:#758693;font-size:11px;overflow-wrap:anywhere}
.dashboard-side-note{font-size:12px;color:#677c87;padding:14px 0 0;display:flex;gap:7px;align-items:center}
.dashboard-alert-dot{width:8px;height:8px;border-radius:50%;background:#bb4154}
.dashboard-shortcuts{padding-bottom:23px}.dashboard-shortcut-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.dashboard-shortcut-grid button{text-align:left;display:flex;flex-direction:column;gap:7px;padding:16px;border:1px solid #dce5e9;border-radius:13px;background:#f8fbfc;color:#193448;min-width:0;min-height:132px}
.dashboard-shortcut-grid button:hover{border-color:#66a9a5;background:#f0f9f6}.dashboard-shortcut-grid button span{font-size:27px;color:#087a70}
.dashboard-shortcut-grid button strong{font-size:14px}.dashboard-shortcut-grid button small{color:#748491;font-size:11px;line-height:1.35;overflow-wrap:anywhere}
@media(max-width:1120px){.dashboard-columns{grid-template-columns:1fr}.dashboard-shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.dashboard-v14{gap:13px}.dashboard-welcome{border-radius:14px;padding:22px 18px}.dashboard-welcome h1{font-size:26px}.dashboard-welcome-actions{width:100%}.dashboard-welcome-actions .btn{flex:1}.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.dashboard-metric{padding:14px 13px}.dashboard-metric strong{font-size:28px}.dashboard-columns{gap:13px}.dashboard-panel,.dashboard-shortcuts{padding:16px;border-radius:14px}.dashboard-incident{gap:9px}.dashboard-open{padding:8px;min-height:39px}.dashboard-shortcut-grid button{min-height:116px;padding:12px}}
@media(max-width:350px){.dashboard-incident{flex-wrap:wrap}.dashboard-open{margin-left:auto}.dashboard-welcome-actions .btn{padding:9px 8px}.dashboard-shortcut-grid{gap:8px}}

/* Mallredigering inuti bottenpanelen, utan dubbla kortkanter. */
.sheet-body .classic-template-editor{border:0;box-shadow:none;border-radius:0;padding:0;margin:0;background:transparent}
.sheet-body .classic-template-footer{position:sticky;bottom:-1px;background:white;padding:14px 0;z-index:2;border-top:1px solid #e7edf0}
@media(max-width:760px){.sheet-body .classic-template-fields{grid-template-columns:minmax(0,1fr)}.sheet-body .classic-template-section{padding:14px 10px}}


/* v15: grupperad huvudmeny och tydlig central snabbåtgärd. */
.sidebar{overflow-y:auto;overscroll-behavior:contain;gap:18px}
.sidebar-nav{display:grid;align-content:start;gap:17px;min-width:0}
.sidebar-nav-section{min-width:0}
.sidebar-nav .nav-caption{display:block;margin:0 11px 7px;font-size:10px;line-height:1.5;font-weight:800;letter-spacing:.115em;text-transform:uppercase;color:#96adbd}
.sidebar-nav .nav-group{display:grid;gap:3px;padding:0}
.sidebar-nav .nav-link{min-height:41px;padding:9px 11px;gap:12px}
.sidebar-nav .nav-link>span:first-child{flex:none;width:24px;font-size:18px;text-align:center}
.sidebar-nav .nav-link>span:last-child{min-width:0}
.sidebar-nav .nav-link.active{background:#285168;color:#fff;box-shadow:inset 3px 0 0 #34c0a8}
.sidebar-nav .nav-link:focus-visible{outline-offset:-2px}
.sidebar-foot{flex-shrink:0}
:where(.mobile-bottom-create):focus-visible{outline:3px solid #22a792;outline-offset:2px}
@media(max-width:760px){
 .sidebar{gap:19px}
 .sidebar-nav{gap:20px;flex-shrink:0}
 .sidebar-nav .nav-link{min-height:46px;padding:11px 13px}
 .sidebar-nav .nav-caption{margin-bottom:8px}
 .mobile-bottom-nav{height:calc(73px + env(safe-area-inset-bottom,0px));padding:6px 5px max(7px,env(safe-area-inset-bottom,0px));overflow:visible}
 .mobile-bottom-link{min-height:57px}
 .mobile-bottom-create{position:relative;color:#0a605b;overflow:visible;font-weight:800;gap:1px;padding-top:0}
 .mobile-bottom-create .mobile-create-icon{display:grid;place-items:center;width:48px;height:48px;min-height:48px;border-radius:16px;background:#007a70;color:white;font-size:32px;font-weight:450;line-height:1;margin-top:-23px;box-shadow:0 6px 16px #004e493e;border:3px solid white}
 .mobile-bottom-create .mobile-create-label{font-size:10px;line-height:1.2;white-space:nowrap;margin-top:0}
 .mobile-bottom-create:hover .mobile-create-icon,.mobile-bottom-create:active .mobile-create-icon{background:#005e58}
 .mobile-bottom-create:active{background:transparent}
 .main{padding-bottom:calc(82px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:360px){.mobile-bottom-create .mobile-create-icon{width:45px;height:45px;min-height:45px;font-size:30px}.mobile-bottom-create .mobile-create-label{font-size:9px}}
@media print{.sidebar-nav,.mobile-bottom-create{display:none!important}}
