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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #1e2421;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #f0f4f1;
}

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

#game-canvas.dragging {
  cursor: grabbing;
}

/* Slim Top-Center Status Bar */
#clock-bar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(20, 26, 23, 0.9);
  border: 1px solid #3c4a43;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  white-space: nowrap;
  z-index: 15;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

#balance-readout {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-right: 12px;
  border-right: 1px solid #3c4a43;
}

#balance-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ab0a4;
  font-weight: 600;
}

#balance-value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 14px;
  color: #8fd1a8;
}

#balance-value.low {
  color: #ff8a80;
}

#clock-readout {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

#clock-day {
  color: #8fd1a8;
  font-weight: 600;
}

#clock-date {
  color: #d7e2dc;
}

#clock-time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
}

#speed-controls {
  display: flex;
  gap: 4px;
  padding-left: 12px;
  border-left: 1px solid #3c4a43;
}

.speed-btn {
  background: #28332d;
  color: #f0f4f1;
  border: 1px solid #3c4a43;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.speed-btn:hover {
  background: #324038;
}

.speed-btn.active {
  background: #3d5c49;
  border-color: #8fd1a8;
  color: #ffffff;
}

/* Bottom-Left Stacked Action Dock & Wide Multi-Column Drawer */
#dock-container {
  position: fixed;
  bottom: 12px;
  left: 12px;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
  z-index: 25;
  pointer-events: none;
  max-width: calc(100vw - 110px);
}

#dock-left-stack,
#dock-drawer {
  pointer-events: auto;
}

#dock-left-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex-shrink: 0;
}

#active-tool-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #3d5c49;
  border: 1px solid #8fd1a8;
  border-radius: 6px;
  padding: 6px 8px 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

#active-tool-pill[hidden] {
  display: none;
}

#btn-cancel-build {
  background: rgba(20, 26, 23, 0.55);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  width: 20px;
  height: 20px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#btn-cancel-build:hover {
  background: rgba(239, 83, 80, 0.75);
}

#action-dock {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  background: rgba(20, 26, 23, 0.92);
  border: 1px solid #485950;
  border-radius: 8px;
  padding: 6px;
  min-width: 56px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.dock-btn {
  background: #28332d;
  color: #f0f4f1;
  border: 1px solid #3c4a43;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

#employee-count-badge {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}

.dock-btn:hover {
  background: #324038;
  border-color: #8fd1a8;
}

.dock-btn.active {
  background: #3d5c49;
  border-color: #8fd1a8;
  color: #ffffff;
}

/* Wide Multi-Column Drawer: spans across the bottom on wide screens, grows taller on narrow screens */
#dock-drawer {
  display: none;
  flex-direction: column;
  width: min(860px, calc(100vw - 260px));
  max-height: min(320px, 52vh);
  background: rgba(20, 26, 23, 0.95);
  border: 1px solid #485950;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

#dock-drawer.open {
  display: flex;
}

#dock-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid #3c4a43;
  background: rgba(24, 32, 28, 0.9);
  flex-shrink: 0;
}

#dock-drawer-title {
  font-size: 14px;
  font-weight: 700;
  color: #f0f4f1;
}

.dock-drawer-subtitle {
  font-size: 11px;
  color: #9ab0a4;
  margin-top: 1px;
}

#dock-drawer-body {
  padding: 10px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Responsive multi-column layout inside the bottom drawer */
.drawer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  align-items: start;
}

.drawer-columns-compact {
  display: grid;
  grid-template-columns: minmax(210px, 260px) 1fr;
  gap: 10px;
  align-items: start;
}

@media (max-width: 900px) {
  .drawer-columns-compact {
    grid-template-columns: 1fr;
  }
}

.build-tabs {
  display: flex;
  gap: 6px;
}

.build-tab-btn {
  flex: 1;
  max-width: 150px;
  background: #28332d;
  color: #c2d1c8;
  border: 1px solid #3c4a43;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.build-tab-btn:hover {
  background: #324038;
}

