:root{--green:#08a77f;--green-dark:#087c61;--cyan:#0ca9b7;--ink:#111b26;--muted:#667585;--line:#dce4e9;--soft:#f4f7f9;--white:#fff;--sidebar-width:228px}
*{box-sizing:border-box}html{background:var(--soft)}body{margin:0;color:var(--ink);background:var(--soft);font-family:Inter,Arial,sans-serif;letter-spacing:0}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}.modal-open{overflow:hidden}
.cabinet-main{min-height:100vh;margin-left:var(--sidebar-width)}
.cabinet-topbar{position:sticky;top:0;z-index:35;height:78px;display:flex;align-items:center;gap:18px;padding:0 30px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.97);backdrop-filter:blur(12px)}
.cabinet-heading{min-width:0}.cabinet-heading h1{margin:2px 0 0;font-size:calc(25px * var(--ui-text-scale, 1));line-height:1.2}.cabinet-eyebrow{color:#81909d;font-size:calc(12px * var(--ui-text-scale, 1));font-weight:700;text-transform:uppercase}.cabinet-top-actions{position:relative;display:flex;align-items:center;gap:9px;margin-left:auto}.icon-button{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--line);border-radius:6px;color:#2a3744;background:#fff}.icon-button:hover{border-color:#b8c6cf}.icon-button svg{width:18px;height:18px}.mobile-menu-button{display:none}
.account-button{height:46px;display:flex;align-items:center;gap:9px;padding:4px 10px 4px 5px;border:1px solid var(--line);border-radius:7px;color:var(--ink);background:#fff;text-align:left}.account-button-avatar,.profile-avatar{display:grid;place-items:center;border-radius:50%;color:#08735a;background:#e7f8f3 center/cover no-repeat;font-weight:800}.account-button-avatar{width:36px;height:36px;font-size:calc(13px * var(--ui-text-scale, 1))}.account-identity{min-width:94px}.mobile-profile-label{display:none;font-size:calc(14px * var(--ui-text-scale, 1));font-weight:700}.account-button strong,.account-button small{display:block}.account-button strong{max-width:155px;overflow:hidden;font-size:calc(14px * var(--ui-text-scale, 1));text-overflow:ellipsis;white-space:nowrap}.account-button small{margin-top:2px;color:var(--muted);font-size:calc(12px * var(--ui-text-scale, 1))}.account-button>svg{width:15px;color:#82909b}
.account-menu{position:absolute;top:55px;right:0;width:270px;padding:7px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 18px 45px rgba(26,43,55,.16)}.account-menu[hidden]{display:none}.account-menu button{width:100%;display:flex;align-items:center;gap:11px;padding:11px;border:0;border-radius:6px;color:var(--ink);background:transparent;text-align:left}.account-menu button:hover{background:var(--soft)}.account-menu svg{width:18px;color:var(--green)}.account-menu span{min-width:0}.account-menu strong,.account-menu small{display:block}.account-menu strong{font-size:calc(14px * var(--ui-text-scale, 1))}.account-menu small{margin-top:3px;color:var(--muted);font-size:calc(12px * var(--ui-text-scale, 1))}
.cabinet-content{max-width:1320px;margin:0 auto;padding:30px 34px 55px}.cabinet-view{display:none}.cabinet-view.is-active{display:block}.cabinet-loading{display:flex;align-items:center;gap:10px;padding:18px;color:var(--muted);font-size:calc(16px * var(--ui-text-scale, 1))}.cabinet-loading[hidden]{display:none}.cabinet-loading span{width:16px;height:16px;border:2px solid #cbd6dc;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}.cabinet-alert{margin-bottom:18px;padding:13px 16px;border:1px solid #ffd0d5;border-radius:6px;color:#8e2835;background:#fff3f4;font-size:calc(16px * var(--ui-text-scale, 1))}@keyframes spin{to{transform:rotate(360deg)}}
.welcome-row,.view-heading,.panel-title{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.welcome-row{margin-bottom:22px}.welcome-row h2,.view-heading h2{margin:0;font-size:calc(30px * var(--ui-text-scale, 1));line-height:1.25}.welcome-row p,.view-heading p,.panel-title p{margin:7px 0 0;color:var(--muted);font-size:calc(14px * var(--ui-text-scale, 1));line-height:1.55}.today-label{padding-top:7px;color:#71808e;font-size:calc(13px * var(--ui-text-scale, 1))}.view-heading{margin-bottom:22px}
.start-inspection-panel{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;margin-bottom:22px;padding:22px 24px;border:1px solid #bee9dd;border-radius:8px;background:linear-gradient(100deg,#eefbf7 0%,#fff 68%);box-shadow:0 8px 24px rgba(26,75,62,.05)}.start-inspection-icon{width:50px;height:50px;display:grid;place-items:center;border-radius:7px;color:#fff;background:var(--green)}.start-inspection-icon svg{width:24px}.start-inspection-panel h3{margin:0;font-size:calc(23px * var(--ui-text-scale, 1))}.start-inspection-panel p{margin:5px 0 0;color:var(--muted);font-size:calc(14px * var(--ui-text-scale, 1));line-height:1.45}
.primary-command,.secondary-command{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 17px;border-radius:6px;font-size:calc(14px * var(--ui-text-scale, 1));font-weight:750}.primary-command{border:0;color:#fff;background:var(--green)}.primary-command:hover{background:var(--green-dark)}.secondary-command{border:1px solid var(--line);color:var(--ink);background:#fff}.primary-command svg,.secondary-command svg{width:16px}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:22px}.metric{min-height:104px;display:flex;align-items:center;gap:14px;padding:18px;border:1px solid var(--line);border-radius:7px;color:var(--ink);background:#fff;text-align:left}.metric>svg:first-child{width:36px;height:36px;padding:8px;border-radius:7px;color:#0875d1;background:#edf6ff}.metric div{min-width:0}.metric strong,.metric span{display:block}.metric strong{font-size:calc(29px * var(--ui-text-scale, 1));line-height:1}.metric span{margin-top:7px;color:var(--muted);font-size:calc(12px * var(--ui-text-scale, 1))}.metric-action{width:100%}.metric-action>svg:last-child{width:16px;margin-left:auto;color:#8c99a4}
.workspace-panel{border:1px solid var(--line);border-radius:8px;background:#fff}.recent-panel{padding:20px}.panel-title{align-items:center;margin-bottom:12px}.panel-title h3,.account-section h3{margin:0;font-size:calc(17px * var(--ui-text-scale, 1))}.text-command{padding:8px;border:0;color:var(--green-dark);background:transparent;font-size:calc(13px * var(--ui-text-scale, 1));font-weight:700}
.inspection-row{width:100%;display:grid;grid-template-columns:40px minmax(0,1fr) auto 20px;align-items:center;gap:12px;padding:13px 4px;border:0;border-top:1px solid #edf1f3;color:var(--ink);background:#fff;text-align:left}.inspection-row:first-child{border-top:0}.inspection-marker{width:36px;height:36px;display:grid;place-items:center;border-radius:6px;color:#0875d1;background:#eef6fd}.inspection-marker svg{width:18px}.inspection-row strong,.inspection-row small{display:block}.inspection-row strong{font-size:calc(14px * var(--ui-text-scale, 1))}.inspection-row small{margin-top:5px;color:var(--muted);font-size:calc(12px * var(--ui-text-scale, 1));overflow-wrap:anywhere}.inspection-row>svg{width:15px;color:#96a2ab}
.status-badge{display:inline-flex;align-items:center;min-height:25px;padding:0 9px;border:1px solid #c9eee4;border-radius:999px;color:#08765d;background:#effbf7;font-size:calc(12px * var(--ui-text-scale, 1));font-weight:700;white-space:nowrap}
.toolbar{display:flex;align-items:center;gap:10px;margin-bottom:14px}.search-control{height:42px;max-width:560px;display:flex;flex:1;align-items:center;gap:9px;padding:0 12px;border:1px solid var(--line);border-radius:6px;background:#fff}.search-control svg{width:17px;color:#82919e}.search-control input{width:100%;border:0;outline:0;background:transparent;font-size:calc(14px * var(--ui-text-scale, 1))}.toolbar select{height:42px;padding:0 32px 0 11px;border:1px solid var(--line);border-radius:6px;color:#42515e;background:#fff;font-size:calc(13px * var(--ui-text-scale, 1))}.table-panel{overflow:hidden}.table-head,.table-row{display:grid;grid-template-columns:1.1fr 1.35fr 1fr .8fr 40px;align-items:center;gap:12px;padding:0 16px}.table-head{min-height:38px;color:#778693;background:#f7f9fa;font-size:calc(12px * var(--ui-text-scale, 1));font-weight:700;text-transform:uppercase}.table-row{min-height:68px;border-top:1px solid #edf1f3;font-size:calc(13px * var(--ui-text-scale, 1))}.table-row strong,.table-row small{display:block}.table-row strong{font-size:calc(13px * var(--ui-text-scale, 1))}.table-row small{margin-top:4px;color:var(--muted);font-size:calc(12px * var(--ui-text-scale, 1))}.table-action{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--line);border-radius:5px;color:#4f6070;background:#fff}.table-action svg{width:15px}.is-compact .table-row{min-height:54px}
.inspection-mode-switch{display:inline-flex;padding:3px;border:1px solid var(--line);border-radius:7px;background:#fff}.inspection-mode-switch button{min-height:34px;display:inline-flex;align-items:center;gap:7px;padding:0 12px;border:0;border-radius:5px;color:#667585;background:transparent;font-size:calc(12px * var(--ui-text-scale, 1));font-weight:700}.inspection-mode-switch button svg{width:15px}.inspection-mode-switch button.is-active{color:#08775d;background:#eaf8f4}.inspection-calendar{padding:20px}
.entity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.entity-card{display:grid;grid-template-columns:40px 1fr 18px;align-items:center;gap:12px;padding:16px;border:1px solid var(--line);border-radius:7px;background:#fff}.entity-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;color:#0875d1;background:#eef6fd}.entity-icon svg{width:18px}.entity-card h3{margin:0;font-size:calc(14px * var(--ui-text-scale, 1))}.entity-card p{margin:6px 0 0;color:var(--muted);font-size:calc(12px * var(--ui-text-scale, 1))}.entity-card>svg{width:15px;color:#96a2ab}
.account-layout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(360px,1.2fr);gap:14px}.profile-card{display:flex;align-items:center;gap:16px;padding:22px;grid-row:span 2}.profile-avatar{width:76px;height:76px;flex:0 0 auto;font-size:calc(22px * var(--ui-text-scale, 1))}.profile-card h3{margin:0;font-size:calc(19px * var(--ui-text-scale, 1))}.profile-card p{margin:6px 0;color:var(--muted);font-size:calc(13px * var(--ui-text-scale, 1))}.verified-line{display:flex;align-items:center;gap:6px;margin-top:10px;color:#08775d;font-size:calc(12px * var(--ui-text-scale, 1));font-weight:700}.verified-line svg{width:15px}.avatar-upload{display:inline-flex;margin-top:14px;padding:8px 10px;border:1px solid var(--line);border-radius:5px;font-size:calc(12px * var(--ui-text-scale, 1));font-weight:700;cursor:pointer}.avatar-upload input{display:none}.account-section{padding:20px}.account-section h3{margin-bottom:15px}.detail-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}.detail-list div{padding:11px;border-radius:6px;background:#f6f8f9}.detail-list span,.detail-list strong{display:block}.detail-list span{color:var(--muted);font-size:calc(12px * var(--ui-text-scale, 1))}.detail-list strong{margin-top:5px;font-size:calc(13px * var(--ui-text-scale, 1));overflow-wrap:anywhere}.account-list-row{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:11px}.account-list-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:6px;color:#0875d1;background:#eef6fd}.account-list-icon svg{width:18px}.account-list-row strong,.account-list-row small{display:block}.account-list-row strong{font-size:calc(13px * var(--ui-text-scale, 1))}.account-list-row small{margin-top:4px;color:var(--muted);font-size:calc(12px * var(--ui-text-scale, 1))}.row-state{color:#7d8994;font-size:calc(12px * var(--ui-text-scale, 1))}.section-note{margin:14px 0 0;padding-top:12px;border-top:1px solid #edf1f3;color:var(--muted);font-size:calc(12px * var(--ui-text-scale, 1));line-height:1.55}.setting-row{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #edf1f3}.setting-row:first-of-type{border-top:0}.setting-row strong,.setting-row small{display:block}.setting-row strong{font-size:calc(13px * var(--ui-text-scale, 1))}.setting-row small{margin-top:4px;color:var(--muted);font-size:calc(12px * var(--ui-text-scale, 1))}.setting-row input{width:38px;height:20px;accent-color:var(--green)}.security-note{display:flex;gap:11px;margin-bottom:14px}.security-note>svg{width:22px;color:var(--green)}.security-note strong{font-size:calc(13px * var(--ui-text-scale, 1))}.security-note p{margin:5px 0 0;color:var(--muted);font-size:calc(12px * var(--ui-text-scale, 1));line-height:1.5}
.empty-state{min-height:130px;display:flex;align-items:center;justify-content:center;gap:9px;color:var(--muted);font-size:calc(13px * var(--ui-text-scale, 1));text-align:center}.empty-state svg{width:22px;color:#92a0aa}
.modal-backdrop{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px;background:rgba(13,27,38,.55);backdrop-filter:blur(4px)}.modal-backdrop[hidden]{display:none}.selection-modal{position:relative;width:min(560px,100%);padding:25px;border-radius:8px;background:#fff;box-shadow:0 24px 70px rgba(9,24,34,.28)}.modal-close{position:absolute;top:13px;right:13px;width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--line);border-radius:6px;background:#fff}.modal-close svg{width:17px}.modal-heading{display:flex;gap:14px;padding-right:30px}.modal-icon{width:44px;height:44px;display:grid;flex:0 0 auto;place-items:center;border-radius:7px;color:#fff;background:var(--green)}.modal-icon svg{width:21px}.modal-heading h2{margin:1px 0 0;font-size:calc(23px * var(--ui-text-scale, 1))}.modal-heading p{margin:7px 0 0;color:var(--muted);font-size:calc(13px * var(--ui-text-scale, 1));line-height:1.5}.program-list{display:grid;gap:10px;margin-top:20px}.program-option{min-height:78px;display:grid;grid-template-columns:45px 1fr 18px;align-items:center;gap:13px;padding:13px;border:1px solid var(--line);border-radius:7px;color:var(--ink);background:#fff;text-align:left}.program-option:hover{border-color:#8edac7;background:#f3fcf9}.program-monogram{width:42px;height:42px;display:grid;place-items:center;border-radius:7px;color:#fff;background:#00a77f;font-weight:800}.program-monogram.is-blue{background:#1479cc}.program-option strong,.program-option small{display:block}.program-option strong{font-size:calc(16px * var(--ui-text-scale, 1))}.program-option small{margin-top:5px;color:var(--muted);font-size:calc(12px * var(--ui-text-scale, 1));line-height:1.4}.program-option>svg{width:16px;color:#8f9ca6}
.calendar-header{display:flex;align-items:center;justify-content:center;gap:14px;margin-bottom:17px}.calendar-header h3{min-width:220px;margin:0;text-align:center;font-size:calc(20px * var(--ui-text-scale, 1))}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.calendar-day-name{padding:7px 0;color:#83919d;font-size:calc(12px * var(--ui-text-scale, 1));text-align:center}.calendar-day{position:relative;min-height:76px;padding:9px;border:1px solid #edf1f3;border-radius:6px;color:#344351;background:#fafbfc;font-size:calc(12px * var(--ui-text-scale, 1));text-align:left}.calendar-day:not(:disabled):hover{border-color:#9edecf}.calendar-day.is-outside{color:#c1c8ce;background:#fff}.calendar-day.has-events{border-color:#9edecf;background:#f0faf7}.calendar-day.is-selected{outline:2px solid var(--green);outline-offset:-2px}.calendar-day strong{display:block}.calendar-day span{display:block;margin-top:18px;color:#08765d;font-size:calc(12px * var(--ui-text-scale, 1));font-weight:700}
.monthly-inspection-chart{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.monthly-inspection-chart[hidden],.calendar-events[hidden]{display:none}.month-chart-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.month-chart-heading h4{margin:0;font-size:calc(17px * var(--ui-text-scale, 1))}.month-chart-heading p{margin:5px 0 0;color:var(--muted);font-size:calc(12px * var(--ui-text-scale, 1))}.month-chart-summary{display:flex;align-items:stretch;margin:0}.month-chart-summary div{min-width:88px;padding:1px 16px;border-left:1px solid #e3e9ec}.month-chart-summary dt{color:#71808b;font-size:calc(12px * var(--ui-text-scale, 1));font-weight:750;text-transform:uppercase}.month-chart-summary dd{margin:6px 0 0;color:var(--ink);font-size:calc(16px * var(--ui-text-scale, 1));font-weight:800;white-space:nowrap}.month-chart-scroll{margin-top:16px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-color:#b9c9cf #f1f4f5;scrollbar-width:thin}.month-chart-scroll:focus-visible{outline:2px solid #34af98;outline-offset:3px}.month-chart-plot{min-width:720px;display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px}.month-chart-scale{height:176px;display:flex;flex-direction:column;justify-content:space-between;padding:21px 0 22px;color:#83919d;font-size:calc(12px * var(--ui-text-scale, 1));text-align:right}.month-chart-bars{height:176px;display:grid;grid-template-columns:repeat(var(--month-days),minmax(12px,1fr));align-items:stretch;border-bottom:1px solid #cdd8dd;background-image:linear-gradient(to bottom,transparent calc(50% - .5px),#edf1f3 calc(50% - .5px),#edf1f3 calc(50% + .5px),transparent calc(50% + .5px))}.month-chart-day{min-width:0;display:grid;grid-template-rows:21px 132px 22px;align-items:end;justify-items:center;padding:0 1px;border:0;color:#71808b;background:transparent;font:inherit;cursor:pointer}.month-chart-value{align-self:center;min-height:11px;color:#08725b;font-size:calc(12px * var(--ui-text-scale, 1));font-weight:800}.month-chart-track{width:100%;height:132px;display:flex;align-items:flex-end;justify-content:center}.month-chart-bar{width:min(16px,64%);height:var(--bar-height);min-height:2px;border-radius:3px 3px 0 0;background:#dbe3e6;transition:height 260ms cubic-bezier(.23,1,.32,1),background-color 160ms ease,transform 140ms ease}.month-chart-day.has-value .month-chart-bar{min-height:10px;background:#10a783;box-shadow:0 -2px 8px rgba(16,167,131,.16)}.month-chart-label{align-self:center;font-size:calc(12px * var(--ui-text-scale, 1))}.month-chart-day.is-today .month-chart-label{width:19px;height:19px;display:grid;place-items:center;border-radius:50%;color:#fff;background:#087c66;font-weight:800}.month-chart-day:focus-visible{outline:2px solid #138d77;outline-offset:-1px}.month-chart-note{margin:9px 0 0 36px;color:#7a8994;font-size:calc(12px * var(--ui-text-scale, 1))}.calendar-events{display:grid;gap:7px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.calendar-events-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.calendar-events h4{margin:0;font-size:calc(14px * var(--ui-text-scale, 1))}.calendar-events a{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(0,1.3fr) 18px;align-items:center;gap:12px;padding:11px 0;border-top:1px solid #edf1f3;color:var(--ink);font-size:calc(12px * var(--ui-text-scale, 1));text-decoration:none}.calendar-events a:first-of-type{border-top:0}.calendar-events a span,.calendar-events p{color:var(--muted)}.calendar-events a svg{width:15px;color:#93a0aa}
.mobile-bottom-nav{display:none}
@media(max-width:900px){.cabinet-main{margin-left:0}.cabinet-topbar{height:66px;padding:0 14px}.mobile-menu-button{display:none}.cabinet-heading{display:none}.cabinet-top-actions{width:100%;justify-content:flex-start;margin-left:0}.cabinet-top-actions>#refreshCabinet{display:none}.account-button{border:0;padding:0}.account-identity{display:none}.mobile-profile-label{display:block}.account-button>svg{margin-left:2px}.account-menu{top:52px;right:auto;left:0}.cabinet-content{padding:22px 16px 88px}.metric-grid{grid-template-columns:1fr 1fr}.account-layout{grid-template-columns:1fr}.profile-card{grid-row:auto}.expert-sidebar-user{text-decoration:none}.expert-sidebar-user>svg{width:16px;margin-left:auto;color:#7f9aab}}
@media(max-width:900px){.mobile-bottom-nav{position:fixed;inset:auto 0 0 0;z-index:60;height:72px;display:grid;grid-template-columns:repeat(5,1fr);padding:5px 6px max(5px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:rgba(255,255,255,.98);box-shadow:0 -8px 28px rgba(20,42,56,.08);backdrop-filter:blur(12px)}.mobile-bottom-nav button{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;border:0;color:#758491;background:transparent;font-size:calc(12px * var(--ui-text-scale, 1));font-weight:650}.mobile-bottom-nav button svg{width:19px;height:19px}.mobile-bottom-nav button.is-active{color:#0879d0}.mobile-bottom-nav .mobile-create svg{width:36px;height:36px;margin-top:-24px;padding:8px;border:4px solid var(--soft);border-radius:50%;color:#fff;background:var(--green);box-sizing:content-box}.mobile-bottom-nav .mobile-create span{margin-top:-3px;color:#08775d;font-size:calc(12px * var(--ui-text-scale, 1));line-height:1.12;text-align:center}}
@media(max-width:620px){.welcome-row{display:block}.welcome-row h2{font-size:calc(28px * var(--ui-text-scale, 1))}.welcome-row p{font-size:calc(14px * var(--ui-text-scale, 1))}.today-label{display:block;margin-top:10px}.start-inspection-panel{grid-template-columns:46px 1fr;padding:18px}.start-inspection-panel .primary-command{grid-column:1/-1;width:100%;margin-top:2px}.metric-grid{gap:9px}.metric{min-height:92px;padding:14px 12px}.metric>svg:first-child{width:34px;height:34px}.metric strong{font-size:calc(25px * var(--ui-text-scale, 1))}.metric span{font-size:calc(12px * var(--ui-text-scale, 1))}.recent-panel{padding:15px}.panel-title{align-items:flex-start}.panel-title p{display:none}.inspections-heading{align-items:stretch;flex-direction:column}.inspection-mode-switch{align-self:flex-start}.inspection-row{grid-template-columns:36px minmax(0,1fr) 16px;padding:13px 0}.inspection-row .status-badge{grid-column:2;margin-top:-5px;justify-self:start}.inspection-row>svg{grid-column:3;grid-row:1/3}.toolbar{align-items:stretch;flex-direction:column}.search-control{max-width:none}.table-panel{border:0;background:transparent}.table-head{display:none}.table-row{grid-template-columns:1fr auto;gap:7px;margin-bottom:9px;padding:14px;border:1px solid var(--line);border-radius:7px;background:#fff}.table-row>div:nth-child(2){grid-column:1}.table-row>div:nth-child(3){display:none}.table-row>.status-badge{grid-column:1;justify-self:start}.table-row>.table-action{grid-column:2;grid-row:1/4}.entity-grid{grid-template-columns:1fr}.account-layout{gap:10px}.profile-card{align-items:flex-start}.profile-avatar{width:64px;height:64px}.detail-list{grid-template-columns:1fr}.account-list-row{grid-template-columns:38px 1fr}.row-state{grid-column:2}.selection-modal{align-self:end;width:calc(100% + 40px);margin:-20px;padding:22px 18px max(22px,env(safe-area-inset-bottom));border-radius:8px 8px 0 0}.modal-heading h2{font-size:calc(22px * var(--ui-text-scale, 1))}.program-option{min-height:84px}.inspection-calendar{padding:12px}.calendar-header h3{min-width:0;flex:1;font-size:calc(18px * var(--ui-text-scale, 1))}.calendar-grid{gap:3px}.calendar-day{min-height:56px;padding:5px}.calendar-day span{margin-top:10px;font-size:calc(12px * var(--ui-text-scale, 1));line-height:1.2}.month-chart-heading{display:block}.month-chart-summary{margin-top:13px}.month-chart-summary div{min-width:0;flex:1;padding:0 10px}.month-chart-summary div:first-child{padding-left:0;border-left:0}.month-chart-summary dd{font-size:calc(13px * var(--ui-text-scale, 1))}.month-chart-plot{min-width:690px}.month-chart-note{margin-left:0}.calendar-events-heading{align-items:flex-start}.calendar-events a{grid-template-columns:1fr 16px}.calendar-events a span{grid-column:1}.calendar-events a svg{grid-column:2;grid-row:1/3}}
@media(max-width:380px){.metric-grid{grid-template-columns:1fr}.account-menu{left:-3px;width:260px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.overview-resources{display:grid;grid-template-columns:minmax(320px,.82fr) minmax(520px,1.38fr);gap:14px}.template-library,.reference-library{min-width:0;padding:20px}.panel-kicker{display:block;margin-bottom:5px;color:#087c61;font-size:calc(12px * var(--ui-text-scale, 1));font-weight:800;text-transform:uppercase}.panel-title>svg{width:22px;height:22px;flex:0 0 auto;color:#0875d1}.template-list{display:grid;gap:2px}.template-row{min-height:92px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 0;border-top:1px solid #edf1f3}.template-row:first-child{border-top:0}.template-mark{width:40px;height:40px;display:grid;place-items:center;border-radius:7px;color:#0b735c;background:#eaf8f4}.template-mark svg{width:19px}.template-copy{min-width:0}.template-copy h4{margin:0;font-size:calc(14px * var(--ui-text-scale, 1))}.template-copy p{margin:5px 0;color:var(--muted);font-size:calc(12px * var(--ui-text-scale, 1));line-height:1.45}.template-copy span{display:block;color:#0875a9;font-size:calc(12px * var(--ui-text-scale, 1));font-weight:700;line-height:1.4}.template-actions{display:flex;gap:6px}.template-actions .icon-button{width:35px;height:35px}.template-actions .icon-button svg{width:16px}.template-actions button:disabled{cursor:wait;opacity:.5}
.reference-intro{display:grid;grid-template-columns:minmax(250px,.78fr) minmax(340px,1.22fr);align-items:start;gap:20px;padding:16px 0 18px;border-top:1px solid #edf1f3}.reference-vehicle-frame{min-height:184px;display:grid;place-items:center;overflow:hidden;border-radius:7px;background:#f7f9fa}.reference-vehicle-frame img{width:100%;height:184px;display:block;object-fit:contain}.reference-controls{min-width:0}.reference-search{max-width:none}.reference-zone-groups{display:grid;gap:10px;margin-top:12px}.reference-zone-group{display:grid;grid-template-columns:105px minmax(0,1fr);align-items:start;gap:10px}.reference-zone-group>strong{padding-top:8px;color:#667781;font-size:calc(12px * var(--ui-text-scale, 1));line-height:1.3;text-transform:uppercase}.reference-zone-group>div{display:flex;flex-wrap:wrap;gap:5px}.reference-zone{min-height:32px;padding:0 9px;border:1px solid var(--line);border-radius:5px;color:#465765;background:#fff;font-size:calc(12px * var(--ui-text-scale, 1));font-weight:700}.reference-zone:hover,.reference-zone.is-active{border-color:#86d5c2;color:#08745b;background:#edf9f6}.reference-zone:focus-visible,.reference-section:focus-visible{outline:2px solid #3fb69e;outline-offset:2px}.reference-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.reference-zone-summary{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;padding:11px 13px;border-left:3px solid #0aa88a;background:#f4faf8}.reference-zone-summary span{grid-column:1/-1;color:#71818a;font-size:calc(12px * var(--ui-text-scale, 1));font-weight:800;text-transform:uppercase}.reference-zone-summary strong{font-size:calc(13px * var(--ui-text-scale, 1))}.reference-zone-summary small{align-self:end;color:var(--muted);font-size:calc(12px * var(--ui-text-scale, 1))}.reference-section{min-height:58px;display:grid;grid-template-columns:minmax(0,1fr) 16px;align-items:center;gap:8px;padding:10px 12px;border:1px solid #e1e8ec;border-radius:6px;color:var(--ink);background:#fff;text-align:left;transition:border-color 160ms ease,background-color 160ms ease,transform 140ms ease}.reference-section:hover{border-color:#97daca;background:#f4fbf9}.reference-section:active{transform:scale(.98)}.reference-section strong,.reference-section small{display:block}.reference-section strong{font-size:calc(12px * var(--ui-text-scale, 1));line-height:1.35}.reference-section small{margin-top:4px;color:var(--muted);font-size:calc(12px * var(--ui-text-scale, 1))}.reference-section svg{width:14px;color:#8a98a3}
.reference-viewer{position:fixed;inset:0;z-index:120;padding:18px;background:rgba(11,25,35,.72);backdrop-filter:blur(6px)}.reference-viewer[hidden]{display:none}.reference-viewer-shell{width:min(1420px,100%);height:100%;display:grid;grid-template-rows:auto minmax(0,1fr);margin:0 auto;overflow:hidden;border-radius:8px;background:#fff;box-shadow:0 25px 80px rgba(0,0,0,.3)}.reference-viewer-header{min-height:68px;display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;gap:13px;padding:10px 16px;border-bottom:1px solid var(--line)}.reference-viewer-header h2{margin:0;font-size:calc(19px * var(--ui-text-scale, 1))}.reference-viewer-header .panel-kicker{margin-bottom:3px}.reference-viewer-body{min-height:0;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(330px,.55fr)}.reference-a4-stage{min-width:0;min-height:0;display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:20px;background:#e9edf0}.reference-a4-stage img{display:block;width:auto;max-width:100%;height:auto;max-height:none;background:#fff;box-shadow:0 4px 18px rgba(20,38,51,.16)}.reference-index{min-height:0;display:flex;flex-direction:column;padding:16px;border-left:1px solid var(--line);overflow:hidden}.reference-index>.search-control{flex:0 0 42px}.reference-count{margin:11px 0;color:var(--muted);font-size:calc(12px * var(--ui-text-scale, 1))}.reference-items{min-height:130px;display:grid;align-content:start;overflow:auto;border-top:1px solid #edf1f3}.reference-item{min-height:43px;display:grid;grid-template-columns:26px minmax(0,1fr) 14px;align-items:center;gap:8px;padding:7px 3px;border:0;border-bottom:1px solid #edf1f3;color:var(--ink);background:#fff;text-align:left}.reference-item:hover,.reference-item.is-active{background:#eff9f6}.reference-item>span{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;color:#fff;background:#0a605c;font-size:calc(12px * var(--ui-text-scale, 1));font-weight:800}.reference-item strong{font-size:calc(12px * var(--ui-text-scale, 1));line-height:1.4}.reference-item svg{width:13px;color:#8b98a2}.reference-detail{flex:0 0 auto;max-height:44%;margin-top:12px;padding:14px;overflow:auto;border:1px solid #cfe7e0;border-radius:7px;background:#f4fbf9}.reference-detail header{display:flex;align-items:center;gap:9px}.reference-detail header span{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;color:#fff;background:#0a605c;font-size:calc(12px * var(--ui-text-scale, 1));font-weight:800}.reference-detail h3{margin:0;font-size:calc(14px * var(--ui-text-scale, 1))}.reference-detail section{margin-top:12px}.reference-detail h4{margin:0 0 5px;color:#4d5c68;font-size:calc(12px * var(--ui-text-scale, 1))}.reference-detail ul{margin:0;padding-left:17px;color:#26333d;font-size:calc(12px * var(--ui-text-scale, 1));line-height:1.55}
@media(max-width:1050px){.overview-resources{grid-template-columns:1fr}.reference-viewer-body{grid-template-columns:minmax(0,1fr) 340px}}
@media(max-width:900px){.overview-resources{gap:10px}.template-library,.reference-library{padding:16px}.reference-intro{grid-template-columns:1fr}.reference-vehicle-frame{min-height:190px}.reference-vehicle-frame img{height:190px}.reference-viewer{padding:0}.reference-viewer-shell{border-radius:0}.reference-viewer-body{grid-template-columns:1fr;grid-template-rows:minmax(42vh,1fr) minmax(0,.9fr)}.reference-index{border-top:1px solid var(--line);border-left:0}.reference-a4-stage{padding:12px}.reference-a4-stage img{width:min(100%,720px)}}
@media(max-width:620px){.template-library,.reference-library{padding:14px}.panel-title>svg{display:none}.template-row{grid-template-columns:36px minmax(0,1fr) auto;gap:9px}.template-mark{width:34px;height:34px}.template-copy p{display:none}.template-actions .icon-button{width:34px;height:34px}.reference-vehicle-frame{min-height:150px}.reference-vehicle-frame img{height:150px}.reference-zone-group{grid-template-columns:1fr;gap:4px}.reference-zone-group>strong{padding-top:0}.reference-zone-group>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.reference-zone{min-width:0;height:auto;min-height:38px;padding:5px 7px;line-height:1.25}.reference-sections{grid-template-columns:1fr}.reference-zone-summary{grid-template-columns:1fr}.reference-zone-summary small{align-self:auto}.reference-viewer-header{min-height:62px;padding:8px 10px}.reference-viewer-header h2{font-size:calc(17px * var(--ui-text-scale, 1))}.reference-viewer-body{grid-template-rows:minmax(34vh,44vh) minmax(0,1fr)}.reference-a4-stage{padding:8px}.reference-index{padding:12px}.reference-detail{max-height:50%}}

.button-primary,.button-secondary{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;border-radius:6px;font-weight:750}.button-primary{border:1px solid #07967f;color:#fff;background:#07967f}.button-secondary{border:1px solid #cbd6dc;color:#27404d;background:#fff}.button-primary svg,.button-secondary svg{width:17px;height:17px}.journal-heading{align-items:center}.journal-periods{display:grid;gap:12px;margin-bottom:16px}.journal-periods>div{display:grid;grid-template-columns:55px minmax(0,1fr);align-items:center;gap:10px}.journal-periods>div>span{color:var(--muted);font-size:calc(13px * var(--ui-text-scale, 1));font-weight:750}.journal-tabs{display:flex;gap:7px;overflow-x:auto;padding:1px}.journal-tabs button{flex:0 0 auto;min-height:36px;padding:0 12px;border:1px solid #d1dbe0;border-radius:5px;color:#465965;background:#fff;font-size:calc(13px * var(--ui-text-scale, 1));font-weight:750}.journal-tabs button.is-active{border-color:#07967f;color:#066958;background:#eaf8f4}.journal-tabs small{margin-left:5px;color:#84939d}.journal-empty-period{font-size:calc(13px * var(--ui-text-scale, 1));color:var(--muted)}.journal-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}.journal-summary article{min-height:76px;padding:14px;border:1px solid var(--line);border-radius:7px;background:#fff}.journal-summary span{display:block;color:var(--muted);font-size:calc(12px * var(--ui-text-scale, 1))}.journal-summary strong{display:block;margin-top:5px;font-size:calc(24px * var(--ui-text-scale, 1))}.journal-panel{padding:0;overflow:hidden}.journal-table-wrap{overflow-x:auto}.journal-table{min-width:1120px}.journal-table-head,.journal-table-row{display:grid;grid-template-columns:90px 120px 180px 170px 170px minmax(210px,1fr) 100px 46px;align-items:center}.journal-table-head{min-height:46px;color:#64737e;background:#f3f6f7;font-size:calc(12px * var(--ui-text-scale, 1));font-weight:800;text-transform:uppercase}.journal-table-head>*{padding:10px}.journal-table-row{min-height:58px;border-top:1px solid #e4e9ec;font-size:calc(12px * var(--ui-text-scale, 1))}.journal-table-row>*{min-width:0;padding:9px 10px}.journal-table-row span{overflow-wrap:anywhere}.journal-table-row span small{display:block;margin-top:3px;color:var(--muted)}.journal-table-row>.icon-button{padding:0}.journal-editor{width:min(760px,calc(100vw - 28px))}.journal-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.journal-form-grid label{display:grid;gap:6px}.journal-form-grid span,.journal-services legend{color:#4d606d;font-size:calc(12px * var(--ui-text-scale, 1));font-weight:750}.journal-form-grid input{width:100%;height:42px;padding:0 11px;border:1px solid #cbd6dc;border-radius:6px;font:inherit}.journal-services{margin:18px 0 0;padding:0;border:0}.journal-services legend{margin-bottom:9px}.journal-services{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.journal-services legend{grid-column:1/-1}.journal-services label{min-height:42px;display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #d7e0e4;border-radius:6px}.journal-services input{width:17px;height:17px;accent-color:#07967f}.journal-form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}
@media(max-width:700px){.journal-heading{align-items:flex-start}.journal-heading .button-secondary span{display:none}.journal-summary{grid-template-columns:1fr 1fr}.journal-summary article:last-child{grid-column:1/-1}.journal-form-grid{grid-template-columns:1fr}.journal-services{grid-template-columns:1fr 1fr}.journal-periods>div{grid-template-columns:1fr;gap:5px}}

.reference-a4-stage{align-items:center;justify-content:flex-start;flex-direction:column;gap:11px}.reference-image-canvas{position:relative;flex:0 0 auto;display:inline-block;max-width:100%;overflow:hidden;border-radius:6px;background:#fff;line-height:0;box-shadow:0 4px 18px rgba(20,38,51,.16)}.reference-a4-stage .reference-image-canvas>img{display:block;width:auto;max-width:100%;height:auto;max-height:calc(100vh - 190px);object-fit:contain;background:#fff;box-shadow:none}.reference-hotspot-layer{position:absolute;inset:0;pointer-events:none}.reference-hotspot{position:absolute;left:var(--hotspot-x);top:var(--hotspot-y);width:25px;height:25px;display:grid;place-items:center;padding:0;border:2px solid #fff;border-radius:50%;color:#fff;background:#087c69;box-shadow:0 2px 8px rgba(4,35,31,.35);font-size:calc(12px * var(--ui-text-scale, 1));font-weight:800;line-height:1;transform:translate(-50%,-50%);pointer-events:auto;transition:transform .18s ease,background .18s ease,box-shadow .18s ease;isolation:isolate}.reference-hotspot:hover,.reference-hotspot:focus-visible{z-index:3;background:#086bb6;transform:translate(-50%,-50%) scale(1.14)}.reference-hotspot.is-active{z-index:4;background:#0875d1;box-shadow:0 0 0 5px rgba(8,117,209,.2),0 3px 12px rgba(4,35,61,.38);transform:translate(-50%,-50%) scale(1.1)}.reference-hotspot.is-active::before{content:"";position:absolute;z-index:-1;width:calc(var(--hotspot-radius) * 2);height:calc(var(--hotspot-radius) * 2);min-width:58px;min-height:58px;border:2px solid rgba(8,117,209,.72);border-radius:50%;background:rgba(30,167,203,.18);box-shadow:0 0 0 7px rgba(30,167,203,.08);pointer-events:none}.reference-view-tabs{width:min(100%,980px);display:flex;gap:6px;overflow-x:auto;padding:1px 1px 3px;scrollbar-width:thin}.reference-view-tab{flex:0 0 auto;min-height:32px;padding:0 10px;border:1px solid #cad5dc;border-radius:5px;color:#4c5c68;background:#fff;font-size:calc(12px * var(--ui-text-scale, 1));font-weight:750}.reference-view-tab:hover,.reference-view-tab.is-active{border-color:#76cbb9;color:#076d57;background:#eaf8f4}.reference-view-note{width:min(100%,980px);margin:0;color:#5f6e79;font-size:calc(12px * var(--ui-text-scale, 1));line-height:1.45;text-align:left}.reference-item.is-active>span{background:#0875d1}
@media(max-width:900px){.reference-a4-stage .reference-image-canvas>img{width:min(100%,720px);max-height:46vh}}
@media(max-width:620px){.reference-viewer-body{grid-template-rows:minmax(38vh,46vh) minmax(0,1fr)}.reference-a4-stage{align-items:stretch;gap:7px}.reference-image-canvas{width:100%}.reference-a4-stage .reference-image-canvas>img{width:100%;max-height:35vh}.reference-hotspot{width:22px;height:22px;font-size:calc(12px * var(--ui-text-scale, 1))}.reference-view-tab{min-height:30px}.reference-view-note{font-size:calc(12px * var(--ui-text-scale, 1))}}

/* Design-only cabinet polish. Structure, content and behavior stay unchanged. */
:root{
  --green:#079b78;
  --green-dark:#06745b;
  --cyan:#0b9eac;
  --ink:#14222d;
  --muted:#627482;
  --line:#d7e1e6;
  --soft:#f2f6f7;
}

html,body{background:#f2f6f7}
body{font-family:Arial,"Helvetica Neue",sans-serif}
.cabinet-main{background:#f2f6f7}
.cabinet-topbar{
  border-bottom-color:#d4dfe4;
  background:rgba(255,255,255,.96);
  box-shadow:0 1px 0 rgba(18,39,52,.03),0 8px 24px rgba(18,39,52,.035);
}
.cabinet-content{max-width:1600px;padding-top:28px;padding-bottom:32px}
.cabinet-view.is-active{animation:cabinet-view-in 220ms cubic-bezier(.23,1,.32,1) both}

.welcome-row{position:relative;padding-left:17px}
.welcome-row::before{
  content:"";
  position:absolute;
  inset:2px auto 2px 0;
  width:3px;
  border-radius:2px;
  background:#08a77f;
  transform-origin:center bottom;
  animation:welcome-accent-in 520ms cubic-bezier(.23,1,.32,1) both;
}
.welcome-row h2,.view-heading h2{color:#101c26;font-weight:750}
.today-label{font-variant-numeric:tabular-nums}

.icon-button,.account-button,.secondary-command,.button-secondary,.search-control,.toolbar select{
  box-shadow:0 1px 2px rgba(21,43,56,.035);
  transition:border-color 160ms ease,box-shadow 160ms ease,background-color 160ms ease,transform 120ms ease;
}
.workspace-panel,.metric,.entity-card,.journal-summary article{
  border-color:#d5e0e5;
  box-shadow:0 8px 24px rgba(21,43,56,.045),0 1px 2px rgba(21,43,56,.035);
}
.workspace-panel{transition:border-color 180ms ease,box-shadow 180ms ease}
.metric{position:relative;overflow:hidden;transition:border-color 160ms ease,box-shadow 160ms ease,transform 160ms cubic-bezier(.23,1,.32,1)}
.metric::after{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:#079b78;
  opacity:.82;
}
.metric:nth-child(2)::after{background:#0b9eac}
.metric:nth-child(3)::after{background:#d89516}
.metric:nth-child(4)::after{background:#3e718f}
.metric:nth-child(1)>svg:first-child{color:#08745b;background:#e8f7f2}
.metric:nth-child(2)>svg:first-child{color:#087a84;background:#e9f7f8}
.metric:nth-child(3)>svg:first-child{color:#8a6008;background:#fff7df}
.metric:nth-child(4)>svg:first-child{color:#365f76;background:#edf4f7}
.metric strong{font-variant-numeric:tabular-nums}

.template-library,.reference-library,.recent-panel,.inspection-calendar,.account-section,.profile-card{background:#fff}
.panel-title{padding-bottom:14px;border-bottom:1px solid #e7edf0}
.panel-kicker{color:#08745b;letter-spacing:0}
.panel-title>svg{color:#087b70}
.template-row{padding-right:3px;padding-left:3px;transition:background-color 150ms ease}
.reference-vehicle-frame{border:1px solid #e5ecef;background:#f7fafb}
.reference-zone,.reference-section,.template-actions .icon-button{transition:border-color 150ms ease,background-color 150ms ease,color 150ms ease,box-shadow 150ms ease,transform 120ms ease}
.reference-zone.is-active{box-shadow:inset 0 0 0 1px rgba(7,155,120,.12)}
.reference-section{box-shadow:0 1px 2px rgba(21,43,56,.025)}
.table-head{background:#f4f7f8}
.table-row,.inspection-row,.reference-item{transition:background-color 140ms ease}
.status-badge{border-radius:5px}

.primary-command,.button-primary,.program-option,.text-command,.inspection-mode-switch button,.mobile-bottom-nav button{
  transition:background-color 150ms ease,border-color 150ms ease,color 150ms ease,box-shadow 150ms ease,transform 120ms ease;
}
.primary-command,.button-primary{box-shadow:0 7px 16px rgba(7,155,120,.17)}
.search-control:focus-within{
  border-color:#54bda6;
  box-shadow:0 0 0 3px rgba(7,155,120,.11);
}
:where(button,a,input,select):focus-visible{outline:2px solid #159b82;outline-offset:2px}

@media(hover:hover) and (pointer:fine){
  .metric-action:hover,.entity-card:hover{border-color:#a9cfc5;box-shadow:0 12px 28px rgba(21,43,56,.075);transform:translateY(-2px)}
  .workspace-panel:hover{border-color:#c7d7dc;box-shadow:0 12px 30px rgba(21,43,56,.065),0 1px 2px rgba(21,43,56,.035)}
  .template-row:hover,.inspection-row:hover,.table-row:hover,.reference-item:hover{background:#f7fbfa}
  .icon-button:hover,.secondary-command:hover,.button-secondary:hover{border-color:#9fc1b8;box-shadow:0 4px 12px rgba(21,43,56,.075)}
}

.primary-command:active,.button-primary:active,.secondary-command:active,.button-secondary:active,.icon-button:active,.metric-action:active,.program-option:active{transform:scale(.97)}

@keyframes cabinet-view-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes welcome-accent-in{from{opacity:0;transform:scaleY(.2)}to{opacity:1;transform:scaleY(1)}}

@media(max-width:900px){
  .cabinet-content{padding-top:23px}
  .mobile-bottom-nav{border-top-color:#cfdbdf;box-shadow:0 -10px 28px rgba(20,42,56,.09)}
  .mobile-bottom-nav button.is-active::after{content:"";position:absolute;inset:auto 28% 0;height:2px;border-radius:2px;background:#079b78}
}
@media(max-width:620px){
  .welcome-row{padding-left:14px}
  .workspace-panel,.metric,.entity-card,.journal-summary article{box-shadow:0 4px 14px rgba(21,43,56,.04)}
}
@media(prefers-reduced-motion:reduce){
  .cabinet-view.is-active,.welcome-row::before{animation:none}
  .metric,.workspace-panel,.icon-button,.primary-command,.secondary-command,.button-primary,.button-secondary,.program-option{transition:none}
}
/* Readable controls without scaling the canvas, documents or page viewport. */
.inspection-mode-switch button{min-height:44px;font-size:calc(14px * var(--ui-text-scale, 1));padding:0 16px}
.inspection-mode-switch button svg{width:18px;height:18px;flex-shrink:0}
.primary-command,.secondary-command,.button-primary,.button-secondary{min-height:46px}
.icon-button{width:44px;height:44px;flex-shrink:0}
.icon-button svg{width:20px;height:20px}
.search-control{height:46px;min-height:46px;min-width:0}
.toolbar select{height:46px}
.table-row>div{min-width:0;overflow-wrap:anywhere}
.table-action{width:40px;height:40px}
.table-action svg{width:18px;height:18px}
.status-badge{white-space:normal;line-height:1.35;padding-top:5px;padding-bottom:5px}
.journal-tabs button{min-height:44px}
.journal-table{min-width:1280px}
.journal-table-head,.journal-table-row{grid-template-columns:100px 130px 180px 180px 190px minmax(230px,1fr) 110px 50px}
.journal-table-row{font-size:calc(14px * var(--ui-text-scale, 1))}
.reference-intro{grid-template-columns:minmax(180px,.65fr) minmax(0,1.35fr);gap:16px}
.reference-zone-group{grid-template-columns:110px minmax(0,1fr)}
.reference-zone{min-height:38px;height:auto;padding:7px 9px;line-height:1.3;text-align:left}
.reference-zone-group>strong{font-size:calc(11px * var(--ui-text-scale, 1))}
.reference-zone-group>div{min-width:0}
.reference-zone-summary small{font-size:calc(12px * var(--ui-text-scale, 1))}
.template-copy h4{line-height:1.4}
.template-actions .icon-button{width:40px;height:40px}
.profile-card p{overflow-wrap:anywhere}
@media(max-width:1250px){.overview-resources{grid-template-columns:1fr}.reference-intro{grid-template-columns:minmax(180px,.6fr) minmax(0,1.4fr)}}
@media(max-width:620px){
  .reference-intro{grid-template-columns:1fr}
  .reference-zone-group{grid-template-columns:1fr}
  .inspection-mode-switch{display:flex;width:100%}
  .inspection-mode-switch button{flex:1;justify-content:center;padding:0 8px;gap:5px;font-size:calc(13px * var(--ui-text-scale, 1))}
  .template-row{grid-template-columns:34px minmax(0,1fr) auto;gap:7px}
  .template-actions{gap:4px}
  .template-actions .icon-button{width:36px;height:40px}
}
/* Appointment actions share the existing cabinet controls. */
.inspection-examples { margin-top: 20px; width: 100%; justify-content: flex-start; white-space: normal; }
.inspection-examples small { margin-left: auto; }
.inspection-examples:disabled { opacity: .65; cursor: default; }
.appointment-toolbar { flex-wrap: wrap; }
.appointment-list { border-top: 1px solid #d8e2e8; }
.appointment-row { display: grid; grid-template-columns: 175px minmax(0, 1fr) 390px; gap: 20px; padding: 18px 0; border-bottom: 1px solid #d8e2e8; align-items: center; }
.appointment-time { display: grid; gap: 6px; color: #047e72; }
.appointment-time svg { width: 22px; height: 22px; }
.appointment-time small, .appointment-person p, .appointment-person small { color: #576b78; font-size:calc(15px * var(--ui-text-scale, 1)); line-height: 1.4; }
.appointment-time.is-future { color: #08745f; }
.appointment-time.is-soon { color: #654700; background: #ffe36b; border-left: 3px solid #d3a500; padding: 8px; }
.appointment-time.is-overdue { color: #ad2525; background: #fff0f0; border-left: 3px solid #cf3333; padding: 8px; }
.appointment-time.is-soon small, .appointment-time.is-overdue small { color: inherit; }
.appointment-person { min-width: 0; overflow-wrap: anywhere; }
.appointment-person h3 { font-size:calc(17px * var(--ui-text-scale, 1)); margin: 0 0 6px; }
.appointment-person p { margin: 4px 0; }
.appointment-actions { display: grid; width: 100%; max-width: 390px; grid-template-columns: minmax(0, 1fr) repeat(3, 40px); gap: 8px; align-items: center; }
.appointment-actions [data-booking-start] { grid-column: 1; grid-row: 1; min-height: 44px; padding: 6px 10px; font-size:calc(14px * var(--ui-text-scale, 1)); line-height: 1.3; }
.appointment-actions [data-booking-edit] { grid-column: 2; grid-row: 1; }
.appointment-actions a[href^="tel:"] { grid-column: 3; grid-row: 1; }
.appointment-actions [data-booking-cancel] { grid-column: 4; grid-row: 1; }
.appointment-actions .icon-button { width: 40px; height: 44px; }
.appointment-actions .icon-button:disabled { color: #8b98a1; background: #f3f6f7; box-shadow: none; cursor: not-allowed; }
.appointment-actions .button-primary svg { flex-shrink: 0; }
.appointment-dialog { width: min(700px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border: 1px solid #d8e2e8; border-radius: 8px; padding: 24px; color: #14242d; }
.appointment-dialog::backdrop { background: rgb(16 32 40 / 45%); }
.appointment-dialog form { display: flex; flex-direction: column; max-height: calc(100dvh - 84px); }
.appointment-dialog header, .appointment-dialog footer { display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.appointment-dialog header { margin-bottom: 24px; }
.appointment-dialog header, .appointment-dialog footer { flex-shrink: 0; }
.appointment-dialog h2 { margin: 0; font-size:calc(26px * var(--ui-text-scale, 1)); }
.appointment-dialog footer { justify-content: flex-end; margin-top: 24px; }
.appointment-dialog label { display: grid; gap: 8px; font-size:calc(17px * var(--ui-text-scale, 1)); font-weight: 600; min-width: 0; }
.appointment-dialog [hidden] { display: none !important; }
.appointment-toolbar .search-control { min-height: 44px; }
.appointment-dialog input, .appointment-dialog select { width: 100%; min-width: 0; min-height: 44px; padding: 10px; border: 1px solid #b9cbd4; border-radius: 6px; font: inherit; background: #fff; color: inherit; }
.appointment-dialog input:focus-visible, .appointment-dialog select:focus-visible { outline: 2px solid #079b85; outline-offset: 2px; }
.appointment-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; overflow-y: auto; padding: 3px; margin: -3px; }
.appointment-wide { grid-column: 1 / -1; }
.appointment-dialog [role="alert"] { color: #a42626; }
.calendar-booking-count { color: #8a5b08 !important; }
@media (max-width: 1100px) {
  .appointment-row { grid-template-columns: 165px minmax(0, 1fr); }
  .appointment-actions { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .appointment-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .appointment-time { grid-template-columns: 24px minmax(0, 1fr); align-items: center; }
  .appointment-time small { grid-column: 2; }
  .appointment-dialog { padding: 18px; }
  .appointment-fields { grid-template-columns: minmax(0, 1fr); }
  .appointment-toolbar .search-control { flex-basis: 100%; }
  .inspection-mode-switch { width: 100%; }
  .inspection-mode-switch button { flex: 1; padding: 10px 8px; }
  .calendar-day span { font-size:calc(12px * var(--ui-text-scale, 1)); overflow-wrap: anywhere; }
}

.journal-periods > [hidden], #journalInsuranceType[hidden] { display: none; }
.insurance-kind { min-width: 0; margin: 0; padding: 0; border: 0; }
.insurance-kind legend { margin-bottom: 7px; color: var(--muted); font-size:calc(14px * var(--ui-text-scale, 1)); font-weight: 600; }
.insurance-kind-options { display: flex; gap: 6px; }
.insurance-kind-options label { position: relative; flex: 1; min-width: 0; }
.insurance-kind-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.insurance-kind-options span { display: grid; place-items: center; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; font-size:calc(16px * var(--ui-text-scale, 1)); }
.insurance-kind-options input:checked + span { color: #006c61; border-color: #009f8b; background: #eaf8f4; }
.insurance-kind-options input:focus-visible + span { outline: 2px solid #087eaf; outline-offset: 2px; }
#journalInsuranceType { margin-top: 8px; }
.appointment-route { grid-column: 1 / -1; justify-content: center; min-height: 40px; font-size:calc(14px * var(--ui-text-scale, 1)); }
.appointment-route:disabled { color: #647580; background: #f5f8f9; box-shadow: none; cursor: default; }
.appointment-route small { margin-left: auto; font-size:calc(13px * var(--ui-text-scale, 1)); }
.inspection-examples + .inspection-examples { margin-top: 8px; }
.journal-table small { display: block; margin-top: 3px; color: var(--muted); overflow-wrap: anywhere; }
.journal-periods { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-bottom: 16px; }
.journal-periods > div { display: flex; min-width: 0; gap: 10px; }
.journal-periods label { color: var(--muted); font-size:calc(14px * var(--ui-text-scale, 1)); font-weight: 700; }
.journal-periods select { width: auto; max-width: 100%; min-width: 100px; min-height: 44px; padding: 0 12px; border: 1px solid #bdced5; border-radius: 6px; background: white; color: #27404d; font: inherit; font-size:calc(16px * var(--ui-text-scale, 1)); }
.journal-periods select:focus-visible { outline: 2px solid #07967f; outline-offset: 2px; }
.journal-tabs { min-width: 0; flex-wrap: wrap; overflow: visible; }
.journal-tabs button { min-height: 38px; padding: 0 11px; }
@media (max-width: 600px) {
  .journal-periods { display: grid; gap: 8px; }
  .journal-periods > div { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 8px; }
  .journal-tabs button { min-height: 40px; }
  .appointment-actions { gap: 6px; grid-template-columns: minmax(0, 1fr) repeat(3, 40px); }
}
@media (max-width: 900px) {
  .cabinet-topbar .mobile-menu-button { display: grid; flex-shrink: 0; }
  .cabinet-topbar .cabinet-heading { display: block; }
  .cabinet-topbar .cabinet-top-actions { width: auto; margin-left: auto; }
  .cabinet-top-actions > #refreshCabinet { display: grid; }
}
@media (max-width: 600px) {
  .journal-editor { max-height: calc(100dvh - 32px); overflow-y: auto; }
  .journal-form-grid { grid-template-columns: minmax(0, 1fr); }
  .journal-summary strong { overflow-wrap: anywhere; }
}
.calendar-day .calendar-count-label { display: inline; margin: 0; }
@media (max-width: 620px) {
  .calendar-day .calendar-count-label { display: none; }
  .calendar-day > span { white-space: nowrap; overflow-wrap: normal; }
}
.program-list[hidden],#appointmentInsurerLabel[hidden]{display:none}
#sibassistInsurers .program-option{grid-template-columns:1fr;min-height:52px}
#sibassistInsurers #programBack{margin-top:10px}
#appointmentEditor header [data-appointment-close]:focus{border-color:#9ca8ae;outline:none;box-shadow:none}
#appointmentEditor header [data-appointment-close]:focus-visible{outline:2px solid #9ca8ae;outline-offset:2px}
