:root {--bg:#171a25;--sidebar:#151822;--panel:#1b1f2b;--panel2:#202532;--raised:#252b3a;--border:#242832;--edge:#323847;--ink:#b3b5be;--heading:#f0f2f6;--muted:#818798;--teal:#089a81;--red:#f23645;--blue:#9cbaf0;--amber:#d9a66e;--shadow:0 26px 72px rgba(0,0,0,.48);--tab:#343c4e;--hover:#222735;--field:#202532;--soft-teal:rgba(8,154,129,.14);--soft-red:rgba(242,54,69,.12);--soft-blue:rgba(156,186,240,.12);color-scheme:dark}
[data-theme="light"] {--bg:#f4f6fb;--sidebar:#fff;--panel:#fff;--panel2:#f7f9fc;--raised:#eaf0f8;--border:#d6dbe7;--edge:#d6dce8;--ink:#415069;--heading:#1f2937;--muted:#6f7b8d;--teal:#089a81;--red:#d52d43;--blue:#5e84d6;--amber:#ab7134;--shadow:0 26px 72px rgba(31,41,55,.21);--tab:#e5edf9;--hover:#f0f4fa;--field:#fff;--soft-teal:rgba(8,154,129,.12);--soft-red:rgba(242,54,69,.09);--soft-blue:rgba(94,132,214,.12);color-scheme:light}
*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{background:var(--bg);color:var(--ink);font:14px/1.45 "Segoe UI",Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.52;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--blue);outline-offset:2px}[hidden]{display:none!important}.shell{display:flex;min-height:100vh}.sidebar{width:252px;flex-shrink:0;min-height:100vh;position:sticky;top:0;height:100vh;background:var(--sidebar);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:28px 17px 18px}.brand,.login-brand{display:flex;align-items:center;gap:12px;padding:0 10px 31px}.brand-symbol{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--teal);border-radius:11px;background:var(--soft-teal);color:var(--teal);font-size:25px;font-weight:900}.brand b,.login-brand b{color:var(--heading);display:block;font-size:17px;letter-spacing:.055em}.brand small,.login-brand small{color:var(--muted);font-size:9px;letter-spacing:.16em;display:block;margin-top:4px;font-weight:800}.sidebar-section{color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.16em;margin:0 0 12px 13px}.nav{display:grid;gap:4px}.nav button{display:flex;align-items:center;gap:12px;text-align:left;color:var(--muted);width:100%;border:none;background:transparent;border-radius:9px;padding:13px 14px;font-size:13px;font-weight:650}.nav button:hover{background:var(--hover);color:var(--heading)}.nav button.active{background:var(--soft-teal);color:var(--teal);border-left:2px solid var(--teal)}.nav-count{margin-left:auto;border-radius:7px;background:var(--raised);font-size:11px;padding:2px 8px}.sidebar-bottom{border-top:1px solid var(--border);margin-top:auto;padding:19px 7px 0}.user-box{display:flex;gap:10px;align-items:center}.user-avatar{width:37px;height:37px;background:var(--soft-blue);color:var(--blue);border-radius:10px;display:grid;place-items:center;font-weight:800}.user-box b{display:block;color:var(--heading);font-size:12px}.user-box small{color:var(--muted);font-size:11px}.network{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;margin:16px 0}.network-dot{width:7px;height:7px;background:var(--teal);border-radius:50%}.network.offline .network-dot{background:var(--red)}.workspace{flex:1;min-width:0}.workspace-inner{padding:34px 38px 60px;max-width:1760px;margin:auto}.topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:28px}.eyebrow{font-size:11px;letter-spacing:.15em;color:var(--teal);font-weight:800;margin-bottom:9px}.topbar h1{font-size:30px;line-height:1.16;letter-spacing:-.035em;color:var(--heading);margin:0 0 8px}.subtle-text{color:var(--muted);margin:0;font-size:12px}.top-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 15px;min-height:42px;border-radius:9px;background:var(--panel2);color:var(--ink);border:1px solid var(--edge);font-weight:700;white-space:nowrap;transition:background .15s,transform .1s}.btn:hover{background:var(--raised)}.btn:active{transform:scale(.985)}.btn.primary{background:var(--teal);color:#fff;border-color:var(--teal)}.btn.primary:hover{filter:brightness(1.12)}.btn.danger{background:var(--red);border-color:var(--red);color:#fff}.btn.ghost{background:transparent}.btn.ghost:hover{background:var(--hover)}.btn.small{font-size:12px;min-height:34px;padding:7px 11px}.btn.full{width:100%}.btn.touch{min-height:52px;font-size:15px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:29px}.metric{border:1px solid var(--border);background:var(--panel);border-radius:13px;padding:19px 22px;min-height:127px;position:relative;overflow:hidden}.metric:after{content:"";width:98px;height:98px;position:absolute;right:-40px;bottom:-57px;border:1px solid var(--border);border-radius:50%}.metric small{color:var(--muted);display:block;font-size:12px}.metric strong{display:block;color:var(--heading);font-size:32px;margin-top:12px}.metric::before{content:"";height:3px;width:32px;background:var(--accent,var(--blue));position:absolute;bottom:0;left:21px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px;gap:15px}.section-heading h2,.settings-panel h2{color:var(--heading);font-size:18px;margin:0 0 5px}.timestamp{font-size:11px;color:var(--muted)}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.filters{display:flex;align-items:center;gap:4px;background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:4px;max-width:100%;overflow:auto}.filters button{font-size:12px;color:var(--muted);border:0;background:transparent;padding:9px 12px;font-weight:700;border-radius:7px;white-space:nowrap}.filters button.active{background:var(--tab);color:var(--heading)}.filters button:hover{color:var(--heading)}.search-control{display:flex;align-items:center;gap:8px;border:1px solid var(--edge);background:var(--panel);border-radius:9px;padding:0 12px;flex:1;min-width:210px;height:44px}.search-control span{font-size:21px;color:var(--muted)}.search-control input{border:0;background:transparent;color:var(--heading);outline:0;min-width:0;width:100%;font-size:12px}.search-control input::placeholder{color:var(--muted)}.floor-select{height:44px;border:1px solid var(--edge);color:var(--ink);background:var(--panel);border-radius:9px;padding:0 10px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.ticket{border:1px solid var(--border);border-radius:13px;background:var(--panel);text-align:left;min-height:211px;padding:20px;display:flex;flex-direction:column;position:relative;overflow:hidden;color:var(--ink);transition:transform .15s,border-color .15s,box-shadow .15s}.ticket:before{content:"";background:var(--accent,var(--blue));height:3px;position:absolute;top:0;left:0;right:0}.ticket:hover{transform:translateY(-2px);border-color:var(--blue);background:var(--hover);box-shadow:0 10px 22px rgba(0,0,0,.08)}.ticket-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.ticket-id{letter-spacing:.065em;color:var(--muted);font-size:11px;font-weight:800}.ticket-title{color:var(--heading);font-size:17px;font-weight:750;margin:17px 0 10px;line-height:1.35;min-height:42px}.ticket-info{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.ticket-info span{white-space:nowrap}.ticket-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid var(--border);padding-top:13px;margin-top:auto;font-size:11px;color:var(--muted)}.assigned{display:flex;gap:8px;align-items:center}.assigned i{width:27px;height:27px;border-radius:8px;background:var(--soft-blue);color:var(--blue);display:grid;place-items:center;font-size:10px;font-weight:800;font-style:normal}.badge{display:inline-block;border-radius:7px;padding:6px 9px;font-size:11px;font-weight:750;white-space:nowrap}.badge.NEW,.badge.ASSIGNED{background:var(--soft-blue);color:var(--blue)}.badge.IN_PROGRESS{background:var(--soft-teal);color:var(--teal)}.badge.PENDING_APPROVAL{background:rgba(217,166,110,.16);color:var(--amber)}.badge.POSTPONED{background:var(--soft-red);color:var(--red)}.badge.CLOSED{background:var(--raised);color:var(--muted)}.empty{grid-column:1/-1;padding:55px 20px;border:1px dashed var(--border);color:var(--muted);border-radius:13px;text-align:center}.overlay{position:fixed;z-index:100;inset:0;background:rgba(6,9,17,.76);display:flex;align-items:center;justify-content:center;padding:28px}.modal{width:min(1060px,100%);max-height:calc(100vh - 56px);overflow:auto;background:var(--panel);border:1px solid var(--edge);box-shadow:var(--shadow);border-radius:15px;display:flex;flex-direction:column}.modal-header{background:var(--panel2);display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:23px 30px;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:2}.modal-heading{color:var(--heading);font-size:22px;margin:5px 0 0}.modal-number{letter-spacing:.12em;font-size:11px;color:var(--teal);font-weight:800}.close-button{width:41px;height:41px;border:1px solid var(--edge);border-radius:9px;background:var(--panel);color:var(--muted);font-size:28px;line-height:1}.close-button:hover{background:var(--raised);color:var(--heading)}.modal-main{padding:26px 30px;overflow:auto}.modal-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 30px;border-top:1px solid var(--border);background:var(--panel2);position:sticky;bottom:0;z-index:2;flex-wrap:wrap}.modal-footer .actions{display:flex;gap:8px;flex-wrap:wrap}.note{color:var(--muted);font-size:11px}.detail-hero{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:19px}.detail-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.info-panel,.settings-card{padding:19px;border:1px solid var(--border);background:var(--panel2);border-radius:12px;margin-bottom:16px}.info-panel h3,.settings-card h3{font-size:13px;margin:0 0 14px;color:var(--heading)}.info-panel p{margin:0 0 11px}.keyvals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}.keyval small{font-size:11px;display:block;color:var(--muted);margin-bottom:4px}.keyval strong{font-size:13px;font-weight:600;color:var(--heading);overflow-wrap:anywhere}.photos{display:flex;flex-wrap:wrap;gap:10px}.photo{width:112px;height:91px;border-radius:9px;border:1px solid var(--edge);background:var(--raised);overflow:hidden;display:block}.photo img{width:100%;height:100%;object-fit:cover}.history-item{border-left:2px solid var(--teal);padding:0 0 12px 13px;margin-bottom:12px;font-size:12px}.history-item strong{color:var(--heading)}.history-item small{display:block;color:var(--muted)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.form-grid label,.stack label,.settings-entry label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:650;color:var(--ink)}.form-grid .wide{grid-column:1/-1}input:not([type="checkbox"]):not([type="file"]),select,textarea{background:var(--field);color:var(--heading);border:1px solid var(--edge);border-radius:8px;padding:11px 12px;min-height:42px;width:100%;outline:none}textarea{resize:vertical;min-height:92px}input::placeholder,textarea::placeholder{color:var(--muted)}.form-caption{color:var(--teal);font-weight:800;font-size:12px;letter-spacing:.07em;margin:16px 0 3px;grid-column:1/-1}.stack{display:grid;gap:14px}.action-form{border:1px solid var(--border);border-radius:10px;background:var(--panel2);padding:20px;margin-top:15px}.material-rows{display:grid;gap:7px}.material-row{display:grid;grid-template-columns:2fr .85fr .75fr auto;gap:7px;align-items:center}.material-row .btn{padding:5px 12px}.checkbox-line{display:flex;align-items:center;gap:10px;font-size:13px}.checkbox-line input{width:18px;height:18px}.error-text{color:var(--red);font-size:12px;margin:10px 0}.settings-panel{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:24px}.settings-content{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px}.settings-entry{display:grid;gap:9px;margin-bottom:12px}.settings-entry .entry-row{display:flex;align-items:end;gap:8px}.settings-entry .entry-row label{flex:1}.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{background:var(--panel);border:1px solid var(--border);width:min(420px,100%);padding:30px;border-radius:16px;box-shadow:var(--shadow)}.login-card h1{color:var(--heading);margin:5px 0 4px}.login-card .stack{margin-top:25px}.login-card .brand{padding:0}.login-brand{padding:0 0 28px}.login-help{font-size:11px;margin:22px 0 10px;color:var(--muted)}.toast{position:fixed;z-index:150;bottom:24px;right:24px;max-width:min(440px,90vw);background:var(--raised);border:1px solid var(--teal);color:var(--heading);padding:15px 20px;border-radius:9px;box-shadow:var(--shadow)}.toast.error{border-color:var(--red)}.file-input{padding:10px 0;width:100%;color:var(--ink)}.preview-uploads{display:flex;gap:7px;margin-top:5px;flex-wrap:wrap}.preview-uploads img{width:78px;height:67px;border:1px solid var(--edge);object-fit:cover;border-radius:7px}.loading{text-align:center;color:var(--muted);padding:55px 0}.terminal-mode .workspace-inner{max-width:1890px}.terminal-mode .sidebar{width:215px}.terminal-mode .cards{grid-template-columns:repeat(3,minmax(0,1fr))}.terminal-mode .ticket{min-height:235px;padding:22px}.terminal-mode .ticket-title{font-size:19px}.terminal-mode .ticket-info{font-size:13px}.terminal-mode .ticket-footer{font-size:12px}[data-theme="light"] .overlay{background:rgba(56,72,95,.43)}
@media(max-width:1200px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{flex-direction:column}.metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:810px){.sidebar{width:70px;padding:20px 9px}.brand{padding:0 3px 23px}.brand>div:last-child,.sidebar-section,.nav .nav-label,.nav-count,.sidebar-bottom .user-box>div:last-child,.network span:last-child,.sidebar-bottom .btn{display:none}.nav button{justify-content:center;padding:13px 6px}.sidebar-bottom{padding:14px 6px}.workspace-inner{padding:25px 17px}.top-actions{gap:6px}.settings-content{grid-template-columns:1fr}.modal-main{padding:18px}.modal-header,.modal-footer{padding:17px 18px}.detail-columns{grid-template-columns:1fr}}
@media(max-width:590px){.cards,.terminal-mode .cards{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,1fr);gap:8px}.metric{padding:13px;min-height:94px}.metric strong{font-size:24px;margin-top:8px}.toolbar{align-items:stretch}.search-control{min-width:100%}.filters{width:100%}.topbar h1{font-size:23px}.btn{padding:9px 11px}.top-actions .btn{font-size:12px}.form-grid,.keyvals{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.overlay{padding:8px}.modal{max-height:calc(100vh - 16px)}.modal-heading{font-size:18px}.material-row{grid-template-columns:1.5fr .75fr}.material-row select{grid-column:1}.material-row button{grid-column:2}.modal-footer .actions{width:100%}.modal-footer .actions .btn{flex:1}}

/* LIRA v2.5 visual refinements. Same styling for admin and common touchscreen. */
.top-account{display:flex;align-items:center;padding:5px 12px;border:1px solid var(--edge);background:var(--panel);border-radius:10px;min-height:42px}
.top-account .user-avatar{height:30px;width:30px;border-radius:8px;font-size:11px}
.top-account .user-box{gap:9px}.top-account .user-box b{font-size:12px}.top-account .user-box small{font-size:10px}
.sidebar-bottom{padding-top:10px}
.metrics{gap:10px;margin-bottom:18px}
.metric{padding:11px 16px;min-height:69px;display:flex;align-items:center;justify-content:space-between;gap:15px}
.metric small{font-size:12px;font-weight:600}.metric strong{font-size:26px;margin:0;line-height:1}
.metric:after{display:none}.metric:before{left:0;top:15px;bottom:15px;height:auto;width:3px}
.topbar{margin-bottom:18px}
.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:'summary location' 'staff before' 'materials after';gap:14px 16px;align-items:stretch}
.detail-grid > .info-panel{margin-bottom:0}
.detail-grid .photo-panel{height:100%;margin:0}
.area-summary{grid-area:summary}.area-location{grid-area:location}.area-staff{grid-area:staff}.area-photo-before{grid-area:before;min-width:0}.area-materials{grid-area:materials}.area-photo-after{grid-area:after;min-width:0}
.detail-grid .photos{align-items:flex-start}.photo{appearance:none;padding:0;cursor:zoom-in;flex:0 0 auto}
.photo:hover{outline:2px solid var(--teal);outline-offset:2px}
.photo-viewer{position:fixed;inset:0;z-index:220;background:rgba(8,11,17,.87);display:flex;align-items:center;justify-content:center;padding:18px}
.photo-viewer-surface{width:min(1240px,100%);height:min(94vh,960px);background:var(--panel);color:var(--heading);border:1px solid var(--edge);border-radius:15px;box-shadow:var(--shadow);display:flex;flex-direction:column;overflow:hidden}
.photo-viewer-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:9px 12px 9px 25px;border-bottom:1px solid var(--border);min-height:80px}
.photo-viewer-description{display:flex;flex-direction:column;gap:4px}.photo-viewer-description strong{font-size:18px}.photo-viewer-description small{color:var(--muted)}
.photo-viewer-close{display:grid;place-items:center;flex:0 0 auto;font-size:51px;font-weight:400;line-height:1;width:70px;height:65px;border-radius:12px;border:1px solid var(--red);color:var(--red);background:var(--panel);cursor:pointer}
.photo-viewer-close:hover{color:#fff;background:var(--red)}
.photo-viewer-canvas{flex:1;min-height:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px;background:rgba(0,0,0,.1)}
.photo-viewer-canvas img{object-fit:contain;max-width:calc(100% - 114px);max-height:100%;width:auto;height:auto;margin:auto}
.photo-viewer-arrow{flex:0 0 45px;width:45px;height:65px;background:var(--panel);border:1px solid var(--edge);border-radius:10px;color:var(--heading);font-size:46px;line-height:1;cursor:pointer}
.photo-viewer-arrow:hover:not(:disabled){background:var(--raised)}
.photo-viewer-footer{display:flex;justify-content:space-between;gap:20px;padding:12px 25px;border-top:1px solid var(--border);font-size:12px;color:var(--muted)}
[data-theme="light"] .photo-viewer{background:rgba(33,48,70,.78)}
@media(max-width:1200px){.top-account{order:4}.metric{min-height:65px}}
@media(max-width:810px){.top-account{padding:5px 9px}.top-account .user-box small{display:none}.top-account .user-box b{font-size:11px}.top-actions{flex-wrap:wrap}.detail-grid{grid-template-columns:1fr;grid-template-areas:'summary' 'location' 'staff' 'before' 'materials' 'after'}}
@media(max-width:590px){.metric{min-height:62px;padding:10px}.metric strong{font-size:23px}.metrics{gap:7px}.photo-viewer{padding:6px}.photo-viewer-surface{height:calc(100vh - 12px)}.photo-viewer-close{width:64px;height:60px}.photo-viewer-canvas{padding:7px;gap:4px}.photo-viewer-arrow{flex-basis:34px;width:34px;height:60px;font-size:38px}.photo-viewer-canvas img{max-width:calc(100% - 84px)}.photo-viewer-footer{padding:9px 12px;flex-wrap:wrap}}


/* LIRA v2.7: accessible offline touchscreen Cyrillic/English keyboard */
.screen-keyboard{position:fixed;left:0;right:0;bottom:0;z-index:205;background:var(--panel);color:var(--heading);border-top:3px solid var(--teal);box-shadow:0 -12px 42px rgba(0,0,0,.29);padding:9px max(12px,calc((100vw - 1100px)/2)) max(12px,env(safe-area-inset-bottom,12px));user-select:none;touch-action:manipulation}
.screen-keyboard-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}
.screen-keyboard-top div{display:flex;align-items:center;gap:12px}
.screen-keyboard-top strong{font-size:14px}
.screen-keyboard-top span{font-weight:800;color:var(--teal);border:1px solid var(--edge);border-radius:8px;padding:5px 8px}
#screen-keyboard-close{height:42px;min-width:72px;font-size:28px;background:var(--raised);color:var(--heading);border:1px solid var(--edge);border-radius:9px;cursor:pointer}
.screen-keyboard-keys{display:grid;gap:5px}
.kb-row{display:flex;justify-content:center;gap:5px}
.kb-key{min-width:0;flex:1;height:48px;border-radius:8px;background:var(--raised);border:1px solid var(--edge);color:var(--heading);font-size:20px;font-weight:600;cursor:pointer;touch-action:manipulation}
.kb-key:active{background:var(--soft-teal);border-color:var(--teal)}
.kb-special{flex:1.45;font-size:14px;color:var(--teal)}
.kb-space{flex:7;font-size:15px}
.kb-bottom .kb-key{height:44px}
.kb-numeric{max-width:490px;margin:0 auto}
.kb-numeric .kb-key{max-width:160px}
.keyboard-active .overlay{padding-bottom:calc(var(--touch-keyboard-height,330px) + 8px);padding-top:6px;align-items:center}
.keyboard-active .modal{max-height:max(140px,calc(100dvh - var(--touch-keyboard-height,330px) - 20px))}
.keyboard-launch{min-height:50px;justify-self:start;color:var(--teal)}
.keyboard-active .toast{bottom:calc(var(--touch-keyboard-height,330px) + 12px)}
@media(max-width:720px){.screen-keyboard{padding:8px 6px 10px}.kb-row{gap:3px}.kb-key{height:42px;border-radius:6px;font-size:17px}.kb-bottom .kb-key{height:41px}.kb-special{font-size:12px}}
@media(max-height:690px){.kb-key{height:36px}.kb-bottom .kb-key{height:36px}.screen-keyboard-top{margin-bottom:4px}.screen-keyboard-top strong{font-size:12px}}

