/* ==========================================================================
   style.css - Kandang Ayam 3D Visualizer (SketchUp Architectural Style)
   ========================================================================== */

:root {
  --bg-app: #f1f5f9;
  --bg-panel: #ffffff;
  --bg-canvas-top: #e2e8f0;
  --bg-canvas-bottom: #f8fafc;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --border-crisp: #1e293b;
  --border-soft: #cbd5e1;
  --accent-blue: #0284c7;
  --accent-blue-dark: #0369a1;
  --accent-amber: #f59e0b;
  --accent-amber-dark: #d97706;
  --accent-emerald: #059669;
  --radius-sm: 5px;
  --radius-md: 8px;
  --shadow-crisp: 2px 2px 0px #0f172a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink-900);
  background: var(--bg-app);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* TOP HEADER BAR */
.topbar {
  height: 60px;
  min-height: 60px;
  background: var(--ink-900);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 2px solid #000000;
  gap: 12px;
  z-index: 20;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 6px;
  padding: 3px;
}

.brand-title {
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0.2px;
  line-height: 1;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-sketchup {
  background: var(--accent-amber);
  color: var(--ink-900);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.73rem;
  color: #94a3b8;
}

/* HEADER KPI PILLS */
.header-kpis {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kpi-pill {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 4px 10px;
  display: flex;
  flex-direction: column;
}

.kpi-pill-highlight {
  background: #0c4a6e;
  border-color: #0284c7;
}

.kpi-pill-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.4px;
}

.kpi-pill-value {
  font-size: 0.85rem;
  color: #f8fafc;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-actions .btn {
  height: 36px;
  padding: 0 13px;
  text-decoration: none;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--ink-900);
  cursor: pointer;
  transition: transform 0.08s ease, background-color 0.12s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent-amber);
  color: var(--ink-900);
  box-shadow: 2px 2px 0px #000000;
}

.btn-primary:hover {
  background: #fbbf24;
}

.btn-secondary {
  background: #334155;
  color: #ffffff;
  border-color: #475569;
}

.btn-secondary:hover {
  background: #475569;
}

.btn-build {
  width: 100%;
  background: var(--accent-blue);
  color: #ffffff;
  padding: 9px 12px;
  margin-top: 6px;
  box-shadow: var(--shadow-crisp);
}

.btn-build:hover {
  background: var(--accent-blue-dark);
}

.btn-outline {
  flex: 1;
  background: #f8fafc;
  color: var(--ink-900);
  padding: 7px 8px;
  font-size: 0.76rem;
  box-shadow: 1.5px 1.5px 0px var(--ink-900);
}

.btn-outline:hover {
  background: #e0f2fe;
  border-color: var(--accent-blue);
}

/* MAIN WORKSPACE LAYOUT */
.workspace {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

/* SIDEBAR */
.sidebar {
  width: 335px;
  min-width: 335px;
  background: var(--bg-panel);
  border-right: 2px solid var(--border-crisp);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.panel-section {
  padding: 12px 14px;
  border-bottom: 1.5px solid var(--border-soft);
}

@keyframes sidebarFocusPulse {
  0% {
    background-color: #fef3c7;
    box-shadow: inset 4px 0 0 var(--accent-amber-dark);
  }
  100% {
    background-color: transparent;
    box-shadow: inset 4px 0 0 transparent;
  }
}

.sidebar-focus-highlight {
  animation: sidebarFocusPulse 1.05s ease-out;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink-900);
}

.section-unit {
  font-size: 0.7rem;
  font-weight: 700;
  background: #e2e8f0;
  color: var(--ink-700);
  padding: 2px 6px;
  border-radius: 4px;
}

.control-row {
  margin-bottom: 10px;
}

.control-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-700);
}

.num-input-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  border: 1.5px solid var(--border-crisp);
  border-radius: 4px;
  padding: 2px 6px;
}

.num-input-wrap input {
  width: 48px;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
  color: var(--ink-900);
  outline: none;
}

.num-input-wrap span {
  font-size: 0.75rem;
  color: var(--ink-500);
  font-weight: 600;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent-blue);
  cursor: pointer;
  height: 6px;
}

.sub-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-700);
  margin-bottom: 5px;
}

