*{box-sizing:border-box} :root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#24372f;background:#f7f9f8;font-synthesis:none;font-size:16px}body{margin:0}button,input,select{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button{transition:background .15s,transform .15s}button:active{transform:translateY(1px)}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #72b59f;outline-offset:4px}[hidden]{display:none!important}.brand{display:flex;align-items:center;font-size:30px;font-weight:750;letter-spacing:-1.4px}.brand-icon{display:grid;place-items:center;border-radius:10px;background:#236e58;color:white;font-size:30px;line-height:1;width:40px;height:40px;margin-right:10px}.brand-dot{color:#39896c}.login-page{display:grid;grid-template-columns:48% 52%;min-height:100vh}.login-story{background:#143e32;color:#f3f7ef;padding:48px 60px;display:flex;flex-direction:column;overflow:hidden;position:relative}.login-story .brand-icon{background:#42735e}.story-content{margin:auto 0;padding-top:60px}.eyebrow,.small-label{font-size:12px;font-weight:700;letter-spacing:1.7px}.eyebrow{color:#b9d9bb}.story-content h1{font-size:clamp(38px,4vw,60px);font-weight:550;letter-spacing:-2px;line-height:1.12;margin:22px 0}.story-content p{color:#b8cec3;line-height:1.8}.equipment-art{height:260px;position:relative;max-width:390px;margin:32px auto}.orbit{position:absolute;width:255px;height:255px;border:1px solid #466958;border-radius:50%;left:55px;top:-10px;box-shadow:0 0 0 35px #ffffff03,0 0 0 70px #ffffff02}.device{position:absolute;transform:rotate(-8deg);left:30px;right:20px;top:35px}.device-screen{height:180px;border:9px solid #83a593;border-bottom-width:15px;border-radius:12px;background:#224e3d;padding:22px;box-shadow:0 25px 50px #06291d66}.device-screen span{font-size:45px;color:#c9e5c2;float:left;margin-right:20px}.device-screen i{display:block;margin:13px 0 0 90px;height:8px;background:#618775;border-radius:3px}.device-screen i:last-child{width:70px}.device-base{height:12px;background:#b3cbb7;margin:0 -24px;border-radius:2px 2px 20px 20px}.art-tag{position:absolute;bottom:20px;right:0;padding:15px 20px;background:#e2edcf;color:#274d37;border-radius:10px;font-size:14px;box-shadow:0 10px 40px #0a2c32}.story-footer{font-size:13px;color:#a1bdae}.login-panel{background:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:60px 40px 25px}.login-form-wrap{width:100%;max-width:400px;margin:auto}.small-label{color:#71867a}.login-form-wrap h2{font-size:32px;letter-spacing:-1.2px;font-weight:650;margin:18px 0 12px}.muted{color:#78827e;font-size:14px;line-height:1.6}label{display:block;font-size:14px;font-weight:600;margin:22px 0 9px}input,select,textarea{width:100%;min-height:46px;border:1px solid #dfe5e1;border-radius:7px;background:white;padding:11px 13px;color:#2d4036;outline:none;font-size:14px;font-family:inherit;resize:vertical}input:focus,select:focus,textarea:focus{border-color:#3c896d;box-shadow:0 0 0 3px #39856718}input::placeholder,textarea::placeholder{color:#969f9a}input:disabled,textarea:disabled{background:#f2f4f3;color:#8b958f;cursor:not-allowed}.password-wrap{position:relative}.password-wrap input{padding-right:80px}.show-password{position:absolute;right:10px;top:13px;border:0;background:none;color:#607d6e;font-size:12px}.primary,.secondary,.danger{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:43px;padding:12px 19px;border:0;border-radius:7px;font-weight:600;font-size:14px}.primary{background:#216b53;color:white;box-shadow:0 2px 3px #16423012}.primary:hover{background:#15523e}.secondary{background:white;border:1px solid #dce3df;color:#53665c}.danger{background:#b44842;color:white}.login-submit{width:100%;margin-top:28px;justify-content:space-between}.demo-note{margin-top:30px;padding:15px;display:flex;gap:12px;background:#f5f8f5;border:1px solid #e8eee7;border-radius:8px;color:#748477}.demo-note p{margin:0;font-size:12px;line-height:1.8}.demo-note strong{font-weight:600;color:#536b5b}footer{color:#94a098;font-size:12px}.login-panel footer{padding-top:45px}.app-shell{display:flex;min-height:100vh}.sidebar{width:236px;position:fixed;inset:0 auto 0 0;background:white;border-right:1px solid #e5eae7;padding:32px 23px;display:flex;flex-direction:column}.nav-label{font-size:10px;letter-spacing:1.4px;color:#98a29b;font-weight:650;margin:52px 12px 17px}.nav-item{display:flex;gap:12px;align-items:center;padding:13px;border-radius:7px;font-size:14px}.active{background:#eaf2ed;color:#286b51;font-weight:600}.nav-arrow{margin-left:auto}.sidebar-bottom{margin-top:auto}.workspace-badge{display:flex;gap:11px;border-top:1px solid #edf0ed;padding:23px 0}.workspace-icon{background:#f0f2ef;border:1px solid #e0e5df;border-radius:8px;padding:11px;font-size:12px;font-weight:700}.workspace-badge strong{font-size:12px;display:block;margin:5px 0}.workspace-badge small{display:block;font-size:10px;color:#939b95}.logout{background:none;border:0;color:#7f8983;display:flex;gap:13px;font-size:14px;padding:8px}.main-shell{margin-left:236px;flex:1;min-width:0;display:flex;flex-direction:column}.topbar{height:86px;background:#fff;border-bottom:1px solid #e6ebe7;display:flex;align-items:center;justify-content:space-between;padding:0 42px}.breadcrumb{display:flex;gap:18px;font-size:12px;color:#8f9a93}.breadcrumb strong{font-weight:500;color:#526459}.profile-button{border:0;background:none;display:flex;gap:11px;align-items:center;color:#435a4c;font-size:13px}.avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#e4ecdb;color:#5b7048;font-size:12px;font-weight:650}.chevron{margin-left:10px;color:#849488}main{padding:42px;max-width:1550px;width:100%;margin:0 auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.page-heading h1{font-size:32px;letter-spacing:-1px;margin:9px 0}.page-heading p{margin:0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:30px 0}.stat{background:white;border:1px solid #e2e8e3;border-radius:10px;padding:21px 23px;position:relative}.stat-label{font-size:12px;color:#76857b}.stat-value{font-size:32px;display:block;letter-spacing:-1px;font-weight:650;margin:12px 0 7px}.stat-detail{font-size:11px;color:#92a096}.stat-icon{position:absolute;right:19px;top:18px;background:#f0f4f0;color:#688373;display:grid;place-items:center;width:32px;height:32px;border-radius:8px}.inventory-panel{background:white;border:1px solid #e2e8e3;border-radius:10px;overflow:hidden}.panel-heading{padding:25px 25px 20px;display:flex;justify-content:space-between;align-items:center;gap:14px}h2{font-size:18px;letter-spacing:-.4px;margin:0}h3{font-size:16px}.panel-heading p{font-size:12px;margin:7px 0 0}.count{font-size:11px;background:#f0f3ed;border:1px solid #e0e7dd;padding:3px 7px;border-radius:5px;color:#7a8974;margin-left:8px;vertical-align:middle}.local-badge{font-size:11px;color:#7a917e;white-space:nowrap}.toolbar{padding:0 25px 23px;display:flex;gap:11px}.toolbar select{width:165px;min-height:40px;font-size:12px;padding:8px 11px}.search-wrap{position:relative;flex:1}.search-wrap span{position:absolute;left:12px;top:6px;font-size:24px;color:#88948c}.search-wrap input{min-height:40px;font-size:12px;padding-left:38px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{padding:13px 18px;background:#f8faf8;border-top:1px solid #eaf0e9;border-bottom:1px solid #eaf0e9;font-size:11px;color:#849187;font-weight:500}td{padding:18px;font-size:12px;border-bottom:1px solid #edf1ed;color:#66776b}th:first-child,td:first-child{padding-left:25px}tbody tr:hover{background:#fcfdfb}.equipment-cell{display:flex;gap:12px;align-items:center}.equipment-icon{display:grid;place-items:center;width:37px;height:37px;border:1px solid #e6ebe3;border-radius:8px;background:#f8faf5;font-size:19px;color:#65816b}.equipment-cell strong{font-weight:600;color:#384c3e;font-size:12px;display:block}.equipment-cell small{display:block;font-size:10px;color:#93a08f;margin-top:5px}.asset-code{font-family:Consolas,monospace;font-size:11px}.badge{display:inline-block;padding:5px 8px;font-size:10px;border-radius:5px}.badge::before{content:'●';font-size:7px;vertical-align:1px;margin-right:5px}.status-use{background:#ebf1fa;color:#6686ba}.status-available{background:#eaf5ec;color:#50855d}.status-repair{background:#fff4e1;color:#b88d3d}.status-reserve{background:#f3effc;color:#6d4bc3}.row-actions{display:flex;gap:4px}.icon-button{border:0;background:transparent;color:#839084;padding:6px 9px;border-radius:5px;font-size:20px}.icon-button:hover{background:#edf2eb;color:#2c6441}.row-actions .icon-button{font-size:15px}.table-footer{padding:19px 25px;display:flex;justify-content:space-between;font-size:11px;color:#99a395}.bottom-note{margin-top:23px;color:#97a192;font-size:11px;display:flex;gap:8px;align-items:center}.bottom-note span{font-size:17px}.app-footer{margin-top:auto;display:flex;justify-content:space-between;padding:20px 42px}dialog{width:min(520px,calc(100% - 32px));border:1px solid #e1e7df;border-radius:14px;padding:28px;box-shadow:0 30px 100px #13291e33;max-height:90vh;overflow:auto}dialog::backdrop{background:#13271d70;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.dialog-heading h2{margin-top:8px;font-size:23px}.dialog-heading .small-label{font-size:10px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;padding-top:20px;border-top:1px solid #e8ece6}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.form-error{font-size:13px;color:#af4d3e}.form-error:empty{display:none}.field-hint{font-size:11px;color:#8b988a;float:right;font-weight:400}.form-divider{border-top:1px solid #e8ece6;margin-top:26px}.form-divider+h3{margin:22px 0 5px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#234f38;color:white;z-index:10;padding:15px 22px;border-radius:9px;box-shadow:0 8px 30px #0002;font-size:14px;max-width:90vw}.empty{text-align:center;padding:50px 20px;color:#7a8b78}.empty>span{font-size:32px}.empty p{font-size:14px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(min-width:1600px){.login-story{padding:60px 90px}.story-content{max-width:560px}}@media(max-width:1150px){.sidebar{width:200px;padding:28px 16px}.main-shell{margin-left:200px}main{padding:30px 24px}.topbar{padding:0 24px}.stats{gap:10px}.stat{padding:18px 14px}.stat-icon{right:12px}.stat-label{font-size:11px}.toolbar{flex-wrap:wrap}.search-wrap{flex-basis:100%}.toolbar select{flex:1}.login-story{padding:36px}.login-form-wrap h2{font-size:28px}}@media(max-width:760px){.login-page{display:block}.login-story{padding:22px 24px}.login-story .brand{font-size:25px}.story-content,.story-footer{display:none}.login-panel{min-height:calc(100vh - 84px);padding:45px 24px 20px}.sidebar{position:static;width:100%;padding:16px 20px;border-right:0;border-bottom:1px solid #e4e9e2;flex-direction:row;align-items:center;justify-content:space-between}.sidebar .brand{font-size:25px}.sidebar .brand-icon{width:32px;height:32px;font-size:25px}.nav-label,.nav-item,.workspace-badge{display:none}.sidebar-bottom{margin:0}.logout{font-size:12px}.app-shell{display:block}.main-shell{margin:0}.topbar{height:65px;padding:0 20px}.breadcrumb{gap:10px}.profile-button{font-size:12px}main{padding:26px 18px}.page-heading{align-items:flex-start}.page-heading h1{font-size:28px}.page-heading p{font-size:12px;max-width:240px}.page-heading>.primary{padding:11px;font-size:12px;white-space:nowrap;margin-top:20px}.small-label{font-size:10px}.stats{grid-template-columns:repeat(2,1fr);margin:24px 0}.stat{padding:18px}.stat-value{font-size:28px}.panel-heading{padding:20px 16px}.panel-heading h2{font-size:16px}.panel-heading p{font-size:11px}.local-badge{display:none}.toolbar{padding:0 16px 20px}.table-footer{padding:17px;font-size:10px}.table-footer>span:last-child{display:none}.app-footer{padding:20px}.form-grid{grid-template-columns:1fr}.dialog-actions .primary,.dialog-actions .secondary,.dialog-actions .danger{font-size:12px;padding:12px}dialog{padding:22px}.field-hint{float:none;display:block;margin-top:4px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.admin-panel{margin-top:30px}.admin-panel .form-error{margin:0 25px 18px}.account-actions{display:flex;gap:7px}.account-actions button{font-size:12px;padding:8px 10px;min-height:34px}.client-context{padding:16px 20px;margin-bottom:24px;background:#e7f1e9;border:1px solid #bbd5c4;border-radius:8px;color:#28583e;font-size:14px;overflow-wrap:anywhere}button:disabled{opacity:.55;cursor:wait}#admin-nav{margin-top:8px}@media(max-width:760px){.sidebar{flex-wrap:wrap;gap:12px}.sidebar .nav-item{display:flex;padding:8px;font-size:12px}.sidebar .sidebar-bottom{margin-left:auto}#admin-nav{margin-top:0}.admin-panel .page-heading{flex-wrap:wrap}.account-actions{flex-wrap:wrap}}
.permission-summary{margin:14px 0;padding:14px 16px;border:1px solid var(--border,#dce5df);border-radius:10px;background:rgba(39,108,82,.07);font-size:13px}.permission-summary-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.permission-summary-heading strong{color:var(--text,#263d31)}.permission-summary-heading span{color:var(--muted,#718078);font-size:11px;white-space:nowrap}.permission-tags{display:flex;flex-wrap:wrap;gap:7px}.permission-tags span{display:inline-flex;align-items:center;min-height:28px;padding:5px 9px;border:1px solid rgba(39,108,82,.18);border-radius:999px;background:rgba(255,255,255,.7);color:var(--text,#385246);font-size:11px;line-height:1.25}.permission-client-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;margin-top:10px}.permission-client-list label{display:flex;align-items:center;gap:8px;padding:9px 11px;border:1px solid var(--border,#dce5df);border-radius:8px}.permission-client-list input{width:auto;margin:0}#company-user-clients{margin:14px 0;padding:14px;border:1px solid var(--border,#dce5df);border-radius:10px}#dashboard.theme-dark .permission-tags span{background:#213129;border-color:#365242;color:#cfe3d6}#dashboard.theme-dark .permission-summary-heading strong{color:#edf5f0}
.access-dropdown-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.access-dropdown{position:relative;border:1px solid var(--border,#dce5df);border-radius:9px;background:rgba(255,255,255,.38)}.access-dropdown>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px;padding:10px 13px;cursor:pointer;font-size:12px;font-weight:600}.access-dropdown>summary::-webkit-details-marker{display:none}.access-dropdown>summary::after{content:'⌄';color:#668174;transition:transform .18s ease}.access-dropdown[open]>summary::after{transform:rotate(180deg)}.access-dropdown>summary small{margin-left:auto;color:var(--muted,#718078);font-size:10px;font-weight:400}.access-dropdown .permission-client-list{grid-template-columns:1fr;max-height:190px;overflow:auto;margin:0;padding:8px;border-top:1px solid var(--border,#dce5df)}.access-dropdown .permission-client-list label{margin:0;background:rgba(255,255,255,.45)}.access-dropdown .permission-client-list label small{margin-left:auto;color:var(--muted,#718078);font-size:10px}@media(max-width:620px){.access-dropdown-grid{grid-template-columns:1fr}.access-dropdown>summary{align-items:flex-start;flex-wrap:wrap}.access-dropdown>summary small{margin-left:0;width:100%}}body.theme-dark .access-dropdown{background:#18231d;border-color:#34483d}body.theme-dark .access-dropdown .permission-client-list{border-color:#34483d}body.theme-dark .access-dropdown .permission-client-list label{background:#1e2b24;border-color:#34483d}
.role-safety-note{margin:9px 0 0;padding:10px 12px;border:1px solid #ead4a9;border-radius:8px;background:#fff8e9;color:#805c1c;font-size:11px;line-height:1.45}body.theme-dark .role-safety-note{background:#30291b;border-color:#5b4927;color:#edc779}
.group-list-heading{margin:24px 0 10px;padding-top:18px;border-top:1px solid var(--border,#dce5df)}.groups-list{display:grid;gap:10px;max-height:280px;overflow:auto}.group-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px;border:1px solid var(--border,#dce5df);border-radius:10px;background:rgba(39,108,82,.04)}.group-card>div:first-child{display:grid;gap:3px}.group-card small,.group-card span{font-size:12px;color:var(--muted,#718078)}.group-card>div:last-child{display:flex;align-items:center;gap:8px}#groups-dialog{max-width:650px}
.company-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.company-heading-actions .primary{min-width:150px;justify-content:center}@media(max-width:760px){.company-heading-actions{width:100%;justify-content:flex-start}.company-heading-actions .primary{flex:1 1 170px}}
.nav-subitem{border:0;background:transparent;text-align:left;color:#536b5b;margin:4px 0 0 19px;font-size:13px}.nav-subitem:hover{background:#f1f6f2}.client-picker{position:relative;z-index:10;overflow:visible;display:grid;grid-template-columns:1fr minmax(260px,1.2fr);gap:25px;align-items:center;background:white;border:1px solid #dce7df;border-radius:10px;padding:22px 24px;margin-bottom:24px}.client-picker:focus-within{z-index:120}.client-picker h2{font-size:17px}.client-picker p{margin:7px 0 0}.client-picker label{margin:0 0 8px}.client-picker select{width:100%;text-overflow:ellipsis}@media(max-width:760px){.client-picker{grid-template-columns:1fr;padding:18px;gap:14px}.sidebar .nav-subitem{margin:0;font-size:12px}.client-picker-controls{min-width:0}}
.client-combo-wrap{position:relative;width:100%}
.client-dropdown{position:absolute;top:calc(100% + 4px);left:0;right:0;max-height:230px;overflow-y:auto;background:white;border:1px solid #dce7df;border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,0.1);z-index:130}
.client-dropdown-item{padding:10px 14px;cursor:pointer;border-bottom:1px solid #f0f4f1;font-size:13px;display:flex;flex-direction:column;gap:2px}
.client-dropdown-item:last-child{border-bottom:0}
.client-dropdown-item:hover,.client-dropdown-item.selected{background:#eaf2ed;color:#1c5c45}
.client-dropdown-item strong{font-weight:600;font-size:13px}
.client-dropdown-item small{font-size:11px;color:#71867a}
.client-dropdown-empty{padding:12px;font-size:12px;color:#78827e;text-align:center}
#dashboard.theme-dark .client-dropdown{background:#1a231f;border-color:#2e3e35;box-shadow:0 10px 30px rgba(0,0,0,0.5)}
#dashboard.theme-dark .client-dropdown-item{border-bottom-color:#25332c;color:#d5e0d9}
#dashboard.theme-dark .client-dropdown-item:hover,#dashboard.theme-dark .client-dropdown-item.selected{background:#23352b;color:#6ee7b7}
#dashboard.theme-dark .client-dropdown-item small{color:#83968c}
#dashboard.theme-dark .client-dropdown-empty{color:#83968c}
.admin-toggle{border:0;width:100%;justify-content:space-between;text-align:left;color:#286b51;background:#eaf2ed}.menu-chevron{transition:transform .25s cubic-bezier(.2,.8,.2,1)}.admin-toggle[aria-expanded="false"] .menu-chevron{transform:rotate(-90deg)}#admin-options{margin:6px 0 0 12px;border-left:1px solid #dfe8e1;padding-left:7px;max-height:260px;opacity:1;overflow:hidden;transform:translateY(0);transition:max-height .3s cubic-bezier(.2,.8,.2,1),opacity .2s ease,transform .3s cubic-bezier(.2,.8,.2,1),margin .3s}.admin-toggle[aria-expanded="false"]+#admin-options{max-height:0;opacity:0;transform:translateY(-8px);margin-top:0;pointer-events:none}#admin-options .nav-subitem{margin:3px 0;padding:12px;font-size:14px;transition:opacity .2s ease,transform .25s cubic-bezier(.2,.8,.2,1),background-color .18s}.admin-toggle[aria-expanded="false"]+#admin-options .nav-subitem{opacity:0;transform:translateX(-7px)}#admin-options .nav-subitem.active{background:#eaf2ed;color:#286b51;font-weight:600}@media(max-width:760px){#admin-menu{flex-basis:100%}.sidebar #admin-options .nav-item{display:flex}.admin-toggle{min-height:44px}}
.item-image-preview{display:block;width:100%;max-height:220px;object-fit:contain;border:1px solid #e2e8e3;border-radius:8px;margin-top:12px}.image-remove{display:flex;gap:10px;align-items:center}.image-remove input{width:18px;min-height:18px}.equipment-thumbnail{width:42px;height:42px;object-fit:cover;border:1px solid #e2e8e3;border-radius:8px}
.avatar{overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.profile-company-image-section{display:grid;grid-template-columns:96px 1fr;align-items:center;gap:18px;margin:20px 0 4px;padding:16px;border:1px solid #dfe7e1;border-radius:12px;background:#f8faf8}.profile-company-image-preview{width:96px;height:96px;display:grid;place-items:center;overflow:hidden;border:1px solid #dce5df;border-radius:14px;background:#edf3ef;color:#5f786b;font-size:34px}.profile-company-image-preview>*{grid-area:1/1}.profile-company-image-preview img{width:100%;height:100%;object-fit:cover}.profile-company-image-section h3{margin:0 0 4px}.profile-company-image-section p{margin:0 0 12px}.profile-company-image-actions{display:flex;gap:8px;flex-wrap:wrap}.profile-company-image-actions button{min-height:36px;padding:8px 12px;font-size:12px}@media(max-width:520px){.profile-company-image-section{grid-template-columns:1fr}.profile-company-image-preview{width:84px;height:84px}}
body.theme-dark .profile-company-image-section{background:#18231d;border-color:#2b3d32}body.theme-dark .profile-company-image-preview{background:#213129;border-color:#34483d;color:#93ad9f}
.heading-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.pagination-controls{display:flex;gap:8px;align-items:center;margin-left:auto}
.pagination-controls button{min-height:34px;padding:6px 12px;font-size:12px}
.item-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:10px;margin-top:12px}
.gallery-thumb-item{position:relative;width:84px;height:84px;border-radius:8px;border:1px solid #e2e8e3;overflow:hidden;background:#f8faf8}
.gallery-thumb-item img{width:100%;height:100%;object-fit:cover}
.gallery-thumb-item .delete-thumb{position:absolute;top:3px;right:3px;background:rgba(217,83,79,0.9);color:white;border:0;border-radius:50%;width:22px;height:22px;font-size:14px;line-height:1;display:grid;place-items:center;cursor:pointer}
.gallery-thumb-item .delete-thumb:hover{background:#d9534f}
.drop-zone{border:2px dashed #b5c7bc;border-radius:10px;padding:26px 20px;text-align:center;background:#f8faf8;cursor:pointer;transition:background .15s,border-color .15s;margin-top:16px}
.drop-zone:hover,.drop-zone.drag-over{border-color:#216b53;background:#eaf2ed}
.drop-zone-icon{font-size:32px;display:block;margin-bottom:8px;color:#3c896d}
.drop-zone-text{margin:0;font-size:13px;color:#526459;line-height:1.5}
.csv-file-name{font-weight:600;color:#216b53;display:block;margin-top:8px;font-size:13px;word-break:break-all}
.template-link-wrap{margin-top:14px;text-align:left}
.csv-template-link{color:#216b53;font-weight:600;font-size:13px;text-decoration:underline;cursor:pointer;display:inline-flex;align-items:center;gap:5px}
.csv-template-link:hover{color:#15523e}
@media print{
 body{background:white;color:black}
 .sidebar,.topbar,.page-heading button,.heading-actions,.toolbar,.table-footer,.bottom-note,.app-footer,.row-actions,.account-actions,#client-picker-panel,#toast,dialog{display:none!important}
 .main-shell{margin-left:0!important}
 main{padding:0!important;max-width:100%!important}
 .inventory-panel{border:0!important;box-shadow:none!important}
 table{width:100%!important;border-collapse:collapse!important}
 th,td{border:1px solid #ccc!important;padding:8px!important;font-size:12px!important;color:black!important}
 th{background:#eee!important}
 .badge{border:1px solid #ccc;background:transparent!important;color:black!important}
}

/* Theme & Custom Brand Color Support (Scoped to Dashboard & Dialogs) */
:root{
 --btn-primary-bg: #216b53;
 --btn-primary-text: #ffffff;
 --btn-primary-hover: #15523e;
}

#dashboard .primary, dialog .primary, #login-form .primary {
 background: var(--btn-primary-bg) !important;
 color: var(--btn-primary-text) !important;
}
#dashboard .primary:hover, dialog .primary:hover, #login-form .primary:hover {
 filter: brightness(0.92);
}

.color-picker-wrap{display:flex;gap:8px;align-items:center}
.color-picker-wrap input[type="color"]{width:46px;min-height:46px;padding:3px;border-radius:7px;cursor:pointer;flex-shrink:0}
.color-picker-wrap input[type="text"]{flex:1;text-transform:uppercase;font-family:Consolas,monospace}
.theme-reset-wrap{display:flex;align-items:flex-end}
.theme-reset-btn{width:100%;height:46px}

/* Dark Mode (Active only when #dashboard has .theme-dark) */
body.theme-dark, #dashboard.theme-dark {
 background: #121614 !important;
 color: #e1e7e4 !important;
}

#dashboard.theme-dark .sidebar {
 background: #171d1a;
 border-right-color: #26332c;
}
#dashboard.theme-dark .brand {
 color: #f0f4f1;
}
#dashboard.theme-dark .nav-label {
 color: #788a80;
}
#dashboard.theme-dark .nav-item {
 color: #a2b2a8;
}
#dashboard.theme-dark .nav-item:hover {
 background: #202b25;
}
#dashboard.theme-dark .nav-item.active {
 background: #1e362a;
 color: #6ee7b7;
}
#dashboard.theme-dark #admin-options {
 border-left-color: #2a3d32;
}
#dashboard.theme-dark #admin-nav {
 background: #1e2b24;
 color: #a2c4b2;
}
#dashboard.theme-dark .workspace-badge {
 border-top-color: #26332c;
}
#dashboard.theme-dark .workspace-icon {
 background: #202b25;
 border-color: #2b3a32;
 color: #d0ded6;
}
#dashboard.theme-dark .workspace-badge strong {
 color: #e1e7e4;
}
#dashboard.theme-dark .workspace-badge small {
 color: #83968c;
}
#dashboard.theme-dark .logout {
 color: #83968c;
}
#dashboard.theme-dark .logout:hover {
 color: #f87171;
}

#dashboard.theme-dark .topbar {
 background: #171d1a;
 border-bottom-color: #26332c;
}
#dashboard.theme-dark .breadcrumb {
 color: #7a8e83;
}
#dashboard.theme-dark .breadcrumb strong {
 color: #d5e0d9;
}
#dashboard.theme-dark .profile-button {
 color: #d5e0d9;
}
#dashboard.theme-dark .avatar {
 background: #243b2f;
 color: #86efac;
}

#dashboard.theme-dark .page-heading h1 {
 color: #f0f4f1;
}
#dashboard.theme-dark .muted {
 color: #94a59c !important;
}
#dashboard.theme-dark .stat {
 background: #18201c;
 border-color: #26342d;
 color: #e1e7e4;
}
#dashboard.theme-dark .stat-label {
 color: #8da195;
}
#dashboard.theme-dark .stat-value {
 color: #f0f4f1;
}
#dashboard.theme-dark .stat-icon {
 background: #222e27;
 color: #84a993;
}

#dashboard.theme-dark .inventory-panel {
 background: #18201c;
 border-color: #26342d;
}
#dashboard.theme-dark .panel-heading h2 {
 color: #f0f4f1;
}
#dashboard.theme-dark .count {
 background: #222e27;
 border-color: #2d3e34;
 color: #a4b8ad;
}
#dashboard.theme-dark .client-picker {
 background: #18201c;
 border-color: #26342d;
 color: #e1e7e4;
}
#dashboard.theme-dark .client-context {
 background: #1a2f24;
 border-color: #2c4c3b;
 color: #86efac;
}

