/* BrickPlan.AI Kern · Oberflaeche. Farben als Tokens, hell/dunkel nach System. */
:root {
  --bg: #f4f5f7; --surface: #ffffff; --surface-2: #f0f2f5; --border: #dde1e7; --text: #1b1f24; --muted: #5d6673;
  --accent: #c91a09; --accent-text: #ffffff; --focus: #2f6fdb;
  --ok: #1f8a4c; --warn: #b7791f; --err: #c53030; --run: #2f6fdb; --wait: #8a4fd1; --skip: #8a94a3;
  --viewer-bg: linear-gradient(180deg, #eef1f5 0%, #dfe4ea 100%);
  --radius: 10px; --gap: 16px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 2px 10px rgba(0,0,0,.04);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-sm: 0.82rem; --fs: 0.94rem; --fs-h: clamp(1rem, 0.95rem + 0.2vw, 1.08rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418; --surface: #191d23; --surface-2: #20252d; --border: #2c333d; --text: #e7eaee; --muted: #9aa4b1;
    --accent: #e0443a; --focus: #6b9cff; --ok: #3fbf74; --warn: #e0a53a; --err: #f06262; --run: #6b9cff; --wait: #b48cf2; --skip: #7d8796;
    --viewer-bg: linear-gradient(180deg, #232931 0%, #161a20 100%);
    --shadow: 0 1px 2px rgba(0,0,0,.4);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: var(--fs)/1.45 var(--font); }
h2 { font-size: var(--fs-h); margin: 0 0 10px; font-weight: 650; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.muted { color: var(--muted); } .small { font-size: var(--fs-sm); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px;
  background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo { width: 22px; height: 16px; border-radius: 3px; background: var(--accent); position: relative; flex: none; }
.logo::before, .logo::after { content: ""; position: absolute; top: -4px; width: 6px; height: 5px; border-radius: 2px; background: var(--accent); }
.logo::before { left: 3px; } .logo::after { right: 3px; }
.top-actions { display: flex; gap: 8px; align-items: center; }

.layout { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: var(--gap); padding: var(--gap); max-width: 1680px; margin: 0 auto; }
.col { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 1100px) { .row2 { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } .col-right { order: 2; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.card-head h2 { margin: 0; } .card-head.wrap { flex-wrap: wrap; }

.btn { border: 1px solid var(--border); background: var(--surface-2); padding: 7px 12px; border-radius: 8px; cursor: pointer; transition: background .15s, transform .05s, border-color .15s; }
.btn:hover { border-color: var(--muted); } .btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.btn.ghost { background: transparent; } .btn.small { padding: 4px 9px; font-size: var(--fs-sm); }
.btn.wide { width: 100%; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); white-space: nowrap; }
.pill:empty { display: none; }
.pill.ok { color: var(--ok); } .pill.err, .pill.error { color: var(--err); } .pill.running, .pill.queued { color: var(--run); }
.pill.waiting_ai { color: var(--wait); animation: pulse 1.6s infinite; } .pill.done { color: var(--ok); }
.pill.cancelled { color: var(--muted); }
.head-side { display: inline-flex; align-items: center; gap: 8px; }
@keyframes pulse { 50% { opacity: .55; } }
.msg { min-height: 1.2em; margin: 8px 0 0; font-size: var(--fs-sm); } .msg.err { color: var(--err); } .msg.ok { color: var(--ok); }

.drop { border: 2px dashed var(--border); border-radius: var(--radius); padding: 18px 12px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--surface-2); }
.drop-icon { font-size: 1.6rem; line-height: 1; color: var(--accent); }
.filelist { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.filelist li { display: grid; grid-template-columns: auto 40px 1fr auto; gap: 8px; align-items: center; padding: 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.filelist li.dragging { opacity: .5; } .filelist li.dropzone { border-color: var(--accent); }
.filelist .handle { cursor: grab; color: var(--muted); user-select: none; padding: 0 2px; }
.filelist .thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--border); display: grid; place-items: center; font-size: .7rem; color: var(--muted); }
.filelist .meta { min-width: 0; } .filelist .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-sm); }
.filelist .meta input, .filelist .meta select { width: 100%; margin-top: 3px; padding: 3px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font-size: var(--fs-sm); }
.filelist .storey-pick { display: flex; flex-direction: column; gap: 2px; } .filelist .storey-pick select.missing { border-color: var(--accent); }
.filelist .storey-pick .small { font-size: .72rem; }
.filelist .acts { display: flex; gap: 2px; } .filelist .acts button { border: 0; background: transparent; cursor: pointer; padding: 4px 6px; border-radius: 6px; color: var(--muted); }
.filelist .acts button:hover { background: var(--border); color: var(--text); }

.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.opts label { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-sm); color: var(--muted); }
.opts input[type=number], .opts input[type=text], .opts select, .search { padding: 7px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); width: 100%; }
.opts fieldset { grid-column: 1 / -1; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; display: flex; gap: 14px; flex-wrap: wrap; }
.opts legend { font-size: var(--fs-sm); color: var(--muted); padding: 0 4px; }
.opts .wide, .opts .msg, .opts p, .opts .storey-names, .opts .korrektur { grid-column: 1 / -1; }
.check { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px; color: var(--text) !important; font-size: var(--fs-sm); cursor: pointer; }

.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 52vh; overflow: auto; }
.tl { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; padding: 7px 4px; border-bottom: 1px solid var(--border); align-items: start; }
.tl:last-child { border-bottom: 0; }
.tl .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: var(--skip); }
.tl.running .dot { background: var(--run); animation: pulse 1s infinite; } .tl.ok .dot { background: var(--ok); }
.tl.warn .dot { background: var(--warn); } .tl.error .dot { background: var(--err); } .tl.waiting .dot { background: var(--wait); animation: pulse 1.2s infinite; }
.tl .title { font-weight: 600; font-size: var(--fs-sm); } .tl .detail { font-size: var(--fs-sm); color: var(--muted); word-break: break-word; }
.tl.error .detail { color: var(--err); } .tl.waiting .detail { color: var(--wait); }
.tl .side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.badge { font-size: .7rem; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.tl .ms { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.jobs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 40vh; overflow: auto; }
.jobs button { width: 100%; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 7px 8px; border-radius: 8px; border: 1px solid transparent; background: transparent; cursor: pointer; }
.jobs button:hover, .jobs button.active { background: var(--surface-2); border-color: var(--border); }
.jobs .j-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-sm); }
.jobs .j-time { font-size: .72rem; color: var(--muted); }
.jobs .j-dots { display: flex; gap: 3px; justify-content: flex-end; align-items: center; }