.text-input {
  width: 100%;
  padding: 6px 9px;
  font-size: 0.8rem;
  border: 1.5px solid var(--border-soft);
  border-radius: 4px;
  color: var(--ink-900);
  font-weight: 600;
}

.text-input:focus {
  outline: none;
  border-color: var(--accent-blue);
}

/* SEGMENTED CONTROL */
.segmented-control {
  display: flex;
  border: 1.5px solid var(--border-crisp);
  border-radius: 5px;
  overflow: hidden;
  background: #f1f5f9;
}

.seg-btn {
  flex: 1;
  padding: 6px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--ink-700);
  cursor: pointer;
}

.seg-btn.active {
  background: var(--ink-900);
  color: #ffffff;
}

/* MATERIAL RADIO CARDS */
.radio-cards {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1.5px solid var(--border-soft);
  border-radius: 6px;
  cursor: pointer;
  background: #f8fafc;
  transition: border-color 0.12s, background-color 0.12s;
}

.radio-card.active {
  border-color: var(--ink-900);
  background: #e0f2fe;
  box-shadow: 1.5px 1.5px 0px var(--ink-900);
}

.radio-card.disabled {
  opacity: 0.52;
  background: #f1f5f9;
  cursor: not-allowed;
}

.radio-card.disabled input[type="radio"] {
  cursor: not-allowed;
}

.radio-card input[type="radio"] {
  accent-color: var(--ink-900);
}

.swatch {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1.5px solid var(--ink-900);
  flex-shrink: 0;
}

.swatch-alderon {
  background: linear-gradient(135deg, #0284c7 50%, #bae6fd 50%);
}

.swatch-spandek {
  background: linear-gradient(135deg, #991b1b 50%, #475569 50%);
}

.radio-card-body {
  display: flex;
  flex-direction: column;
}

.radio-card-body strong {
  font-size: 0.8rem;
  color: var(--ink-900);
}

.radio-card-body small {
  font-size: 0.7rem;
  color: var(--ink-500);
}

.accent-val {
  color: var(--accent-blue);
  font-size: 0.82rem;
}

.help-hint {
  display: block;
  font-size: 0.7rem;
  color: var(--ink-500);
  margin-top: 2px;
}

/* INTERACTIVE COMPONENTS PANEL */
.door-sim-card {
  background: #f8fafc;
  border: 1.5px solid var(--border-crisp);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 9px;
}

.door-sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 7px;
}

.door-sim-title {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--ink-900);
}

.door-sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  align-items: end;
}

.door-outward-badge {
  padding: 5px 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  border: 1.5px solid #7dd3fc;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.door-sim-hint-warn {
  color: #b45309;
  font-weight: 600;
}

.door-sim-hint-ok {
  color: #047857;
  font-weight: 600;
}

.interactive-actions {
  display: flex;
  gap: 7px;
  margin-bottom: 9px;
}

.selected-object-box {
  background: #fffbeb;
  border: 1.5px solid var(--accent-amber-dark);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.selected-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #92400e;
  margin-bottom: 3px;
}

.selected-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-amber);
  border: 1px solid var(--ink-900);
}

.selected-desc {
  font-size: 0.72rem;
  color: #78350f;
  line-height: 1.35;
}

.selected-controls {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #fcd34d;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 600;
}

.mini-row select {
  padding: 3px 6px;
  font-size: 0.74rem;
  font-weight: 600;
  border: 1px solid var(--ink-900);
  border-radius: 4px;
  background: #ffffff;
}

.component-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.comp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 0.74rem;
}

.comp-item.active {
  border-color: var(--accent-amber-dark);
  background: #fef3c7;
}

.comp-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mini-btn {
  padding: 2px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid var(--border-crisp);
  border-radius: 3px;
  background: #ffffff;
  cursor: pointer;
}

.mini-btn:hover {
  background: #e2e8f0;
}

.mini-btn-danger {
  color: #b91c1c;
  border-color: #fca5a5;
}

.sleep-length-ticks {
  margin: 4px 0;
  gap: 3px;
  flex-wrap: wrap;
}

.sleep-length-ticks .seg-btn {
  flex: 1 1 auto;
  padding: 3px 4px;
  font-size: 0.65rem;
  white-space: nowrap;
}

