Files
Tectum/css/app.css
T

742 lines
40 KiB
CSS

/*!
* Tectum
* Copyright © 2026 Machiel Heinen.
* Alle rechten voorbehouden. Gebruik uitsluitend met schriftelijke toestemming.
* Zie LICENTIE.md.
*/
/* De 2D-/3D-weergaven blijven donker (--viewport-bg): de canvas-tekeningen gebruiken lichte lijnen. */
:root {
--van-emous-blue: #dce4ee;
--van-emous-orange: #b95913;
--van-emous-ultra-light: #f9faf5;
--nav-link-color: #212121;
--primary: var(--van-emous-orange);
--primary-hover: #9c4a0f;
--primary-soft: rgba(185, 89, 19, 0.10);
--primary-on-dark: #e8883d;
--text: var(--nav-link-color);
--text-muted: #5b6673;
--text-faint: #8a94a0;
--surface: #ffffff;
--border: #c5ced9;
--border-soft: #e2e7ee;
--viewport-bg: #1a1a1a;
--danger: #b3261e;
--danger-soft: #fdecea;
--ok: #2e7d32;
--ok-soft: #e8f3e9;
}
* { box-sizing: border-box; }
body {
margin: 0;
padding: 0;
overflow: hidden;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background-color: var(--van-emous-ultra-light);
color: var(--text);
}
#app-container { display: flex; width: 100%; height: 100%; }
#left-column {
flex: 1;
display: flex;
flex-direction: column;
height: 100%;
min-height: 0;
min-width: 0;
border-right: 1px solid var(--border);
}
#right-column {
flex: 1;
display: flex;
flex-direction: column;
height: 100%;
min-height: 0;
min-width: 0;
}
#app-container.fullscreen-3d #left-column { display: none; }
#app-container.fullscreen-2d #right-column { display: none; }
#pane-2d-container {
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
width: 100%;
}
.pane-2d-sub {
flex: 1;
position: relative;
width: 100%;
min-height: 0;
background: var(--viewport-bg);
}
.pane-2d-sub + .pane-2d-sub { border-top: 1px solid var(--border); }
.pane-2d-primary { flex: 2; }
.pane-2d-sub canvas.interactive { cursor: default; }
.pane-2d-row { display: flex; flex-direction: row; padding: 0; }
.pane-2d-half { flex: 1; position: relative; min-width: 0; min-height: 0; background: var(--viewport-bg); }
.pane-2d-half + .pane-2d-half { border-left: 1px solid var(--border); }
#control-panel {
height: 380px;
background: var(--van-emous-ultra-light);
border-top: 1px solid var(--border);
display: flex;
flex-direction: column;
}
.tab-bar {
display: flex;
background: var(--van-emous-blue);
border-bottom: 1px solid var(--border);
}
.io-toolbar {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 10px;
background: var(--van-emous-ultra-light);
border-bottom: 1px solid var(--border-soft);
}
.io-btn {
background: var(--surface);
border: 1px solid var(--border);
color: var(--text);
padding: 5px 10px;
border-radius: 4px;
font-size: 12px;
cursor: pointer;
}
.io-btn:hover { border-color: var(--primary); color: var(--primary); }
.io-status { font-size: 11px; color: var(--text-faint); margin-left: auto; }
.io-status.err { color: var(--danger); }
.io-status.ok { color: var(--ok); }
.tab-btn {
flex: 1;
padding: 10px;
background: none;
border: none;
border-bottom: 2px solid transparent;
color: var(--text-muted);
font-size: 12px;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 0.5px;
cursor: pointer;
transition: all 0.2s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
color: var(--primary);
border-bottom: 2px solid var(--primary);
background: var(--van-emous-ultra-light);
}
.tab-content {
padding: 15px 20px;
overflow-y: auto;
flex: 1;
display: none;
}
.tab-content.active { display: block; }
#pane-3d { flex: 1; position: relative; min-height: 0; background: var(--viewport-bg); }
#specs-panel-3d {
height: 380px;
background: var(--van-emous-ultra-light);
border-top: 1px solid var(--border);
overflow-y: auto;
padding: 15px 20px;
}
#specs-panel-3d .controls-grid { grid-template-columns: 1fr 1fr; }
.toolbar-3d {
position: absolute;
top: 15px;
right: 15px;
z-index: 10;
display: flex;
gap: 8px;
}
.btn-3d-toggle {
background: rgba(0, 0, 0, 0.75);
border: 1px solid var(--primary-on-dark);
color: var(--primary-on-dark);
padding: 6px 12px;
border-radius: 4px;
font-size: 12px;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 0.5px;
cursor: pointer;
}
.btn-3d-toggle.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pane-label {
position: absolute;
top: 15px;
left: 15px;
background: rgba(0, 0, 0, 0.75);
padding: 6px 14px;
border-radius: 4px;
border: 1px solid #444;
font-size: 13px;
font-weight: bold;
letter-spacing: 0.5px;
color: var(--primary-on-dark);
z-index: 10;
pointer-events: none;
}
.controls-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
h1 { font-size: 13px; margin: 0 0 8px 0; color: var(--primary); text-transform: uppercase; letter-spacing: 0.8px; }
.control-group { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.control-group label { font-size: 12px; color: var(--text-muted); }
.control-group input, .control-group select {
width: 96px; background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 3px 5px; border-radius: 4px; font-size: 12px; text-align: right;
}
.control-group select { text-align: left; }
.control-group input:focus, .control-group select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 2px var(--primary-soft); }
.btn-toggle {
width: 100%; padding: 8px; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--primary); color: var(--primary);
font-weight: bold; border-radius: 4px; cursor: pointer; text-transform: uppercase; font-size: 12px;
}
.btn-toggle.active { background: var(--primary); color: #fff; }
.unit { font-size: 11px; color: var(--text-faint); margin-left: 3px; }
.divider { border-top: 1px solid var(--border-soft); margin: 8px 0; }
.result-row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 3px; }
.highlight { color: var(--primary); font-weight: bold; }
canvas { display: block; width: 100%; height: 100%; }
.opening-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 6px;
padding: 10px 12px;
margin-bottom: 10px;
position: relative;
}
.opening-card.opening-selected { background: var(--primary-soft); border-color: var(--primary); }
.opening-fill { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.opening-card.opening-warn {
border-color: var(--danger);
box-shadow: 0 0 0 1px var(--danger) inset;
}
.opening-card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.opening-card-title {
font-size: 12px;
font-weight: bold;
color: var(--primary);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.opening-remove-btn {
background: none;
border: 1px solid #e3b4b0;
color: var(--danger);
border-radius: 4px;
width: 22px;
height: 22px;
line-height: 1;
cursor: pointer;
font-size: 13px;
}
.opening-remove-btn:hover { background: var(--danger-soft); }
.opening-warning-text {
font-size: 11px;
color: var(--danger);
margin-top: 6px;
}
.add-opening-btn {
width: 100%; padding: 8px; margin-bottom: 12px; background: var(--ok-soft); border: 1px solid var(--ok); color: var(--ok);
font-weight: bold; border-radius: 4px; cursor: pointer; text-transform: uppercase; font-size: 12px;
}
.add-opening-btn:hover { background: #d7ebd9; }
.global-warning {
background: var(--danger-soft);
border: 1px solid var(--danger);
color: var(--danger);
border-radius: 4px;
padding: 8px 10px;
font-size: 12px;
margin-bottom: 10px;
}
.spec-section { margin-bottom: 14px; }
.material-info { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin: 4px 0 10px; }
.material-toggle-group { display: flex; gap: 8px; margin-bottom: 8px; }
.material-toggle-btn {
flex: 1; padding: 10px 8px; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
border-radius: 4px; font-size: 12px; font-weight: bold; text-transform: uppercase;
letter-spacing: .3px; cursor: pointer;
}
.material-toggle-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.material-toggle-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }
html, body { height: 100%; }
#tab-bar {
height: 34px;
background: var(--van-emous-ultra-light);
border-bottom: 1px solid var(--border);
display: flex;
align-items: stretch;
overflow-x: auto;
}
.tab-item {
display: flex; align-items: center; gap: 8px;
padding: 0 12px; font-size: 12px; color: var(--text-muted);
border-right: 1px solid var(--border-soft); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap;
}
.tab-item:hover { color: var(--text); }
.tab-item.active { background: var(--surface); color: var(--text); border-bottom: 2px solid var(--primary); }
.tab-item .tab-close {
color: var(--text-faint); font-size: 14px; line-height: 1; padding: 2px;
}
.tab-item .tab-close:hover { color: var(--danger); }
body { display: flex; flex-direction: column; }
#tab-bar { flex: none; }
#workspace { width: 100vw; flex: 1; min-height: 0; position: relative; }
#workspace-empty {
height: 100%; display: flex; align-items: center; justify-content: center;
color: var(--text-faint); font-size: 14px; flex-direction: column; gap: 10px;
}
/* Splashscreen blijft donker: het logo bevat lichte delen. */
#splash-screen {
position: fixed; inset: 0; background: #0d0d0d; z-index: 9999;
display: flex; flex-direction: column; align-items: center; justify-content: center;
gap: 10px; animation: splashFadeOut .5s ease-in-out 3.8s forwards;
}
#splash-logo { width: 320px; height: auto; }
#splash-screen .splash-version { font-size: 13px; color: #888; margin-top: 14px; letter-spacing: .5px; }
#splash-screen .splash-name { color: #eee; font-weight: bold; letter-spacing: 1px; }
@keyframes splashFadeOut { 0% { opacity: 1; } 100% { opacity: 0; visibility: hidden; pointer-events: none; } }
#about-overlay {
position: fixed; inset: 0; background: rgba(33, 33, 33, .45); z-index: 500;
display: none; align-items: center; justify-content: center;
}
#about-overlay.open { display: flex; }
#about-modal {
background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 22px 26px;
max-width: 680px; width: 92%; max-height: 90vh; display: flex; flex-direction: column;
box-shadow: 0 12px 30px rgba(33, 33, 33, .2);
}
#about-modal .about-logo { width: 220px; height: auto; margin-bottom: 14px; }
#about-modal .about-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
#about-modal .about-head h2 { font-size: 20px; letter-spacing: .5px; }
#about-modal .about-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11px; color: var(--text-faint); }
#about-modal .license-box { overflow-y: auto; min-height: 0; flex: 1; }
#about-modal .license-box h3 { font-size: 14px; color: var(--text); margin: 0 0 8px; }
#about-modal .license-box h4 { font-size: 12px; color: var(--primary); margin: 12px 0 4px; text-transform: uppercase; letter-spacing: .5px; }
#about-modal .license-box p { font-size: 12px; color: var(--text-muted); margin: 0 0 6px; line-height: 1.55; }
#about-modal h2 { margin: 0 0 6px; font-size: 15px; color: var(--primary); }
#about-modal .about-version { font-size: 12px; color: var(--text-muted); }
#about-modal p { font-size: 13px; color: var(--text); line-height: 1.6; margin: 0 0 10px; }
#about-modal .license-box {
background: var(--van-emous-ultra-light); border: 1px solid var(--border-soft); border-radius: 6px; padding: 10px 12px;
font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px;
}
#about-modal .about-close {
background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 6px 14px;
border-radius: 4px; font-size: 13px; cursor: pointer; float: right;
}
#about-modal .about-close:hover { border-color: var(--primary); color: var(--primary); }
#wall-project-overlay, #house-project-overlay {
position: fixed; inset: 0; background: rgba(33, 33, 33, .45); z-index: 500;
display: none; align-items: center; justify-content: center;
}
#wall-project-overlay.open, #house-project-overlay.open { display: flex; }
#wall-project-modal, #house-project-modal {
background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 20px 24px;
width: 540px; max-width: 92%; box-shadow: 0 12px 30px rgba(33, 33, 33, .2);
}
#wall-project-modal .modal-header, #house-project-modal .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
#wall-project-modal .modal-header h2, #house-project-modal .modal-header h2 { margin: 0; font-size: 15px; color: var(--primary); }
#wall-project-modal .modal-close-x, #house-project-modal .modal-close-x {
background: none; border: none; color: var(--text-faint); font-size: 19px; line-height: 1; cursor: pointer; padding: 0 4px;
}
#wall-project-modal .modal-close-x:hover, #house-project-modal .modal-close-x:hover { color: var(--danger); }
#wall-project-modal .modal-footer, #house-project-modal .modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
#wall-project-modal .control-group input, #house-project-modal .control-group input { width: 150px; text-align: left; }
#cost-settings-overlay {
position: fixed; inset: 0; background: rgba(33, 33, 33, .45); z-index: 500;
display: none; align-items: center; justify-content: center;
}
#cost-settings-overlay.open { display: flex; }
#cost-settings-modal {
background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 20px 24px;
width: 760px; max-width: 94%; max-height: 90vh; display: flex; flex-direction: column;
box-shadow: 0 12px 30px rgba(33, 33, 33, .2);
}
#cost-settings-modal .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
#cost-settings-modal .modal-header h2 { margin: 0; font-size: 15px; color: var(--primary); }
#cost-settings-modal .modal-close-x { background: none; border: none; color: var(--text-faint); font-size: 19px; line-height: 1; cursor: pointer; padding: 0 4px; }
#cost-settings-modal .modal-close-x:hover { color: var(--danger); }
#cost-settings-modal .modal-footer { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
#cost-settings-modal .cs-body { overflow-y: auto; min-height: 0; flex: 1; columns: 2 340px; column-gap: 24px; }
#cost-settings-modal .cs-group { break-inside: avoid; margin-bottom: 14px; }
#cost-settings-modal .cs-group h3 { font-size: 12px; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; margin: 0 0 6px; }
#cost-settings-modal .cs-row { display: grid; grid-template-columns: 1fr 84px 48px; gap: 6px; align-items: center; font-size: 12px; padding: 2px 0; }
#cost-settings-modal .cs-row input, #cost-settings-modal .cs-row select { width: 100%; text-align: right; }
#cost-settings-modal .cs-row select { text-align: left; }
#cost-settings-modal .cs-unit { color: var(--text-faint); font-size: 11px; }
#cost-settings-modal .cs-row.changed .cs-label { color: var(--primary); font-weight: bold; }
#cost-settings-modal .cs-row.from-list input { color: var(--primary); font-weight: bold; }
#cost-settings-modal .cs-row.from-list .cs-unit::after { content: ' CSV'; color: var(--primary); font-size: 9px; }
#cost-settings-modal .cs-pricelist { font-size: 12px; margin-bottom: 10px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 4px; }
#cost-settings-modal .cs-pricelist .io-btn { padding: 1px 8px; margin-left: 6px; }
#cost-settings-modal .cs-pricelist .cs-list + .cs-list { margin-top: 4px; }
#cost-settings-modal .cs-pricelist ul { margin: 4px 0 0; padding-left: 18px; max-height: 120px; overflow-y: auto; }
#cost-settings-modal .cs-pricelist li.err { color: var(--danger); }
#new-overlay {
position: fixed; inset: 0; background: rgba(33, 33, 33, .45); z-index: 500;
display: none; align-items: center; justify-content: center;
}
#new-overlay.open { display: flex; }
#new-modal {
background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 22px 26px;
box-shadow: 0 12px 30px rgba(33, 33, 33, .2);
}
#new-modal h2 { margin: 0 0 16px; font-size: 15px; color: var(--primary); }
.new-options { display: flex; gap: 14px; }
.new-option {
display: flex; flex-direction: column; align-items: center; gap: 8px;
background: var(--van-emous-ultra-light); border: 1px solid var(--border); border-radius: 8px; padding: 18px 22px;
color: var(--nav-link-color); cursor: pointer; width: 110px;
}
.new-option svg { width: 40px; height: 40px; }
.new-option span { font-size: 13px; }
.new-option:hover:not(.disabled) { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.new-option.disabled { opacity: .4; cursor: not-allowed; }
#floor-app { display: flex; width: 100%; height: 100%; }
#floor-left-column {
flex: 1; display: flex; flex-direction: column; height: 100%; min-height: 0; min-width: 0;
border-right: 1px solid var(--border);
}
#floor-right-column { flex: 1; display: flex; flex-direction: column; height: 100%; min-height: 0; min-width: 0; }
#floor-app.fullscreen-3d #floor-left-column { display: none; }
#floor-app.fullscreen-2d #floor-right-column { display: none; }
#floor-pane-2d-container { flex: 1; display: flex; flex-direction: column; min-height: 0; width: 100%; }
#floor-control-panel { height: 380px; background: var(--van-emous-ultra-light); border-top: 1px solid var(--border); display: flex; flex-direction: column; }
#floor-control-panel .tab-content { padding: 15px 20px; overflow-y: auto; flex: 1; display: none; }
#floor-control-panel .tab-content.active { display: block; }
#floor-pane-3d { flex: 1; position: relative; min-height: 0; background: var(--viewport-bg); }
#floor-specs-panel-3d {
height: 380px; background: var(--van-emous-ultra-light); border-top: 1px solid var(--border); overflow-y: auto; padding: 15px 20px;
}
#floor-specs-panel-3d .controls-grid { grid-template-columns: 1fr 1fr; }
#house-app { display: flex; width: 100%; height: 100%; }
#house-nav {
width: 240px; flex: none; display: flex; flex-direction: column; gap: 6px;
background: var(--van-emous-blue); border-right: 1px solid var(--border); padding: 10px 8px; overflow-y: auto;
}
.hn-title { font-size: 12px; font-weight: bold; color: var(--primary); text-transform: uppercase; letter-spacing: .8px; padding: 2px 6px 6px; }
#house-nav-tree { display: flex; flex-direction: column; gap: 2px; }
.hn-group { margin-top: 6px; }
.hn-item {
display: flex; justify-content: space-between; align-items: baseline; gap: 6px;
padding: 5px 8px; border-radius: 4px; font-size: 12px; color: var(--nav-link-color); cursor: pointer;
}
.hn-item:hover { background: rgba(255, 255, 255, .6); color: var(--primary); }
.hn-item.active { background: var(--surface); color: var(--primary); box-shadow: inset 3px 0 0 var(--primary); }
.hn-unit { font-weight: bold; text-transform: uppercase; letter-spacing: .5px; }
.hn-static { cursor: default; }
.hn-static:hover { background: none; color: var(--nav-link-color); }
.hn-sub { padding-left: 18px; }
.hn-meta { font-size: 10px; color: var(--text-muted); font-weight: normal; text-transform: none; letter-spacing: 0; text-align: right; }
.hn-removed span:first-child { text-decoration: line-through; color: var(--text-faint); }
.hn-item.disabled { color: #9aa4b0; cursor: not-allowed; }
.hn-item.disabled:hover { background: none; color: #9aa4b0; }
.hn-actions { display: flex; gap: 6px; margin-top: 10px; }
.hn-actions .io-btn { flex: 1; }
#house-nav .io-status { margin: auto 0 0; padding: 6px; }
#house-part-host { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
#house-part-host > #app-container,
#house-part-host > #floor-app,
#house-part-host > #house-overview { flex: 1; min-height: 0; height: auto; }
#house-overview { display: flex; width: 100%; }
.ho-views { flex: 1; display: flex; min-width: 0; min-height: 0; }
.ho-pane { flex: 1; position: relative; min-height: 0; min-width: 0; background: var(--viewport-bg); }
#ho-pane-plan { border-right: 1px solid var(--border); }
@media (max-width: 1100px) {
.ho-views { flex-direction: column; }
#ho-pane-plan, .ho-report { border-right: none; border-bottom: 1px solid var(--border); }
}
#house-overview.fullscreen-3d #ho-pane-plan, #house-overview.fullscreen-3d .ho-report { display: none !important; }
#house-overview.fullscreen-2d #ho-pane-3d { display: none; }
.ho-report { display: none; flex: 1; min-width: 0; min-height: 0; overflow-y: auto; padding: 14px 18px 20px; background: var(--van-emous-ultra-light); border-right: 1px solid var(--border); }
#house-overview.show-report .ho-report { display: block; }
#house-overview.show-report #ho-pane-plan { display: none; }
.ho-report .ui-spec-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); align-items: start; }
.ho-report-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.ho-report-head h1 { margin: 0; font-size: 14px; }
.ho-report-head span { font-size: 12px; color: var(--text-muted); }
.ho-warn { position: absolute; top: 52px; left: 15px; right: 15px; z-index: 9; pointer-events: none; }
.ho-warn .ui-warn { margin: 0 0 6px; max-width: 560px; }
.ho-hint {
position: absolute; left: 15px; bottom: 10px; font-size: 11px; color: #bbb;
background: rgba(0, 0, 0, .6); padding: 3px 8px; border-radius: 4px; pointer-events: none;
}
.ho-prop-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.io-btn-danger { border-color: #e3b4b0; color: var(--danger); }
.io-btn-danger:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
.control-group input:disabled { opacity: .5; cursor: not-allowed; background: var(--border-soft); }
.view-filter { position: relative; }
.vf-menu {
position: absolute; right: 0; top: 100%; margin-top: 6px; min-width: 210px; display: none;
background: rgba(0, 0, 0, 0.88); border: 1px solid #444; border-radius: 4px; padding: 8px 12px; z-index: 20;
}
.vf-menu.open { display: block; }
.vf-item { display: flex; align-items: center; gap: 8px; color: #eee; font-size: 13px; padding: 4px 0; cursor: pointer; user-select: none; }
.vf-item input { accent-color: var(--primary-on-dark); width: 15px; height: 15px; cursor: pointer; }
.bi { line-height: 1; vertical-align: -0.125em; }
.ui-section { margin-bottom: 14px; }
.ui-section h2, .ui-spec-card h2 {
display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 12px; font-weight: 600;
color: var(--primary); text-transform: uppercase; letter-spacing: .6px;
}
.ui-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.ui-field { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 28px; }
.ui-field label { font-size: 12.5px; color: var(--text); display: flex; align-items: center; gap: 5px; }
.ui-field.is-disabled label { color: var(--text-faint); }
.ui-control { display: flex; align-items: center; flex: none; }
.ui-control input[type=number], .ui-control input[type=text], .ui-control select {
width: 118px; background: var(--surface); border: 1px solid var(--border); color: var(--text);
padding: 4px 6px; border-radius: 4px; font-size: 12.5px; font-family: inherit;
}
.ui-control input[type=number] { text-align: right; }
.ui-control input:focus, .ui-control select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 2px var(--primary-soft); }
.ui-control input:disabled { opacity: .55; background: var(--border-soft); cursor: not-allowed; }
.ui-unit { width: 26px; margin-left: 5px; font-size: 11px; color: var(--text-faint); }
.ui-hint { color: var(--text-faint); font-size: 11px; cursor: help; }
.ui-hint:hover { color: var(--primary); }
.ui-switch { position: relative; display: inline-block; width: 36px; height: 20px; margin-right: 82px; }
.ui-switch input { opacity: 0; width: 0; height: 0; }
.ui-switch span { position: absolute; inset: 0; background: #c9d1db; border-radius: 20px; cursor: pointer; transition: background .15s; }
.ui-switch span::before { content: ''; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s; }
.ui-switch input:checked + span { background: var(--primary); }
.ui-switch input:checked + span::before { transform: translateX(16px); }
.ui-switch input:focus-visible + span { box-shadow: 0 0 0 2px var(--primary-soft); }
.ui-info, .ui-warn { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.5; border-radius: 4px; padding: 7px 10px; margin: 6px 0 10px; }
.ui-info { color: var(--text-muted); background: var(--surface); border: 1px solid var(--border-soft); }
.ui-warn { color: var(--danger); background: var(--danger-soft); border: 1px solid var(--danger); }
.ui-info .bi, .ui-warn .bi { margin-top: 2px; }
.ui-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ui-btn {
display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border);
color: var(--text); padding: 5px 11px; border-radius: 4px; font-size: 12px; cursor: pointer; font-family: inherit;
}
.ui-btn:hover { border-color: var(--primary); color: var(--primary); }
.ui-btn.ui-btn-danger { color: var(--danger); border-color: #e3b4b0; }
.ui-btn.ui-btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.ui-btn.ui-btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.ui-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ui-panel-head h1 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.ui-panel-head .ui-sub { font-size: 12px; color: var(--text-muted); }
.ui-tab-bar { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin: 0 0 12px; }
.ui-tab {
display: inline-flex; align-items: center; gap: 6px; background: none; border: none; border-bottom: 2px solid transparent;
margin-bottom: -1px; padding: 7px 12px; font-size: 12.5px; color: var(--text-muted); cursor: pointer; font-family: inherit;
}
.ui-tab:hover { color: var(--text); }
.ui-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.ui-tab-page { display: none; }
.ui-tab-page.active { display: block; }
.ui-spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ui-spec-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 6px; padding: 10px 12px; }
.ui-spec-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 3px 0; border-bottom: 1px dashed var(--border-soft); }
.ui-spec-row:last-child { border-bottom: none; }
.ui-spec-val { font-weight: 600; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.ui-spec-val small { font-weight: normal; color: var(--text-faint); margin-left: 3px; }
.ui-spec-total { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 2px; }
.ui-spec-total .ui-spec-val { color: var(--primary); }
.btn-3d-toggle { display: inline-flex; align-items: center; gap: 6px; }
.hn-item .bi { margin-right: 6px; color: var(--text-muted); }
.hn-item.active .bi, .hn-item:hover .bi { color: var(--primary); }
.hn-label { display: inline-flex; align-items: center; }
.render-only #specs-panel-3d, .render-only #floor-specs-panel-3d { display: none; }
.control-group { min-height: 28px; margin-bottom: 3px; gap: 10px; }
.control-group label { font-size: 12.5px; color: var(--text); }
.control-group input, .control-group select { width: 118px; font-size: 12.5px; padding: 4px 6px; font-family: inherit; }
h1 { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: .6px; }
.tab-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-transform: none; font-size: 12.5px; letter-spacing: 0; }
.result-row { padding: 3px 0; border-bottom: 1px dashed var(--border-soft); }
.result-row:last-child { border-bottom: none; }
.result-row .highlight { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
#specs-panel-3d .spec-section, #floor-specs-panel-3d .spec-section {
background: var(--surface); border: 1px solid var(--border-soft); border-radius: 6px; padding: 10px 12px; margin-bottom: 12px;
}
.add-opening-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-transform: none; font-size: 12.5px; }
.hn-actions .ui-btn { flex: 1; justify-content: center; }
.hn-title { display: flex; align-items: center; gap: 6px; }
.file-protocol-warning { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 9000; max-width: 640px; box-shadow: 0 8px 20px rgba(33,33,33,.2); }
.file-protocol-warning code { background: rgba(0,0,0,.06); padding: 0 4px; border-radius: 3px; }
.vf-option { gap: 9px; }
.vf-option.active { color: var(--primary-on-dark); font-weight: 600; }
.vf-menu .vf-option:hover { color: var(--primary-on-dark); }
.hs-stone-preview { display: block; width: 128px; height: auto; margin: 4px 0 8px; border: 1px solid var(--border, #ccc); border-radius: 3px; }
.walk-hint { display: none; position: absolute; left: 50%; top: 14px; transform: translateX(-50%); padding: 6px 12px; border-radius: 4px;
background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 12px; pointer-events: none; white-space: nowrap; z-index: 5; }
.walk-hint.show { display: block; }
.walk-prompt { display: none; position: absolute; left: 50%; top: 58%; transform: translateX(-50%); padding: 5px 11px; border-radius: 4px;
background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 13px; font-weight: 600; pointer-events: none; white-space: nowrap; z-index: 5; }
.walk-prompt.show { display: block; }
.opening-roof-btn {
display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; padding: 4px 8px; font-size: 11.5px;
background: var(--surface); border: 1px solid var(--border); color: var(--primary); border-radius: 4px; cursor: pointer;
}
.opening-roof-btn:hover { background: var(--primary-soft); border-color: var(--primary); }
.ui-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 11px; color: var(--text-faint); margin-bottom: 4px; }
.ui-crumbs .bi { font-size: 9px; }
.ui-crumbs span:last-child { color: var(--text-muted); }
.ui-field-range { flex-wrap: wrap; row-gap: 2px; padding: 2px 0 4px; }
.ui-field-range label { flex: 1 1 100%; }
.ui-range { flex: 1 1 100%; gap: 8px; }
.ui-range input[type=range] { flex: 1; min-width: 0; accent-color: var(--primary); }
.ui-range input[type=number] { width: 84px; }
.ui-swatch { height: 14px; border-radius: 3px; border: 1px solid var(--border); margin: 2px 0 6px; }
.stage-bar {
position: absolute; left: 15px; bottom: 14px; z-index: 10; min-width: 300px; max-width: calc(100% - 30px);
background: rgba(0, 0, 0, 0.75); border: 1px solid #444; border-radius: 6px; padding: 7px 12px 6px; color: #eee; font-size: 12px;
}
.stage-row, .stage-extra { display: flex; align-items: center; gap: 10px; }
.stage-title { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-on-dark); font-weight: 600; white-space: nowrap; }
.stage-range { flex: 1; min-width: 90px; accent-color: var(--primary-on-dark); }
.stage-name { min-width: 84px; font-weight: 600; white-space: nowrap; }
.stage-track { flex: 1; display: flex; flex-direction: column; min-width: 120px; }
.stage-track .stage-range { width: 100%; margin: 0; }
.stage-ticks { display: flex; justify-content: space-between; padding: 0 3px; font-size: 10px; color: #888; }
.stage-ticks span { cursor: pointer; padding: 0 3px; }
.stage-ticks span.on { color: var(--primary-on-dark); }
.stage-extra { display: none; margin-top: 6px; padding-top: 6px; border-top: 1px solid #444; }
.stage-extra.show { display: flex; }
.viz { --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --track: #eef1f5; }
.viz-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--text-muted); margin: -2px 0 8px; }
.viz-legend span { display: inline-flex; align-items: center; gap: 5px; }
.viz-key { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.viz-key.s1, .viz-seg.s1 { background: var(--series-1); }
.viz-key.s2, .viz-seg.s2 { background: var(--series-2); }
.viz-key.s3, .viz-seg.s3 { background: var(--series-3); }
.viz-row { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 8px; padding: 4px 0; }
.viz-label { font-size: 12px; color: var(--text); line-height: 1.25; }
.viz-label small { display: block; font-size: 10px; color: var(--text-faint); }
.viz-row:has(.viz-label small) { grid-template-columns: 1fr auto; }
.viz-row:has(.viz-label small) .viz-label { grid-column: 1 / -1; }
.viz-track { height: 12px; }
.viz-bar { display: flex; gap: 2px; height: 100%; min-width: 2px; }
.viz-seg { height: 100%; min-width: 2px; }
.viz-seg:last-child { border-radius: 0 4px 4px 0; }
.viz-seg:hover { filter: brightness(1.12); }
.viz-val { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); text-align: right; white-space: nowrap; }
.viz-note { font-size: 11px; color: var(--text-faint); line-height: 1.45; margin-top: 6px; }
#ribbon { flex: none; background: var(--van-emous-blue); border-bottom: 1px solid var(--border); position: relative; z-index: 100; user-select: none; }
.rb-top { display: flex; align-items: flex-end; height: 34px; padding: 0 8px; }
.rb-brand { display: flex; align-items: center; height: 100%; padding: 0 14px 0 4px; font-weight: 700; color: var(--primary); letter-spacing: .5px; }
.rb-tabs { display: flex; gap: 2px; height: 100%; align-items: flex-end; overflow-x: auto; scrollbar-width: none; }
.rb-tab {
display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 14px; border: 1px solid transparent; border-bottom: none;
border-radius: 5px 5px 0 0; background: none; font: inherit; font-size: 12.5px; color: var(--nav-link-color); cursor: pointer; white-space: nowrap;
}
.rb-tab:hover { background: rgba(255, 255, 255, .55); color: var(--primary); }
.rb-tab.active { background: var(--van-emous-ultra-light); border-color: var(--border); color: var(--primary); font-weight: 600; margin-bottom: -1px; height: 29px; }
.rb-tab.rb-ctx { color: #fff; background: var(--primary); margin-left: 10px; }
.rb-tab.rb-ctx:hover { background: var(--primary-hover); color: #fff; }
.rb-tab.rb-ctx.active { background: var(--van-emous-ultra-light); color: var(--primary); box-shadow: inset 0 3px 0 var(--primary); }
.rb-right { margin-left: auto; display: flex; align-items: center; height: 100%; gap: 10px; font-size: 11px; color: var(--text-muted); padding-left: 12px; }
.rb-body {
position: relative; display: flex; align-items: stretch; height: 104px; padding: 6px 40px 4px 6px;
background: var(--van-emous-ultra-light); border-top: 1px solid var(--border); overflow-x: auto; overflow-y: hidden;
}
#ribbon.rb-collapsed .rb-body { display: none; }
.rb-collapse { position: absolute; right: 8px; bottom: 6px; border: none; background: none; color: var(--text-faint); cursor: pointer; padding: 2px 4px; }
.rb-collapse:hover { color: var(--primary); }
.rb-group { display: flex; flex-direction: column; flex: none; padding: 0 12px; border-right: 1px solid var(--border-soft); }
.rb-group:last-of-type { border-right: none; }
.rb-group-body { flex: 1; display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, 26px); column-gap: 16px; align-items: center; justify-content: start; }
.rb-group-label { text-align: center; font-size: 10.5px; color: var(--text-faint); padding-top: 2px; white-space: nowrap; }
.rb-btn {
display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; background: none; border-radius: 4px;
font: inherit; font-size: 12px; color: var(--text); cursor: pointer; white-space: nowrap;
}
.rb-btn:hover:not(:disabled) { background: var(--primary-soft); border-color: rgba(185, 89, 19, .25); color: var(--primary); }
.rb-btn:disabled { color: #a9b2bd; cursor: default; }
.rb-btn.active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.rb-btn.rb-danger:hover:not(:disabled) { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.rb-small { height: 24px; padding: 0 7px; }
.rb-small .bi { font-size: 14px; color: var(--primary); }
.rb-btn:disabled .bi { color: inherit; }
.rb-big { grid-row: span 3; flex-direction: column; justify-content: center; gap: 4px; min-width: 64px; height: 76px; padding: 4px 8px; text-align: center; }
.rb-big .bi { font-size: 24px; color: var(--primary); }
.rb-big span { white-space: normal; max-width: 86px; line-height: 1.2; }
.rb-kv { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; color: var(--text-muted); min-width: 150px; }
.rb-kv b { color: var(--text); font-variant-numeric: tabular-nums; }
.rb-kv small { font-weight: normal; color: var(--text-faint); margin-left: 2px; }
.rb-note { grid-row: span 3; max-width: 260px; font-size: 11px; line-height: 1.4; color: var(--text-muted); white-space: normal; align-self: center; }
.rb-note.rb-warn { color: var(--danger); }
.rb-group .ui-field { min-height: 0; height: 26px; gap: 8px; }
.rb-group .ui-field label { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }
.rb-group .ui-control input[type=number] { width: 70px; padding: 2px 5px; font-size: 12px; }
.rb-group .ui-control select, .rb-group .ui-control input[type=text] { width: 132px; padding: 2px 4px; font-size: 12px; }
.rb-group .ui-control input[type=color] { width: 46px; height: 22px; padding: 0; border: 1px solid var(--border); border-radius: 3px; background: none; }
.rb-group .ui-unit { width: 20px; margin-left: 3px; font-size: 10.5px; }
.rb-group .ui-switch { margin-right: 0; }
.rb-group .ui-field-range { flex-wrap: nowrap; padding: 0; }
.rb-group .ui-field-range label { flex: none; }
.rb-group .ui-range { flex: none; gap: 6px; }
.rb-group .ui-range input[type=range] { width: 96px; flex: none; }
.rb-group .ui-range input[type=number] { width: 62px; }
.rb-thumb { width: 26px; height: 26px; border-radius: 3px; border: 1px solid var(--border); object-fit: cover; display: block; }
.rb-swatch { width: 26px; height: 22px; border-radius: 3px; border: 1px solid var(--border); }
.rb-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; height: 24px; }
.rb-seg .rb-btn { border-radius: 0; border: none; border-right: 1px solid var(--border-soft); height: 22px; padding: 0 8px; }
.rb-seg .rb-btn:last-child { border-right: none; }
.rb-seg .rb-btn.active { background: var(--primary); color: #fff; }
.rb-seg .rb-btn.active .bi { color: #fff; }
.rb-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text); cursor: pointer; white-space: nowrap; }
.rb-check input { accent-color: var(--primary); }
.rb-pair { display: flex; align-items: center; gap: 6px; }
.rb-cols { grid-row: span 3; display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, 26px); column-gap: 18px; align-items: center; }
.rb-cols:empty { display: none; }