:root {
  color-scheme: light; --ink:#152526; --muted:#687a79; --paper:#f2f5f2; --card:#fff;
  --deep:#0e3436; --teal:#0d746c; --accent:#0d746c; --teal-soft:#def1ec; --orange:#e9823c;
  --line:#dbe4df; --danger:#b43943; --safe-bottom:max(12px,env(safe-area-inset-bottom));
  --control-height:48px; --control-radius:12px; --control-border:#b9c8c3;
  --control-padding-x:13px; --focus-ring:0 0 0 3px #0d746c2b;
  --field-gap:7px; --section-gap:16px;
  --surface:#fff; --surface-soft:#edf3f0; --border:#dbe4df;
  --radius-sm:9px; --radius-md:12px; --radius-lg:17px;
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:24px;
  --shadow-sm:0 6px 18px rgba(16,42,44,.04);
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}
.time-history>#timeHistoryResults{display:grid!important;gap:12px;padding:0!important;border-top:0!important}
.mobile-room-metric-preview{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0;padding:0!important;border:0!important}.mobile-room-metric-preview span{display:block;padding:10px;border-radius:10px;color:var(--muted);background:var(--paper);font-size:10px;text-transform:uppercase}.mobile-room-metric-preview strong{display:block;margin-top:4px;color:var(--ink);font-size:13px;text-transform:none}@media(max-width:420px){.mobile-room-metric-preview{grid-template-columns:1fr}}
.mobile-room-core,.mobile-room-surface-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;padding:0!important;border:0!important}.mobile-room-field-group{margin:10px 0;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:#fbfcfb}.mobile-room-field-group>h4{margin:0 0 9px;color:var(--teal);font-size:12px}.mobile-room-field-group label,.mobile-room-core label{margin:0}.mobile-room-number{display:grid;align-content:center;gap:3px;min-height:40px;padding:6px 11px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}.mobile-room-number span{color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase}.mobile-room-number strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.mobile-room-form :is(input:not([type="checkbox"]),select){min-height:40px;padding:8px 11px}.mobile-room-form textarea{min-height:64px}.mobile-room-form .mobile-room-options{margin:0 0 10px;padding:9px}.mobile-room-form .mobile-room-options label{padding:6px 8px}.mobile-room-form .mobile-room-metric-preview{margin:8px 0 0}.mobile-room-note{margin:0!important}@media(max-width:560px){.mobile-room-core,.mobile-room-surface-grid{grid-template-columns:1fr}.mobile-room-field-group{padding:10px}.mobile-room-form :is(input:not([type="checkbox"]),select){min-height:42px}}
.scope-compact-header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px;padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:#fff}.scope-compact-header h2{margin:3px 0;font-size:20px}.scope-compact-header p{margin:0;color:var(--muted);font-size:12px}.scope-compact-header>span{flex:0 0 auto;padding:6px 9px;border-radius:99px;color:var(--teal);background:var(--teal-soft);font-size:11px;font-weight:850}.scope-quick-actions{display:flex;gap:8px;margin:10px 0}.scope-quick-actions .primary-action{min-height:42px;padding:9px 13px}.scope-quick-actions .secondary{color:var(--teal);border:1px solid var(--teal);background:#fff}.compact-create-panel{padding:0;overflow:hidden}.compact-create-panel>summary{min-height:48px;display:flex;align-items:center;padding:12px 15px;color:var(--teal);background:var(--paper);font-weight:850;cursor:pointer}.compact-create-panel>form{padding:0 15px 15px}.compact-list-heading{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:16px 2px 8px}.compact-list-heading h3,.compact-list-heading p{margin:0}.compact-list-heading p{color:var(--muted);font-size:11px}.compact-room-overview{display:grid;gap:7px}.compact-room-group{border:1px solid var(--line);border-radius:13px;background:#fff;overflow:hidden}.compact-room-group>summary{min-height:56px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 12px;cursor:pointer}.compact-room-group[open]>summary{border-bottom:1px solid var(--line);background:#f8faf8}.compact-room-group summary span,.compact-room-group summary strong,.compact-room-group summary small{display:block;min-width:0}.compact-room-group summary strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact-room-group summary small{margin-top:2px;color:var(--muted);font-size:10px}.compact-room-group summary b{color:var(--muted);font-size:10px;white-space:nowrap}.compact-room-actions{display:flex;justify-content:flex-end;gap:12px;padding:6px 10px;border-bottom:1px solid var(--line);background:#fbfcfb}.compact-room-actions .back-link{min-height:34px;margin:0;padding:5px;font-size:11px}.compact-work-list{display:grid}.compact-work-row{display:grid;grid-template-columns:minmax(0,1fr) 38px;align-items:center;border-bottom:1px solid var(--line)}.compact-work-row:last-child{border-bottom:0}.compact-work-row.is-completed{opacity:.65}.compact-work-main{min-width:0;padding:10px 12px;border:0;color:var(--ink);background:transparent;text-align:left}.compact-work-main strong,.compact-work-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact-work-main strong{font-size:12px}.compact-work-main strong span{display:inline-grid;place-items:center;min-width:25px;margin-right:7px;padding:2px 4px;border-radius:6px;color:#fff;background:var(--teal);font-size:9px}.compact-work-main small{margin-top:3px;color:var(--muted);font-size:10px}.compact-icon-action{width:32px;height:32px;margin-right:6px;border:1px solid var(--line);border-radius:9px;color:var(--teal);background:#fff;font-size:17px}.compact-icon-action.danger{color:var(--danger)}.compact-work-row>.error{grid-column:1/-1;min-height:0;margin:0;padding:0 12px 8px;font-size:10px}.compact-empty{margin:0;padding:12px;color:var(--muted);font-size:11px}@media(max-width:560px){.scope-compact-header{align-items:flex-start;flex-direction:column}.scope-quick-actions{display:grid;grid-template-columns:1fr 1fr}.compact-list-heading{align-items:flex-start;flex-direction:column}.compact-room-group>summary{min-height:52px}.compact-room-actions{justify-content:space-between}}
.mobile-catalog-field{position:relative;display:grid;gap:6px;min-width:0}.mobile-catalog-field>label{font-weight:800}.mobile-catalog-field>small{color:var(--muted);font-size:10px}.mobile-catalog-options{position:absolute;z-index:20;top:calc(100% - 18px);right:0;left:0;max-height:240px;overflow-y:auto;padding:5px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 14px 30px rgba(15,48,46,.18)}.mobile-catalog-options[hidden]{display:none}.mobile-catalog-options button{display:block;width:100%;min-height:44px;padding:9px 10px;border:0;border-radius:8px;color:var(--ink);background:transparent;text-align:left}.mobile-catalog-options button:hover,.mobile-catalog-options button:focus{outline:0;background:var(--teal-soft)}.mobile-catalog-options p{margin:0;padding:10px;color:var(--muted);font-size:11px}
*{box-sizing:border-box} body{margin:0;background:var(--paper);color:var(--ink)} button,input{font:inherit} button{cursor:pointer}[hidden]{display:none!important}
.auth-screen{min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 20% 0,#2d6260,var(--deep) 45%,#071d1f)}
.auth-card{width:min(430px,100%);padding:34px;border-radius:28px;background:#fff;box-shadow:0 30px 70px #0005}.auth-card h1{margin:5px 0 8px;font-size:34px;letter-spacing:-.045em}.auth-card>p{line-height:1.5}.overline{margin:0;color:var(--teal);font-size:11px;font-weight:850;letter-spacing:.15em;text-transform:uppercase}.muted{color:var(--muted)}
.login-progress{display:grid;gap:14px;margin-top:24px;padding:18px;border:1px solid #c9ded8;border-radius:18px;background:linear-gradient(145deg,#f7fbf9,#edf6f3);box-shadow:0 12px 28px #102a2c12}.login-progress-head{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:11px}.login-progress-head h2{margin:3px 0 0;font-size:16px;letter-spacing:-.015em}.login-progress-head output{align-self:start;padding:5px 8px;border-radius:999px;color:#075b56;background:#dff2ec;font-size:11px;font-weight:900}.login-progress-spinner{width:30px;height:30px;border:3px solid #c8dfd9;border-top-color:var(--teal);border-radius:50%;animation:login-progress-spin .8s linear infinite}.login-progress progress{width:100%;height:10px;border:0;border-radius:999px;overflow:hidden;background:#d8e7e2}.login-progress progress::-webkit-progress-bar{border-radius:999px;background:#d8e7e2}.login-progress progress::-webkit-progress-value{border-radius:999px;background:linear-gradient(90deg,var(--teal),#35a490);transition:width .25s ease}.login-progress progress::-moz-progress-bar{border-radius:999px;background:linear-gradient(90deg,var(--teal),#35a490)}.login-progress>p{min-height:34px;margin:0;color:var(--muted);font-size:12px;line-height:1.45}@keyframes login-progress-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.login-progress-spinner{animation:none;border-color:var(--teal)}}
label{display:grid;gap:7px;margin:18px 0;font-size:13px;font-weight:750}input{width:100%;padding:13px;border:1px solid #b9c8c3;border-radius:12px;outline:none;color:var(--ink);background:#fff}input:focus{border-color:var(--teal);box-shadow:0 0 0 3px #0d746c22}.primary{width:100%;border:0;border-radius:12px;padding:13px 16px;color:#fff;background:var(--teal);font-weight:800}.error{min-height:20px;margin:11px 0 0;color:var(--danger);font-size:13px}
.shell{min-height:100dvh;padding-bottom:86px}.app-header{position:sticky;top:0;z-index:10;height:78px;display:flex;align-items:center;gap:14px;padding:12px max(18px,env(safe-area-inset-left));border-bottom:1px solid var(--line);background:#f2f5f2eF;backdrop-filter:blur(16px)}.app-header h1{margin:1px 0 0;font-size:21px;letter-spacing:-.025em}.title-block{min-width:0}.icon-button,.avatar-button{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:14px;color:var(--ink);background:#fff;box-shadow:0 5px 20px #102a2c12}.avatar-button{margin-left:auto;color:#fff;background:var(--orange);font-size:12px;font-weight:900}.connection-banner{padding:10px 18px;color:#6f451d;background:#fff0dc;font-size:12px;text-align:center}.main{max-width:1100px;margin:auto;padding:26px 18px 40px}.welcome{padding:26px;border-radius:22px;color:#fff;background:linear-gradient(125deg,#153f41,#0d746c);box-shadow:0 18px 42px #123a3b24}.welcome h2{margin:7px 0 8px;font-size:27px}.welcome p{margin:0;color:#cae6df;line-height:1.5}.section-title{margin:28px 0 13px}.section-title h2{margin:3px 0;font-size:19px}.tile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tile{min-height:132px;padding:18px;border:1px solid var(--line);border-radius:18px;background:#fff;text-align:left;box-shadow:0 8px 24px #102a2c0a}.tile-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;color:#09625d;background:var(--teal-soft);font-size:19px}.tile strong{display:block;margin-top:17px}.tile small{display:block;margin-top:4px;color:var(--muted)}.empty{padding:44px 20px;text-align:center;color:var(--muted)}
.quick-nav{position:fixed;z-index:12;left:50%;bottom:var(--safe-bottom);transform:translateX(-50%);display:flex;width:min(560px,calc(100% - 24px));min-height:64px;padding:7px;border:1px solid #ffffff30;border-radius:20px;background:#102f31f5;box-shadow:0 18px 45px #001d1f55;backdrop-filter:blur(18px)}.quick-item{position:relative;flex:1;display:grid;place-items:center;gap:2px;border:0;border-radius:14px;color:#bed5d1;background:transparent;font-size:10px}.quick-item.active{color:#fff;background:#ffffff14}.quick-item b{font-size:20px;line-height:1}.quick-item em{position:absolute;top:1px;right:calc(50% - 22px);min-width:17px;padding:2px 4px;border-radius:9px;color:#fff;background:#d65545;font-size:9px;font-style:normal}.drawer-backdrop{position:fixed;z-index:20;inset:0;background:#07191b88;backdrop-filter:blur(2px)}.drawer{position:fixed;z-index:21;inset:0 auto 0 0;width:min(390px,88vw);padding:24px 18px;background:#fff;transform:translateX(-102%);transition:.22s;box-shadow:20px 0 60px #0003;overflow:auto}.drawer.open{transform:none}.drawer-head{display:flex;align-items:start;justify-content:space-between}.drawer-head h2{margin:3px 0}.search-label{margin:22px 0}.nav-group{margin:20px 0}.nav-group h3{color:var(--muted);font-size:11px;letter-spacing:.12em;text-transform:uppercase}.menu-row{display:grid;grid-template-columns:minmax(0,1fr) 34px 34px;align-items:center;gap:3px}.menu-item{width:100%;display:flex;align-items:center;gap:12px;padding:12px 5px 12px 12px;border:0;border-radius:12px;background:transparent;text-align:left}.menu-item:hover{background:var(--teal-soft)}.menu-item .menu-icon{display:grid;flex:0 0 auto;place-items:center;width:34px;height:34px;border-radius:10px;background:#edf3f0}.menu-item small{display:block;color:var(--muted)}.menu-item em{margin-left:auto;padding:3px 7px;border-radius:10px;color:#fff;background:#d65545;font-size:10px;font-style:normal}.mini-action{width:34px;height:34px;border:1px solid transparent;border-radius:10px;color:#8ba19d;background:transparent}.mini-action:hover{background:var(--teal-soft)}.mini-action.selected{border-color:#bad6ce;color:var(--teal);background:#e0f0eb}.drawer-foot{display:flex;justify-content:space-between;align-items:center;margin-top:28px;padding-top:18px;border-top:1px solid var(--line)}.text-button{border:0;padding:8px;color:var(--teal);background:transparent;font-weight:800}.profile-popover{position:fixed;z-index:18;top:70px;right:18px;width:250px;padding:17px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 18px 45px #102a2c25}.profile-popover strong,.profile-popover span{display:block}.profile-popover span{margin-top:3px;color:var(--muted);font-size:12px}.profile-popover button{margin-top:12px;padding-left:0}
@media(min-width:720px){.main{padding:38px 30px 110px}.tile-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.welcome{padding:34px}.app-header{padding-inline:30px}.quick-nav{bottom:20px}}
@media(max-width:380px){.auth-card{padding:26px 20px}.quick-nav{width:calc(100% - 12px)}.quick-item:nth-child(n+5){display:none}}
.compact-welcome{margin-bottom:18px}.app-search{display:grid;gap:7px;margin-bottom:14px;color:var(--muted);font-size:12px;font-weight:800}.customer-app-list{display:grid;gap:9px}.customer-app-list>button{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:12px;width:100%;padding:14px;border:1px solid var(--line);border-radius:16px;color:var(--ink);background:#fff;text-align:left;box-shadow:0 6px 18px #102a2c0a}.customer-app-list strong,.customer-app-list small{display:block}.customer-app-list small{margin-top:4px;color:var(--muted)}.loading-card{padding:45px;text-align:center;color:var(--muted)}.back-link{margin-bottom:12px;border:0;color:var(--teal);background:transparent;font-weight:800}.app-detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:15px 0}.app-detail-grid article{padding:15px;border:1px solid var(--line);border-radius:15px;background:#fff}.app-detail-grid span,.app-detail-grid strong{display:block}.app-detail-grid span{margin-bottom:5px;color:var(--muted);font-size:11px}.app-record-section{margin:14px 0;padding:18px;border:1px solid var(--line);border-radius:18px;background:#fff}.app-record-section>div{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid var(--line)}.app-record-section>div span{text-align:right;color:var(--muted);font-size:12px}
.order-context-return{display:block;max-width:100%;margin:0 0 10px;padding:7px 9px;border:0;border-radius:9px;color:var(--teal);background:var(--teal-soft);font:inherit;font-weight:900;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.order-context-navigation{position:sticky;z-index:9;top:72px;display:grid;gap:8px;margin:-4px 0 14px;padding:9px;border:1px solid var(--line);border-radius:15px;background:#fffffff2;box-shadow:0 8px 24px #102a2c14;backdrop-filter:blur(14px)}.order-context-sections{display:flex;gap:6px;overflow-x:auto;padding:0 0 2px;scrollbar-width:thin;overscroll-behavior-inline:contain}.order-context-sections button,.mobile-order-links .back-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;color:var(--teal);background:#fff;font:inherit;font-size:11px;font-weight:850;line-height:1.2;white-space:nowrap}.order-module-icon{width:18px!important;height:18px!important;flex:0 0 18px}.order-context-sections button{flex:0 0 auto}.order-context-sections button.active{border-color:var(--teal);color:#fff;background:var(--teal)}.order-context-sections button:focus-visible,.order-context-return:focus-visible,.mobile-order-links .back-link:focus-visible{outline:3px solid #f2863c;outline-offset:2px}@media(max-width:900px){.order-context-sections{flex-wrap:wrap;overflow:visible}.order-context-sections button{flex:1 0 auto}}@media(max-width:620px){.order-context-navigation{top:64px;margin-inline:-3px;padding:8px}.order-context-return{width:100%}.order-context-sections button{padding:8px 9px}}
.order-project-list{display:grid;gap:10px}.order-project-list>h3{margin-bottom:2px}.mobile-order-summary{display:grid;gap:11px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff}.mobile-order-summary:focus{outline:3px solid #f2863c;outline-offset:3px}.mobile-order-summary.has-conflict{border-color:#d7983d}.mobile-order-summary header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.mobile-order-summary header>span{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:6px;color:var(--muted);font-size:11px;text-align:right}.mobile-order-summary header em{padding:3px 7px;border-radius:99px;color:#7b4300;background:#fff0d5;font-style:normal;font-weight:850}.mobile-order-links{display:flex;flex-wrap:wrap;gap:6px}.mobile-order-links .back-link{margin:0;background:var(--paper)}.mobile-order-primary-action{display:flex;justify-content:flex-end}.mobile-order-primary-action:empty{display:none}.mobile-order-conflict{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px;border:1px solid #dfbd83;border-radius:11px;color:#623d08;background:#fff8e9}.mobile-order-conflict div,.mobile-order-conflict strong,.mobile-order-conflict span{display:block}.mobile-order-conflict span{margin-top:3px;font-size:11px}.mobile-order-conflict .back-link{flex:0 0 auto;margin:0;padding:7px 9px;border:1px solid #d39a41;border-radius:9px;background:#fff}@media(max-width:560px){.mobile-order-summary header,.mobile-order-conflict{align-items:stretch;flex-direction:column}.mobile-order-summary header>span{justify-content:flex-start;text-align:left}.mobile-order-conflict .back-link{align-self:flex-start}}
.password-panel{width:min(100%,620px);margin:0 auto;border:1px solid var(--line);border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 18px 48px #102a2c12}.password-intro{display:flex;align-items:flex-start;gap:15px;padding:22px 24px;color:#fff;background:linear-gradient(125deg,#153f41,#0d746c)}.password-intro .overline{color:#91d3c8}.password-intro h2{margin:5px 0 5px;font-size:24px;letter-spacing:-.025em}.password-intro p:last-child{margin:0;color:#cce7e1;font-size:13px;line-height:1.45}.password-symbol{display:grid;flex:0 0 38px;place-items:center;width:38px;height:38px;border-radius:12px;color:#075b56;background:#dff3ed;font-size:18px;font-weight:900}.password-rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;padding:16px 24px;list-style:none;border-bottom:1px solid var(--line);background:#f7faf8}.password-rules li{position:relative;padding-left:17px;color:var(--muted);font-size:11px;line-height:1.4}.password-rules li:before{position:absolute;left:0;content:'✓';color:var(--teal);font-weight:900}.password-form{display:grid;gap:14px;padding:20px 24px 22px}.password-form label{margin:0}.password-form .primary-action{width:100%;margin-top:3px}.password-form .error{margin:0}@media(max-width:560px){.password-panel{border-radius:18px}.password-intro{padding:19px 18px}.password-intro h2{font-size:22px}.password-rules{grid-template-columns:1fr;gap:5px;padding:14px 18px}.password-form{padding:18px}.password-form input{padding:12px}}
.order-app-list{display:grid;gap:14px}.order-app-list button{display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:13px;width:100%;padding:15px;border:1px solid var(--line);border-radius:16px;color:var(--ink);background:#fff;text-align:left;box-shadow:0 6px 18px #102a2c0a}.order-app-list strong,.order-app-list small{display:block}.order-app-list small{margin-top:4px;color:var(--muted)}.order-priority{width:7px;height:44px;border-radius:6px;background:#78908b}.order-priority.high{background:#e9823c}.order-priority.urgent{background:#b43943}.order-priority.low{background:#8aaac4}.schedule-day-group{display:grid;gap:9px;padding:13px;border:1px solid #cbded8;border-radius:17px;background:#f7faf9}.schedule-day-group>h3{margin:0;padding-bottom:9px;border-bottom:2px solid #0c7c72;color:#123436;font-size:15px;text-transform:capitalize}.schedule-day-group>div{display:grid;gap:9px}.planning-app-list{display:grid;gap:14px}.planning-app-list>.schedule-day-group{padding:12px 14px}.planning-app-list>.schedule-day-group .personal-appointment:last-child{border-bottom:0}
.planning-app-list strong small{display:block;margin-top:4px;color:var(--muted);font-weight:500}.offline-note{padding:12px 15px;border-radius:12px;color:#6f451d;background:#fff0dc;font-size:12px;line-height:1.45}.time-capture{display:grid;gap:12px}.time-capture form{display:grid;gap:9px}.time-capture select,.time-capture textarea{width:100%;padding:12px;border:1px solid #b9c8c3;border-radius:12px;color:var(--ink);background:#fff;font:inherit}.time-capture textarea{min-height:72px;resize:vertical}.primary-action{padding:12px 15px;border:0;border-radius:12px;color:#fff;background:var(--teal);font-weight:850}.compact-order-action{margin-top:9px;padding:9px 11px;font-size:12px}.planning-app-list>div{align-items:center;flex-wrap:wrap}.planning-app-list .submit-time{margin:0;padding:8px}.personal-appointment{display:grid;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.personal-appointment:last-child{border-bottom:0}.personal-appointment>div{display:flex;justify-content:space-between;gap:12px;align-items:start}.personal-appointment>div>span{text-align:right;font-size:12px}.personal-appointment.completed{opacity:.72}.completion-state{margin:0;padding:8px 10px;border-radius:9px;color:var(--teal);background:var(--teal-soft);font-size:12px;font-weight:750}.appointment-completion-locked{display:grid;gap:7px;max-width:420px}.appointment-completion-locked button[disabled]{opacity:.72;cursor:not-allowed}.appointment-completion-locked small{color:#8a3f31;line-height:1.4}.appointment-readiness{display:grid;gap:6px;margin:0;padding:0;list-style:none;width:100%}.appointment-readiness li{display:flex;align-items:flex-start;gap:7px;padding:6px 8px;border-radius:9px;background:#f1f5f3;font-size:12px;line-height:1.35}.appointment-readiness li span{display:inline-grid;place-items:center;flex:0 0 20px;height:20px;border-radius:50%;font-weight:850}.appointment-readiness .passed span{background:#d7efe5;color:#116451}.appointment-readiness .missing{background:#fff1ed;color:#8b2c20}.appointment-readiness .missing span{background:#ffd8d0;color:#8b2c20}@media(min-width:720px){.time-capture{grid-template-columns:repeat(2,minmax(0,1fr))}.personal-appointment{grid-template-columns:minmax(0,1fr) auto;align-items:center}.personal-appointment>div{grid-column:1/-1}}@media(max-width:480px){.personal-appointment>div{display:grid}.personal-appointment>div>span{text-align:left}}
.task-app-list{display:grid;gap:10px}.task-app-card{display:grid;grid-template-columns:8px 1fr;gap:13px;padding:16px;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:0 6px 18px #102a2c0a}.task-app-card strong,.task-app-card small{display:block}.task-app-card small{margin-top:4px;color:var(--muted)}.task-app-card p{margin:8px 0;font-size:13px;line-height:1.45}#taskAppForm{display:grid;gap:9px}#taskAppForm select,#taskAppForm textarea{width:100%;padding:12px;border:1px solid #b9c8c3;border-radius:12px;color:var(--ink);background:#fff;font:inherit}#taskAppForm textarea{min-height:75px;resize:vertical}
.app-context-actions{display:grid;margin:12px 0}.mobile-room-form select,.mobile-room-form textarea{width:100%;padding:12px;border:1px solid #b9c8c3;border-radius:12px;color:var(--ink);background:#fff;font:inherit}.mobile-room-form textarea{min-height:78px;resize:vertical}.mobile-room-form label>small{display:block;margin:5px 2px 0;color:var(--muted);font-size:10px;font-weight:500}.mobile-dimensions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0!important;border:0!important}.mobile-dimensions label{min-width:0}.mobile-room-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0;padding:12px;border:1px solid var(--line);border-radius:13px}.mobile-room-options legend{font-size:12px;font-weight:800}.mobile-room-options label{display:flex;align-items:center;gap:8px;margin:0;padding:8px;border-radius:9px;background:var(--paper)}.mobile-room-options input{width:20px}.mobile-room-list{display:grid;gap:10px}.mobile-room-card{padding:17px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 6px 18px #102a2c0a}.mobile-room-card.offline-conflict{border-color:#c66a28;background:#fff9f4}.mobile-room-card strong,.mobile-room-card small{display:block}.mobile-room-card small{margin-top:4px;color:var(--muted)}.mobile-room-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}.mobile-room-card dl div{padding:9px;border-radius:10px;background:var(--paper)}.mobile-room-card dt{color:var(--muted);font-size:10px;text-transform:uppercase}.mobile-room-card dd{margin:4px 0 0;font-size:13px}.mobile-room-card p{margin:8px 0 0;color:var(--muted);font-size:12px}.mobile-room-card .mobile-room-edit{margin:12px 0 0;padding:8px 0}.mobile-room-features{display:flex;flex-wrap:wrap;gap:5px}.mobile-room-features span{padding:4px 7px;border-radius:99px;color:#075b56;background:var(--teal-soft);font-size:10px;font-weight:750}@media(max-width:420px){.mobile-dimensions,.mobile-room-options{grid-template-columns:1fr}.mobile-room-card dl{grid-template-columns:1fr}}
.mobile-work-section{margin-top:10px}.section-hint{margin:4px 0 12px;color:var(--muted);font-size:12px}.mobile-work-list{display:grid;gap:10px}.mobile-work-card{padding:17px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 6px 18px #102a2c0a}.mobile-work-card.offline-conflict{border-color:#c66a28;background:#fff9f4}.mobile-work-card strong,.mobile-work-card small{display:block}.mobile-work-card small{margin-top:4px;color:var(--muted)}.mobile-work-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}.mobile-work-card dl div{padding:9px;border-radius:10px;background:var(--paper)}.mobile-work-card dt{color:var(--muted);font-size:10px;text-transform:uppercase}.mobile-work-card dd{margin:4px 0 0;font-size:13px}.mobile-work-card p{margin:8px 0 0;color:var(--muted);font-size:12px}.mobile-work-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.mobile-work-card .mobile-work-actions .back-link{margin:0;padding:8px 0}.mobile-work-card .mobile-work-duplicate{color:var(--teal)}@media(max-width:420px){.mobile-work-card dl{grid-template-columns:1fr}.mobile-work-actions{display:grid;grid-template-columns:1fr}.mobile-work-card .mobile-work-actions .back-link{text-align:left}}
.mobile-readonly-field{display:grid;gap:4px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--paper)}.app-record-section>.mobile-readonly-field{display:grid;grid-template-columns:minmax(95px,1fr) auto minmax(150px,1.6fr);align-items:center;gap:12px;padding:12px 16px;border:1px solid var(--line)}.mobile-readonly-field span{color:var(--muted);font-size:11px;font-weight:750}.mobile-readonly-field strong{color:var(--teal)}.mobile-readonly-field small{color:var(--muted);font-size:11px;line-height:1.35}@media(max-width:480px){.app-record-section>.mobile-readonly-field{grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;padding:12px 14px}.app-record-section>.mobile-readonly-field small{grid-column:1/-1}}
.mobile-room-form fieldset{display:grid;gap:8px;margin:14px 0;padding:13px;border:1px solid var(--line);border-radius:14px}.mobile-room-form fieldset legend{padding:0 5px;font-size:12px;font-weight:850}.mobile-room-form fieldset label{display:flex;align-items:flex-start;gap:9px;margin:0;padding:9px;border-radius:10px;background:var(--paper);line-height:1.35}.mobile-room-form fieldset input{flex:0 0 auto;width:18px;margin-top:1px}.mobile-execution-history{display:grid!important;gap:9px;padding:0!important;border:0!important}.mobile-execution-entry{display:grid!important;gap:6px;padding:12px!important;border:1px solid var(--line)!important;border-radius:13px;background:var(--paper)}.mobile-execution-entry>div{display:flex;justify-content:space-between;gap:10px;padding:0!important;border:0!important}.mobile-execution-entry span,.mobile-execution-entry small{color:var(--muted);font-size:11px}.mobile-execution-entry p{margin:0;white-space:pre-wrap;font-size:12px}.mobile-execution-entry.superseded{opacity:.65}.mobile-execution-entry.offline-conflict{border-color:var(--danger)!important}@media(max-width:420px){.mobile-execution-entry>div{align-items:flex-start;flex-direction:column}}
.mobile-execution-entry .correct-execution{justify-self:start;margin:4px 0 0;padding:5px 0}.mobile-correction-form{display:grid;gap:9px;margin:0;padding:14px;border:1px solid #d5a35a;border-radius:14px;background:#fff9ef}.mobile-correction-form h4,.mobile-correction-form p{margin:0}.mobile-correction-form p{color:var(--muted);font-size:12px}.mobile-correction-form select,.mobile-correction-form textarea{width:100%;padding:12px;border:1px solid #b9c8c3;border-radius:12px;background:#fff;font:inherit}.mobile-correction-form .form-actions{display:flex;justify-content:flex-end;gap:8px}.mobile-correction-form .form-actions .back-link{margin:0}.mobile-today-work article{display:flex!important;align-items:flex-start;justify-content:space-between;gap:12px}.mobile-today-work article strong{max-width:55%}.mobile-today-work article span{text-align:right}@media(max-width:520px){.mobile-today-work article{flex-direction:column}.mobile-today-work article strong{max-width:none}.mobile-today-work article span{text-align:left}}
.mobile-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.mobile-section-heading h3{margin:0 0 4px}.mobile-section-heading .section-hint{margin-bottom:0}.mobile-work-card .offline-discard{margin:8px 0 0;padding:8px 0;color:var(--danger)}@media(max-width:420px){.mobile-section-heading{align-items:stretch;flex-direction:column}.mobile-section-heading .primary-action{width:100%}}
.sync-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;color:var(--muted);background:#fff;font-size:12px}.sync-toolbar .back-link{flex:0 0 auto;margin:0;padding:7px 2px}.retry-load{margin-top:14px}
.offer-composer form,.offer-master-data{display:grid;gap:10px}.offer-master-data{grid-template-columns:repeat(2,minmax(0,1fr))}.offer-master-data label{margin:0}.offer-context-choice{grid-column:1/-1}.offer-derived-customer{display:grid;gap:3px;padding:11px 13px;border:1px solid var(--line);border-radius:12px;background:var(--teal-soft)}.offer-derived-customer small,.offer-derived-customer span{color:var(--muted);font-size:11px}.offer-composer select,.offer-composer textarea,.offer-send-form textarea{width:100%;padding:12px;border:1px solid #b9c8c3;border-radius:12px;color:var(--ink);background:#fff;font:inherit}.offer-section{margin:14px 0;padding:14px;border:1px solid var(--line);border-radius:16px;background:#f8faf8}.offer-section-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px}.offer-section-head label{margin:0}.drag-handle{color:var(--muted);font-size:19px;cursor:grab}.offer-move{display:flex;gap:4px}.offer-move button{min-width:34px;height:34px;border:1px solid var(--line);border-radius:9px;color:var(--teal);background:#fff;font-weight:900}.offer-position-list{display:grid;gap:8px;margin-top:10px}.offer-position{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:10px;padding:11px!important;border:1px solid var(--line)!important;border-radius:12px;background:#fff}.offer-position-number{display:grid;place-items:center;min-width:38px;height:32px;border-radius:8px;color:#fff;background:var(--teal);font-size:11px;font-weight:900}.offer-position strong{display:block;margin-bottom:7px}.offer-position textarea{min-height:68px}.offer-position-values{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.offer-position-values label{margin:8px 0 0}.offer-add-position{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 0 0!important;border:0!important}.offer-add-position .back-link{margin:0}.mobile-offer-card{display:grid!important;gap:9px;padding:14px!important;border:1px solid var(--line)!important;border-radius:13px}.mobile-offer-card strong,.mobile-offer-card small{display:block}.mobile-offer-card small{margin-top:4px;color:var(--muted)}.offer-send-form{display:grid;gap:8px}.offer-send-form input{padding:11px}@media(max-width:680px){.offer-master-data,.offer-position-values{grid-template-columns:1fr}.offer-context-choice{grid-column:auto}.offer-section-head{grid-template-columns:auto 1fr}.offer-section-head .offer-move{grid-column:1/-1;justify-content:flex-end}.offer-position{grid-template-columns:auto minmax(0,1fr)}.offer-position>.offer-move{grid-column:1/-1;justify-content:flex-end}.offer-add-position{grid-template-columns:1fr}}
.mobile-offer-tax{grid-column:1/-1;margin:0;padding:9px 11px 11px;border:1px solid var(--line);border-radius:12px;background:var(--teal-soft)}.mobile-offer-tax legend{padding:0 5px;color:var(--teal);font-weight:900}.mobile-offer-tax>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mobile-offer-tax .wide{grid-column:1/-1;margin:0}.mobile-offer-tax textarea{min-height:64px}.mobile-offer-tax:disabled{opacity:.76}@media(max-width:680px){.mobile-offer-tax>div{grid-template-columns:1fr}.mobile-offer-tax .wide{grid-column:auto}}
.mobile-lv-picker{display:grid;gap:8px;padding:10px;border:1px solid var(--line);border-radius:12px;background:#f3f8f6}.mobile-lv-picker>div,.offer-add-position{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mobile-lv-picker label,.offer-add-position label{margin:0}.mobile-lv-picker>small{color:var(--muted);font-size:10px}.offer-add-position{grid-template-columns:minmax(0,.8fr) minmax(0,.8fr) minmax(0,1.2fr) auto}.offer-address-details{grid-column:1/-1;border:1px solid var(--line);border-radius:12px}.offer-address-details>summary{padding:10px 12px;color:var(--teal);font-weight:800}.offer-address-details>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 10px 10px}.mobile-offer-summary{display:grid;grid-template-columns:1fr auto;gap:3px;padding:11px 13px;border-radius:12px;background:var(--teal-soft)}.mobile-offer-summary strong{font-size:18px}.mobile-offer-summary small{grid-column:1/-1;color:var(--muted)}@media(max-width:680px){.mobile-lv-picker>div,.offer-add-position,.offer-address-details>div{grid-template-columns:1fr}}
.offer-delivery-status{margin:0;padding:10px 12px;border-radius:11px;background:#eef5f3;color:#254942;font-size:13px}.offer-delivery-status.success{background:#e2f4ea;color:#175f3b}.offer-delivery-status.error{background:#fff0ec;color:#8b2f20}.offer-delivery-status.error p{margin:0 0 8px}
.offer-workspace-note{margin:0 0 12px}.offer-workspace-note strong{color:var(--teal)}.mobile-offer-list{display:grid;gap:9px}.mobile-offer-list>.mobile-section-heading{margin-bottom:1px}.mobile-offer-card.pending{grid-template-columns:minmax(0,1fr) auto;border-style:dashed!important;background:#f5f9f7}.mobile-offer-card.pending .pill{align-self:start}.mobile-offer-card.pending .error{grid-column:1/-1;margin:0}.offer-composer .mobile-section-heading{align-items:center}.offer-composer .mobile-section-heading .primary-action{width:auto;min-height:38px;padding:8px 13px}@media(max-width:680px){.mobile-offer-card.pending{grid-template-columns:1fr}.mobile-offer-card.pending .pill{justify-self:start}.offer-composer .mobile-section-heading .primary-action{width:100%}}
.chat-app-list{display:grid;gap:10px}.chat-app-card{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;padding:14px;border:1px solid var(--line);border-radius:16px;color:var(--ink);background:#fff;text-align:left;box-shadow:0 6px 18px #102a2c0a}.chat-app-card.unread{border-color:#4a9b8c;background:#f2fbf8}.chat-app-card strong,.chat-app-card small{display:block}.chat-app-card small{margin-top:4px;color:var(--muted)}.chat-app-card b{color:var(--teal)}.chat-app-card em{padding:5px 8px;border-radius:99px;color:#fff;background:#d65545;font-size:10px;font-style:normal;font-weight:850}.chat-create-panel summary{cursor:pointer;color:var(--teal);font-weight:850}.chat-create-panel form{display:grid;gap:9px;margin-top:14px}.chat-create-panel label{margin:0}.chat-create-panel select{width:100%;padding:12px;border:1px solid #b9c8c3;border-radius:12px;color:var(--ink);background:#fff;font:inherit}.chat-message-list{display:grid;gap:9px;margin:15px 0}.chat-message{width:min(88%,720px);padding:12px 14px;border:1px solid var(--line);border-radius:15px 15px 15px 4px;background:#fff;box-shadow:0 5px 15px #102a2c0a}.chat-message.own{justify-self:end;border-radius:15px 15px 4px;background:#e6f3ef}.chat-message.pending{border-style:dashed}.chat-message header{display:flex;align-items:center;justify-content:space-between;gap:10px}.chat-message header small{color:var(--muted);font-size:10px}.chat-message p{margin:7px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.45}.chat-message-error{display:block;margin-top:8px;color:var(--danger);font-size:11px}.chat-compose{position:sticky;bottom:80px;display:grid;gap:8px;margin-top:15px;padding:13px;border:1px solid var(--line);border-radius:16px;background:#ffffffed;box-shadow:0 12px 32px #102a2c18;backdrop-filter:blur(12px)}.chat-compose label{margin:0;color:var(--muted);font-size:11px}.chat-compose textarea{min-height:78px;width:100%;padding:12px;border:1px solid #b9c8c3;border-radius:12px;color:var(--ink);background:#fff;font:inherit;resize:vertical}.chat-compose .error{margin:0}.order-project-list>div{align-items:flex-start;flex-wrap:wrap}.order-chat-link{display:inline;margin:0;padding:0}.order-chat-note{color:var(--muted)}@media(min-width:720px){.chat-app-list{grid-template-columns:repeat(2,minmax(0,1fr))}.chat-compose{bottom:96px;grid-template-columns:minmax(0,1fr) auto;align-items:end}.chat-compose label,.chat-compose .error{grid-column:1/-1}.chat-compose .primary-action{min-height:46px}}
.order-note-compose{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:14px 0;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff}.order-note-compose label{margin:0}.order-note-compose input,.order-note-compose textarea{width:100%;margin-top:5px;padding:11px 12px;border:1px solid #b9c8c3;border-radius:11px;color:var(--ink);background:#fff;font:inherit}.order-note-compose textarea{min-height:88px;resize:vertical}.order-note-compose .error{margin:0}.order-note-list{display:grid;gap:10px}.order-note-card{padding:13px 14px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 5px 15px #102a2c0a}.order-note-card.pending{border-style:dashed;background:#f2fbf8}.order-note-card header,.order-note-card footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.order-note-card header small,.order-note-card footer{color:var(--muted);font-size:11px}.order-note-card p{margin:9px 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45}@media(min-width:720px){.order-note-compose{grid-template-columns:minmax(180px,.45fr) minmax(0,1fr) auto;align-items:end}.order-note-compose .error{grid-column:1/-1}.order-note-compose textarea{min-height:48px;max-height:120px}.order-note-compose .primary-action{min-height:46px}}
.pill-like{display:inline-flex;padding:4px 8px;border-radius:99px;color:#075b56;background:var(--teal-soft);font-size:10px;font-weight:850}.news-app-list,.knowledge-app-list{display:grid;gap:10px}.news-app-card{padding:17px;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:0 6px 18px #102a2c0a}.news-app-card.read{opacity:.82}.news-app-card header,.news-app-card footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.news-app-card header small,.news-app-card footer{color:var(--muted);font-size:11px}.news-app-card h3{margin:13px 0 7px}.news-app-card p{margin:0 0 13px;white-space:pre-wrap;line-height:1.5}.news-app-card .back-link{margin:0}.news-read-error{display:block;margin-top:8px;color:var(--danger)}.knowledge-app-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;width:100%;padding:16px;border:1px solid var(--line);border-radius:16px;color:var(--ink);background:#fff;text-align:left;box-shadow:0 6px 18px #102a2c0a}.knowledge-app-card .pill-like{grid-column:1/-1;justify-self:start}.knowledge-app-card strong,.knowledge-app-card small{grid-column:1}.knowledge-app-card small{color:var(--muted);line-height:1.4}.knowledge-app-card b{grid-column:2;grid-row:2/4;align-self:center;color:var(--teal)}.knowledge-app-detail{padding:22px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 8px 26px #102a2c0c}.knowledge-app-detail h2{margin:13px 0 8px}.knowledge-app-detail .knowledge-summary{color:var(--muted);font-size:15px;font-weight:700}.knowledge-app-detail>div{margin:18px 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}.knowledge-app-detail>small{color:var(--muted)}@media(min-width:720px){.news-app-list,.knowledge-app-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
.sync-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;margin:0 0 .85rem}.sync-summary article{display:grid;gap:.25rem;padding:.8rem;border:1px solid var(--line);border-radius:1rem;background:var(--card)}.sync-summary span{font-size:.76rem;color:var(--muted)}.sync-summary strong{font-size:1.45rem}.sync-center-actions{flex-wrap:wrap}.sync-center-actions .primary-action{width:auto;margin:0}.sync-list{display:grid;gap:.7rem}.sync-list>h3{margin:.4rem 0 0}.sync-item{display:grid;gap:.45rem;padding:.85rem;border:1px solid var(--line);border-radius:1rem;background:var(--card);box-shadow:0 6px 18px #102a2c0a}.sync-item.conflict,.sync-item.dead{border-color:#d57068;background:#fff7f5}.sync-item.retry,.sync-item.deferred{border-color:#d7a54a}.sync-item header,.sync-item footer{display:flex;align-items:center;justify-content:space-between;gap:.65rem;flex-wrap:wrap}.sync-item h3,.sync-item p{margin:0}.sync-item>small,.sync-item header small{color:var(--muted)}.sync-state{padding:.22rem .5rem;border-radius:999px;background:var(--paper);font-size:.76rem;font-weight:800}.sync-item.conflict .sync-state,.sync-item.dead .sync-state{background:#f8d8d4;color:#8a241b}.sync-error{color:var(--danger);font-size:.88rem}.sync-item footer .text-button{margin-left:auto}.sync-special{display:grid;gap:.45rem}.sync-special>button{display:flex;align-items:center;justify-content:space-between;gap:.75rem;width:100%;padding:.65rem .7rem;border:1px solid var(--line);border-radius:.8rem;background:var(--card);color:inherit;text-align:left}.sync-special>button span{display:grid;gap:.15rem}.sync-special>button small{color:var(--muted)}.sync-special>button em{min-width:1.65rem;padding:.2rem .4rem;border-radius:999px;background:var(--orange);color:#fff;font-style:normal;text-align:center}.sync-success>div{display:flex;justify-content:space-between;gap:.7rem;padding:.55rem 0;border-top:1px solid var(--line)}.sync-success>div span{color:var(--muted);font-size:.82rem}
@media(max-width:560px){.sync-summary{grid-template-columns:1fr}.sync-center-actions>*{width:100%}.sync-center-actions .primary-action{width:100%}.sync-item footer{align-items:stretch;flex-direction:column}.sync-item footer .text-button{margin-left:0}.sync-success>div{align-items:flex-start;flex-direction:column}}
.order-device-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.order-device-form h3,.order-device-form .primary-action,.order-device-form .error{grid-column:1/-1}.order-device-form select,.device-remove-form input{width:100%;padding:12px;border:1px solid #b9c8c3;border-radius:12px;color:var(--ink);background:#fff;font:inherit}.order-device-list{display:grid;gap:10px;margin-top:18px}.order-device-list>h3{margin:0}.order-device-card{padding:16px;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:0 6px 18px #102a2c0a}.order-device-card.offline-conflict{border-color:#c66a28;background:#fff9f4}.order-device-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.order-device-card strong,.order-device-card small{display:block}.order-device-card small{margin-top:4px;color:var(--muted)}.order-device-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:13px 0}.order-device-card dl div{padding:9px;border-radius:10px;background:var(--paper)}.order-device-card dl .device-return-location{background:#e8f5f1}.order-device-card dt{color:var(--muted);font-size:10px;text-transform:uppercase}.order-device-card dd{margin:4px 0 0;font-size:13px}.order-device-card p{font-size:12px}.device-remove-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.device-remove-form .device-return-hint,.device-remove-form label:last-of-type,.device-remove-form .primary-action,.device-remove-form .error{grid-column:1/-1}.device-return-hint{margin:0;padding:9px 11px;border-radius:10px;background:#e8f5f1;color:var(--muted)}.device-remove-form .error{margin:0}.completion-check-list{display:grid;gap:9px}.completion-check-list article{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:15px;background:#fff}.completion-check-list article>span{display:grid;flex:0 0 34px;place-items:center;width:34px;height:34px;border-radius:50%;color:#fff;background:#bd5b4d;font-weight:900}.completion-check-list article.passed>span{background:#25856c}.completion-check-list strong,.completion-check-list small{display:block}.completion-check-list small{margin-top:3px;color:var(--muted)}@media(max-width:560px){.order-device-form,.device-remove-form,.order-device-card dl{grid-template-columns:1fr}.order-device-form>*,.device-remove-form>*{grid-column:1!important}.order-device-card header{align-items:stretch;flex-direction:column}.order-device-card .pill-like{align-self:flex-start}}
.site-meter-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.site-meter-form h3,.site-meter-form .primary-action,.site-meter-form .wide{grid-column:1/-1}.site-meter-form select{width:100%;padding:12px;border:1px solid #b9c8c3;border-radius:12px;color:var(--ink);background:#fff;font:inherit}.site-meter-list{display:grid;gap:10px;margin-top:18px}.site-meter-list>h3{margin:0}.site-meter-card{padding:16px;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:0 6px 18px #102a2c0a}.site-meter-card.offline-conflict{border-color:#c66a28;background:#fff9f4}.site-meter-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.site-meter-card strong,.site-meter-card small{display:block}.site-meter-card small{margin-top:4px;color:var(--muted)}.site-meter-card>b{display:block;margin:14px 0 6px;color:var(--teal);font-size:24px}.site-meter-card p{margin:7px 0;color:var(--muted);font-size:12px}@media(max-width:560px){.site-meter-form{grid-template-columns:1fr}.site-meter-form>*{grid-column:1!important}.site-meter-card header{align-items:stretch;flex-direction:column}.site-meter-card .pill-like{align-self:flex-start}}
.device-consumption-preview{display:block;margin:0;padding:9px 11px;border-radius:10px;background:#e8f5f1;color:var(--ink);font-weight:700}.device-consumption-preview.error{background:#fff1ed;color:var(--danger)}.order-device-card .device-consumption{background:#e8f5f1}
.device-remove-action{margin-top:12px;border-top:1px solid var(--line)}.device-remove-action>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0 0;cursor:pointer;color:var(--brand);list-style:none}.device-remove-action>summary::-webkit-details-marker{display:none}.device-remove-action>summary>span{display:grid;gap:2px}.device-remove-unavailable{margin:12px 0 0;padding:10px 12px;border-radius:10px;background:#fff4cc;color:#815600}
.device-scan-panel{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:11px;border:1px solid var(--line);border-radius:13px;background:var(--paper)}.device-scan-panel .back-link{margin:0}.device-scan-video,.device-scan-feedback{grid-column:1/-1}.device-scan-video{width:100%;max-height:280px;border-radius:12px;background:#071d1c;object-fit:cover}.device-scan-feedback{margin:0;color:var(--muted);font-size:12px}@media(max-width:520px){.device-scan-panel{grid-template-columns:1fr}.device-scan-panel>*{grid-column:1!important}}

/* Gemeinsamer Oberflaechenvertrag fuer Telefon, Tablet und Desktop-PWA. */
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),select,textarea{width:100%;min-width:0;min-height:var(--control-height);border:1px solid var(--control-border);border-radius:var(--control-radius);padding:10px var(--control-padding-x);color:var(--ink);background-color:#fff;font:inherit;line-height:1.35;outline:none;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}
select{appearance:none;padding-right:42px;background-image:linear-gradient(45deg,transparent 50%,#49615e 50%),linear-gradient(135deg,#49615e 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-repeat:no-repeat;background-size:5px 5px,5px 5px}
select option{color:var(--ink);background:#fff}select option:checked{color:var(--ink)}
textarea{min-height:88px;resize:vertical}
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):hover,select:hover,textarea:hover{border-color:#8da39e}
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):focus-visible,select:focus-visible,textarea:focus-visible{border-color:var(--teal);box-shadow:var(--focus-ring)}
input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;color:#687775;background:#edf1ef;opacity:1}
input[aria-invalid="true"],select[aria-invalid="true"],textarea[aria-invalid="true"]{border-color:var(--danger);box-shadow:0 0 0 3px #b439431f}
input[type="checkbox"],input[type="radio"]{width:18px;height:18px;margin:0;accent-color:var(--teal)}
/* Auswahl bleibt markiert; ein Fokusrahmen erscheint nur bei Tastaturbedienung. */
input[type="checkbox"]:focus,input[type="radio"]:focus{box-shadow:none}
input[type="checkbox"]:focus-visible,input[type="radio"]:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
label{gap:var(--field-gap)}label>small,.field-hint,.section-hint{color:var(--muted);line-height:1.4}.error:empty{min-height:0;margin-top:0}
button:focus-visible,[role="button"]:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
@media(pointer:coarse){button,[role="button"]{min-height:44px}}
.resource-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;margin:16px 0}.resource-toolbar .app-search{margin:0}.resource-toolbar p{margin:0 0 13px;color:var(--muted);font-size:12px}.resource-custody-list{display:grid;gap:12px}.resource-custody-card{min-width:0;padding:16px;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:0 6px 18px #102a2c0a}.resource-custody-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.resource-custody-card>header>div{min-width:0}.resource-custody-card>header strong,.resource-custody-card>header small{display:block}.resource-custody-card>header strong{overflow-wrap:anywhere}.resource-custody-card>header small{margin-top:4px;color:var(--muted);line-height:1.4}.resource-custody-card>dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:13px 0}.resource-custody-card>dl div{min-width:0;padding:10px;border-radius:11px;background:var(--paper)}.resource-custody-card dt{color:var(--muted);font-size:10px;text-transform:uppercase}.resource-custody-card dd{margin:4px 0 0;overflow-wrap:anywhere;font-size:13px;font-weight:700}.resource-due{margin:8px 0;color:#7a4514;font-size:12px}.resource-action,.resource-history{margin-top:12px;border-top:1px solid var(--line)}.resource-action>summary,.resource-history>summary{min-height:44px;display:flex;align-items:center;color:var(--teal);font-size:12px;font-weight:850;cursor:pointer}.resource-action form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:4px 0 2px}.resource-action form label{margin:0}.resource-action form label:has(textarea),.resource-action form .primary-action,.resource-action form .error{grid-column:1/-1}.resource-confirm{display:flex!important;grid-column:1/-1;grid-template-columns:none;align-items:center;gap:9px!important;min-height:44px;margin:0!important;padding:10px 12px;border-radius:11px;background:var(--paper)}.resource-confirm input{flex:0 0 auto}.resource-pending{margin:12px 0 0;padding:10px 12px;border-radius:11px;color:#6f451d;background:#fff0dc;font-size:12px}.resource-history article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;padding:10px 0;border-top:1px solid var(--line)}.resource-history article div{min-width:0}.resource-history article strong,.resource-history article small{display:block}.resource-history article small{margin-top:3px;color:var(--muted);font-size:10px}.resource-history article>span{color:var(--teal);font-size:11px;font-weight:800;text-align:right}.resource-history article>p{grid-column:1/-1;margin:0;color:var(--muted);font-size:11px}@media(min-width:760px){.resource-custody-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.resource-toolbar{grid-template-columns:1fr}.resource-toolbar p{margin:0}.resource-custody-card>header{align-items:stretch;flex-direction:column}.resource-custody-card>header .pill-like{align-self:flex-start}.resource-custody-card>dl,.resource-action form{grid-template-columns:1fr}.resource-action form>*{grid-column:1!important}.resource-history article{grid-template-columns:1fr}.resource-history article>span{text-align:left}.resource-history article>p{grid-column:1}}
.resource-custody-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}.resource-custody-guide span{display:flex;align-items:center;gap:8px;min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font-size:12px;font-weight:750}.resource-custody-guide b{display:grid;flex:0 0 24px;width:24px;height:24px;place-items:center;border-radius:50%;background:var(--teal);color:#fff}.resource-action-explanation{grid-column:1/-1;margin:0;padding:10px 12px;border-radius:11px;background:var(--paper);color:var(--muted);font-size:12px;line-height:1.45}@media(max-width:560px){.resource-custody-guide{grid-template-columns:1fr}}
.resource-custody-card.has-pending-incident{border-color:#d27b6d;background:#fffdfc}.resource-condition{display:grid;gap:4px;margin:12px 0 0;padding:11px 12px;border:1px solid #d7a39a;border-radius:12px;color:#6d241c;background:#fff3f0}.resource-condition strong,.resource-condition span,.resource-condition small{display:block}.resource-condition span,.resource-condition small{line-height:1.4}.resource-condition span{font-size:11px;font-weight:750}.resource-condition small{font-size:11px}.resource-condition-pending{border-style:dashed}.resource-condition .error{margin:4px 0 0}.resource-incident-history article>p{white-space:pre-wrap;overflow-wrap:anywhere}

/* Einheitlicher, touch-tauglicher Hinweis für alle mobilen Klappbereiche. */
main details>summary{list-style:none;cursor:pointer}
main details>summary::-webkit-details-marker{display:none}
main details>summary::after{content:'Anzeigen';display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:30px;margin-left:auto;padding:5px 10px;border:1px solid var(--line);border-radius:9px;color:var(--teal);background:var(--teal-soft);font-size:10px;font-weight:850;line-height:1.2}
main details[open]>summary::after{content:'Ausblenden'}
main details>summary:focus-visible{outline:3px solid var(--orange);outline-offset:3px;border-radius:10px}
.compact-room-group>summary{grid-template-columns:minmax(0,1fr) max-content 18px;max-width:100%;box-sizing:border-box}.compact-room-group>summary::after{min-width:10px;width:10px;box-sizing:border-box;margin:0 3px;white-space:nowrap}.compact-room-group>summary>b{min-width:0;text-align:right}@media(max-width:520px){.compact-room-group>summary{grid-template-columns:minmax(0,1fr) 18px;gap:6px 8px}.compact-room-group>summary>b{grid-column:1;grid-row:2;text-align:left}.compact-room-group>summary::after{grid-column:2;grid-row:1/3}}
.measurement-create-panel form,.measurement-add-reading form{display:grid;gap:var(--space-3,12px);margin-top:12px}.measurement-grid,.measurement-material-fields,.measurement-climate-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-3,12px)}.measurement-grid .wide,.measurement-add-reading .wide,.measurement-create-panel form>.wide{grid-column:1/-1}.measurement-point-list{display:grid;gap:12px;margin-top:14px}.measurement-point-card{background:var(--surface,#fff);border:1px solid var(--border,#d4dfdb);border-radius:var(--radius-lg,16px);padding:14px;box-shadow:var(--shadow-sm,0 4px 14px rgba(18,55,52,.06))}.measurement-point-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.measurement-point-card h3{margin:3px 0}.measurement-point-card header span,.measurement-point-card header small,.measurement-reading span,.measurement-reading small{display:block;color:var(--muted,#5f7470);font-size:.82rem}.measurement-point-card header em{font-style:normal;background:var(--surface-soft,#edf5f2);border-radius:999px;padding:4px 9px;font-size:.78rem}.measurement-point-card.completed{border-left:4px solid var(--success,#34835f)}.measurement-history{display:grid;gap:7px;margin:12px 0}.measurement-reading{background:var(--surface-soft,#f2f6f4);border-radius:10px;padding:9px 11px}.measurement-reading.correction{border-left:3px solid var(--warning,#c88624)}.measurement-add-reading{border-top:1px solid var(--border,#d4dfdb);padding-top:10px}.measurement-complete{margin-top:8px}
.measurement-photo-links{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:10px 0;padding:9px;border-radius:var(--radius-md);background:var(--surface-soft)}.measurement-photo-links strong{width:100%;font-size:11px}.measurement-photo-links span{padding:5px 8px;border-radius:var(--radius-sm);background:var(--surface);font-size:11px}
.measurement-report-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}.measurement-report-actions .back-link{min-height:44px;margin:0;padding:9px 11px;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--surface)}@media(max-width:440px){.measurement-report-actions{grid-template-columns:1fr}}
@media(max-width:700px){.measurement-grid,.measurement-material-fields,.measurement-climate-fields{grid-template-columns:1fr}.measurement-grid .wide{grid-column:auto}.measurement-point-card{padding:12px}.measurement-point-card>header{align-items:flex-start}.measurement-create-panel form .primary-action,.measurement-add-reading form .primary-action{width:100%;min-height:44px}}

/* Systemweiter Ueberlaufschutz fuer Telefon und Tablet. */
html,body{max-width:100%;overflow-x:clip}
.shell,.main,.main>*{min-width:0;max-width:100%}
.main :where(section,article,form,fieldset,details,div,label){min-width:0}
.main :where(h1,h2,h3,h4,p,span,strong,small,label,button){overflow-wrap:anywhere}
.main :where(img,video,canvas,svg){display:block;max-width:100%;height:auto}
.main :where(button,input,select,textarea){max-width:100%}
@media(max-width:900px){.order-context-sections button{min-width:0;white-space:normal;text-align:center}}
@media(max-width:560px){.main{padding-inline:12px}.welcome,.app-record-section,.mobile-order-summary,.mobile-room-card,.order-device-card,.site-meter-card,.resource-custody-card{padding:14px}.quick-nav{width:calc(100% - 12px)}}

/* Mehrspaltige mobile Formulare richten Beschriftung, Control und Hilfe aus. */
:is(.device-install-selection,.device-install-readings,.measurement-grid,
  .measurement-material-fields,.measurement-climate-fields,
  .measurement-create-panel form,.measurement-add-reading form,.site-meter-form,
  .resource-action form,.time-capture form,.chat-create-panel form,
  .mobile-dimensions,.mobile-room-core,.device-remove-form,.offer-master-data,
  .offer-position-values,.offer-send-form,.signature-fields,.aligned-field-grid)
>label:not(:has(input[type="checkbox"],input[type="radio"])){
  display:grid;
  grid-row:span 3;
  grid-template-rows:subgrid;
  grid-template-columns:minmax(0,1fr);
  align-self:stretch;
  align-content:start;
  gap:var(--field-gap);
  margin:0;
  width:100%;
}
:is(.device-install-selection,.device-install-readings,.measurement-grid,
  .measurement-material-fields,.measurement-climate-fields,
  .measurement-create-panel form,.measurement-add-reading form,.site-meter-form,
  .resource-action form,.time-capture form,.chat-create-panel form,
  .mobile-dimensions,.mobile-room-core,.device-remove-form,.offer-master-data,
  .offer-position-values,.offer-send-form,.signature-fields,.aligned-field-grid)
>label:not(:has(input[type="checkbox"],input[type="radio"]))
>:is(input,select,textarea,output){align-self:start;width:100%}
@supports not (grid-template-rows:subgrid){
  :is(.device-install-selection,.device-install-readings,.measurement-grid,
    .measurement-material-fields,.measurement-climate-fields,
    .measurement-create-panel form,.measurement-add-reading form,.site-meter-form,
    .resource-action form,.time-capture form,.chat-create-panel form,
    .mobile-dimensions,.mobile-room-core,.device-remove-form,.offer-master-data,
    .offer-position-values,.offer-send-form,.signature-fields,.aligned-field-grid)
  >label:not(:has(input[type="checkbox"],input[type="radio"])){
    grid-template-rows:minmax(2.8em,auto) auto minmax(0,1fr);
  }
}

/* Einsatz-Zentrale: kompakte direkte Wege zu allen Abschlussnachweisen. */
.appointment-workspace-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.appointment-workspace-actions>button{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;min-width:0;padding:14px;border:1px solid var(--line);border-radius:15px;color:var(--ink);background:var(--surface);text-align:left;box-shadow:var(--shadow-sm)}.appointment-workspace-actions strong,.appointment-workspace-actions span{min-width:0}.appointment-workspace-actions strong{color:var(--teal)}.appointment-workspace-actions span{grid-column:1/-1;color:var(--muted);font-size:11px;line-height:1.4}.appointment-workspace-actions b{grid-column:2;grid-row:1;padding:3px 7px;border-radius:999px;color:#8b2c20;background:#fff1ed;font-size:10px;white-space:nowrap}.appointment-workspace-actions b.done{color:#116451;background:#d7efe5}.appointment-readiness button{min-height:0;padding:0;border:0;color:inherit;background:transparent;font:inherit;font-weight:750;text-align:left}.appointment-readiness button:hover{text-decoration:underline}@media(max-width:520px){.appointment-workspace-actions{grid-template-columns:1fr}}
.appointment-context-note{display:block;margin:3px 1px 0;color:var(--teal);font-size:10px;font-weight:750;line-height:1.35}.appointment-evidence-type{padding:11px 12px;border:1px solid #b9d5ce;border-radius:13px;background:var(--teal-soft)}.appointment-evidence-type>span{color:var(--teal);font-weight:900}.appointment-evidence-type select{width:100%;margin-top:6px}.appointment-evidence-type small{display:block;margin-top:5px}
.signature-capture{display:grid;gap:10px;margin:12px 0;padding:12px;border:1px solid #b9d5ce;border-radius:15px;background:#f7fbf9}.signature-fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0!important;border:0!important}.signature-fields label{margin:0}.signature-place-actions{display:flex!important;flex-wrap:wrap;gap:8px!important;padding:0!important;border:0!important}.signature-place-actions .back-link{min-height:38px;margin:0}.signature-place-status{min-height:18px;margin:0;color:var(--teal);font-size:11px}.signature-statement{margin:0;padding:10px 12px;border-radius:10px;color:var(--ink);background:var(--teal-soft);font-size:12px;line-height:1.45}.signature-canvas{display:block;width:100%;height:180px;border:1px solid var(--control-border);border-radius:12px;background:#fff;touch-action:none}.signature-actions{display:flex!important;justify-content:flex-end!important;padding:0!important;border:0!important}.signature-actions .back-link{min-height:40px;margin:0}.signature-consent{display:flex!important;grid-template-columns:none!important;align-items:flex-start;gap:9px!important;margin:0!important;padding:10px 12px;border-radius:11px;background:#fff}.signature-consent input{flex:0 0 auto;margin-top:2px}.signature-consent span{font-size:11px;line-height:1.45}@media(max-width:520px){.signature-fields{grid-template-columns:1fr}}
.form-signature-field{display:grid;gap:10px;margin:14px 0;padding:14px;border:1px solid #b9d5ce;border-radius:15px;background:#f7fbf9}.form-signature-field>h3{margin:0;color:var(--teal);font-size:14px}.form-signature-field .signature-actions{margin:0}.form-signature-field .signature-actions .back-link{padding-inline:0}

/* Gefuehrter Geraeteaufbau: Auswahl, Zaehler und Aktion bleiben getrennt. */
.order-device-form{display:grid;grid-template-columns:1fr;gap:14px}.order-device-form>header{display:grid;gap:3px;padding-bottom:13px;border-bottom:1px solid var(--line)}.order-device-form>header>span{color:var(--teal);font-size:10px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.order-device-form>header h3{margin:0}.order-device-form>header .device-scan-panel{margin-top:11px}.device-install-selection,.device-install-readings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.device-install-selection label>span{display:block;margin-bottom:6px;color:var(--teal);font-weight:850}.device-install-selection label,.device-install-readings label{min-width:0;margin:0}.device-install-selection small,.device-install-readings small{display:block;margin-top:5px;color:var(--muted);font-size:10px;line-height:1.35}.device-counter-profile{margin:0;padding:10px 12px;border-radius:11px;background:var(--teal-soft);color:var(--ink);font-size:12px;font-weight:750}.order-device-form>.primary-action{margin:2px 0 0}.order-device-form>.error:empty{display:none}
@media(max-width:720px){.device-install-selection,.device-install-readings{grid-template-columns:1fr}.order-device-form .device-scan-panel{grid-template-columns:1fr}.order-device-form .device-scan-panel>*{grid-column:1!important}}
.device-service-alerts{display:grid;gap:8px;margin:12px 0;padding:13px;border:1px solid #e5c47b;border-radius:15px;background:#fff9e8}.device-service-alerts h3{margin:0}.device-service-alerts p{display:grid;gap:3px;margin:0;padding:9px;border-radius:10px;background:#fff}.device-service-alerts p.overdue,.resource-due.overdue{border-color:#e69b90;color:#90291f;background:#fff0ed}.device-service-alerts p.warning,.resource-due.warning{color:#765000;background:#fff4cc}.resource-due strong{font-weight:900}
.resource-service-action-warning{display:grid;grid-column:1/-1;gap:4px;padding:11px 12px;border:1px solid #e5c47b;border-radius:12px;color:#765000;background:#fff9e8}.resource-service-action-warning strong,.resource-service-action-warning span,.resource-service-action-warning small{display:block}.resource-service-action-warning span{font-weight:750}.resource-service-action-warning small{line-height:1.4}.device-install-service-warning{margin:0}.device-install-service-warning>small{line-height:1.4}
.resource-custody-card dd small{display:block;margin-top:3px;color:var(--muted);font-size:10px;font-weight:650;line-height:1.35}
.resource-card-details{display:grid;margin-top:14px;border-top:1px solid var(--line)}.resource-card-details-title{margin:0;padding:12px 0 2px;color:var(--muted);font-size:10px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.resource-card-details>.resource-action,.resource-card-details>.resource-history{margin-top:0}.resource-card-details details+details{border-top:1px solid var(--line)}.resource-card-details summary{gap:12px;padding:9px 0;color:var(--ink)}.resource-card-details summary:hover{color:var(--teal)}.resource-custody-card>header .pill-like{max-width:9rem;padding:6px 9px;border-radius:9px;text-align:center;line-height:1.15}
.resource-custody-card>header>div{flex:1 1 auto}.resource-custody-card>header .pill-like{flex:0 0 auto;max-width:none;padding-inline:10px;white-space:nowrap;overflow-wrap:normal}
.emergency-order-form fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-3);margin:0;padding:var(--space-3);border:1px solid var(--line);border-radius:var(--radius-md)}
.emergency-order-form fieldset legend{padding:0 var(--space-2);font-weight:800;color:var(--ink)}
.emergency-reference{display:flex;flex-direction:column;gap:.2rem;padding:var(--space-3);border-radius:var(--radius-md);background:var(--soft);border:1px solid var(--line)}
.emergency-reference small{color:var(--muted)}
.emergency-reference strong{overflow-wrap:anywhere;color:var(--brand)}
@media(max-width:700px){.emergency-order-form fieldset{grid-template-columns:1fr}}

/* Systemweiter Strukturvertrag: Fachkarten in App und Backoffice folgen derselben Hierarchie. */
.main :where(.app-record-section,.mobile-order-summary,.mobile-room-card,.order-device-card,.site-meter-card,.resource-custody-card,.measurement-point-card){min-width:0}
.main :where(.app-record-section,.mobile-order-summary,.mobile-room-card,.order-device-card,.site-meter-card,.resource-custody-card,.measurement-point-card)>:is(h2,h3):first-child{margin:0 0 var(--space-4);padding:0 0 var(--space-3);border-bottom:2px solid rgba(13,113,107,.16);line-height:1.3}
.main :where(.app-record-section,.mobile-order-summary,.mobile-room-card,.order-device-card,.site-meter-card,.resource-custody-card,.measurement-point-card)>header:first-child{margin-bottom:var(--space-3);padding-bottom:var(--space-3);border-bottom:1px solid var(--line)}
.main :where(.app-record-section,.mobile-order-summary,.mobile-room-card,.order-device-card,.site-meter-card,.resource-custody-card,.measurement-point-card) :is(h2,h3,h4){line-height:1.3}
.main :where(.app-record-section,.mobile-order-summary,.mobile-room-card,.order-device-card,.site-meter-card,.resource-custody-card,.measurement-point-card) :where(p,small){line-height:1.5}
.main details[open]>summary{margin-bottom:var(--space-3);padding-bottom:var(--space-2);border-bottom:1px solid var(--line)}
@media(max-width:560px){.main :where(.app-record-section,.mobile-order-summary,.mobile-room-card,.order-device-card,.site-meter-card,.resource-custody-card,.measurement-point-card)>:is(h2,h3):first-child{margin-bottom:var(--space-3);padding-bottom:var(--space-2)}}

/* PWA5-Fotoeditor und proportionale Galerieaktionen. Die expliziten
   Min-/Max-Maße verhindern, dass globale Buttonregeln die Icons strecken. */
.media-preview-section .media-preview-actions{display:flex;flex-direction:row;align-items:center;gap:5px}
.media-preview-section .media-preview-actions button{display:inline-grid;box-sizing:border-box;flex:0 0 36px;inline-size:36px;block-size:36px;min-inline-size:36px;min-block-size:36px;max-inline-size:36px;max-block-size:36px;aspect-ratio:1/1;place-items:center;padding:0!important;line-height:1}
.media-preview-section .media-preview-actions svg{display:block;inline-size:20px;block-size:20px;min-inline-size:20px;min-block-size:20px;max-inline-size:20px;max-block-size:20px;aspect-ratio:1/1;overflow:visible}
.pwa5-photo-editor{width:min(1180px,calc(100vw - 18px));height:min(900px,calc(100dvh - 18px));border-radius:13px;background:#fff}
.pwa5-photo-editor .photo-editor-shell{grid-template-rows:auto auto minmax(0,1fr) auto;min-width:0;background:#fff}
.pwa5-photo-editor .photo-editor-head{min-height:64px;padding:10px 14px}
.pwa5-photo-editor .photo-square-button{display:inline-grid;box-sizing:border-box;flex:0 0 42px;inline-size:42px;block-size:42px;min-inline-size:42px;min-block-size:42px;max-inline-size:42px;max-block-size:42px;aspect-ratio:1/1;place-items:center;border:1px solid #cad7e8;border-radius:9px;padding:0;background:#fff;color:#19324b}
.pwa5-photo-editor .photo-square-button>.rh-ui-icon{inline-size:22px;block-size:22px;flex:0 0 22px}
.pwa5-photo-editor .photo-editor-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"tools tools" "context actions";gap:5px;padding:8px 12px;border-bottom:1px solid #dce4ec;background:#fff}
.pwa5-photo-editor .photo-editor-tool-row{grid-area:tools;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;overflow:visible}
.pwa5-photo-editor button.rh-icon-button{display:inline-flex;box-sizing:border-box;min-width:44px;min-height:44px;align-items:center;justify-content:center;gap:6px;border:1px solid #afc8f0;border-radius:9px;padding:8px 10px;background:#eef4ff;color:#155bea;font:inherit;font-size:12px;font-weight:750;cursor:pointer}
.pwa5-photo-editor button.rh-icon-button>.rh-ui-icon{display:block;width:22px;height:22px;min-width:22px;min-height:22px;max-width:22px;max-height:22px;flex:0 0 22px;stroke-width:2.6;pointer-events:none}
.pwa5-photo-editor .photo-editor-tool-row>button.rh-icon-button{min-width:0;min-height:58px;flex-direction:column;gap:4px;padding:6px 4px;line-height:1.2;white-space:normal}
.pwa5-photo-editor button.rh-icon-button.active{border-color:#155bd0;background:#155bd0;color:#fff}
.pwa5-photo-editor .photo-editor-action-row{display:contents}
.pwa5-photo-editor .photo-editor-style-controls{grid-area:context;display:flex;min-width:0;align-items:center;gap:6px;overflow-x:auto;padding:0;border:0;background:#fff}
.pwa5-photo-editor .photo-editor-swatches{display:flex;align-items:center;gap:3px}
.pwa5-photo-editor .photo-color-swatch{position:relative;display:block;box-sizing:border-box;flex:0 0 34px;width:34px;height:34px;min-width:34px;min-height:34px;max-width:34px;max-height:34px;aspect-ratio:1/1;border:2px solid transparent;border-radius:8px;padding:0;background:transparent}
.pwa5-photo-editor .photo-color-swatch::after{content:"";position:absolute;inset:5px;border:1px solid #97a7b8;border-radius:50%;background:#fff}
.pwa5-photo-editor .photo-swatch-0::after{background:#e12e45}.pwa5-photo-editor .photo-swatch-1::after{background:#155bea}.pwa5-photo-editor .photo-swatch-2::after{background:#168350}.pwa5-photo-editor .photo-swatch-3::after{background:#f28c28}.pwa5-photo-editor .photo-swatch-4::after{background:#111827}.pwa5-photo-editor .photo-swatch-5::after{background:#fff}
.pwa5-photo-editor .photo-color-swatch[aria-pressed="true"]{border-color:#1960c7;background:#fff}
.pwa5-photo-editor .photo-editor-color,.pwa5-photo-editor .photo-editor-width{display:flex;align-items:center;gap:4px;font-size:10px;white-space:nowrap}
.pwa5-photo-editor .photo-editor-color input{width:40px;height:36px;margin:0;padding:3px}
.pwa5-photo-editor .photo-editor-width{display:grid;grid-template-columns:auto;gap:1px;min-width:112px}.pwa5-photo-editor .photo-editor-width>span{display:flex;align-items:center;justify-content:space-between;gap:5px}.pwa5-photo-editor .photo-editor-width output{min-width:22px;color:#155bea;font-weight:850;text-align:right}.pwa5-photo-editor .photo-editor-width input[type="range"]{box-sizing:border-box;width:112px;height:20px;min-height:20px;margin:0;padding:0;accent-color:#155bea;cursor:pointer}
.pwa5-photo-editor .photo-editor-action-cluster{grid-area:actions;display:flex;align-items:center;gap:4px;margin-left:auto;padding:0;border:0}
.pwa5-photo-editor .photo-editor-action-cluster button.rh-icon-button{box-sizing:border-box;flex:0 0 42px;width:42px;height:42px;min-width:42px;min-height:42px;max-width:42px;max-height:42px;aspect-ratio:1/1;padding:0}
.pwa5-photo-editor .photo-editor-action-cluster output{min-width:44px;text-align:center;color:#627b91;font-size:12px;font-weight:700}
.pwa5-photo-editor .photo-editor-workspace{position:relative;display:grid;min-width:0;min-height:0;overflow:hidden;background:#e7edf2}
.pwa5-photo-editor .photo-editor-stage{position:absolute;inset:0;display:block;min-width:0;min-height:0;margin:0;padding:0;overflow:hidden;background:#e7edf2;box-shadow:none;touch-action:none}
.pwa5-photo-editor .photo-editor-stage>div{width:100%!important;height:100%!important}
.pwa5-photo-editor .photo-editor-stage canvas{max-width:none;max-height:none;background:transparent;box-shadow:none;object-fit:unset;touch-action:none}
.pwa5-photo-editor .photo-editor-inspector{position:absolute;z-index:12;top:10px;right:10px;bottom:10px;width:min(292px,calc(100% - 20px));overflow:auto;border:1px solid #cad7e8;border-radius:12px;padding:14px;background:#fbfcfd;box-shadow:-8px 8px 24px rgba(18,41,59,.18)}
.pwa5-photo-editor .photo-editor-inspector[hidden]{display:none}
.pwa5-photo-editor .photo-inspector-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.pwa5-photo-editor .photo-editor-inspector>label{display:grid;gap:5px;margin:12px 0;color:#19324b;font-size:12px;font-weight:700}
.pwa5-photo-editor .photo-editor-inspector :is(input,select){width:100%;min-height:40px;margin:0}
.pwa5-photo-editor .photo-inspector-buttons{display:grid;gap:7px;margin-top:14px}
.pwa5-photo-editor .photo-inspector-buttons button{display:flex;align-items:center;gap:8px;width:100%;min-height:42px;border:1px solid #cad7e8;border-radius:8px;padding:8px 10px;background:#fff;color:#19324b;font-weight:700;text-align:left}
.pwa5-photo-editor .photo-inspector-buttons button.active{border-color:#155bd0;background:#155bd0;color:#fff}
.pwa5-photo-editor .photo-inspector-buttons svg{width:20px;height:20px;flex:0 0 20px}
.pwa5-photo-editor .photo-editor-hint{z-index:9}
.pwa5-photo-editor .photo-editor-shell>footer{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:60px;padding:8px 14px}
.pwa5-photo-editor .photo-editor-shell>footer>[data-editor-stats]{min-width:0;overflow:hidden;color:#61778a;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.pwa5-photo-editor .photo-editor-shell>footer>div{display:flex;flex:0 0 auto;gap:8px}
.pwa5-photo-editor .photo-editor-shell>footer button svg,.photo-quick-edit button svg{display:block;width:20px;height:20px;flex:0 0 20px}
.pwa5-photo-editor .photo-editor-tool-picker{position:absolute;z-index:20;inset:50% auto auto 50%;width:min(620px,calc(100% - 28px));max-height:calc(100% - 28px);transform:translate(-50%,-50%);overflow:auto;border:1px solid #c5d2df;border-radius:13px;background:#fff;box-shadow:0 20px 60px rgba(18,41,59,.35)}
.pwa5-photo-editor .photo-editor-tool-picker[hidden]{display:none}
.pwa5-photo-editor .photo-editor-tool-picker>header{display:flex;min-height:58px;align-items:center;justify-content:space-between;padding:8px 12px}
.pwa5-photo-editor .photo-editor-tool-picker>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:12px}
.pwa5-photo-editor .photo-editor-tool-picker button.rh-icon-button{min-height:82px;flex-direction:column;gap:7px}
.pwa5-photo-editor .photo-editor-tool-picker button.rh-icon-button>.rh-ui-icon{width:32px;height:32px;min-width:32px;min-height:32px;max-width:32px;max-height:32px;flex-basis:32px}
.photo-quick-edit{width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 24px);border:1px solid #c5d2df;border-radius:13px;padding:0;background:#fff;box-shadow:0 20px 60px rgba(18,41,59,.35)}
.photo-quick-edit::backdrop{background:#12293bcc}
.photo-quick-edit header,.photo-quick-edit footer{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:12px 14px;border-bottom:1px solid #dce4ec}
.photo-quick-edit header>div{display:grid}.photo-quick-edit footer{flex-wrap:wrap;border-top:1px solid #dce4ec;border-bottom:0}
.photo-quick-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}
.photo-quick-fields label{display:grid;gap:5px;font-size:12px;font-weight:700}.photo-quick-fields textarea{resize:vertical}.photo-quick-fields :is(input,textarea){width:100%;margin:0}
.photo-quick-edit .error{padding-inline:14px}
.photo-metadata-flyout{position:absolute;z-index:16;box-sizing:border-box;width:min(320px,calc(100% - 20px));max-height:calc(100% - 20px);overflow:auto;border:1px solid #9fb7c8;border-radius:12px;background:rgba(255,255,255,.96);color:#19324b;box-shadow:0 12px 34px rgba(18,41,59,.3);backdrop-filter:blur(7px)}
.photo-metadata-flyout[hidden]{display:none}.photo-metadata-flyout.dragging{box-shadow:0 16px 42px rgba(21,91,234,.34)}
.photo-metadata-flyout>header{display:flex;align-items:center;gap:7px;min-height:42px;border-bottom:1px solid #dce4ec;padding:5px 6px 5px 9px;background:#edf4ff;cursor:grab;touch-action:none;user-select:none}.photo-metadata-flyout.dragging>header{cursor:grabbing}.photo-metadata-flyout>header strong{flex:1;font-size:.88rem}.photo-metadata-flyout>header small{color:#627b91;font-size:.65rem}.photo-metadata-flyout .photo-metadata-grip{display:grid;place-items:center;color:#155bea}.photo-metadata-flyout .photo-metadata-grip svg{width:19px;height:19px}.photo-metadata-flyout .photo-square-button{flex:0 0 32px!important;inline-size:32px!important;block-size:32px!important;min-inline-size:32px!important;min-block-size:32px!important;max-inline-size:32px!important;max-block-size:32px!important;border-radius:8px!important}.photo-metadata-flyout .photo-square-button svg{width:17px!important;height:17px!important}
.photo-metadata-flyout>form{display:grid;gap:9px;padding:10px}.photo-metadata-flyout label{display:grid;gap:4px;font-size:11px;font-weight:750}.photo-metadata-flyout :is(textarea,input[type="number"]){box-sizing:border-box;width:100%;min-height:36px;margin:0;border:1px solid #cbd7e3;border-radius:7px;padding:7px 8px;color:#1e3c58;background:#fff;font:inherit}.photo-metadata-flyout textarea{min-height:64px;resize:vertical}.photo-metadata-row{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(92px,.75fr);gap:8px}.photo-metadata-flyout .photo-report-field{display:flex;align-items:center;gap:7px;min-height:38px;margin-top:19px;border:1px solid #dce4ec;border-radius:7px;padding:5px 7px;background:#f7fafc}.photo-metadata-flyout .photo-report-field input{width:21px;height:21px;margin:0}.photo-metadata-flyout .metadata-save-state{min-height:18px;margin:0;color:#526b82;font-size:10px}.photo-metadata-flyout .metadata-save-state[data-state="saved"]{color:#147248;font-weight:750}.photo-metadata-flyout .metadata-save-state[data-state="error"]{color:#b1263d;font-weight:750}
@media(max-width:820px){.pwa5-photo-editor .photo-editor-toolbar{grid-template-columns:minmax(0,1fr);grid-template-areas:"tools" "context" "actions"}.pwa5-photo-editor .photo-editor-style-controls{width:100%;overflow-x:auto;padding-bottom:2px}.pwa5-photo-editor .photo-editor-action-cluster{justify-self:end;margin-left:0}.pwa5-photo-editor .photo-editor-action-cluster output{min-width:48px}}
@media(max-width:720px){.pwa5-photo-editor{width:100vw;height:100dvh;max-width:none;max-height:none;border-radius:0}.pwa5-photo-editor .photo-editor-toolbar{padding:6px}.pwa5-photo-editor .photo-editor-tool-picker>div{grid-template-columns:repeat(3,minmax(0,1fr))}.pwa5-photo-editor .photo-editor-shell>footer>[data-editor-stats]{display:none}}
@media(max-width:520px){.pwa5-photo-editor .photo-editor-tool-row{grid-template-columns:repeat(3,minmax(0,1fr))}.pwa5-photo-editor .photo-editor-tool-row>button.rh-icon-button{min-height:50px}.pwa5-photo-editor .photo-editor-toolbar{grid-template-columns:1fr;grid-template-areas:"tools" "context" "actions"}.pwa5-photo-editor .photo-editor-action-cluster{margin-left:0;justify-content:center}.pwa5-photo-editor .photo-editor-style-controls{justify-content:center}.pwa5-photo-editor .photo-editor-tool-picker>div,.photo-quick-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.pwa5-photo-editor .photo-editor-shell>footer{padding:7px}.pwa5-photo-editor .photo-editor-shell>footer>div{width:100%}.pwa5-photo-editor .photo-editor-shell>footer button{flex:1;min-width:0}}
.pdf-viewer-dialog{width:min(1180px,calc(100vw - 24px));height:min(860px,calc(100dvh - 24px));padding:0;border:0;border-radius:18px;box-shadow:0 24px 80px rgba(4,34,34,.35);background:#f5f8f6}.pdf-viewer-dialog::backdrop{background:rgba(4,28,29,.72)}.pdf-viewer-shell{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr)}.pdf-viewer-shell>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;background:#fff;border-bottom:1px solid #d8e3de}.pdf-viewer-shell>header>div:first-child{display:grid;gap:3px;min-width:0}.pdf-viewer-shell>header strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pdf-viewer-shell>header small{color:#61716c}.pdf-viewer-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.pdf-viewer-actions button,.pdf-viewer-dialog aside button{min-height:38px;border:1px solid #c8d8d2;border-radius:10px;background:#fff;color:#006e66;font-weight:700;padding:7px 11px}.pdf-viewer-actions output{min-width:54px;text-align:center}.pdf-viewer-body{min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 270px}.pdf-viewer-body iframe{width:100%;height:100%;border:0;background:#dfe6e3}.pdf-viewer-body aside{overflow:auto;padding:14px;background:#fff;border-left:1px solid #d8e3de}.pdf-viewer-body aside h3{margin-top:0}.pdf-viewer-body aside [data-pdf-version]{width:100%;display:grid;text-align:left;margin-bottom:8px}.pdf-viewer-body aside [data-pdf-version].active{background:#dff2ed;border-color:#087b72}.pdf-viewer-body aside button small{font-weight:400;color:#61716c}.pdf-viewer-body aside form{display:grid;gap:9px;margin-top:20px;padding-top:16px;border-top:1px solid #d8e3de}.asset-file-row{display:grid!important;grid-template-columns:minmax(180px,1fr) minmax(260px,2fr)!important;align-items:start;gap:5px 18px}.asset-file-row:has(>input){grid-template-columns:24px minmax(180px,1fr) minmax(260px,2fr)!important}.asset-file-row>input{align-self:start;width:22px;height:22px;margin:2px 0 0}.asset-file-row>strong{display:block;min-width:0;overflow-wrap:anywhere;line-height:1.35}.asset-file-row>span{display:block;min-width:0;text-align:left!important;line-height:1.55}.asset-file-row .back-link{display:inline-flex;align-items:center;min-height:34px;margin:7px 12px 0 0;padding:4px 0}
@media(max-width:760px){.pdf-viewer-dialog{width:100vw;height:100dvh;max-width:none;max-height:none;border-radius:0}.pdf-viewer-shell>header{align-items:flex-start;flex-direction:column}.pdf-viewer-actions{justify-content:flex-start}.pdf-viewer-body{grid-template-columns:1fr;grid-template-rows:minmax(360px,1fr) auto}.pdf-viewer-body aside{max-height:34dvh;border-left:0;border-top:1px solid #d8e3de}.asset-file-row{grid-template-columns:minmax(0,1fr)!important}.asset-file-row:has(>input){grid-template-columns:24px minmax(0,1fr)!important}.asset-file-row:has(>input)>strong,.asset-file-row:has(>input)>span{grid-column:2}.asset-file-row>span{grid-column:1}.asset-file-row .back-link{margin-right:10px}}
.media-source-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.media-source-actions>.media-source-picker{position:relative;display:grid;min-width:0;min-height:124px;place-items:center;align-content:center;gap:9px;margin:0;border:1px solid #bfd3cd;border-radius:16px;padding:18px;color:var(--teal);background:var(--surface-soft);text-align:center;cursor:pointer;transition:border-color .16s,background .16s,transform .16s}.media-source-actions>.media-source-picker:hover{border-color:var(--teal);background:var(--teal-soft);transform:translateY(-1px)}.media-source-actions>.media-source-picker:focus-within{outline:3px solid #f2863c;outline-offset:2px}.media-picker-title{display:grid;place-items:center;gap:8px;font-weight:850}.media-picker-title svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.native-file-input{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none}.media-picker-status{display:block;max-width:100%;overflow:hidden;color:var(--muted);font-size:12px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.media-source-actions>.media-source-picker>small:not(.media-picker-status){margin:0;color:var(--muted);font-size:11px}@media(max-width:620px){.media-source-actions{grid-template-columns:1fr}}
.signature-workspace{gap:14px}.signature-workspace .section-heading,.signature-history .section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.signature-workspace .section-heading h3,.signature-history .section-heading h3{margin:2px 0 0}.signature-workspace .section-heading>strong,.signature-history .section-heading>strong{padding:6px 10px;border-radius:999px;color:var(--teal);background:var(--teal-soft);font-size:12px}.signature-pad-label{margin:2px 0 -6px;color:var(--muted);font-size:12px;font-weight:800}.signature-workspace .signature-canvas{height:220px;border:2px solid #7ba89f;box-shadow:inset 0 1px 5px #102a2c12}.signature-workspace>.primary-action{width:100%;min-height:48px}.signature-history{gap:0}.signature-history article{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--line)}.signature-history article:first-of-type{margin-top:10px}.signature-history article div,.signature-history article strong,.signature-history article span{display:block}.signature-history article span,.signature-history time{margin-top:3px;color:var(--muted);font-size:12px}.signature-context-missing{border-color:#d9a45b;background:#fff9ef}@media(max-width:560px){.signature-workspace .section-heading,.signature-history .section-heading,.signature-history article{grid-template-columns:1fr;align-items:flex-start;flex-direction:column}.signature-history article{display:grid}.signature-history time{margin-top:0}}
.media-preview-section{display:grid;gap:16px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding-bottom:12px}.section-heading h3,.section-heading p{margin:0}.section-heading>strong{color:var(--muted);font-size:.9rem}.media-preview-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,132px));align-items:stretch;justify-content:start;gap:10px}.media-preview-card{position:relative;min-width:0;max-width:132px}.media-preview-tile{display:grid;grid-template-rows:auto 1fr;width:100%;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:12px;padding:0;background:#fff;text-align:left;color:inherit;box-shadow:0 5px 14px rgba(12,48,44,.08);cursor:pointer}.media-preview-tile:hover,.media-preview-tile:focus-visible{border-color:var(--accent);box-shadow:0 8px 20px rgba(12,48,44,.15);transform:translateY(-1px)}.media-preview-actions{position:absolute;z-index:2;top:6px;right:6px;display:grid;gap:5px}.media-preview-actions button{display:grid;place-items:center;width:32px;height:32px;border:1px solid rgba(11,87,82,.18);border-radius:10px;padding:0;background:rgba(255,255,255,.94);box-shadow:0 3px 9px rgba(4,34,34,.18)}.media-preview-actions svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.media-edit-action{color:#1769c2}.media-delete-action{color:#c82c38}.media-preview-frame{display:grid;place-items:center;aspect-ratio:4/3;background:var(--surface-soft);overflow:hidden;color:var(--muted);font-size:.76rem}.media-preview-frame img{width:100%;height:100%;object-fit:cover}.media-preview-caption{display:grid;align-content:start;gap:3px;min-height:50px;padding:7px 8px;font-size:.75rem}.media-preview-caption strong{display:-webkit-box;overflow:hidden;line-height:1.25;-webkit-box-orient:vertical;-webkit-line-clamp:2}.media-preview-caption small{display:-webkit-box;overflow:hidden;color:var(--muted);font-size:.68rem;line-height:1.25;-webkit-box-orient:vertical;-webkit-line-clamp:2}.media-preview-dialog{width:min(980px,calc(100vw - 24px));max-height:calc(100dvh - 24px);border:0;border-radius:18px;padding:0;background:#fff;box-shadow:0 24px 80px rgba(4,34,34,.38)}.media-preview-dialog::backdrop{background:rgba(4,28,29,.78)}.media-preview-dialog>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px}.media-preview-dialog img{grid-column:1/-1;width:100%;max-height:calc(100dvh - 110px);object-fit:contain;border-radius:12px;background:#eef3f1}.media-preview-dialog button{min-height:40px;border:1px solid var(--line);border-radius:10px;padding:8px 14px;background:#fff;color:var(--accent);font-weight:800}
.photo-editor-dialog{width:min(1180px,100vw);height:min(900px,100dvh);max-width:none;max-height:none;border:0;border-radius:18px;padding:0;background:#f5f8f6;box-shadow:0 24px 80px rgba(4,34,34,.42)}.photo-editor-dialog::backdrop{background:rgba(4,28,29,.82)}.photo-editor-shell{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;height:100%}.photo-editor-shell header,.photo-editor-shell footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#fff}.photo-editor-shell header div{display:grid}.photo-editor-shell header small{color:var(--muted)}.photo-editor-shell header button{font-size:1.8rem}.photo-editor-toolbar{display:flex;align-items:center;gap:6px;overflow-x:auto;padding:8px 10px;border-block:1px solid var(--line);background:#fff}.photo-editor-toolbar button,.photo-editor-image-tool{display:grid;place-items:center;flex:0 0 auto;min-width:54px;min-height:52px;border:1px solid var(--line);border-radius:10px;padding:5px;background:#fff;color:var(--accent);font:inherit;font-size:.68rem;font-weight:800;cursor:pointer}.photo-editor-toolbar button.active{border-color:var(--accent);background:var(--accent);color:#fff}.photo-editor-toolbar svg,.photo-editor-shell footer svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.photo-editor-color,.photo-editor-width{display:grid;flex:0 0 auto;gap:2px;color:var(--muted);font-size:.7rem;font-weight:800}.photo-editor-color input{width:52px;height:30px;padding:1px}.photo-editor-width input{width:100px}.photo-editor-stage{position:relative;display:grid;place-items:center;min-height:0;overflow:auto;padding:12px;background:#dce5e1}.photo-editor-stage canvas{display:block;max-width:100%;max-height:100%;background:#fff;box-shadow:0 8px 24px rgba(4,34,34,.2);touch-action:none}.photo-editor-hint{position:absolute;left:16px;bottom:14px;max-width:calc(100% - 32px);border-radius:8px;padding:6px 9px;background:rgba(4,34,34,.82);color:#fff;font-size:.78rem}.photo-editor-hint:empty{display:none}.photo-editor-shell footer button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;border:1px solid var(--line);border-radius:11px;padding:8px 14px;background:#fff;color:var(--accent);font-weight:800}.photo-editor-shell footer .primary-action{margin:0;background:var(--accent);color:#fff}
@media(max-width:620px){.media-preview-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.media-preview-card{max-width:none}.media-preview-caption{padding:6px}.media-preview-dialog,.photo-editor-dialog{width:100vw;max-width:none;height:100dvh;max-height:none;border-radius:0}.photo-editor-toolbar button,.photo-editor-image-tool{min-width:48px}.photo-editor-shell header small{display:none}.photo-editor-shell footer{padding:8px}.photo-editor-shell footer button{font-size:.78rem;padding:7px 9px}}@media(max-width:390px){.media-preview-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
.media-preview-section>.section-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;padding:0 0 12px;border-top:0;border-bottom:1px solid var(--line)}
.media-preview-section>.media-preview-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,184px));align-items:stretch;justify-content:start;gap:12px;padding:0;border-top:0}
.media-preview-section .media-preview-card{max-width:184px}
@media(max-width:620px){.media-preview-section>.media-preview-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.media-preview-section .media-preview-card{max-width:none}}
@media(max-width:460px){.media-preview-section>.media-preview-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
.media-preview-section>.media-preview-gallery{grid-template-columns:repeat(auto-fill,minmax(min(140px,100%),1fr));gap:10px}
.media-preview-section .media-preview-card{width:100%;max-width:none}
.media-preview-section .media-preview-tile{grid-template-rows:auto 56px;height:100%}
.media-preview-section .media-preview-frame{position:relative;width:100%;aspect-ratio:4/3;background:#edf3f0}
.media-preview-section .media-preview-frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#edf3f0}
.media-preview-section .media-preview-actions{top:6px;right:6px;display:flex;flex-direction:row;gap:4px}
.media-preview-section .media-preview-actions button{width:30px;height:30px;border-radius:9px}
.media-preview-section .media-preview-caption{height:56px;min-height:56px;overflow:hidden;padding:6px 7px}
.photo-editor-shell{grid-template-rows:auto auto minmax(0,1fr) auto;background:#f7f9f8}
.photo-editor-shell header{border-bottom:1px solid var(--line);box-shadow:0 2px 10px rgba(16,49,47,.06)}
.photo-editor-shell header>div{gap:2px;min-width:0}
.photo-editor-shell header strong{overflow:hidden;font-size:1.06rem;text-overflow:ellipsis;white-space:nowrap}
.photo-editor-eyebrow{color:var(--teal);font-size:.62rem;font-weight:900;letter-spacing:.16em}
.photo-editor-shell header>[data-editor-close]{display:grid;flex:0 0 42px;width:42px;height:42px;place-items:center;border:1px solid #cbd8d4;border-radius:10px;padding:0;background:#fff;color:#193c39;line-height:1}
.photo-editor-toolbar{display:grid;align-items:stretch;gap:5px;overflow:visible;padding:7px 10px;background:#fff}
.photo-editor-tool-row,.photo-editor-action-row,.photo-editor-action-cluster,.photo-editor-style-controls{display:flex;align-items:center;gap:5px;min-width:0}
.photo-editor-tool-row,.photo-editor-action-row{overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}
.photo-editor-tool-row{width:100%;padding-bottom:1px}
.photo-editor-action-row{padding-top:5px;border-top:1px solid #e0e8e5}
.photo-editor-action-cluster{flex:0 0 auto;padding-right:5px;border-right:1px solid #d8e3df}
.photo-editor-action-cluster:last-of-type{border-right:0}
.photo-editor-toolbar button,.photo-editor-image-tool{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:0 0 auto;min-width:44px;min-height:44px;border:1px solid #afc8f0;border-radius:9px;padding:7px 9px;background:#eef4ff;color:#155bea;font-size:.7rem;font-weight:800;white-space:nowrap}
.photo-editor-image-tool,.photo-editor-color,.photo-editor-width{margin:0!important}
.photo-editor-toolbar button:hover,.photo-editor-image-tool:hover{border-color:#769fdf;background:#e2ecfd}
.photo-editor-toolbar button.active{border-color:#155bd0;background:#155bd0;color:#fff}
.photo-editor-toolbar svg{width:21px;height:21px;flex:0 0 21px;stroke-width:2.6}
.photo-editor-style-controls{flex:0 0 auto;padding:3px 7px;border:1px solid #d5e0dc;border-radius:9px;background:#f7faf9}
.photo-editor-color,.photo-editor-width{display:flex;align-items:center;gap:6px;color:#465f5b;font-size:.68rem;font-weight:800;white-space:nowrap}
.photo-editor-color input{width:38px;height:32px;border:1px solid #c5d4cf;border-radius:7px;padding:2px;background:#fff}
.photo-editor-width input{flex:0 0 96px;width:96px!important;height:28px;min-height:0!important;margin:0!important;padding:0!important;accent-color:#155bd0}
.photo-editor-stage{margin:0 10px;background:#e7edeb;box-shadow:inset 0 0 0 1px #d5dfdc}
.photo-editor-shell footer{border-top:1px solid var(--line);box-shadow:0 -2px 10px rgba(16,49,47,.06)}
.photo-editor-shell footer .primary-action{border-color:#168350;background:#168350;color:#fff}
.time-running-clock{display:grid;justify-items:center;gap:5px;margin:4px 0 12px;padding:18px;border:1px solid #add4cb;border-radius:16px;background:linear-gradient(145deg,#f4fbf8,#e5f4ef);text-align:center}.time-running-clock small,.time-running-clock span{color:var(--muted);font-weight:750}.time-running-clock output{color:var(--teal);font-size:clamp(2.1rem,10vw,4rem);font-variant-numeric:tabular-nums;font-weight:900;letter-spacing:.04em;line-height:1.05}.time-running-note{margin:0 0 12px;color:var(--muted);font-size:.82rem;line-height:1.45}
.photo-editor-shell footer .primary-action:hover{background:#126d43}
@media(max-width:760px){.photo-editor-dialog{width:100vw;height:100dvh;max-width:none;max-height:none;border-radius:0}.photo-editor-shell header{padding:9px 11px}.photo-editor-shell header small{display:none}.photo-editor-toolbar{padding:6px}.photo-editor-toolbar button,.photo-editor-image-tool{min-height:42px;padding:6px 8px}.photo-editor-stage{margin:0 6px}.photo-editor-shell footer{padding:8px 10px}.photo-editor-shell footer button{font-size:.78rem;padding:7px 9px}}
@media(max-width:430px){.photo-editor-toolbar button span,.photo-editor-image-tool span{display:none}.photo-editor-toolbar button,.photo-editor-image-tool{width:42px;min-width:42px;padding:6px}.photo-editor-width>span,.photo-editor-color>span{display:none}.photo-editor-width input{flex-basis:76px;width:76px!important}}

/* PWA5-orientierter Fotoarbeitsplatz: feste Werkzeugmatrix, getrennte
   Kontextleiste und eine rechnerisch proportional eingepasste Bildfläche. */
.media-preview-section>.media-preview-gallery{grid-template-columns:repeat(3,minmax(0,1fr));max-width:680px;gap:10px}
.media-preview-section .media-preview-frame img{object-fit:cover}
.media-preview-section .media-preview-actions{display:grid;grid-template-columns:1fr;gap:5px}
.media-preview-section .media-preview-actions button{width:34px;height:34px}
.photo-editor-shell{position:relative}
.photo-editor-toolbar{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"tools" "context";gap:5px}
.photo-editor-tool-row{grid-area:tools;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:stretch;width:100%;overflow:visible}
.photo-editor-tool-row>button{min-width:0!important;min-height:52px;flex-direction:column;gap:3px;padding:5px 4px!important;white-space:normal;line-height:1.15}
.photo-editor-action-row{grid-area:context;display:flex;justify-content:space-between;overflow-x:auto}
.photo-editor-action-cluster{display:flex;margin-left:auto;padding:0;border:0}
.photo-editor-action-cluster button,.photo-editor-action-cluster .photo-editor-image-tool{padding:7px 8px}
.photo-editor-stage{overflow:hidden;isolation:isolate}
.photo-editor-stage canvas{width:auto;height:auto;max-width:none;max-height:none;object-fit:contain;transform:none;transform-origin:center center}
.photo-editor-tool-picker{position:absolute;z-index:20;inset:50% auto auto 50%;width:min(430px,calc(100% - 28px));transform:translate(-50%,-50%);overflow:hidden;border:1px solid #c5d2df;border-radius:13px;background:#fff;box-shadow:0 20px 60px rgba(18,41,59,.35)}
.photo-editor-tool-picker[hidden]{display:none}
.photo-editor-tool-picker header{display:flex;min-height:54px;padding:8px 12px}
.photo-editor-tool-picker header button{display:grid;width:40px;height:40px;place-items:center;border:1px solid #cad7e8;border-radius:9px;background:#fff;color:#19324b;font-size:1.4rem}
.photo-editor-tool-picker>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px}
.photo-editor-tool-picker>div button{display:flex;min-height:76px;align-items:center;justify-content:center;gap:9px;border:1px solid #afc8f0;border-radius:10px;background:#eef4ff;color:#155bea;font-weight:800}
.photo-editor-tool-picker svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
@media(min-width:801px){.photo-editor-tool-row{display:flex;flex-wrap:wrap}.photo-editor-tool-row>button{min-width:76px!important;flex:0 0 auto;flex-direction:row}}
@media(max-width:560px){.media-preview-section>.media-preview-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.photo-editor-tool-row{grid-template-columns:repeat(3,minmax(0,1fr))}.photo-editor-tool-row>button{min-height:46px}.photo-editor-action-row{align-items:stretch}.photo-editor-style-controls{flex:1 1 auto}.photo-editor-action-cluster button span,.photo-editor-action-cluster .photo-editor-image-tool span{display:none}.photo-editor-action-cluster button,.photo-editor-action-cluster .photo-editor-image-tool{width:40px;min-width:40px;padding:5px}.photo-editor-shell footer button{min-width:0}.photo-editor-tool-picker>div{grid-template-columns:1fr 1fr}}

/* PWA5-orientierte, frei verschiebbare Bildinformationen. */
.photo-metadata-flyout{right:10px;top:10px;border-color:rgba(200,215,232,.94);background:rgba(255,255,255,.93);color:#172b45;box-shadow:0 18px 54px rgba(10,30,55,.32);backdrop-filter:blur(10px) saturate(1.06);-webkit-backdrop-filter:blur(10px) saturate(1.06);will-change:left,top}
.photo-metadata-flyout>header{border-bottom-color:rgba(219,229,240,.96);background:rgba(247,250,255,.96);color:#172b45}
.photo-metadata-flyout>header strong{flex:0 1 auto;white-space:nowrap}
.photo-metadata-flyout>header [data-metadata-summary]{min-width:0;flex:1;overflow:hidden;color:#52657f;font-weight:750;text-align:right;text-overflow:ellipsis;white-space:nowrap}
.photo-metadata-flyout>header [data-metadata-summary][data-complete="true"]{color:#157347}
.photo-metadata-flyout .photo-metadata-grip,.photo-metadata-flyout .photo-metadata-collapse{color:#155bea!important}
.photo-metadata-flyout :is(textarea,input[type="number"]){background:rgba(255,255,255,.96)}
.photo-metadata-flyout .photo-report-field{background:rgba(247,250,252,.88)}
.photo-metadata-collapse{color:#155bea!important}
.photo-metadata-chevron{display:block;width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translate(-1px,-1px);transition:transform .16s ease}
.photo-metadata-flyout.collapsed{width:min(316px,calc(100% - 20px));max-height:48px;overflow:hidden;background:rgba(247,250,255,.94)}
.photo-metadata-flyout.collapsed>header{border-bottom:0;background:rgba(247,250,255,.96)}
.photo-metadata-flyout.collapsed>form{display:none}
.photo-metadata-flyout.collapsed .photo-metadata-chevron{transform:rotate(-135deg) translate(-1px,-1px)}

.media-preview-section>.media-preview-gallery{grid-template-columns:repeat(3,minmax(0,1fr));max-width:760px;gap:10px}
.media-preview-section .media-preview-card{border:1px solid transparent;border-radius:14px}
.media-preview-section .media-preview-card:is(.is-edited,.is-report){border-color:#168350}
.media-preview-section .media-preview-tile{display:grid;grid-template-rows:auto 26px;height:100%;overflow:hidden;border-radius:13px;background:#fff}
.media-preview-section .media-preview-frame{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:#edf3f0}
.media-preview-section .media-preview-frame>img{position:absolute;z-index:0;inset:0;width:100%;height:100%;object-fit:cover;background:#edf3f0}
.media-preview-badges{position:absolute;z-index:2;top:7px;left:7px;display:grid;justify-items:start;gap:5px;max-width:calc(100% - 52px);pointer-events:none}
.media-preview-badge{display:block;overflow:hidden;max-width:100%;border-radius:999px;padding:4px 8px;background:rgba(14,50,84,.93);color:#fff;font-size:.68rem;font-weight:900;line-height:1.1;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 2px 7px rgba(4,34,34,.22)}
.media-preview-badge-report{background:rgba(22,131,80,.94)}
.media-preview-badge-edited{background:rgba(21,91,234,.92)}
.media-preview-description{position:absolute;z-index:2;right:7px;bottom:7px;left:7px;display:-webkit-box;overflow:hidden;border:1px solid rgba(255,255,255,.18);border-radius:9px;padding:7px 9px;background:rgba(8,15,22,.93);color:#fff;font-size:.74rem;font-weight:850;line-height:1.28;letter-spacing:.01em;text-align:left;-webkit-box-orient:vertical;-webkit-line-clamp:2;box-shadow:0 3px 11px rgba(0,0,0,.42)}
.media-preview-context{display:block;overflow:hidden;height:26px;padding:6px 7px;color:var(--muted);font-size:.64rem;font-weight:700;line-height:1.2;text-align:left;text-overflow:ellipsis;white-space:nowrap}
.media-preview-section .media-preview-actions{z-index:4;top:7px;right:7px;display:grid;grid-template-columns:1fr;gap:5px}
.media-preview-section .media-preview-actions button{inline-size:34px;block-size:34px;min-inline-size:34px;min-block-size:34px;max-inline-size:34px;max-block-size:34px;border-radius:10px}
@media(max-width:560px){.media-preview-section>.media-preview-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.media-preview-badge{font-size:.64rem;padding:4px 7px}.media-preview-description{font-size:.72rem}}

/* v70: Status und Bildtext müssen auch gegen allgemeine Kartenregeln
   durchgehend kontrastreich bleiben. */
.app-record-section.media-preview-section>.media-preview-gallery .media-preview-badge{color:#fff!important;text-align:left!important;text-shadow:0 1px 2px rgba(0,0,0,.48)}
.app-record-section.media-preview-section>.media-preview-gallery .media-preview-description{color:#fff!important;text-align:left!important;text-shadow:0 1px 2px rgba(0,0,0,.58)}

/* v71: Vollbildgalerie mit Tasten-, Pfeil- und Wischbedienung. */
.media-preview-dialog>.media-preview-dialog-shell{display:grid;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) auto;align-items:stretch;width:100%;height:100%;gap:0;padding:0}
.media-preview-dialog-shell>header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:10px 12px;border-bottom:1px solid #d8e3de;background:#fff}
.media-preview-dialog-shell>header>div{display:grid;min-width:0;gap:2px}
.media-preview-dialog-shell>header strong{overflow:hidden;color:var(--ink);text-overflow:ellipsis;white-space:nowrap}
.media-preview-dialog-shell>header span{color:var(--muted);font-size:.74rem;font-weight:800}
.media-preview-dialog-close{display:grid;flex:0 0 42px;width:42px;height:42px;place-items:center;border:1px solid var(--line);border-radius:11px;padding:0;background:#fff;color:var(--ink);font-size:1.75rem;line-height:1}
.media-preview-dialog-stage{position:relative;display:grid;min-height:0;place-items:center;overflow:hidden;background:#172321;touch-action:pan-y;outline:none}
.media-preview-dialog .media-preview-dialog-stage>img{grid-column:auto;width:100%;height:100%;max-height:none;object-fit:contain;border-radius:0;background:#172321;user-select:none;-webkit-user-drag:none}
.media-preview-dialog-stage>button{position:absolute;z-index:2;top:50%;display:grid;width:48px;height:48px;place-items:center;transform:translateY(-50%);border:1px solid rgba(255,255,255,.62);border-radius:50%;padding:0;background:rgba(4,34,34,.78);color:#fff;box-shadow:0 5px 20px rgba(0,0,0,.3)}
.media-preview-dialog-stage>button:disabled{display:none}
.media-preview-dialog-stage>button svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.media-preview-dialog-previous{left:12px}.media-preview-dialog-next{right:12px}
.media-preview-dialog-hint{margin:0;padding:8px 12px;color:#d9e7e3;background:#102f31;font-size:.72rem;text-align:center}
@media(max-width:760px){.media-preview-dialog{width:100vw;height:100dvh;max-width:none;max-height:none;border-radius:0}.media-preview-dialog-stage>button{width:44px;height:44px}.media-preview-dialog-previous{left:8px}.media-preview-dialog-next{right:8px}}

/* v73: Auch Hochformatbilder bestimmen nicht die Dialoghoehe. Das Bild liegt
   innerhalb der begrenzten Buehne und wird dort proportional eingepasst. */
.media-preview-dialog-stage{min-width:0;isolation:isolate}
.media-preview-dialog .media-preview-dialog-stage>img{position:absolute;z-index:0;inset:0;display:block;width:100%;height:100%;min-width:0;min-height:0}
@media(max-width:760px){.media-preview-dialog{box-sizing:border-box;margin:0}.media-preview-dialog>.media-preview-dialog-shell{min-height:0}}

/* v75: Interne Speicher- und Originalschutzinformationen werden nicht als
   Bedienhinweis angezeigt. */
.photo-editor-head small{display:none}

/* v79: Fachformulare orientieren sich an der bewährten PWA5-Darstellung,
   bleiben aber ohne Inline-Stile und damit mit der CSP vereinbar. */
.form-document-head{background:linear-gradient(135deg,#0d5b57,#12786f)}
.dynamic-order-form.pwa5-form{display:grid;gap:14px;padding:14px;background:#eef3f1}
.pwa5-form-block{overflow:hidden;border:1px solid #bdd3d3;border-radius:14px;background:rgb(218,241,245);box-shadow:0 5px 16px rgba(14,52,54,.07)}
.pwa5-form-block>h3{margin:0;padding:11px 14px;background:rgb(219,179,171);color:#172f31;font-size:1.05rem;line-height:1.25}
.pwa5-form-block-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}
.pwa5-form-block-body>label,.pwa5-form-block-body>fieldset,.pwa5-form-block-body>.form-signature-field,.pwa5-form-block-body>.pwa5-form-paragraph{grid-column:1/-1}
.pwa5-form-block-body>label{display:grid;gap:6px;font-weight:800}
.pwa5-form-block-body :is(input,select,textarea){border:1px solid #9ebabc;border-radius:9px;background:#fff}
.pwa5-form-block-body textarea{min-height:112px;resize:vertical}
.pwa5-form .form-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 10px}
.pwa5-form .form-check{display:flex;align-items:flex-start;gap:8px;min-height:38px;margin:0;padding:8px 10px;border:1px solid rgba(99,135,135,.28);border-radius:8px;background:rgba(255,255,255,.76);font-weight:750}
.pwa5-form .form-check input{flex:0 0 auto;width:20px;height:20px;margin:0}
.pwa5-form fieldset{margin:0;border:0;padding:0}.pwa5-form fieldset>legend{margin-bottom:8px;font-weight:900}
.pwa5-form--lo .pwa5-form-block-section_damage .pwa5-form-block-body{display:grid}
.pwa5-form--lvm .pwa5-form-block{border-color:#d7e1df;background:#fff}
.pwa5-form--lvm .pwa5-form-block>h3{background:#fff;border-bottom:1px solid #d7e1df;color:#17383a}
.pwa5-form--lvm .pwa5-form-block-body{grid-template-columns:1fr}
.pwa5-form--lvm .pwa5-lvm-question{display:grid;grid-column:1/-1;gap:9px;margin:0;padding:13px;border:1px solid #d6e2df;border-radius:12px;background:#f6f9f8;font-weight:850}
.pwa5-form--lvm .pwa5-lvm-question>span,.pwa5-form--lvm .pwa5-lvm-question>legend{font-size:1rem}
.pwa5-form--lvm .pwa5-lvm-question .form-option-grid{grid-template-columns:1fr}
.pwa5-form--assignment .pwa5-form-block,.pwa5-form--cession .pwa5-form-block{background:#f8fbfa}
.pwa5-form--assignment .pwa5-form-block>h3,.pwa5-form--cession .pwa5-form-block>h3{background:#dcefeb}
@media(max-width:620px){.dynamic-order-form.pwa5-form{padding:9px}.pwa5-form-block-body{grid-template-columns:1fr;padding:11px}.pwa5-form .form-option-grid{grid-template-columns:1fr}}
.form-order-masterdata{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px;margin:0 0 16px}.form-order-masterdata article{display:grid;align-content:start;gap:4px;min-width:0;padding:12px 14px;border:1px solid #c7d9d6;border-left:4px solid var(--teal);border-radius:11px;background:#f8fbfa}.form-order-masterdata article span{color:var(--teal);font-size:.72rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.form-order-masterdata article strong,.form-order-masterdata article small{min-width:0;overflow-wrap:anywhere}.form-order-masterdata article strong{font-size:1rem;line-height:1.35}.form-order-masterdata article small{color:var(--muted);font-size:.86rem;line-height:1.4}@media(max-width:620px){.form-order-masterdata{grid-template-columns:1fr;gap:8px}.form-order-masterdata article{padding:11px 12px}}
.dynamic-order-form [data-form-field][data-required-state]{position:relative;padding:12px;border:2px solid transparent;border-radius:11px;transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease}.dynamic-order-form [data-form-field][data-required-state]::before{display:block;margin:0 0 7px;font-size:.7rem;font-weight:900;letter-spacing:.045em;text-transform:uppercase}.dynamic-order-form [data-form-field].form-required-pending{border-color:#c73c48;background:#fff1f2;box-shadow:0 0 0 3px rgba(199,60,72,.08)}.dynamic-order-form [data-form-field].form-required-pending::before{content:'Pflichtfeld · noch offen';color:#a51f2e}.dynamic-order-form [data-form-field].form-required-complete{border-color:#24844f;background:#effaf3;box-shadow:0 0 0 3px rgba(36,132,79,.07)}.dynamic-order-form [data-form-field].form-required-complete::before{content:'Pflichtfeld · vollständig';color:#17683c}.dynamic-order-form [data-form-field].form-required-pending :is(input,select,textarea,.signature-canvas){border-color:#c73c48!important}.dynamic-order-form [data-form-field].form-required-complete :is(input,select,textarea,.signature-canvas){border-color:#24844f!important}@media(max-width:620px){.dynamic-order-form [data-form-field][data-required-state]{padding:10px}}

/* v79: kompakte Aufklapper und PWA5-Messstellen mit vollständiger Offline-Bearbeitung */
main details>summary::after{content:'';display:block;flex:0 0 10px;width:10px;height:10px;min-height:0;margin-left:auto;padding:0;border:0;border-right:2px solid currentColor;border-bottom:2px solid currentColor;border-radius:0;background:transparent;transform:rotate(45deg) translateY(-2px);transition:transform .16s ease}
main details[open]>summary::after{content:'';transform:rotate(225deg) translate(-2px,-2px)}
.measurement-create-panel>summary,.measurement-add-reading>summary{min-height:44px;gap:12px;padding:10px 14px}
.measurement-method-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.measurement-add-reading{margin:0;border:1px solid var(--line);border-radius:12px;background:#f8fbfa;overflow:hidden}
.measurement-add-reading>summary{display:flex;align-items:center;color:var(--teal);font-size:13px;font-weight:850}
.measurement-add-reading>form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}
.measurement-add-reading .measurement-value-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-column:1/-1;gap:10px}
.measurement-add-reading .primary-action,.measurement-add-reading .error,.measurement-add-reading .wide{grid-column:1/-1}
.measurement-photo-capture{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.measurement-photo-capture label{position:relative;display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:8px 12px;border:1px solid #bad4d0;border-radius:11px;background:#eef7f4;color:var(--teal);font-size:12px;font-weight:850;cursor:pointer}
.measurement-photo-capture svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
.measurement-photo-capture input{position:absolute;inset:0;opacity:0;cursor:pointer}
.measurement-point-card>.media-preview-section{margin:12px 0;padding:12px;border-radius:14px}
.measurement-point-card>.media-preview-section .media-preview-gallery{grid-template-columns:repeat(auto-fill,minmax(128px,1fr))}
.measurement-point-card>.media-preview-section .media-preview-card{min-width:0}
.media-preview-tile.pending{position:relative}
@media(max-width:720px){.measurement-method-actions{grid-template-columns:1fr}.measurement-add-reading>form{grid-template-columns:1fr}.measurement-add-reading .measurement-value-fields{grid-template-columns:1fr}.measurement-add-reading>form>*{grid-column:1!important}}
.mobile-room-details[open]{overflow:visible}.mobile-room-details[open] .mobile-catalog-field:focus-within{z-index:30}.mobile-catalog-options{top:calc(100% + 3px)}
.order-head-room dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding:12px}.order-head-room dl div{padding:9px 11px;border-radius:10px;background:var(--paper)}.order-head-room dt{color:var(--muted);font-size:10px;text-transform:uppercase}.order-head-room dd{margin:3px 0 0;font-weight:750}
.planstudio-frame-dialog{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#eef3f1}.planstudio-frame-dialog::backdrop{background:rgba(4,28,29,.76)}.planstudio-frame{display:block;width:100%;height:100%;border:0;background:#eef3f1}
@media(max-width:620px){.order-head-room dl{grid-template-columns:1fr}}
.project-party-summary{display:grid;gap:8px}.project-party-summary>div{display:grid;grid-template-columns:minmax(150px,.75fr) minmax(0,1.25fr);gap:3px 12px;padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:#f7faf9}.project-party-summary>div>span{grid-row:1/4;color:var(--teal);font-size:11px;font-weight:900;text-transform:uppercase}.project-party-summary>div>strong,.project-party-summary>div>small{min-width:0;overflow-wrap:anywhere}.project-party-summary>div>small{color:var(--muted)}
@media(max-width:620px){.project-party-summary>div{grid-template-columns:1fr}.project-party-summary>div>span{grid-row:auto}}
.planstudio-room-dialog{width:min(820px,calc(100vw - 24px));max-height:calc(100dvh - 24px);border:0;border-radius:18px;padding:0;background:#fff;color:var(--ink);box-shadow:0 24px 80px rgba(4,34,34,.38)}.planstudio-room-dialog::backdrop{background:rgba(4,28,29,.78)}.planstudio-room-dialog form{display:grid;gap:14px;padding:20px}.planstudio-room-dialog header{display:flex;align-items:center;justify-content:space-between}.planstudio-room-dialog h3,.planstudio-room-dialog p{margin:0}.planstudio-room-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.planstudio-room-fields label{display:grid;gap:6px;font-weight:800}.planstudio-room-fields :is(input,select){box-sizing:border-box;width:100%;min-height:48px;border:1px solid var(--line);border-radius:10px;padding:10px;background:#fff;color:var(--ink)}.planstudio-room-fields input[readonly]{background:var(--surface-soft);color:var(--muted)}.planstudio-room-dialog footer{display:flex;justify-content:flex-end;gap:10px}.planstudio-room-dialog footer button{min-height:46px}@media(max-width:620px){.planstudio-room-dialog{width:100vw;height:100dvh;max-height:none;border-radius:0}.planstudio-room-fields{grid-template-columns:1fr}.planstudio-room-dialog form{overflow:auto}.planstudio-room-dialog footer{position:sticky;bottom:0;padding-top:10px;background:#fff}}

/* v84: Der Smartphone-Editor bleibt ein Fotoarbeitsplatz und wird nicht zu
   einer hohen Werkzeugmatrix. Beide Leisten sind flach und separat wischbar.
   Die freie Farbauswahl ersetzt mobil die redundanten Schnellfarben. */
@media(max-width:600px){
  .pwa5-photo-editor .photo-editor-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:5px;overflow:hidden;padding:5px 6px}
  .pwa5-photo-editor .photo-editor-tool-row{display:flex;flex:0 0 auto;justify-content:flex-start;gap:5px;width:100%;overflow-x:auto;overflow-y:hidden;padding:0 0 2px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .pwa5-photo-editor .photo-editor-tool-row::-webkit-scrollbar,.pwa5-photo-editor .photo-editor-action-row::-webkit-scrollbar{display:none}
  .pwa5-photo-editor .photo-editor-tool-row>button.rh-icon-button{display:inline-flex;flex:0 0 43px;width:43px;min-width:43px!important;height:43px;min-height:43px;align-items:center;justify-content:center;padding:5px!important}
  .pwa5-photo-editor .photo-editor-tool-row>button.rh-icon-button span{display:none}
  .pwa5-photo-editor .photo-editor-action-row{display:flex;flex:0 0 auto;justify-content:flex-start;gap:6px;width:100%;overflow-x:auto;overflow-y:hidden;padding:5px 0 1px;border-top:1px solid #e0e8e5;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .pwa5-photo-editor .photo-editor-style-controls{flex:0 0 auto;justify-content:flex-start;gap:5px;padding:2px 5px}
  .pwa5-photo-editor .photo-editor-action-cluster{flex:0 0 auto;margin:0;padding:0 0 0 2px}
  .pwa5-photo-editor .photo-editor-action-cluster button{width:40px;min-width:40px;height:40px;min-height:40px;padding:5px}
  .pwa5-photo-editor .photo-editor-action-cluster button span{display:none}
  .pwa5-photo-editor .photo-editor-swatches{display:none}
  .pwa5-photo-editor .photo-editor-color input{width:34px;height:30px}
  .pwa5-photo-editor .photo-editor-width input{flex-basis:76px;width:76px!important}
  .pwa5-photo-editor .photo-metadata-flyout{width:min(300px,calc(100% - 16px));max-height:calc(100% - 16px)}
  .pwa5-photo-editor .photo-metadata-flyout.collapsed{width:min(300px,calc(100% - 16px))}
}

/* Die Navigation des geöffneten Auftrags bleibt direkt unter der App-Kopfzeile
   sichtbar. Alle Bereiche stehen ohne seitliche Pfeile in einem ruhigen Raster. */
.order-context-navigation{top:78px;border:1px solid #b9d8d3;border-top:4px solid var(--teal);background:linear-gradient(145deg,#f8fffd 0%,#edf7f4 100%);box-shadow:0 12px 30px rgba(16,42,44,.14)}
.order-context-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 3px;color:var(--teal)}
.order-context-heading>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex:1;min-width:0}
.order-context-heading strong{font-size:13px;letter-spacing:.08em;text-transform:uppercase}
.order-context-heading span{color:#557174;font-size:11px;font-weight:750;text-align:right}
.order-context-collapse{display:none;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:7px 11px;border:1px solid #9bc8c1;border-radius:10px;color:var(--teal);background:#fff;font:inherit;font-size:12px;font-weight:850;cursor:pointer}
.order-context-collapse svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;transition:transform .18s ease}
.order-context-navigation .order-context-sections{display:grid;grid-template-columns:repeat(auto-fit,minmax(128px,1fr));gap:7px;min-width:0;overflow:visible;padding:0;background:transparent}
.order-context-navigation .order-context-sections button{width:100%;min-width:0;white-space:normal;text-align:center}
@media(max-width:1024px){
  .order-context-collapse{display:inline-flex;flex:0 0 auto}
  .order-context-navigation.is-collapsed{gap:0;padding-block:7px}
  .order-context-navigation.is-collapsed .order-context-sections{display:none}
  .order-context-navigation.is-collapsed .order-context-heading>div span{display:none}
  .order-context-navigation.is-collapsed .order-context-collapse svg{transform:rotate(180deg)}
}
@media(max-width:620px){
  .order-context-navigation{top:78px;z-index:9;margin-inline:-4px;border-radius:0 0 16px 16px;box-shadow:0 12px 28px rgba(16,42,44,.2)}
  .order-context-navigation .order-context-back{width:auto;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .order-context-heading>div{align-items:flex-start;flex-direction:column;gap:1px}
  .order-context-heading span{text-align:left}
  .order-context-navigation .order-context-sections{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Im Backoffice bleibt derselbe Editor erhalten, nur die doppelte App-Hülle entfällt. */
.backoffice-embed .shell{min-height:100dvh;padding-bottom:0}
.backoffice-embed .app-header,.backoffice-embed .quick-nav{display:none}
.backoffice-embed .main{max-width:none;padding:14px 16px 28px}
.backoffice-embed .order-context-navigation{top:0}
@media(max-width:620px){.backoffice-embed .main{padding:10px 10px 22px}.backoffice-embed .order-context-navigation{top:0}}

.appointment-exceptional-completion{margin-top:18px;border:1px solid #e5bd87;border-radius:14px;background:#fff9ef}
.appointment-exceptional-completion>summary{padding:13px 15px;color:#8b4809;font-weight:850;cursor:pointer}
.appointment-exceptional-completion[open]>summary{border-bottom:1px solid #edd5b4}
.appointment-exceptional-completion form{display:grid;gap:13px;padding:15px}
.appointment-exceptional-completion fieldset{display:grid;gap:8px;margin:0;padding:12px;border:1px solid #e4caa8;border-radius:12px}
.appointment-exceptional-completion fieldset label{display:flex;align-items:center;gap:8px}
.appointment-exceptional-completion textarea{min-height:105px}
.appointment-follow-up-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.warning-note{margin:0;padding:11px 12px;border-left:4px solid #e28a2c;border-radius:8px;background:#fff2dc;color:#70400d}
.danger-action{justify-self:start;min-height:44px;padding:9px 15px;border:1px solid #a54825;border-radius:11px;color:#fff;background:#a54825;font-weight:850;cursor:pointer}
.danger-action:disabled{opacity:.55;cursor:wait}
@media(max-width:560px){.appointment-follow-up-fields{grid-template-columns:1fr}.danger-action{width:100%}}
.generated-order-documents{border-color:#9fcfc5;background:linear-gradient(145deg,#fff,#f0f9f6)}
.generated-order-documents>.section-heading{display:flex!important;align-items:end;justify-content:space-between;padding:0 0 12px!important;border-top:0!important}
.generated-order-documents>.section-heading>div{display:block!important;padding:0!important;border:0!important}
.generated-order-documents>.section-heading .overline{margin:0 0 3px;color:var(--teal);font-size:10px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.generated-order-documents>.section-heading h3{margin:0}
.generated-order-documents>.section-heading>strong{display:grid;place-items:center;min-width:30px;height:30px;border-radius:999px;background:var(--teal-soft);color:var(--teal)}
.generated-order-documents>[data-generated-document-list]{display:grid!important;gap:0;padding:0!important;border:0!important}
.generated-order-documents .asset-file-row{padding:10px 0!important}
.generated-order-documents .asset-file-row strong{color:var(--ink)}
.asset-file-row.document-file-row{grid-template-columns:minmax(0,1fr) auto!important;align-items:center;gap:7px 16px;padding:10px 0;border-top:1px solid var(--line)}
.asset-file-row.document-file-row:has(>input){grid-template-columns:24px minmax(0,1fr) auto!important;column-gap:10px}
.document-file-info{display:grid;gap:3px;min-width:0}.document-file-info>strong{font-size:14px;line-height:1.35;overflow-wrap:anywhere}.document-file-meta{display:flex;align-items:baseline;gap:4px 10px;flex-wrap:wrap;line-height:1.4}.document-file-row .document-file-meta>span,.document-file-meta>small{color:var(--muted);font-size:11px;text-align:left;overflow-wrap:anywhere}.document-file-meta>small{white-space:nowrap}
.document-file-row .document-row-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;min-width:0;margin:0}.document-file-row .document-row-actions>button{grid-column:auto;width:100%;min-width:0;min-height:36px;margin:0;padding:6px 10px;border-radius:6px;font-size:12px;line-height:1.2;white-space:nowrap}.document-file-row .document-row-actions>button:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
@media(max-width:1024px){.asset-file-row.document-file-row{grid-template-columns:minmax(0,1fr)!important;gap:7px}.asset-file-row.document-file-row:has(>input){grid-template-columns:24px minmax(0,1fr)!important}.document-file-row:has(>input)>.document-file-info,.document-file-row:has(>input)>.document-row-actions{grid-column:2}.document-file-row>input{grid-row:1;align-self:center}.document-file-row .document-row-actions{width:100%}}
@media(max-width:480px){.document-file-row .document-row-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.document-file-row .document-row-actions>button{min-height:36px}}
.order-form-entries>.order-form-entry{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(260px,1.2fr);align-items:start;gap:12px 24px}.order-form-entry>strong{line-height:1.4}.order-form-entry>span{display:grid;gap:4px;text-align:left!important}.order-form-entry>span>small{color:var(--muted)}.order-form-entry-actions{display:flex;flex-wrap:wrap;gap:4px 12px}.order-form-entry-actions .back-link{min-height:34px;margin:0}.order-form-correction{margin-top:8px;border-top:1px solid var(--line);padding-top:9px}.order-form-correction>summary{color:var(--teal);font-weight:850;cursor:pointer}.order-form-correction form{display:grid;gap:10px;margin-top:10px;padding:12px;border-radius:12px;background:var(--surface-soft)}.order-form-correction form p{margin:0}.order-form-correction textarea{min-height:84px;resize:vertical}.order-form-correction .primary-action{justify-self:start;margin:0}@media(max-width:680px){.order-form-entries>.order-form-entry{grid-template-columns:1fr;gap:5px}.order-form-correction .primary-action{width:100%}}
.absence-balance{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 16px}.absence-balance article{display:grid;gap:4px;min-width:0;padding:13px;border:1px solid #bcd8d2;border-radius:14px;background:linear-gradient(145deg,#fff,#edf7f4)}.absence-balance span{color:var(--muted);font-size:11px}.absence-balance strong{overflow-wrap:anywhere;color:var(--teal);font-size:18px}.absence-app-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.absence-app-form>label{display:grid;gap:6px;min-width:0}.absence-app-form .wide{grid-column:1/-1}.absence-app-history{overflow:visible}.absence-app-list{display:grid;gap:11px}.absence-app-card{display:grid;gap:8px;min-width:0;padding:14px;border:1px solid var(--line);border-left:5px solid #6a8e8b;border-radius:13px;background:#fff}.absence-app-card header{display:flex;align-items:center;justify-content:space-between;gap:10px}.absence-app-card :is(p,small){margin:0;overflow-wrap:anywhere}.absence-app-card p{font-variant-numeric:tabular-nums}.absence-status{flex:0 0 auto;padding:5px 9px;border-radius:999px;background:#edf3f2;color:#365e59;font-size:11px;font-weight:850}.absence-app-card.status-approved{border-left-color:#2f9169}.absence-app-card.status-submitted{border-left-color:#c28b20}.absence-app-card.status-rejected,.absence-app-card.status-error{border-left-color:#bf4747}.absence-app-card.status-queued{border-left-color:#3f77aa}@media(max-width:680px){.absence-balance{grid-template-columns:repeat(2,minmax(0,1fr))}.absence-app-form{grid-template-columns:1fr}.absence-app-form .wide{grid-column:auto}.absence-app-card header{align-items:flex-start;flex-direction:column}.absence-status{align-self:flex-start}}@media(max-width:380px){.absence-balance{grid-template-columns:1fr}}
.time-welcome{margin-bottom:12px}.time-dashboard{margin-top:0;border-color:#9fcfc5;background:linear-gradient(145deg,#fff,#f4fbf9)}.time-history{display:grid;gap:12px}.time-history-controls{display:flex;align-items:end;justify-content:space-between;gap:12px}.time-history-controls>div:first-child{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.time-history-controls button{min-height:42px;padding:8px 14px;border:1px solid #bcd7d2;border-radius:10px;background:#eef5f3;color:var(--teal);font-weight:850}.time-history-controls button.active{background:var(--teal);color:#fff}.time-history-navigation{display:grid;grid-template-columns:auto auto auto minmax(160px,1fr);align-items:end;gap:6px}.time-history-controls label{display:grid;gap:4px;min-width:160px}.time-history h4{margin:0}.time-history-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.time-history-summary article{display:grid;gap:4px;min-width:0;padding:12px;border:1px solid #d5e8e4;border-radius:12px;background:#fff}.time-history-summary .time-balance-total{border-color:#98cbc2;background:#e7f5f1}.time-history-summary span{color:var(--muted);font-size:11px}.time-history-summary strong{overflow-wrap:anywhere;font-size:18px}.time-history-summary .negative,.time-day-status.negative{color:#a43b3b}.time-history-summary .positive,.time-day-status.positive{color:#237655}.time-history-summary .balanced,.time-day-status.balanced{color:var(--teal)}.time-balance-note{margin:0;padding:10px 12px;border-left:4px solid #c28b20;border-radius:8px;background:#fff8e8;color:#665020;font-size:12px;line-height:1.45}.time-history-days{display:grid;gap:9px}.time-history-day{display:grid;gap:8px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff}.time-history-day.has-absence{border-color:#b7d9ce;background:#fbfffd}.time-history-day>header{display:flex;align-items:center;justify-content:space-between;gap:10px}.time-history-day>header>div{display:grid}.time-history-day>header small{color:var(--muted)}.time-day-status{font-size:12px;font-weight:900;white-space:nowrap}.time-day-balance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0}.time-day-balance>div{display:grid;gap:2px;padding:7px 9px;border-radius:8px;background:#f3f7f6}.time-day-balance dt{color:var(--muted);font-size:10px}.time-day-balance dd{margin:0;font-size:12px;font-weight:850}.time-history-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;border-radius:9px;background:#f3f7f6}.time-history-entry small{text-align:right;color:var(--muted)}.time-history-absence{justify-self:start;padding:6px 9px;border-radius:999px;background:#fff1cf;color:#755816;font-size:11px;font-weight:850}.time-history-absence.approved{background:#dff2e7;color:#216246}.time-entry-tools{padding:0;overflow:hidden}.time-entry-tools>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;cursor:pointer;list-style:none}.time-entry-tools>summary::-webkit-details-marker{display:none}.time-entry-tools>summary span{display:grid;gap:3px}.time-entry-tools>summary small{color:var(--muted);font-size:11px;font-weight:500}.time-entry-tools>summary b{padding:6px 9px;border-radius:999px;color:var(--teal);background:var(--teal-soft);font-size:11px}.time-entry-tools[open]>summary{border-bottom:1px solid var(--line)}.time-entry-tools-body{display:grid!important;grid-template-columns:minmax(0,1fr);justify-content:stretch!important;width:100%;gap:12px;padding:16px!important;border:0!important}.time-capture,.time-today-list{width:100%;min-width:0}.time-capture-card{min-width:0;padding:15px;border:1px solid var(--line);border-radius:14px;background:#f8fbfa}.time-capture-card h3,.time-today-list h3{margin:0 0 12px}.time-today-list{padding:14px;border:1px solid var(--line);border-radius:14px}.time-today-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--line)}@media(max-width:980px){.time-history-controls{align-items:stretch;flex-direction:column}.time-history-controls>div:first-child{width:100%}.time-history-navigation{grid-template-columns:repeat(3,1fr) minmax(160px,1.2fr)}}@media(max-width:760px){.time-history-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.time-history-navigation{grid-template-columns:repeat(3,1fr)}.time-history-navigation label{grid-column:1/-1;width:100%}}@media(max-width:620px){.time-history-controls label{width:100%}.time-history-entry{align-items:flex-start;flex-direction:column}.time-history-entry small{text-align:left}.time-day-balance{grid-template-columns:repeat(2,minmax(0,1fr))}.time-history-navigation button{padding-inline:7px}.time-history-day>header{align-items:flex-start}.time-history-absence{max-width:100%;white-space:normal}}@media(max-width:380px){.time-history-summary{grid-template-columns:1fr}.time-history-controls>div:first-child{grid-template-columns:1fr}.time-history-navigation{grid-template-columns:1fr}.time-history-navigation label{grid-column:auto}}
.time-account-personal{display:grid;gap:5px;padding:12px 14px;border:1px solid #b8d7d0;border-left:5px solid var(--teal);border-radius:12px;background:#edf8f5}.time-account-personal.provisional{border-left-color:#c28b20;background:#fff8e8}.time-account-personal>span{color:var(--teal);font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.time-account-personal.provisional>span{color:#795b18}.time-account-personal>strong{font-size:17px}.time-account-personal>small{color:var(--muted);line-height:1.45}
.time-absence-block{display:grid;gap:4px;margin:0 0 14px;padding:12px 14px;border-radius:12px;background:#fde8e8;color:#8e2f35}.time-absence-block.override{background:#fff3d8;color:#765018}.time-absence-block span{font-size:13px}.time-absence-override{display:flex!important;align-items:flex-start!important;gap:8px!important;padding:10px 11px;border-radius:10px;background:#fff4dc;color:#6f4b17;font-size:12px;font-weight:750}.time-absence-override input{flex:0 0 auto;width:18px!important;height:18px!important;margin:0}.time-capture-card button:disabled{cursor:not-allowed;opacity:.62}
.resource-return-launcher{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.8fr);gap:14px;margin:16px 0;padding:16px;border:1px solid #9fcfc5;border-radius:17px;background:linear-gradient(145deg,#fff,#eaf7f3);box-shadow:0 8px 22px rgba(16,42,44,.08)}.resource-return-launcher h3,.resource-return-launcher p{margin:0}.resource-return-launcher>div{display:grid;align-content:start;gap:6px}.resource-return-launcher form{display:grid;gap:8px}.resource-return-launcher form label{display:grid;gap:5px;font-weight:800}.resource-return-launcher .resource-return-scan{grid-column:1/-1;margin:0;padding-top:10px;border-top:1px solid #c9dfdb}.resource-return-dialog{position:relative;width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:22px;border:0;border-radius:18px;color:var(--ink);background:#fff;box-shadow:0 28px 90px rgba(4,28,29,.38)}.resource-return-dialog::backdrop{background:rgba(4,28,29,.72)}.resource-return-dialog h3{margin:4px 34px 8px 0;overflow-wrap:anywhere}.resource-return-dialog p{line-height:1.5}.resource-return-close{position:absolute;top:12px;right:12px;display:grid;width:38px;height:38px;place-items:center;border:1px solid var(--line);border-radius:50%;background:#f4f8f7;color:var(--teal);font-size:24px;cursor:pointer}.resource-return-warehouse-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:14px}.resource-return-warehouse-buttons button{display:grid;gap:3px;min-height:68px;padding:12px;border:1px solid #9fcfc5;border-radius:12px;color:var(--teal);background:#eff8f5;text-align:left;cursor:pointer}.resource-return-warehouse-buttons button:hover,.resource-return-warehouse-buttons button:focus-visible{border-color:var(--teal);background:#dff1ec}.resource-return-warehouse-buttons small{color:var(--muted)}.resource-return-condition-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}.resource-return-condition-buttons button{width:100%}.resource-return-dialog form{display:grid;gap:12px}.resource-return-dialog textarea{min-height:120px}.resource-return-dialog .error{margin:8px 0 0}@media(max-width:620px){.resource-return-launcher{grid-template-columns:1fr}.resource-return-dialog{width:100vw;height:100dvh;max-height:none;border-radius:0}.resource-return-warehouse-buttons,.resource-return-condition-buttons{grid-template-columns:1fr}.resource-return-condition-buttons button{min-height:54px}}
.absence-partial-switch{display:flex!important;align-items:center;gap:8px;padding:10px 12px;border-radius:10px;background:#f4f0fa;color:#513c70}.absence-partial-switch input{width:20px!important;height:20px;margin:0}.absence-booking-help{margin:0;padding:9px 11px;border-left:4px solid #7655a8;border-radius:8px;background:#f7f3fb;color:#594a6b;font-size:12px;line-height:1.45}
.absence-effect{justify-self:start;padding:6px 9px;border-radius:999px;background:#e8f5f1;color:#176b5d;font-weight:850}

/* PDF-Dokumenteditor: vollständig lokal, touch-tauglich und auf kleinen
   Arbeitsgeräten als echte Vollbild-Arbeitsfläche nutzbar. */
.document-row-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}.document-row-actions button{width:auto;min-height:34px;margin:0;padding:5px 9px;border:1px solid #bdd4cf;border-radius:8px;color:var(--teal);background:#f7fbfa;font:inherit;font-size:11px;font-weight:800}.document-row-actions .primary-action{border-color:var(--teal);color:#fff;background:var(--teal)}.pending-document-edits>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid var(--line)}.pending-document-edits>div span{color:var(--muted);font-size:11px}
.pdf-editor-dialog{width:min(1360px,calc(100vw - 16px));height:min(940px,calc(100dvh - 16px));max-width:none;max-height:none;padding:0;border:0;border-radius:16px;color:var(--ink);background:#edf3f1;box-shadow:0 28px 100px rgba(4,28,29,.46)}.pdf-editor-dialog::backdrop{background:rgba(4,28,29,.82)}.pdf-editor-shell{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100%;min-height:0}.pdf-editor-shell>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border-bottom:1px solid var(--line);background:#fff}.pdf-editor-shell>header>div:first-child{display:grid;min-width:0}.pdf-editor-shell>header span{color:var(--teal);font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.pdf-editor-shell>header strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pdf-editor-page-controls{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}.pdf-editor-page-controls button,.pdf-editor-shell>footer button,.pdf-editor-tools button{width:auto;min-height:34px;padding:5px 9px;border:1px solid #bfd3cd;border-radius:8px;color:var(--teal);background:#fff;font:inherit;font-size:11px;font-weight:800}.pdf-editor-page-controls output{min-width:62px;color:var(--muted);font-size:11px;text-align:center}.pdf-editor-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,340px);min-height:0}.pdf-editor-preview{display:grid;min-width:0;min-height:0;overflow:auto;place-items:start center;padding:16px;background:#cfd9d6}.pdf-editor-page{position:relative;flex:0 0 auto;background:#fff;box-shadow:0 8px 28px rgba(8,36,37,.24)}.pdf-editor-page>canvas{position:absolute;inset:0;display:block}.pdf-editor-overlay{position:absolute;z-index:2;inset:0;overflow:hidden;touch-action:none}.pdf-editor-overlay[data-tool="draw"]{cursor:crosshair}.pdf-editor-overlay[data-tool="text"],.pdf-editor-overlay[data-tool="place_date"],.pdf-editor-overlay[data-tool^="signature_"]{cursor:copy}.pdf-editor-stroke{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.pdf-editor-element{position:absolute;display:grid;transform:translate(-50%,-50%);place-items:center;width:auto;max-width:80%;min-width:0;min-height:24px;padding:3px 6px;border:1px dashed transparent;border-radius:5px;color:#102f31;background:rgba(255,255,255,.72);font-weight:750;line-height:1.15;white-space:nowrap;cursor:grab;touch-action:none}.pdf-editor-element.selected{border-color:#ed7d31;box-shadow:0 0 0 2px rgba(237,125,49,.22)}.pdf-editor-element.signature{padding:3px;background:rgba(255,255,255,.84)}.pdf-editor-element.signature img{display:block;width:100%;height:auto;pointer-events:none}.pdf-editor-element.signature span{overflow:hidden;width:100%;font-size:9px;text-align:center;text-overflow:ellipsis;white-space:nowrap}.pdf-editor-tools{min-height:0;overflow:auto;padding:10px;border-left:1px solid var(--line);background:#fff}.pdf-editor-tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.pdf-editor-tool-grid button{min-height:39px;white-space:normal}.pdf-editor-tool-grid button.active{border-color:var(--teal);color:#fff;background:var(--teal)}.pdf-editor-hint{margin:8px 0;padding:7px 9px;border-radius:8px;color:#365b58;background:#e8f4f1;font-size:10px;line-height:1.4}.pdf-editor-tools>section,.pdf-editor-signature{display:grid;gap:7px;margin:8px 0 0;padding:9px;border:1px solid var(--line);border-radius:10px;background:#f8fbfa}.pdf-editor-tools label{display:grid;gap:3px;margin:0;font-size:10px;font-weight:850}.pdf-editor-tools :is(input:not([type="range"]):not([type="color"]),textarea){width:100%;min-height:34px;padding:5px 7px;border:1px solid #bfcfca;border-radius:7px;font:inherit;font-size:12px}.pdf-editor-tools textarea{min-height:50px;resize:vertical}.pdf-editor-tools input[type="range"]{width:100%;min-height:24px;margin:0;padding:0}.pdf-editor-tools input[type="color"]{width:100%;height:32px;padding:2px}.pdf-editor-signature summary{color:var(--teal);font-size:11px;font-weight:900;cursor:pointer}.pdf-editor-signature canvas{display:block;width:100%;height:150px;border:1px solid #bfcfca;border-radius:8px;background:#fff;touch-action:none}.pdf-editor-signature>div{display:flex;align-items:end;gap:7px}.pdf-editor-signature>div label{flex:1}.pdf-editor-elements h3{margin:0;font-size:12px}.pdf-editor-elements [data-element-list]{display:grid;gap:4px}.pdf-editor-elements [data-element-list]>div{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:4px}.pdf-editor-elements [data-element-list] button{min-width:30px;min-height:30px;padding:4px 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pdf-editor-elements [data-element-list] button:first-child{text-align:left}.pdf-editor-elements [data-delete-element]{color:#9b2f2f}.pdf-editor-shell>footer{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:7px;min-height:54px;padding:8px 12px;border-top:1px solid var(--line);background:#fff}.pdf-editor-shell>footer p{grid-column:1/-1;margin:0;font-size:11px}.pdf-editor-shell>footer p:empty{display:none}.pdf-editor-shell>footer span{overflow-wrap:anywhere;color:var(--muted);font-size:10px}.pdf-editor-shell>footer .primary-action{margin:0;border-color:var(--teal);color:#fff;background:var(--teal)}
.pdf-editor-page{transform-origin:0 0;will-change:transform}.pdf-editor-overlay[data-tool="select"]{cursor:grab}.pdf-editor-overlay[data-tool="select"]:active{cursor:grabbing}.pdf-editor-stroke[data-element-id]{pointer-events:none}.pdf-editor-stroke-hit{pointer-events:stroke;cursor:pointer}.pdf-editor-stroke.selected .pdf-editor-stroke-line{filter:drop-shadow(0 0 5px #ed7d31);stroke-opacity:.9}.pdf-element-editor{width:min(480px,calc(100vw - 24px));max-width:none;padding:0;border:1px solid #b9cdc7;border-radius:14px;color:var(--ink);background:#fff;box-shadow:0 22px 70px rgba(4,28,29,.38)}.pdf-element-editor::backdrop{background:rgba(4,28,29,.58)}.pdf-element-editor form{display:grid;gap:12px;padding:16px}.pdf-element-editor h2{margin:0;color:var(--teal);font-size:18px}.pdf-element-editor-fields{display:grid;gap:10px}.pdf-element-editor-fields label{display:grid;gap:5px;color:#254744;font-size:11px;font-weight:850}.pdf-element-editor-fields :is(input:not([type="range"]),textarea){width:100%;min-height:38px;padding:7px 9px;border:1px solid #bfcfca;border-radius:7px;font:inherit}.pdf-element-editor-fields textarea{min-height:78px;resize:vertical}.pdf-element-editor-fields input[type="range"]{width:100%}.pdf-element-editor-fields input[type="color"]{height:38px;padding:2px}.pdf-element-editor-actions{display:grid;grid-template-columns:1fr auto auto;gap:8px}.pdf-element-editor-actions button{min-height:38px;padding:7px 10px;border:1px solid #bfd3cd;border-radius:7px;background:#fff;color:var(--teal);font:inherit;font-weight:800}.pdf-element-editor-actions .danger{justify-self:start;color:#9b2f2f}.pdf-element-editor-actions .primary-action{border-color:var(--teal);color:#fff;background:var(--teal)}
@media(max-width:760px){.pdf-editor-dialog{width:100vw;height:100dvh;border-radius:0}.pdf-editor-shell>header{align-items:flex-start;flex-direction:column}.pdf-editor-page-controls{width:100%;justify-content:flex-start}.pdf-editor-body{grid-template-columns:1fr;grid-template-rows:minmax(42dvh,1fr) minmax(0,46dvh)}.pdf-editor-tools{border-top:1px solid var(--line);border-left:0}.pdf-editor-preview{padding:10px}.pdf-editor-shell>footer{grid-template-columns:1fr 1fr}.pdf-editor-shell>footer span{grid-column:1/-1}.pdf-editor-shell>footer .primary-action{grid-column:1/-1;width:100%}.pdf-element-editor-actions{grid-template-columns:1fr 1fr}.pdf-element-editor-actions .danger{grid-column:1/-1;width:100%}.document-row-actions{display:grid;grid-template-columns:1fr 1fr}.document-row-actions .primary-action{grid-column:1/-1}.pending-document-edits>div{align-items:flex-start;flex-direction:column}}

/* Die globale Formular-Mindesthöhe darf die kompakte Arbeitsmatrix nicht
   wieder aufziehen. Einheit und Eingabefeld bleiben in einer Zeile. */
.tablet-work-row>label{box-sizing:border-box!important;display:flex!important;grid-row:auto!important;grid-template-rows:none!important;grid-template-columns:none!important;align-self:center!important;align-content:normal!important;align-items:center!important;gap:0!important;width:auto!important;height:28px!important;min-height:28px!important;max-height:28px!important;padding:0 2px!important}.tablet-work-row>label.tablet-work-quantity{flex-wrap:nowrap}.tablet-work-row input:not([type="checkbox"]){box-sizing:border-box;width:100%;min-width:0;min-height:28px!important;height:28px!important;max-height:28px;padding:3px 4px!important;border-radius:4px!important}.tablet-work-row .tablet-work-quantity input{align-self:center!important;width:0;min-width:0;flex:1 1 0;border-radius:4px 0 0 4px!important}.tablet-work-row .tablet-work-quantity b{box-sizing:border-box;align-self:center;height:28px;min-width:max-content;white-space:nowrap;border-radius:0 4px 4px 0!important}.tablet-work-row>output,.tablet-work-row>.tablet-work-title{box-sizing:border-box;align-self:center!important;height:28px!important;min-height:28px!important;max-height:28px!important;margin-block:0!important}.tablet-work-row>output{justify-content:center}

/* Auch die Messmatrix überschreibt bewusst die allgemeinen, für Formulare
   gedachten 48/54-px-Höhen. Auf dem Tablet bleiben die Felder kompakt; auf
   dem Telefon greift weiterhin die separate Kartenansicht. */
.tablet-measurement-form{padding:6px 8px;gap:6px}.tablet-measurement-values>label{box-sizing:border-box;display:grid!important;grid-row:auto!important;grid-template-rows:18px 30px!important;grid-template-columns:minmax(0,1fr)!important;align-self:center!important;align-content:stretch!important;gap:0!important;width:100%!important;height:48px!important;min-height:48px!important;max-height:48px!important;margin:0!important;border-radius:6px}.tablet-measurement-values label>span{padding:2px 6px}.tablet-measurement-values input{box-sizing:border-box;align-self:center!important;min-height:30px!important;height:30px!important;max-height:30px;padding:4px 6px!important;border-radius:0!important}.measurement-climate-preview{align-items:center}.measurement-climate-preview output{box-sizing:border-box;align-self:center;height:48px;min-height:48px;max-height:48px;grid-template-rows:18px 30px;border-radius:6px}.tablet-measurement-form>input{box-sizing:border-box;min-height:34px!important;height:34px!important;max-height:34px;padding:5px 7px!important;border-radius:6px!important}.tablet-measurement-form>.primary-action{min-height:34px!important;height:34px!important;padding:4px 8px;border-radius:8px}.tablet-measurement-form input{border-radius:6px}.tablet-measurement-form button{border-radius:8px}@media(max-width:850px) and (min-width:641px){.tablet-measurement-form{grid-template-rows:48px 34px}.tablet-measurement-values{align-self:center}.tablet-measurement-form>.primary-action{align-self:center}}

/* Formulare werden nach Pflicht und Bedarf gegliedert. Die Karten besitzen
   dieselbe Informationshierarchie und brechen nicht mehr als lose Textbuttons
   in unterschiedlich breite Zeilen um. */
.form-template-launcher{display:grid;gap:14px}.form-template-launcher>.section-heading{padding:0 0 9px!important;border:0!important}.form-template-group{display:grid;gap:8px}.form-template-group+ .form-template-group{padding-top:12px;border-top:1px solid var(--line)}.form-template-group>header{display:flex;align-items:end;justify-content:space-between;gap:12px}.form-template-group>header div{display:grid;gap:2px}.form-template-group>header span{color:var(--muted);font-size:9px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.form-template-group>header h4{margin:0;font-size:14px}.form-template-group>header>b{display:grid;min-width:27px;height:27px;place-items:center;border-radius:999px;color:var(--teal);background:var(--teal-soft);font-size:10px}.form-template-group.required>header h4{color:#8a4b12}.form-template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.form-template-card{display:grid;align-content:start;gap:4px;min-width:0;min-height:112px;padding:11px;border:1px solid #c6d8d3;border-left:4px solid var(--teal);border-radius:11px;color:var(--ink);background:#fff;text-align:left;cursor:pointer}.form-template-group.required .form-template-card{border-left-color:#e17a2d;background:#fffdf9}.form-template-card:hover,.form-template-card:focus-visible{border-color:var(--teal);background:#f1faf7}.form-template-card>span{color:var(--teal);font-size:9px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.form-template-card>strong{overflow-wrap:anywhere;font-size:13px;line-height:1.25}.form-template-card>small{display:-webkit-box;overflow:hidden;color:var(--muted);font-size:10px;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2}.form-template-card>b{align-self:end;margin-top:auto;color:var(--teal);font-size:10px}.form-template-card:focus-visible{outline:3px solid #f2863c;outline-offset:2px}@media(max-width:760px){.form-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.form-template-grid{grid-template-columns:1fr}.form-template-card{min-height:96px}}

/* Tablet-Arbeitsplatz: Die fachlichen Eingaben bleiben direkt in der kompakten
   PWA4-artigen Matrix bedienbar. Unterhalb der Tabletbreite wechseln Räume,
   Arbeiten und Messwerte bewusst in die vorhandenen Smartphone-Karten. */
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.scope-create-dialog{width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:16px;color:var(--ink);background:#fff;box-shadow:0 28px 90px rgba(4,28,29,.38)}.scope-create-dialog::backdrop{background:rgba(4,28,29,.72)}.scope-create-dialog>form{max-height:calc(100dvh - 24px);overflow:auto;padding:14px}.scope-create-dialog>form>header{position:sticky;z-index:4;top:-14px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-14px -14px 10px;padding:11px 14px;border-bottom:1px solid var(--line);background:#fff}.scope-create-dialog h3{margin:0;font-size:16px}.scope-create-dialog header>button{width:34px;height:34px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--paper);font-size:21px}.scope-create-dialog>form>footer{position:sticky;z-index:3;bottom:-14px;display:flex;justify-content:flex-end;gap:8px;margin:10px -14px -14px;padding:10px 14px;border-top:1px solid var(--line);background:#fff}.scope-create-dialog footer>button{min-height:38px;padding:7px 11px;border:1px solid var(--line);border-radius:9px}.scope-create-dialog footer>.primary-action{width:auto;border-color:var(--teal)}@media(max-width:640px){.scope-create-dialog{width:100vw;height:100dvh;max-height:none;border-radius:0}.scope-create-dialog>form{max-height:100dvh;padding:12px}.scope-create-dialog>form>header{top:-12px;margin:-12px -12px 8px;padding:10px 12px}.scope-create-dialog>form>footer{bottom:-12px;margin:8px -12px -12px;padding:10px 12px}.scope-create-dialog footer>button{flex:1}}
.tablet-scope-overview{display:grid;gap:10px}.phone-scope-overview{display:none}
.tablet-work-panel,.tablet-room-panel{min-width:0;border:1px solid #c8dcdf;border-radius:11px;background:#fff;overflow:hidden;box-shadow:0 2px 8px rgba(16,42,44,.035)}
.tablet-work-panel>header,.tablet-room-panel>header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:6px 10px;border-bottom:1px solid #cbdde1;background:#f5f8fc}
.tablet-work-panel h3,.tablet-room-panel h3,.tablet-work-panel p{margin:0}.tablet-work-panel h3,.tablet-room-panel h3{font-size:14px}.tablet-work-panel p,.tablet-room-panel>header>span{margin-top:1px;color:var(--muted);font-size:9px}
.tablet-work-toolbar{display:flex;align-items:center;gap:7px}.tablet-work-toolbar>button{min-height:30px;padding:4px 8px;border:1px solid #9ecfd4;border-radius:8px;color:#006b78;background:#f1fbfc;font-size:10px;font-weight:850;white-space:nowrap}
.tablet-completed-toggle{display:flex;align-items:center;gap:6px;margin:0;font-size:10px;font-weight:800;white-space:nowrap}.tablet-completed-toggle input{position:relative;width:38px!important;height:22px!important;margin:0!important;padding:0!important;border:0!important;border-radius:999px!important;appearance:none;background:#afbecf;box-shadow:inset 0 0 0 1px rgba(31,63,76,.12);cursor:pointer;transition:background .16s ease}.tablet-completed-toggle input::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(15,45,55,.25);transition:transform .16s ease}.tablet-completed-toggle input:checked{background:var(--teal)}.tablet-completed-toggle input:checked::after{transform:translateX(16px)}
.tablet-work-head,.tablet-work-row{display:grid;grid-template-columns:minmax(105px,1.1fr) 34px minmax(160px,2.4fr) 42px 48px minmax(86px,1fr) 56px 50px 36px;align-items:center;min-width:0}
.tablet-work-head{min-height:23px;color:#0c2d3d;background:#e8f0fa;font-size:8px;font-weight:900;text-transform:uppercase}.tablet-work-head>span{display:flex;align-items:center;min-width:0;padding:4px 3px;white-space:nowrap}.tablet-work-head>span:nth-child(n+4){justify-content:center}
.tablet-work-row{min-height:34px;border-top:1px solid #d8e4e8;background:#fff}.tablet-work-row:first-child{border-top:0}.tablet-work-row.is-completed{background:#f7fbf9}.tablet-work-row.offline-conflict{background:#fff7ec}
.tablet-work-row>*{min-width:0;margin:0}.tablet-work-room,.tablet-work-row>output{display:flex;align-items:center;padding:4px;font-size:9.5px}.tablet-work-room{overflow:hidden;white-space:normal;overflow-wrap:normal;word-break:normal;line-height:1.15}.tablet-work-row>output{align-self:stretch;margin:3px 2px;border-radius:6px;background:#f1f5f6;color:#4c646a;font-variant-numeric:tabular-nums}.tablet-work-complete-value{justify-content:center;gap:2px}.tablet-work-complete-value small{font-size:8px}
.tablet-history-button,.tablet-work-title,.tablet-work-save,.tablet-room-edit{border:0;color:#006b78;background:transparent;font:inherit}.tablet-history-button{width:28px;height:28px;margin:auto;border:1px solid #b9dce0;border-radius:7px;background:#f4fbfc;font-size:15px}.tablet-work-title{align-self:stretch;display:-webkit-box;margin:3px 2px;padding:4px 6px;border:1px solid #cadcdf;border-radius:6px;background:#f1f5f6;text-align:left;line-height:1.15;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:10px}.tablet-work-title:hover,.tablet-work-title:focus-visible{background:#e8f4f3}
.tablet-work-row>label{display:flex;align-items:center;min-width:0;margin:0;padding:2px}.tablet-work-row input{min-width:0;height:28px;padding:3px 4px;border-radius:5px;font-size:9.5px}.tablet-work-quantity{gap:0}.tablet-work-quantity input{flex:1}.tablet-work-quantity b{align-self:stretch;display:flex;align-items:center;flex:0 0 auto;padding:0 4px;border:1px solid #b9c8c3;border-left:0;border-radius:0 5px 5px 0;color:var(--muted);background:#eef3f4;font-size:8px;font-weight:700}.tablet-work-quantity input{border-radius:5px 0 0 5px}.tablet-work-complete{justify-content:center}.tablet-work-complete input{width:17px!important;height:17px!important;padding:0!important;accent-color:var(--teal)}
.tablet-work-save{align-self:center;width:28px;height:28px;margin:auto;padding:0;border-radius:7px;color:#fff;background:var(--teal);font-size:14px;font-weight:900}.tablet-work-save.danger{color:var(--danger);background:#fff3f0}.tablet-work-save:disabled{opacity:.55}.tablet-work-save-placeholder{display:block;width:28px;height:28px}
.tablet-work-note,.tablet-work-row>.error{grid-column:1/-1;margin:0;padding:5px 8px;border-top:1px dashed #d6e2e4;font-size:10px}.tablet-work-note{color:var(--muted)}
.tablet-work-row[hidden],.phone-work-card[hidden]{display:none!important}
.phone-work-overview{margin-bottom:9px;border:1px solid #c8dcdf;border-radius:14px;background:#f5f8fc}.phone-work-overview>header{display:grid;gap:10px;padding:11px 12px}.phone-work-overview h3,.phone-work-overview p{margin:0}.phone-work-overview h3{font-size:17px}.phone-work-overview p{margin-top:2px;color:var(--muted);font-size:11px}
.phone-work-card{display:grid;gap:10px;padding:12px;border-bottom:1px solid var(--line);background:#fff}.phone-work-card:last-child{border-bottom:0}.phone-work-card.is-completed{opacity:.7}.phone-work-card.offline-conflict{background:#fff7ec}.phone-work-card>header{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:start;gap:8px}.phone-work-title{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:8px;min-height:44px;padding:7px 0;border:0;color:var(--ink);background:transparent;text-align:left}.phone-work-title>span{display:grid;place-items:center;min-width:36px;padding:4px 6px;border-radius:7px;color:#fff;background:var(--teal);font-size:10px;font-weight:900}.phone-work-title>strong{padding-top:2px;overflow-wrap:anywhere;line-height:1.35}.phone-work-icon{width:44px;height:44px;margin:0;border:1px solid #b9dce0;border-radius:10px;color:var(--teal);background:#f4fbfc;font-size:20px}.phone-work-icon.danger{color:var(--danger);background:#fff3f0}.phone-work-facts,.phone-work-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.phone-work-facts>span{display:grid;gap:3px;padding:8px 10px;border-radius:9px;background:#f2f6f7}.phone-work-facts small,.phone-work-inputs label>span:first-child{color:var(--muted);font-size:10px;font-weight:850;text-transform:uppercase}.phone-work-facts b{font-variant-numeric:tabular-nums}.phone-work-inputs label{display:grid;gap:4px;min-width:0;margin:0}.phone-work-inputs input{width:100%;min-width:0;height:44px}.phone-work-quantity{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;min-width:0;border:1px solid var(--line);border-radius:10px;overflow:hidden}.phone-work-quantity input{border:0;border-radius:0}.phone-work-quantity b{align-self:stretch;display:flex;align-items:center;padding:0 10px;border-left:1px solid var(--line);color:var(--muted);background:#f2f6f7;font-size:12px}.phone-work-card>footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:1px}.phone-work-complete{display:flex!important;align-items:center;gap:8px;min-height:44px;margin:0!important}.phone-work-complete input{width:22px!important;height:22px!important;margin:0!important;padding:0!important}.phone-work-save{min-height:44px;padding:8px 13px;border:0;border-radius:10px;color:#fff;background:var(--teal);font-weight:850}.phone-work-save:disabled{opacity:.55}.phone-work-state{color:var(--teal);font-size:11px;font-weight:900;text-transform:uppercase}.phone-work-note,.phone-work-card>.error{margin:0;padding-top:7px;border-top:1px dashed #d6e2e4;font-size:10px}.phone-work-note{color:var(--muted)}
.tablet-room-head,.tablet-room-row{display:grid;grid-template-columns:46px minmax(92px,1.35fr) minmax(82px,1fr) repeat(7,minmax(34px,.45fr)) 36px;align-items:center;min-width:0}.tablet-room-head{min-height:22px;color:#0c2d3d;background:#e8f0fa;font-size:8px;font-weight:900}.tablet-room-head>span{display:flex;align-items:center;min-width:0;padding:4px 3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tablet-room-head>span:nth-child(n+4):nth-child(-n+10){justify-content:center;text-align:center}.tablet-room-row{min-height:40px;border-top:1px solid #d8e4e8;background:#fff}.tablet-room-row:first-child{border-top:0}.tablet-room-row>*{min-width:0;margin:0;padding:4px 3px;font-size:10px}.tablet-room-row>strong{overflow:hidden;text-overflow:ellipsis}.tablet-room-measure{display:grid!important;gap:1px!important;color:#3f5960}.tablet-room-measure b{color:#00717c;font-size:11px}.tablet-room-check{display:block!important;width:18px!important;height:18px!important;margin:auto!important;padding:0!important;accent-color:#078b91;cursor:pointer}.tablet-room-check:disabled{cursor:not-allowed;opacity:.55}.tablet-room-edit{width:30px;height:30px;margin:auto!important;padding:0!important;border:1px solid #b9dce0;border-radius:8px;background:#f4fbfc;font-size:16px}.tablet-room-row>.error{grid-column:1/-1;padding:5px 8px}
.tablet-room-row.is-saving{background:#f5fbfa}.tablet-room-row.is-saving .tablet-room-check:disabled{opacity:.8}
.tablet-work-history-dialog>div{display:grid;max-height:calc(100dvh - 24px);overflow:auto;padding:14px}.tablet-work-history-dialog>div>header{position:sticky;z-index:3;top:-14px;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:-14px -14px 9px;padding:10px 14px;border-bottom:1px solid var(--line);background:#fff}.tablet-work-history-dialog header>div{min-width:0}.tablet-work-history-dialog h3{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tablet-work-history-dialog header>button{flex:0 0 32px;width:32px;height:32px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--paper);font-size:20px}.tablet-work-history-summary{margin:0 0 8px;color:var(--muted);font-size:11px}.tablet-work-history-dialog .mobile-execution-history{display:grid;gap:7px}.tablet-work-history-dialog>div>footer{position:sticky;bottom:-14px;display:flex;justify-content:flex-end;gap:8px;margin:10px -14px -14px;padding:9px 14px;border-top:1px solid var(--line);background:#fff}.tablet-work-history-dialog footer button{width:auto;min-height:34px;padding:6px 10px;border-radius:8px}
.tablet-work-copy-dialog{width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:18px;color:var(--ink);background:#fff;box-shadow:0 28px 90px rgba(4,28,29,.38)}.tablet-work-copy-dialog::backdrop{background:rgba(4,28,29,.72)}.tablet-work-copy-dialog form{display:grid;gap:13px;padding:20px}.tablet-work-copy-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}.tablet-work-copy-dialog :is(h3,p){margin:0}.tablet-work-copy-dialog header>button{width:38px;height:38px;border:1px solid var(--line);border-radius:50%;background:#f4f8f7;font-size:24px}.tablet-work-copy-dialog label{margin:0}.tablet-work-copy-dialog fieldset{min-width:0;margin:0;padding:12px;border:1px solid var(--line);border-radius:12px}.tablet-work-copy-selection{display:flex;gap:8px;margin-bottom:9px}.tablet-work-copy-selection button{min-height:34px;padding:6px 9px;border:1px solid var(--line);border-radius:8px;color:var(--teal);background:#f5faf8;font-weight:800}.tablet-work-copy-list{display:grid;max-height:280px;overflow:auto}.tablet-work-copy-list label{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:9px;padding:8px;border-top:1px solid var(--line)}.tablet-work-copy-list input{width:18px;height:18px;padding:0}.tablet-work-copy-list strong,.tablet-work-copy-list small{display:block}.tablet-work-copy-list small{margin-top:2px;color:var(--muted)}.tablet-work-copy-preview{padding:9px 11px;border-left:4px solid var(--teal);border-radius:8px;background:var(--teal-soft)}.tablet-work-copy-dialog footer{display:flex;justify-content:flex-end;gap:9px}.tablet-work-copy-dialog footer button{min-height:42px;padding:8px 13px;border:1px solid var(--line);border-radius:10px}.tablet-work-copy-dialog footer .primary-action{border-color:var(--teal)}
.tablet-measurement-entry{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;margin-top:12px;padding:10px;border:1px solid #aed8dc;border-radius:14px;background:#f4fafb}.tablet-measurement-entry>h4{margin:0 2px;color:#006b78;font-size:14px}.phone-measurement-entry{display:none}
.tablet-measurement-form{display:grid;grid-template-columns:84px minmax(300px,1fr) 138px minmax(112px,.55fr) 82px;align-items:center;gap:8px;margin:0;padding:9px 10px;border:1px solid #d2e1e3;border-radius:11px;background:#fff}.tablet-measurement-form>strong{display:flex;align-items:center;min-width:0;color:#0b3740;font-size:11px;line-height:1.2}.tablet-measurement-values{display:grid;grid-template-columns:repeat(2,minmax(86px,1fr)) minmax(150px,1.35fr);align-items:stretch;gap:6px;min-width:0}.tablet-measurement-form.material .tablet-measurement-values{grid-template-columns:repeat(3,minmax(92px,1fr))}.tablet-measurement-values label{display:grid;grid-template-rows:20px 34px;min-width:0;margin:0;border:1px solid #cbdcdf;border-radius:6px;overflow:hidden;background:#fff}.tablet-measurement-values label>span{display:flex;align-items:center;min-width:0;padding:3px 7px;overflow:hidden;background:#f0f5f6;font-size:9px;font-weight:850;line-height:1.05;text-overflow:ellipsis;white-space:nowrap}.tablet-measurement-values input{width:100%;height:34px;min-width:0;padding:5px 7px;border:0;border-top:1px solid #cbdcdf;border-radius:0;font-variant-numeric:tabular-nums}.measurement-climate-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;min-width:0}.measurement-climate-preview output{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:20px 34px;min-width:0;border:1px solid #cbdcdf;border-radius:6px;overflow:hidden;background:#fff}.measurement-climate-preview output>span{grid-column:1/-1;display:flex;align-items:center;padding:3px 6px;background:#f0f5f6;font-size:9px;font-weight:850}.measurement-climate-preview output>b{display:flex;align-items:center;justify-content:flex-end;min-width:0;padding:5px 2px 5px 6px;font-size:10px;font-variant-numeric:tabular-nums}.measurement-climate-preview output>small{display:flex;align-items:center;padding:5px 5px 5px 1px;color:var(--muted);font-size:8px;white-space:nowrap}.tablet-measurement-form>input{width:100%;height:38px;min-width:0;padding:6px 8px;font-size:11px}.tablet-measurement-form>.primary-action{width:auto;height:38px;min-width:0;min-height:38px;margin:0;padding:5px 10px;border-radius:9px;font-size:10px;white-space:nowrap}.tablet-measurement-form>.error{grid-column:1/-1;min-height:0;margin:0;font-size:10px}
@media(max-width:850px) and (min-width:641px){.main{padding-inline:5px}.tablet-work-head,.tablet-work-row{grid-template-columns:minmax(82px,.9fr) 32px minmax(126px,2.1fr) 34px 40px minmax(78px,.9fr) 48px 48px 34px}.tablet-work-head{font-size:7.5px}.tablet-work-head>span{padding-inline:2px}.tablet-work-row>*{font-size:9px}.tablet-work-toolbar>button span{display:none}.tablet-room-head,.tablet-room-row{grid-template-columns:40px minmax(84px,1.2fr) minmax(72px,.9fr) repeat(7,minmax(32px,.42fr)) 34px}.tablet-room-head{font-size:7.5px}.tablet-room-row>*{font-size:9px}.tablet-measurement-form{grid-template-columns:76px minmax(0,1fr) minmax(116px,.42fr) 78px;grid-template-rows:auto 38px;gap:6px 8px}.tablet-measurement-form>strong{grid-column:1;grid-row:1/3}.tablet-measurement-values{grid-column:2/4;grid-row:1}.tablet-measurement-form>.primary-action{grid-column:4;grid-row:1}.tablet-measurement-form>input[name="measuredAt"]{grid-column:2;grid-row:2}.tablet-measurement-form>input[name="readingNote"]{grid-column:3/5;grid-row:2}.tablet-measurement-form>.error{grid-column:2/5}.tablet-measurement-values label>span,.measurement-climate-preview output>span{padding-inline:5px;font-size:8px}}
@media(max-width:640px){.tablet-scope-overview,.tablet-measurement-entry{display:none}.phone-scope-overview{display:block}.phone-measurement-entry{display:grid}.phone-work-overview .tablet-work-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.phone-work-overview .tablet-work-toolbar>button{min-height:44px}.phone-work-overview .tablet-completed-toggle{min-height:44px}.tablet-work-copy-dialog{width:100vw;height:100dvh;max-height:none;border-radius:0}.tablet-work-copy-dialog form{min-height:100%;padding:16px}.tablet-work-copy-selection,.tablet-work-copy-dialog footer{display:grid;grid-template-columns:1fr 1fr}.tablet-work-copy-dialog footer .primary-action{width:auto}.measurement-point-card{padding-inline:12px}.measurement-add-reading .measurement-climate-preview{grid-template-columns:1fr 1fr}.measurement-add-reading .measurement-climate-preview output{min-height:44px}}
@media(max-width:390px){.phone-work-overview .tablet-work-toolbar{grid-template-columns:1fr}.phone-work-overview .tablet-completed-toggle{justify-content:space-between}.phone-work-facts,.phone-work-inputs{gap:7px}.phone-work-card{padding:10px}.measurement-add-reading .measurement-climate-preview{grid-template-columns:1fr}}

/* Kompakter Raumeditor: Etikett und Eingabe bleiben eng zusammen; die
   Navigation zur Raumliste und das Speichern sind in jeder Scrolllage sichtbar. */
.mobile-room-editor{padding:0 10px 10px!important;overflow:visible}
.mobile-room-editor-bar{position:sticky;z-index:9;top:78px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;margin:0 -10px 7px;padding:6px 10px;border-bottom:1px solid #bad9d4;background:rgba(255,255,255,.96);box-shadow:0 5px 14px rgba(16,42,44,.08);backdrop-filter:blur(12px)}
.mobile-room-editor-bar>div{display:grid;min-width:0;gap:1px}.mobile-room-editor-bar span{color:var(--muted);font-size:9px;font-weight:850;text-transform:uppercase}.mobile-room-editor-bar strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.mobile-room-editor-bar .back-link{min-height:34px;margin:0;padding:5px 8px;border:1px solid #b9d9d4;border-radius:8px;background:#f3faf8}.mobile-room-editor-bar .primary-action{width:auto;min-height:34px;margin:0;padding:5px 10px;border-radius:8px}
.mobile-room-offline-note{margin:5px 0;padding:6px 8px;border-left:3px solid var(--orange);border-radius:6px;background:#fff5e8;color:#6f451d;font-size:10px}
.mobile-room-form .mobile-room-core,.mobile-room-form .mobile-room-surface-grid{gap:5px 7px}.mobile-room-form .mobile-room-field-group{margin:6px 0;padding:7px 8px;border-radius:9px}.mobile-room-form .mobile-room-field-group>h4{margin:0 0 5px;font-size:10px}.mobile-room-form .mobile-catalog-field{gap:3px}.mobile-room-form .mobile-catalog-field>label,.mobile-room-form>label,.mobile-room-form .mobile-dimensions>label,.mobile-room-form .mobile-room-note{gap:3px;font-size:10px}.mobile-room-form :is(input:not([type="checkbox"]),select){min-height:34px!important;height:34px!important;padding:5px 8px!important;border-radius:8px;font-size:12px}.mobile-room-form textarea{min-height:44px!important;height:44px!important;padding:6px 8px!important;border-radius:8px;font-size:12px}.mobile-room-form .mobile-room-number{min-height:34px;padding:4px 8px;border-radius:8px}.mobile-room-form .mobile-dimensions{gap:5px}.mobile-room-form .mobile-room-metric-preview{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:5px 0 0}.mobile-room-form .mobile-room-metric-preview span{padding:5px 6px;border-radius:7px;font-size:8px}.mobile-room-form .mobile-room-metric-preview strong{margin-top:1px;font-size:10px}.mobile-room-form .mobile-room-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:0 0 5px;padding:6px}.mobile-room-form .mobile-room-options legend{font-size:9px}.mobile-room-form .mobile-room-options label{min-height:28px;padding:3px 5px;font-size:9px}.mobile-room-form .mobile-room-options input{width:16px;height:16px}
@media(max-width:640px){.mobile-room-editor{margin-inline:-6px}.mobile-room-editor-bar{top:78px}.mobile-room-form .mobile-room-core,.mobile-room-form .mobile-room-surface-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-room-form .mobile-room-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.mobile-room-editor-bar{grid-template-columns:auto minmax(0,1fr) auto}.mobile-room-editor-bar>div span{display:none}.mobile-room-editor-bar .back-link,.mobile-room-editor-bar .primary-action{padding-inline:7px}.mobile-room-form .mobile-room-core,.mobile-room-form .mobile-room-surface-grid,.mobile-room-form .mobile-dimensions{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-room-form .mobile-room-metric-preview{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-room-form :is(input:not([type="checkbox"]),select){min-height:38px!important;height:38px!important}}
@media(max-width:340px){.mobile-room-form .mobile-room-core,.mobile-room-form .mobile-room-surface-grid{grid-template-columns:1fr}}

/* Die Tabellenaktion bleibt auch bei Touch-Bedienung exakt quadratisch. */
.tablet-room-edit{box-sizing:border-box;display:grid;place-items:center;inline-size:34px!important;block-size:34px!important;min-inline-size:34px!important;min-block-size:34px!important;max-inline-size:34px!important;max-block-size:34px!important;margin:auto!important;padding:0!important;border:1px solid #8fcbd0;border-radius:9px;color:#006b78;background:#edf8f8;line-height:1}
.tablet-room-edit svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tablet-room-edit:hover,.tablet-room-edit:focus-visible{border-color:#078b91;background:#dff3f3}

/* Kompakte Symbolaktionen duerfen durch die allgemeine Touch-Mindesthoehe
   nicht zu schmalen, hochgezogenen Rechtecken werden. */
.compact-icon-action{--square-action-size:32px}
.mini-action,.offer-move button,.scope-create-dialog header>button{--square-action-size:34px}
.resource-return-close,.tablet-work-copy-dialog header>button{--square-action-size:38px}
.tablet-history-button,.tablet-work-save{--square-action-size:28px}
.tablet-work-history-dialog header>button{--square-action-size:32px}
.media-preview-dialog-close,.photo-editor-shell header>[data-editor-close]{--square-action-size:42px}
.photo-editor-tool-picker header button{--square-action-size:40px}
:is(.compact-icon-action,.mini-action,.offer-move button,.resource-return-close,.scope-create-dialog header>button,.tablet-history-button,.tablet-work-save,.tablet-work-history-dialog header>button,.tablet-work-copy-dialog header>button,.media-preview-dialog-close,.photo-editor-shell header>[data-editor-close],.photo-editor-tool-picker header button){box-sizing:border-box;inline-size:var(--square-action-size)!important;block-size:var(--square-action-size)!important;min-inline-size:var(--square-action-size)!important;min-block-size:var(--square-action-size)!important;max-inline-size:var(--square-action-size)!important;max-block-size:var(--square-action-size)!important;padding:0!important;line-height:1}
/* Telefon: kompakte Auftragshülle und dieselben Raum-/Arbeitsaktionen wie auf Tablet. */
@media(max-width:640px){
  .app-header{height:60px;gap:10px;padding:8px 12px}.app-header h1{font-size:18px}.app-header .overline{font-size:9px}.app-header .icon-button,.app-header .avatar-button{width:36px;height:36px;border-radius:11px}
  .main{padding:12px 10px 96px}.quick-nav{min-height:56px;padding:5px;border-radius:16px}
  .order-context-navigation{top:60px;margin:0 0 8px;padding:6px 8px;border-radius:10px;box-shadow:0 5px 14px #102a2c12}.order-context-navigation.is-collapsed{padding-block:4px}.order-context-heading strong{font-size:11px}.order-context-collapse{min-height:30px;padding:4px 8px;font-size:11px;border-radius:7px}.mobile-room-editor-bar{top:60px}
  .scope-compact-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;margin-bottom:6px;padding:8px 10px;border-radius:10px}.scope-compact-header h2{margin:2px 0;font-size:16px}.scope-compact-header .overline{font-size:9px;letter-spacing:.08em}.scope-compact-header p{font-size:10px;line-height:1.35}.scope-compact-header>span{padding:4px 6px;font-size:9px}
  .scope-quick-actions{display:flex;gap:6px;margin:6px 0}.scope-quick-actions .primary-action{width:auto;min-height:34px;padding:6px 10px;border-radius:7px;font-size:12px}.mobile-work-section{margin-top:6px}
  .phone-work-overview{margin-bottom:6px;border-radius:9px}.phone-work-overview>header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;padding:7px 8px}.phone-work-overview h3{font-size:13px}.phone-work-overview p{font-size:10px}.phone-work-overview .tablet-work-toolbar{display:flex;align-items:center;gap:6px}.phone-work-overview .tablet-work-toolbar>button{min-height:32px;padding:4px 6px;border-radius:6px;font-size:10px}.phone-work-overview .tablet-work-toolbar>button span{display:none}.phone-work-overview .tablet-completed-toggle{min-height:32px;gap:5px;font-size:9px}
  .compact-room-overview{gap:6px}.compact-room-group{border-radius:9px}.compact-room-group>summary{grid-template-columns:minmax(0,1fr) max-content 14px;min-height:44px;gap:4px 7px;padding:7px 9px}.compact-room-group>summary strong{font-size:13px}.compact-room-group>summary small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}.compact-room-group>summary>b{grid-column:2;grid-row:1;font-size:9px;text-align:right}.compact-room-group>summary::after{grid-column:3;grid-row:1}
  .phone-room-details{border-bottom:1px solid var(--line);background:#f8fbfa}.phone-room-details>summary{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:28px;padding:4px 10px;color:var(--teal);font-size:10px;font-weight:800;cursor:pointer}.phone-room-details>summary>span{font-size:9px;color:var(--muted)}.phone-room-features{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:4px 8px 7px}.phone-room-features label{display:flex;align-items:center;gap:4px;min-width:0;min-height:30px;margin:0;padding:3px;border-radius:4px;background:#edf3f1;font-size:9px;line-height:1.2}.phone-room-features input{flex:0 0 14px;width:14px!important;height:14px!important;min-height:14px!important;margin:0!important;padding:0!important;accent-color:var(--teal)}.phone-room-features span{overflow-wrap:anywhere}.phone-room-error{margin:0;padding:5px 9px;font-size:10px}
  .compact-room-actions{gap:6px;padding:0 7px}.compact-room-actions .back-link{min-height:30px;padding:4px 3px;font-size:10px}
  .phone-work-card{gap:5px;padding:8px}.phone-work-card>header{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px}.phone-work-title{min-height:32px;gap:6px;padding:3px 0;font-size:12px}.phone-work-title>span{min-width:22px;padding:3px 4px;border-radius:4px;font-size:9px}.phone-work-title>strong{padding-top:0;line-height:1.25}.phone-work-tools{display:flex;gap:4px}.phone-work-icon{width:32px;height:32px;min-width:32px;min-height:32px;padding:0;border-radius:6px;font-size:17px}
  .phone-work-facts{display:flex;flex-wrap:wrap;gap:4px 8px}.phone-work-facts>span{display:inline-flex;align-items:baseline;gap:5px;min-height:24px;padding:3px 6px;border-radius:4px;font-size:11px}.phone-work-facts small{font-size:9px}
  .phone-work-inputs{gap:6px}.phone-work-inputs label{gap:2px}.phone-work-inputs label>span:first-child{font-size:9px}.phone-work-card .phone-work-inputs input:not([type="checkbox"]){height:32px;min-height:32px;padding:4px 6px;border-radius:4px;font-size:13px}.phone-work-quantity{height:32px;border-radius:4px}.phone-work-card .phone-work-quantity input:not([type="checkbox"]){height:30px;min-height:30px;border:0;border-radius:0}.phone-work-quantity b{padding:0 6px;font-size:10px}.phone-work-complete-value{display:flex;align-items:center;gap:4px;min-height:32px;padding:4px 6px;border-radius:4px;background:#f2f6f7;font-size:12px}.phone-work-complete-value small{font-size:10px}
  .phone-work-card>footer{gap:6px;padding:0}.phone-work-complete{min-height:32px;font-size:11px}.phone-work-complete input{width:18px!important;height:18px!important}.phone-work-save{min-height:32px;padding:5px 10px;border-radius:5px;font-size:12px}.phone-work-note,.phone-work-card>.error{padding-top:4px}
}
@media(max-width:380px){.phone-room-features{grid-template-columns:repeat(3,minmax(0,1fr))}.scope-compact-header>span{max-width:84px;line-height:1.3;text-align:center}}

/* PDF-Werkzeuge: erst die Position wählen, anschließend im Dialog einstellen. */
.pdf-editor-tools .pdf-editor-tool-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.pdf-editor-tool-grid .pdf-tool-button{display:grid;place-items:center;align-content:center;gap:3px;min-width:0;min-height:52px;padding:6px 3px;border-radius:7px;font-size:10px;line-height:1.15}
.pdf-tool-button svg{display:block;width:22px;height:22px;pointer-events:none}
.pdf-tool-button span{overflow-wrap:anywhere}
.pdf-editor-tools [data-draw-tool]{grid-template-columns:1fr 1fr;gap:5px;padding:5px}
.pdf-editor-tools [data-draw-tool] button{display:flex;align-items:center;justify-content:center;gap:5px}
.pdf-editor-tools [data-draw-tool] svg{width:18px;height:18px;flex-shrink:0}
.pdf-editor-place-row{display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:end;gap:6px}
.pdf-editor-tools .pdf-icon-button{display:grid;place-items:center;width:34px;height:34px;min-height:34px;padding:6px}
.pdf-icon-button svg{display:block;width:20px;height:20px}
.pdf-editor-element.text,.pdf-editor-element.place_date{max-width:none;font-weight:400;line-height:1.2;white-space:pre;text-align:center}
.pdf-element-editor[data-new-element] .pdf-element-editor-actions{grid-template-columns:1fr 1fr}
.pdf-element-editor-fields label{margin:0}
/* Shared row inset and control-only saving feedback; no branding change. */
:is(.tablet-work-head,.tablet-work-row,.tablet-room-head,.tablet-room-row){box-sizing:border-box;padding-inline:10px}
.tablet-room-row.is-saving{background:#fff}
.tablet-room-row.is-saving .tablet-room-check:disabled,.phone-room-features.is-saving input:disabled{opacity:1}
input[data-tablet-room-feature][aria-busy="true"]{outline:2px solid var(--teal);outline-offset:2px}
@media(max-width:800px){
  .pdf-editor-body{grid-template-rows:minmax(0,1fr) auto}
  .pdf-editor-tools{max-height:42dvh;padding:7px 9px;overscroll-behavior:contain}
  .pdf-editor-hint{margin:5px 0 0;padding:5px 7px}
  .pdf-editor-tool-grid .pdf-tool-button{min-height:48px}
}

:root .tile{position:relative}
:root .tile:has(.tile-count) strong{padding-right:28px}
:root .tile .tile-count{position:absolute;top:10px;right:10px;display:grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:11px;background:#b83c33;color:#fff;font-size:11px;font-weight:800;line-height:1}
:root .tile small{overflow-wrap:anywhere}

/* Activity changes close and start adjacent segments without replacing the page. */
:root .time-capture-card .time-activity-switches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:10px 0}
:root .time-capture-card .time-activity-switches button{display:flex;align-items:center;justify-content:center;min-width:0;min-height:36px;height:auto;padding:7px 8px;border:1px solid #a6b8cf;border-radius:6px;background:#fff;color:#355574;font-size:13px;line-height:1.25;font-weight:650;text-align:center;overflow-wrap:anywhere}
:root .time-capture-card .time-activity-switches button[aria-pressed="true"]{background:#4e6e90;color:#fff;border-color:#4e6e90;box-shadow:inset 0 0 0 1px #fff4}
:root .time-capture-card .time-activity-switches button:focus-visible{outline:2px solid #304c6d;outline-offset:2px}
:root .time-capture-card .time-activity-switches button:disabled{opacity:.5;cursor:not-allowed}
:root .time-capture-card .time-activity-select{display:grid;gap:4px;font-size:12px}
:root .time-running-clock strong{display:block;font-size:16px;color:#355574}

/* Persistent download status stays outside route content and never covers forms. */
.download-status{margin:12px auto 0;padding:12px 16px;width:calc(100% - 32px);max-width:1232px;box-sizing:border-box;border:1px solid #a6b8cf;border-left:4px solid #4e7093;border-radius:10px;background:#fff;color:#202735;overflow-wrap:anywhere}
.download-status[hidden]{display:none}.download-status-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.download-status p{margin:5px 0;font-size:13px}.download-status-row{display:grid;gap:4px;margin-top:8px;font-size:13px}.download-status progress{display:block;width:100%;height:9px;accent-color:#4e7093}.download-status button{min-height:32px;margin-top:6px}.download-status-head button{margin:0;min-width:32px}.download-status[aria-busy=true] .download-status-head strong::before{content:'↻ ';color:#4e7093}

.customer-form-link-dialog{width:min(620px,calc(100vw - 28px));max-height:90dvh;overflow:auto;border:1px solid #b7c6d8;border-radius:12px;padding:20px}.customer-form-link-dialog header{display:flex;align-items:start;justify-content:space-between;gap:16px}.customer-form-link-dialog label{display:grid;gap:6px}.customer-form-link-dialog input{width:100%;box-sizing:border-box}.customer-form-link-dialog article{padding:10px 0;border-top:1px solid #d7e0eb}

.customer-absence-panel{border:1px solid #d5b16b;border-left:4px solid #b98124;border-radius:8px;background:#fff8e9;padding:12px;margin:12px 0}.customer-absence-panel .form-check{display:flex;align-items:center;gap:8px}.customer-absence-panel p{margin:8px 0 0;font-size:.85rem}.customer-absence-panel textarea{box-sizing:border-box;width:100%}

.customer-form-record{padding-block:12px;border-bottom:1px solid #d7e0eb}.customer-form-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.customer-form-actions button{min-height:32px;border:1px solid #a8bbd0;border-radius:5px;padding:6px 12px;background:#f2f6fa;color:#284a6b;font:inherit;font-weight:600;cursor:pointer}.customer-link-state{display:grid;gap:4px;padding:10px 12px;margin:8px 0;border-left:4px solid #bd8b33;background:#fff8e8;border-radius:6px;font-size:13px;overflow-wrap:anywhere}.customer-link-state strong{font-size:14px}.customer-link-state[data-state=signed]{border-color:#35825b;background:#edf8f1}.customer-link-state[data-state=failed],.customer-link-state[data-state=uncertain],.customer-link-state[data-state=stale]{border-color:#b44840;background:#fff1f0}.customer-link-state[data-state=cancelled]{border-color:#7e8b97;background:#f1f4f6}.customer-form-link-dialog{box-sizing:border-box}.customer-form-link-dialog input{min-width:0;max-width:100%}.customer-form-link-dialog h2{overflow-wrap:anywhere}.customer-form-link-dialog article{padding:10px 0;border-top:1px solid #d7e0eb}

/* Form records must not inherit the generic record-section flex row. */
:root .order-form-entries>.customer-form-record{display:block;min-width:0}
:root .customer-form-record>.order-form-entry{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:12px;align-items:start;border:0;padding:0}
:root .customer-form-actions{align-items:center;justify-content:flex-start;min-width:0}
:root .customer-form-actions button{flex:0 1 auto;align-self:center;height:auto;min-height:32px;max-width:100%;white-space:normal;line-height:1.3}
@media(max-width:600px){:root .customer-form-record>.order-form-entry{grid-template-columns:minmax(0,1fr);gap:6px}}