.build-tab-btn.active {
  background: #3d5c49;
  border-color: #8fd1a8;
  color: #ffffff;
}

/* Auto-filling multi-column grid for build cards, rate cards, staff cards & fixtures */
.build-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 6px;
}

.drawer-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px;
}

.tool-btn {
  background: #28332d;
  color: #f0f4f1;
  border: 1px solid #3c4a43;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  transition: background 0.12s, border-color 0.12s;
}

.tool-cost {
  font-size: 11px;
  color: #8fd1a8;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.tool-btn.unaffordable .tool-cost {
  color: #ff8a80;
}

.tool-btn:hover {
  background: #324038;
  border-color: #8fd1a8;
}

.tool-btn.active {
  background: #3d5c49;
  border-color: #8fd1a8;
  font-weight: 600;
}

/* Shared Modal Backdrop & Dialog Styles (Live Config Editor) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 12, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: #18201c;
  border: 1px solid #485950;
  border-radius: 8px;
  width: min(560px, 100%);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

#config-dialog {
  width: min(740px, 100%);
}

.modal-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #3c4a43;
}

.modal-dialog-header h2 {
  font-size: 15px;
  font-weight: 700;
  color: #f0f4f1;
}

.modal-dialog-subtitle {
  font-size: 12px;
  color: #9ab0a4;
  margin-top: 2px;
}

.modal-dialog-body {
  padding: 14px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid #3c4a43;
  background: #141a17;
  border-radius: 0 0 8px 8px;
  font-size: 12px;
  color: #9ab0a4;
}

.park-text-input {
  background: #141a17;
  color: #ffffff;
  border: 1px solid #3c4a43;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 13px;
  width: 100%;
}

.park-text-input:focus,
.park-rate-input:focus {
  outline: none;
  border-color: #8fd1a8;
}

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

.park-rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  background: #18201c;
  border: 1px solid #2e3b34;
  border-radius: 4px;
}

.park-rate-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.park-rate-name {
  font-size: 12px;
  font-weight: 600;
  color: #f0f4f1;
}

.park-rate-meta {
  font-size: 11px;
  color: #9ab0a4;
}

.park-rate-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.park-rate-input {
  background: #141a17;
  color: #8fd1a8;
  border: 1px solid #3c4a43;
  border-radius: 4px;
  padding: 4px 5px;
  width: 52px;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Top-right debug coordinate & entity overlay */
#debug-overlay {
  position: fixed;
  top: 12px;
  right: 12px;
  background: rgba(20, 26, 23, 0.88);
  border: 1px solid #3c4a43;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.5;
  min-width: 225px;
  max-width: 280px;
  z-index: 20;
}

#debug-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#debug-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ab0a4;
  font-weight: 700;
}

#debug-actions {
  display: flex;
  gap: 4px;
}

.debug-btn {
  background: #28332d;
  color: #f0f4f1;
  border: 1px solid #3c4a43;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.debug-btn:hover {
  background: #324038;
  border-color: #8fd1a8;
}

#debug-body {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #3c4a43;
}

#debug-overlay.minimized #debug-body {
  display: none;
}

#debug-overlay.minimized {
  min-width: auto;
}

#debug-body div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.debug-label {
  color: #9ab0a4;
}

.debug-value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.debug-divider {
  border-top: 1px solid #3c4a43;
  margin: 6px 0;
}

#debug-site-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
}

.site-rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 2px 0;
}

.site-rate-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rate-step-btn {
  background: #28332d;
  color: #f0f4f1;
  border: 1px solid #3c4a43;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.rate-step-btn:hover:not(:disabled) {
  background: #324038;
  border-color: #8fd1a8;
}

.rate-step-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

#input-site-rate {
  background: #141a17;
  color: #8fd1a8;
  border: 1px solid #3c4a43;
  border-radius: 4px;
  padding: 2px 5px;
  width: 56px;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Bottom-Right Activity Log overlay (Minimized by Default) */