/* LIRA v2.9: independent A4 print sheet, print only the saved request (not UI). */
#print-root{display:none}
@page{size:A4 portrait;margin:13mm 14mm 15mm}
@media print{
  html,body,body[data-theme]{width:auto!important;min-height:0!important;margin:0!important;padding:0!important;background:white!important;color:#111827!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  body.print-document > *:not(#print-root){display:none!important}
  body.print-document #print-root{display:block!important;position:static!important;width:100%!important;overflow:visible!important;color:#111827!important;font:10pt/1.38 Arial,"Segoe UI",sans-serif!important}
  #print-root *{box-sizing:border-box}
  .print-sheet{width:100%;margin:0;padding:0}
  .print-head{display:flex;align-items:flex-start;justify-content:space-between;border-bottom:2px solid #0b937d;padding:0 0 10px;margin:0 0 15px}
  .print-brand{font-weight:800;letter-spacing:.08em;font-size:21pt;color:#115e59}
  .print-brand small{display:block;color:#475569;font-weight:500;letter-spacing:0;font-size:9pt}
  .print-head-meta{text-align:right;color:#475569;font-size:8.5pt}
  .print-title-row{display:flex;justify-content:space-between;gap:14px;padding-bottom:14px}
  .print-title-row h1{font-size:21pt;margin:0 0 6px;line-height:1.1;color:#111827}
  .print-kicker{font-size:8pt;letter-spacing:.14em;color:#0f8d7d;font-weight:800}
  .print-title{font-size:13pt;font-weight:700;margin:6px 0 0;overflow-wrap:anywhere}
  .print-status{border:1px solid #cbd5e1;border-radius:5px;padding:9px 13px;text-align:right;align-self:start;min-width:125px}
  .print-status span{display:block;color:#64748b;font-size:7.5pt;letter-spacing:.1em;margin-bottom:5px}
  .print-status strong{display:block;font-size:10pt;color:#111827}
  .print-section{margin:0 0 13px;padding:0;break-inside:auto;page-break-inside:auto}
  .print-section h2{font-size:11pt;margin:0 0 6px;padding:5px 9px;background:#edf5f4;border-left:3px solid #0b937d;color:#173b37;break-after:avoid;page-break-after:avoid}
  .print-section h3{font-size:9pt;margin:9px 0 5px;color:#334155}
  .print-data-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px 18px;margin:0}
  .print-field{break-inside:avoid;page-break-inside:avoid;min-width:0}
  .print-field dt{font-size:8pt;color:#64748b;margin-bottom:2px}
  .print-field dd{font-weight:600;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
  .print-prose{white-space:pre-wrap;overflow-wrap:anywhere;padding:4px 1px}
  .print-table{width:100%;border-collapse:collapse;font-size:9pt}
  .print-table th{background:#eef2f6;text-align:left;font-weight:700}
  .print-table th,.print-table td{border:1px solid #d4dce7;padding:5px 8px;vertical-align:top;overflow-wrap:anywhere}
  .print-table tr{break-inside:avoid;page-break-inside:avoid}
  .print-number{text-align:right}
  .print-muted{color:#64748b}
  .print-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
  .print-figure{margin:0;border:1px solid #cbd5e1;padding:5px;break-inside:avoid;page-break-inside:avoid;min-width:0}
  .print-figure img{display:block;width:100%;height:auto;max-height:88mm;object-fit:contain}
  .print-figure figcaption{text-align:center;font-size:8pt;color:#475569;margin-top:3px}
  .print-signatures{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:24px;padding-top:12px;border-top:1px solid #94a3b8;font-size:9pt;break-inside:avoid;page-break-inside:avoid}
  .print-history{margin-top:12px}
}

/* LIRA 2.11: admin Excel reports */
.reports-panel{padding-bottom:50px}
.reports-card{background:var(--panel);border:1px solid var(--edge);border-radius:14px;max-width:1050px;padding:26px 28px;margin-top:18px}
.reports-heading{display:flex;gap:14px;align-items:center;margin-bottom:24px}
.reports-heading strong{display:block;font-size:17px;color:var(--heading)}
.reports-heading small{display:block;color:var(--muted);margin-top:5px}
.reports-icon{display:grid;place-items:center;width:44px;height:44px;background:var(--soft-teal);border:1px solid var(--teal);border-radius:11px;color:var(--teal);font-size:22px}
.report-inputs{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:15px}
.report-inputs label{display:flex;flex-direction:column;gap:9px;color:var(--ink);font-weight:650}
.report-inputs input,.report-inputs select{height:47px;border-radius:9px;background:var(--field);color:var(--heading);border:1px solid var(--edge);padding:0 12px;width:100%}
.report-note{font-size:12px;color:var(--muted);line-height:1.65;margin:19px 0}
.report-actions{display:flex;gap:12px;flex-wrap:wrap}.report-actions .btn{min-height:49px}
.report-message{min-height:25px;margin-top:16px;color:var(--teal);font-weight:650}
.report-features{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:1050px;margin-top:18px}
.report-feature{border:1px solid var(--border);background:var(--panel);border-radius:13px;padding:21px 24px}
.report-feature h3{color:var(--heading);font-size:15px;margin:0 0 9px}.report-feature p{color:var(--muted);line-height:1.6;margin:0}
@media(max-width:1050px){.report-inputs{grid-template-columns:1fr 1fr}.report-inputs label:last-child{grid-column:1/-1}}
@media(max-width:650px){.reports-card{padding:18px}.report-inputs,.report-features{grid-template-columns:1fr}.report-inputs label:last-child{grid-column:auto}.report-actions .btn{width:100%}}

/* LIRA v2.12 — destination of the new request, incl. batch entry */
.delivery-choice{background:var(--panel2);border:1px solid var(--edge);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:10px}
.delivery-heading{color:var(--heading);font-size:15px;margin-bottom:3px}
.delivery-option{display:flex!important;flex-direction:row!important;align-items:center;gap:13px;padding:15px;border:1px solid var(--edge);border-radius:10px;background:var(--panel);cursor:pointer}
.delivery-option:has(input:checked){border-color:var(--teal);background:var(--soft-teal)}
.delivery-option input[type="radio"]{appearance:auto!important;accent-color:var(--teal);width:23px!important;height:23px!important;min-height:0!important;padding:0!important;flex-shrink:0;margin:0;background:transparent;border:0;box-shadow:none}
.delivery-option span{display:flex;flex-direction:column;gap:3px}
.delivery-option b{color:var(--heading);font-size:15px}
.delivery-option small{font-weight:400;font-size:12px;color:var(--muted)}
.create-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.create-actions .btn{flex:1;min-width:210px;min-height:51px}
@media(max-width:590px){.create-actions{flex-direction:column}.create-actions .btn{width:100%}}

/* LIRA v2.13: administrative ticket editing */
.edit-note{font-size:12px;color:var(--muted);margin:0 0 4px}
.edit-photo-section{border-top:1px solid var(--edge);padding-top:14px}
.edit-photos{display:flex;gap:12px;flex-wrap:wrap;margin-top:10px}
.edit-photo{display:flex;flex-direction:column;gap:7px;align-items:center;border:1px solid var(--edge);padding:8px;border-radius:9px}
.edit-photo img{width:102px;height:80px;object-fit:cover;border-radius:6px}
.edit-photo small{color:var(--muted)}
.edit-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;border-top:1px solid var(--edge);padding-top:12px}
#ticket-edit .material-rows{margin:10px 0}
@media(max-width:590px){.edit-actions .btn{flex:1}}

/* LIRA v2.14: emergency request alert (visual continues until accepted). */
@keyframes lira-emergency-pulse{0%,100%{box-shadow:0 0 0 2px rgba(242,54,69,.95),0 0 20px rgba(242,54,69,.37);background:rgba(242,54,69,.16)}50%{box-shadow:0 0 0 2px rgba(242,54,69,.20);background:var(--panel)}}
.ticket.emergency-pending{border:2px solid var(--red)!important;animation:lira-emergency-pulse .95s linear infinite;--accent:var(--red)!important}
.ticket.emergency-pending .ticket-id{color:var(--red);font-weight:900}
.emergency-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 20px;margin-bottom:13px;border:2px solid var(--red);border-radius:11px;background:var(--soft-red);animation:lira-emergency-pulse .95s linear infinite}
.emergency-banner-text{display:flex;flex-direction:column;gap:3px}.emergency-banner-text strong{color:var(--red);letter-spacing:.07em}.emergency-banner-text span{color:var(--heading)}
.emergency-open{border-color:var(--red)!important;color:var(--red)!important;background:var(--panel)!important;font-weight:800;min-height:44px}
.sound-toggle{border-color:var(--teal)!important;white-space:nowrap}
.emergency-detail-label{color:var(--red);font-weight:900;font-size:14px;letter-spacing:.025em;animation:lira-emergency-label .95s linear infinite}
@keyframes lira-emergency-label{0%,100%{opacity:1}50%{opacity:.33}}
@media(prefers-reduced-motion:reduce){.ticket.emergency-pending,.emergency-banner,.emergency-detail-label{animation:none!important}}
@media(max-width:590px){.emergency-banner{flex-wrap:wrap;padding:10px}.sound-toggle{font-size:12px}}

/* v2.14.1: hidden always wins over the emergency banner display property. */
.emergency-banner[hidden]{display:none!important}
.ticket.emergency-pending .badge{color:#fff!important;background:rgb(186,23,48)!important;border-color:rgb(242,54,69)!important}

/* Superadministrator security screens v2.15 */
.admin-list{display:grid;gap:12px;margin-top:22px}
.admin-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:var(--panel2);border:1px solid var(--edge);border-radius:10px;padding:16px}
.admin-row strong{color:var(--heading);display:block;font-size:14px}.admin-row small{font-size:12px;color:var(--muted);display:block;margin-top:5px}
.admin-row-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.role-chip{display:inline-flex;font-size:11px;font-weight:800;padding:5px 8px;border-radius:8px;background:var(--soft-teal);color:var(--teal)}
.role-chip.inactive{background:var(--soft-red);color:var(--red)}
.admin-list .btn{min-height:37px}
#users-panel #create-admin-form{max-width:780px}

/* LIRA v2.16 — Planned schedules; responsive for admin and touch terminal. */
.plans-workspace{display:grid;grid-template-columns:minmax(340px,1.08fr) minmax(320px,1fr);gap:18px;align-items:start}
.plans-form,.plans-list-pane{border:1px solid var(--edge);background:var(--panel);border-radius:14px;padding:23px;min-width:0}
.plans-form-head,.plans-list-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.plans-form-head strong,.plans-list-head strong{color:var(--heading);font-size:17px}
.plans-form .form-grid{align-items:start}
.plans-form label{min-width:0}
.plan-condition{background:var(--panel2);border:1px solid var(--edge);padding:14px;border-radius:11px;display:grid;gap:10px}
.plan-condition[hidden]{display:none!important}
.plan-condition small{color:var(--muted);line-height:1.5}
.plans-actions{margin-top:20px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.plans-list{display:grid;gap:12px}
.plan-tile{border:1px solid var(--edge);border-top:3px solid var(--teal);padding:17px;border-radius:11px;background:var(--panel2)}
.plan-paused{border-top-color:var(--red);opacity:.82}
.plan-heading{display:flex;align-items:start;justify-content:space-between;gap:10px;margin-bottom:8px}
.plan-heading strong{color:var(--heading);font-size:15px;overflow-wrap:anywhere}
.plan-badge{background:var(--soft-teal);color:var(--teal);border-radius:7px;padding:5px 7px;white-space:nowrap;font-size:11px;font-weight:700}
.plan-paused .plan-badge{background:var(--soft-red);color:var(--red)}
.plan-description{color:var(--heading);font-size:13px;margin-bottom:8px}
.plan-date{font-size:12px;color:var(--muted);margin-bottom:8px}.plan-date b{color:var(--heading)}
.plan-details{font-size:12px;color:var(--muted)}.plan-error{color:var(--red);font-size:12px;margin-top:7px}
.plan-buttons{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}
@media(max-width:1100px){.plans-workspace{grid-template-columns:1fr}}

/* Linked deferred scheduling — theme-aware, same request modal */
.scheduled-info{border-left:3px solid var(--blue);}
#ticket-schedule-form [hidden]{display:none!important;}
#ticket-schedule-form .form-grid{margin:8px 0;}
#ticket-schedule-form .create-actions{display:flex;gap:10px;flex-wrap:wrap;}


/* LIRA v2.18.2 — all regular ASSIGNED cards pulse green until accepted.
   Emergency ASSIGNED cards always retain the existing red blinking style. */
@keyframes lira-assigned-green-pulse{
  0%,100%{
    background:var(--soft-teal);
    box-shadow:0 0 0 2px rgba(8,154,129,.95),0 0 19px rgba(8,154,129,.36);
  }
  50%{
    background:var(--panel);
    box-shadow:0 0 0 1px rgba(8,154,129,.17),0 0 0 transparent;
  }
}
.ticket.assigned-pending:not(.emergency-pending){
  border:2px solid var(--teal)!important;
  --accent:var(--teal)!important;
  animation:lira-assigned-green-pulse 1.1s ease-in-out infinite;
}
.ticket.assigned-pending:not(.emergency-pending) .ticket-id{
  color:var(--teal);font-weight:900;
}
.ticket.assigned-pending:not(.emergency-pending) .badge.ASSIGNED{
  color:#fff!important;background:#07836f!important;
}
@media(prefers-reduced-motion:reduce){
  .ticket.assigned-pending:not(.emergency-pending){
    animation:none!important;background:var(--soft-teal);
    box-shadow:0 0 0 2px rgba(8,154,129,.85);
  }
}


/* ЛИРА 2.19.1: плиточный и табличный режимы одного и того же списка заявок. */
.view-toggle{display:inline-flex;align-items:center;gap:3px;padding:4px;border:1px solid var(--edge);background:var(--panel);border-radius:10px;margin-left:auto;flex-shrink:0}
.view-toggle button{background:transparent;border:0;color:var(--muted);font-size:12px;font-weight:700;padding:9px 12px;min-height:36px;border-radius:7px;white-space:nowrap}
.view-toggle button:hover{background:var(--hover);color:var(--heading)}
.view-toggle button.active{background:var(--soft-teal);color:var(--teal)}
.cards.mode-list{display:block;min-width:0;overflow-x:auto}
.ticket-table-wrap{overflow-x:auto;width:100%;border:1px solid var(--edge);border-radius:12px;background:var(--panel)}
.ticket-table{width:100%;border-collapse:collapse;table-layout:auto;color:var(--ink);font-size:12.5px}
.ticket-table thead{background:var(--panel2)}
.ticket-table th{text-align:left;color:var(--muted);font-size:11px;font-weight:800;white-space:nowrap;padding:13px 11px;border-bottom:1px solid var(--edge)}
.ticket-table td{padding:13px 11px;border-bottom:1px solid var(--border);vertical-align:middle;overflow-wrap:anywhere}
.ticket-table tbody tr:last-child td{border-bottom:0}
.ticket-table-row{cursor:pointer;background:var(--panel);transition:background .15s}
.ticket-table-row:hover{background:var(--hover)}
.ticket-table-row:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.ticket-table-row td:first-child{border-left:4px solid var(--accent,var(--blue));padding-left:10px}
.table-number{color:var(--muted);font-weight:800;letter-spacing:.025em;white-space:nowrap}
.table-title{color:var(--heading);font-weight:700;min-width:175px;max-width:310px}
.table-date{font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--muted)}
.table-alarm{display:inline-flex;align-items:center;justify-content:center;background:var(--red);color:#fff;font-size:11px;font-weight:900;border-radius:100%;width:19px;height:19px;margin-right:5px}
.ticket-table .badge{font-size:11px;padding:5px 8px}
@keyframes lira-list-assigned-green{0%,100%{background:var(--soft-teal)}50%{background:var(--panel)}}
@keyframes lira-list-emergency-red{0%,100%{background:var(--soft-red)}50%{background:var(--panel)}}
.ticket-table-row.assigned-pending:not(.emergency-pending){animation:lira-list-assigned-green 1.1s ease-in-out infinite}
.ticket-table-row.assigned-pending:not(.emergency-pending) td:first-child{border-left-color:var(--teal);color:var(--teal)}
.ticket-table-row.emergency-pending{animation:lira-list-emergency-red .95s linear infinite}
.ticket-table-row.emergency-pending td:first-child{border-left-color:var(--red);color:var(--red)}
.ticket-table-row.assigned-pending:not(.emergency-pending) .badge.ASSIGNED{background:#07836f;color:#fff}
.ticket-table-row.emergency-pending .badge{background:#ba1730;color:#fff}
@media(max-width:940px){.ticket-table{min-width:870px}.view-toggle{margin-left:0}}
@media(max-width:590px){.view-toggle{width:100%;justify-content:center}.view-toggle button{flex:1}.ticket-table{min-width:830px}}
@media(prefers-reduced-motion:reduce){.ticket-table-row.assigned-pending:not(.emergency-pending),.ticket-table-row.emergency-pending{animation:none!important}}

/* LIRA v2.21 — inspections journals, compatible with both themes */
.journal-toolbar,.journal-bar{display:flex;justify-content:space-between;gap:15px;align-items:center;flex-wrap:wrap;margin:15px 0}
.journal-toolbar label{min-width:min(100%,460px);color:var(--text);font-weight:650}
.journal-toolbar select{display:block;width:100%;margin-top:6px}
.journal-help,.journal-hint{font-size:12px;color:var(--muted)}
.journal-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:10px;margin:15px 0 23px}
.journal-card{display:flex;flex-direction:column;text-align:left;gap:10px;min-height:118px;padding:15px;background:var(--panel);border:1px solid var(--border);border-radius:12px;color:var(--heading);cursor:pointer}
.journal-card.active{border-color:var(--teal);box-shadow:inset 3px 0 var(--teal)}
.journal-card span,.journal-card small{font-size:12px;color:var(--muted)}
.journal-card:hover{border-color:var(--teal)}
.journal-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:10px}
.journal-entry{display:grid;grid-template-columns:1fr auto;gap:8px;text-align:left;padding:16px;background:var(--panel);border:1px solid var(--border);color:var(--text);border-radius:12px;cursor:pointer}
.journal-entry strong{color:var(--teal)}.journal-entry small{color:var(--muted)}
.journal-entry span:last-child{grid-column:1/-1;color:var(--muted);font-size:12px}
.journal-entry:hover{border-color:var(--teal)}
.journal-form-grid{display:grid;gap:10px;margin-top:15px}
.journal-section{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:16px;margin-bottom:12px;min-width:0}
.journal-section h3{font-size:16px;font-weight:700;color:var(--heading);margin:0 0 13px}
.journal-section label{display:block;min-width:0}
.journal-section label b{color:var(--red)}
.journal-section :is(input,select,textarea){max-width:100%}
.journal-section :is(input,select,textarea):disabled{opacity:.75;cursor:not-allowed}
.journal-note,.journal-review,.journal-state{padding:11px 13px;border-radius:9px;background:var(--raised);border:1px solid var(--border);margin:10px 0;color:var(--text)}
.journal-review{border-color:var(--amber)}.journal-state strong{color:var(--teal)}
.journal-footer{display:flex;justify-content:flex-end;padding:12px 0}
.journal-photos{display:flex;flex-wrap:wrap;gap:9px;margin:10px 0}
.journal-photo-link{display:inline-block;padding:10px 14px;border:1px solid var(--border);border-radius:10px;color:var(--teal);text-decoration:none}
.journal-history{padding:6px 0;margin:0;border-bottom:1px solid var(--border);font-size:12px;color:var(--muted)}
.journal-permission-grid{display:grid;grid-template-columns:minmax(280px,1.2fr) minmax(300px,1fr);gap:14px;margin:12px 0}
.journal-policy-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--border);padding:9px 0;color:var(--text)}
.journal-policy-row span{flex:1;font-size:13px}.journal-policy-row select{width:185px;flex-shrink:0}
.journal-permission-items{display:grid;grid-template-columns:1fr;gap:9px;margin:11px 0}
.journal-permission-items label{display:flex;align-items:center;justify-content:space-between;gap:13px;font-size:13px}
.journal-permission-items select{width:165px;flex-shrink:0}
#journal-permission-form h4{margin:14px 0 6px;color:var(--heading)}
#journal-permission-form>button{margin-top:12px}
@media(max-width:940px){.journal-permission-grid{grid-template-columns:1fr}.journal-cards{grid-template-columns:repeat(auto-fill,minmax(195px,1fr))}}
@media(max-width:500px){.journal-policy-row{align-items:flex-start;flex-direction:column}.journal-policy-row select{width:100%}.journal-permission-items label{align-items:flex-start;flex-direction:column}.journal-permission-items select{width:100%}}

/* LIRA v2.26.1 — Compact request catalog.
   Inspired by the density and clarity of modern catalog cards. No change to list mode,
   request state, animations, modal logic, backend, or touch interaction. */
#cards:not(.mode-list){
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(245px,1fr));
  gap:11px;
  align-items:stretch;
}
#cards:not(.mode-list) .ticket{
  --tile-shadow:0 2px 8px rgba(0,0,0,.055);
  width:100%;min-width:0;min-height:172px;
  padding:13px 14px 11px;
  display:flex;flex-direction:column;gap:0;
  border:1px solid var(--edge);
  border-radius:11px;
  background:var(--panel);
  box-shadow:var(--tile-shadow);
  text-align:left;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease;
}
#cards:not(.mode-list) .ticket:before{
  top:0;left:0;right:0;height:2px;
  background:var(--accent,var(--teal));opacity:.85;
}
#cards:not(.mode-list) .ticket:hover{
  transform:translateY(-2px);
  border-color:var(--accent,var(--teal));
  box-shadow:0 7px 23px rgba(0,0,0,.11);
}
#cards:not(.mode-list) .ticket:focus-visible{
  outline:2px solid var(--teal);outline-offset:2px;
}
#cards:not(.mode-list) .ticket-head{
  display:flex;align-items:center;justify-content:space-between;
  gap:7px;min-height:25px;min-width:0;
}
#cards:not(.mode-list) .ticket-id{
  font-size:10.5px;line-height:1.2;font-weight:800;letter-spacing:.025em;
  color:var(--muted);white-space:nowrap;display:inline-flex;align-items:center;gap:5px;
}
#cards:not(.mode-list) .badge{
  font-size:10px;line-height:1.2;font-weight:750;
  padding:5px 7px;border-radius:6px;
  max-width:63%;text-overflow:ellipsis;overflow:hidden;
}
#cards:not(.mode-list) .ticket-title{
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;min-height:37px;max-height:39px;
  font-size:14px;line-height:1.35;font-weight:750;
  letter-spacing:-.015em;color:var(--heading);
  margin:9px 0 6px;
  overflow-wrap:anywhere;
}
#cards:not(.mode-list) .ticket-meta{
  display:flex;align-items:center;flex-wrap:nowrap;
  min-width:0;gap:8px;
  font-size:11px;color:var(--muted);
}
#cards:not(.mode-list) .ticket-floor,
#cards:not(.mode-list) .ticket-room{
  display:inline-flex;align-items:center;gap:5px;
  white-space:nowrap;min-width:0;
}
#cards:not(.mode-list) .ticket-room{
  text-overflow:ellipsis;overflow:hidden;
}
#cards:not(.mode-list) .ticket-meta-icon{
  color:var(--teal);font-weight:900;font-size:13px;line-height:1;flex:0 0 auto;
}
#cards:not(.mode-list) .ticket-organization{
  display:flex;align-items:center;gap:6px;min-width:0;
  margin-top:5px;color:var(--muted);font-size:11px;
}
#cards:not(.mode-list) .ticket-organization>span:last-child{
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
}
#cards:not(.mode-list) .ticket-footer{
  display:flex;align-items:center;justify-content:space-between;gap:9px;
  margin-top:auto;padding-top:9px;
  border-top:1px solid var(--border);min-width:0;
  color:var(--muted);font-size:10px;
}
#cards:not(.mode-list) .assigned{
  min-width:0;flex:1;display:flex;align-items:center;gap:6px;
}
#cards:not(.mode-list) .assigned i{
  width:22px;height:22px;flex:0 0 22px;border-radius:6px;
  background:var(--soft-blue);color:var(--blue);
  display:grid;place-items:center;font-size:9px;font-weight:800;
}
#cards:not(.mode-list) .assigned-name{
  display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#cards:not(.mode-list) .ticket-created{
  flex:0 0 auto;white-space:nowrap;font-size:9.5px;
  font-variant-numeric:tabular-nums;
}
#cards:not(.mode-list) .ticket-alarm-dot{
  display:inline-grid;place-items:center;width:16px;height:16px;
  font-size:11px;border-radius:50%;background:var(--red);color:#fff;
}
/* The terminal stays touch-friendly, while showing more requests at once. */
.terminal-mode #cards:not(.mode-list){grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:13px}
.terminal-mode #cards:not(.mode-list) .ticket{min-height:185px;padding:15px 16px 12px}
.terminal-mode #cards:not(.mode-list) .ticket-title{font-size:15px;min-height:41px;max-height:43px}
.terminal-mode #cards:not(.mode-list) .ticket-meta,
.terminal-mode #cards:not(.mode-list) .ticket-organization{font-size:12px}
/* Existing green/red status animations win over neutral card backgrounds. */
#cards:not(.mode-list) .ticket.assigned-pending:not(.emergency-pending){
  border:2px solid var(--teal)!important;
  animation:lira-assigned-green-pulse 1.1s ease-in-out infinite;
}
#cards:not(.mode-list) .ticket.emergency-pending{
  border:2px solid var(--red)!important;
  animation:lira-emergency-pulse .95s linear infinite;
}
[data-theme="light"] #cards:not(.mode-list) .ticket{--tile-shadow:0 2px 10px rgba(31,45,74,.045)}
@media(max-width:730px){
  #cards:not(.mode-list){grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:9px}
}
@media(max-width:540px){
  #cards:not(.mode-list),.terminal-mode #cards:not(.mode-list){grid-template-columns:1fr}
  #cards:not(.mode-list) .ticket{min-height:162px}
}
@media(prefers-reduced-motion:reduce){
  #cards:not(.mode-list) .ticket{transition:none}
  #cards:not(.mode-list) .ticket:hover{transform:none}
  #cards:not(.mode-list) .ticket.assigned-pending:not(.emergency-pending),
  #cards:not(.mode-list) .ticket.emergency-pending{animation:none!important}
}


