/* Activated by mobile-editor.js only for small devices with a primary touch pointer. */
.mobile-only{display:none!important}
html.mobile-editor .mobile-only{display:flex!important}
html.mobile-editor body{height:auto;min-height:100dvh;overflow:auto;padding-bottom:0}
html.mobile-editor body>header{display:grid;grid-template-columns:minmax(58px,.8fr) minmax(112px,1.5fr) minmax(84px,1.1fr);gap:7px 6px;height:auto;min-height:0;padding:8px max(10px,env(safe-area-inset-right)) 7px max(10px,env(safe-area-inset-left))}
html.mobile-editor .brand-logo{grid-column:1/3;grid-row:1;width:210px;max-width:100%;height:40px;margin:0}
html.mobile-editor body>header .primary-navigation{display:contents}
html.mobile-editor .primary-navigation>a,html.mobile-editor .primary-navigation>button{min-height:44px;font-size:12px;padding:8px 4px;white-space:nowrap}
html.mobile-editor #editor-open{grid-column:1;grid-row:2}
html.mobile-editor #application-open{grid-column:2;grid-row:2}
html.mobile-editor .bauherren-guide-button{grid-column:3;grid-row:2;font-size:0!important}
html.mobile-editor .bauherren-guide-button:after{content:attr(data-mobile-label);font-size:12px}
html.mobile-editor #settings-open{grid-column:3;grid-row:1;justify-self:end;width:44px;min-width:44px;height:44px;margin:0}
html.mobile-editor body>header .document{grid-column:1/-1;grid-row:3;min-width:0;order:unset;padding-top:2px}
html.mobile-editor .document-title-row{display:flex;flex-direction:row-reverse;gap:7px}
html.mobile-editor #title{min-width:0;width:100%;font-size:16px;line-height:1.25}
html.mobile-editor #plan-details-open{width:44px;min-width:44px;min-height:40px;font-size:0;padding:0;background:transparent;border-color:transparent}
html.mobile-editor #plan-details-open:after{content:'✎';font-size:23px;color:var(--ui-blue)}
html.mobile-editor #state{font-size:10px;line-height:1.2}
html.mobile-editor #plan-main{display:block;height:auto;min-height:0}
html.mobile-editor #plan-main>.catalog,html.mobile-editor .workspace>.properties,html.mobile-editor .workspace>.materials-panel{display:none!important}
html.mobile-editor #plan-main .workspace,html.mobile-editor #plan-main .workspace.with-ad,html.mobile-editor #plan-main .workspace.with-materials{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto auto auto;min-height:0;height:auto;max-height:none;overflow:visible;background:var(--ui-soft)}
html.mobile-editor #plan-main .workspace>.toolbar:not(.mobile-output-toolbar){grid-column:1;grid-row:1;flex-wrap:nowrap;gap:6px;padding:8px 10px;border:0;background:var(--ui-soft)}
html.mobile-editor #plan-main .toolbar .editor-tools{display:flex;flex-wrap:nowrap;gap:6px;width:100%}
html.mobile-editor #plan-main .toolbar button,html.mobile-editor #plan-main .toolbar-menu>summary{min-height:44px;height:auto;padding:8px 11px;font-size:12px}
html.mobile-editor #plan-main .toolbar #undo{height:44px;min-height:44px;width:44px;min-width:44px;font-size:21px}
html.mobile-editor #plan-main .toolbar .divider{display:none}
html.mobile-editor #mobile-more{margin-left:auto;width:44px;min-width:44px}
html.mobile-editor #mobile-more svg,html.mobile-editor .mobile-action svg,html.mobile-editor #materials-toggle svg,html.mobile-editor #mobile-fit svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:none}
html.mobile-editor #mobile-stage{grid-column:1;grid-row:2;position:relative;display:block!important;height:clamp(330px,51dvh,530px);margin:0 10px;border:1px solid var(--ui-border);border-radius:10px;overflow:hidden;min-width:0}
html.mobile-editor #plan-main #viewport{display:flex;align-items:flex-start;min-width:0;min-height:0;width:100%;height:100%;padding:16px 16px 52px;overscroll-behavior:contain;touch-action:pan-y}
html.mobile-editor #plan-main .has-background #viewport{touch-action:none}
html.mobile-editor #sheet{flex:none;margin:auto}
html.mobile-editor #mobile-view-tools{position:absolute;left:8px;bottom:8px;right:8px;display:flex;align-items:center;justify-content:space-between;gap:6px;pointer-events:none;z-index:8}
html.mobile-editor #mobile-view-tools button,html.mobile-editor #mobile-view-tools .zoom{pointer-events:auto}
html.mobile-editor #mobile-fit{width:44px;height:44px;min-height:44px;padding:0;color:var(--ui-text);background:var(--ui-surface);border:1px solid var(--ui-border)}
html.mobile-editor #mobile-view-tools .zoom{display:flex;align-items:center;gap:0;flex-wrap:nowrap;margin:0;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:8px;height:44px;color:var(--ui-text)}
html.mobile-editor #mobile-view-tools .zoom button{height:42px;width:42px;min-width:42px;min-height:42px;padding:0;border:0;background:transparent;color:var(--ui-text);font-size:20px}
html.mobile-editor #zoom{font-size:11px;min-width:42px;text-align:center}
html.mobile-editor .workspace:not(.has-background) #mobile-view-tools{display:none!important}
html.mobile-editor #plan-main .statusbar{grid-column:1;grid-row:3;min-height:25px;padding:6px 12px;background:transparent;border:0;gap:6px;font-size:10px}
html.mobile-editor .statusbar>span:nth-child(2){display:none}
html.mobile-editor #mobile-actions{grid-column:1;grid-row:4;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:5px 10px 9px}
html.mobile-editor .mobile-action,html.mobile-editor #materials-toggle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;position:relative;min-width:0;min-height:59px;padding:8px 3px;border:1px solid var(--ui-border);border-radius:8px;font-size:12px;background:var(--ui-surface);color:var(--ui-text);font-weight:500}
html.mobile-editor #mobile-catalog{background:#ef7900;border-color:#ef7900;color:#fff}
html.mobile-editor #materials-badge{position:absolute;right:6px;top:5px;padding:1px 4px;min-width:16px;line-height:14px;font-size:10px;background:var(--ui-hover);color:var(--ui-muted);border-radius:9px}
html.mobile-editor #plan-main .mobile-output-toolbar{grid-column:1;grid-row:5;display:block!important;padding:0 10px 12px;background:transparent;border:0;z-index:31}
html.mobile-editor #plan-main .mobile-output-toolbar .plan-file-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px;margin:0}
html.mobile-editor #plan-main .mobile-output-toolbar summary{width:100%;font-size:13px;font-weight:500}
html.mobile-editor #plan-main .mobile-output-toolbar .output-menu>summary{background:var(--ui-surface);border-color:var(--ui-border);color:var(--ui-text)}
html.mobile-editor #plan-main .ui-disclosure-panel button{min-height:44px;font-size:14px}
html.mobile-editor #plan-main .ad-panel{grid-column:1/-1;grid-row:6;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto auto;gap:9px;align-items:stretch;align-content:start;padding:12px 10px;border-left:0;border-top:1px solid var(--ui-border);background:var(--ui-surface);height:auto;max-height:none}
html.mobile-editor #plan-main .ad-panel-heading,html.mobile-editor #plan-main .ad-panel-note{grid-column:1/-1}
html.mobile-editor #plan-main .ad-panel-heading{display:flex;justify-content:space-between}
html.mobile-editor #plan-main .sponsor-card{display:block;max-width:none;height:auto;min-width:0}
html.mobile-editor #plan-main .sponsor-card img{display:block;aspect-ratio:6/5;width:100%;height:auto;min-height:0;object-fit:contain}
html.mobile-editor #plan-main .sponsor-caption{padding:7px}
html.mobile-editor #plan-main .sponsor-caption strong{font-size:11px}
html.mobile-editor #plan-main .sponsor-caption span,html.mobile-editor #plan-main .ad-panel-note{font-size:10px}
html.mobile-editor #site-legal-footer{position:static;display:flex;flex-wrap:wrap;padding:7px 12px calc(7px + env(safe-area-inset-bottom));min-height:0}
html.mobile-editor #site-legal-footer .footer-links{gap:4px 16px}
html.mobile-editor #site-legal-footer .site-counter{margin-left:0}
html.mobile-editor #plan-main .empty{margin:auto;padding:18px 12px;min-height:0;max-width:440px;align-self:center}
html.mobile-editor #plan-main .empty h1{font-size:20px;line-height:1.22;margin:10px 0}
html.mobile-editor #plan-main .empty p{font-size:12px;line-height:1.5;margin-bottom:13px}
html.mobile-editor #plan-main .empty .steps{display:none}
html.mobile-editor #plan-main .empty small{font-size:10px;margin-top:10px}
html.mobile-editor #plan-main #empty-upload,html.mobile-editor #plan-main #empty-map{min-height:44px;padding:9px 11px;font-size:12px}
html.mobile-editor input:not([type=checkbox]):not([type=range]),html.mobile-editor select,html.mobile-editor textarea{font-size:16px}
html.mobile-editor dialog{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
html.mobile-editor #mobile-panel-dialog{position:fixed;inset:auto 8px max(8px,env(safe-area-inset-bottom));width:calc(100% - 16px);max-width:540px;margin:0 auto;padding:0;max-height:calc(100dvh - 24px);height:min(78dvh,680px);border:1px solid var(--ui-border);border-radius:16px;background:var(--ui-surface);color:var(--ui-text);box-shadow:0 -8px 36px #11253644;overflow:hidden}
html.mobile-editor #mobile-panel-dialog[open]{display:flex;flex-direction:column}
html.mobile-editor #mobile-panel-dialog::backdrop{background:#0c1e3266}
html.mobile-editor .mobile-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-bottom:1px solid var(--ui-border);flex:none}
html.mobile-editor #mobile-panel-title{margin:0;font-size:18px;font-weight:600;color:var(--ui-text)}
html.mobile-editor #mobile-panel-close{width:44px;height:44px;min-width:44px;padding:0;background:var(--ui-soft);border:1px solid var(--ui-border);color:var(--ui-text);font-size:26px}
html.mobile-editor #mobile-panel-body{display:flex;flex-direction:column;min-height:0;flex:1;overflow:auto;overscroll-behavior:contain}
html.mobile-editor #mobile-panel-dialog .catalog{display:flex!important;flex-direction:column;flex:1;min-height:0;height:100%;width:100%;border:0;padding:10px 0 0;background:var(--ui-surface)}
html.mobile-editor #mobile-panel-dialog .catalog .aside-title{display:none}
html.mobile-editor #mobile-panel-dialog .catalog .search{margin:0 12px 8px;min-height:44px;flex:none}
html.mobile-editor #mobile-panel-dialog .catalog-primary-filter{padding:0 12px 8px;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;flex:none}
html.mobile-editor #mobile-panel-dialog .catalog-primary-filter select{min-height:44px}
html.mobile-editor #mobile-panel-dialog .catalog-controls{padding:0 12px 8px;flex:none}
html.mobile-editor #mobile-panel-dialog .catalog-controls button{min-height:40px}
html.mobile-editor #mobile-panel-dialog .catalog-options{flex:none;max-height:200px;overflow:auto}
html.mobile-editor #mobile-panel-dialog .catalog-count{padding:7px 12px;flex:none}
html.mobile-editor #mobile-panel-dialog .signs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;flex:1;min-height:80px;overflow:auto;padding:0 12px 12px;overscroll-behavior:contain}
html.mobile-editor #mobile-panel-dialog .sign-card{min-height:114px;padding:12px 6px 8px}
html.mobile-editor #mobile-panel-dialog .sign-card img{height:54px;max-width:90%;object-fit:contain}
html.mobile-editor #mobile-panel-dialog .sign-card .sign-name{font-size:12px}
html.mobile-editor #mobile-panel-dialog .favorite-button{width:36px;height:36px;font-size:23px;line-height:30px;right:3px;top:3px}
html.mobile-editor #mobile-panel-dialog .properties,html.mobile-editor #mobile-panel-dialog .materials-panel{position:static;inset:auto;transform:none;display:block!important;opacity:1;visibility:visible;pointer-events:auto;flex:none;min-width:0;width:100%;max-width:none;max-height:none;height:auto;padding:14px;border:0;box-shadow:none;background:var(--ui-surface);color:var(--ui-text)}
html.mobile-editor #mobile-panel-dialog .properties .selection-heading>button,html.mobile-editor #mobile-panel-dialog .properties .eyebrow,html.mobile-editor #mobile-panel-dialog .properties .edit-tip{display:none}
html.mobile-editor #mobile-panel-dialog .properties .edit-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
html.mobile-editor #mobile-panel-dialog .properties .edit-group:nth-child(3),html.mobile-editor #mobile-panel-dialog .properties .edit-actions{grid-column:1/-1}
html.mobile-editor #mobile-panel-dialog .properties button{min-height:44px}
html.mobile-editor #mobile-panel-dialog .properties .number-controls button{min-width:36px;padding:5px}
html.mobile-editor #mobile-panel-dialog .properties .number-controls input{width:100%;min-width:20px}
html.mobile-editor #mobile-panel-dialog .materials-heading{float:none;min-width:0;display:flex;justify-content:space-between;margin:0 0 10px}
html.mobile-editor #mobile-panel-dialog .materials-heading>div:first-child,html.mobile-editor #mobile-panel-dialog #materials-close{display:none}
html.mobile-editor #mobile-panel-dialog .materials-heading-actions{margin-left:auto}
html.mobile-editor #mobile-panel-dialog .materials-heading button{width:44px;height:44px}
html.mobile-editor #mobile-panel-dialog .material-settings-grid{grid-template-columns:1fr}
html.mobile-editor #mobile-tools-content{display:grid;gap:8px;padding:12px;flex:none}
html.mobile-editor #mobile-tools-content button{display:flex;min-height:44px;width:100%;text-align:left;align-items:center;justify-content:flex-start;font-size:14px;background:var(--ui-surface);color:var(--ui-text);border:1px solid var(--ui-border)}
html.mobile-editor #mobile-tools-content button[hidden]{display:none!important}
html.mobile-editor .mobile-touch-hint{font-size:10px;color:var(--ui-muted)}
html.mobile-editor .mobile-panel-heading:focus{outline:none}
@media(orientation:landscape) and (min-width:480px) and (max-height:600px){
 html.mobile-editor body>header{display:flex;flex-wrap:nowrap;min-height:52px;height:52px;padding:4px max(10px,env(safe-area-inset-right)) 4px max(10px,env(safe-area-inset-left));gap:10px}
 html.mobile-editor .brand-logo{width:155px;height:36px;flex:0 1 155px}
 html.mobile-editor body>header .primary-navigation{display:flex;flex:1;justify-content:flex-end;gap:6px}
 html.mobile-editor body>header .document{display:none}
 html.mobile-editor .primary-navigation>a,html.mobile-editor .primary-navigation>button{padding:6px 9px;min-height:40px;font-size:11px}
 html.mobile-editor #settings-open{width:40px;min-width:40px;height:40px}
 html.mobile-editor #plan-main .workspace,html.mobile-editor #plan-main .workspace.with-ad,html.mobile-editor #plan-main .workspace.with-materials{grid-template-columns:minmax(0,1fr) 142px;grid-template-rows:56px minmax(160px,calc(100dvh - 134px)) 26px auto}
 html.mobile-editor #plan-main .workspace>.toolbar:not(.mobile-output-toolbar){grid-column:1;grid-row:1;padding:6px 8px}
 html.mobile-editor #mobile-stage{grid-column:1;grid-row:2;height:100%;margin:0 8px}
 html.mobile-editor #mobile-actions{grid-column:2;grid-row:1/3;display:flex!important;flex-direction:column;align-self:start;padding:6px 8px 0 0;gap:6px}
 html.mobile-editor .mobile-action,html.mobile-editor #materials-toggle{flex-direction:row;gap:7px;min-height:44px;padding:7px 5px;font-size:12px}
 html.mobile-editor #materials-badge{position:static}
 html.mobile-editor #plan-main .mobile-output-toolbar{grid-column:2;grid-row:2/4;align-self:end;padding:0 8px 8px 0}
 html.mobile-editor #plan-main .mobile-output-toolbar .plan-file-actions{grid-template-columns:1fr;gap:6px}
 html.mobile-editor #plan-main .statusbar{grid-column:1;grid-row:3;flex-wrap:nowrap;padding:4px 10px;overflow:hidden}
 html.mobile-editor .mobile-touch-hint{display:none!important}
 html.mobile-editor #plan-main .ad-panel{grid-column:1/-1;grid-row:4}
 html.mobile-editor #plan-main .sponsor-card{display:grid;grid-template-columns:minmax(80px,1fr) minmax(80px,1fr);align-items:center}
 html.mobile-editor #plan-main .sponsor-card img{max-height:120px}
 html.mobile-editor #mobile-panel-dialog{inset:8px 8px 8px auto;margin:0;width:min(440px,65vw);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}
 html.mobile-editor #plan-main .empty{padding:10px;max-width:600px}
 html.mobile-editor #plan-main .empty h1{font-size:18px;margin:5px 0}
 html.mobile-editor #plan-main .empty .eyebrow,html.mobile-editor #plan-main .empty small{display:none}
 html.mobile-editor #plan-main .empty p{font-size:11px;margin-bottom:8px}
 html.mobile-editor #plan-main .empty p br{display:none}
 html.mobile-editor #plan-main .empty-actions{gap:6px}
 html.mobile-editor #plan-main #empty-upload,html.mobile-editor #plan-main #empty-map{min-height:40px}
}
@media print{html.mobile-editor .mobile-only,html.mobile-editor #mobile-panel-dialog{display:none!important}}
