:root { color-scheme: light; }
.geobrick-app, .geobrick-app * { box-sizing: border-box; }
.geobrick-app { --ink:#192126; --muted:#64727b; --line:#d8dee2; --panel:#fff; --accent:#c82d2a; --accent-dark:#9f1f1d; --teal:#157a78; color:var(--ink); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; line-height:1.4; }
.gb-shell { width:100%; height:clamp(520px,78vh,960px); display:flex; flex-direction:column; background:#eef1f4; border:1px solid var(--line); overflow:hidden; }
#geobrick-route .gb-shell { height:100vh; height:100dvh; border:0; }
button,input { font:inherit; }
button { color:inherit; }
.gb-header { flex:0 0 auto; height:58px; padding:0 14px; display:flex; align-items:center; justify-content:space-between; gap:12px; background:#fff; border-bottom:1px solid var(--line); }
.gb-brand,.gb-commandbar { display:flex; align-items:center; gap:9px; }
.gb-brand strong { font-size:18px; letter-spacing:0; }
.gb-mark { width:32px; height:32px; display:grid; place-items:center; color:#fff; background:var(--accent); border-radius:5px; }
.gb-badge { padding:3px 7px; background:#e7f2f1; color:#0c6664; border-radius:4px; font-size:11px; font-weight:700; text-transform:uppercase; }
.gb-icon-button,.gb-button { height:34px; border:1px solid var(--line); background:#fff; display:inline-flex; align-items:center; justify-content:center; gap:7px; border-radius:5px; cursor:pointer; }
.gb-icon-button { width:34px; padding:0; }
.gb-icon-button svg,.gb-button svg { width:17px; height:17px; }
.gb-icon-button:disabled,.gb-button:disabled { opacity:.42; cursor:not-allowed; }
.gb-button { padding:0 12px; font-size:13px; font-weight:650; }
.gb-button-primary { color:#fff; background:var(--accent); border-color:var(--accent-dark); }
.gb-button.active { border-color:var(--teal); color:#0c6664; background:#e7f2f1; }
.gb-rule { width:1px; height:24px; background:var(--line); margin:0 2px; }
.gb-workspace { flex:1 1 auto; min-height:0; display:grid; grid-template-columns:66px minmax(0,1fr) 310px; grid-template-rows:minmax(0,1fr); }
.gb-tools { min-height:0; background:#20292e; padding:12px 8px; display:flex; flex-direction:column; gap:8px; }
.gb-tool { width:50px; min-height:50px; padding:6px 2px; border:0; border-radius:5px; background:transparent; color:#b9c3c8; cursor:pointer; display:grid; place-items:center; gap:2px; font-size:10px; }
.gb-tool svg { width:20px; height:20px; }
.gb-tool.active { background:#344248; color:#fff; box-shadow:inset 3px 0 var(--accent); }
.gb-stage { min-width:0; min-height:0; display:flex; flex-direction:column; overflow:hidden; background:#e8edf1; }
.gb-viewport { position:relative; flex:1 1 auto; min-height:200px; overflow:hidden; }
.gb-canvas { position:absolute; inset:0; }
.gb-viewport-loading { width:100%; height:100%; min-height:inherit; background:#f5f7f8; }
.gb-canvas canvas { display:block; width:100%; height:100%; }
.gb-canvas canvas:focus-visible { outline:3px solid var(--teal); outline-offset:-5px; }
.gb-webgl-status { position:absolute; z-index:3; inset:auto 14px 56px 14px; padding:10px 12px; background:#fff; border:1px solid var(--line); border-radius:5px; color:#536169; font-size:13px; }
.gb-viewport-label { position:absolute; z-index:2; top:14px; left:14px; display:flex; align-items:center; gap:7px; padding:6px 9px; background:rgba(255,255,255,.88); border:1px solid rgba(128,143,151,.35); border-radius:4px; color:#48565e; font-size:12px; font-weight:650; backdrop-filter:blur(5px); }
.gb-live-dot { width:7px; height:7px; border-radius:50%; background:var(--teal); }
.gb-view-buttons { position:absolute; z-index:2; top:14px; right:14px; display:flex; gap:5px; }
.gb-view-buttons button { min-width:34px; height:32px; padding:0 9px; border:1px solid rgba(128,143,151,.45); background:rgba(255,255,255,.9); border-radius:5px; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; color:#48565e; font-size:12px; font-weight:700; }
.gb-view-buttons svg { width:16px; height:16px; }
.gb-statusbar { position:absolute; z-index:2; right:14px; bottom:12px; display:flex; gap:1px; overflow:hidden; border:1px solid rgba(128,143,151,.35); border-radius:4px; }
.gb-statusbar span { padding:5px 8px; background:rgba(255,255,255,.9); color:#536169; font-size:11px; }
.gb-statusbar .gb-status-floating { background:#fdf0da; color:#7a4a05; font-weight:700; }
.gb-properties { min-height:0; background:var(--panel); border-left:1px solid var(--line); overflow:auto; overscroll-behavior:contain; }
.gb-panel-heading { min-height:69px; padding:13px 15px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.gb-panel-heading small { color:var(--muted); font-size:10px; font-weight:800; }
.gb-panel-heading h2 { margin:2px 0 0; font-size:16px; letter-spacing:0; }
.gb-property-section { padding:15px; border-bottom:1px solid var(--line); }
.gb-property-section h3 { margin:0 0 11px; font-size:12px; text-transform:uppercase; color:#4e5c64; letter-spacing:0; }
.gb-shape-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.gb-shape-grid button { min-width:0; min-height:64px; border:1px solid var(--line); border-radius:5px; background:#fff; display:grid; place-items:center; align-content:center; gap:4px; cursor:pointer; font-size:11px; }
.gb-shape-grid button svg { width:20px; height:20px; }
.gb-shape-grid button.selected { border-color:var(--accent); color:var(--accent-dark); background:#fff5f4; box-shadow:inset 0 0 0 1px var(--accent); }
.gb-property-section label { display:block; margin-top:13px; }
.gb-property-section label > span { display:flex; justify-content:space-between; font-size:12px; font-weight:650; }
.gb-property-section output { color:var(--muted); font-weight:500; }
.gb-property-section input[type="range"] { width:100%; accent-color:var(--accent); }
.gb-property-section select { width:100%; height:32px; margin-top:5px; border:1px solid var(--line); border-radius:5px; background:#fff; padding:0 8px; }
.gb-property-section input:disabled { opacity:.55; }
.gb-check { display:flex !important; align-items:center; gap:8px; margin-top:10px !important; font-size:12px; font-weight:650; }
.gb-check input { width:16px; height:16px; accent-color:var(--accent); }
.gb-target-size { display:grid; grid-template-columns:1fr 1fr auto; gap:8px; align-items:end; }
.gb-target-size label { margin-top:0; }
.gb-target-size input { width:100%; height:32px; border:1px solid var(--line); border-radius:5px; padding:0 8px; }
.gb-segmented { display:grid; grid-template-columns:1fr 1fr; padding:3px; background:#edf0f2; border-radius:5px; }
.gb-segmented-3 { grid-template-columns:repeat(3,1fr); margin-bottom:8px; }
.gb-segmented button { height:32px; border:0; background:transparent; border-radius:3px; font-size:12px; font-weight:700; cursor:pointer; }
.gb-segmented button.selected { background:#fff; color:var(--accent-dark); box-shadow:0 1px 3px rgba(32,41,46,.16); }
.gb-help { margin:9px 0 0; color:var(--muted); font-size:11px; }
.gb-help-warning { color:#8a5a00; }
.gb-summary { margin:15px; padding:12px; border-left:3px solid var(--teal); background:#edf7f6; display:grid; gap:2px; }
.gb-summary span,.gb-summary small { color:#55706f; font-size:11px; }
.gb-summary strong { font-size:17px; }
.gb-guide-backdrop { position:fixed; z-index:9999; inset:0; background:rgba(25,33,38,.42); display:flex; justify-content:flex-end; }
.gb-guide { width:min(460px,100%); height:100%; overflow:auto; background:#fff; color:var(--ink); box-shadow:-12px 0 24px rgba(25,33,38,.22); padding:0 18px 24px; }
.gb-guide-head { position:sticky; top:0; background:#fff; min-height:58px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.gb-guide h2 { margin:0; font-size:18px; }
.gb-guide h3 { margin:18px 0 8px; font-size:13px; text-transform:uppercase; color:#4e5c64; letter-spacing:0; }
.gb-guide p { margin:8px 0; font-size:14px; color:#425058; }
.gb-guide a { color:var(--accent-dark); font-weight:700; }
.gb-instructions { flex:0 0 46%; min-height:0; display:flex; flex-direction:column; overflow:auto; background:#fff; border-top:1px solid var(--line); padding:12px 16px; }
.gb-instructions[hidden] { display:none; }
.gb-instructions-head { flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.gb-instructions-head small { color:var(--muted); font-size:10px; font-weight:800; }
.gb-instructions-head h2 { margin:2px 0 0; font-size:16px; letter-spacing:0; }
.gb-layer-controls { display:flex; align-items:center; gap:8px; min-width:260px; }
.gb-layer-controls button { height:32px; border:1px solid var(--line); background:#fff; border-radius:5px; padding:0 10px; font-weight:700; cursor:pointer; }
.gb-layer-controls input { flex:1; accent-color:var(--accent); }
.gb-instructions-grid { flex:1 1 auto; min-height:0; display:grid; grid-template-columns:minmax(0,1fr) 240px; gap:16px; align-items:stretch; }
.gb-plan-wrap { min-height:0; display:flex; flex-direction:column; gap:6px; }
.gb-layer-plan { flex:1 1 auto; width:100%; height:100%; min-height:160px; background:#f8fafb; border:1px solid var(--line); }
.gb-layer-plan line { stroke:#d1d9dd; stroke-width:.035; vector-effect:non-scaling-stroke; }
.gb-layer-plan rect { stroke:#f8fafb; stroke-width:.035; }
.gb-layer-plan .ghost { fill:#9ba8af; opacity:.28; }
.gb-layer-plan .current { fill:#c9d7dd; }
.gb-layer-plan .new { fill:#c82d2a; }
.gb-layer-plan .floating { fill:#f0a01c; }
.gb-layer-plan .brick { fill:none; stroke:#20292e; stroke-width:.08; }
.gb-plan-legend { display:flex; flex-wrap:wrap; gap:4px 12px; font-size:11px; color:#536169; }
.gb-plan-legend span::before { content:""; display:inline-block; width:10px; height:10px; margin-right:5px; vertical-align:-1px; border:1px solid rgba(32,41,46,.25); }
.gb-plan-legend .current::before { background:#c9d7dd; }
.gb-plan-legend .new::before { background:#c82d2a; }
.gb-plan-legend .floating::before { background:#f0a01c; }
.gb-plan-legend .ghost::before { background:#9ba8af; opacity:.5; }
.gb-layer-plan text { fill:#536169; font-size:1px; font-weight:700; }
.gb-layer-meta { min-height:0; overflow:auto; border:1px solid var(--line); padding:12px; border-radius:5px; }
.gb-warning { margin-top:12px; padding:10px; border-left:3px solid #f0a01c; background:#fdf5e6; font-size:12px; color:#5b4210; }
.gb-warning p { margin:6px 0 0; font-size:12px; color:#5b4210; }
.gb-layer-meta h3 { margin:0 0 8px; font-size:12px; text-transform:uppercase; color:#4e5c64; }
.gb-layer-meta p { margin:5px 0; font-size:13px; color:#425058; }
.gb-part-table { display:grid; gap:1px; margin-top:10px; border:1px solid var(--line); }
.gb-part-table div { display:flex; justify-content:space-between; padding:6px 8px; background:#f8fafb; font-size:12px; }
.gb-fit-demo { width:150px; height:48px; display:grid; grid-template-columns:repeat(3,1fr); gap:6px; align-items:end; margin-top:10px; }
.gb-fit-demo span { display:block; height:24px; border:2px solid #7f8d95; background:#edf0f2; border-radius:50%; }
.gb-fit-demo span.active { height:36px; background:#dff0ef; border-color:var(--teal); }
.geobrick-notice,.geobrick-loading { padding:16px; font:15px/1.5 system-ui,sans-serif; }
@media (max-width:1000px) { .gb-workspace { grid-template-columns:58px minmax(0,1fr) 270px; }.gb-badge { display:none; }.gb-instructions-grid { grid-template-columns:minmax(0,1fr) 200px; } }
@media (max-width:767px) {
  .gb-shell,#geobrick-route .gb-shell { height:auto; overflow:visible; }
  .gb-workspace { display:flex; flex-direction:column; }
  .gb-tools { order:0; flex-direction:row; padding:7px; }
  .gb-tool { width:46px; min-height:42px; }
  .gb-stage { order:1; overflow:visible; }
  .gb-viewport { flex:0 0 auto; height:60vh; min-height:300px; }
  .gb-instructions { flex:0 0 auto; overflow:visible; }
  .gb-instructions-head,.gb-instructions-grid { display:block; }
  .gb-layer-plan { height:auto; max-height:70vh; }
  .gb-layer-controls { min-width:0; margin:10px 0; }
  .gb-layer-meta { margin-top:12px; }
  .gb-properties { order:2; overflow:visible; border-left:0; border-top:1px solid var(--line); }
  .gb-statusbar { left:10px; right:10px; max-width:calc(100% - 20px); flex-wrap:wrap; }
  .gb-statusbar span { white-space:normal; flex:1 1 auto; }
  .gb-view-buttons { top:50px; left:10px; right:auto; flex-wrap:wrap; }
}
@media (max-width:600px) { .gb-header { height:auto; min-height:58px; flex-wrap:wrap; padding:9px 10px; }.gb-button { font-size:0; width:34px; padding:0; }.gb-commandbar { margin-left:auto; }.gb-target-size { grid-template-columns:1fr 1fr; }.gb-target-size .gb-button { width:auto; grid-column:1/-1; font-size:13px; } }
@media print { .gb-header,.gb-tools,.gb-properties,.gb-viewport,.gb-guide-backdrop { display:none !important; }.gb-shell,#geobrick-route .gb-shell { border:0; height:auto; overflow:visible; }.gb-workspace,.gb-stage { display:block; overflow:visible; }.gb-instructions,.gb-instructions[hidden] { display:block !important; border:0; padding:0; overflow:visible; }.gb-instructions-head .gb-button,.gb-layer-controls { display:none; }.gb-instructions-grid { display:grid; }.gb-layer-plan { height:auto; max-height:none; page-break-inside:avoid; } }
.gb-footprint-row { display:grid; grid-template-columns:minmax(0,1fr) 88px; gap:8px; align-items:start; }
.gb-footprint-grid button { min-height:52px; }
.gb-footprint-preview { width:88px; height:88px; background:#f8fafb; border:1px solid var(--line); border-radius:5px; }
.gb-footprint-preview rect { fill:var(--accent); stroke:#f8fafb; stroke-width:.08; }
.gb-subhead { margin-top:12px; }
.gb-segmented-4 { grid-template-columns:repeat(4,1fr); }
.gb-design-name { max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:13px; font-weight:650; }
.gb-dialog-backdrop { justify-content:center; align-items:flex-start; padding:8vh 16px 16px; }
.gb-dialog { width:min(440px,100%); max-height:84vh; overflow:auto; background:#fff; color:var(--ink); border-radius:6px; box-shadow:0 18px 40px rgba(25,33,38,.28); padding:0 18px 18px; }
.gb-dialog h2 { margin:0; font-size:18px; }
.gb-field { display:block; margin-top:14px; }
.gb-field > span { display:block; font-size:12px; font-weight:650; margin-bottom:5px; }
.gb-field input,.gb-field textarea,.gb-field select { box-sizing:border-box; width:100%; border:1px solid var(--line); border-radius:5px; padding:7px 8px; font:inherit; font-size:14px; background:#fff; }
.gb-dialog-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:16px; }
.gb-form-error { margin:12px 0 0; padding:8px 10px; border-left:3px solid var(--accent); background:#fff5f4; color:var(--accent-dark); font-size:13px; }
.gb-library-tabs { margin-top:14px; }
.gb-design-list { list-style:none; margin:12px 0; padding:0; display:grid; gap:10px; }
.gb-design-card { border:1px solid var(--line); border-radius:5px; padding:10px 12px; }
.gb-design-card-head { display:flex; justify-content:space-between; gap:8px; align-items:baseline; }
.gb-design-card small { color:var(--muted); font-size:12px; }
.gb-design-card p { margin:6px 0 0; font-size:13px; color:#425058; }
.gb-design-actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.gb-visibility { flex:0 0 auto; padding:2px 6px; border-radius:4px; font-size:10px; font-weight:800; text-transform:uppercase; background:#edf0f2; color:#4e5c64; }
.gb-visibility-public { background:#e7f2f1; color:#0c6664; }
.gb-notice { position:fixed; z-index:10000; left:50%; bottom:18px; transform:translateX(-50%); padding:9px 14px; background:#192126; color:#fff; border-radius:5px; font-size:13px; box-shadow:0 6px 18px rgba(25,33,38,.3); }
@media (max-width:600px) { .gb-design-name { display:none; } .gb-design-actions .gb-button,.gb-dialog-actions .gb-button { font-size:13px; width:auto; padding:0 10px; } }
@media print { .gb-notice,.gb-dialog-backdrop { display:none !important; } }