/* LIRA LOCAL v2.26.2: compact top status metrics (approx. 1/3 of original panel height).
   Keep category labels and values legible, including on touch screens. */
.metrics {
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-bottom:12px;
}
.metric {
  min-height:38px;
  height:38px;
  padding:5px 11px 5px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  border-radius:8px;
}
.metric small {
  font-size:11px;
  font-weight:650;
  line-height:1.15;
  min-width:0;
  color:var(--muted);
}
.metric strong {
  margin:0;
  font-size:18px;
  line-height:1;
  font-weight:750;
  flex-shrink:0;
}
.metric:after {display:none}
.metric:before {
  left:0;
  top:7px;
  bottom:7px;
  width:3px;
  height:auto;
  border-radius:0 4px 4px 0;
}
@media(max-width:900px){
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
}
@media(max-width:590px){
  .metrics{gap:6px;margin-bottom:10px}
  .metric{height:36px;min-height:36px;padding:4px 8px 4px 11px}
  .metric small{font-size:10px}
  .metric strong{font-size:16px}
}


/* ЛИРА v2.26.3 — condensed work area and sidebar service heading.
   The service name is presented next to the LIRA brand for TECH/TERMINAL users.
   Compact only the workboard chrome; do not modify modal/print/journal content.
   Keep emergency visibility, counters and existing status animations intact. */