.viewer-card { display: flex; flex-direction: column; gap: 8px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; }
.tab[aria-selected=true] { border-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.toolbar { display: flex; gap: 6px; flex-wrap: wrap; }
.light { width: 10px; height: 10px; border-radius: 50%; background: var(--skip); display: inline-block; flex: none; }
.light.ok { background: var(--ok); } .light.fail { background: var(--err); } .light.unknown { background: var(--warn); } .light.error { background: var(--err); opacity: .5; }
.gate { margin: 0; font-size: var(--fs-sm); color: var(--muted); min-height: 1.2em; }
.gate.ok { color: var(--ok); } .gate.fail { color: var(--err); }
.viewer-wrap { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--viewer-bg); height: clamp(320px, 58vh, 760px); border: 1px solid var(--border); }
.viewer { position: absolute; inset: 0; } .viewer canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.viewer-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 10px; padding: 20px; color: var(--muted); }
.viewer-empty[hidden] { display: none; }
.pick { position: absolute; left: 10px; bottom: 10px; max-width: min(320px, calc(100% - 20px)); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: var(--fs-sm); box-shadow: var(--shadow); }
.pick .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; border: 1px solid var(--border); margin-right: 4px; }
.pick dl { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; margin: 4px 0 0; } .pick dt { color: var(--muted); } .pick dd { margin: 0; }
.controls { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.range { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); flex: 1 1 240px; }
.range input { flex: 1; accent-color: var(--accent); }
.units summary { cursor: pointer; font-size: var(--fs-sm); font-weight: 600; }
.unit-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 8px; }
.ugroup { border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; background: var(--surface-2); }
.ugroup > label { font-weight: 600; }
.ugroup .uitems { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 0 18px; }
.ugroup .cnt { color: var(--muted); font-size: .72rem; margin-left: auto; }
.downloads { display: flex; gap: 6px; flex-wrap: wrap; }
.downloads a { text-decoration: none; }