#dashboard.theme-dark input,
#dashboard.theme-dark select,
#dashboard.theme-dark textarea,
body.theme-dark dialog input,
body.theme-dark dialog select,
body.theme-dark dialog textarea {
 background: #1e2823;
 border-color: #2e3e35;
 color: #e1e7e4;
}
#dashboard.theme-dark input:focus,
#dashboard.theme-dark select:focus,
#dashboard.theme-dark textarea:focus,
body.theme-dark dialog input:focus,
body.theme-dark dialog select:focus,
body.theme-dark dialog textarea:focus {
 border-color: var(--btn-primary-bg);
 box-shadow: 0 0 0 3px rgba(33, 107, 83, 0.25);
}
#dashboard.theme-dark input::placeholder,
#dashboard.theme-dark textarea::placeholder,
body.theme-dark dialog input::placeholder,
body.theme-dark dialog textarea::placeholder {
 color: #62756a;
}
#dashboard.theme-dark input:disabled,
#dashboard.theme-dark textarea:disabled,
body.theme-dark dialog input:disabled,
body.theme-dark dialog textarea:disabled {
 background: #171d1a;
 color: #687970;
}

#dashboard.theme-dark .secondary,
body.theme-dark dialog .secondary {
 background: #1e2823;
 border-color: #2e3e35;
 color: #c4d4cc;
}
#dashboard.theme-dark .secondary:hover,
body.theme-dark dialog .secondary:hover {
 background: #26332c;
}