.sidebar{width:218px;padding:18px 12px 14px}
.sidebar .brand{padding:0 7px 15px;gap:9px;align-items:flex-start}
.sidebar .brand-symbol{width:35px;height:35px;border-radius:9px;font-size:21px;flex:0 0 35px}
.sidebar .brand b{font-size:15px;line-height:1.2;letter-spacing:.055em}
.sidebar #sidebar-service-name{font-size:10px;line-height:1.3;letter-spacing:.01em;font-weight:800;margin-top:4px;overflow-wrap:anywhere;max-width:155px;color:var(--teal)}
.sidebar-section{margin-bottom:7px;margin-left:12px;font-size:9px}
.sidebar .nav{gap:2px}
.sidebar .nav button{padding:9px 11px;min-height:35px;font-size:12px}
.workspace-inner{padding:15px 21px 38px}
/* A compact header also leaves space for larger working areas on other screens. */
.topbar{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;margin:0 0 7px;min-height:34px}
.topbar-heading{display:flex;flex-direction:column;justify-content:center;min-width:0}
.topbar .eyebrow{font-size:9px;letter-spacing:.10em;margin:0 0 2px;line-height:1.15}
.topbar h1{font-size:19px;line-height:1.1;letter-spacing:-.025em;margin:0 0 1px}
.topbar .subtle-text{font-size:10px;line-height:1.2}
.topbar .top-actions{gap:5px;flex-wrap:wrap;justify-content:flex-end}
.topbar .top-actions .btn{min-height:31px;padding:5px 9px;font-size:11px;border-radius:7px}
.topbar .top-account{min-height:31px;padding:3px 8px;border-radius:7px}
.topbar .top-account .user-avatar{height:23px;width:23px;border-radius:5px;font-size:9px}
.topbar .top-account .user-box{gap:6px}
.topbar .top-account .user-box b{font-size:10px;line-height:1.14}
.topbar .top-account .user-box small{font-size:9px;line-height:1.14}
/* On technical-service request screens the title is moved into the sidebar. */
.service-user-mode.compact-ticket-header .topbar h1,
.service-user-mode.compact-ticket-header .topbar-heading .subtle-text{display:none}
.service-user-mode.compact-ticket-header .topbar .eyebrow{margin:0}
.service-user-mode.compact-ticket-header .topbar-heading{flex:0 1 auto}
/* Emergency banner must remain prominent despite reduced vertical footprint. */
.emergency-banner{min-height:39px;padding:5px 10px;margin-bottom:7px;gap:9px;border-radius:8px}
.emergency-banner-text{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:5px 9px;min-width:0}
.emergency-banner-text strong{font-size:11px;line-height:1.1;letter-spacing:.035em}
.emergency-banner-text span{font-size:11px;line-height:1.2}
.emergency-banner .emergency-open{min-height:29px;height:29px;padding:4px 10px;border-radius:6px;font-size:11px}
.metrics{gap:6px;margin-bottom:7px;grid-template-columns:repeat(4,minmax(0,1fr))}
.metric{height:29px;min-height:29px;padding:3px 8px 3px 11px;border-radius:6px;gap:5px}
.metric small{font-size:10px;line-height:1.05}
.metric strong{font-size:16px;line-height:1}
.metric:before{top:5px;bottom:5px;width:2px}
.tickets-panel .section-heading{margin-bottom:5px;gap:8px}
.tickets-panel .section-heading h2{font-size:14px;line-height:1.12;margin:0}
.tickets-panel .section-heading .subtle-text{font-size:10px;line-height:1.2;margin-top:2px}
.tickets-panel .timestamp{font-size:10px;white-space:nowrap}
.tickets-panel .toolbar{display:flex;align-items:center;flex-wrap:nowrap;gap:6px;margin-bottom:9px}
.tickets-panel .filters{padding:2px;gap:1px;border-radius:7px;flex:0 1 auto}
.tickets-panel .filters button{padding:6px 8px;min-height:27px;font-size:10px;border-radius:5px}
.tickets-panel .search-control{height:32px;min-width:145px;padding:0 8px;gap:6px;border-radius:7px;flex:1 1 190px}
.tickets-panel .search-control span{font-size:16px}
.tickets-panel .search-control input{font-size:11px}
.tickets-panel .floor-select{height:32px;min-height:32px;border-radius:7px;flex:0 0 111px;font-size:11px;padding:0 6px}
.tickets-panel .view-toggle{height:32px;min-height:32px;padding:2px;gap:2px;margin-left:0;border-radius:7px}
.tickets-panel .view-toggle button{min-height:26px;padding:4px 7px;font-size:10px;border-radius:5px}
/* Intermediate widths: keep the controls readable without excessive whitespace. */
@media(max-width:1250px){
  .topbar{flex-direction:row}
  .topbar .top-actions .btn{font-size:10px;padding:5px 7px}
  .topbar .top-account .user-box small{display:none}
}
@media(max-width:1050px){
  .tickets-panel .toolbar{flex-wrap:wrap}
  .tickets-panel .search-control{flex:1 1 220px}
  .tickets-panel .floor-select{flex:0 0 112px}
  .tickets-panel .view-toggle{margin-left:auto}
  .topbar{flex-wrap:wrap;gap:6px}
  .topbar .top-actions{flex:1 1 100%;justify-content:flex-start}
}
/* Collapsed side navigation has no room for text; restore the page heading. */
@media(max-width:810px){
  .sidebar{width:70px;padding:15px 8px}
  .sidebar .brand{padding:0 3px 17px}
  .sidebar .brand>div:last-child{display:none}
  .workspace-inner{padding:13px 12px 28px}
  .service-user-mode.compact-ticket-header .topbar h1{display:block;font-size:16px}
  .service-user-mode.compact-ticket-header .topbar .eyebrow{font-size:8px}
  .tickets-panel .timestamp{font-size:9px}
}
@media(max-width:580px){
  .topbar{align-items:flex-start}
  .topbar .top-actions{gap:5px}
  .topbar .top-actions .btn{min-height:31px}
  .topbar .top-account{min-height:31px}
  .emergency-banner{flex-wrap:wrap;min-height:39px;padding:7px}
  .emergency-banner-text{gap:3px 6px}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-bottom:8px}
  .metric{height:30px;min-height:30px;padding:3px 8px}
  .tickets-panel .section-heading{flex-wrap:wrap}
  .tickets-panel .toolbar{align-items:stretch;flex-wrap:wrap}
  .tickets-panel .filters{width:100%;flex:1 1 100%}
  .tickets-panel .filters button{flex:1 0 auto}
  .tickets-panel .search-control{min-width:120px;flex:1 1 100%}
  .tickets-panel .floor-select{flex:1 1 120px}
  .tickets-panel .view-toggle{flex:1 0 auto;width:auto;justify-content:space-evenly}
  .tickets-panel .view-toggle button{flex:1 0 auto}
}

