@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --ink: #151713;
  --ink-2: #1d201b;
  --ink-3: #292c26;
  --paper: #f1f1eb;
  --panel: #fbfbf7;
  --line: #d9dbd2;
  --muted: #70756a;
  --accent: #c9f65b;
  --wood: #d8b989;
  --warn: #ffb76a;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--ink); color: var(--ink); font-family: Manrope, sans-serif; }
body { overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { height: 100vh; min-height: 0; overflow: hidden; display: grid; grid-template-rows: 68px minmax(0, 1fr); }
.topbar { height: 68px; display: grid; grid-template-columns: 340px 1fr auto; align-items: center; background: var(--paper); border-bottom: 1px solid var(--line); z-index: 10; }
.brand { height: 100%; padding: 0 22px; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; border-right: 1px solid var(--line); font-weight: 800; letter-spacing: .05em; }
.brand small { color: var(--muted); font: 500 10px 'DM Mono'; letter-spacing: .12em; align-self: center; margin-top: 3px; }
.brand-mark { width: 25px; height: 25px; position: relative; display: inline-flex; gap: 3px; transform: rotate(-30deg); }
.brand-mark i { width: 5px; height: 23px; background: var(--ink); border-radius: 1px; display: block; }
.brand-mark i:nth-child(2) { height: 17px; margin-top: 3px; background: #809947; }
.project-title { align-self: stretch; padding: 0 24px; display: flex; align-items: center; gap: 16px; background: transparent; border: 0; text-align: left; }
.eyebrow { font: 500 10px 'DM Mono'; letter-spacing: .12em; color: var(--muted); }
.project-title strong { font-size: 14px; }
.project-caret { color: var(--muted); margin-left: 4px; }
.top-actions { height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.save-state { font-size: 12px; color: var(--muted); margin-right: 12px; display: flex; align-items: center; gap: 7px; }
.save-state i { width: 7px; height: 7px; background: #79993e; border-radius: 50%; }
.account-button { min-width: 138px; height: 42px; display: grid; grid-template-columns: 28px minmax(0,1fr) 7px; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 5px; background: #f8f9f4; padding: 0 9px; color: var(--ink); text-align: left; }.account-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--accent); font: 600 10px 'DM Mono'; }.account-copy { min-width: 0; display: grid; gap: 1px; }.account-copy small { color: var(--muted); font: 500 7px 'DM Mono'; letter-spacing: .07em; }.account-copy b { max-width: 92px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.account-dot { width: 7px; height: 7px; border-radius: 50%; background: #aeb2a9; }.account-dot[data-state="synced"] { background: #80a03d; box-shadow: 0 0 0 3px #dce8c2; }.account-dot[data-state="syncing"],.account-dot[data-state="checking"] { background: #d69b45; animation: account-pulse 1.1s infinite; }.account-dot[data-state="error"] { background: #c87058; }@keyframes account-pulse { 50% { opacity: .35; } }
.icon-button, .primary-button { border: 1px solid var(--line); background: transparent; height: 40px; border-radius: 5px; }
.icon-button { width: 40px; font-size: 21px; color: #51564c; }
.mobile-project-button { display: none; }
.primary-button { background: var(--ink); color: white; border-color: var(--ink); padding: 0 15px; display: flex; gap: 10px; align-items: center; }
.primary-button b { color: var(--accent); }
.report-health { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: #343831; color: #d9ddd3; font-style: normal; }.report-health b { color: inherit; font: 600 9px 'DM Mono'; }.report-health[data-level="warning"] { background: #edc08d; color: #51351f; }.report-health[data-level="critical"] { background: #dc8068; color: #3f201b; }.report-health[data-level="ok"] { background: var(--accent); color: #293219; }
.workspace { min-height: 0; display: grid; grid-template-columns: 90px 340px minmax(0, 1fr); }
.stage-rail { background: var(--paper); border-right: 1px solid var(--line); padding: 12px 8px; overflow-y: auto; }
.rail-item { position: relative; width: 100%; min-height: 66px; border: 0; background: transparent; display: grid; grid-template-columns: 20px 1fr; grid-template-rows: 1fr 1fr; align-items: center; text-align: left; color: var(--muted); border-radius: 5px; padding: 9px 7px; }
.rail-item span { grid-row: 1 / 3; font: 500 9px 'DM Mono'; align-self: start; padding-top: 4px; }
.rail-item i { font-style: normal; font-size: 19px; line-height: 1; }
.rail-item b { font-size: 11px; font-weight: 600; }
.rail-item.active { background: var(--ink); color: white; }
.rail-item.active::before { content: ''; position: absolute; left: -8px; width: 3px; height: 38px; background: var(--accent); }
.rail-item.active i { color: var(--accent); }
.config-panel { background: var(--panel); border-right: 1px solid var(--line); padding: 26px 24px 20px; overflow-y: auto; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; margin-bottom: 20px; }
h1 { font-size: 27px; line-height: 1; margin: 8px 0 0; letter-spacing: -.03em; }
.status-pill { font: 500 9px 'DM Mono'; letter-spacing: .08em; background: #e4edcf; color: #53672b; padding: 7px 8px; border-radius: 3px; }
.status-pill.warning { background: #f8d8bb; color: #8b4d24; }
.notice { background: #eceee7; display: flex; gap: 12px; padding: 14px; border-radius: 4px; margin-bottom: 25px; }
.notice b { width: 19px; height: 19px; flex: 0 0 19px; border: 1px solid #83897e; color: #697064; text-align: center; border-radius: 50%; font: 500 12px/18px 'DM Mono'; }
.notice p { margin: 0; font-size: 12px; line-height: 1.55; color: #62685e; }
.control-section { margin: 0 0 23px; }
.control-section > label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.panelization-control { padding: 15px; border: 1px solid #d6dfc1; border-radius: 5px; background: #f5f8ed; }
.panelization-control > .control-help { margin: -3px 0 16px; }
.panelization-control > .control-section { margin-bottom: 16px; }
.panelization-control > .control-section:last-child { margin-bottom: 0; }
.control-help { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.control-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.number-control { background: white; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.number-control label { display: block; padding: 8px 10px 0; color: var(--muted); font: 500 9px 'DM Mono'; letter-spacing: .06em; }
.number-control div { display: flex; align-items: center; }
.number-control input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 5px 4px 10px 10px; font: 500 13px 'DM Mono'; background: transparent; }
.number-control span { padding-right: 10px; color: var(--muted); font-size: 10px; }
.range-control { display: grid; grid-template-columns: 1fr 50px; gap: 12px; align-items: center; }
.range-control input[type="range"] { width: 100%; accent-color: #9bbf3f; }
.range-value { border: 1px solid var(--line); background: white; border-radius: 3px; padding: 8px 5px; text-align: center; font: 500 10px 'DM Mono'; }
.field-select { width: 100%; border: 1px solid var(--line); border-radius: 4px; background: white; padding: 11px 12px; font-size: 12px; color: var(--ink); }
.check-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.switch { width: 38px; height: 22px; border-radius: 20px; border: 0; background: #c9ccc3; padding: 3px; transition: .2s; }
.switch::after { content: ''; display: block; width: 16px; height: 16px; border-radius: 50%; background: white; transition: .2s; box-shadow: 0 1px 3px #0002; }
.switch.on { background: #9fca3d; }.switch.on::after { transform: translateX(16px); }
.color-options { display: flex; gap: 9px; }
.color-option { width: 31px; height: 31px; border-radius: 50%; border: 3px solid var(--panel); outline: 1px solid var(--line); }.color-option.active { outline: 2px solid var(--ink); }
.summary-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0 0 22px; }
.summary-strip span { background: #f5f6f1; padding: 10px; display: grid; gap: 4px; }.summary-strip small { font: 500 8px 'DM Mono'; color: var(--muted); }.summary-strip b { font: 500 11px 'DM Mono'; }
.segmented { background: #e7e8e2; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 4px; }
.segmented button { border: 0; background: transparent; color: var(--muted); font-size: 11px; padding: 8px; border-radius: 3px; }
.segmented .active { background: white; color: var(--ink); box-shadow: 0 1px 4px #10130f13; }
.input-with-action { display: grid; grid-template-columns: 1fr 40px; border: 1px solid var(--line); background: white; border-radius: 4px; }
.input-with-action input { min-width: 0; border: 0; background: transparent; padding: 11px 12px; font-size: 12px; outline: none; }
.input-with-action button { border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--muted); }
.inline-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: 0; }
.inline-metrics span { background: #f6f7f2; padding: 10px; display: grid; gap: 4px; }
.inline-metrics small, .analysis-card small { font: 500 9px 'DM Mono'; color: var(--muted); letter-spacing: .06em; }
.inline-metrics b { font-size: 11px; }
.select-control { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; background: white; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; }
.select-control span { display: flex; align-items: center; gap: 9px; }
.swatch { width: 12px; height: 12px; display: inline-block; border-radius: 50%; }
.swatch.wood { background: #c9a773; }
.analysis-card { padding: 15px; background: var(--ink-2); color: white; display: flex; align-items: center; gap: 15px; border-radius: 5px; }
.analysis-card strong { display: block; font-size: 12px; margin: 4px 0 3px; }
.analysis-card p { margin: 0; color: #aeb3a8; font-size: 11px; }
.analysis-ring { width: 55px; height: 55px; display: flex; align-items: baseline; justify-content: center; padding-top: 16px; border-radius: 50%; border: 4px solid var(--accent); }
.analysis-ring span { font: 500 17px 'DM Mono'; }.analysis-ring small { font-size: 8px; color: white; }
.next-button { margin-top: 18px; width: 100%; background: var(--accent); border: 0; padding: 13px 15px; border-radius: 4px; font-size: 12px; font-weight: 800; display: flex; justify-content: space-between; }
.viewport { min-width: 0; position: relative; background: var(--ink); overflow: hidden; }
.viewport::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 60% 45%, transparent 0 24%, rgba(0,0,0,.28) 78%); }
#model-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#model-canvas:active { cursor: grabbing; }
#model-canvas.measure-mode, #model-canvas.measure-mode:active { cursor: crosshair; }
#model-canvas.editing-opening, #model-canvas.editing-opening:active { cursor: ew-resize; }
.view-tabs { position: absolute; z-index: 4; top: 20px; left: 50%; transform: translateX(-50%); padding: 4px; background: #2a2d28e8; border: 1px solid #3a3e36; border-radius: 6px; display: flex; gap: 2px; }
.view-tabs button { min-width: 78px; border: 0; background: transparent; color: #aeb3a8; padding: 9px 14px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.view-tabs button.active { background: #41463e; color: var(--accent); }
.subview-tabs { position: absolute; z-index: 4; top: 73px; left: 50%; transform: translateX(-50%); padding: 3px; background: #f4f5eff0; border: 1px solid #d8dbd1; border-radius: 4px; display: flex; }
.subview-tabs[hidden] { display: none; }
.subview-tabs button { min-width: 68px; border: 0; background: transparent; padding: 7px 10px; font-size: 10px; color: #6c7167; border-radius: 3px; }.subview-tabs button.active { background: var(--ink); color: white; }
.floor-view-tabs, .wall-view-tabs, .roof-view-tabs { position: absolute; z-index: 4; top: 72px; left: 24px; display: flex; gap: 2px; max-width: calc(100% - 48px); overflow-x: auto; padding: 3px; background: #242721e8; border: 1px solid #3d4139; border-radius: 4px; }
.wall-view-tabs { top: 118px; }
.floor-view-tabs[hidden], .wall-view-tabs[hidden], .roof-view-tabs[hidden], .element-view-nav[hidden] { display: none; }
.floor-view-tabs button, .wall-view-tabs button, .roof-view-tabs button { flex: 0 0 auto; border: 0; background: transparent; color: #aeb3a8; padding: 6px 10px; border-radius: 3px; font-size: 10px; }
.floor-view-tabs button.active, .wall-view-tabs button.active, .roof-view-tabs button.active { background: var(--accent); color: var(--ink); font-weight: 800; }
.element-view-nav { position: absolute; z-index: 5; top: 72px; left: 24px; width: min(390px,calc(100% - 48px)); min-height: 48px; display: grid; grid-template-columns: 46px minmax(0,1fr) 46px; align-items: stretch; overflow: hidden; border: 1px solid #41463e; border-radius: 5px; background: #242721ee; box-shadow: 0 10px 28px #0003; }
.element-view-nav button { border: 0; background: #30342e; color: var(--accent); font-size: 24px; }.element-view-nav button:hover { background: #3b4038; }.element-view-nav span { min-width: 0; display: grid; align-content: center; gap: 3px; padding: 7px 12px; }.element-view-nav small { color: #8f968b; font: 500 8px 'DM Mono'; }.element-view-nav b { overflow: hidden; color: white; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.viewport-meta { position: absolute; z-index: 3; left: 24px; top: 22px; display: flex; gap: 11px; align-items: center; color: #8b9185; font: 500 9px 'DM Mono'; letter-spacing: .07em; }
.viewport-meta b { color: #c9cec3; font-weight: 500; }
.canvas-tools { position: absolute; z-index: 4; right: 18px; top: 50%; transform: translateY(-50%); display: grid; padding: 4px; border-radius: 6px; background: #2a2d28ee; border: 1px solid #3a3e36; }
.canvas-tools button { border: 0; border-bottom: 1px solid #3c4039; width: 38px; height: 38px; background: transparent; color: #c8ccc2; font-size: 18px; }.canvas-tools button:last-child { border-bottom: 0; }.canvas-tools button.active { color: var(--accent); }
.view-help { position: absolute; z-index: 3; bottom: 20px; left: 24px; color: #8a9084; font-size: 10px; display: flex; align-items: center; gap: 8px; }
.view-help i { width: 1px; height: 16px; background: #3c4039; margin: 0 4px; }
.measure-button { width: 100%; border: 1px solid #c8d5a9; background: #eff6dd; color: var(--ink); padding: 12px; border-radius: 4px; display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px; text-align: left; align-items: center; }
.measure-button span { grid-row: 1 / 3; color: #6e8b2f; font-size: 22px; }
.measure-button b { font-size: 11px; }
.measure-button small { color: var(--muted); font: 500 9px 'DM Mono'; }
.opening-add { margin-top: 9px; }
.opening-add button { width: 100%; min-height: 48px; border: 1px solid #b8ca91; background: #f4f9e8; border-radius: 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 13px; font-size: 11px; }
.opening-add button span { color: #668126; font-size: 19px; }.opening-add button em { margin-left: auto; color: var(--muted); font: 500 8px 'DM Mono'; font-style: normal; }.opening-add button b:last-child { color: #668126; font-size: 15px; }
.opening-editor { margin: 0 0 22px; padding: 14px; border: 1px solid #c7d5a5; border-radius: 5px; background: #f1f7e2; }
.opening-editor-head { display: flex; align-items: start; justify-content: space-between; margin-bottom: 14px; }
.opening-editor-head div { display: grid; gap: 3px; }.opening-editor-head small { color: var(--muted); font: 500 9px 'DM Mono'; }.opening-editor-head strong { font-size: 14px; }
.opening-editor-head button { width: 28px; height: 28px; border: 0; background: #dfe9c5; border-radius: 50%; font-size: 18px; }
.opening-editor .control-section { margin-bottom: 12px; }.opening-editor .control-row { margin-bottom: 10px; }
.opening-dim-row { margin-top: 10px; }.opening-door-note { border: 1px solid var(--line); background: white; border-radius: 4px; padding: 8px 10px; display: grid; gap: 5px; }.opening-door-note small { color: var(--muted); font: 500 9px 'DM Mono'; }.opening-door-note b { font: 500 13px 'DM Mono'; }
.opening-door-options { margin-top: 10px; }.opening-door-options .control-section { min-width: 0; }.opening-door-options label { margin-bottom: 6px; }
.opening-frame-preview { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 12px; border: 1px solid #d3ddba; background: #d3ddba; }.opening-frame-preview span { min-width: 0; padding: 8px 7px; background: #fbfdf5; display: grid; gap: 3px; }.opening-frame-preview small { color: var(--muted); font: 500 7px 'DM Mono'; }.opening-frame-preview b { overflow: hidden; font: 500 9px 'DM Mono'; text-overflow: ellipsis; white-space: nowrap; }
.opening-position-tools { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; margin-top: 9px; }.opening-position-tools button { min-width: 0; min-height: 48px; border: 1px solid #c7d1b0; background: #fbfdf6; border-radius: 4px; display: grid; place-items: center; gap: 2px; padding: 5px 3px; }.opening-position-tools b { color: #678027; font-size: 17px; line-height: 1; }.opening-position-tools span { overflow: hidden; max-width: 100%; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.opening-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 12px; }.opening-actions button { border: 1px solid #c7d1b0; background: white; border-radius: 4px; padding: 9px 10px; font-size: 10px; font-weight: 700; }.opening-actions .danger { color: #9b4139; border-color: #dfbbb5; }
.opening-list { margin-top: 14px; border-top: 1px solid #d9e2c4; padding-top: 12px; }.opening-list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font: 500 8px 'DM Mono'; letter-spacing: .06em; }.opening-list-head b { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #dde8c4; color: #526829; }.opening-list-items { max-height: 178px; overflow-y: auto; display: grid; gap: 4px; padding-right: 3px; }.opening-list-items > p { margin: 4px 0; color: var(--muted); font-size: 10px; }.opening-list-items button { min-width: 0; width: 100%; display: grid; grid-template-columns: 25px minmax(0,1fr) auto; gap: 7px; align-items: center; border: 1px solid #dfe3d7; background: white; border-radius: 4px; padding: 7px; text-align: left; }.opening-list-items button.active { border-color: #86a23d; box-shadow: inset 3px 0 #9bbe45; }.opening-list-icon { display: grid; place-items: center; height: 28px; background: #eef2e7; color: #728449; font-size: 17px; }.opening-list-items button > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }.opening-list-items button b { font-size: 9px; }.opening-list-items button small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }.opening-list-items button em { color: #5d6358; font: 500 8px 'DM Mono'; font-style: normal; white-space: nowrap; }
.model-checks { margin: -4px 0 22px; padding: 12px; border: 1px solid #cdd8b5; border-radius: 5px; background: #f4f8ea; }
.model-checks-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.model-checks-head strong { font-size: 11px; }.model-checks-head span { padding: 4px 6px; border-radius: 3px; background: #dfecc3; color: #526829; font: 500 8px 'DM Mono'; }
.model-checks.warning { border-color: #efc7a4; background: #fff5eb; }.model-checks.warning .model-checks-head span { color: #8b4d24; background: #f8d8bb; }
.model-checks ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }.model-checks li button { width: 100%; border: 0; padding: 8px 9px; background: white; color: #71401f; text-align: left; border-radius: 3px; font-size: 10px; line-height: 1.4; }.model-checks li button::before { content: '!'; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 7px; border-radius: 50%; background: #f7ccb0; font: 700 9px 'DM Mono'; }
.mobile-opening-card { display: none; }
.report-subhead { margin-top: 20px !important; }
.model-stats { position: absolute; z-index: 3; right: 22px; bottom: 18px; display: flex; background: #20231ecc; border: 1px solid #383c35; border-radius: 5px; }
.model-stats span { padding: 10px 14px; border-right: 1px solid #3b3f38; display: grid; gap: 3px; }
.model-stats span:last-child { border-right: 0; }
.model-stats small { color: #7f8579; font: 500 8px 'DM Mono'; letter-spacing: .08em; }
.model-stats b { color: #e8e9e3; font: 500 11px 'DM Mono'; }

.dialog-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: #0c0e0bd6; backdrop-filter: blur(7px); padding: 28px; }
.dialog-backdrop[hidden] { display: none; }
.dialog { width: min(920px, 100%); max-height: calc(100vh - 56px); overflow: hidden; background: var(--panel); border-radius: 7px; border: 1px solid #d9dbd2; box-shadow: 0 30px 80px #0008; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }.dialog-header h2 { margin: 6px 0 0; font-size: 24px; letter-spacing: -.03em; }.dialog-close { width: 38px; height: 38px; border: 1px solid var(--line); background: white; border-radius: 4px; font-size: 23px; line-height: 1; color: #5d6358; }
.account-dialog { width: min(560px,100%); }.account-content { max-height: calc(100vh - 154px); overflow-y: auto; padding: 22px 24px 24px; }.account-hero { display: grid; grid-template-columns: 58px 1fr; gap: 15px; align-items: center; padding: 18px; border: 1px solid #d2dcc0; border-radius: 6px; background: #f3f7e9; }.account-hero.local { border-color: var(--line); background: #f4f5f0; }.account-hero-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: var(--accent); font: 600 19px 'DM Mono'; }.account-hero small { color: #718149; font: 500 8px 'DM Mono'; letter-spacing: .1em; }.account-hero h3 { margin: 4px 0 3px; font-size: 18px; }.account-hero p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }.account-benefits { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 14px 0; }.account-benefits span { min-width: 0; display: grid; align-content: start; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: white; }.account-benefits b { color: #769039; font-size: 18px; }.account-benefits strong { font-size: 10px; }.account-benefits small { color: var(--muted); font-size: 9px; line-height: 1.45; }.account-primary { min-height: 46px; display: flex; align-items: center; justify-content: space-between; border-radius: 5px; background: var(--ink); color: white; padding: 0 15px; text-decoration: none; font-size: 12px; font-weight: 700; }.account-primary b { color: var(--accent); }.account-privacy { margin: 12px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }.account-sync-card { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; margin: 14px 0; padding: 14px; border: 1px solid #cdd8b5; border-radius: 5px; background: #f4f8ea; }.account-sync-card.error { border-color: #efc7a4; background: #fff5eb; }.account-sync-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #dfecc3; color: #526829; font: 700 13px 'DM Mono'; }.account-sync-card.error .account-sync-mark { background: #f4c9aa; color: #7e4727; }.account-sync-card div { display: grid; gap: 3px; }.account-sync-card strong { font-size: 11px; }.account-sync-card small { color: var(--muted); font-size: 9px; line-height: 1.4; }.account-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }.account-actions button,.account-actions a { min-height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--ink); padding: 0 14px; font-size: 10px; font-weight: 700; text-decoration: none; }.account-actions button { background: var(--ink); color: white; }
.account-auth { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: white; }.account-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-bottom: 14px; padding: 3px; border-radius: 5px; background: #e8eae4; }.account-auth-tabs button { min-height: 38px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; }.account-auth-tabs button.active { background: white; color: var(--ink); box-shadow: 0 1px 4px #10130f18; }.account-auth form { display: grid; gap: 11px; }.account-auth label { display: grid; gap: 6px; color: #555c50; font-size: 11px; font-weight: 700; }.account-auth input { width: 100%; height: 44px; border: 1px solid #cfd4ca; border-radius: 4px; background: #fbfcf8; padding: 0 12px; color: var(--ink); font-size: 14px; outline: 0; }.account-auth input:focus { border-color: #7e9940; box-shadow: 0 0 0 3px #a8cb5140; }.account-auth .account-primary { width: 100%; border: 0; }.account-auth .account-primary:disabled,.account-actions button:disabled { opacity: .55; cursor: wait; }.account-auth-error { min-height: 16px; margin: -2px 0 0; color: #a14435; font-size: 11px; line-height: 1.4; }
.template-dialog { width: min(1040px,100%); height: min(780px,calc(100vh - 56px)); display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; }.template-library { min-height: 0; display: flex; flex-direction: column; overflow: hidden; }.project-library-tabs { display: flex; gap: 4px; padding: 12px 24px 0; border-bottom: 1px solid var(--line); }.project-library-tabs button { min-height: 42px; display: flex; align-items: center; gap: 8px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); padding: 0 12px; font-size: 12px; font-weight: 700; }.project-library-tabs button.active { color: var(--ink); border-bottom-color: var(--ink); }.project-library-tabs b { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 12px; background: #e8eae3; color: #62685e; font: 500 9px 'DM Mono'; }.project-library-tabs button.active b { background: var(--accent); color: var(--ink); }.project-library-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px 0; }.project-library-actions > div { display: grid; gap: 3px; }.project-library-actions strong { font-size: 13px; }.project-library-actions small { color: var(--muted); font-size: 10px; }.project-library-actions > span { display: flex; gap: 6px; }.project-library-actions button { min-height: 36px; border: 1px solid var(--line); border-radius: 4px; background: white; padding: 0 11px; color: var(--ink); font-size: 10px; font-weight: 700; }.project-library-actions button:first-child { border-color: var(--ink); background: var(--ink); color: white; }.template-filters { display: flex; gap: 5px; overflow-x: auto; padding: 14px 24px 0; }.template-filters[hidden],.project-library-actions[hidden] { display: none; }.template-filters button { flex: 0 0 auto; min-height: 34px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 18px; background: white; color: var(--muted); padding: 0 12px; font-size: 10px; font-weight: 700; }.template-filters button.active { border-color: var(--ink); background: var(--ink); color: white; }.template-filters b { display: grid; place-items: center; min-width: 18px; height: 18px; border-radius: 10px; background: #e8eae3; color: #62685e; font: 500 8px 'DM Mono'; }.template-filters button.active b { background: var(--accent); color: var(--ink); }.template-grid { min-height: 0; flex: 1; overflow-y: auto; padding: 14px 24px 24px; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; align-content: start; }
.template-card { min-height: 190px; display: grid; justify-items: start; align-content: end; position: relative; border: 1px solid var(--line); background: #f2f3ed; border-radius: 5px; padding: 16px; text-align: left; overflow: hidden; }.template-card:hover, .template-card.selected { border-color: #818a73; box-shadow: inset 0 0 0 1px #818a73; }.template-card.selected::after { content: 'AKTYWNY'; position: absolute; top: 12px; right: 12px; background: var(--accent); padding: 5px 7px; font: 500 8px 'DM Mono'; }.template-card small { font: 500 8px 'DM Mono'; color: var(--muted); letter-spacing: .09em; }.template-card > b { margin-top: 5px; font-size: 15px; }.template-card em { margin-top: 3px; font-style: normal; color: var(--muted); font-size: 10px; }.template-ready { margin-top: 9px; padding: 4px 6px; border: 1px solid #c7d2ad; border-radius: 2px; background: #f7faef; color: #687c38; font: 500 7px 'DM Mono'; letter-spacing: .08em; }.template-sketch { position: absolute; left: 20px; top: 3px; font-size: 72px; font-family: 'DM Mono'; color: #c4b28f; transform: scaleX(1.4); opacity: .72; }.template-sketch.wide { transform: scaleX(2); }.template-sketch.open { transform: scaleX(1.6); top: 20px; }.template-sketch.long { transform: scaleX(2.4); }.template-sketch.tall { transform: scaleY(1.35) scaleX(1.25); top: 14px; }
.template-grid.saved-project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.saved-project-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: white; }.saved-project-card.active { border-color: #91aa55; box-shadow: inset 3px 0 #a2c24e; }.saved-project-main { width: 100%; min-height: 112px; display: grid; grid-template-columns: 38px minmax(0,1fr) 22px; gap: 12px; align-items: center; border: 0; background: transparent; padding: 15px; color: var(--ink); text-align: left; }.saved-project-main:hover { background: #f7f9f2; }.saved-project-index { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #edf1e5; color: #66744b; font: 500 10px 'DM Mono'; }.saved-project-main > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }.saved-project-main small { color: var(--muted); font: 500 8px 'DM Mono'; letter-spacing: .06em; }.saved-project-main b { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }.saved-project-main em { color: var(--muted); font-size: 10px; font-style: normal; }.saved-project-main > strong { color: #78923a; font-size: 18px; }.saved-project-actions { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); }.saved-project-actions button { min-height: 36px; border: 0; border-right: 1px solid var(--line); background: #fafbf7; color: #596052; font-size: 9px; font-weight: 700; }.saved-project-actions button:last-child { border: 0; color: #9b4139; }.saved-project-actions button:disabled { color: #afb3aa; cursor: not-allowed; }
.saved-project-rename { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 6px; padding: 9px; border-top: 1px solid var(--line); background: #f6f8f1; }.saved-project-rename input { min-width: 0; height: 38px; border: 1px solid #b9c99a; border-radius: 3px; background: white; padding: 0 10px; color: var(--ink); font-size: 12px; }.saved-project-rename button { min-height: 38px; border: 1px solid var(--line); border-radius: 3px; background: white; padding: 0 10px; color: var(--ink); font-size: 9px; font-weight: 700; }.saved-project-rename button:first-of-type { border-color: var(--ink); background: var(--ink); color: white; }
.dialog-footnote { margin: 0; padding: 0 24px 22px; color: var(--muted); font-size: 11px; }
.element-dialog { width: min(980px,100%); display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.element-library-groups { min-height: 0; overflow-y: auto; padding: 22px 24px 16px; display: grid; gap: 24px; }.element-group-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }.element-group-head h3 { margin: 0; font-size: 13px; }.element-group-head span { color: var(--muted); font: 500 9px 'DM Mono'; }
.element-library-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 9px; }.element-card { min-width: 0; min-height: 128px; border: 1px solid var(--line); background: #f5f6f1; border-radius: 5px; padding: 12px; display: grid; align-content: space-between; gap: 10px; text-align: left; }.element-card:hover { border-color: #8fa653; box-shadow: inset 0 0 0 1px #8fa653; }.element-card-icon { height: 48px; display: grid; place-items: center; color: #6f7f4c; font-size: 35px; line-height: 1; border-bottom: 1px solid #dfe2d8; }.element-card-copy { min-width: 0; display: grid; gap: 3px; }.element-card-copy b { font-size: 10px; line-height: 1.25; }.element-card-copy small { color: var(--muted); font: 500 8px 'DM Mono'; }
.custom-opening-section { padding: 18px; border: 1px solid #bfd091; border-radius: 6px; background: #f2f7e5; }.custom-opening-section .element-group-head { align-items: end; margin-bottom: 16px; }.custom-opening-section .element-group-head div { display: grid; gap: 5px; }.custom-opening-section .element-group-head h3 { font-size: 16px; }.custom-opening-form { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }.custom-opening-form label { min-width: 0; display: grid; gap: 6px; color: #565d51; font-size: 12px; font-weight: 700; }.custom-opening-form label > span { min-height: 17px; }.custom-opening-form label > div { display: flex; align-items: center; border: 1px solid #cfd5c5; border-radius: 4px; background: white; }.custom-opening-form input,.custom-opening-form select { min-width: 0; width: 100%; height: 42px; border: 1px solid #cfd5c5; border-radius: 4px; background: white; padding: 0 11px; color: var(--ink); font-size: 14px; }.custom-opening-form label > div input { border: 0; }.custom-opening-form label > div b { padding-right: 10px; color: var(--muted); font: 500 12px 'DM Mono'; }.custom-opening-form .custom-opening-name { grid-column: span 2; }.custom-opening-form label.disabled { opacity: .48; }.custom-opening-submit { grid-column: span 2; min-height: 44px; align-self: end; border: 0; border-radius: 4px; background: var(--ink); color: white; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; font-size: 13px; }.custom-opening-submit span,.custom-opening-submit b { color: var(--accent); font-size: 18px; }.custom-opening-error { grid-column: 1 / -1; min-height: 17px; margin: 0; color: #a64837; font-size: 12px; }.custom-opening-form.has-error { animation: form-shake .35s ease; }@keyframes form-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.report-dialog { width: min(1120px, 100%); height: min(800px, calc(100vh - 56px)); display: grid; grid-template-rows: auto auto 1fr; }.report-header { gap: 20px; }.report-actions { display: flex; align-items: center; gap: 8px; }.outline-button { height: 40px; border: 1px solid var(--line); background: white; border-radius: 4px; padding: 0 13px; font-size: 11px; font-weight: 700; }
.report-tabs { display: flex; gap: 3px; padding: 0 24px; border-bottom: 1px solid var(--line); }.report-tabs button { border: 0; background: transparent; padding: 14px 12px 12px; color: var(--muted); font-size: 11px; font-weight: 700; border-bottom: 2px solid transparent; }.report-tabs button.active { color: var(--ink); border-bottom-color: var(--ink); }.report-tabs button > b { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-left: 4px; border-radius: 10px; background: #e5e8df; color: #6b7167; font: 500 8px 'DM Mono'; }.report-tabs button.active > b { background: #dcefaa; color: #526829; }
.report-content { min-height: 0; overflow-y: auto; padding: 24px; }
.report-wall-picker { display: flex; gap: 4px; max-width: 100%; overflow-x: auto; margin: 0 0 14px; padding: 3px; background: #e7e8e2; border-radius: 4px; }.report-wall-picker button { flex: 1 0 auto; min-height: 36px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); padding: 7px 12px; font-size: 10px; font-weight: 700; }.report-wall-picker button.active { background: var(--ink); color: var(--accent); }
.report-top { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 20px; }.report-top h3 { margin: 4px 0 5px; font-size: 20px; }.report-top p { margin: 0; color: var(--muted); font-size: 11px; }.report-code { text-align: right; font: 500 9px/1.8 'DM Mono'; color: var(--muted); }
.report-kpis { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); margin-bottom: 22px; }.report-kpis span { padding: 14px; border-right: 1px solid var(--line); display: grid; gap: 5px; }.report-kpis span:last-child { border: 0; }.report-kpis small { font: 500 8px 'DM Mono'; color: var(--muted); }.report-kpis b { font-size: 17px; }
.audit-overview { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 18px; align-items: center; margin-bottom: 16px; padding: 17px; border: 1px solid #d8dfc9; border-radius: 6px; background: #f3f7e9; }.audit-overview.warning { border-color: #edd4b7; background: #fff8ef; }.audit-overview.critical { border-color: #e7b3a8; background: #fff1ee; }.audit-score { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #dff1b6; color: #475a23; }.audit-overview.warning .audit-score { background: #f3c894; color: #65411f; }.audit-overview.critical .audit-score { background: #e49683; color: #4e241c; }.audit-score b { font-size: 23px; line-height: 1; }.audit-score small { margin-top: -10px; font: 500 7px 'DM Mono'; }.audit-overview > div:nth-child(2) > small { color: var(--muted); font: 500 8px 'DM Mono'; letter-spacing: .08em; }.audit-overview h3 { margin: 4px 0; font-size: 19px; }.audit-overview p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }.audit-counts { display: flex; border: 1px solid #d9ddd2; background: #d9ddd2; gap: 1px; }.audit-counts span { min-width: 68px; display: grid; gap: 4px; padding: 10px; background: #fafbf8; text-align: center; }.audit-counts b { font-size: 15px; }.audit-counts small { color: var(--muted); font: 500 7px 'DM Mono'; }.audit-list { display: grid; gap: 7px; }.audit-item { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-left: 3px solid #9ca49a; border-radius: 4px; background: white; }.audit-item.warning { border-left-color: #d79a55; }.audit-item.critical { border-left-color: #c9604b; }.audit-item.ok { border-left-color: #83a23e; }.audit-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #eceee8; color: #62685e; font: 700 11px 'DM Mono'; }.audit-item.warning .audit-icon { background: #fae1c1; color: #784b21; }.audit-item.critical .audit-icon { background: #f5c7bd; color: #7a3024; }.audit-item.ok .audit-icon { background: #dff0ba; color: #526829; }.audit-item > div { min-width: 0; }.audit-item small { color: var(--muted); font: 500 8px 'DM Mono'; letter-spacing: .07em; }.audit-item h4 { margin: 3px 0; font-size: 11px; }.audit-item p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }.audit-item button { min-height: 36px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 4px; background: #f8f9f5; padding: 0 10px; color: var(--ink); font-size: 9px; font-weight: 700; }.audit-item button b { color: #70843f; }.audit-disclaimer { margin: 14px 0 0; padding: 11px 13px; border-left: 3px solid #b4b9ae; background: #eceee8; color: #62685e; font-size: 9px; line-height: 1.5; }
.report-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }.report-grid > * { min-width: 0; }.report-card { min-width: 0; overflow-x: auto; border: 1px solid var(--line); background: white; border-radius: 4px; padding: 16px; }.report-card h4 { margin: 0 0 13px; font-size: 12px; }.spec-list { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 9px; }.spec-list dt, .spec-list dd { margin: 0; font-size: 11px; }.spec-list dt { color: var(--muted); }.spec-list dd { font: 500 10px 'DM Mono'; }
.bar-row { display: grid; grid-template-columns: 84px 1fr 38px; gap: 9px; align-items: center; margin: 10px 0; font-size: 10px; }.bar-row i { height: 7px; display: block; background: #e3e6dd; }.bar-row i::after { content: ''; display: block; width: var(--bar); height: 100%; background: #9abb4d; }.bar-row b { font: 500 9px 'DM Mono'; }
.data-table { width: 100%; border-collapse: collapse; font-size: 10px; }.data-table th { padding: 10px; text-align: left; background: #eceee8; color: var(--muted); font: 500 8px 'DM Mono'; letter-spacing: .06em; }.data-table td { padding: 10px; border-bottom: 1px solid var(--line); }.data-table td:last-child { font-family: 'DM Mono'; }
.material-table td:nth-child(2) b { display: block; font-size: 10px; }.material-table td:nth-child(2) small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 500; }.material-table td:nth-child(n+3) { white-space: nowrap; font-family: 'DM Mono'; }
.cost-toolbar { display: flex; align-items: center; gap: 10px; margin: -5px 0 18px; padding: 12px 14px; border: 1px solid #d7dccb; border-radius: 5px; background: #f4f7ed; }.cost-toolbar > div { min-width: 0; flex: 1; display: grid; gap: 3px; }.cost-toolbar strong { font-size: 13px; }.cost-toolbar small { color: var(--muted); font-size: 11px; line-height: 1.4; }.cost-toolbar label { display: flex; align-items: center; gap: 7px; color: #596052; font-size: 11px; font-weight: 700; }.cost-toolbar select,.cost-toolbar button { min-height: 38px; border: 1px solid #c7cec0; border-radius: 4px; background: white; color: var(--ink); padding: 0 10px; font-size: 11px; font-weight: 700; }.cost-grid { grid-template-columns: 1.35fr .65fr; }.cost-table td:first-child b,.cost-table td:first-child small { display: block; }.cost-table td:first-child b { min-width: 150px; font-size: 11px; }.cost-table td:first-child small { margin-top: 3px; color: var(--muted); font-size: 9px; }.cost-table td:nth-child(2),.cost-table td:last-child { white-space: nowrap; }.cost-input { min-width: 132px; display: flex; align-items: center; border: 1px solid #cfd5c8; border-radius: 4px; background: white; }.cost-input:focus-within { border-color: #769039; box-shadow: 0 0 0 2px #b9d66d55; }.cost-input input { min-width: 0; width: 74px; height: 38px; border: 0; outline: 0; background: transparent; padding: 0 8px; color: var(--ink); font: 500 12px 'DM Mono'; }.cost-input span { padding-right: 8px; color: var(--muted); font-size: 9px; white-space: nowrap; }.cost-breakdown { display: grid; gap: 12px; }.cost-breakdown > div { display: grid; grid-template-columns: 82px minmax(70px,1fr) auto; gap: 9px; align-items: center; }.cost-breakdown span { overflow: hidden; color: #555c50; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.cost-breakdown i { height: 8px; overflow: hidden; border-radius: 4px; background: #e3e7dc; }.cost-breakdown i b { display: block; height: 100%; border-radius: inherit; background: #97b747; }.cost-breakdown strong { font: 500 10px 'DM Mono'; white-space: nowrap; }.cost-total { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 20px; border: 1px solid var(--line); background: var(--line); }.cost-total span { display: grid; gap: 5px; padding: 12px; background: #f7f8f4; }.cost-total small { color: var(--muted); font: 500 8px 'DM Mono'; }.cost-total b { font-size: 14px; }.cost-disclaimer { margin: 16px 0 0; padding: 12px; border-left: 3px solid #d9a669; background: #fff6ea; color: #715941; font-size: 11px; line-height: 1.55; }.cost-disclaimer b { color: #613f20; }
.stock-warning { display: grid; grid-template-columns: 24px 1fr; gap: 9px; align-items: start; margin-top: 14px; padding: 10px; border: 1px solid #efc7a4; border-radius: 4px; background: #fff5eb; }.stock-warning > b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e4a36d; color: #442817; font: 700 11px 'DM Mono'; }.stock-warning strong { display: block; color: #71401f; font-size: 10px; }.stock-warning p { margin: 4px 0 0; color: #7a5a43; font-size: 9px; line-height: 1.4; }.stock-warning.ok { border-color: #cdd8b5; background: #f4f8ea; }.stock-warning.ok > b { background: #cfe3a1; color: #41541f; }.stock-warning.ok strong { color: #526829; }.stock-warning.ok p { color: #66734e; }
.drawing-card { min-height: 220px; position: relative; display: grid; place-items: center; background-color: #f7f8f3; background-image: linear-gradient(#e8eae3 1px,transparent 1px),linear-gradient(90deg,#e8eae3 1px,transparent 1px); background-size: 20px 20px; border: 1px solid var(--line); overflow: hidden; }.drawing-card svg { display: block; max-width: 100%; height: auto; }.drawing-wall { width: 74%; height: 58%; border: 8px solid #54594f; position: relative; }.drawing-wall::before { content: ''; position: absolute; inset: -28px 0 auto; height: 1px; background: #777d72; }.drawing-wall::after { content: attr(data-width); position: absolute; left: 50%; top: -37px; transform: translateX(-50%); background: var(--ink); color: white; padding: 3px 6px; font: 500 9px 'DM Mono'; }.stud-lines { position: absolute; inset: 0; background: repeating-linear-gradient(90deg,transparent 0,transparent calc(12.5% - 2px),#858b80 calc(12.5% - 2px),#858b80 12.5%); }.dim-y { position: absolute; left: -48px; top: 50%; transform: translateY(-50%) rotate(-90deg); background: var(--ink); color: white; padding: 3px 6px; font: 500 9px 'DM Mono'; white-space: nowrap; }
.cut-workspace { display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 14px; min-height: 430px; }.cut-selector { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: white; }.cut-selector-head { height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; border-bottom: 1px solid var(--line); color: var(--muted); font: 500 9px 'DM Mono'; letter-spacing: .08em; }.cut-selector-head b { display: grid; place-items: center; min-width: 23px; height: 23px; border-radius: 50%; background: #e6e9df; color: var(--ink); }.cut-selector-list { max-height: 384px; overflow-y: auto; }.cut-selector-list button { width: 100%; min-width: 0; display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 8px; align-items: center; border: 0; border-bottom: 1px solid #e7e9e2; background: white; padding: 10px 11px; color: var(--ink); text-align: left; }.cut-selector-list button:hover { background: #f5f7f0; }.cut-selector-list button.active { background: #eef6dd; box-shadow: inset 3px 0 #94b640; }.cut-selector-list span { min-width: 0; display: grid; gap: 3px; }.cut-selector-list b { font: 500 10px 'DM Mono'; color: #657249; }.cut-selector-list strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.cut-selector-list small { color: var(--muted); font: 500 8px 'DM Mono'; }.cut-detail { min-width: 0; display: grid; align-content: start; gap: 10px; }.element-drawing-card { min-height: 332px; padding: 8px; }.element-drawing-card svg { width: 100%; max-height: 400px; }.element-spec-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--line); }.element-spec-grid span { min-width: 0; display: grid; gap: 5px; padding: 11px; background: white; }.element-spec-grid span.wide { grid-column: 1 / -1; }.element-spec-grid small { color: var(--muted); font: 500 8px 'DM Mono'; }.element-spec-grid b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.element-spec-grid .wide b { white-space: normal; }
.panel-drawing-card { min-height: 356px; }
.panel-drawing-card .panel-sheet-svg { width: 100%; max-height: 430px; }
.export-row { display: flex; gap: 9px; margin-top: 18px; }.export-row button { border: 1px solid var(--line); background: white; padding: 9px 12px; border-radius: 3px; font-size: 10px; font-weight: 700; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 24px; transform: translate(-50%, 25px); opacity: 0; pointer-events: none; color: white; background: #282b26; border: 1px solid #42463e; padding: 11px 16px; border-radius: 4px; font-size: 11px; transition: .25s; }.toast.show { opacity: 1; transform: translate(-50%,0); }
#print-sheet { display: none; }
@media (max-height: 760px) and (min-width: 901px) {
  .account-content { padding-top: 14px; padding-bottom: 14px; }
  .account-hero { padding: 12px 15px; }
  .account-hero-icon { width: 48px; height: 48px; }
  .account-benefits { display: none; }
  .account-auth { margin-top: 10px; padding: 11px; }
  .account-auth-tabs { margin-bottom: 10px; }
  .account-auth form { gap: 8px; }
  .account-privacy { margin-top: 8px; }
}

@media print {
  body > *:not(#print-sheet) { display: none !important; }
  #print-sheet { display: block; color: #111; font: 11pt Manrope,sans-serif; padding: 15mm; }
  #print-sheet h1 { font-size: 24pt; margin-bottom: 4mm; } #print-sheet h2 { margin-top: 10mm; border-bottom: 1px solid #bbb; padding-bottom: 2mm; } #print-sheet h3 { margin-top: 6mm; font-size: 13pt; }
  #print-sheet table { width: 100%; border-collapse: collapse; margin: 3mm 0; } #print-sheet th,#print-sheet td { border: 1px solid #bbb; padding: 2.5mm; text-align: left; } #print-sheet small { color: #666; }
  #print-sheet .print-walls { display: grid; grid-template-columns: 1fr 1fr; gap: 5mm; break-inside: avoid; } #print-sheet .print-wall { break-inside: avoid; border: 1px solid #ccc; } #print-sheet .print-wall svg { display: block; width: 100%; height: auto; }
  #print-sheet .print-element-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5mm; } #print-sheet .print-element-card { break-inside: avoid; border: 1px solid #ccc; } #print-sheet .print-element-card svg, #print-sheet .print-element-single svg { display: block; width: 100%; height: auto; } #print-sheet .print-element-single { max-width: 180mm; margin: 12mm auto 7mm; border: 1px solid #bbb; }
}
@media (max-width: 900px) {
  body { overflow: auto; }
  .app-shell { height: auto; min-height: 100dvh; overflow: visible; grid-template-rows: 62px 1fr; }
  .topbar { height: 62px; grid-template-columns: auto 1fr; }.brand { border: 0; padding: 0 10px; }.brand small, .project-title, .save-state { display: none; }.top-actions { justify-content: end; gap: 4px; padding: 0 8px; }.top-actions .icon-button { display: none; width: 34px; height: 34px; font-size: 18px; }.top-actions .mobile-project-button { display: block; }.top-actions .primary-button { height: 36px; padding: 0 8px; }.top-actions .primary-button > span,.top-actions .primary-button > b:last-child { display: none; }.account-button { position: relative; min-width: 36px; width: 36px; height: 36px; grid-template-columns: 1fr; padding: 3px; }.account-avatar { width: 28px; height: 28px; }.account-copy { display: none; }.account-dot { position: absolute; right: 2px; bottom: 2px; border: 2px solid var(--paper); width: 9px; height: 9px; }
  .workspace { grid-template-columns: 1fr; grid-template-rows: minmax(54vh, 1fr) auto 76px; }
  .viewport { grid-row: 1; min-height: 430px; }.config-panel { grid-row: 2; border: 0; padding: 22px 20px; }.stage-rail { grid-row: 3; position: sticky; bottom: 0; z-index: 8; display: flex; gap: 4px; overflow-x: auto; border: 0; border-top: 1px solid var(--line); padding: 6px; }
  .rail-item { min-width: 72px; min-height: 62px; }.rail-item.active::before { left: 16px; top: -6px; width: 38px; height: 3px; }.viewport-meta, .view-help { display: none; }.view-tabs { top: 12px; }.view-tabs button { min-width: 66px; }.wall-view-tabs { top: 120px; left: 10px; max-width: calc(100% - 78px); }.wall-view-tabs button { min-height: 34px; padding-inline: 12px; }.element-view-nav { top: 67px; left: 10px; width: calc(100% - 78px); grid-template-columns: 42px minmax(0,1fr) 42px; }.element-view-nav button { min-height: 46px; }.model-stats { left: 12px; right: 12px; justify-content: stretch; transition: bottom .2s; }.model-stats span { flex: 1; }.canvas-tools { right: 10px; }
  .mobile-opening-card { position: absolute; z-index: 7; left: 10px; right: 10px; bottom: 82px; display: grid; gap: 8px; padding: 10px; border: 1px solid #4d5448; border-radius: 7px; background: #20231f; color: white; box-shadow: 0 12px 32px #0007; }
  .mobile-opening-card.warning { border-color: #d9825d; box-shadow: 0 12px 32px #0007, inset 3px 0 #d9825d; }
  .mobile-opening-card[hidden] { display: none; }.viewport.has-opening-selection .model-stats { bottom: 190px; }
  .viewport.elements-view .model-stats { display: none; }
  .mobile-opening-head { display: grid; grid-template-columns: 1fr 36px; gap: 8px; }.mobile-opening-summary { min-width: 0; border: 0; background: transparent; color: white; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 0 4px; }.mobile-opening-summary small { grid-column: 1 / 3; color: #a7ada2; font: 500 8px 'DM Mono'; letter-spacing: .08em; }.mobile-opening-summary strong { font-size: 13px; }.mobile-opening-summary span { color: var(--accent); font: 500 10px 'DM Mono'; align-self: center; }.mobile-opening-close { border: 1px solid #454b42; border-radius: 4px; background: #2b2f29; color: #c8cdc3; font-size: 19px; }
  .mobile-opening-actions { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; }.mobile-opening-actions button { min-width: 0; min-height: 48px; border: 1px solid #42483f; border-radius: 4px; background: #2b2f29; color: white; display: grid; place-items: center; padding: 4px 2px; }.mobile-opening-actions button:active { background: #3a4037; }.mobile-opening-actions b { color: var(--accent); font-size: 17px; line-height: 1; }.mobile-opening-actions small { color: #a9afa4; font: 500 7px 'DM Mono'; letter-spacing: .04em; }
  .dialog-backdrop { padding: 10px; place-items: end center; }.dialog { max-height: calc(100dvh - 20px); }.template-dialog { height: calc(100dvh - 20px); }.account-dialog { max-height: calc(100dvh - 20px); }.account-content { max-height: calc(100dvh - 98px); overflow-y: auto; padding: 16px 14px 18px; }.account-hero { grid-template-columns: 46px 1fr; padding: 14px; }.account-hero-icon { width: 46px; height: 46px; }.account-benefits { grid-template-columns: 1fr; }.account-benefits span { grid-template-columns: 28px 1fr; gap: 2px 8px; }.account-benefits b { grid-row: 1 / 3; }.account-actions { grid-template-columns: 1fr; }.project-library-tabs { padding: 8px 14px 0; overflow-x: auto; }.project-library-tabs button { flex: 1 0 auto; min-height: 44px; }.project-library-actions { align-items: stretch; padding: 12px 14px 0; }.project-library-actions > div { display: none; }.project-library-actions > span { width: 100%; display: grid; grid-template-columns: 1.15fr 1fr 1fr; }.project-library-actions button { min-height: 42px; padding: 0 7px; font-size: 9px; }.template-filters { padding: 12px 14px 0; }.template-grid,.template-grid.saved-project-grid { grid-template-columns: 1fr; padding: 12px 14px 18px; }.template-card { min-height: 168px; }.saved-project-main { min-height: 104px; padding: 13px; }.saved-project-main b { font-size: 15px; }.saved-project-main em { font-size: 11px; }.saved-project-actions button { min-height: 42px; font-size: 10px; }.report-dialog { height: calc(100dvh - 20px); }.report-header { align-items: start; }.report-actions .outline-button { display: none; }.report-actions .primary-button { padding: 0 10px; }.report-actions .primary-button b { display: none; }.report-tabs { overflow-x: auto; }.report-tabs button { white-space: nowrap; }.report-grid { grid-template-columns: 1fr; }.report-kpis { grid-template-columns: 1fr 1fr; }.report-kpis span:nth-child(2) { border-right: 0; }.report-top { display: block; }.report-code { text-align: left; margin-top: 10px; }.audit-overview { grid-template-columns: 58px 1fr; gap: 12px; padding: 13px; }.audit-score { width: 58px; height: 58px; }.audit-score small { margin-top: -7px; font-size: 5px; letter-spacing: -.02em; white-space: nowrap; }.audit-counts { grid-column: 1 / -1; width: 100%; }.audit-counts span { min-width: 0; flex: 1; }.audit-item { grid-template-columns: 30px minmax(0,1fr); gap: 9px; }.audit-item button { grid-column: 2; justify-content: space-between; width: 100%; min-height: 40px; }.cut-workspace { grid-template-columns: 1fr; min-height: 0; }.cut-selector-head { height: 40px; }.cut-selector-list { max-height: none; display: flex; overflow-x: auto; overscroll-behavior-inline: contain; }.cut-selector-list button { flex: 0 0 184px; grid-template-columns: 50px minmax(0,1fr); border-right: 1px solid #e7e9e2; border-bottom: 0; }.cut-selector-list button.active { box-shadow: inset 0 -3px #94b640; }.element-drawing-card { min-height: 250px; padding: 2px; }.element-spec-grid { grid-template-columns: 1fr 1fr; }.export-row { flex-wrap: wrap; }.export-row button { min-height: 42px; }
  .report-tabs button { flex: 0 0 auto; min-height: 44px; }.cost-toolbar { align-items: stretch; flex-wrap: wrap; }.cost-toolbar > div { flex-basis: 100%; }.cost-toolbar label { flex: 1; }.cost-toolbar select { flex: 1; }.cost-toolbar button { flex: 1.4; }.cost-table { min-width: 0; }.cost-table thead { display: none; }.cost-table tbody { display: grid; gap: 8px; }.cost-table tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: #fafbf8; }.cost-table td { padding: 0; border: 0; }.cost-table td:first-child { grid-column: 1 / -1; padding-bottom: 6px; border-bottom: 1px solid var(--line); }.cost-table td:nth-child(2)::before,.cost-table td:nth-child(3)::before,.cost-table td:nth-child(4)::before { display: block; margin-bottom: 4px; color: var(--muted); font: 500 8px 'DM Mono'; }.cost-table td:nth-child(2)::before { content: 'ILOŚĆ'; }.cost-table td:nth-child(3)::before { content: 'CENA / JEDN.'; }.cost-table td:nth-child(4) { grid-column: 1 / -1; display: flex; align-items: end; justify-content: space-between; padding-top: 5px; }.cost-table td:nth-child(4)::before { content: 'WARTOŚĆ NETTO'; margin: 0; }.cost-input input { font-size: 16px; }.cost-breakdown > div { grid-template-columns: 76px minmax(50px,1fr) auto; }
  .element-dialog { height: calc(100dvh - 20px); }.element-library-groups { padding: 18px 14px 12px; }.element-library-grid { grid-template-columns: repeat(2,1fr); }.element-card { min-height: 112px; }.element-dialog .dialog-footnote { padding: 10px 14px 16px; }.custom-opening-section { padding: 14px; }.custom-opening-section .element-group-head { align-items: start; }.custom-opening-form { grid-template-columns: 1fr 1fr; }.custom-opening-form .custom-opening-name,.custom-opening-submit { grid-column: 1 / -1; }.custom-opening-form input,.custom-opening-form select { height: 46px; font-size: 16px; }.custom-opening-error { font-size: 13px; }
  .notice p, .control-section > label, .check-row, .field-select { font-size: 13px; }.control-help { font-size: 11px; }.number-control input { font-size: 14px; }.opening-editor-head strong { font-size: 15px; }.element-card-copy b { font-size: 11px; }.view-tabs button { min-height: 40px; }.canvas-tools button { width: 42px; height: 42px; }
}