/* LAYER CHECKBOXES */
.layer-toggles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--ink-700);
  cursor: pointer;
}

.check-row input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent-blue);
}

/* CENTER VIEWPORT AREA */
.viewport-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-canvas-top);
}

.camera-toolbar {
  min-height: 44px;
  background: #f8fafc;
  border-bottom: 1.5px solid var(--border-crisp);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 12px;
  gap: 6px 10px;
}

.toolbar-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 5px;
}

.toolbar-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--ink-700);
  margin-right: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--ink-900);
  background: #ffffff;
  border: 1.5px solid var(--border-crisp);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.1s;
}

.tool-btn:hover {
  background: #e2e8f0;
}

.tool-btn.active {
  background: var(--ink-900);
  color: #ffffff;
}

.tool-btn-door {
  background: #fffbeb;
  border-color: var(--accent-amber-dark);
  color: #92400e;
}

.tool-btn-door:hover {
  background: #fef3c7;
}

.tool-btn-door.is-open {
  background: var(--accent-amber);
  color: var(--ink-900);
}

.tool-btn.is-animating {
  background: var(--accent-blue);
  border-color: var(--accent-blue-dark);
  color: #ffffff;
}

.btn-door-active {
  background: var(--accent-blue) !important;
  color: #ffffff !important;
  border-color: var(--accent-blue-dark) !important;
}

.hover-badge {
  display: block;
  height: 30px;
  line-height: 28px;
  flex: 1 1 200px;
  min-width: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-700);
  background: #e2e8f0;
  border: 1px solid var(--border-soft);
  padding: 0 11px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hover-badge.interactive-active {
  background: #fef3c7;
  color: #92400e;
  border-color: var(--accent-amber);
}

/* CANVAS STAGE */
.canvas-stage {
  flex: 1;
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #dbeafe 0%, #f1f5f9 52%, #e2e8f0 100%);
}

#coopCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

#coopCanvas:active {
  cursor: grabbing;
}

/* FLOATING OVERLAYS ON CANVAS */
.canvas-legend {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid var(--border-crisp);
  border-radius: 6px;
  padding: 7px 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: var(--shadow-crisp);
  pointer-events: none;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  border: 1.2px solid var(--ink-900);
  display: inline-block;
}

.dot-hollow { background: #cbd5e1; }
.dot-grc { background: #94a3b8; }
.dot-mesh { background: #e2e8f0; border-style: dashed; }
.dot-wood { background: #d97706; }
.dot-skylight { background: #7dd3fc; }
.dot-human { background: #2563eb; }

.canvas-specs-card {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.93);
  color: #f8fafc;
  border: 1.5px solid #000000;
  border-radius: 6px;
  padding: 9px 13px;
  font-size: 0.74rem;
  box-shadow: var(--shadow-crisp);
  pointer-events: none;
}

.specs-card-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-amber);
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.specs-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
}

.specs-card-grid span {
  color: #94a3b8;
}

/* FOOTER BAR */
.viewport-footer {
  height: 34px;
  min-height: 34px;
  background: var(--ink-900);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 0.72rem;
}

.hint-items {
  display: flex;
  gap: 16px;
  overflow: hidden;
  white-space: nowrap;
}

.hint-items strong {
  color: var(--accent-amber);
}

.engine-status {
  color: #38bdf8;
  font-weight: 700;
}

/* MODAL / DRAWER CUTTING LIST & BOM */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.drawer-backdrop.hidden {
  display: none;
}

.drawer-panel {
  width: min(1080px, 96vw);
  max-height: 90vh;
  background: #ffffff;
  border: 2.5px solid var(--ink-900);
  border-radius: 10px;
  box-shadow: 6px 6px 0px var(--ink-900);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer-header {
  background: var(--ink-900);
  color: #ffffff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--accent-amber);
  letter-spacing: 0.8px;
}

.drawer-header h2 {
  font-size: 1.05rem;
  margin-top: 2px;
}

.drawer-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-close {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1.5px solid #475569;
  background: #1e293b;
  color: #ffffff;
  font-size: 1.3rem;
  cursor: pointer;
}

.drawer-tabs {
  display: flex;
  background: #f1f5f9;
  border-bottom: 2px solid var(--ink-900);
  padding: 0 16px;
  gap: 6px;
}

.tab-btn {
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 800;
  border: none;
  background: transparent;
  color: var(--ink-500);
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.tab-btn.active {
  color: var(--ink-900);
  border-bottom-color: var(--accent-blue);
  background: #ffffff;
}

.drawer-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.cutting-summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.sum-card {
  background: #f8fafc;
  border: 1.5px solid var(--border-soft);
  border-left: 4px solid var(--accent-blue);
  border-radius: 6px;
  padding: 10px 12px;
}

.sum-card span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-500);
}

.sum-card strong {
  display: block;
  font-size: 1.15rem;
  margin-top: 2px;
  color: var(--ink-900);
}

.cutting-bars-section h3 {
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--ink-900);
}

.bars-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.web-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.web-bar-label {
  width: 155px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-700);
}

.web-bar-track {
  flex: 1;
  height: 26px;
  background: #e2e8f0;
  border: 1.5px solid var(--ink-900);
  border-radius: 4px;
  display: flex;
  overflow: hidden;
}

.web-cut-seg {
  height: 100%;
  border-right: 1.5px solid var(--ink-900);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  padding: 0 4px;
}

.web-rem-reusable {
  background: #fef08a;
  color: #854d0e;
}

.web-rem-scrap {
  background: #fecaca;
  color: #991b1b;
}

/* DATA TABLES */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.data-table th {
  background: var(--ink-900);
  color: #ffffff;
  padding: 8px 10px;
  text-align: left;
}

.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-soft);
}