.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg-btn { border: 0; background: transparent; padding: 4px 10px; cursor: pointer; font-size: var(--fs-sm); }
.seg-btn.active { background: var(--surface-2); font-weight: 600; }
.preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.preview a { display: block; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface-2); text-decoration: none; color: var(--muted); }
.preview img { display: block; width: 100%; height: 120px; object-fit: contain; background: #fff; }
.preview span { display: block; font-size: .72rem; padding: 3px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.assumptions { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; }
.assumptions h3 { font-size: var(--fs-sm); margin: 6px 0 2px; }
.assumptions ul { margin: 0; padding-left: 18px; font-size: var(--fs-sm); }
.assumptions li { margin: 2px 0; } .assumptions .q { color: var(--warn); }
.storey-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }

.search { max-width: 240px; }
.table-wrap { overflow: auto; max-height: 460px; }
.bom { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.bom th, .bom td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.bom thead th { position: sticky; top: 0; background: var(--surface); color: var(--muted); font-weight: 600; }
.bom tfoot td { font-weight: 700; border-bottom: 0; }
.bom .num { text-align: right; font-variant-numeric: tabular-nums; }
.bom .sw { width: 22px; height: 16px; border-radius: 4px; border: 1px solid var(--border); }
.bom .pn { color: var(--muted); font-size: .72rem; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Bauanleitung */
.man-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); gap: var(--gap); margin-top: 10px; }
@media (max-width: 1100px) { .man-grid { grid-template-columns: 1fr; } }
.man-sheet h3, .man-tree h3 { font-size: var(--fs); margin: 0 0 4px; }
.man-tree summary { cursor: pointer; font-weight: 650; font-size: var(--fs); margin-bottom: 4px; }
.man-tree h3 { margin-top: 12px; }
.man-sheet img { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 8px; margin: 8px 0; }
.man-sheet .table-wrap { max-height: 260px; }
.tree ul { list-style: none; margin: 0; padding-left: 16px; } .tree > ul { padding-left: 0; }
.tree li { margin: 2px 0; }
.tree .node { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 6px; }
.tree .node:hover { background: var(--surface-2); }
.tree .node.lvl0 { font-weight: 700; } .tree .node.lvl1 { font-weight: 600; }
.tree .node button { border: 0; background: transparent; cursor: pointer; padding: 0 4px; color: var(--muted); font-size: .8rem; }
.tree .node .cnt { margin-left: auto; color: var(--muted); font-size: .72rem; white-space: nowrap; }
.tree .node.cur { outline: 2px solid var(--accent); background: var(--surface-2); }
.tree .node.instep { box-shadow: inset 3px 0 0 var(--run); }
.tree .node .name { border: 0; background: transparent; padding: 0; font: inherit; font-weight: inherit; color: inherit; cursor: pointer; text-align: left; min-width: 0; }
.tree .node .name:hover { text-decoration: underline; }
.tree .node .tog { width: 18px; text-align: center; }
.tree .node .plan { font-size: .72rem; color: var(--focus); text-decoration: none; border: 1px solid var(--border); border-radius: 999px; padding: 0 7px; white-space: nowrap; }
.tree .node .plan:hover { border-color: var(--focus); }
.tree .parts { font-size: var(--fs-sm); color: var(--muted); padding-left: 28px; display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 2px 0 6px; }
.tree .parts .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; border: 1px solid var(--border); vertical-align: -1px; margin-right: 3px; }
.tree .parts .part { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--border); background: var(--surface); border-radius: 6px; padding: 2px 6px; cursor: pointer; font-size: .72rem; color: var(--text); }
.tree .parts .part:hover { border-color: var(--accent); }
.pick .link { border: 0; background: transparent; padding: 0; font: inherit; color: var(--focus); cursor: pointer; text-decoration: underline; }
@media (max-width: 860px) { .man-sheet img { max-height: 50vh; } .tree .node .cnt { display: none; } }
#manual-card:focus-visible { outline: 2px solid var(--focus); }