#dashboard.theme-dark table th {
 background: #151b18;
 border-top-color: #243029;
 border-bottom-color: #243029;
 color: #94a59c;
}
#dashboard.theme-dark table td {
 border-bottom-color: #222d26;
 color: #c4d4cb;
}
#dashboard.theme-dark tbody tr:hover {
 background: #1d2521;
}
#dashboard.theme-dark .equipment-cell strong {
 color: #e7eeea;
}
#dashboard.theme-dark .equipment-cell small {
 color: #7f9387;
}
#dashboard.theme-dark .equipment-icon {
 background: #202b25;
 border-color: #2c3c33;
 color: #9ab4a4;
}
#dashboard.theme-dark .equipment-thumbnail {
 border-color: #2c3c33;
}
#dashboard.theme-dark .icon-button {
 color: #7d9185;
}
#dashboard.theme-dark .icon-button:hover {
 background: #24332a;
 color: #6ee7b7;
}
#dashboard.theme-dark .table-footer {
 color: #7d9185;
}
#dashboard.theme-dark .bottom-note {
 color: #7d9185;
}
#dashboard.theme-dark .app-footer {
 color: #6e8076;
}

/* Dialogs in Dark Mode */
body.theme-dark dialog {
 background: #18201c;
 border-color: #2b3b32;
 color: #e1e7e4;
 box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
}
body.theme-dark dialog .dialog-heading h2 {
 color: #f0f4f1;
}
body.theme-dark dialog .form-divider {
 border-top-color: #2b3b32;
}
body.theme-dark dialog .dialog-actions {
 border-top-color: #2b3b32;
}
body.theme-dark dialog .drop-zone {
 background: #1b2320;
 border-color: #314339;
}
body.theme-dark dialog .drop-zone:hover,
body.theme-dark dialog .drop-zone.drag-over {
 background: #212c27;
 border-color: var(--btn-primary-bg);
}
body.theme-dark dialog .drop-zone-text {
 color: #9cb1a4;
}
body.theme-dark dialog .gallery-thumb-item {
 background: #161c19;
 border-color: #2d3d34;
}