.data-table tr:nth-child(even) td {
  background: #f8fafc;
}

.text-right { text-align: right; }
.text-center { text-align: center; }

/* FLOATING ZOOMED-IN KOTAK BERTELUR CARD */
.nestbox-zoom-card {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 346px;
  background: rgba(255, 255, 255, 0.97);
  border: 2px solid var(--ink-900);
  border-radius: 8px;
  box-shadow: 4px 4px 0px var(--ink-900);
  z-index: 25;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.nestbox-zoom-card.hidden {
  display: none;
}

.nestbox-zoom-header {
  background: var(--ink-900);
  color: #ffffff;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nestbox-zoom-eyebrow {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--accent-amber);
  letter-spacing: 0.6px;
}

.nestbox-zoom-header h3 {
  font-size: 0.86rem;
  margin-top: 1px;
}

.nestbox-zoom-close {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid #475569;
  background: #1e293b;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.nestbox-zoom-canvas-wrap {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  border-bottom: 1.5px solid var(--border-crisp);
  padding: 6px;
  display: flex;
  justify-content: center;
}

#nestBoxZoomCanvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.nestbox-zoom-specs {
  padding: 8px 12px;
  font-size: 0.73rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
}

.nestbox-zoom-specs div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.nestbox-zoom-specs span {
  color: var(--ink-500);
  font-weight: 600;
}

.nestbox-zoom-specs strong {
  color: var(--ink-900);
  text-align: right;
}

.nestbox-zoom-actions {
  padding: 8px 12px;
  background: #ffffff;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* KOTAK BERTELUR CUSTOMIZATION MODAL EDITOR */
.nestbox-editor-panel {
  width: min(980px, 96vw);
}

.nestbox-editor-body {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 20px;
  align-items: start;
}

.nestbox-editor-preview-col {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nestbox-preview-stage {
  background: linear-gradient(180deg, #dbeafe 0%, #f8fafc 100%);
  border: 2px solid var(--ink-900);
  border-radius: 8px;
  padding: 8px;
  box-shadow: var(--shadow-crisp);
}

#nestEditorPreviewCanvas {
  width: 100%;
  height: auto;
  display: block;
}

.nestbox-editor-summary-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.nestbox-editor-summary-cards .sum-card strong {
  font-size: 0.84rem;
}

.nb-diff-box {
  background: #ffffff;
  border: 1.5px solid var(--border-soft);
  border-radius: 8px;
  padding: 10px 12px;
}

.nb-diff-title {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--ink-900);
  text-transform: uppercase;
  letter-spacing: 0.35px;
  margin-bottom: 6px;
}

.nb-diff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.71rem;
}