/* Demos (Paket C) */
.demos { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow: auto; }
.demo { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.demo img { width: 96px; height: 76px; object-fit: cover; border-radius: 6px; background: #fff; border: 1px solid var(--border); }
.demo .d-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.demo .d-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.demo .d-name { font-weight: 600; font-size: var(--fs-sm); }
.demo .d-text { font-size: var(--fs-sm); color: var(--muted); }
.demo .d-meta { font-size: .72rem; color: var(--muted); }
.demo .d-acts { display: flex; align-items: center; gap: 8px; margin-top: 2px; flex-wrap: wrap; }
.fmt { font-size: .68rem; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); white-space: nowrap; text-transform: uppercase; letter-spacing: .02em; }
.fmt.rot { color: var(--err); border-color: var(--err); text-transform: none; }
.fmt.slow { color: var(--warn); text-transform: none; }
@media (max-width: 480px) { .demo { grid-template-columns: 1fr; } .demo img { width: 100%; height: 120px; } }

/* Korrektur-Editor (02.10.): Geschosse, Fenster/Tueren, Waende, einzelne Steine; wirkt mit "Neu rechnen" */
.korrektur { display: flex; flex-direction: column; gap: 6px; }
.korrektur > p.muted { margin: 0; }
.ked { border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); padding: 4px 8px; }
.ked summary { cursor: pointer; font-size: var(--fs-sm); font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.ked summary .cnt { color: var(--muted); font-weight: 400; }
.ked summary .cnt.pend { color: var(--warn); font-weight: 600; }
.ked .kgroup { font-size: var(--fs-sm); color: var(--muted); margin: 6px 0 2px; }
.krow { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 4px 0; border-top: 1px solid var(--border); font-size: var(--fs-sm); }
.krow:first-of-type { border-top: 0; }
.krow .klabel { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; min-width: 0; }
.krow .klabel .pend { color: var(--warn); font-weight: 600; }
.krow .klabel .muted { color: var(--muted); }
.krow .kacts { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.krow .kacts button, .pick .kacts button { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 6px; padding: 2px 7px; cursor: pointer; font: inherit; font-size: var(--fs-sm); line-height: 1.4; }
.krow .kacts button:hover, .pick .kacts button:hover { border-color: var(--accent); }
.krow .kacts button.danger { color: var(--err, #c33); }
.krow input[type=text], .krow input[type=number], .krow select { padding: 3px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; font-size: var(--fs-sm); width: auto; }
.krow input[type=text].kname { width: 7.5em; }
.krow input[type=number].kw { width: 5em; }
.krow.temp { background: color-mix(in srgb, var(--warn) 10%, transparent); }
.krow.hl { outline: 2px solid var(--focus); outline-offset: -2px; }
.kadd { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 6px 0 2px; font-size: var(--fs-sm); }
.kadd select { padding: 3px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; font-size: var(--fs-sm); width: auto; }
.pick .kacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; align-items: center; }
.pick .kacts .lbl { color: var(--muted); margin-right: 2px; }

/* Live-Leiste im 3D-Fenster (Owner-Wunsch 02.10.): zeigt waehrend der Rechnung den aktuellen Schritt, nach dem Laden die Bauanimation */
.viewer-live { position: absolute; left: 10px; top: 10px; z-index: 2; display: flex; gap: 10px; align-items: center; max-width: calc(100% - 20px); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: var(--fs-sm); box-shadow: var(--shadow); }
.viewer-live[hidden] { display: none; }
.viewer-live .spin { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.live-title { font-weight: 600; } .live-detail { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .viewer-live .spin { animation: none; } }

/* Aufbau-Stufen (Feature variants, app/static/variants.js): Massbericht unter dem Gate */
.mass-report { font-size: var(--fs-sm); color: var(--muted); margin: 4px 0 8px; }
.mass-report[hidden] { display: none; }
.mass-report strong { color: var(--text); font-weight: 600; }
.mass-report ul { margin: 2px 0 0; padding-left: 18px; }
/* Upload-Rollen (upload.js) */
.filelist .role-pick-box { margin-top: 3px; }
.filelist .role-pick-box .role-pages { margin-top: 0; }
.filelist .role-note { font-size: .72rem; }

/* Eingebettet im Demo-Bereich von /kern (?embed=1, deeplink.js): ohne Kopfzeile, Upload und Auftragsliste; 3D-Fenster zuerst */
.bp-embed .top, .bp-embed #upload-card, .bp-embed #demos-card, .bp-embed #jobs-card { display: none; }
.bp-embed .layout { grid-template-columns: 1fr; padding: 8px; }
.bp-embed .col-right { order: 1; } .bp-embed .col-left { order: 2; }
.bp-embed .viewer-wrap { height: max(340px, calc(100vh - 330px)); }
/* Einbettung in BrickPlan 1.2 (?embed=saas, app/static/saas.js): Upload und eigene Auftraege bleiben, Kopfzeile nicht */
.bp-saas .top, .bp-saas #demos-card { display: none; }   /* Demo-Start ist in saas gesperrt (Kontingent) */
.saas-blocked { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; text-align: center; background: var(--bg); color: var(--text); font-weight: 600; }
