/* Controller-only finish. Shared brand assets and map markers are unchanged. */
#app { max-width: none; padding: 12px 18px 20px; }
#topbar { background: #000; gap: 10px; }
#workspace { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); min-height: 0; align-items: start; }
#jobsPanel, #resourcesPanel { min-width: 0; padding: 14px; border-radius: 8px; }
#workspace h2 { font-size: 1rem; letter-spacing: -.015em; }
.board-health { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; min-height: 40px; color: #ccc; }
.board-health strong { font-size: .75rem; color: #fff; margin-right: 12px; }
.board-health span { font-size: .75rem; }
.board-health.error, .board-health.stale, .board-health.disconnected { border-left: 3px solid #FFC107; padding-left: 10px; }
.board-health .btn { min-height: 32px; }
.board-empty { padding: 42px 20px; text-align: center; color: #ddd; }
.board-empty p { color: #aaa; font-size: .8125rem; }
.job-list { max-height: calc(100dvh - 230px); overflow-y: auto; scrollbar-gutter: stable; }
.job-card { border-radius: 4px; margin-bottom: 5px; padding: 9px 10px; }
.job-card.open { border-color: #FFC107; }
.job-select { width: 100%; background: transparent; color: inherit; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; }
.job-select .time { color: #fff; font-weight: 700; min-width: 78px; }
.job-select .time small { display: block; font-weight: 400; font-size: .6875rem; color: #ccc; }
.job-select .route { min-width: 0; font-size: .875rem; }
.job-chips { gap: 5px; margin-top: 6px; }
.job-chip { border: 0; border-radius: 3px; background: #202020; font-size: .6875rem; }
.job-chip.attention { color: #FFC107; background: #262109; }
.status-pill { font-size: .6875rem; }
.resource-metric { border-radius: 4px; min-height: 55px; padding: 7px 3px; }
.resource-metric b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.resource-metric span { font-size: .625rem; line-height: 1.3; }
#resourceMapMount { min-height: 280px; height: clamp(280px, 43vh, 540px); flex: none; }
#resourceMap { height: 100%; min-height: 0; border-radius: 5px; }
.resource-list { max-height: 230px; overflow-y: auto; margin-top: 8px; scrollbar-gutter: stable; }
.resource-row { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 2px 10px; text-align: left; font: inherit; color: #fff; background: #0b0b0b; border: 1px solid #292929; padding: 7px 9px; cursor: pointer; margin-bottom: 3px; border-radius: 3px; }
.resource-row strong { font-size: .875rem; font-weight: 750; color: #fff; letter-spacing: 0; text-shadow: none; }
.resource-row span { font-size: .75rem; }
.resource-row small { font-size: .6875rem; color: #bdbdbd; overflow-wrap: anywhere; }
.resource-row span, .resource-row small:last-child { text-align: right; }
.resource-row.selected { border-color: #FFC107; background: #1b1809; }
.job-conversation { margin-top: 12px; padding: 12px; border: 1px solid #5a4d16; border-radius: 5px; background: #10100b; }
.job-conversation .conversation-history { max-height: 180px; overflow-y: auto; margin: 8px 0; }
.job-conversation .controller-message-history { padding: 8px; border-bottom: 1px solid #333; }
.job-conversation textarea { width: 100%; }
.overlay .sheet { overscroll-behavior: contain; width: min(760px, 100%); max-width: 100%; padding: 0 22px 22px; }
.sheet-header { position: sticky; top: 0; background: #000; z-index: 4; padding: 18px 0 12px; }
.sheet-header h2 { font-size: 1.25rem; }
#newBookingBody .booking-section { border: 0; border-top: 1px solid #383838; padding: 14px 0; margin: 0; min-width: 0; }
.booking-section legend { padding-right: 12px; color: #FFC107; font-weight: 700; font-size: .8125rem; }
.booking-section label { margin-top: 10px; }
.booking-section input, .booking-section select, .booking-section textarea { min-width: 0; }
.booking-review { padding: 6px 0; }
.booking-review dl { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 8px 16px; }
.booking-review dt { color: #bbb; }
.booking-review dd { margin: 0; overflow-wrap: anywhere; }
.booking-review ol { padding-left: 20px; line-height: 1.8; }
.booking-form-error { color: #fff; background: #382615; border-left: 3px solid #FFC107; padding: 12px; margin: 12px 0; }
.booking-form-error:empty { display: none; }
.booking-footer { display: flex; gap: 10px; padding-top: 14px; border-top: 1px solid #383838; }
.booking-footer .btn-primary { flex: 1; justify-content: center; }
.payment-classification { color: #ccc; margin: 6px 0; font-size: .75rem; }
.job-detail, .map-popup { overflow-wrap: anywhere; }
.job-detail .actions { gap: 6px; }
.job-detail .btn { white-space: normal; }
.booking-summary { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #383838; }
.booking-summary > span { display: block; color: #ccc; }
.booking-summary p { margin: 6px 0; }
.resource-context { margin-top: 8px; border: 1px solid #FFC107; padding: 10px; border-radius: 4px; }
.attention-item { background: transparent; color: inherit; border: 0; text-align: left; font: inherit; cursor: pointer; width: 100%; }
.attention-review-row { padding: 16px 0; border-bottom: 1px solid #383838; }
.attention-review-row .btn { margin: 0 8px 6px 0; }
.conversation-history { margin-top: 18px; border-top: 1px solid #383838; padding-top: 12px; }
.conversation-history summary { cursor: pointer; font-weight: 700; }
.conversation-history article { margin-top: 10px; }
@media (max-width: 1100px) {
  #workspace { grid-template-columns: minmax(0,1fr); }
  .job-list { max-height: 65vh; }
  #resourcesPanel { margin-top: 0; }
}
@media (max-width: 600px) {
  #app { padding: 8px; }
  #topbar { position: static; padding: 10px; }
  .board-health span { display: block; }
  .job-select { flex-wrap: wrap; }
  .job-select .route { flex-basis: calc(100% - 90px); }
  .overlay .sheet { padding: 0 14px 18px; }
  .booking-review dl { grid-template-columns: 1fr; gap: 4px; }
  .booking-review dd { margin-bottom: 10px; }
  .field-row { flex-wrap: wrap; }
  .field-row > * { min-width: 0; max-width: 100%; }
}