.nb-diff-table th,
.nb-diff-table td {
  padding: 5px 6px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

.nb-diff-table th {
  font-weight: 800;
  color: var(--ink-700);
  background: #f8fafc;
}

.nb-diff-table tr:last-child td {
  border-bottom: none;
}

.nb-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.nb-badge {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.nb-badge-rec {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.nb-badge-auto {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #7dd3fc;
}

.nb-badge-warn {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.nb-badge-muted {
  background: #e2e8f0;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.nestbox-editor-form-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.editor-group {
  background: #f8fafc;
  border: 1.5px solid var(--border-soft);
  border-radius: 8px;
  padding: 12px 14px;
}

.editor-group h3 {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.editor-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sub-label {
  display: block;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--ink-700);
  margin-bottom: 4px;
}

.editor-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fffbeb;
  border: 1.5px solid var(--accent-amber-dark);
  border-radius: 8px;
  padding: 10px 14px;
}

.swatch-nb-solid {
  background: linear-gradient(135deg, #b45309 0%, #78350f 100%);
}

.swatch-nb-grc {
  background: linear-gradient(135deg, #cbd5e1 0%, #64748b 100%);
}

@media (max-width: 980px) {
  .header-kpis {
    display: none;
  }
  .workspace {
    flex-direction: column-reverse;
    overflow-y: auto;
  }
  .sidebar {
    width: 100%;
    min-width: 100%;
    border-right: none;
    border-top: 2px solid var(--border-crisp);
  }
  .viewport-container {
    min-height: 440px;
  }
  .nestbox-editor-body {
    grid-template-columns: 1fr;
  }
  .nestbox-editor-preview-col {
    position: static;
  }
}

/* ==========================================================================
   LANDING PAGE (HALAMAN UTAMA WEBSITE) - SKETCHUP ARCHITECTURAL STYLE
   ========================================================================== */
html.landing-html,
body.landing-body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  display: block;
  scroll-behavior: smooth;
}

.landing-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
}

.brand-link {
  text-decoration: none;
  color: inherit;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.landing-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 5px;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.landing-nav a:hover {
  color: #ffffff;
  background: #1e293b;
}

.landing-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.landing-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.22), transparent 48%),
    linear-gradient(180deg, #e2e8f0 0%, #f1f5f9 65%, #ffffff 100%);
  border-bottom: 2px solid var(--border-crisp);
  padding: 42px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.12fr;
  gap: 32px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink-900);
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-amber);
}

.hero-title {
  font-size: clamp(1.95rem, 3.2vw, 2.85rem);
  line-height: 1.14;
  font-weight: 900;
  color: var(--ink-900);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-highlight {
  color: var(--accent-blue-dark);
  text-decoration: underline;
  text-decoration-color: var(--accent-amber);
  text-decoration-thickness: 4px;
  text-underline-offset: 5px;
}

.hero-desc {
  font-size: 0.98rem;
  line-height: 1.62;
  color: var(--ink-700);
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-hero {
  padding: 11px 18px;
  font-size: 0.9rem;
  text-decoration: none;
}

.btn-outline-crisp {
  background: #ffffff;
  color: var(--ink-900);
  border: 2px solid var(--ink-900);
  box-shadow: var(--shadow-crisp);
  text-decoration: none;
}

.btn-outline-crisp:hover {
  background: #f8fafc;
}

.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-metric-box {
  background: #ffffff;
  border: 1.5px solid var(--ink-900);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  box-shadow: 2px 2px 0px #0f172a;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hm-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--ink-500);
}

.hm-val {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--ink-900);
}

.hero-metric-box small {
  font-size: 0.72rem;
  color: var(--ink-700);
}

/* HERO 3D TURNTABLE CARD */
.hero-visual-card {
  background: #ffffff;
  border: 2px solid var(--ink-900);
  border-radius: 10px;
  box-shadow: 4px 4px 0px #0f172a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-visual-topbar {
  background: var(--ink-900);
  color: #ffffff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-visual-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
}

.hero-side-pill {
  background: #1e293b;
  border: 1px solid #475569;
  color: #bae6fd;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.hero-stage {
  position: relative;
  width: 100%;
  height: 430px;
  background: linear-gradient(180deg, #dbeafe 0%, #f1f5f9 55%, #e2e8f0 100%);
  cursor: grab;
}

.hero-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-overlay-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.84);
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 5px;
  pointer-events: none;
}

