:root{color-scheme:dark;--bg:#131a25;--panel:#1d2634;--panel2:#242f40;--line:#344154;--text:#e9eff8;--muted:#97a7bc;--blue:#5ca7ff;--green:#43cf96;--amber:#f1ba6d;--red:#f47f89}*{box-sizing:border-box}body{margin:0;font:14px/1.5 Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}.shell{display:flex;min-height:100vh}.sidebar{width:248px;flex-shrink:0;background:#171f2b;border-right:1px solid var(--line);padding:24px 14px;display:flex;flex-direction:column;gap:28px}.brand{font-size:19px;font-weight:800;letter-spacing:-.5px;padding:0 12px}.brand small{display:block;color:var(--muted);font-size:11px;font-weight:500;letter-spacing:.8px;text-transform:uppercase}.navhead{font-size:10px;color:#8092ab;font-weight:800;letter-spacing:1.5px;margin:15px 12px 8px}.navbtn{display:flex;align-items:center;gap:12px;padding:11px 13px;margin:4px 0;border-radius:9px;color:#acbad0;cursor:pointer;border:0;background:transparent;width:100%;text-align:left}.navbtn:hover,.navbtn.active{background:#28394f;color:#fff}.navbtn.active{border-left:3px solid var(--blue)}.navbtn svg{width:17px;height:17px}.sidebottom{margin-top:auto;border-top:1px solid var(--line);padding:18px 12px;color:var(--muted);font-size:12px}.main{min-width:0;flex:1}.topbar{height:76px;background:#1a2330;display:flex;justify-content:space-between;align-items:center;padding:0 28px;border-bottom:1px solid var(--line);gap:15px}.topbar h1{font-size:20px;margin:0;font-weight:720}.sub{color:var(--muted);font-size:12px;margin-top:4px}.toolbar{display:flex;gap:10px;align-items:center}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);background:#293647;color:#f0f4fc;padding:10px 14px;border-radius:9px;font-weight:650}.button:hover{background:#34465d}.button.primary{background:#358bf2;border-color:#358bf2;color:white}.button.primary:hover{background:#2277d8}.button.ghost{background:transparent}.content{padding:25px 28px;max-width:1550px;margin:auto}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:23px}.stat{padding:21px;background:var(--panel);border:1px solid var(--line);border-radius:13px}.stat span{font-size:12px;color:var(--muted)}.stat strong{font-size:30px;display:block;margin-top:4px;line-height:1.2}.stat small{font-size:11px;color:var(--muted)}.section{background:var(--panel);border:1px solid var(--line);border-radius:13px;overflow:hidden}.sectionhead{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;padding:18px 20px;border-bottom:1px solid var(--line)}.sectionhead h2{font-size:15px;margin:0}.filters{display:flex;flex-wrap:wrap;gap:9px}.field{background:#141e2b;border:1px solid #3a4a60;border-radius:8px;color:#eaf1fb;padding:10px 12px;min-width:0;outline:none}.field:focus{border-color:var(--blue);box-shadow:0 0 0 2px #5ca7ff20}.filters .field{max-width:225px}.tickets{width:100%;border-collapse:collapse;text-align:left}.tickets th{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:#8597ac;background:#202c3b;font-weight:700;padding:12px 16px}.tickets td{border-top:1px solid #303d50;padding:15px 16px;vertical-align:middle}.tickets tbody tr{cursor:pointer}.tickets tbody tr:hover{background:#273449}.subject{font-weight:650;color:#eaf2fd}.tiny{font-size:12px;color:var(--muted)}.tag{display:inline-block;white-space:nowrap;padding:4px 9px;font-size:11px;border-radius:6px;background:#253b54;color:#97c7ff;font-weight:700}.tag.open{background:#203b52;color:#77b9ff}.tag.progress{background:#483b2c;color:#ffd18a}.tag.waiting{background:#45365b;color:#c9a5ff}.tag.closed{background:#1e4438;color:#82e6b2}.priority{font-weight:750}.priority.high{color:var(--red)}.priority.medium{color:var(--amber)}.priority.low{color:var(--green)}.empty{padding:50px;text-align:center;color:var(--muted)}.drawerback{position:fixed;inset:0;background:#050a129c;display:none;z-index:20}.drawerback.show{display:block}.drawer{position:absolute;right:0;top:0;bottom:0;width:min(550px,100%);background:#202b3a;border-left:1px solid var(--line);padding:26px;overflow:auto;box-shadow:-20px 0 50px #0004}.drawer h2{font-size:22px;margin:12px 0}.drawer .meta{line-height:2;color:var(--muted);font-size:13px}.drawer p{white-space:pre-wrap;line-height:1.7}.drawer label{display:block;color:#afbed1;font-size:12px;margin:18px 0 6px;font-weight:650}.drawer .field{width:100%}.drawer textarea{min-height:105px;resize:vertical}.drawer .close{float:right}.drawer .notes{background:#152030;padding:14px;border-radius:9px;margin:10px 0;white-space:pre-wrap;overflow-wrap:anywhere}.notice{color:#b9cde4;font-size:12px;margin-top:15px}.mobiletop{display:none}.toast{position:fixed;bottom:20px;right:20px;padding:14px 18px;background:#1c4337;border:1px solid #3f9977;border-radius:10px;color:#c2fbe1;box-shadow:0 8px 20px #0005;z-index:40}.demo{padding:11px 16px;background:#27374e;border:1px solid #3b5274;border-radius:9px;color:#b7cbe6;font-size:12px;margin-bottom:20px}.mobilecards{display:none}.portal{min-height:100vh;background:radial-gradient(ellipse at 80% -10%,#1c4770 0,transparent 52%),#121b28}.portalnav{display:flex;align-items:center;justify-content:space-between;max-width:1100px;margin:auto;padding:25px 22px}.portalshell{max-width:750px;margin:35px auto;padding:0 20px 65px}.portalshell h1{font-size:clamp(28px,5vw,40px);margin:0 0 10px}.portalshell .lead{color:#b0c1d7;margin-bottom:30px}.formcard{background:#202c3c;border:1px solid #38475c;border-radius:18px;padding:32px;box-shadow:0 22px 75px #0003}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.formgroup{margin-bottom:19px}.formgroup label{display:block;font-weight:650;font-size:12px;margin-bottom:8px;color:#c1cee0}.formgroup .field{width:100%;min-height:43px}.formgroup textarea{min-height:135px;resize:vertical}.formgroup.full{grid-column:1/-1}.help{color:#8da1bb;font-size:11px;margin-top:6px}.success{background:#1d483d;border:1px solid #367e68;padding:28px;border-radius:15px;text-align:center}.success h2{margin:5px 0}.footnote{font-size:12px;color:#8498b0;text-align:center;margin:26px}.hidden{display:none!important}@media(max-width:1000px){.sidebar{width:205px}.stats{grid-template-columns:repeat(2,1fr)}.hide-tablet{display:none}}@media(max-width:690px){.shell{display:block}.sidebar{display:none}.mobiletop{display:flex;background:#192432;padding:15px 17px;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.topbar{height:auto;padding:18px;align-items:flex-start}.topbar h1{font-size:18px}.topbar .toolbar{flex-wrap:wrap;justify-content:flex-end}.content{padding:14px}.stats{gap:9px;margin-bottom:15px}.stat{padding:14px}.stat strong{font-size:25px}.sectionhead{padding:15px}.filters{width:100%}.filters input{flex:1;min-width:160px}.filters select{max-width:140px}.tickets{display:none}.mobilecards{display:block}.ticketcard{padding:16px;border-top:1px solid var(--line);cursor:pointer}.ticketcard .subject{display:block;margin-bottom:8px}.ticketcard .tiny{margin:7px 0}.formgrid{grid-template-columns:1fr}.formcard{padding:22px}.portalnav{padding:18px}.portalshell{margin:20px auto}.portalnav .button{font-size:12px}}

.login-overlay{position:fixed;inset:0;z-index:80;background:radial-gradient(ellipse at 72% 1%,#254a70,transparent 48%),#121b28;display:flex;align-items:center;justify-content:center;padding:20px}.login-overlay.hidden{display:none}.login-card{width:min(440px,100%);background:#202c3c;border:1px solid #38475c;border-radius:18px;padding:30px;box-shadow:0 18px 55px #0008}.login-card .brand{padding:0}.login-card h2{font-size:23px;margin:25px 0 5px}.login-card p{color:#9eb2cb;font-size:13px;line-height:1.6}.login-card label{display:block;margin:16px 0 7px;font-size:12px}.login-card .field{width:100%;height:44px}.login-card button{width:100%;margin:22px 0 8px;padding:13px}.login-card>a{color:#72b9ff;font-size:12px}.login-error{color:#ffacb7;font-size:12px;margin:12px 0;min-height:14px}.honey{position:absolute!important;left:-99999px!important}.captcha-slot{margin:12px 0}.button:disabled{opacity:.65;cursor:wait}.sync-indicator{color:#a9bcce}.portal .button{white-space:nowrap}.tag{white-space:nowrap}

/* v2.5 settings, destructive controls and device-specific push visibility */
.desktop-hidden{display:none!important}
.settings-panel{background:#1d2634;border:1px solid #344154;border-radius:13px;padding:20px;margin:0 0 17px}
.settings-panel h2{font-size:16px;margin:0 0 15px}
.remember-setting{display:flex!important;gap:10px;align-items:center;color:#d9e8f8;font-size:13px!important;cursor:pointer}
.remember-setting input{width:17px;height:17px;accent-color:#358bf2;flex:none}
.login-card .remember-setting{margin-top:16px}
.button.danger{border-color:#8f4951;background:#4c2832;color:#ffc6ca}
.button.danger:hover{background:#79343f}
@media(max-width:690px){.topbar{flex-wrap:wrap}.topbar .toolbar{justify-content:flex-start}.settings-panel{margin-bottom:14px}}

.row-delete{border:1px solid #774451;background:transparent;color:#f1a0aa;border-radius:7px;min-width:32px;height:32px;font-weight:bold;cursor:pointer}
.row-delete:hover{background:#682e3d;color:#fff}
.mobile-delete{float:right;margin-top:-3px}
/* v2.6 closed-ticket badge and responsive status filter */
.tag.closed{background:#324050;color:#c5d2e4}
@media(max-width:690px){.filters select{flex:1 1 135px;max-width:none}.filters input{flex:1 1 100%}}

/* v2.9: required closure resolution dialog */
.resolution-back{position:fixed;inset:0;z-index:65;background:#050a12c9;display:flex;align-items:center;justify-content:center;padding:18px}
.resolution-modal{width:min(560px,100%);background:#202c3c;border:1px solid #465a73;border-radius:17px;padding:26px;box-shadow:0 20px 70px #0009}
.resolution-modal h2{font-size:22px;margin:0 0 7px}.resolution-modal label{display:block;font-size:13px;margin:18px 0 8px;font-weight:700}
.resolution-modal textarea{width:100%;min-height:160px;resize:vertical}.resolution-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}
.resolution-error,.required{color:#ff9fa8}.resolution-error{min-height:18px;font-size:12px;margin:8px 0}.resolution-display{border:1px solid #435877;border-radius:9px;padding:14px;margin-top:16px;background:#162638}.resolution-display p{white-space:pre-wrap;overflow-wrap:anywhere}

/* v3.1 compact mobile dashboard navigation */
.mobile-menu{display:none}
@media(max-width:690px){
 body{overflow-x:hidden}
 .mobiletop{position:sticky;top:0;z-index:16;gap:10px;padding:11px 15px;min-height:58px}
 .mobiletop b{font-size:16px;white-space:nowrap}
 .mobiletop-actions{display:flex;align-items:center;gap:8px}
 .mobile-new-ticket{padding:8px 11px;font-size:12px}
 .mobile-menu-toggle{min-width:42px;min-height:42px;background:#27374b;color:#eef5ff;border:1px solid #4a6078;border-radius:10px;font-size:22px;line-height:1}
 .mobile-menu{display:block;position:fixed;top:58px;right:0;left:0;bottom:0;overflow-y:auto;overscroll-behavior:contain;z-index:35;background:#192432;border-top:1px solid #344154;padding:12px 17px max(30px,env(safe-area-inset-bottom));box-shadow:0 15px 40px #000a}
 .mobile-menu.hidden{display:none}
 .mobile-menu-title{padding:14px 10px 5px;color:#92a7c0;font-size:10px;font-weight:800;letter-spacing:1.2px}
 .mobile-menu-item{display:block;width:100%;text-align:left;background:transparent;border:0;border-radius:9px;color:#e9eff8;padding:12px 13px;font-size:14px;min-height:43px}
 .mobile-menu-item.active{background:#2a405b;color:white;border-left:3px solid #5ca7ff}
 .mobile-menu-item:focus-visible,.mobile-menu-toggle:focus-visible{outline:2px solid #5ca7ff;outline-offset:2px}
 .mobile-signout{color:#ffc0c0;border-top:1px solid #344154;margin-top:8px;border-radius:0}
 .topbar{padding:15px 16px 8px;min-height:0;border-bottom:0}
 .topbar .toolbar{display:none!important}
 .topbar h1{font-size:21px}
 .topbar .sub{font-size:11px}
 .content{padding:10px 12px 22px}
 .stats{margin-bottom:12px}
 .stat{padding:11px 13px}
 .stat strong{font-size:23px}
 .stat small{font-size:10px}
 .sectionhead{display:block;padding:14px}
 .sectionhead h2{margin-bottom:11px}
 .filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
 .filters .field,.filters input,.filters select{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;font-size:13px;min-height:42px}
 .filters #search{grid-column:1/-1}
 .filters #statusFilter{grid-column:1/-1}
 #pushHint{display:none!important}
 .drawer{padding:19px;padding-bottom:calc(26px + env(safe-area-inset-bottom))}
 .ticketcard{padding:15px}
}
@media(min-width:691px){.mobile-menu,.mobiletop{display:none!important}}

/* v3.3: mobile ticket view selector on dashboard home, outside tools menu */
.mobile-ticket-picker{display:none}
@media(max-width:690px){
 .queue-heading{width:100%}
 .mobile-ticket-picker{display:block;margin:10px 0 12px}
 .mobile-ticket-picker label{display:block;color:#aabdd4;font-size:11px;font-weight:700;margin-bottom:6px}
 .mobile-ticket-picker select{display:block;width:100%;max-width:none;min-height:46px;background:#141e2b;border:1px solid #4b6685;border-radius:10px;color:#eff6ff;padding:10px 14px;font-size:15px;font-weight:650}
 .filters #statusFilter{display:none!important}
 .sectionhead h2{margin-bottom:0}
}

/* v3.4: no login-screen flash while an existing session is being refreshed. */
.startup-overlay{position:fixed;inset:0;z-index:90;display:flex;align-items:center;justify-content:center;padding:24px;background:radial-gradient(ellipse at 72% 1%,#254a70,transparent 48%),#121b28}
.startup-overlay.hidden{display:none}
.startup-brand{text-align:center;font-size:25px;font-weight:800;color:#f2f6fc}
.startup-brand span{color:#5ca7ff}
.startup-brand p{font-size:13px;color:#b4c7df;font-weight:400;margin:14px 0 0}
.startup-brand .button{margin:20px auto 0}
.startup-spinner{height:28px;width:28px;border:3px solid #36506e;border-top-color:#5ca7ff;border-radius:50%;margin:24px auto 0;animation:bj-spin .85s linear infinite}
@keyframes bj-spin{to{transform:rotate(360deg)}}
/* iOS Safari zooms focused form controls with computed font sizes below 16px.
   Preserve user pinch-zoom; avoid restrictive viewport/meta hacks. */
@media(max-width:690px){
 input:not([type=checkbox]):not([type=radio]), select, textarea,
 .field, .filters .field, .filters input, .filters select,
 .mobile-ticket-picker select, .login-card input, .resolution-modal textarea,
 .drawer select, .drawer input, .drawer textarea {font-size:16px!important}
}

/* v3.5 desktop and mobile: anchor the Settings panel directly beneath its button. */
.settings-panel {position:fixed;z-index:60;max-height:min(75vh,420px);overflow-y:auto;margin:0!important;padding:18px 20px;box-shadow:0 18px 50px #0009;background:#202b3a;border:1px solid #445772;border-radius:12px;}
.settings-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.settings-menu-heading h2{margin:0;font-size:17px}
.settings-close{background:transparent;border:0;color:#c3d3e7;font-size:20px;padding:4px 8px;border-radius:7px}
.settings-close:hover{background:#34465d}
.settings-panel .remember-setting{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:14px}
.settings-panel .tiny{margin:10px 0 0;line-height:1.55}
@media(max-width:690px){.settings-panel{max-height:calc(100dvh - 90px);}}

/* v3.6: mobile Settings is an inline submenu, directly below Settings; desktop stays floating. */
@media (max-width:690px){
 .mobile-settings-inline{padding:14px 13px 16px;background:#223247;border:1px solid #3a516d;border-radius:10px;margin:2px 0 10px}
 .mobile-settings-inline.hidden{display:none!important}
 .mobile-settings-inline .remember-setting{display:flex;align-items:center;gap:10px;font-size:15px;line-height:1.4;color:#eaf2fc}
 .mobile-settings-inline .remember-setting input{width:19px;height:19px;flex-shrink:0;accent-color:#5ca7ff}
 .mobile-settings-inline .tiny{margin:11px 0 0;font-size:12px;line-height:1.5;color:#afc2d9}
 .mobile-settings-toggle{display:flex;align-items:center;justify-content:space-between}
 .mobile-settings-chevron{transition:transform .15s ease}
 .mobile-settings-toggle[aria-expanded=true] .mobile-settings-chevron{transform:rotate(180deg)}
}

/* v3.8 destructive operation kept inside Settings on desktop and mobile */
.clear-all-btn{width:100%;margin-top:10px;text-align:center;}
.settings-divider{border:0;border-top:1px solid rgba(150,170,195,.22);margin:16px 0 12px;}
.mobile-settings-inline .clear-all-btn{margin:8px 0;}

/* v4.0 bulk ticket selection on desktop and mobile */
.select-col{width:43px!important;text-align:center;padding-left:12px!important;padding-right:6px!important}
.ticket-select,#selectVisible,#mobileSelectVisible{width:18px;height:18px;accent-color:#4c9cff;cursor:pointer}
.bulk-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 16px;background:#20334a;border-bottom:1px solid #49607b}
.bulk-actions strong{color:#ecf5ff;font-size:13px;white-space:nowrap}
.bulk-actions .field{font-size:14px;min-width:190px;max-width:250px;padding:9px}
.bulk-actions .button{padding:9px 13px;white-space:nowrap}
.bulk-actions .tiny{flex-basis:100%;line-height:1.5}
.mobile-select-tools{display:none}
.mobile-checkbox{display:flex;align-items:center;gap:10px;font-size:13px;color:#bcd3ec;padding:0 0 8px}
@media(max-width:690px){
 .mobile-select-tools{display:block;padding:10px 14px;border-bottom:1px solid #35465c}
 .bulk-select-label{display:flex;align-items:center;gap:10px;color:#c4d7ec;font-size:13px}
 .bulk-actions{position:relative;gap:8px;padding:12px}
 .bulk-actions .field{max-width:none!important;flex:1 1 100%;width:100%!important;font-size:16px!important}
 .bulk-actions .button{flex:1 1 auto;justify-content:center;font-size:13px}
 .bulk-actions .tiny{font-size:11px}
 .ticketcard .mobile-checkbox input{flex-shrink:0}
}

/* v4.4: compact employee form on standard desktop/laptop viewports. */
@media (min-width:691px) {
  .portalnav { padding-top:14px; padding-bottom:12px; }
  .portalshell { margin-top:12px; padding-bottom:18px; }
  .portalshell > div:first-child { margin-bottom:5px !important; }
  .portalshell h1 { font-size:clamp(28px,4vw,36px); margin-bottom:5px; }
  .portalshell .lead { margin-top:0; margin-bottom:16px; }
  .formcard { padding:20px 28px; border-radius:14px; }
  .formgrid { column-gap:16px; row-gap:8px; }
  .formgroup { margin-bottom:7px; }
  .formgroup label { margin-bottom:5px; }
  .formgroup .field { min-height:40px; padding-top:8px; padding-bottom:8px; }
  .formgroup textarea { min-height:79px; height:79px; }
  .formgroup .help { margin-top:4px; }
  .portal #ticketForm > .button.primary { padding:10px 14px !important; }
  .footnote { margin:12px auto; }
}
/* Preserve comfortably sized tap targets and legible inputs on phones. */
@media (max-width:690px) {
  .portalnav { padding-bottom:10px; }
  .portalshell { margin-top:12px; padding-bottom:22px; }
  .portalshell .lead { margin-bottom:17px; }
  .formcard { padding:18px; }
  .formgrid { row-gap:6px; }
  .formgroup { margin-bottom:10px; }
  .formgroup label { margin-bottom:5px; }
  .formgroup textarea { min-height:95px; }
}

/* v4.6: Scan-to-submit panel; responsive, no impact to technician dashboard */
@media (min-width:901px){
 .portalshell{max-width:1090px}
 .portal-layout{display:grid;grid-template-columns:minmax(0,710px) 270px;gap:22px;align-items:start}
 .portalmain{min-width:0}
 .portal-qr-card{position:sticky;top:24px;background:#202c3c;border:1px solid #38475c;border-radius:14px;padding:24px 17px;text-align:center;box-shadow:0 12px 35px #0002}
}
.portal-qr-card h2{font-size:20px;line-height:1.25;margin:8px 0 9px}
.portal-qr-card p{color:#b0c1d7;font-size:13px;line-height:1.55;margin:0 0 16px}
.portal-qr-eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:800;color:#71baff}
.portal-qr-image{display:block;background:white;border-radius:10px;padding:6px;width:100%;max-width:236px;margin:0 auto}
.portal-qr-image img{display:block;width:100%;height:auto;image-rendering:pixelated}
.portal-qr-download{display:inline-block;margin-top:14px;font-size:12px;font-weight:650;color:#86c4ff;text-decoration:underline;text-underline-offset:3px}
@media (max-width:900px){.portal-qr-card{display:none!important}.portal-layout{display:block}}

/* v4.8 feature sections – responsive, consistent with existing dark styling */
.feature-panel{padding:5px 0 25px}.feature-panel h2{margin:0 0 12px;font-size:21px}.feature-panel h3{font-size:15px;margin:0 0 12px}.feature-panel>.tiny{margin:0 0 16px}
.analytics-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.metric-card,.feature-card{background:var(--panel);border:1px solid var(--line);border-radius:13px;padding:19px;margin-bottom:13px}
.metric-card span{color:var(--muted);font-size:12px;display:block}.metric-card strong{font-size:27px;display:block;margin-top:6px}
.metric-row{display:grid;grid-template-columns:minmax(130px,1fr) 70px;gap:8px;align-items:center;margin:10px 0;font-size:13px}.metric-row strong{text-align:right}
.metric-track{grid-column:1/-1;background:#111b28;height:8px;border-radius:20px;overflow:hidden}.metric-fill{height:100%;background:#5ca7ff;border-radius:20px}
.feature-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}.feature-head h2,.feature-head h3{margin:0}
.knowledge-results{margin-top:16px}.article-body{white-space:pre-wrap;color:#d4e2f2;line-height:1.65}.knowledge-form{display:flex;flex-direction:column;gap:12px;max-width:800px}.knowledge-form label{font-weight:600}
.attachment-list{margin-bottom:8px}.attachment-item{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:8px 0;overflow-wrap:anywhere}.attachment-item .button{padding:6px 10px}
@media(max-width:690px){.analytics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-card,.feature-card{padding:14px}.feature-panel .field{font-size:16px!important}.attachment-item{flex-wrap:wrap}}

/* v4.9 public self-help suggestions: desktop + mobile */
.selfhelp-area{background:#172b3b;border:1px solid #375778;border-radius:12px;padding:15px!important;margin-bottom:4px}
.selfhelp-title{font-size:14px;font-weight:750;color:#a7d2ff;margin-bottom:5px}
.selfhelp-results{display:grid;gap:9px;margin-top:10px}
.selfhelp-result{background:#223348;border:1px solid #405773;border-radius:10px;padding:12px 14px}
.selfhelp-result h3{font-size:14px;margin:0 0 6px;color:#fff}
.selfhelp-result p{font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 9px;color:#d7e8f8}
@media(max-width:690px){.selfhelp-area{padding:13px!important}.selfhelp-result{padding:11px}}

/* v5.0 Favorites + collapsible desktop/mobile navigation */
.sidebar nav{display:flex;flex-direction:column;gap:5px}
.sidebar-nav-section{min-width:0}
.sidebar-section-toggle,.mobile-section-toggle{width:100%;display:flex;justify-content:space-between;align-items:center;border:0;background:transparent;color:#91a8c5;cursor:pointer;text-align:left;font-weight:800;letter-spacing:1.15px;font-size:11px;padding:13px 11px 9px;border-radius:8px}
.sidebar-section-toggle:hover,.mobile-section-toggle:hover{background:#253449;color:#fff}
.sidebar-chevron{font-size:17px;color:#a8bfdb;line-height:1}
.sidebar-nav-body{min-width:0}
.sidebar-nav-row,.favorite-row{display:flex;align-items:center;min-width:0;position:relative}
.sidebar-nav-row .navbtn,.favorite-row .navbtn{flex:1;min-width:0;padding-right:6px;white-space:normal;overflow-wrap:anywhere}
.favorite-star{flex:0 0 32px;width:32px;height:34px;border:0;border-radius:7px;background:transparent;color:#647991;font-size:21px;cursor:pointer;display:grid;place-items:center}
.favorite-star:hover,.favorite-star:focus-visible{background:#31445d;color:#fff;outline:none}
.favorite-star.is-starred{color:#f3bf64}
.favorites-empty{padding:7px 12px 13px;color:#8197b4;font-size:12px;margin:0}
.favorite-go{padding-left:13px!important}
.mobile-nav-section{min-width:0}
.mobile-section-toggle{padding:15px 12px;min-height:45px;color:#afc4df;background:#1f3043;margin-top:7px;border:1px solid #34465d;font-size:12px}
.mobile-nav-body{padding:3px 1px 8px}
.mobile-nav-row,.mobile-favorite-row{display:flex;align-items:center;min-width:0}
.mobile-nav-row .mobile-menu-item,.mobile-favorite-row .mobile-menu-item{flex:1;min-width:0}
.mobile-portal-link{color:#d9e7f9}
@media(min-width:691px){.mobile-nav-section{display:none}}
@media(max-width:690px){.mobile-favorite-row .favorite-star,.mobile-nav-row .favorite-star{flex-basis:43px;width:43px;height:43px;font-size:22px}.mobile-nav-section .mobile-menu-item{font-size:15px}.sidebar-nav-section{display:none}}
/* v5.2 feature screens: responsive on desktop and iPhone web app */
.public-feature{max-width:620px;margin:6vh auto;padding:28px;background:#202c3c;border:1px solid #33465f;border-radius:18px;color:#e9f2ff}
.public-feature h1{font-size:28px;margin:0 0 12px}.public-feature label{display:block;margin:18px 0 8px}.public-feature .field{width:100%;font-size:16px}
.public-feature button{margin-top:18px}.public-feature a,.history-link a{color:#84baff}.history-link{text-align:center;padding:12px}
.advanced-toolbar{display:flex;gap:10px;margin:16px 0}.advanced-toolbar input{flex:1;min-width:0}
.search-result{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #34465e;flex-wrap:wrap}
.search-result p{margin:5px 0}.recurring-form{display:grid;gap:8px;margin:15px 0}.recurring-form label{margin-top:10px}
.timeline-list{padding:8px 0}.timeline-item{border-left:2px solid #5c9cf3;margin:8px 0;padding:8px 12px;font-size:12px;color:#bed0e3}
@media(max-width:690px){.public-feature{margin:12px;padding:18px;border-radius:12px}.advanced-toolbar{flex-direction:column}.search-result{align-items:flex-start}.search-result .button{width:auto}}

/* v5.3 optional returning-employee picker: compact, desktop + mobile */
.saved-employee-picker{border:1px solid #415b77;background:#192a3e;border-radius:10px;padding:12px 14px;margin-bottom:13px}
.saved-employee-head{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#c5daf0;font-weight:650;font-size:12px;margin-bottom:9px}
.saved-clear{border:0;background:none;color:#98bfe9;font-size:11px;padding:4px;white-space:nowrap}
.saved-employee-options{display:flex;flex-wrap:wrap;gap:7px}
.saved-employee-option{display:flex;flex-direction:column;align-items:flex-start;text-align:left;border:1px solid #49607a;border-radius:8px;background:#233750;color:#eef6ff;padding:7px 11px;max-width:100%;min-width:145px;line-height:1.35}
.saved-employee-option:hover,.saved-employee-option:focus-visible{border-color:#78b8ff;background:#304964}
.saved-employee-option strong{font-size:12px}.saved-employee-option span{font-size:11px;color:#bed0e4;overflow-wrap:anywhere}
.remember-employee-row{margin-top:-4px;margin-bottom:3px}
.remember-employee-row label{display:flex;gap:9px;align-items:center;font-weight:500;font-size:12px;cursor:pointer}
.remember-employee-row input{accent-color:#5ca7ff;min-height:17px;min-width:17px}
.remember-employee-row .help{margin-top:2px;margin-left:26px}
@media(max-width:690px){.saved-employee-head{align-items:flex-start;flex-wrap:wrap}.saved-employee-option{flex:1 1 100%;min-width:0}.saved-clear{font-size:12px}.remember-employee-row label{font-size:13px}}

/* v5.4 — technician-only ticket creator and requester lookup, desktop + mobile */
.tech-ticket-back{position:fixed;inset:0;z-index:1150;background:rgba(5,12,24,.78);display:flex;align-items:center;justify-content:center;padding:18px;overflow:auto}
.tech-ticket-back.hidden{display:none!important}
.tech-ticket-dialog{width:min(720px,100%);max-height:calc(100dvh - 36px);overflow:auto;border:1px solid #405571;background:#202c3c;color:#edf5ff;border-radius:15px;padding:24px;box-shadow:0 20px 65px #0008}
.tech-ticket-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}
.tech-ticket-header h2{margin:0 0 5px;font-size:23px}.tech-ticket-header p{margin:0}
.tech-ticket-dialog label{display:block;margin:12px 0 5px;font-size:13px;font-weight:650;color:#d4e5fa}
.tech-ticket-dialog .field{width:100%;box-sizing:border-box;font-size:16px}
.tech-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 15px}
.tech-ticket-dialog textarea{resize:vertical;min-height:90px}
.tech-ticket-buttons{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.tech-requester-results{border:1px solid #405775;border-radius:10px;background:#17263a;max-height:205px;overflow:auto;margin-top:7px;padding:5px}
.tech-requester-results.hidden{display:none!important}
.tech-requester-item{display:flex;flex-direction:column;text-align:left;width:100%;gap:3px;padding:9px 11px;color:#ecf5ff;background:none;border:0;border-radius:7px;cursor:pointer}
.tech-requester-item span{font-size:12px;color:#b2c9e5}
.tech-requester-item:hover,.tech-requester-item:focus-visible{background:#314762;outline:1px solid #5ca7ff}
@media(max-width:690px){.tech-ticket-back{padding:8px;align-items:flex-start}.tech-ticket-dialog{padding:15px;max-height:calc(100dvh - 16px);border-radius:12px}.tech-form-grid{grid-template-columns:1fr}.tech-ticket-header h2{font-size:20px}.tech-ticket-buttons .button{flex:1}}

/* v5.5 — version label for technician Settings, desktop and mobile */
.settings-version { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(157,178,204,.22); color: #99aec5; font-size: 12px; text-align: center; letter-spacing: .2px; }

/* v5.6: inline technician assignment and quick notes */
.ticket-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;white-space:nowrap}
.row-note{border:1px solid #49779d;color:#b9daff;background:#20344d;border-radius:7px;min-width:32px;height:32px;font-weight:800;font-size:20px;line-height:1;cursor:pointer}
.row-note:hover{background:#315981;color:white}
.row-assignee{width:148px;max-width:100%;padding:7px 8px;font-size:13px;cursor:pointer}
.mobile-assignment{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:11px 0}
.mobile-assignment .row-assignee{width:190px;font-size:16px}
.ticketcard .ticket-row-actions{margin-top:12px;justify-content:flex-start}
.ticketcard .row-note,.ticketcard .row-delete{min-width:40px;height:40px}
@media(max-width:1000px){.tickets td{padding:11px 8px}.row-assignee{width:130px}}
@media(max-width:690px){.ticketcard .mobile-status{margin:8px 0}.ticketcard .row-assignee{width:min(210px,65%)}#quickNoteText{font-size:16px}}

/* v5.7 system status + known issues */
.status-tools{display:grid;gap:14px}.status-tools .feature-card{margin:0}.status-tools .status-item{padding:12px 0;border-bottom:1px solid #35465a}.status-tools .status-item:last-child{border:0}.status-tools .status-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.status-tools .status-row>*{flex:1;min-width:125px}.status-tools textarea{width:100%;min-height:70px}.status-tools .inline-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.status-tools .inline-actions button{flex:0 0 auto}.status-tools .status-description{color:#a9bad0;font-size:12px}.status-tools .status-title{font-weight:700}.status-tools .status-badge{font-size:12px;color:#90bcff}

/* v5.8 Quick Close actions, desktop and mobile */
.row-quick-close{border:1px solid #4a856a;background:#19392f;color:#a6edc7;border-radius:7px;min-width:63px;height:32px;padding:0 9px;font-weight:700;cursor:pointer}
.row-quick-close:hover,.row-quick-close:focus-visible{background:#275d48;color:white}
.ticket-row-actions .row-delete{margin-left:auto}
.tickets .ticket-row-actions{min-width:165px;justify-content:flex-start}
.tickets td:last-child{text-align:right}
.ticketcard .ticket-row-actions{display:flex;width:100%;align-items:center;justify-content:flex-start}
.ticketcard .ticket-row-actions .mobile-delete{margin-left:auto;float:none;margin-top:0}
.ticketcard .row-quick-close{height:40px;min-width:82px}
@media(max-width:690px){.row-quick-close{font-size:14px}}

/* v6.2: Employee-visible, IT-published outage suggestions */
.selfhelp-outage{border-color:#b9854a;background:#352c29}.selfhelp-outage h3{color:#ffca83}.selfhelp-status-link{display:block;margin-top:9px;color:#99caff;font-size:12px;font-weight:700;text-decoration:underline;text-underline-offset:3px}.selfhelp-status-link:hover{color:#d4e9ff}

/* v6.5 security challenge */
#mfaOverlay{z-index:10010}#mfaOverlay .login-card{max-height:94dvh;overflow-y:auto;max-width:410px}#mfaOverlay form{display:grid;gap:12px;margin-top:14px}#mfaOverlay .button{width:100%;margin:4px 0}#mfaOverlay .mfa-qr{display:block;background:#fff;max-width:210px;width:100%;aspect-ratio:1;margin:16px auto;padding:7px;border-radius:10px}#mfaOverlay .mfa-qr.hidden{display:none}#mfaOverlay .mfa-secret{display:block;overflow-wrap:anywhere;background:rgba(90,140,200,.12);padding:10px;border-radius:7px;margin:10px 0;font-size:12px}#mfaSetupAction.hidden{display:none}

/* v6.5.3: inline last internal note previews on desktop and iPhone. */
.latest-note{max-width:380px;margin-top:7px;color:#a9bfd8;font-size:11px;line-height:1.45;overflow-wrap:anywhere;}
.latest-note-snippet{color:#d2e2f4;}
.latest-note-meta{color:#879bb4;font-size:10px;}
@media(max-width:690px){.ticketcard .latest-note{max-width:100%;padding:9px 10px;background:#172536;border-left:2px solid #5ca7ff;border-radius:4px;margin:11px 0;}.ticketcard .latest-note-meta{display:block;margin-top:3px;}}

/* v6.5.5: context-specific filters work on desktop and iPhone */
.filters .view-extra-filter.hidden{display:none!important}
@media(max-width:690px){.filters #unassignedStatusFilter,.filters #assigneeFilter{grid-column:1/-1}}

/* v6.5.6: technician filter in all dashboard ticket views */
.filters #assigneeFilter.hidden{display:none!important}

/* v6.5.8: employee-facing horizontal live service status strip */
.submit-status-panel{margin:18px 0 22px;padding:16px 18px;background:#1f2b3d;border:1px solid #344c67;border-radius:14px}
.submit-status-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.submit-status-header h2{font-size:17px;line-height:1.35;margin:0;color:#f1f6ff}
.submit-status-header a{color:#82baff;font-size:13px;font-weight:700;text-decoration:none}
.submit-status-header a:hover{text-decoration:underline}
.submit-status-summary{font-size:12px;color:#b5c7dc;margin:8px 0 12px}
.submit-status-alert{color:#ffd39a;font-weight:650}
.submit-status-tiles{display:flex;flex-wrap:nowrap;gap:10px;overflow-x:auto;padding:2px 2px 9px;scrollbar-width:thin;scrollbar-color:#4c6784 transparent;-webkit-overflow-scrolling:touch}
.submit-status-tile{box-sizing:border-box;display:flex;flex-direction:column;gap:10px;flex:1 0 150px;min-width:150px;padding:12px 13px;border:1px solid #39516d;background:#152232;border-radius:10px;color:#f2f6ff;text-decoration:none;transition:border-color .15s}
.submit-status-tile:hover{border-color:#7db4ff}
.submit-status-name{font-size:13px;font-weight:650;line-height:1.35;overflow-wrap:anywhere}
.submit-status-state{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:750}
.submit-status-dot{width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:#4fe0ae}
.submit-status-operational .submit-status-state{color:#69e9b8}
.submit-status-degraded .submit-status-dot,.submit-status-maintenance .submit-status-dot{background:#ffc575}
.submit-status-degraded .submit-status-state,.submit-status-maintenance .submit-status-state{color:#ffc575}
.submit-status-outage{border-color:#92535a;background:#31232d}
.submit-status-outage .submit-status-dot{background:#ff929b}
.submit-status-outage .submit-status-state{color:#ff929b}
.submit-status-unknown .submit-status-dot{background:#a7b8cd}
.submit-status-message{color:#cbd7e9;font-size:11px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.submit-status-updated{margin:4px 0 0;font-size:11px;color:#93abc6}
@media(max-width:690px){.submit-status-panel{padding:13px 12px;margin:14px 0 17px}.submit-status-header h2{font-size:15px}.submit-status-tile{flex:0 0 165px;min-width:165px}.submit-status-tiles{margin-right:-5px}}

/* v6.5.9 - Compact technician workspace on desktop and tablets.
   Keep mobile touch targets, dialogs, and the employee-facing portal unchanged. */
@media (min-width:691px) {
  .sidebar { width:214px; padding:16px 10px; gap:15px; }
  .sidebar .brand { padding:0 10px; font-size:17px; }
  .sidebar .brand small { font-size:9px; }
  .sidebar nav { gap:2px; }
  .sidebar .navhead { margin:10px 10px 5px; font-size:9px; }
  .sidebar .navbtn { padding:7px 9px; margin:2px 0; font-size:12px; min-height:31px; gap:8px; }
  .sidebar .sidebar-section-toggle { padding:8px 9px 6px; font-size:10px; }
  .sidebar .favorite-row .navbtn,
  .sidebar .sidebar-nav-row .navbtn { padding-top:6px; padding-bottom:6px; }
  .sidebar .sidebottom { padding:12px 8px; font-size:11px; }

  .topbar { height:60px; padding:0 20px; gap:10px; }
  .topbar h1 { font-size:18px; }
  .topbar .sub { font-size:11px; margin-top:1px; }
  .toolbar { gap:7px; }
  .toolbar .button { padding:7px 10px; font-size:12px; border-radius:7px; }

  .content { padding:16px 18px; max-width:none; }
  .stats { gap:10px; margin-bottom:14px; }
  .stat { padding:11px 14px; border-radius:9px; }
  .stat span { font-size:11px; }
  .stat strong { font-size:24px; margin-top:0; line-height:1.15; }
  .stat small { font-size:10px; }

  .section { border-radius:10px; }
  .sectionhead { padding:11px 13px; gap:8px; }
  .sectionhead h2 { font-size:13px; }
  .filters { gap:6px; }
  .filters .field { padding:6px 9px; font-size:12px; max-width:195px; border-radius:7px; min-height:32px; }
  .filters #search { width:175px; }
  .filters #locationFilter { max-width:155px; }
  .filters #assigneeFilter { max-width:155px; }

  .tickets th { padding:8px 10px; font-size:10px; letter-spacing:.6px; }
  .tickets td { padding:9px 10px; font-size:12px; line-height:1.35; }
  .tickets .subject { font-size:12px; line-height:1.35; }
  .tickets .tiny { font-size:10px; line-height:1.35; }
  .tickets .latest-note { max-width:440px; margin-top:3px; font-size:10px; line-height:1.3; }
  .tickets .latest-note-meta { font-size:9px; }
  .tickets .row-assignee { width:125px; padding:5px 7px; font-size:11px; }
  .tickets .ticket-row-actions { min-width:145px; gap:5px; }
  .tickets .row-note { min-width:28px; height:28px; font-size:17px; }
  .tickets .row-quick-close { min-width:56px; height:28px; padding:0 6px; font-size:11px; }
  .tickets .row-delete { min-width:28px; width:28px; height:28px; }
  .tickets .tag { padding:3px 6px; font-size:10px; }
}
@media (min-width:691px) and (max-width:1100px) {
  .sidebar { width:194px; }
  .content { padding:13px 11px; }
  .stats { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .filters .field { max-width:155px; }
  .filters #search { width:145px; }
  .tickets th,.tickets td { padding-left:7px; padding-right:7px; }
}

/* v6.6.0: Crisp readable desktop text, retaining v6.5.9 compact sidebar and structure.
   Do not change the employee portal or mobile touch layouts. */
@media (min-width:691px) {
  .topbar h1 {font-size:19px; line-height:1.3;}
  .topbar .sub {font-size:12px; line-height:1.45;}
  .toolbar .button {font-size:13px; line-height:1.4;}
  .stat {padding:12px 14px;}
  .stat span {font-size:12px; line-height:1.5;}
  .stat strong {font-size:25px; line-height:1.2;}
  .stat small {font-size:11.5px; line-height:1.5;}
  .sectionhead h2 {font-size:14px; line-height:1.45;}
  .filters .field {font-size:13px; line-height:1.45; min-height:35px; padding:6px 10px;}
  .tickets th {font-size:11px; line-height:1.45; letter-spacing:.5px; padding:9px 10px;}
  .tickets td {font-size:13px; line-height:1.55; padding:10px 10px;}
  .tickets .subject {font-size:13.5px; font-weight:700; line-height:1.5; letter-spacing:0;}
  .tickets .tiny {font-size:11.5px; line-height:1.5;}
  .tickets .latest-note {font-size:11.5px; line-height:1.5; margin-top:4px; max-width:480px;}
  .tickets .latest-note-meta {font-size:11px; line-height:1.5;}
  .tickets .row-assignee {font-size:12.5px; line-height:1.35; padding:6px 7px; min-height:32px;}
  .tickets .ticket-row-actions {gap:6px;}
  .tickets .row-note {min-width:30px; height:30px; font-size:18px;}
  .tickets .row-quick-close {height:30px; min-width:61px; font-size:12px;}
  .tickets .row-delete {min-width:30px; width:30px; height:30px;}
  .tickets .tag {font-size:11px; line-height:1.4;}
}

/* v6.6.1 -- iPhone Home Screen notification onboarding */
.push-welcome-back{position:fixed;inset:0;z-index:9990;background:rgba(3,9,19,.78);display:flex;align-items:center;justify-content:center;padding:18px;backdrop-filter:blur(4px)}
.push-welcome-back.hidden{display:none}
.push-welcome-panel{width:min(390px,100%);padding:25px 22px;background:#202c3c;border:1px solid #43618a;border-radius:18px;box-shadow:0 18px 70px #0009;text-align:center;color:#ecf4ff}
.push-welcome-symbol{font-size:36px;line-height:1.2;margin-bottom:10px}
.push-welcome-panel h2{font-size:21px;line-height:1.3;margin:0 0 12px}
.push-welcome-panel p{font-size:14px;line-height:1.55;color:#bfd1e6;margin:0 0 18px}
.push-welcome-panel .button{width:100%;padding:13px 15px;min-height:44px;margin:6px 0}
.push-welcome-panel .tiny{font-size:12px;margin:12px 0 0;color:#9eb5cf}