/* Smooth UI Animations & Micro-interactions */
@keyframes fadeInScale {
 from { opacity: 0; transform: scale(0.96) translateY(8px); }
 to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fadeInSlideUp {
 from { opacity: 0; transform: translateY(12px); }
 to { opacity: 1; transform: translateY(0); }
}

@keyframes toastSlide {
 from { opacity: 0; transform: translate(-50%, 20px) scale(0.95); }
 to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@keyframes dropdownFade {
 from { opacity: 0; transform: translateY(-6px); }
 to { opacity: 1; transform: translateY(0); }
}

@keyframes dialogFadeOut {
 from { opacity: 1; transform: scale(1) translateY(0); }
 to { opacity: 0; transform: scale(.96) translateY(10px); }
}

@keyframes backdropFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdropFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes dropdownFadeOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-6px); } }

/* Dialog Entrance Animation */
dialog[open] {
 animation: fadeInScale 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
dialog[open]::backdrop{animation:backdropFadeIn .2s ease both}
dialog[open].is-closing{animation:dialogFadeOut .22s cubic-bezier(.4,0,1,1) forwards;pointer-events:none}
dialog[open].is-closing::backdrop{animation:backdropFadeOut .22s ease forwards}

/* Toast Notification Animation */
.toast:not([hidden]) {
 display: block;
 animation: toastSlide 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Dropdown Animation */
.client-dropdown:not([hidden]) {
 animation: dropdownFade 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.client-dropdown.is-closing:not([hidden]){animation:dropdownFadeOut .18s ease forwards;pointer-events:none}

/* Card & Panel Micro-interactions */
.stat {
 transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.stat:hover {
 transform: translateY(-2px);
 box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
 border-color: #cbd8cf;
}
#dashboard.theme-dark .stat:hover {
 box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
 border-color: #35493e;
}

/* Interactive Elements & Buttons Transitions */
button, .nav-item, input, select, .client-picker {
 transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}
button:hover:not(:disabled) {
 transform: translateY(-1px);
}
button:active:not(:disabled) {
 transform: translateY(1px);
}

/* Nav items micro-interaction */
.nav-item {
 transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
}
.nav-item:hover {
 transform: translateX(3px);
}

/* Table rows smooth hover */
tbody tr {
 transition: background-color 0.15s ease;
}

/* Dropzone drag & drop pulse */
.drop-zone {
 transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.drop-zone:hover, .drop-zone.drag-over {
 transform: scale(1.008);
}

/* View transition on tab changes */
.page-enter{animation:pageShellIn .42s cubic-bezier(.16,1,.3,1) both}.page-enter>.page-heading,.page-enter>.client-picker,.page-enter>.client-context,.page-enter>.stats,.page-enter>.inventory-panel,.page-enter>.bottom-note{opacity:0;animation:pageSectionIn .48s cubic-bezier(.16,1,.3,1) both}.page-enter>:nth-child(1){animation-delay:.04s}.page-enter>:nth-child(2){animation-delay:.09s}.page-enter>:nth-child(3){animation-delay:.14s}.page-enter>:nth-child(4){animation-delay:.19s}.page-enter>:nth-child(n+5){animation-delay:.24s}
@keyframes pageShellIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes pageSectionIn{from{opacity:0;transform:translateY(18px) scale(.992);filter:blur(3px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}

/* ── Item View Dialog ── */
.item-view-dialog {
 width: min(640px, calc(100% - 32px));
}
.view-dialog-body {
 margin-top: 20px;
}
.view-equipment-header {
 display: flex;
 gap: 20px;
 align-items: flex-start;
 margin-bottom: 20px;
}
.view-gallery {
 flex-shrink: 0;
 width: 100px;
 display: flex;
 flex-direction: column;
 gap: 6px;
}
.view-gallery-img {
 width: 100px;
 height: 80px;
 object-fit: cover;
 border-radius: 8px;
 border: 1px solid #e2e8e3;
}
.view-no-image {
 width: 100px;
 height: 80px;
 display: grid;
 place-items: center;
 background: #f4f7f4;
 border: 1px solid #e2e8e3;
 border-radius: 8px;
 font-size: 32px;
}
.view-main-info {
 flex: 1;
 display: flex;
 flex-direction: column;
 gap: 6px;
}
.view-details-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 10px 20px;
 border-top: 1px solid #edf1ed;
 padding-top: 16px;
}
.view-field {
 margin: 0;
 display: flex;
 flex-direction: column;
 gap: 3px;
}
.view-field-full {
 grid-column: 1 / -1;
}
.view-label {
 font-size: 10px;
 font-weight: 700;
 letter-spacing: 1px;
 color: #7a8b78;
 text-transform: uppercase;
}
.view-value {
 font-size: 14px;
 color: #2d4036;
 font-weight: 500;
}
.view-notes {
 white-space: pre-wrap;
 font-size: 13px;
 font-weight: 400;
 color: #586b5c;
 line-height: 1.6;
}
/* Clickable rows */
#items tr[data-id] {
 cursor: pointer;
 transition: background .12s;
}
#items tr[data-id]:hover {
 background: #f4f8f5;
}
/* Dark mode for view dialog */
body.theme-dark .item-view-dialog {
 background: #111b16;
 border-color: #2b3d32;
 color: #d4e0d9;
}
body.theme-dark .view-label { color: #7a9c87; }
body.theme-dark .view-value { color: #d4e0d9; }
body.theme-dark .view-notes { color: #9ab4a3; }
body.theme-dark .view-details-grid { border-color: #2b3d32; }
body.theme-dark .view-no-image { background: #1c2922; border-color: #2b3d32; }
body.theme-dark #items tr[data-id]:hover { background: #1a2821; }
@media(max-width:760px){
 .view-equipment-header{flex-direction:column}
 .view-gallery{width:100%;flex-direction:row;flex-wrap:wrap}
 .view-details-grid{grid-template-columns:1fr}
}


/* Equipment detail: spacious gallery, readable fields and persistent actions. */
.item-view-dialog{width:min(820px,calc(100vw - 32px));max-height:90dvh;padding:0;overflow:auto;border-radius:18px}
.item-view-dialog>.dialog-heading{position:sticky;top:0;z-index:2;padding:24px 28px;background:#fff;border-bottom:1px solid #e1e8e3;align-items:flex-start}
.item-view-dialog .dialog-heading h2{font-size:26px;line-height:1.25;overflow-wrap:anywhere;margin-top:9px}
.item-view-dialog .dialog-heading .icon-button{background:#f0f4f1;width:36px;height:36px;flex-shrink:0;line-height:1}
.item-view-dialog .view-dialog-body{padding:26px 28px}
.item-view-dialog .view-equipment-header{display:grid;grid-template-columns:minmax(180px,1fr) minmax(210px,1.2fr);gap:28px;align-items:start;margin-bottom:26px}
.item-view-dialog .view-gallery{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.item-view-dialog .view-gallery-img{width:100%;height:100px;object-fit:contain;background:#f5f7f5;border-radius:10px}
.item-view-dialog .view-gallery-img:first-child{grid-column:1/-1;height:210px}
.item-view-dialog .view-no-image{grid-column:1/-1;width:100%;height:210px;font-size:56px;border-radius:12px}
.item-view-dialog .view-main-info{display:grid;gap:18px}
.item-view-dialog .view-label{font-size:12px;letter-spacing:.7px}
.item-view-dialog .view-value{font-size:16px;line-height:1.55;overflow-wrap:anywhere}
.item-view-dialog .view-field{gap:5px;min-width:0}
.item-view-dialog .view-details-grid{gap:22px;padding-top:24px}
.item-view-dialog .view-notes{background:#f5f7f5;border:1px solid #e2e8e3;border-radius:10px;padding:14px 16px;font-size:14px;line-height:1.7}
.item-view-dialog .badge{font-size:12px;padding:5px 10px}
.item-view-dialog .view-actions{position:sticky;bottom:0;margin:0;padding:18px 28px;background:#fff;z-index:2}
body.theme-dark .item-view-dialog>.dialog-heading,body.theme-dark .item-view-dialog .view-actions{background:#15221b;border-color:#2b3d32}
body.theme-dark .item-view-dialog .view-gallery-img,body.theme-dark .item-view-dialog .view-notes,body.theme-dark .item-view-dialog .icon-button{background:#1c2922;border-color:#2b3d32;color:#d4e0d9}
@media(max-width:600px){.item-view-dialog>.dialog-heading{padding:20px}.item-view-dialog .view-dialog-body{padding:20px}.item-view-dialog .view-equipment-header{grid-template-columns:1fr;gap:22px}.item-view-dialog .view-main-info{grid-template-columns:1fr 1fr;gap:16px}.item-view-dialog .view-gallery-img:first-child,.item-view-dialog .view-no-image{height:180px}.item-view-dialog .view-actions{padding:16px 20px}.item-view-dialog .dialog-heading h2{font-size:22px}}
#register-dialog{width:min(760px,calc(100vw - 32px));max-height:90dvh;overflow:auto}
#employee-dialog{width:min(700px,calc(100vw - 32px));max-height:90dvh;overflow:auto}
.company-required-alert{display:flex;align-items:flex-start;gap:11px;margin:14px 0 0;padding:13px 16px;border:1px solid #d7e4da;border-radius:8px;background:#eef5f0;color:#315c49;opacity:1;transform:translateY(0);transition:opacity .25s,transform .25s}
.company-required-alert>span{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;border-radius:50%;background:#36745b;color:#fff;font-size:13px;font-weight:700}
.company-required-alert p{margin:0;font-size:13px;line-height:1.55}.company-required-alert strong{display:block;color:#254d3c}.company-required-alert.is-hiding{opacity:0;transform:translateY(-4px)}
body.theme-dark .company-required-alert{background:#192b22;border-color:#345442;color:#a9c5b6}body.theme-dark .company-required-alert strong{color:#e6f1ea}
.stat-chart-button{border:0;padding:0;cursor:pointer;overflow:hidden;isolation:isolate;transition:transform .25s cubic-bezier(.2,.8,.2,1),background .25s,color .25s,box-shadow .25s}.stat-chart-button::after{content:'';position:absolute;inset:50%;z-index:-1;border-radius:50%;background:#78b89e55;opacity:0;transform:translate(-50%,-50%) scale(0);transition:transform .4s ease,opacity .4s ease}.stat-chart-button:hover{background:#dfece4;color:#286f58;transform:translateY(-3px) rotate(4deg) scale(1.08);box-shadow:0 7px 16px #1f634523}.stat-chart-button:hover::after{opacity:1;transform:translate(-50%,-50%) scale(2.2)}.stat-chart-button:active{transform:translateY(0) scale(.92)}.stat-chart-button:focus-visible{outline:3px solid #72b59f;outline-offset:3px}.stat-chart-button.is-selected{background:#d7ebe0;color:#216b53;box-shadow:0 0 0 3px #4a9b7624}.stat-chart-button.is-clicked{animation:statIconPulse .5s cubic-bezier(.2,.9,.25,1)}
.equipment-chart-panel{display:grid;grid-template-columns:1fr;margin:-10px 0 30px;overflow:visible}.equipment-chart-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:24px 26px;border-bottom:1px solid #e8eee9}.equipment-chart-heading h2{font-size:21px;margin:7px 0}.equipment-chart-heading p{margin:0}.equipment-chart-content{display:grid;grid-template-columns:minmax(220px,340px) minmax(260px,1fr);align-items:center;justify-content:center;gap:42px;padding:32px 42px}.pie-chart{--pie:#dfe6e1;position:relative;width:min(260px,70vw);aspect-ratio:1;border-radius:50%;margin:auto;background:conic-gradient(var(--pie));box-shadow:inset 0 0 0 1px #00000008}.pie-chart::after{content:'';position:absolute;inset:27%;border-radius:50%;background:#fff;box-shadow:0 0 0 1px #e3eae5}.pie-chart>span{position:absolute;inset:27%;z-index:1;display:grid;place-content:center;text-align:center}.pie-chart strong{font-size:31px;line-height:1;color:#294336}.pie-chart small{margin-top:6px;color:#829087;font-size:11px;text-transform:uppercase;letter-spacing:1px}.chart-legend{list-style:none;margin:0;padding:0;display:grid;gap:10px}.chart-legend li{display:grid;grid-template-columns:12px minmax(100px,1fr) auto;align-items:center;gap:11px;padding:10px 12px;border:1px solid #e8ede9;border-radius:8px;color:#52675b;font-size:13px}.chart-legend-color{width:10px;height:10px;border-radius:50%;background:var(--chart-color)}.chart-legend strong{color:#30483b}.chart-legend small{margin-left:7px;color:#89978f;font-weight:500}.chart-loading,.chart-empty{grid-column:1/-1;text-align:center;color:#7c8d83;padding:25px}.chart-empty span{font-size:42px}.chart-empty p{margin:8px 0 0}
body.theme-dark .stat-chart-button:hover,body.theme-dark .stat-chart-button.is-selected{background:#2b3c32;color:#9bc7ad}body.theme-dark .equipment-chart-heading{border-color:#2b3d32}body.theme-dark .pie-chart::after{background:#18201c;border-color:#304038}body.theme-dark .pie-chart strong{color:#edf4f0}body.theme-dark .chart-legend li{border-color:#2b3d32;color:#b2c1b8}body.theme-dark .chart-legend strong{color:#e3ece7}
@keyframes statIconPulse{0%{transform:scale(1)}42%{transform:scale(.82) rotate(-7deg)}72%{transform:scale(1.18) rotate(5deg)}100%{transform:scale(1) rotate(0)}}
@keyframes chartPanelIn{0%{opacity:0;transform:translateY(-14px) scale(.985)}100%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes pieChartIn{0%{opacity:0;transform:rotate(-35deg) scale(.55);filter:blur(5px)}65%{transform:rotate(3deg) scale(1.035);filter:blur(0)}100%{opacity:1;transform:rotate(0) scale(1);filter:blur(0)}}
@keyframes legendItemIn{0%{opacity:0;transform:translateX(16px)}100%{opacity:1;transform:translateX(0)}}
.equipment-chart-panel.is-animating{animation:chartPanelIn .42s cubic-bezier(.16,1,.3,1) both}.equipment-chart-panel.is-animating .pie-chart{animation:pieChartIn .7s cubic-bezier(.16,1,.3,1) both}.equipment-chart-panel.is-animating .chart-legend li{opacity:0;animation:legendItemIn .4s cubic-bezier(.2,.8,.2,1) both}.equipment-chart-panel.is-animating .chart-legend li:nth-child(1){animation-delay:.12s}.equipment-chart-panel.is-animating .chart-legend li:nth-child(2){animation-delay:.19s}.equipment-chart-panel.is-animating .chart-legend li:nth-child(3){animation-delay:.26s}.equipment-chart-panel.is-animating .chart-legend li:nth-child(4){animation-delay:.33s}.equipment-chart-panel.is-animating .chart-legend li:nth-child(n+5){animation-delay:.4s}
@media(max-width:760px){.equipment-chart-content{grid-template-columns:1fr;padding:26px 20px;gap:28px}.equipment-chart-panel{margin-top:-6px}.pie-chart{width:min(220px,68vw)}}
@media(prefers-reduced-motion:reduce){.stat-chart-button,.stat-chart-button::after,.equipment-chart-panel.is-animating,.equipment-chart-panel.is-animating .pie-chart,.equipment-chart-panel.is-animating .chart-legend li{animation:none!important;transition:none!important}.equipment-chart-panel.is-animating .chart-legend li{opacity:1}}
#employees-view .toolbar .search-wrap{width:min(620px,100%);flex:1}
#employees-view table{min-width:760px}
#employees-context{margin-bottom:18px}
@media(max-width:600px){#register-dialog,#employee-dialog{width:calc(100vw - 20px)}}
.btn-activate{background:#236e58;color:white;border:0;border-radius:7px;font-weight:600;font-size:12px;padding:8px 14px;min-height:34px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s}
.btn-activate:hover{background:#185342}
#dashboard.theme-dark .btn-activate{background:#2f8569;color:white}
#dashboard.theme-dark .btn-activate:hover{background:#246a53}
.combo-action-wrap{display:flex;gap:8px;align-items:center}
.icon-btn-inline{min-height:46px;padding:0 14px;font-size:20px;line-height:1;display:inline-flex;align-items:center;justify-content:center}

/* Login presentation and application entrance */
@keyframes loginReveal{from{opacity:0;transform:translateY(24px);filter:blur(7px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}
@keyframes loginRevealLeft{from{opacity:0;transform:translateX(-24px);filter:blur(6px)}to{opacity:1;transform:translateX(0);filter:blur(0)}}
@keyframes loginPanelReveal{from{opacity:0;transform:translateX(22px)}to{opacity:1;transform:translateX(0)}}
@keyframes heroDeviceFloat{0%,100%{transform:translateY(0) rotate(-8deg)}50%{transform:translateY(-11px) rotate(-6.5deg)}}
@keyframes heroTagFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes heroOrbitBreath{0%,100%{opacity:.65;transform:scale(.96)}50%{opacity:1;transform:scale(1.04)}}
@keyframes heroIconGlow{0%,100%{box-shadow:0 0 0 0 #c8ead128}50%{box-shadow:0 0 0 9px #c8ead10d}}
@keyframes appSidebarIn{from{opacity:0;transform:translateX(-22px)}to{opacity:1;transform:translateX(0)}}
@keyframes appTopbarIn{from{opacity:0;transform:translateY(-16px)}to{opacity:1;transform:translateY(0)}}
.login-story .brand{opacity:0;animation:loginRevealLeft .6s cubic-bezier(.16,1,.3,1) .08s both}.login-story .brand-icon{animation:heroIconGlow 3.8s ease-in-out 1.2s infinite}.story-content .eyebrow,.story-content h1,.story-content>p,.equipment-art,.story-footer,.login-form-wrap,.login-panel>footer{opacity:0;animation:loginReveal .68s cubic-bezier(.16,1,.3,1) both}.story-content .eyebrow{animation-delay:.2s}.story-content h1{animation-delay:.32s}.story-content>p{animation-delay:.44s}.equipment-art{animation-delay:.56s}.story-footer{animation-delay:.78s}.login-form-wrap{animation-name:loginPanelReveal;animation-delay:.18s}.login-panel>footer{animation-delay:.48s}.equipment-art .device{animation:heroDeviceFloat 5.2s ease-in-out 1.15s infinite}.equipment-art .art-tag{animation:heroTagFloat 3.8s ease-in-out 1.35s infinite}.equipment-art .orbit{transform-origin:center;animation:heroOrbitBreath 5.8s ease-in-out 1.1s infinite}.equipment-art .device-screen i{transition:background-color .3s,transform .3s}.equipment-art:hover .device-screen i{background:#86ad99;transform:translateX(4px)}
#dashboard:not([hidden]) .sidebar{animation:appSidebarIn .5s cubic-bezier(.16,1,.3,1) both}#dashboard:not([hidden]) .topbar{animation:appTopbarIn .45s cubic-bezier(.16,1,.3,1) .06s both}
.inactive-record{opacity:.72}.inactive-record .record-name{text-decoration:line-through;text-decoration-thickness:1.5px;text-decoration-color:currentColor}.warning-button{background:#fff4e1;color:#9b6c18;border:1px solid #ead4a9}.warning-button:hover{background:#f8e8c7}.danger-icon{color:#b45145}.audit-retention-note{margin:16px 0;padding:12px 14px;border:1px solid #cfe2d5;border-radius:9px;background:#f2f8f4;color:#426451;font-size:12px;line-height:1.5}#dashboard.theme-dark .warning-button{background:#352d1d;color:#efc36d;border-color:#574725}#dashboard.theme-dark .audit-retention-note{background:#18271f;border-color:#31513f;color:#9fc3ad}
@media(prefers-reduced-motion:reduce){.login-story .brand,.login-story .brand-icon,.story-content .eyebrow,.story-content h1,.story-content>p,.equipment-art,.story-footer,.login-form-wrap,.login-panel>footer,.equipment-art .device,.equipment-art .art-tag,.equipment-art .orbit,#dashboard:not([hidden]) .sidebar,#dashboard:not([hidden]) .topbar,.page-enter,.page-enter>*{animation:none!important;opacity:1!important;transform:none!important;filter:none!important}.equipment-art .device{transform:rotate(-8deg)!important}}
.view-qr-inline{grid-template-columns:96px 1fr!important;margin:0!important}.view-qr-inline img{width:96px!important;height:96px!important}@media(min-width:601px){.item-view-dialog .view-main-info{grid-template-columns:minmax(0,1fr) 112px;gap:12px 16px}.item-view-dialog .view-main-info>.view-field{grid-column:1}.view-qr-inline{grid-column:2;grid-row:1/span 6;grid-template-columns:1fr!important;padding:10px;justify-items:center;text-align:center}.view-qr-inline img{width:88px!important;height:88px!important}.view-qr-inline>div{justify-items:center}.view-qr-inline .secondary{padding:7px 8px}}.storage-groups-panel{margin:0 0 24px;overflow:visible}.storage-groups-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;padding:0 24px 24px}.storage-group-card{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:12px;padding:14px;border:1px solid #dfe7e1;border-radius:10px;background:#fbfdfb;cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.storage-group-card:hover{transform:translateY(-2px);border-color:#b9d2c3;box-shadow:0 8px 22px #173d2c10}.storage-group-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:9px;background:#e8f2ec;color:#276d54;font-size:20px}.storage-group-card>div:nth-child(2){display:grid;gap:3px;min-width:0}.storage-group-card strong{font-size:13px}.storage-group-card small,.storage-group-card span{font-size:10px;color:#74867b;overflow-wrap:anywhere}.storage-group-actions{display:flex;gap:4px;align-items:center}.storage-group-actions .secondary{min-height:34px;padding:7px 10px;font-size:11px}.storage-tag{display:inline-flex!important;width:max-content;margin-top:5px;padding:3px 7px;border-radius:999px;background:#eaf3ed;color:#2b7055!important;font-size:9px!important}.serial-code{display:block;margin-top:4px;color:#829087;font-size:9px}.create-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:24px}.create-choice{display:grid;justify-items:start;gap:7px;padding:20px;border:1px solid #dce6df;border-radius:12px;background:#f8fbf9;color:#263d31;text-align:left}.create-choice:hover{border-color:#7daf98;background:#edf6f1;transform:translateY(-2px)}.create-choice>span{font-size:28px;color:#287157}.create-choice strong{font-size:15px}.create-choice small{color:#718078;line-height:1.5}.storage-batch-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:24px 0 10px;padding-top:18px;border-top:1px solid #e0e7e2}.storage-batch-heading p{margin:4px 0 0}.storage-item-columns,.storage-item-row{display:grid;grid-template-columns:1.2fr .8fr 1fr 36px;gap:8px;align-items:center}.storage-item-columns{padding:0 4px 5px;color:#819087;font-size:10px}.storage-item-row{margin-bottom:8px}.storage-item-row input,.storage-item-row select{min-height:40px;padding:8px 10px}.qr-card{display:grid;grid-template-columns:126px 1fr;align-items:center;gap:18px;margin:18px 0;padding:16px;border:1px solid #dce6df;border-radius:12px;background:#f8fbf9}.qr-card img{width:126px;height:126px;background:white;border-radius:8px}.qr-card>div{display:grid;justify-items:start;gap:9px}.qr-card .asset-code{font-size:15px;overflow-wrap:anywhere}.qr-card .secondary{min-height:36px;padding:8px 12px;font-size:11px}#storage-group-dialog{width:min(760px,calc(100% - 32px))}#item-create-choice{width:min(600px,calc(100% - 32px))}#dashboard.theme-dark .storage-group-card,#dashboard.theme-dark .create-choice,#dashboard.theme-dark .qr-card{background:#18231d;border-color:#34483d;color:#edf5f0}#dashboard.theme-dark .storage-group-icon,#dashboard.theme-dark .storage-tag{background:#21382c;color:#76c69d!important}@media(max-width:700px){.storage-groups-list{grid-template-columns:1fr;padding:0 16px 18px}.storage-group-card{grid-template-columns:40px 1fr}.storage-group-actions{grid-column:1/-1;justify-content:flex-end}.create-choice-grid{grid-template-columns:1fr}.storage-item-columns{display:none}.storage-item-row{grid-template-columns:1fr 1fr}.storage-item-row [data-storage-name],.storage-item-row [data-storage-serial]{grid-column:1/-1}.qr-card{grid-template-columns:92px 1fr}.qr-card img{width:92px;height:92px}}

/* Item details: keep the product image compact and give the asset label room to breathe. */
@media(min-width:850px){
 .item-view-dialog{width:min(900px,calc(100vw - 32px))}
 .item-view-dialog .view-equipment-header{grid-template-columns:250px minmax(0,1fr);gap:28px}
 .item-view-dialog .view-gallery-img:first-child,.item-view-dialog .view-no-image{height:165px}
 .item-view-dialog .view-main-info{grid-template-columns:minmax(160px,1fr) 170px;gap:12px 20px}
 .item-view-dialog .view-qr-inline{width:170px;min-height:226px;padding:13px 12px;align-self:start;border-radius:12px}
 .item-view-dialog .view-qr-inline img{width:96px!important;height:96px!important}
 .item-view-dialog .view-qr-inline>div{width:100%;gap:8px}
 .item-view-dialog .view-qr-inline .asset-code{width:100%;color:#294538;font-size:11px;line-height:1.3;white-space:nowrap}
 .item-view-dialog .view-qr-inline .secondary{width:100%;padding:8px 7px;white-space:normal;line-height:1.25}
}
@media(min-width:601px) and (max-width:849px){
 .item-view-dialog .view-equipment-header{grid-template-columns:1fr;gap:22px}
 .item-view-dialog .view-gallery{max-width:300px}
 .item-view-dialog .view-gallery-img:first-child,.item-view-dialog .view-no-image{height:165px}
 .item-view-dialog .view-main-info{grid-template-columns:minmax(0,1fr) 160px;gap:12px 18px}
 .item-view-dialog .view-qr-inline{width:160px;min-height:220px;padding:12px}
 .item-view-dialog .view-qr-inline img{width:92px!important;height:92px!important}
 .item-view-dialog .view-qr-inline>div{width:100%}
 .item-view-dialog .view-qr-inline .asset-code{color:#294538;font-size:11px;white-space:nowrap}
 .item-view-dialog .view-qr-inline .secondary{width:100%;white-space:normal}
}
body.theme-dark .item-view-dialog .view-qr-inline{background:#18231d;border-color:#34483d;color:#edf5f0}
body.theme-dark .item-view-dialog .view-qr-inline .asset-code{color:#b9d7c8}
body.theme-dark .item-view-dialog .view-qr-inline img{background:#fff}

/* Filtered report setup and print preview. */
.print-report-dialog{width:min(1040px,calc(100vw - 32px));padding:28px;overflow:auto}
.print-fieldset{margin:22px 0 4px;padding:16px;border:1px solid #dce5df;border-radius:10px}
.print-fieldset legend{padding:0 7px;font-size:13px;font-weight:700}
.print-field-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.print-field-grid label{display:flex;align-items:center;gap:8px;margin:0;padding:10px;border:1px solid #e1e8e3;border-radius:8px;background:#f8faf8;font-size:12px;cursor:pointer}
.print-field-grid input{width:16px;min-height:16px;accent-color:#216b53}
.print-preview-summary{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:20px 0 14px;padding:13px 15px;border-radius:9px;background:#edf5f0}
.print-preview-summary div{display:grid;gap:4px}.print-preview-summary span{font-size:11px;color:#6c7f74}
.print-preview-sheet{padding:28px;background:#fff;color:#1d3026;border:1px solid #dce5df;border-radius:8px;box-shadow:0 10px 35px #173d2c12;overflow:auto}
.print-preview-sheet header{padding-bottom:16px;border-bottom:2px solid #216b53;margin-bottom:20px}
.print-preview-sheet header span{font-size:10px;font-weight:700;letter-spacing:1.2px;color:#527568}
.print-preview-sheet h1{font-size:24px;margin:7px 0}.print-preview-sheet header p,.print-preview-sheet footer{margin:0;color:#687a70;font-size:11px}
.print-preview-sheet table{min-width:680px;white-space:normal}.print-preview-sheet th{background:#e9f2ed;color:#244d3c}.print-preview-sheet th,.print-preview-sheet td{padding:10px;border:1px solid #d9e2dc;font-size:11px;vertical-align:top;overflow-wrap:anywhere}.print-preview-sheet footer{margin-top:16px}
body.theme-dark .print-report-dialog{background:#15221b;color:#edf5f0;border-color:#34483d}
body.theme-dark .print-fieldset,body.theme-dark .print-field-grid label{border-color:#34483d;background:#18231d}
body.theme-dark .print-preview-summary{background:#1d3428}body.theme-dark .print-preview-summary span{color:#a7beb2}
@media(max-width:700px){.print-report-dialog{padding:20px}.print-field-grid{grid-template-columns:1fr 1fr}.print-preview-summary{align-items:flex-start;flex-direction:column}.print-preview-summary .secondary{width:100%}}
@media(max-width:460px){.print-field-grid{grid-template-columns:1fr}}

/* Management dashboard. */
.dashboard-page-heading{margin-bottom:24px}.dashboard-page-heading h1{margin-bottom:7px}#dashboard-view #client-picker-panel{margin-bottom:14px}#dashboard-view #client-context{margin-bottom:22px}#dashboard-view #stats{margin-top:20px}
#dashboard-view .client-context{display:flex;align-items:center;justify-content:space-between;gap:14px}.dashboard-context-label{min-width:0}.dashboard-refresh-button{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;min-height:30px;padding:0;border:1px solid #9fc5ad;border-radius:7px;background:#f4faf5;color:#286b51;font-size:18px;line-height:1;box-shadow:0 1px 2px #173b2914}.dashboard-refresh-button:hover{background:#dcece1;border-color:#78aa8a}.dashboard-refresh-button:disabled{opacity:.75;cursor:wait}.dashboard-refresh-button.is-refreshing span{display:block;animation:dashboardRefreshSpin .7s linear infinite}@keyframes dashboardRefreshSpin{to{transform:rotate(360deg)}}
#dashboard.theme-dark .dashboard-refresh-button{background:#213a2d;border-color:#3e684f;color:#86efac}#dashboard.theme-dark .dashboard-refresh-button:hover{background:#294936;border-color:#56906c}
@media(prefers-reduced-motion:reduce){.dashboard-refresh-button.is-refreshing span{animation:none!important}}
.management-dashboard{margin:0 0 28px;padding:24px;overflow:hidden}.dashboard-heading{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:20px}.dashboard-heading h2{font-size:22px;margin:7px 0}.dashboard-heading p{margin:0}.dashboard-scope{padding:7px 10px;border-radius:999px;background:#eaf3ed;color:#276d54;font-size:10px;font-weight:700}.dashboard-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.dashboard-metrics article{position:relative;padding:17px;border:1px solid #dfe8e2;border-radius:10px;background:#f9fbfa}.dashboard-metrics article>span{display:block;color:#72847a;font-size:11px}.dashboard-metrics article>strong{display:block;margin-top:9px;font-size:20px;overflow-wrap:anywhere}.dashboard-metrics article>i{position:absolute;right:13px;top:13px;width:28px;height:28px;display:grid;place-items:center;border-radius:7px;background:#e8f2ec;color:#287157;font-size:11px;font-style:normal}.dashboard-charts{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.dashboard-charts>div{padding:17px;border:1px solid #dfe8e2;border-radius:10px}.dashboard-charts>div>strong{font-size:12px}.dashboard-bars{display:grid;gap:9px;margin-top:14px}.dashboard-bar-row{display:grid;grid-template-columns:105px 1fr 26px;gap:10px;align-items:center;font-size:10px}.dashboard-bar-row>div{height:8px;overflow:hidden;border-radius:99px;background:#edf2ef}.dashboard-bar-row i{display:block;height:100%;border-radius:99px;background:#3c8b6e}.dashboard-bar-row strong{text-align:right}.dashboard-bar-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.theme-dark .management-dashboard,body.theme-dark .dashboard-metrics article,body.theme-dark .dashboard-charts>div{background:#15221b;border-color:#304338}body.theme-dark .dashboard-scope,body.theme-dark .dashboard-metrics article>i{background:#21382c;color:#78c79f}

/* Responsibility terms. */
.responsibility-term-dialog{width:min(880px,calc(100vw - 32px))}.term-items{display:grid;gap:9px;margin-top:16px;max-height:340px;overflow:auto}.term-list-heading{display:flex;justify-content:space-between;align-items:center;margin-top:10px;padding-bottom:7px;border-bottom:1px solid #dfe7e1;font-size:12px}.term-list-heading span{padding:3px 7px;border-radius:999px;background:#e9f2ed;color:#2d7057}.term-item{display:flex;align-items:center;gap:11px;margin:0;padding:11px 13px;border:1px solid #dfe7e1;border-radius:9px;background:#fafcfb}.term-item>input{width:16px;min-height:16px}.term-item>span{display:grid;gap:4px;min-width:0;flex:1}.term-item strong{font-size:12px}.term-item small{color:#74847b;font-size:10px;overflow-wrap:anywhere}.term-item button{min-height:34px;padding:7px 11px;font-size:11px}.term-preview-sheet{padding:38px;background:white;color:#17271f;border:1px solid #dce5df;border-radius:9px;font:13px/1.65 Arial}.term-preview-sheet header{padding-bottom:17px;margin-bottom:24px;border-bottom:2px solid #216b53}.term-preview-sheet header strong{font-size:20px}.term-preview-sheet header p{margin:6px 0 0}.term-preview-sheet table{min-width:650px;white-space:normal}.term-preview-sheet th,.term-preview-sheet td{padding:9px;border:1px solid #ced8d2;font-size:11px}.term-preview-sheet th{background:#e9f2ed}.term-date{margin-top:30px}.term-signatures{display:grid;grid-template-columns:1fr 1fr;gap:60px;margin-top:75px;text-align:center}.term-signatures span{display:block;border-top:1px solid #333;margin-bottom:8px}.term-signatures strong,.term-signatures small{display:block}.term-signatures small{color:#68766f}
.term-template-fieldset{margin:20px 0 6px;padding:18px;border:1px solid #d8e3dc;border-radius:10px}.term-template-fieldset legend{padding:0 8px;font-size:13px;font-weight:700}.term-reference-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.term-reference-row button{min-height:38px;padding:9px 13px}.term-reference-status{color:#74847b;font-size:11px;overflow-wrap:anywhere}.term-template-fieldset label{margin-top:17px}.term-template-help{margin:8px 0 0;color:#74847b;font-size:11px;line-height:1.6}.term-template-help code{padding:2px 4px;border-radius:4px;background:#eaf1ed;color:#315f49;font-size:10px}
body.theme-dark .responsibility-term-dialog{background:#15221b;color:#edf5f0;border-color:#34483d}body.theme-dark .term-item{background:#18231d;border-color:#34483d}body.theme-dark .term-template-fieldset{border-color:#34483d}body.theme-dark .term-template-help code{background:#21352a;color:#91d4ad}

/* Smart CSV import and export previews. */
.csv-export-dialog{width:min(960px,calc(100vw - 32px))}.csv-smart-preview{margin-top:18px;border:1px solid #dce5df;border-radius:10px;overflow:hidden}.csv-preview-summary{display:flex;justify-content:space-between;gap:12px;padding:12px 14px;background:#edf5f0;font-size:11px}.csv-preview-summary span{color:#657a6e}.csv-smart-preview table{min-width:620px;white-space:normal}.csv-smart-preview th,.csv-smart-preview td{padding:9px 11px;border-bottom:1px solid #e4ebe6;font-size:10px}.csv-smart-preview th{background:#f7faf8}.csv-smart-preview .table-wrap{max-height:250px}.csv-smart-preview[hidden]{display:none}.csv-export-dialog .csv-smart-preview{margin-top:20px}
body.theme-dark .csv-export-dialog{background:#15221b;color:#edf5f0;border-color:#34483d}body.theme-dark .csv-smart-preview{border-color:#34483d}body.theme-dark .csv-preview-summary,body.theme-dark .csv-smart-preview th{background:#1d3428}
@media(max-width:850px){.dashboard-metrics{grid-template-columns:1fr 1fr}.dashboard-charts{grid-template-columns:1fr}.term-preview-sheet{padding:24px}}
@media(max-width:520px){.dashboard-metrics{grid-template-columns:1fr}.dashboard-heading{flex-direction:column}.term-signatures{grid-template-columns:1fr;gap:55px}.csv-preview-summary{flex-direction:column}}

/* PWA installation, connectivity and mobile QR conference. */
.pwa-install-button{min-height:34px;padding:7px 12px;border:1px solid #87b79c;border-radius:8px;background:#eaf5ee;color:#1e6249;font-size:11px;font-weight:700}.login-panel footer .pwa-install-button{margin-left:12px}.topbar .pwa-install-button{margin-left:auto;margin-right:10px}.connection-status{position:fixed;z-index:10000;left:50%;bottom:max(18px,env(safe-area-inset-bottom));max-width:min(520px,calc(100vw - 28px));padding:11px 16px;border:1px solid transparent;border-radius:9px;box-shadow:0 10px 32px #10261d35;transform:translateX(-50%);font-size:12px;font-weight:700;text-align:center}.connection-status.is-offline{background:#fff3d7;border-color:#e8c777;color:#79550f}.connection-status.is-online,.connection-status.is-saved{background:#dff4e7;border-color:#9dccae;color:#1d6347}.qr-scan-open{display:flex;align-items:center;gap:7px;margin-left:auto;margin-right:10px;min-height:38px;padding:8px 12px}.qr-scan-open>span:first-child{font-size:20px;line-height:1}.qr-scan-dialog{width:min(620px,calc(100vw - 24px));padding:24px}.qr-camera{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:4/3;margin-top:18px;overflow:hidden;border-radius:14px;background:#09150f}.qr-camera video{width:100%;height:100%;object-fit:cover}.qr-camera-guide{position:absolute;width:min(58%,270px);aspect-ratio:1;border:3px solid #94efbd;border-radius:18px;box-shadow:0 0 0 200vmax #07150e63}.qr-camera-guide:before,.qr-camera-guide:after{content:"";position:absolute;inset:12px;border-top:2px solid #ffffff73;border-bottom:2px solid #ffffff73;border-radius:10px}.qr-scan-status{min-height:20px;margin:13px 0;color:#557365;font-size:12px;font-weight:600}.qr-scan-alternatives{display:flex;align-items:center;gap:12px;margin:16px 0;color:#74847b;font-size:11px}.qr-manual-form{display:grid;grid-template-columns:1fr auto;gap:10px}.qr-manual-form input{text-transform:uppercase}.theme-dark .pwa-install-button{background:#1d3629;border-color:#3f7457;color:#9ce0ba}.theme-dark .qr-scan-dialog{background:#15221b;color:#edf5f0;border-color:#34483d}.theme-dark .connection-status.is-offline{background:#3a301b;border-color:#755f2f;color:#f3d487}
@media(max-width:700px){.qr-scan-open{width:40px;padding:7px;justify-content:center}.qr-scan-open>span:last-child{display:none}.topbar .pwa-install-button{position:fixed;right:14px;bottom:max(16px,env(safe-area-inset-bottom));z-index:120;padding:10px 13px;box-shadow:0 8px 24px #10261d2e}.qr-scan-dialog{padding:18px}.qr-scan-alternatives{align-items:stretch;flex-direction:column}.qr-scan-alternatives span{text-align:center}.qr-manual-form{grid-template-columns:1fr}.qr-manual-form button{width:100%}}