.hero-visual-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #f8fafc;
  border-top: 1.5px solid var(--border-soft);
}

.hero-visual-controls .tool-btn {
  padding: 0 10px;
  font-size: 0.74rem;
}

.hero-edit-link {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-blue-dark);
  text-decoration: none;
}

.hero-edit-link:hover {
  text-decoration: underline;
}

/* FEATURES SECTION */
.landing-features {
  background: #ffffff;
  padding: 58px 0;
  border-bottom: 1.5px solid var(--border-soft);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-tag {
  display: inline-block;
  background: #e0f2fe;
  color: var(--accent-blue-dark);
  border: 1px solid #7dd3fc;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.section-heading h2 {
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  font-weight: 900;
  color: var(--ink-900);
  margin-bottom: 8px;
}

.section-heading p {
  font-size: 0.94rem;
  line-height: 1.58;
  color: var(--ink-700);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  background: #f8fafc;
  border: 2px solid var(--ink-900);
  border-radius: var(--radius-md);
  box-shadow: 3px 3px 0px #0f172a;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.feature-num {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--ink-900);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feature-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.feature-badge-blue {
  background: #e0f2fe;
  color: #0369a1;
}

.feature-badge-amber {
  background: #fef3c7;
  color: #b45309;
}

.feature-badge-emerald {
  background: #d1fae5;
  color: #047857;
}

.feature-badge-rose {
  background: #ffe4e6;
  color: #be123c;
}

.feature-card h3 {
  font-size: 1.18rem;
  font-weight: 900;
  color: var(--ink-900);
}

.feature-summary {
  font-size: 0.88rem;
  line-height: 1.56;
  color: var(--ink-700);
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.83rem;
  color: var(--ink-700);
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.42;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-emerald);
  font-weight: 900;
}

.feature-mini-bars {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-bar-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 8px;
}

.mini-bar-lbl {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--ink-700);
}

.mini-bar-track {
  display: flex;
  height: 20px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  font-size: 0.62rem;
  font-weight: 800;
}

.mini-bar-track span {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.45);
}

.seg-b1 { background: #0369a1; }
.seg-b2 { background: #0d9488; }
.seg-b3 { background: #2563eb; }
.seg-b4 { background: #4f46e5; }
.seg-b5 { background: #047857; }
.mini-bar-track .seg-rem {
  background: #d1fae5;
  color: #047857;
  border-right: none;
}

.feature-card-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.feature-meta {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-500);
}

.feature-link {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-blue-dark);
  text-decoration: none;
}

.feature-link:hover {
  text-decoration: underline;
}

/* WORKFLOW SECTION */
.landing-workflow {
  background: var(--bg-app);
  padding: 52px 0;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.workflow-step {
  background: #ffffff;
  border: 1.5px solid var(--ink-900);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-crisp);
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-amber);
  border: 1.5px solid var(--ink-900);
  color: var(--ink-900);
  font-weight: 900;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.workflow-step h3 {
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.workflow-step p {
  font-size: 0.84rem;
  line-height: 1.52;
  color: var(--ink-700);
}

/* SPECS / CTA BANNER */
.landing-specs {
  background: #ffffff;
  padding: 44px 0;
  border-top: 1.5px solid var(--border-soft);
}

.specs-banner {
  background: var(--ink-900);
  color: #ffffff;
  border: 2px solid #000000;
  border-radius: 10px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.specs-banner-copy {
  max-width: 720px;
}

.specs-banner-copy h2 {
  font-size: 1.35rem;
  font-weight: 900;
  margin: 10px 0 8px;
}

.specs-banner-copy p {
  font-size: 0.88rem;
  line-height: 1.56;
  color: #cbd5e1;
}

.landing-footer {
  background: #0f172a;
  color: #94a3b8;
  border-top: 2px solid #000000;
  padding: 16px 0;
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-inner a {
  color: var(--accent-amber);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-stage {
    height: 360px;
  }
}

@media (max-width: 780px) {
  .landing-nav {
    display: none;
  }
  .features-grid,
  .workflow-grid,
  .hero-metrics-grid {
    grid-template-columns: 1fr;
  }
  .specs-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .landing-container {
    padding: 0 16px;
  }
}