#activity-log-panel {
  position: fixed;
  bottom: 12px;
  right: 12px;
  width: min(360px, calc(100vw - 24px));
  background: rgba(20, 26, 23, 0.9);
  border: 1px solid #3c4a43;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  z-index: 26;
  display: flex;
  flex-direction: column;
}

#activity-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#activity-log-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

#activity-log-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ab0a4;
  font-weight: 700;
}

#activity-log-count {
  font-size: 11px;
  color: #8fd1a8;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

#activity-log-body {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #3c4a43;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#activity-log-panel.minimized #activity-log-body,
#activity-log-panel.minimized #btn-clear-log {
  display: none;
}

#activity-log-panel.minimized {
  width: auto;
}

#activity-log-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.log-filter-btn {
  background: #28332d;
  color: #c2d1c8;
  border: 1px solid #3c4a43;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.log-filter-btn:hover {
  background: #324038;
}

.log-filter-btn.active {
  background: #3d5c49;
  border-color: #8fd1a8;
  color: #ffffff;
}

#activity-log-list {
  max-height: 170px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 2px;
}

.log-entry {
  background: rgba(32, 42, 37, 0.85);
  border: 1px solid #2e3b34;
  border-radius: 4px;
  padding: 5px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.log-entry-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.log-entry-time {
  color: #9ab0a4;
  font-variant-numeric: tabular-nums;
}

.log-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
}

.log-badge.check-in {
  background: rgba(143, 209, 168, 0.18);
  color: #8fd1a8;
  border: 1px solid rgba(143, 209, 168, 0.45);
}

.log-badge.check-out {
  background: rgba(155, 224, 239, 0.16);
  color: #9be0ef;
  border: 1px solid rgba(155, 224, 239, 0.45);
}

.log-badge.missed-reservation {
  background: rgba(239, 83, 80, 0.18);
  color: #ff8a80;
  border: 1px solid rgba(239, 83, 80, 0.45);
}

.log-badge.maintenance {
  background: rgba(255, 183, 77, 0.18);
  color: #ffd54f;
  border: 1px solid rgba(255, 183, 77, 0.45);
}

.log-badge.payroll {
  background: rgba(179, 157, 219, 0.18);
  color: #d1c4e9;
  border: 1px solid rgba(179, 157, 219, 0.45);
}

.emp-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.emp-status-badge.working {
  background: rgba(77, 208, 225, 0.16);
  color: #80deea;
  border: 1px solid rgba(77, 208, 225, 0.45);
}

.emp-status-badge.idle {
  background: rgba(143, 209, 168, 0.14);
  color: #8fd1a8;
  border: 1px solid rgba(143, 209, 168, 0.35);
}

.emp-status-badge.off-shift {
  background: rgba(154, 176, 164, 0.12);
  color: #9ab0a4;
  border: 1px solid rgba(154, 176, 164, 0.28);
}

.emp-status-badge.blocked {
  background: rgba(239, 83, 80, 0.18);
  color: #ff8a80;
  border: 1px solid rgba(239, 83, 80, 0.45);
}

.emp-status-badge.dirty {
  background: rgba(255, 183, 77, 0.18);
  color: #ffd54f;
  border: 1px solid rgba(255, 183, 77, 0.45);
}

.site-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.site-action-btn {
  flex: 1;
  min-width: 90px;
  background: #28332d;
  color: #f0f4f1;
  border: 1px solid #3c4a43;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.site-action-btn:hover:not(:disabled) {
  background: #324038;
  border-color: #8fd1a8;
}

.site-action-btn.alert {
  border-color: #ffb74d;
  color: #ffe082;
}

.site-action-btn.broken {
  border-color: #ef5350;
  color: #ff8a80;
}

.site-action-btn.primary {
  background: #3d5c49;
  border-color: #8fd1a8;
  color: #ffffff;
}

.site-action-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.status-warn {
  color: #ffd54f;
}