/* Terminal-specific sidebar width overrides the legacy kiosk width at small viewports. */
.terminal-mode .sidebar{width:218px}
@media(max-width:810px){
  .terminal-mode .sidebar{width:70px}
  .terminal-mode .sidebar .brand>div:last-child{display:none}
}
/* Global form selectors should not turn the slim search input into a second large box. */
.tickets-panel .search-control input[type="search"]{
  width:100%;height:100%;min-height:0;padding:0;
  border:0;border-radius:0;outline:0;background:transparent;
  color:var(--heading);font-size:11px;
}

/* v2.26.4: visible local build marker for launch verification */
.build-stamp{font-size:10px;line-height:1.3;letter-spacing:.045em;white-space:nowrap;color:var(--teal);margin:0 0 8px 2px;font-weight:750}
@media(max-width:810px){.build-stamp{font-size:0;width:7px;height:7px;border-radius:50%;background:var(--teal);margin:3px}}

/* v2.28 maintenance panel */
.maintenance-stats {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;margin:14px 0 16px;}
.maintenance-stats>div {border:1px solid var(--border, #e1e7ee);border-radius:9px;padding:10px 12px;display:flex;gap:5px;flex-direction:column;min-width:0;}
.maintenance-stats span {color:var(--muted, #78859a);font-size:12px;}
.maintenance-stats b {overflow-wrap:anywhere;font-size:14px;}
@media(max-width:720px){.maintenance-stats{grid-template-columns:1fr;}}
