/* Birdmini office workspace: a persistent navigation and one document canvas.
   This final presentation layer does not change data, routes or form ownership. */
@media screen {
 #shell #content .register-page-actions{display:flex;justify-content:flex-end;margin:-48px 0 18px;position:relative;z-index:1}
 #shell #content .customer-register>label{max-width:480px}
 #shell #content .customer-register .row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 0;font-size:12px;border-bottom:1px solid var(--ui-line)}
 #shell #content .customer-row-actions{display:flex;gap:6px;flex-wrap:wrap;flex:none}
 #shell #content .customer-editor{max-width:840px}
 #shell #content .customer-editor>form{display:grid;grid-template-columns:1fr 1fr;gap:14px 20px}
 #shell #content .customer-editor>form>label:first-child,#shell #content .customer-editor>form>:not(label){grid-column:1/-1}
 @media(max-width:600px){#shell #content .customer-register .row{align-items:stretch;flex-direction:column}#shell #content .customer-editor>form{grid-template-columns:1fr}#shell #content .register-page-actions{margin:0 0 14px;justify-content:flex-start}}
 #shell #content [hidden]{display:none!important}
 #shell #content .document-read-totals{max-width:300px;margin:20px 0 0 auto}
 #shell #content .document-read-totals .offer-summary-line:last-child{font-size:16px;border-bottom:0;padding-top:12px}
 :root{--office-nav:228px;--office-header:60px;--office-ink:#202a37;--office-muted:#697586;--office-line:#e3e7ed}
 #shell.shell{display:block;min-height:100dvh;background:var(--ui-bg)}
 #shell>aside{position:fixed;inset:0 auto 0 0;width:var(--office-nav);height:100dvh;min-height:0;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;padding:0;background:#202833;border:0;border-right:1px solid #303a48;box-shadow:none;z-index:60;color:#e6ebf2}
 #shell .studio-brand{flex:none;display:flex;align-items:center;justify-content:flex-start;width:100%;height:72px;padding:18px 22px;margin:0;color:#fff;background:none;border:0;border-radius:0;font-size:27px;font-weight:750;letter-spacing:-1.3px;box-shadow:none}
 #shell .studio-brand:before,#shell .studio-nav{display:none}
 #shell .brand-dot{color:#f28b67}
 #shell #navigation-toggle{display:none}
 #shell #main-navigation,#shell #main-navigation.mobile-open{display:block;position:static;inset:auto;width:100%;max-height:none;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 12px 24px;margin:0;flex:1;background:transparent;border:0;box-shadow:none}
 #shell #main-navigation .nav-global-search{display:flex;align-items:center;text-align:left;width:100%;margin:0 0 18px;padding:10px 11px;min-height:38px;background:#2d3744;border:1px solid #425063;border-radius:7px;color:#e0e7f0;font-size:11px;box-shadow:none}
 #shell #main-navigation .nav-group{display:block;width:100%;padding:0;margin:0 0 12px;background:none;border:0}
 #shell #main-navigation :is(.nav-heading,.nav-section>summary){color:#a1afc1;font-size:10px;font-weight:650;letter-spacing:.7px;text-transform:uppercase;padding:13px 10px 8px;min-height:0;background:transparent;border:0}
 #shell #main-navigation .nav-section>summary{cursor:pointer;letter-spacing:.2px;text-transform:none;font-size:11px}
 #shell #main-navigation button[data-view]{display:flex;align-items:center;width:100%;min-height:38px;padding:8px 10px;margin:2px 0;border:0;border-radius:6px;background:transparent;color:#c7d1df;font-size:12px;line-height:1.45;font-weight:500;text-align:left;box-shadow:none;transform:none;gap:10px;transition:background .15s,color .15s}
 #shell #main-navigation button[data-view]:hover{background:#303e50;color:#fff;transform:none}
 #shell #main-navigation button[data-view][aria-current=page]{color:#fff;background:#3a4d64;box-shadow:inset 3px 0 #79aef5;font-weight:650}
 #shell #main-navigation button[data-view]:before{width:16px;height:16px;flex:0 0 16px;opacity:.85;filter:brightness(0) invert(1)}
 #shell .workspace{width:auto;min-width:0;margin-left:var(--office-nav);background:var(--ui-bg);min-height:100dvh}
 #shell .workspace>header{position:sticky;top:0;z-index:45;height:var(--office-header);min-height:var(--office-header);padding:10px 24px;display:flex;align-items:center;justify-content:space-between;border:0;border-bottom:1px solid var(--ui-line);background:var(--ui-surface);box-shadow:none;gap:16px}
 #shell .workspace>header #company{font-size:13px;line-height:1.4}#shell .workspace>header #person{font-size:10px;margin-top:2px}
 #shell .header-actions{display:flex;align-items:center;gap:6px;margin:0}
 #shell .header-actions button{min-height:32px;padding:6px 10px;border-radius:6px;font-size:11px;background:var(--ui-control);border:1px solid var(--ui-line);color:var(--ui-ink);box-shadow:none;transform:none}
 #shell .app-install{padding:0;margin:0;position:relative}
 #shell #install-hint{position:absolute;top:100%;right:0;width:240px;padding:12px;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:8px;z-index:80}
 #shell #content{max-width:none;min-width:0;padding:24px 26px 60px;background:var(--ui-bg);margin:0}
 #shell #content>div{min-width:0}
 #shell #content h1{font-size:27px;line-height:1.2;letter-spacing:-.8px;margin:0 0 22px;font-weight:700}
 #shell #content h2{font-size:19px;line-height:1.35;letter-spacing:-.4px;margin:0 0 16px}
 #shell #content h3{font-size:14px;line-height:1.4;letter-spacing:0;margin:16px 0 10px}
 #shell #content .panel{border-radius:10px;border:1px solid var(--ui-line);padding:20px;margin:0 0 18px;box-shadow:0 2px 6px #202a3704;min-width:0;background:var(--ui-surface);animation:none}
 #shell #content button,#shell #content .button-link{border-radius:6px;min-height:36px;padding:8px 12px;font-size:12px;line-height:1.4;font-weight:550;box-shadow:none;transition:background .15s,border-color .15s,box-shadow .15s;transform:none;text-transform:none;letter-spacing:0}
 #shell #content button:hover:not(:disabled),#shell #content .button-link:hover{transform:none;box-shadow:0 1px 4px #202a3710}
 #shell #content :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border-radius:6px;border:1px solid var(--ui-line);background:var(--ui-control);color:var(--ui-ink);font-size:13px;line-height:1.5;box-shadow:none;padding:8px 10px;min-height:36px}
 #shell #content input:not([type=checkbox]):not([type=radio]),#shell #content select{height:36px}
 #shell #content label{font-size:11px;font-weight:550;color:var(--ui-muted);line-height:1.5;gap:5px}
 #shell #content :is(input,select,textarea,button,a,summary):focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}
 #shell #content .table-scroll,#shell #content .billing-table{border:1px solid var(--ui-line);border-radius:8px;overflow:auto}
 #shell #content table{border-spacing:0;width:100%;border-collapse:collapse;font-size:12px}
 #shell #content table th{padding:12px;background:var(--ui-alt);color:var(--ui-muted);font-size:11px;font-weight:600;border:0;border-bottom:1px solid var(--ui-line);letter-spacing:0;text-transform:none}
 #shell #content table td{padding:13px 12px;border:0;border-bottom:1px solid var(--ui-line);vertical-align:middle;background:var(--ui-surface)}
 #shell #content table tbody tr:hover td{background:var(--ui-tint)}
 #shell #content table td :is(p,small){font-size:11px;margin:4px 0;color:var(--ui-muted)}
 #shell #content .register-shortcuts{display:flex;gap:3px;border-bottom:1px solid var(--ui-line);padding:0 0 10px;margin:8px 0 16px}
 #shell #content .register-shortcuts button{border-radius:6px;min-height:32px;padding:7px 12px}
 #shell #content .register-shortcuts button[aria-pressed=true]{background:var(--ui-tint);color:var(--ui-accent);border-color:transparent}
 /* One canvas, one action bar, one supporting rail. */
 #shell #content .offer-document-sheet{padding:20px!important;border-radius:10px!important;overflow:visible;background:var(--ui-surface)!important}
 #shell #content .offer-document-sheet>h2{border:0;padding:0;margin:0 0 8px;font-size:19px}
 #shell #content .offer-back{border:0;background:none;color:var(--ui-accent);padding:0;min-height:28px;margin:0 0 8px}
 #shell #content .document-command-bar,#shell #content .document-command-bar.document-icon-toolbar{position:sticky;top:var(--office-header);z-index:35;display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0 0 16px;padding:8px!important;border:1px solid var(--ui-line);border-radius:8px;background:var(--ui-surface);backdrop-filter:none;box-shadow:0 3px 8px #202a3707;min-height:0}
 #shell #content .document-icon-action{min-height:36px!important;height:auto!important;padding:7px 9px!important;gap:7px;white-space:nowrap}
 #shell #content .document-action-icon{width:16px;height:16px;min-width:16px;font-size:14px}
 #shell #content .document-action-caption{font-size:11px!important;white-space:nowrap}
 #shell #content .document-action-caption:after{display:none}
 #shell #content .offer-toolbar-menu>summary{min-height:36px;padding:8px 10px;border-radius:6px;font-size:11px}
 #shell #content .offer-document-sheet .editor-layout{display:block;margin:0}
 #shell #content .document-editor-form{display:block}
 #shell #content .document-editor-body{display:grid;grid-template-columns:minmax(0,1fr) 230px;align-items:start;gap:16px;margin:0}
 #shell #content .document-editor-form>.document-command-bar{grid-column:1/-1}
 #shell #content .document-section-nav{grid-column:1/-1;display:flex;gap:4px;padding:0 0 8px;border-bottom:1px solid var(--ui-line);margin:0}
 #shell #content .document-section-nav button{padding:6px 12px;min-height:31px;background:none;border:0;color:var(--ui-muted);border-radius:5px}
 #shell #content .document-section-nav button:hover{background:var(--ui-tint);color:var(--ui-accent)}
 #shell #content .document-editor-main{display:block;min-width:0;padding:0;background:none;border:0}
 #shell #content .document-editor-form .document-editor-rail{position:sticky;top:130px;max-height:calc(100dvh - 150px);overflow-y:auto;grid-column:2;grid-row:1;display:block;padding:14px!important;border-radius:8px!important;background:var(--ui-alt)!important;border:1px solid var(--ui-line)!important;box-shadow:none}
 #shell #content .document-editor-rail>h3:first-child{margin-top:0}
 #shell #content .offer-document-sheet .document-editor-form .offer-header-summary{padding:0!important;border:0!important;background:none!important;border-radius:0!important;min-width:0;min-height:0;box-shadow:none!important}
 #shell #content .offer-summary-line{font-size:11px;gap:8px;display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid var(--ui-line)}
 #shell #content .offer-summary-line span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#shell #content .offer-summary-line strong{white-space:nowrap;font-variant-numeric:tabular-nums}
 #shell #content .summary-gross{font-size:16px!important;border:0!important;margin:0!important;padding:12px 0!important}
 #shell #content .offer-header-summary small{font-size:10px;line-height:1.5;color:var(--ui-muted);display:block}
 #shell #content .document-head-section{margin:0 0 14px;scroll-margin-top:135px}
 #shell #content .offer-document-header{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:20px;margin:0 0 16px;padding:0;min-height:0;border:0;background:none}
 #shell #content .offer-document-header h3{font-size:12px;margin:0 0 8px;color:var(--ui-ink)}
 #shell #content .offer-recipient{padding:0;min-width:0}
 #shell #content .offer-recipient .customer-block{font-size:11px;line-height:1.5;margin:8px 0;white-space:pre-line}
 #shell #content .offer-recipient details{font-size:10px;margin:6px 0;padding:0;border:0;background:none}
 #shell #content .document-site-field{min-width:0}#shell #content .document-site-field textarea{width:100%;min-height:76px;height:76px;resize:vertical}
 #shell #content .document-site-field button{margin-top:5px;min-height:26px;padding:4px 0;border:0;background:none;color:var(--ui-accent);font-size:10px}
 #shell #content .document-site-address{white-space:pre-line;font-size:12px;line-height:1.55}
 #shell #content .offer-metadata{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;padding:0;margin:0}
 #shell #content .document-text-section{border:1px solid var(--ui-line);border-radius:6px;padding:10px 12px;margin:0 0 16px;background:var(--ui-control);scroll-margin-top:135px}
 #shell #content .document-text-section>summary{font-size:12px;font-weight:550;cursor:pointer}
 #shell #content .document-text-section[open]>summary{margin-bottom:12px}
 #shell #content .document-text-section textarea{min-height:100px;width:100%}
 #shell #content .offer-section-heading{margin:18px 0 10px;padding:0;border:0;font-size:14px}
 #shell #content .offer-lines{margin:0;scroll-margin-top:135px}
 #shell #content .offer-document-sheet .compact-position{padding:12px 0!important;margin:0;border-bottom:1px solid var(--ui-line)!important;min-width:0}
 #shell #content .compact-position>legend{font-size:10px;color:var(--ui-muted);padding:0 0 4px}
 #shell #content .offer-document-sheet .position-title-heading{padding:7px 9px!important;border-radius:6px!important;margin:0 0 12px;background:var(--ui-alt)!important;gap:8px}
 #shell #content .position-title-heading input{height:28px!important;min-height:28px!important;padding:2px 6px!important;font-size:13px!important}
 #shell #content .position-title-heading .title-quick-add{min-height:28px;padding:5px 9px;font-size:10px}
 #shell #content .compact-position-grid{display:grid;grid-template-columns:64px 60px minmax(130px,1fr) 83px 66px 91px;gap:7px;align-items:end}
 #shell #content .compact-position-grid>label{min-width:0;margin:0;font-size:10px}
 #shell #content .compact-position-grid input{width:100%;font-size:12px;padding:7px 8px}
 #shell #content .compact-position-grid .position-picker{padding:0;margin:0;background:none;border:0;min-width:0;box-shadow:none}
 #shell #content .position-picker>p{display:none}
 #shell #content .position-net{text-align:right;font-size:12px;font-variant-numeric:tabular-nums;padding:0 0 7px}
 #shell #content .position-net small{display:block;font-size:9px;color:var(--ui-muted);margin-bottom:7px}
 #shell #content .compact-position>label:has(textarea){margin:8px 0 0;font-size:10px}
 #shell #content .compact-position>label>textarea{min-height:65px;resize:vertical;width:100%;font-size:12px}
 #shell #content .position-delete{float:right;min-height:27px;margin:5px 0;padding:4px 8px;font-size:10px;color:var(--ui-red);background:none;border:0}
 #shell #content .position-group-options{margin:8px 0 0;padding:0;border:0;background:none;clear:none}
 #shell #content .position-group-options>summary{font-size:10px;color:var(--ui-muted);min-height:27px;padding:4px 0;cursor:pointer}
 #shell #content .position-title-total{font-size:11px;padding:8px 0!important;margin:0;clear:both}
 #shell #content .position-title-total:empty,#shell #content .title-group-footer:empty{display:none}
 #shell #content .title-group-actions{margin:0 0 8px;padding:0;border:0;background:none;display:block}
 #shell #content .title-group-actions>summary{font-size:10px;color:var(--ui-accent);cursor:pointer;min-height:24px;padding:4px 0}
 #shell #content .title-group-actions button{min-height:28px;font-size:10px;margin:6px 5px 0 0;padding:5px 8px}
 #shell #content .title-group-footer{padding:0;margin:0;border:0;min-height:0}
 #shell #content .title-controls{display:flex;align-items:end;gap:8px;padding:12px 0;margin:0;background:none;border:0}
 #shell #content .title-controls label{flex:1;margin:0}#shell #content .title-controls button{font-size:11px}
 #shell #content .title-overview{background:none;padding:0;border:0;margin:16px 0}
 #shell #content .title-overview>small{display:none}#shell #content .title-summary-row{width:100%;text-align:left;margin:3px 0;padding:7px 8px;font-size:11px;border:0;background:var(--ui-surface)}
 #shell #content .template-picker-position{background:none;padding:0;margin:16px 0 0;border:0;box-shadow:none}
 #shell #content .template-picker-position .muted{font-size:10px;line-height:1.5}
 #shell #content .draft-save-status{font-size:10px;padding:6px 10px;margin:0 0 10px}
 #shell #content .invoice-saved-position{display:grid;grid-template-columns:32px minmax(0,1fr) 100px 110px;gap:12px;align-items:start;padding:12px 0;border-bottom:1px solid var(--ui-line);font-size:12px}
 #shell #content .invoice-saved-position p{margin:0;white-space:pre-line}
 #shell #content .invoice-saved-position strong{text-align:right;white-space:nowrap}
 @media(min-width:1650px){#shell #content .document-editor-body{grid-template-columns:minmax(0,1fr) 280px}#shell #content{padding-left:36px;padding-right:36px}}
 @media(max-width:1200px) and (min-width:901px){:root{--office-nav:196px}#shell #content{padding:20px 16px 40px}#shell #content .document-editor-body{grid-template-columns:minmax(0,1fr) 200px}#shell #content .compact-position-grid{grid-template-columns:60px 55px minmax(90px,1fr) 75px 60px 85px;gap:5px}}
 @media(max-width:1050px){#shell #content .document-editor-body{display:block}#shell #content .document-editor-form .document-editor-rail{position:static;max-height:none;margin-top:18px;display:grid;grid-template-columns:1fr 1fr;gap:12px}#shell #content .document-editor-rail>h3{grid-column:1/-1;margin:0}#shell #content .document-section-nav{margin-bottom:14px}}
 @media(max-width:900px){:root{--office-header:56px}#shell>aside{position:sticky;top:0;width:100%;height:54px;min-height:54px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0 16px}#shell .studio-brand{width:auto;height:54px;font-size:23px;padding:0}#shell #navigation-toggle{display:block;background:#303e50;color:#fff;border:1px solid #516176;border-radius:6px;font-size:12px;min-height:34px}#shell #main-navigation{display:none}#shell #main-navigation.mobile-open{display:block;position:absolute;left:0;top:54px;max-height:calc(100dvh - 54px);padding:15px;background:#202833;box-shadow:0 20px 35px #0003}#shell .workspace{margin-left:0}#shell .workspace>header{position:static;height:auto;min-height:54px;padding:8px 16px}#shell .header-actions #voice-open{font-size:0;width:34px}#shell .header-actions #voice-open:after{content:'♫';font-size:16px}#shell .header-actions #appearance-open{display:none}#shell #content{padding:18px 16px 40px}#shell #content .document-command-bar{top:54px}#shell #content .document-head-section,#shell #content .offer-lines,#shell #content .document-text-section{scroll-margin-top:150px}}
 @media(max-width:600px){#shell .header-actions{flex-wrap:wrap;gap:4px}#shell #content h1{font-size:24px;margin-bottom:18px}#shell #content .offer-document-sheet{padding:14px!important}#shell #content .offer-document-header{grid-template-columns:1fr;gap:16px}#shell #content .document-editor-form .document-editor-rail{display:block}#shell #content .compact-position-grid{grid-template-columns:1fr 1fr 1fr;gap:8px}#shell #content .compact-position-grid .position-picker{grid-column:1/-1;grid-row:1}#shell #content .compact-position-grid>label:has(input[name=discount]){grid-column:2}#shell #content .compact-position-grid input{font-size:16px}#shell #content :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px;min-height:42px}#shell #content .compact-position>label>textarea{font-size:16px}#shell #content .document-command-bar{position:relative;top:auto;gap:5px}#shell #content .document-icon-action{min-height:40px!important;padding:8px!important}#shell #content .offer-toolbar-menu-body{left:0;right:0;width:auto}#shell #content .title-controls{flex-direction:column;align-items:stretch}#shell #content .offer-metadata{grid-template-columns:1fr 1fr}#shell #content .offer-metadata>label:first-child{grid-column:1/-1}#shell #content .invoice-saved-position{grid-template-columns:22px 1fr;gap:7px}#shell #content .invoice-saved-position>strong{text-align:left}#shell #content .invoice-saved-position>span:nth-child(3){grid-column:2}#shell #content table{min-width:650px}#shell #content .panel{padding:16px}#shell #content .document-section-nav{overflow:auto}#shell #content .document-section-nav button{white-space:nowrap;min-height:40px}}
 @media(prefers-reduced-motion:reduce){#shell *,#shell *:before,#shell *:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
}

@media screen {
 #shell.shell>aside{background:#202833!important;color:#e6ebf2!important}
 #shell #main-navigation,#shell #main-navigation.mobile-open{background:#202833!important}
 #shell .studio-brand{color:#fff!important;background:transparent!important}
 #shell #main-navigation button[data-view]{color:#c7d1df!important;background:transparent!important}
 #shell #main-navigation button[data-view]:hover{background:#303e50!important;color:#fff!important}
 #shell #main-navigation button[data-view][aria-current=page]{background:#3a4d64!important;color:#fff!important}
 #shell #main-navigation :is(.nav-heading,.nav-section>summary){color:#a1afc1!important;background:transparent!important}
 #shell #content .document-section-nav{margin:0 0 16px}
 #shell #content .offer-document-sheet>.muted{font-size:10px;margin:0 0 10px;line-height:1.5}
 #shell #content .document-command-bar .document-action-caption{font-size:11px!important}
 #shell #content .document-editor-main .offer-document-header{grid-template-columns:1fr 1fr}
 #shell #content .document-editor-form .draft-save-status{font-size:10px;padding:5px 9px;margin:0 0 10px}
 @media(max-width:1050px){#shell #content .document-editor-body{display:block}#shell #content .document-editor-form .document-editor-rail{position:static;max-height:none;margin-top:18px;display:block}}
 @media(max-width:600px){#shell #content .document-editor-main .offer-document-header{grid-template-columns:1fr}}
}
@media screen {
 #shell #content .offer-document-sheet form.document-editor-form{display:block!important}
 #shell #content .document-editor-body{width:100%;min-width:0}
 #shell #content .document-editor-form .document-section-nav{padding:0 0 8px;margin:0 0 16px}
 #shell #content .offer-document-sheet .document-editor-form .document-editor-rail{background:var(--ui-alt)!important}
}
@media screen {
 #shell #main-navigation{scrollbar-width:thin;scrollbar-color:#536174 #202833}
 #shell #content .offer-document-sheet .compact-position{display:block!important}
 #shell #content .offer-document-sheet .compact-position-grid{margin:0 0 7px}
 #shell #content .offer-document-sheet .compact-position-grid :is(input,select){height:36px!important;min-height:36px!important;font-weight:400}
 #shell #content .offer-document-sheet .compact-position>label>textarea{height:68px;min-height:68px;line-height:1.5;font-weight:400}
 #shell #content .offer-document-sheet .position-delete{margin:3px 0;float:right}
 #shell #content .offer-document-sheet .position-group-options{margin:3px 0}
 #shell #content .offer-document-sheet .position-group-options[open]{clear:both}
 #shell #content .offer-document-sheet .position-title-total{padding:6px 0!important}
 #shell #content .offer-document-sheet .title-group-actions{margin:0}
 #shell #content .offer-document-sheet .document-editor-rail{scrollbar-width:thin}
 #shell #content .offer-metadata>p{grid-column:1/-1;margin:0;font-size:11px}
 @media(max-width:600px){#shell #content .offer-document-sheet .compact-position-grid :is(input,select){height:42px!important;min-height:42px!important;font-size:16px}}
}
/* Compact street results remain inside the editor; attribution is not a choice. */
#shell #content .street-autocomplete .address-suggestions{display:flex;flex-direction:column;gap:0;max-height:250px;overflow:auto;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:8px;margin:6px 0;box-shadow:0 8px 24px #202a3710}
#shell #content .street-autocomplete .address-suggestions button{width:100%;min-height:38px;margin:0;padding:9px 12px;text-align:left;color:var(--ui-ink);font-size:12px;background:none;border:0;border-radius:0;border-bottom:1px solid var(--ui-line)}
#shell #content .street-autocomplete .address-suggestions button:last-child{border-bottom:0}
#shell #content .street-autocomplete .address-suggestions button:hover,#shell #content .street-autocomplete .address-suggestions .suggestion-active{background:var(--ui-alt);color:var(--ui-accent)}
#shell #content .address-attribution{display:block;font-size:10px;line-height:1.4;color:var(--ui-muted);margin:4px 0 8px}
#shell #content .address-attribution a{font-size:inherit;color:inherit;text-decoration:underline}
@media(max-width:640px){#shell #content .street-autocomplete .address-suggestions button{min-height:44px}}

.service-share-dialog{max-width:560px;width:calc(100% - 40px);border:1px solid #dbe1e7;border-radius:18px;padding:24px;color:#172532;background:#fff}.service-share-dialog::backdrop{background:#14213570;backdrop-filter:blur(4px)}.service-share-dialog input{width:100%;box-sizing:border-box}.service-share-dialog>div{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}

.mobile-setup {
 width:min(560px, calc(100% - 32px));max-width:none;max-height:calc(100dvh - 40px);
 padding:24px;border:1px solid var(--ui-line,#dbe3ec);border-radius:18px;
 background:var(--ui-surface,#fff);color:var(--ui-ink,#202a37);box-shadow:0 24px 70px #08182d45;
 overflow:auto;overscroll-behavior:contain;
}
.mobile-setup::backdrop{background:#17283b70;backdrop-filter:blur(4px)}
body:has(.mobile-setup[open]){overflow:hidden}
.mobile-setup-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}
.mobile-setup-heading h2{margin:0;font-size:23px;line-height:1.2}
.mobile-setup button,.mobile-setup-primary{
 min-height:44px;padding:8px 12px;font-size:13px;font-weight:600;text-decoration:none;
 color:var(--ui-ink,#202a37);background:var(--ui-surface,#fff);border:1px solid var(--ui-line,#dbe3ec);border-radius:8px;
}
.mobile-setup button:hover:not(:disabled),.mobile-setup-primary:hover{background:var(--ui-tint,#e9f1ff)}
.mobile-setup-primary{display:inline-flex;align-items:center;justify-content:center}
.mobile-setup-connection{
 padding:15px;border:1px solid var(--ui-line,#dbe3ec);border-radius:12px;background:var(--ui-alt,#f3f6fa);
 font-size:14px;overflow-wrap:anywhere;
}
.mobile-setup-connection[data-state=ready]{background:var(--ui-tint,#e9f1ff)}
.mobile-setup-connection [role=status]>strong{display:block;margin-bottom:4px}
.mobile-setup-connection p{margin:0}
.mobile-setup-connection .mobile-setup-configure{margin-top:12px}
.mobile-setup-configure a{color:inherit;text-underline-offset:2px}
.mobile-setup-connection>button{margin-top:12px}
.mobile-setup-address{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:12px}
.mobile-setup-qr{background:#fff;padding:5px;border-radius:8px;display:block}
.mobile-setup-direct{min-width:min(235px,100%);flex:1}
.mobile-setup-direct input{
 min-height:44px;font-size:16px;color:var(--ui-ink,#202a37);background:var(--ui-surface,#fff);
 border-color:var(--ui-line,#dbe3ec);overflow:hidden;text-overflow:ellipsis;
}
.mobile-setup-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.mobile-setup-feedback{display:block;font-size:12px;margin-top:4px}
.mobile-setup-steps{margin-top:17px;font-size:14px;line-height:1.55}
.mobile-setup-steps h3{font-size:16px;margin:0 0 8px}
.mobile-setup-steps ol{margin:0 0 12px;padding-inline-start:21px}
.mobile-setup-steps li+li{margin-top:6px}
.mobile-setup-steps details{padding-block:7px;border-block-start:1px solid var(--ui-line,#dbe3ec)}
.mobile-setup-steps summary{font-size:15px;font-weight:650;min-height:44px;padding:10px 0}
.mobile-setup-note,.mobile-setup-installed{font-size:13px;color:var(--ui-muted,#596878);margin:8px 0 0}
.mobile-setup-installed{color:var(--ui-ink,#202a37);font-weight:650;margin-bottom:12px}
.mobile-setup :is(button,a,input,summary):focus-visible{outline:2px solid var(--ui-accent,#2367c8);outline-offset:2px}
@media screen and (max-width:900px) {
 #shell>.mobile-app-dock{
  display:flex;position:fixed;inset:auto 0 0;z-index:65;justify-content:space-around;gap:3px;
  padding:5px max(8px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
  background:var(--ui-surface,#fff);border-top:1px solid var(--ui-line,#dbe3ec);
 }
 #shell>.mobile-app-dock button{
  flex:1;display:flex;min-width:0;min-height:48px;align-items:center;justify-content:center;flex-direction:column;
  padding:4px 2px;gap:3px;border:0;border-radius:8px;font-size:11px;line-height:1.2;
  background:transparent;color:var(--ui-muted,#596878);text-align:center;box-shadow:none;transform:none;
 }
 #shell>.mobile-app-dock :is(button[aria-current=page],button[aria-expanded=true]){
  background:var(--ui-tint,#e9f1ff);color:var(--ui-accent,#2367c8);font-weight:650;
 }
 .mobile-dock-icon{
  width:21px;height:21px;background:currentColor;
  -webkit-mask:var(--dock-icon) center/contain no-repeat;mask:var(--dock-icon) center/contain no-repeat;
 }
 .mobile-dock-menu-icon{font-size:23px;height:21px;line-height:17px}
 #shell #main-navigation.mobile-open{max-height:calc(100dvh - 113px - env(safe-area-inset-bottom))}
 #shell #content{padding-bottom:calc(90px + env(safe-area-inset-bottom))}
 #shell .app-install button{min-height:44px}
}
@media screen and (max-width:480px){
 .mobile-setup{padding:16px;max-height:calc(100dvh - 24px)}
 .mobile-setup-heading h2{font-size:20px}
}

@media screen {
  :root[data-accent=lingam][data-appearance=light] {
    --ui-bg:#f5f5f0; --ui-alt:#eeefe9; --ui-line:#d8ddd5; --ui-control:#fff;
    --ui-ink:#162722; --ui-muted:#55655e; --ui-accent:#175c4a; --ui-primary:#205e4b;
    --ui-tint:#e3eee6; --ui-glass:#fbfcf8f4;
  }
  :root[data-accent=lingam][data-appearance=dark] {
    --ui-bg:#141c19; --ui-surface:#1c2722; --ui-alt:#24332c; --ui-control:#202e27; --ui-line:#415047;
    --ui-ink:#edf3ec; --ui-muted:#b2c0b6; --ui-accent:#a5d6b9; --ui-primary:#34694e; --ui-tint:#294335; --ui-glass:#1c2722f4;
  }
  #shell {--nav-canvas:#17362f;--nav-hover:#24473e;--nav-active:#33594d;--nav-muted:#b4c6bc}
  #shell.shell>aside,#shell #main-navigation,#shell #main-navigation.mobile-open {background:var(--nav-canvas)!important}
  #shell.shell>aside {border-color:#25463a}
  #shell .studio-brand {letter-spacing:-1.8px;font-size:30px;height:72px}
  #shell .brand-dot {color:#e5bc79}
  #shell #main-navigation {scrollbar-color:#698476 var(--nav-canvas)}
  #shell #main-navigation .nav-global-search {background:#23463d;border-color:#406155;color:#f1f5ef}
  #shell #main-navigation button[data-view] {color:#dce7df!important;font-size:13px}
  #shell #main-navigation button[data-view]:hover {background:var(--nav-hover)!important}
  #shell #main-navigation button[data-view][aria-current=page] {background:var(--nav-active)!important;box-shadow:inset 3px 0 #f0ca82}
  #shell #main-navigation :is(.nav-heading,.nav-section>summary) {color:var(--nav-muted)!important}
  #shell .workspace>header {background:var(--ui-surface)!important;border-bottom:1px solid var(--ui-line)}
  #shell .office-identity {display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 12px}
  #shell .office-identity #company {font-size:14px}
  #shell .office-identity #person {font-size:12px}
  #shell .office-menu {position:relative;padding:0;border:0;margin:0;background:transparent}
  #shell .office-menu>summary {display:flex;align-items:center;gap:9px;min-height:36px;padding:6px 12px;border-radius:7px;background:var(--ui-alt);color:var(--ui-ink);font-size:13px;font-weight:600;cursor:pointer;list-style:none}
  #shell .office-menu>summary::-webkit-details-marker {display:none}
  #shell .office-menu>summary::after {content:'';width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin-top:-3px}
  #shell .office-menu[open]>summary::after {transform:rotate(225deg);margin-top:3px}
  #shell .office-menu-actions {position:absolute;z-index:72;right:0;top:calc(100% + 6px);min-width:190px;display:grid;gap:4px;padding:6px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-surface);box-shadow:0 8px 30px #14291f24}
  #shell .office-menu-actions button {display:block!important;width:100%;padding:10px 12px;min-height:40px;border:0;text-align:left;background:none;font-size:13px}
  #shell .office-menu-actions button:hover {background:var(--ui-tint)}
  #shell .office-menu-actions #logout {border-top:1px solid var(--ui-line);border-radius:0}
  #shell #content {max-width:1600px;margin-inline:auto;padding-inline:clamp(18px,2.6vw,48px)}
  #shell #content>h1 {font-size:clamp(26px,2.6vw,38px);letter-spacing:-.045em}
  #shell #content .panel {box-shadow:none;border-radius:12px}
  #shell #content .project-trail {display:flex;margin:0 0 6px;padding:0;position:static;width:auto;background:none;border:0}
  #shell #content .project-trail button {text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:100%;background:none;border:0;color:var(--ui-accent);min-height:32px;padding:3px 0;text-align:left;font-size:13px}
  #shell #content .desk-lead {display:grid;grid-template-columns:minmax(0,1.45fr) minmax(190px,1fr);gap:24px;align-items:stretch;margin:0 0 20px}
  .desk-intro {align-self:center}
  #shell #content .desk-intro .desk-date {margin:0 0 5px;color:var(--ui-muted);font-size:14px;font-weight:550}
  #shell #content .desk-intro h1 {display:block;font-size:clamp(36px,4.1vw,60px);margin:0 0 19px;line-height:1.03;letter-spacing:-.06em}
  #shell #content .desk-actions {display:flex;gap:7px;flex-wrap:wrap}
  #shell #content .desk-actions button {padding:9px 12px;min-height:39px;font-size:13px;border-radius:7px}
  #shell #content button.desk-projects {display:block;isolation:isolate;position:relative;min-width:0;height:162px;padding:0;border:0;border-radius:12px;overflow:hidden;background:#634a30;color:#fff;text-align:left}
  .desk-projects img {display:block;width:100%;height:100%;object-fit:cover;object-position:50% 66%;transition:transform .25s ease}
  .desk-projects:hover img {transform:scale(1.035)}
  .desk-projects::after {content:'';position:absolute;inset:20% 0 0;background:linear-gradient(transparent,#171912ae);pointer-events:none}
  .desk-projects span,.desk-projects i {position:absolute;z-index:1;bottom:14px;color:white}
  .desk-projects span {left:16px;font-size:18px;font-weight:625;letter-spacing:-.025em}
  .desk-projects i {right:14px;font:normal 22px/1 system-ui}
  #shell #content[data-screen=dashboard]>.desk-metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0 0 22px;padding:0;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-surface);box-shadow:none;overflow:hidden}
  #shell #content[data-screen=dashboard]>.desk-metrics .workflow-metric:nth-child(n) {display:grid;grid-template-columns:1fr auto;justify-items:start;align-content:center;gap:4px;padding:12px 18px!important;min-height:82px;margin:0;border:0!important;border-radius:0!important;border-inline-end:1px solid var(--ui-line)!important;background:var(--ui-surface)!important;box-shadow:none!important}
  #shell #content[data-screen=dashboard]>.desk-metrics .workflow-metric:last-child {border-inline-end:0!important}
  #shell #content .desk-metrics .workflow-metric .muted {grid-column:1;grid-row:1;color:var(--ui-muted)!important;font-size:12px;font-weight:550}
  #shell #content .desk-metrics .workflow-metric .value {grid-column:1;grid-row:2;color:var(--ui-ink)!important;font-size:24px;letter-spacing:-.045em;font-variant-numeric:tabular-nums}
  #shell #content .desk-metrics .workflow-metric .metric-action {grid-column:2;grid-row:1/3;align-self:center;color:var(--ui-muted)!important;font-size:17px}
  #shell #content[data-screen=dashboard]>.desk-metrics .workflow-metric.is-due {background:var(--ui-red-bg)!important}
  #shell #content .desk-metrics .workflow-metric.is-due .value {color:var(--ui-red)!important}
  #shell #content .workspace-worklist {display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,235px) auto;align-items:center;gap:12px 10px;padding:20px;scroll-margin-top:100px}
  #shell #content .workspace-worklist>h2 {margin:0;padding:0;border:0;font-size:20px}
  #shell #content .workspace-worklist>label {grid-column:2;grid-row:1;min-width:0;margin:0;font-size:12px}
  #shell #content .workspace-worklist .desk-refresh {grid-column:3;grid-row:1;align-self:end}
  #shell #content .workspace-worklist .workflow-steps {grid-column:1/-1;display:flex;flex-direction:row;flex-wrap:wrap;gap:4px;padding:0 0 10px;margin:0;border:0;border-bottom:1px solid var(--ui-line)}
  #shell #content .workspace-worklist .workflow-step {display:inline-flex;align-items:center;gap:7px;width:auto;min-height:36px;padding:6px 9px;margin:0;box-shadow:none;border:1px solid transparent;border-radius:6px;background:transparent!important;color:var(--ui-muted)}
  #shell #content .workspace-worklist .workflow-step[aria-pressed=true] {background:var(--ui-tint)!important;color:var(--ui-accent);border-color:var(--ui-line)}
  #shell #content .workspace-worklist .workflow-step strong {font-size:13px}
  #shell #content .workspace-worklist .workflow-count {background:var(--ui-alt);color:var(--ui-ink);padding:0 5px;min-width:18px;text-align:center;font-size:11px;border-radius:4px}
  #shell #content .workspace-worklist .workflow-detail {grid-column:1/-1;min-width:0;padding:0;border:0}
  #shell #content .workspace-worklist .workflow-detail>h3 {margin:0 0 4px;font-size:15px}
  #shell #content .workspace-worklist .workflow-row {padding:12px 0;font-size:13px;gap:12px}
  #shell #content .water-central {padding:20px;border-radius:12px}
  #shell #content .water-central-stages button {min-height:64px}
  .water-stage-arrow {font-size:16px}
  #shell #content .project-masthead {border-top:3px solid var(--ui-accent);display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;padding:18px 20px}
  #shell #content .project-masthead>p {margin:0;font-size:15px}
  #shell #content .project-masthead .project-main-actions {order:1;display:flex;flex-wrap:wrap;gap:6px;margin-inline-start:auto}
  #shell #content .project-masthead .project-shortcuts {order:2;display:flex;flex-wrap:wrap;flex-basis:100%;gap:5px;padding:10px 0 0;margin:2px 0 0;border-top:1px solid var(--ui-line)}
  #shell #content .project-masthead .project-shortcuts button {flex:none;min-height:35px;background:var(--ui-alt);border-color:transparent}
  #shell #content .project-masthead>.project-more-actions {order:3}
  #shell #content .project-masthead .project-live-status {order:4;margin:0 0 0 auto}
  #shell #content .project-register .row {display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px}
  .project-match-count {font-size:12px;color:var(--ui-muted)}
  #shell #content .document-site-field button {margin:5px 8px 0 0;padding:5px 4px;font-size:12px}
  #shell #content .document-icon-toolbar [aria-label="In Rechnung umwandeln"] {color:var(--ui-accent);background:var(--ui-tint);border-color:var(--ui-line)}
  @media(max-width:900px) {
    #shell .studio-brand {height:auto;font-size:24px}
    #shell .workspace>header {min-height:48px;height:auto}
    #shell .office-menu-actions #voice-open {display:block;width:100%;font-size:13px}
    #shell .office-menu-actions #voice-open::after {content:none}
    #shell .office-menu-actions #appearance-open {display:block}
  }
  @media(max-width:720px) {
    #shell #content .desk-lead {grid-template-columns:minmax(0,1fr) minmax(110px,.46fr);gap:12px}
    #shell #content .desk-actions {gap:5px}
    #shell #content .desk-actions button {min-height:42px}
    #shell #content .desk-intro h1 {font-size:36px}
    #shell #content .desk-intro .desk-date {font-size:12px}
    #shell #content button.desk-projects {height:auto;min-height:138px;align-self:stretch}
    .desk-projects img {position:absolute;inset:0}
    .desk-projects span {bottom:10px;left:10px;right:9px;font-size:15px;line-height:1.2}
    .desk-projects i {top:10px;bottom:auto;right:10px;background:#233024a8;padding:1px 4px;border-radius:4px}
    #shell #content[data-screen=dashboard]>.desk-metrics {margin-bottom:14px}
    #shell #content[data-screen=dashboard]>.desk-metrics .workflow-metric:nth-child(n) {display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:6px;padding:10px!important;min-height:84px}
    #shell #content .desk-metrics .workflow-metric .muted {font-size:11px;text-align:left}
    #shell #content .desk-metrics .workflow-metric .value {font-size:clamp(13px,3.9vw,23px);overflow-wrap:anywhere}
    #shell #content .desk-metrics .workflow-metric .metric-action {display:none}
    #shell #content .workspace-worklist {grid-template-columns:minmax(0,1fr) auto;padding:14px;gap:10px}
    #shell #content .workspace-worklist>h2 {grid-column:1;grid-row:1}
    #shell #content .workspace-worklist>label {grid-column:1/-1;grid-row:2;width:100%;max-width:none}
    #shell #content .workspace-worklist .desk-refresh {grid-column:2}
    #shell #content .workspace-worklist .workflow-steps {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}
    #shell #content .workspace-worklist .workflow-step {justify-content:center;min-height:42px;gap:3px;padding:3px}
    #shell #content .workspace-worklist .workflow-step strong {font-size:12px}
    #shell #content .workspace-worklist .workflow-row {flex-wrap:wrap;align-items:start}
    #shell #content .project-masthead .project-main-actions {margin-left:0;flex-basis:100%}
    #shell #content .project-register .row {grid-template-columns:minmax(0,1fr) auto}
    #shell #content .project-register .row>div {grid-column:1/-1}
  }
  @media(max-width:430px) {
    #shell #content {padding-inline:12px}
    #shell .office-identity {display:grid;gap:0}
    #shell .workspace>header {padding-inline:12px}
    #shell #content .desk-intro h1 {font-size:32px;margin-bottom:12px}
    #shell #content .desk-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
    #shell #content .desk-actions button {padding:5px;font-size:12px}
  }
  @media(prefers-reduced-motion:reduce){.desk-projects img{transition:none}.desk-projects:hover img{transform:none}}
  :root[data-motion=reduce] .desk-projects img{transition:none;transform:none}

  #shell #content h1 {overflow-wrap:anywhere}
  #shell #content .desk-metrics .value {line-height:1.1;margin:0}
  #shell #content .project-masthead {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
  #shell #content .project-identity {display:flex;flex-wrap:wrap;align-items:center;gap:8px}
  #shell #content .project-identity p {margin:0}
  #shell #content .project-masthead .project-main-actions {grid-column:2;grid-row:1}
  #shell #content .project-masthead .project-shortcuts {grid-column:1/-1;grid-row:2}
  #shell #content .project-masthead .project-more-actions {grid-column:1;grid-row:3}
  #shell #content .project-masthead .live-sync-bar {grid-column:2;grid-row:3;justify-self:end;margin:0}
  #shell #content .offer-register-filters {display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,auto);align-items:start}
  #shell #content .offer-register-filters .offer-extra-filters {margin:0;padding:0;border:0}
  #shell #content .offer-extra-filters>summary {padding:9px 3px;cursor:pointer;color:var(--ui-accent);font-weight:600}
  #shell #content .offer-extra-filters[open] {grid-column:1/-1}
  #shell #content .offer-filter-options {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  #shell #content .offer-register-actions button {width:auto;white-space:nowrap}
  #shell #content .register-shortcuts button[hidden] {display:none}
  @media(min-width:761px) {
    #shell #content .offer-register-table {table-layout:fixed}
    #shell #content .offer-register-table th:nth-child(1) {width:18%}
    #shell #content .offer-register-table th:nth-child(2) {width:18%}
    #shell #content .offer-register-table th:nth-child(3) {width:auto}
    #shell #content .offer-register-table th:nth-child(4) {width:16%}
    #shell #content .offer-register-table th:nth-child(5) {width:155px}
    #shell #content .offer-register-table td {min-width:0;overflow-wrap:anywhere}
    #shell #content .offer-register-row-actions .document-pdf-actions {display:flex;flex-wrap:wrap;gap:3px}
    #shell #content .offer-register-row-actions .document-pdf-actions>* {margin:0;max-width:100%;white-space:normal}
  }
  @media(max-width:850px) {
    #shell #content .project-masthead {display:flex}
    #shell #content .project-masthead .project-main-actions {margin-left:0;flex-basis:100%}
    #shell #content .project-masthead .live-sync-bar {order:4}
  }
  @media(max-width:640px) {
    #shell #content .offer-filter-options,#shell #content .offer-register-filters {grid-template-columns:1fr}
  }

  #shell #content .offer-register-actions {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding-bottom:10px;border-bottom:1px solid var(--ui-line)}
  #shell #content .offer-register-actions h2 {margin:0;padding:0;border:0}
  #shell #content .offer-register-table td.offer-register-row-actions {vertical-align:middle}
  #shell #content .offer-register-table .offer-number-link {border:0;box-shadow:none;background:transparent;padding:0}
  #shell #content .offer-register-table .offer-row-menu {margin:0 0 4px;padding:0;border:0}
  #shell #content .offer-register-table .offer-row-menu>summary {min-height:30px;padding:6px 2px;color:var(--ui-muted);font-size:12px}
  #shell #content .offer-register-table .document-pdf-actions {display:flex;align-items:center;flex-wrap:wrap;gap:4px}
  #shell #content .offer-register-table .document-pdf-actions a {font-weight:600;font-family:inherit;font-size:12px;line-height:1.2;min-height:30px;display:inline-flex;align-items:center;padding:4px 7px;margin:0}
  @media(min-width:761px){#shell #content .offer-register-table th:nth-child(5) {width:168px}}
  @media(max-width:760px){#shell #content .offer-register-table .document-pdf-actions a {min-height:44px}}
  :root[data-appearance=dark] #shell #workday-badge.urgent {background:#412a29!important;border-color:#a47370!important;color:#ffd4c9!important}
}