.status-danger {
  color: #ff8a80;
}

.log-entry-desc {
  color: #eef3f0;
  line-height: 1.35;
}

.log-empty {
  color: #9ab0a4;
  font-style: italic;
  padding: 6px 2px;
}

.config-section {
  background: #202a25;
  border: 1px solid #334039;
  border-radius: 6px;
  padding: 9px 11px;
}

.config-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8fd1a8;
  font-weight: 700;
  margin-bottom: 7px;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px 14px;
}

.config-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.config-field label {
  color: #d7e2dc;
}

.config-field input[type="number"],
.config-field select {
  background: #141a17;
  color: #ffffff;
  border: 1px solid #3c4a43;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 12px;
  width: 74px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.config-field input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #8fd1a8;
  cursor: pointer;
}

.config-footer-actions {
  display: flex;
  gap: 8px;
}

.config-action-btn {
  background: #28332d;
  color: #f0f4f1;
  border: 1px solid #3c4a43;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.config-action-btn:hover {
  background: #324038;
}

.config-action-btn.primary {
  background: #3d5c49;
  border-color: #8fd1a8;
  color: #ffffff;
}

/* Building Management Drawer Stats Grid */
.building-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.building-stat-card {
  background: #18201c;
  border: 1px solid #2e3b34;
  border-radius: 4px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.building-stat-label {
  font-size: 10px;
  color: #9ab0a4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.building-stat-value {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #f0f4f1;
}

/* Minimalist Selected Site Info Drawer */
.site-drawer-minimal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-drawer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.site-drawer-rate {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.site-rate-currency,
.site-rate-unit {
  font-size: 12px;
  font-weight: 600;
  color: #9ab0a4;
}

.site-services-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  line-height: 1;
  background: #18201c;
  border: 1px solid #2e3b34;
  border-radius: 5px;
  padding: 5px 9px;
}

.site-drawer-muted {
  font-size: 12px;
  color: #9ab0a4;
}

.site-alerts-strip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.site-alert-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
}

.site-alert-pill.warn {
  background: rgba(255, 183, 77, 0.16);
  color: #ffd54f;
  border: 1px solid rgba(255, 183, 77, 0.45);
}

.site-alert-pill.danger {
  background: rgba(239, 83, 80, 0.18);
  color: #ff8a80;
  border: 1px solid rgba(239, 83, 80, 0.45);
}

.site-guest-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.site-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #18201c;
  border: 1px solid #2e3b34;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #f0f4f1;
}

.site-drawer-vacant {
  font-size: 12px;
  color: #9ab0a4;
}

.park-save-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.park-save-actions .site-action-btn {
  flex: 1 1 calc(33.33% - 5px);
  min-width: 68px;
}

/* Responsive Narrow Viewport Adjustments: narrower screen -> taller stacked drawer */
@media (max-width: 720px) {
  #clock-bar {
    top: 8px;
    left: 8px;
    right: 8px;
    transform: none;
    gap: 8px;
    padding: 6px 10px;
    font-size: 12px;
  }

  #balance-label {
    display: none;
  }

  #balance-readout {
    padding-right: 8px;
  }

  #speed-controls {
    padding-left: 8px;
    gap: 3px;
  }

  .speed-btn {
    padding: 4px 6px;
    font-size: 11px;
  }

  #debug-overlay {
    top: 52px;
    right: 8px;
  }

  #dock-container {
    bottom: 8px;
    left: 8px;
    gap: 8px;
    max-width: calc(100vw - 16px);
  }

  #action-dock {
    min-width: 48px;
  }

  .dock-btn {
    padding: 7px 8px;
    font-size: 15px;
  }

  #dock-drawer {
    width: calc(100vw - 74px);
    max-height: 58vh;
  }

  #activity-log-panel {
    top: 52px;
    bottom: auto;
    left: 8px;
    right: auto;
  }

  .build-items-grid,
  .drawer-card-grid {
    grid-template-columns: 1fr;
  }
}
