:root {
  --bg: #edf3f7;
  --sheet: #ffffff;
  --line: #d3dde7;
  --line-soft: #e8eef3;
  --ink: #203044;
  --muted: #617086;
  --air-blue: #4779ad;
  --air-blue-dark: #315b88;
  --air-gray-tab: #cbd8e5;
  --green: #0f8c62;
  --green-soft: #def5ea;
  --orange: #b76412;
  --orange-soft: #faecd8;
  --rose: #b42318;
  --rose-soft: #fde7e5;
  --shadow: 0 8px 26px rgba(44, 70, 96, 0.1);
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background-color: #eaf1f5;
  background-image: linear-gradient(rgba(244, 248, 250, 0.22), rgba(244, 248, 250, 0.22)), url("/assets/scp-japan-watercolor.webp");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

body.is-resizing-columns,
body.is-resizing-columns * {
  cursor: col-resize !important;
  user-select: none;
}

body.is-dragging-columns,
body.is-dragging-columns * {
  cursor: grabbing !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.airtable-body {
  background-color: transparent;
}

.air-shell {
  min-height: 100vh;
  background: rgba(245, 249, 251, 0.1);
}

.air-main {
  position: relative;
  overflow: hidden;
}

.air-main::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background-image: url("/assets/scp-japan-watercolor.webp");
  background-position: center bottom;
  background-size: cover;
  opacity: 0.3;
  pointer-events: none;
}

.air-main > * {
  position: relative;
  z-index: 1;
}

.air-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  background: linear-gradient(110deg, #315b88 0%, #4d7eae 58%, #658eaf 100%);
  color: white;
}

.air-topbar-left,
.air-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.air-logo {
  font-size: 1.2rem;
  color: #ffd7df;
  text-shadow: 0 1px 8px rgba(13, 39, 67, 0.3);
}

.air-copybase {
  opacity: 0.86;
  font-size: 0.9rem;
}

.air-action-link,
.air-ghost-button {
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.air-tabletabs {
  display: flex;
  gap: 4px;
  padding: 5px 12px 0;
  background: #e4e9f0;
  border-bottom: 1px solid #c5cdd8;
  overflow-x: auto;
  scrollbar-width: thin;
}

.air-tab {
  border: 0;
  flex: 0 0 auto;
  background: #cfd7e3;
  color: #344054;
  padding: 11px 15px 12px;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
}

.air-tab:hover {
  background: #d8e1ed;
  color: #172033;
}

.air-tab.active {
  background: var(--sheet);
  color: #172033;
  box-shadow: 0 -1px 0 white;
  border-top: 3px solid #dc8c9c;
  padding-top: 8px;
}

.air-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 28px 390px;
  gap: 0;
  min-height: calc(100vh - 95px);
}

.air-workspace.sidebar-collapsed {
  grid-template-columns: 72px minmax(0, 1fr) 28px 390px;
}

.air-workspace.detail-collapsed {
  grid-template-columns: 260px minmax(0, 1fr) 28px;
}

.air-workspace.sidebar-collapsed.detail-collapsed {
  grid-template-columns: 72px minmax(0, 1fr) 28px;
}

.air-sidebar,
.air-main,
.air-detailpane {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(12px);
}

.air-panel-toggle {
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #f8fafc;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  padding: 0;
}

.air-panel-toggle:hover {
  background: #eef2f7;
  color: var(--ink);
}

.air-sidebar {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.air-sidebar-header {
  padding: 18px 16px 10px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.air-sidebar-label {
  font-size: 0.92rem;
  font-weight: 800;
}

.air-sidebar-toggle {
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--muted);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-weight: 800;
}

.air-sidebar-toggle:hover {
  background: #eef2f7;
  color: var(--ink);
}

.air-viewrail {
  padding: 12px;
  display: grid;
  gap: 6px;
  flex: 1;
  align-content: start;
}

.air-sidebar-status {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 8px;
}

.air-workspace.sidebar-collapsed .air-sidebar-label,
.air-workspace.sidebar-collapsed .air-viewcount,
.air-workspace.sidebar-collapsed .air-sidebar-status {
  display: none;
}

.air-workspace.sidebar-collapsed .air-sidebar-header {
  justify-content: center;
  padding-inline: 10px;
}

.air-workspace.sidebar-collapsed .air-viewrail {
  padding: 12px 8px;
}

.air-workspace.sidebar-collapsed .air-viewitem {
  justify-content: center;
  padding-inline: 8px;
}

.air-workspace.sidebar-collapsed .air-viewmeta {
  justify-content: center;
}

.air-workspace.sidebar-collapsed .air-viewmeta span:last-child {
  display: none;
}

.air-viewitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
}

.air-viewitem.active {
  background: linear-gradient(100deg, #d8effc 0%, #e6f5fa 100%);
  box-shadow: inset 3px 0 0 #5b94c3;
}

.air-viewmeta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.air-viewicon {
  color: var(--air-blue);
  font-weight: 800;
  min-width: 14px;
}

.air-viewcount {
  background: #eef2f7;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 8px;
}

.air-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.air-grid-surface {
  background: rgba(239, 246, 249, 0.16);
}

.air-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.air-toolbar-left,
.air-toolbar-right,
.air-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.air-sync-card {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px 12px;
}

.air-sync-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.air-sync-card span {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.air-search {
  min-width: 220px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.air-toolbar-button {
  border: 1px solid var(--line);
  background: white;
  color: #253247;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(44, 70, 96, 0.06);
}

.air-toolbar-button:hover:not(:disabled) {
  border-color: #9fb3cf;
  background: #f5f8fc;
}

.air-toolbar-button:disabled {
  color: #526174;
  opacity: 1;
}

.air-banner-surface {
  padding: 12px 14px 0;
}

.air-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow);
}

.air-banner.success {
  border-color: #bde7d2;
  background: #f3fcf7;
}

.air-banner.info {
  border-color: #cfe0fb;
  background: #f5f9ff;
}

.air-banner-text strong,
.air-banner-text span {
  display: block;
}

.air-banner-text span {
  color: var(--muted);
  margin-top: 4px;
}

.air-banner-dismiss {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
}

.air-grid-surface {
  min-height: 0;
  min-width: 0;
  overflow: auto;
}

.air-grid-tablewrap {
  overflow: auto;
}

/* Crew assignments are a task board, not a spreadsheet: keep every action
   on-screen and let the card stack respond to the available width. */
.crew-assignment-list {
  display: grid;
  gap: 12px;
  padding: 12px;
  max-width: 100%;
  overflow: hidden;
}

.crew-assignment-group {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: white;
}

.crew-event-header {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(105deg, #f7faff 0%, #eef5ff 100%);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.crew-assignment-group:nth-child(even) .crew-event-header {
  background: linear-gradient(105deg, #f8fbf9 0%, #eef9f4 100%);
}

.crew-event-header:hover {
  filter: brightness(0.98);
}

.crew-event-header-copy,
.crew-event-header-copy > span:last-child {
  display: flex;
  min-width: 0;
  align-items: center;
}

.crew-event-header-copy {
  gap: 10px;
}

.crew-event-header-copy > span:last-child {
  flex-wrap: wrap;
  gap: 8px;
}

.crew-event-header strong {
  font-size: 1rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.crew-event-header small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.crew-event-chevron {
  display: inline-flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c5d5eb;
  border-radius: 50%;
  background: white;
  color: var(--air-blue-dark);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.crew-event-summary {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.crew-assignment-cards {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.crew-event-day + .crew-event-day {
  border-top: 1px solid var(--line-soft);
}

.crew-event-day-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px 2px;
  color: var(--ink);
}

.crew-event-day-header span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.crew-assignment-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
}

.crew-assignment-card:hover,
.crew-assignment-card.selected {
  border-color: #8bb8ff;
  box-shadow: 0 0 0 2px rgba(42, 111, 219, 0.12);
}

.crew-assignment-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(120px, 1fr) minmax(145px, 1.2fr) minmax(150px, 1fr);
  grid-template-areas: "event role contractor status" "time time time status";
  gap: 12px;
  align-items: end;
  padding: 12px;
}

.crew-assignment-event,
.crew-assignment-field,
.crew-assignment-time,
.crew-time-field {
  min-width: 0;
}

.crew-assignment-event { grid-area: event; }
.crew-assignment-role { grid-area: role; }
.crew-assignment-contractor { grid-area: contractor; }
.crew-assignment-time { grid-area: time; }
.crew-assignment-status { grid-area: status; }

.crew-assignment-status .cell-status-shell {
  display: flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 10px;
}

.crew-assignment-status .cell-status-select {
  width: 100%;
  min-height: 34px;
  padding: 0 16px 0 0;
  background: transparent;
  font-size: 0.72rem;
}

.crew-assignment-status .cell-status-note {
  margin: 5px 2px 0;
  font-size: 0.78rem;
}

.crew-assignment-event {
  display: grid;
  gap: 3px;
  align-self: center;
}

.crew-assignment-event strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crew-assignment-event span,
.crew-assignment-event small,
.crew-assignment-field > label,
.crew-time-field > label,
.crew-assignment-secondary > div > span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.crew-assignment-field > label,
.crew-time-field > label {
  display: block;
  margin-bottom: 5px;
}

.crew-assignment-field .cell-control,
.crew-assignment-field .cell-status-shell,
.crew-time-field .cell-control {
  width: 100%;
  max-width: 100%;
}

.crew-assignment-field .cell-control,
.crew-time-field .cell-control,
.crew-assignment-secondary .cell-control {
  min-height: 36px;
  border-color: var(--line-soft);
  background: #f8fafc;
}

.crew-assignment-field .cell-control:hover,
.crew-time-field .cell-control:hover,
.crew-assignment-secondary .cell-control:hover {
  border-color: #b7c9e6;
  background: white;
}

.crew-assignment-time {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 7px;
  align-items: end;
}

.crew-assignment-hours {
  align-self: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.crew-assignment-secondary {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr) minmax(110px, 0.7fr) minmax(100px, 0.7fr);
  gap: 12px;
  padding: 0 12px 12px;
}

.crew-assignment-secondary > div {
  min-width: 0;
}

.crew-assignment-secondary > div > span {
  display: block;
  margin-bottom: 4px;
}

.crew-assignment-secondary .cell-control {
  width: 100%;
  max-width: 100%;
}

.event-card-list {
  display: grid;
  gap: 10px;
  padding: 12px;
  max-width: 100%;
  overflow: hidden;
}

.event-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 4px solid #c7d2e3;
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
}

.event-card:nth-child(even) {
  background: #f8fbff;
  border-left-color: #8bb8ff;
}

.event-card:hover,
.event-card.selected {
  border-color: #8bb8ff;
  box-shadow: 0 0 0 2px rgba(42, 111, 219, 0.1);
}

.event-card-main {
  display: grid;
  grid-template-columns: minmax(115px, 0.85fr) minmax(190px, 1.5fr) minmax(140px, 1fr) minmax(245px, 1.35fr) minmax(170px, 1fr);
  grid-template-areas: "date name client schedule status";
  gap: 14px;
  align-items: center;
  padding: 13px 15px;
}

.event-card-date { grid-area: date; }
.event-card-name { grid-area: name; min-width: 0; }
.event-card-client { grid-area: client; min-width: 0; }
.event-card-schedule { grid-area: schedule; }
.event-card-status { grid-area: status; min-width: 0; }

.event-card-name small,
.event-card-name .cell-control {
  display: block;
  margin-top: 3px;
}

.event-card-main label,
.event-card-secondary label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.event-card-date .cell-control,
.event-card-client .cell-control,
.event-card-name .cell-control,
.event-card-secondary .cell-control {
  width: 100%;
  max-width: 100%;
  min-height: 34px;
  border-color: var(--line-soft);
  background: #f8fafc;
}

.event-card-schedule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.event-card-status .cell-status-shell {
  display: flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 10px;
}

.event-card-status .cell-status-select {
  width: 100%;
  min-height: 34px;
  padding: 0 16px 0 0;
  background: transparent;
  font-size: 0.72rem;
}

.event-card-status .cell-status-note {
  margin: 5px 2px 0;
  font-size: 0.76rem;
}

.event-card-secondary {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.5fr) minmax(150px, 1fr) minmax(150px, 1fr);
  gap: 14px;
  padding: 0 15px 13px;
}

.event-card-secondary > div {
  min-width: 0;
}

.air-group-list {
  padding: 12px;
  display: grid;
  gap: 12px;
}

.air-group {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: white;
}

.air-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line-soft);
}

.air-group-count {
  color: var(--muted);
  font-size: 0.84rem;
}

.air-grid-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.air-grid-table th,
.air-grid-table td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 7px;
  text-align: left;
  vertical-align: top;
  font-size: 0.88rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.air-grid-table th:last-child,
.air-grid-table td:last-child {
  border-right: 0;
}

.air-grid-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 1;
  font-weight: 800;
  padding: 0;
}

.air-grid-table th.air-frozen-cell,
.air-grid-table td.air-frozen-cell {
  position: sticky;
  left: var(--sticky-left);
}

.air-grid-table th.air-frozen-cell {
  z-index: 4;
  box-shadow: 1px 0 0 var(--line);
}

.air-grid-table td.air-frozen-cell {
  z-index: 2;
  background: white;
  box-shadow: 1px 0 0 var(--line);
}

.air-grid-table tbody tr.selected td.air-frozen-cell {
  background: #edf6ff;
}

.air-grid-table th.drop-before::before,
.air-grid-table th.drop-after::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--air-blue);
  z-index: 6;
}

.air-grid-table th.drop-before::before {
  left: 0;
}

.air-grid-table th.drop-after::after {
  right: 0;
}

.air-grid-table tbody tr {
  cursor: pointer;
}

.air-grid-table tbody tr.stage-follow-up td {
  background: #fff8e8;
}

.air-grid-table tbody tr.stage-proposal-sent td {
  background: #fff8e8;
}

.air-grid-table tbody tr.stage-booked td {
  background: #ecfbf3;
}

.air-grid-table tbody tr.stage-editing td,
.air-grid-table tbody tr.stage-sent-gallery td,
.air-grid-table tbody tr.stage-asked-for-review td,
.air-grid-table tbody tr.stage-sent-gallery-to-vendor td {
  background: #f3f5f9;
}

.air-grid-table tbody tr.stage-completed td,
.air-grid-table tbody tr.stage-archived td {
  background: #f6f7f9;
  color: #5f6b7a;
}

.air-grid-table tbody tr.stage-cancelled td {
  background: #fdf0ef;
  color: #8c2a21;
}

.air-grid-table tbody tr.past-event-complete td {
  background: #eef1f4;
  color: #576170;
}

.air-grid-table tbody tr.past-event-complete td .cell-control,
.air-grid-table tbody tr.past-event-complete td .cell-status-select {
  color: #576170;
}

.air-grid-table tbody tr.selected {
  background: #edf6ff;
}

.air-grid-table tbody tr.selected td {
  background: #dcecff;
}

.air-grid-table tbody tr.selected td.air-frozen-cell {
  background: #dcecff;
}

.air-grid-table tbody tr.payment-month-total-row td {
  background: #f4f7fb;
  border-top: 2px solid #d4deeb;
  font-weight: 700;
}

.air-grid-table tbody tr.payment-month-total-row td strong {
  margin-bottom: 2px;
}

.payment-month-total-amount {
  text-align: right;
}

.air-grid-table strong,
.air-calendar-card strong,
.helper-card strong {
  display: block;
  margin-bottom: 4px;
}

.air-summary-stack {
  display: grid;
  gap: 8px;
}

.air-summary-item strong {
  display: block;
  margin-bottom: 2px;
}

.air-summary-item small,
.air-cell-muted {
  display: block;
  color: var(--muted);
  line-height: 1.35;
}

.air-inline-accordion-body {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.air-inline-accordion-item strong {
  margin-bottom: 2px;
}

.air-row-accordion-toggle {
  border: 0;
  background: transparent;
  color: var(--air-blue-dark);
  cursor: pointer;
  font-weight: 900;
  font-size: 0.96rem;
  margin-right: 8px;
  padding: 0;
}

.air-row-accordion-spacer {
  display: inline-block;
  width: 14px;
  margin-right: 8px;
}

.past-event-anchor-cell {
  display: flex;
  align-items: flex-start;
}

.past-event-child-row td {
  background: #f8fafc;
}

.cell-control {
  width: 100%;
  min-width: 72px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  padding: 4px 6px;
  color: var(--ink);
}

.cell-control:hover {
  background: #f8fafc;
  border-color: var(--line-soft);
}

.cell-control:focus {
  outline: none;
  background: white;
  border-color: #8bb8ff;
  box-shadow: 0 0 0 3px rgba(42, 111, 219, 0.12);
}

.cell-input[type="date"],
.cell-input[type="time"],
.cell-input[type="number"] {
  min-width: 88px;
}

.cell-select {
  appearance: none;
}

.cell-status-shell {
  position: relative;
  max-width: 100%;
  padding-right: 18px;
}

.cell-status-note {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}

.cell-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.cell-status-shell::after {
  content: "▾";
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  color: currentColor;
  pointer-events: none;
}

.cell-status-select {
  border: 0;
  background: transparent;
  padding: 0;
  min-width: 0;
  padding-right: 10px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: inherit;
}

.cell-status-select:hover,
.cell-status-select:focus {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.cell-multiselect {
  min-height: 86px;
  white-space: normal;
}

.cell-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.cell-checkbox input {
  margin: 0;
}

.air-sort-button {
  width: calc(100% - 10px);
  border: 0;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 12px 10px;
  cursor: pointer;
  font-weight: 800;
}

.air-header-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.air-sort-indicator {
  color: var(--air-blue-dark);
  min-width: 12px;
  text-align: center;
}

.air-col-resize {
  position: absolute;
  top: 0;
  right: -3px;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  z-index: 3;
}

.air-header-cell {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 48px;
  padding-right: 34px;
}

.air-header-tools {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 7px 6px 0;
}

.air-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 1px;
  border-radius: 4px;
  color: var(--muted);
  cursor: grab;
  user-select: none;
}

.air-drag-handle:hover {
  background: #eef2f7;
}

.air-grid-table small,
.helper-card p,
.empty-state,
.detail-line span,
.air-detail-header p,
.flag-item,
.crew-row,
.air-calendar-card small {
  color: var(--muted);
}

.air-calendar-surface {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.air-calendar-day {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
}

.air-calendar-day header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 800;
}

.air-calendar-card {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 12px 14px;
  cursor: pointer;
  border-top: 1px solid var(--line-soft);
}

.air-calendar-card.selected {
  background: #edf6ff;
}

.air-detailpane {
  border-left: 1px solid var(--line);
  overflow: auto;
}

.air-workspace.detail-collapsed .air-detailpane {
  display: none;
}

.air-workspace.detail-collapsed .air-panel-toggle {
  border-right: 0;
}

.air-detail-surface {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.air-detail-header h2 {
  margin: 0;
  font-family: "DM Serif Display", serif;
  font-size: 2rem;
}

.air-detail-header p {
  margin: 6px 0 0;
}

.air-form-section h3,
.helper-card h3,
.air-grid-empty h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.helper-card,
.air-form-section,
.air-grid-empty {
  background: #fbfcfe;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 14px;
}

.portal-preview-banner {
  border-color: #f0d7a6;
  background: #fff7e8;
}

.portal-preview-banner h3 {
  color: var(--orange);
}

.checklist-list,
.history-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist-item,
.history-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checklist-item small,
.history-item small {
  color: var(--muted);
}

.checkmark {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.checkmark.done {
  background: var(--green-soft);
  color: var(--green);
}

.checkmark.todo {
  background: #f2f4f7;
  color: var(--muted);
}

.detail-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line-soft);
}

.detail-line:first-child {
  border-top: 0;
}

.flag-item,
.crew-row {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: #f6f8fb;
  margin-top: 8px;
}

.warning-flag {
  background: var(--orange-soft);
  color: var(--orange);
}

.success-flag {
  background: var(--green-soft);
  color: var(--green);
}

.crew-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.crew-row span:last-child {
  text-align: right;
}

.status-pill,
.coverage-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-pill.booked,
.status-pill.confirmed,
.status-pill.completed,
.status-pill.enabled,
.coverage-chip.good {
  background: var(--green-soft);
  color: var(--green);
}

.status-pill.inquiry,
.status-pill.follow-up,
.status-pill.proposal-sent,
.status-pill.need-to-ask,
.status-pill.offered,
.coverage-chip.warning {
  background: var(--orange-soft);
  color: var(--orange);
}

.status-pill.available---pending {
  background: #e4efff;
  color: var(--air-blue-dark);
}

.status-pill.pending,
.coverage-chip.neutral {
  background: #e4efff;
  color: var(--air-blue-dark);
}

.status-pill.warning {
  background: var(--orange-soft);
  color: var(--orange);
}

.status-pill.success {
  background: var(--green-soft);
  color: var(--green);
}

.status-pill.unavailable,
.status-pill.cancelled,
.status-pill.off,
.coverage-chip.bad {
  background: var(--rose-soft);
  color: var(--rose);
}

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

.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 10px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: white;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.checkbox-row input {
  width: auto;
}

.span-full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.button.primary {
  background: var(--air-blue);
  color: white;
}

.portal-save-button {
  border: 2px solid color-mix(in srgb, var(--air-blue) 78%, #082f49);
  box-shadow: 0 4px 10px rgba(15, 107, 255, 0.28);
  padding: 11px 18px;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 100ms ease;
}

.portal-save-button:hover:not(:disabled):not(.portal-save-button-saved) {
  filter: brightness(1.08);
  box-shadow: 0 6px 14px rgba(15, 107, 255, 0.36);
  transform: translateY(-1px);
}

.portal-save-button:active:not(:disabled) {
  box-shadow: 0 2px 5px rgba(15, 107, 255, 0.22);
  transform: translateY(1px);
}

.portal-save-button.portal-save-button-saved {
  background: #9aa7b8;
  border-color: #8795a8;
  box-shadow: none;
  color: #f8fafc;
}

.button.secondary,
.button.tertiary {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}

.air-mini-button {
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.air-mini-button:hover {
  background: #eef2f7;
}

.empty-state {
  padding: 16px;
  background: #fbfcfe;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
}

.portal-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 12px 26px;
}

.app-shell {
  width: 100%;
}

.hero-top,
.detail-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

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

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  color: var(--air-blue-dark);
  font-weight: 800;
}

.portal-hero h1,
.panel h2 {
  margin: 0;
}

.lede {
  margin: 10px 0 0;
  max-width: 68ch;
  color: var(--muted);
}

.portal-hero {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 16px;
}

.portal-content {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
}

.content-grid {
  align-items: start;
}

.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
}

.panel-header {
  margin-bottom: 14px;
}

.span-4,
.span-8 {
  grid-column: auto;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.metric-card,
.detail-card {
  background: #fbfcfe;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 14px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.portal-tab {
  appearance: none;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid #d8e6f3;
  box-shadow: 0 6px 18px rgba(22, 50, 84, 0.05);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 108px;
  position: relative;
  text-align: left;
  transition:
    border-color 120ms ease,
    background 120ms ease,
    box-shadow 120ms ease,
    transform 120ms ease;
}

.portal-tab:hover {
  border-color: #9fc8ea;
  background: linear-gradient(180deg, #ffffff 0%, #eef7ff 100%);
  box-shadow: 0 10px 24px rgba(33, 94, 155, 0.12);
  transform: translateY(-1px);
}

.portal-tab.active {
  background: linear-gradient(180deg, #edf7ff 0%, #dcebfa 100%);
  border-color: #6eaee3;
  box-shadow: 0 0 0 2px rgba(66, 138, 206, 0.14);
}

.portal-tab:focus-visible {
  outline: 3px solid rgba(66, 138, 206, 0.28);
  outline-offset: 2px;
}

.portal-tab span {
  color: #5d6c81;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.portal-tab strong {
  color: var(--ink);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.portal-tab::after {
  color: #8da4ba;
  content: "View";
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: auto;
}

.portal-tab.active::after {
  color: var(--air-blue-dark);
  content: "Viewing";
}

.portal-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.portal-card .helper-card {
  margin-top: 12px;
}

.portal-card-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.portal-assignment-date {
  color: var(--ink);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.05;
}

.portal-mini-button {
  padding: 7px 10px;
  font-size: 0.82rem;
}

.portal-card .detail-line {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
  justify-content: flex-start;
}

.portal-card .detail-line span,
.portal-card .detail-line strong {
  text-align: left;
}

.portal-card .detail-line strong {
  color: var(--ink);
}

.portal-card .detail-line-notes strong {
  font-weight: 500;
}

.portal-formatted-text {
  color: var(--ink);
  font-weight: 400;
  text-align: left;
  line-height: 1.5;
}

.portal-formatted-text .portal-strong-inline,
.portal-formatted-text .portal-strong-heading {
  display: inline;
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  font-size: inherit;
  line-height: inherit;
}

.portal-formatted-text .portal-strong-heading {
  font-size: inherit;
  letter-spacing: -0.01em;
}

.portal-card .detail-line-notes .portal-formatted-text .portal-strong-inline,
.portal-card .detail-line-notes .portal-formatted-text .portal-strong-heading {
  font-weight: 800;
}

.portal-formatted-text u {
  text-underline-offset: 2px;
}

.portal-assignment-fold {
  margin-top: 12px;
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
}

.portal-assignment-fold-summary {
  cursor: pointer;
  color: var(--air-blue-dark);
  font-weight: 800;
  font-size: 0.88rem;
  list-style-position: inside;
}

.portal-assignment-fold-summary::-webkit-details-marker {
  color: var(--air-blue-dark);
}

.portal-assignment-fold[open] .portal-assignment-fold-summary {
  margin-bottom: 12px;
}

.portal-assignment-fold-body {
  display: grid;
  gap: 12px;
}

.portal-pay-line strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.portal-pay-badge-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
}

.portal-paid-stamp {
  color: var(--air-blue-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.portal-card a {
  color: var(--air-blue-dark);
  text-decoration: none;
}

.portal-card a:hover,
.portal-card a:focus-visible {
  text-decoration: underline;
}

.portal-calendar-stack {
  display: grid;
  gap: 16px;
}

.portal-calendar-month {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: #fbfcfe;
  padding: 14px;
}

.portal-calendar-month-header {
  font-family: "DM Serif Display", serif;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.portal-calendar-weekdays,
.portal-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.portal-calendar-weekdays {
  margin-bottom: 8px;
}

.portal-calendar-weekdays span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-calendar-cell {
  min-height: 132px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: white;
  padding: 10px;
  overflow: hidden;
}

.portal-calendar-cell.empty {
  background: transparent;
  border-style: dashed;
}

.portal-calendar-date {
  font-weight: 800;
  margin-bottom: 8px;
}

.portal-calendar-items {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.portal-calendar-item {
  border: 1px solid #d8e6f3;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-radius: 8px;
  padding: 8px;
  text-align: left;
  min-width: 0;
  overflow: hidden;
}

.portal-calendar-item strong,
.portal-calendar-item span,
.portal-calendar-item small {
  display: block;
  min-width: 0;
}

.portal-calendar-item span,
.portal-calendar-item small {
  color: var(--muted);
}

.portal-calendar-item strong {
  font-size: 0.95rem;
  line-height: 1.18;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.portal-calendar-item span {
  font-size: 0.72rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.portal-calendar-item small {
  font-size: 0.72rem;
  line-height: 1.2;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

#portal-password-panel {
  margin-top: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.subtle-card {
  background: white;
}

.portal-assignment-grid {
  display: grid;
  gap: 12px;
}

.compact-metric strong {
  font-size: 1.5rem;
}

@media (max-width: 1200px) {
  .air-workspace {
    grid-template-columns: 220px minmax(0, 1fr) 28px;
  }

  .air-workspace.sidebar-collapsed {
    grid-template-columns: 72px minmax(0, 1fr) 28px;
  }

  .air-detailpane {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .air-calendar-surface {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .air-workspace.detail-collapsed {
    grid-template-columns: 220px minmax(0, 1fr) 28px;
  }

  .air-workspace.sidebar-collapsed.detail-collapsed {
    grid-template-columns: 72px minmax(0, 1fr) 28px;
  }

  .crew-assignment-main {
    grid-template-columns: minmax(0, 1.4fr) minmax(125px, 1fr) minmax(145px, 1.1fr);
    grid-template-areas: "event event role" "contractor time status";
  }

  .crew-assignment-time {
    grid-column: auto;
  }

  .event-card-main {
    grid-template-columns: minmax(115px, 0.8fr) minmax(180px, 1.4fr) minmax(140px, 1fr);
    grid-template-areas: "date name client" "schedule schedule status";
  }

  .event-card-secondary {
    grid-template-columns: minmax(140px, 1fr) minmax(180px, 1.4fr) minmax(140px, 1fr);
  }
}

@media (max-width: 820px) {
  .air-topbar,
  .air-toolbar,
  .portal-content {
    grid-template-columns: 1fr;
    display: grid;
  }

  .air-workspace {
    grid-template-columns: 1fr;
  }

  .air-panel-toggle {
    display: none;
  }

  .air-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .air-calendar-surface,
  .form-grid,
  .summary-strip {
    grid-template-columns: 1fr;
  }

  .crew-row {
    display: grid;
  }

  .crew-row span:last-child {
    text-align: left;
  }

  .crew-assignment-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "event event" "role contractor" "time time" "status status";
  }

  .crew-assignment-event,
  .crew-assignment-time {
    grid-column: auto;
  }

  .crew-assignment-secondary {
    grid-template-columns: 1fr;
  }

  .event-card-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "date client" "name name" "schedule status";
  }

  .event-card-secondary {
    grid-template-columns: 1fr;
  }

  .crew-event-header {
    align-items: flex-start;
  }

  .crew-event-summary {
    display: none;
  }
}

@media (max-width: 520px) {
  .crew-assignment-main {
    grid-template-columns: 1fr;
    grid-template-areas: "event" "role" "contractor" "time" "status";
  }

  .crew-assignment-event,
  .crew-assignment-time,
  .crew-assignment-status {
    grid-column: auto;
  }

  .event-card-main {
    grid-template-columns: 1fr;
    grid-template-areas: "date" "name" "client" "schedule" "status";
  }
}
.portal-attachment-list { display: grid; gap: 8px; }
.portal-attachment-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid var(--line, #d8d4cc); border-radius: 8px; }
.portal-attachment-row .button { padding: 4px 8px; }
.portal-attachments { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.portal-attachments a { display: inline-flex; flex-direction: column; gap: 4px; color: inherit; font-weight: 600; }
.portal-attachment-image { display: block; width: 120px; max-height: 100px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line, #d8d4cc); }

/* Cabin in the woods visual pass: warm parchment surfaces over a deep pine shell. */
:root {
  --bg: #10251f;
  --sheet: #fbf8f0;
  --line: #cbd5c9;
  --line-soft: #e1e7dd;
  --ink: #1d3029;
  --muted: #617268;
  --air-blue: #2f6f59;
  --air-blue-dark: #174937;
  --air-gray-tab: #b9c9bd;
  --green: #237451;
  --green-soft: #dceee2;
  --orange: #a7652b;
  --orange-soft: #f5e6d2;
  --rose: #a74d4e;
  --rose-soft: #f5dddd;
  --shadow: 0 12px 30px rgba(16, 44, 33, 0.14);
}

body {
  color: var(--ink);
  background-color: #18382d;
  background-image: linear-gradient(rgba(18, 62, 46, 0.56), rgba(18, 62, 46, 0.56)), url("/assets/scp-japan-watercolor.webp");
  background-position: center top;
  background-size: cover;
}

.air-shell {
  background: linear-gradient(180deg, rgba(8, 35, 26, 0.58), rgba(17, 55, 41, 0.34));
}

.air-main::before {
  background-image: linear-gradient(rgba(240, 246, 235, 0.46), rgba(240, 246, 235, 0.46)), url("/assets/scp-japan-watercolor.webp");
  opacity: 0.46;
  mix-blend-mode: multiply;
}

.air-topbar {
  background: linear-gradient(110deg, #0d382b 0%, #1e6249 58%, #3c8062 100%);
  box-shadow: 0 3px 14px rgba(5, 28, 20, 0.28);
}

.air-logo { color: #f2c98f; }
.air-action-link, .air-ghost-button { background: rgba(250, 239, 213, 0.16); }

.air-tabletabs {
  background: #183d30;
  border-bottom-color: #0e2b21;
}

.air-tab {
  background: #315b49;
  color: #f3f5ed;
  border: 1px solid rgba(240, 244, 232, 0.1);
  border-bottom: 0;
}

.air-tab:hover { background: #41725d; color: #fffdf5; }
.air-tab.active {
  background: #fbf8f0;
  color: #183b2d;
  border-top-color: #c9874a;
}

.air-sidebar,
.air-main,
.air-detailpane {
  background: rgba(248, 247, 239, 0.88);
  backdrop-filter: blur(16px);
}

.air-sidebar { border-right-color: #b9c8bb; }
.air-sidebar-header { border-bottom-color: #d6e0d4; }
.air-panel-toggle { background: #edf2e9; color: #496556; border-color: #cbd7ca; }
.air-panel-toggle:hover { background: #dfeadf; color: #193b2e; }
.air-viewcount { background: #dbe9dd; color: #35634d; }

.air-grid-surface { background: rgba(236, 243, 231, 0.3); }
.air-toolbar { border-bottom-color: #cdd9cc; }
.air-search, .air-toolbar-button { border-color: #bfd0c0; background: #fffdf7; color: #244236; }
.air-toolbar-button:hover:not(:disabled) { border-color: #6f9c7e; background: #eff6eb; }

.air-banner, .helper-card, .air-form-section, .air-grid-empty {
  background: rgba(255, 253, 247, 0.94);
  border-color: #d2ded0;
}

.air-banner.success { border-color: #a9d0b5; background: #edf8ee; }
.air-banner.info { border-color: #b8d5c3; background: #f0f7ee; }

.crew-assignment-group, .event-card, .air-grid-tablewrap, .air-calendar-surface {
  background: rgba(255, 253, 247, 0.92);
  border-color: #d1ddd0;
  box-shadow: 0 8px 20px rgba(21, 61, 43, 0.08);
}

.crew-event-header {
  background: linear-gradient(105deg, #e5f0e4 0%, #f2f7ec 100%);
  border-bottom-color: #d4e0d2;
}
.crew-assignment-group:nth-child(even) .crew-event-header {
  background: linear-gradient(105deg, #f5ecdf 0%, #fcf7ec 100%);
}
.crew-event-header:hover { filter: brightness(0.975); }
.crew-event-header strong { color: #173e2f; }
.crew-event-header small { color: #617668; }
.crew-event-chevron { border-color: #a8c5ad; background: #fffdf7; color: #236347; }
.crew-event-summary { background: rgba(255, 253, 247, 0.82); color: #527061; }
.crew-event-day + .crew-event-day { border-top-color: #dce5da; }

.air-detailpane { border-left-color: #bfd0c1; }
.air-detail-surface { background: rgba(247, 246, 237, 0.28); }
.air-detail-header h2 { color: #173c2e; }
.detail-line { border-top-color: #dce5da; }
.flag-item, .crew-row { background: #eef4ea; }
.status-pill.booked, .status-pill.confirmed, .status-pill.completed, .status-pill.enabled, .coverage-chip.good { background: #d8eddd; color: #216343; }
.status-pill.inquiry, .status-pill.follow-up, .status-pill.proposal-sent, .status-pill.need-to-ask, .status-pill.offered, .coverage-chip.warning { background: #f7e6d0; color: #9a5d29; }
.status-pill.pending, .coverage-chip.neutral { background: #e1eee2; color: #397058; }
.status-pill.unavailable, .status-pill.cancelled, .status-pill.off, .coverage-chip.bad { background: #f4dddd; color: #9b4a4b; }

@media (max-width: 720px) {
  .air-tabletabs { padding-left: 8px; padding-right: 8px; }
  .air-tab { padding-left: 12px; padding-right: 12px; }
}

/* Reference palette: charcoal studio navigation, warm ivory canvas, pine/gold/terracotta status language. */
:root {
  --bg: #f2eee4;
  --sheet: #fffdf7;
  --line: #d8d2c5;
  --line-soft: #e9e3d7;
  --ink: #1f2923;
  --muted: #69736b;
  --air-blue: #2e5b3d;
  --air-blue-dark: #193b28;
  --air-gray-tab: #3b4540;
  --green: #2d663b;
  --green-soft: #e2eadb;
  --orange: #b17412;
  --orange-soft: #f7e9bd;
  --rose: #ad4e2c;
  --rose-soft: #f5ddd3;
  --shadow: 0 12px 30px rgba(42, 48, 39, 0.12);
}

body { background-color: #26322c; background-image: linear-gradient(rgba(38, 50, 44, .68), rgba(38, 50, 44, .68)), url("/assets/scp-japan-watercolor.webp"); }
.air-shell { background: rgba(35, 45, 39, .34); }
.air-main::before { background-image: linear-gradient(rgba(255, 252, 242, .78), rgba(255, 252, 242, .78)), url("/assets/scp-japan-watercolor.webp"); opacity: .28; mix-blend-mode: normal; }
.air-topbar { background: linear-gradient(110deg, #1c2621 0%, #26342c 62%, #31443a 100%); box-shadow: 0 4px 18px rgba(13, 22, 17, .24); }
.air-logo { color: #dfaa32; }
.air-tabletabs { background: #252f2a; border-bottom-color: #17221c; }
.air-tab { background: #34413a; color: #e8ece3; border-color: rgba(255,255,255,.08); }
.air-tab:hover { background: #425247; }
.air-tab.active { background: #fffdf7; color: #1e3426; border-top-color: #d59a22; }
.air-sidebar, .air-main, .air-detailpane { background: rgba(255, 253, 247, .91); backdrop-filter: blur(18px); }
.air-sidebar { border-right-color: #cec9bc; }
.air-sidebar-header { border-bottom-color: #e0dbcf; }
.air-panel-toggle { background: #f1eee5; color: #526359; border-color: #d0cabc; }
.air-panel-toggle:hover { background: #e7e3d8; }
.air-viewitem.active { background: #dce8d7; box-shadow: inset 4px 0 0 #2d663b; }
.air-viewcount { background: #e8e5db; color: #56645a; }
.air-viewitem.active .air-viewcount { background: #fff8e4; color: #9c6b13; }
.air-grid-surface { background: rgba(246, 242, 232, .5); }
.air-toolbar { border-bottom-color: #d9d3c7; }
.air-search, .air-toolbar-button { border-color: #cfc8ba; background: #fffdf7; color: #22362a; box-shadow: 0 2px 7px rgba(53, 54, 43, .06); }
.air-toolbar-button:hover:not(:disabled) { border-color: #6f906f; background: #edf4e9; }
.air-banner, .helper-card, .air-form-section, .air-grid-empty { background: rgba(255, 253, 247, .96); border-color: #ddd7ca; }
.air-banner.success { background: #edf5e8; border-color: #b9d0b5; }
.air-banner.info { background: #f7f1df; border-color: #dfc98f; }
.crew-assignment-group, .event-card, .air-grid-tablewrap, .air-calendar-surface { background: rgba(255, 253, 247, .95); border-color: #d8d2c5; }
.crew-event-header, .responsive-record-header { background: linear-gradient(105deg, #e2ecdc, #f3f4e8); border-bottom-color: #d7e1d2; }
.crew-assignment-group:nth-child(even) .crew-event-header { background: linear-gradient(105deg, #f7ecd3, #fbf6e7); }
.crew-event-header strong, .responsive-record-header strong { color: #21432d; }
.crew-event-chevron, .responsive-record-chevron { border-color: #a9c2a9; background: #fffdf7; color: #2d663b; }
.air-detailpane { border-left-color: #cec9bc; }
.air-detail-header h2 { color: #233e2c; }
.status-pill.booked, .status-pill.confirmed, .status-pill.completed, .status-pill.enabled, .coverage-chip.good { background: #dcebd5; color: #286039; }
.status-pill.inquiry, .status-pill.follow-up, .status-pill.proposal-sent, .status-pill.need-to-ask, .status-pill.offered, .coverage-chip.warning { background: #f7e8bc; color: #986610; }
.status-pill.pending, .coverage-chip.neutral { background: #e9e7dc; color: #5d6b61; }
.status-pill.unavailable, .status-pill.cancelled, .status-pill.off, .coverage-chip.bad { background: #f3ddd2; color: #a24b2d; }
.responsive-sort-button:hover, .responsive-sort-button.active { border-color: #6f906f; background: #e5efdf; }

/* Keep the selected record inspector in view while the work surface moves. */
.air-detailpane { position: sticky; top: 0; align-self: start; height: calc(100vh - 95px); max-height: calc(100vh - 95px); }
.air-grid-surface { overflow-x: hidden; }
.responsive-record-list { max-width: 100%; }
.responsive-record-field .cell-control, .responsive-record-field .cell-status-select, .responsive-record-field input, .responsive-record-field select, .responsive-record-field textarea { max-width: 100%; }
@media (max-width: 1200px) { .air-detailpane { position: static; height: auto; max-height: none; } }

/* The inspector owns its content height; avoid a second nested scroll trap. */
.air-detailpane { height: max-content; max-height: none; overflow: visible; }
.air-detail-surface { overflow: visible; }

.overview-surface { max-width: 1440px; margin: 0 auto; padding: 30px 34px 56px; }
.overview-intro { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:24px; }
.overview-eyebrow { color:#ad6e12; font-size:.7rem; font-weight:900; letter-spacing:.16em; }
.overview-intro h1 { margin:6px 0 4px; color:#183c28; font-family:"DM Serif Display", Georgia, serif; font-size:2.25rem; font-weight:400; }
.overview-intro p { margin:0; color:#69736b; font-size:1rem; }
.overview-date { padding:9px 13px; border:1px solid #d5d0c2; border-radius:999px; background:#fffdf7; color:#53665a; font-weight:800; white-space:nowrap; }
.overview-stat-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:14px; margin-bottom:20px; }
.overview-stat { position:relative; min-height:145px; padding:22px; border:1px solid transparent; border-radius:15px; color:#fffdf7; text-align:left; cursor:pointer; box-shadow:0 10px 20px rgba(35,48,38,.12); }
.overview-stat::after { position:absolute; right:18px; bottom:13px; content:"✦"; font-size:2.2rem; opacity:.18; }
.overview-stat-pine { background:linear-gradient(135deg,#204d31,#376d43); }
.overview-stat-gold { background:linear-gradient(135deg,#b57713,#d09a2a); }
.overview-stat-terracotta { background:linear-gradient(135deg,#a84729,#c56a3d); }
.overview-honeybook-banner { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:26px; padding:22px 24px; border:1px solid #b9cbb7; border-left:6px solid #2d663b; border-radius:16px; background:linear-gradient(110deg,#dcebdc 0%,#f4ead0 100%); box-shadow:0 10px 22px rgba(35,48,38,.08); }
.overview-honeybook-banner h2 { margin:5px 0 4px; color:#21432d; font-family:"DM Serif Display", Georgia, serif; font-size:1.55rem; font-weight:400; }
.overview-honeybook-banner p { margin:0; color:#5c6b60; font-size:.9rem; }
.overview-honeybook-meta { min-width:150px; padding-left:22px; border-left:1px solid rgba(45,102,59,.2); color:#21432d; }
.overview-honeybook-meta strong,.overview-honeybook-meta span,.overview-honeybook-meta small { display:block; }
.overview-honeybook-meta strong { font-size:2rem; line-height:1; }
.overview-honeybook-meta span { margin-top:4px; font-weight:800; }
.overview-honeybook-meta small { margin-top:6px; color:#65756a; font-size:.72rem; }
.overview-stat-label,.overview-stat small { display:block; opacity:.86; font-size:.78rem; font-weight:800; letter-spacing:.04em; }
.overview-stat strong { display:block; margin:9px 0 3px; font-size:2.45rem; line-height:1; }
.overview-good-to-know { margin-bottom:26px; padding:20px; border:1px solid #d8d2c5; border-radius:16px; background:rgba(255,253,247,.78); box-shadow:0 8px 18px rgba(35,48,38,.06); }
.overview-section-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:14px; }
.overview-section-heading h2 { margin:0; color:#21432d; font-family:"DM Serif Display", Georgia, serif; font-size:1.45rem; font-weight:400; }
.overview-section-heading button { border:0; background:transparent; color:#2d663b; cursor:pointer; font-weight:900; }
.overview-live-dot { color:#2d663b; font-size:.78rem; font-weight:800; }
.overview-live-dot::before { display:inline-block; width:8px; height:8px; margin-right:6px; border-radius:50%; background:#4e9c61; content:""; }
.overview-alert-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.overview-alert { padding:16px; border:1px solid transparent; border-radius:12px; text-align:left; cursor:pointer; }
.overview-alert strong,.overview-alert span { display:block; }
.overview-alert strong { margin-bottom:5px; color:#23372a; }
.overview-alert span { color:#66756b; font-size:.84rem; line-height:1.4; }
.overview-alert-pine { background:#e3eee0; border-color:#c5d9c1; }
.overview-alert-gold { background:#fbf0cf; border-color:#edd59a; }
.overview-alert-terracotta { background:#f6e1d6; border-color:#e8c0ad; }
.overview-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.overview-panel { padding:20px; border:1px solid #d8d2c5; border-radius:16px; background:rgba(255,253,247,.9); box-shadow:0 8px 18px rgba(35,48,38,.06); }
.overview-bottom-grid { margin-top:16px; }
.overview-panel-note { color:#879486; font-size:.74rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.overview-stage-row { display:grid; grid-template-columns:12px minmax(0,1fr) auto; align-items:center; gap:10px; padding:13px 0; border-top:1px solid #e7e1d5; color:#304638; }
.overview-stage-row span:last-child { min-width:28px; padding:5px 8px; border-radius:999px; background:#e5efe2; color:#2d663b; text-align:center; font-weight:900; }
.overview-stage-dot { width:10px; height:10px; border-radius:50%; background:#2d663b; box-shadow:0 0 0 4px #dcebdc; }
.overview-attention-list { display:grid; gap:8px; }
.overview-attention-item { display:grid; grid-template-columns:40px minmax(0,1fr); align-items:center; gap:12px; width:100%; padding:9px 0; border:0; border-top:1px solid #e7e1d5; background:transparent; color:#304638; text-align:left; cursor:pointer; }
.overview-attention-number { display:grid; width:34px; height:34px; place-items:center; border-radius:50%; background:#f5e4c4; color:#ad6e12; font-weight:900; }
.overview-attention-item strong,.overview-attention-item small { display:block; }
.overview-attention-item strong { font-size:.88rem; }
.overview-attention-item small { margin-top:3px; color:#718077; font-size:.75rem; }
.overview-list-row { display:grid; grid-template-columns:88px minmax(0,1fr) 24px; align-items:center; gap:12px; width:100%; padding:13px 0; border:0; border-top:1px solid #e7e1d5; background:transparent; color:#23372a; text-align:left; cursor:pointer; }
.overview-list-row:hover strong { color:#b06716; }
.overview-list-row strong,.overview-list-row small { display:block; }
.overview-list-row strong { font-size:.9rem; }
.overview-list-row small { margin-top:3px; color:#718077; font-size:.76rem; }
.overview-list-date { color:#2d663b; font-size:.78rem; font-weight:900; }
.overview-list-icon { display:grid; width:28px; height:28px; place-items:center; border-radius:50%; background:#e4efdf; color:#2d663b; font-weight:900; }
.overview-list-icon.is-overdue { background:#f5ddd3; color:#ad4e2c; }
.overview-list-arrow { color:#829286; font-size:1.15rem; text-align:right; }
.overview-empty { color:#69736b; }
.crew-assignment-list { padding:18px; gap:16px; }
.crew-assignment-group { border-color:#c8d7c5; border-radius:18px; box-shadow:0 10px 22px rgba(35,48,38,.08); }
.crew-event-header { min-height:68px; padding:18px 22px; background:linear-gradient(105deg,#d8ead8 0%,#edf4e7 62%,#f8efd9 100%); border-bottom-color:#c7d9c4; }
.crew-assignment-group:nth-child(even) .crew-event-header { background:linear-gradient(105deg,#f5e4bd 0%,#fbf4e2 62%,#e6f0e0 100%); }
.crew-event-header:hover { filter:brightness(.98); box-shadow:inset 0 -2px 0 rgba(173,110,18,.35); }
.crew-event-header strong { color:#1f4731; font-size:1.08rem; }
.crew-event-header small { color:#607565; }
.crew-event-chevron { width:30px; height:30px; border:2px solid #9abb9e; background:#fffdf7; color:#2d663b; box-shadow:0 2px 6px rgba(35,48,38,.08); }
.crew-event-summary { padding:7px 12px; background:rgba(255,253,247,.9); color:#56715d; }
.crew-event-day-header { padding:14px 22px 4px; color:#27563a; }
.crew-event-day-header strong { font-family:"DM Serif Display", Georgia, serif; font-size:1.12rem; font-weight:400; }
.crew-event-day-header span { color:#8b6a27; }
.crew-assignment-card { border-color:#d7dfd0; border-left:4px solid #9fbea0; border-radius:15px; background:#fffdf7; box-shadow:0 3px 10px rgba(35,48,38,.04); }
.crew-assignment-cards .crew-assignment-card:nth-child(3n+2) { border-left-color:#d4a23a; }
.crew-assignment-cards .crew-assignment-card:nth-child(3n+3) { border-left-color:#c36a45; }
.crew-assignment-card:hover,.crew-assignment-card.selected { border-color:#75a77d; border-left-color:#2d663b; box-shadow:0 0 0 3px rgba(45,102,59,.12),0 8px 16px rgba(35,48,38,.08); }
.crew-assignment-event strong { color:#21432d; font-size:1rem; }
.crew-assignment-event span,.crew-assignment-event small,.crew-assignment-field > label,.crew-time-field > label,.crew-assignment-secondary > div > span { color:#6b796e; }
.crew-assignment-field .cell-control,.crew-time-field .cell-control,.crew-assignment-secondary .cell-control { border-color:#dbe3d8; background:#f5f7f1; color:#26382b; }
.crew-assignment-field .cell-control:hover,.crew-time-field .cell-control:hover,.crew-assignment-secondary .cell-control:hover { border-color:#a8c7a9; background:#fffdf7; }
.crew-assignment-hours { color:#ad6e12; }
.crew-assignment-status .cell-status-shell { border-color:#ecd49a; background:#fbf0cf; }
.crew-assignment-status .cell-status-select { color:#9b6810; font-weight:900; }
.crew-assignment-status .cell-status-note { color:#718077; }
.crew-assignment-secondary { border-top:1px solid #e9e3d7; padding-top:12px; }
@media (max-width: 1180px) { .overview-stat-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width: 900px) { .overview-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .overview-alert-grid,.overview-columns { grid-template-columns:1fr; } .overview-honeybook-banner { display:block; } .overview-honeybook-meta { margin-top:16px; padding:14px 0 0; border-top:1px solid rgba(45,102,59,.2); border-left:0; } }
@media (max-width: 560px) { .overview-surface { padding:22px 16px 40px; } .overview-intro { display:block; } .overview-date { display:inline-block; margin-top:14px; } .overview-stat-grid { grid-template-columns:1fr 1fr; gap:10px; } .overview-stat { min-height:125px; padding:16px; } .overview-stat strong { font-size:2rem; } }

/* Align secondary tabs with the Crew Assignments card language. */
.responsive-record-card { border-radius: 16px; border-color: #d7d2c5; box-shadow: 0 10px 24px rgba(37, 48, 39, .09); }
.responsive-record-header { min-height: 76px; padding: 15px 20px; background: linear-gradient(110deg, #edf1e7 0%, #faf7eb 100%); }
.responsive-record-header.is-clickable { cursor: pointer; }
.responsive-record-header-right { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.responsive-record-badge { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 999px; font-size: .76rem; font-weight: 800; text-transform: capitalize; }
.responsive-record-badge.good { background: #dfead8; color: #2b6139; }
.responsive-record-badge.attention { background: #f7e8bc; color: #986610; }
.responsive-record-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 22px; padding: 18px 20px 20px; }
.responsive-record-field-eventDate { grid-column: span 1; }
.responsive-record-field-deadline { grid-column: span 1; }
.responsive-record-field-contractor { grid-column: span 1; }
.responsive-record-field-event { grid-column: span 2; }
.responsive-record-list-contractorPayments .responsive-record-field-amount,
.responsive-record-list-pastContractorPayments .responsive-record-field-amount { font-size: 1.15rem; font-weight: 800; color: #21432d; }
.responsive-record-list-contractorPayments .responsive-record-header,
.responsive-record-list-pastContractorPayments .responsive-record-header { background: linear-gradient(110deg, #e5eee0 0%, #f6f2e5 100%); }
.responsive-record-list-editingQueue .responsive-record-card { border-left: 4px solid #b84f2d; }
.responsive-record-list-pastEvents .responsive-record-card { border-left: 4px solid #2d663b; }
@media (max-width: 760px) { .responsive-record-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .responsive-record-fields { grid-template-columns: 1fr; } .responsive-record-header { padding: 14px 16px; } .responsive-record-header-right { gap: 6px; } }

/* Reference palette: charcoal studio navigation, warm ivory canvas, pine/gold/terracotta status language. */
:root { --bg:#f2eee4; --sheet:#fffdf7; --line:#d8d2c5; --line-soft:#e9e3d7; --ink:#1f2923; --muted:#69736b; --air-blue:#2e5b3d; --air-blue-dark:#193b28; --air-gray-tab:#3b4540; --green:#2d663b; --green-soft:#e2eadb; --orange:#b17412; --orange-soft:#f7e9bd; --rose:#ad4e2c; --rose-soft:#f5ddd3; --shadow:0 12px 30px rgba(42,48,39,.12); }
body { background-color:#26322c; background-image:linear-gradient(rgba(38,50,44,.68),rgba(38,50,44,.68)),url("/assets/scp-japan-watercolor.webp"); }
.air-shell { background:rgba(35,45,39,.34); }
.air-main::before { background-image:linear-gradient(rgba(255,252,242,.78),rgba(255,252,242,.78)),url("/assets/scp-japan-watercolor.webp"); opacity:.28; mix-blend-mode:normal; }
.air-topbar { background:linear-gradient(110deg,#1c2621 0%,#26342c 62%,#31443a 100%); box-shadow:0 4px 18px rgba(13,22,17,.24); }
.air-logo { color:#dfaa32; }
.air-tabletabs { background:#252f2a; border-bottom-color:#17221c; }
.air-tab { background:#34413a; color:#e8ece3; border-color:rgba(255,255,255,.08); }
.air-tab:hover { background:#425247; }
.air-tab.active { background:#fffdf7; color:#1e3426; border-top-color:#d59a22; }
.air-sidebar,.air-main,.air-detailpane { background:rgba(255,253,247,.91); backdrop-filter:blur(18px); }
.air-sidebar { border-right-color:#cec9bc; }
.air-sidebar-header { border-bottom-color:#e0dbcf; }
.air-panel-toggle { background:#f1eee5; color:#526359; border-color:#d0cabc; }
.air-panel-toggle:hover { background:#e7e3d8; }
.air-viewitem.active { background:#dce8d7; box-shadow:inset 4px 0 0 #2d663b; }
.air-viewcount { background:#e8e5db; color:#56645a; }
.air-viewitem.active .air-viewcount { background:#fff8e4; color:#9c6b13; }
.air-grid-surface { background:rgba(246,242,232,.5); }
.air-toolbar { border-bottom-color:#d9d3c7; }
.air-search,.air-toolbar-button { border-color:#cfc8ba; background:#fffdf7; color:#22362a; }
.air-toolbar-button:hover:not(:disabled) { border-color:#6f906f; background:#edf4e9; }
.air-banner,.helper-card,.air-form-section,.air-grid-empty { background:rgba(255,253,247,.96); border-color:#ddd7ca; }
.air-banner.success { background:#edf5e8; border-color:#b9d0b5; }
.air-banner.info { background:#f7f1df; border-color:#dfc98f; }
.crew-assignment-group,.event-card,.air-grid-tablewrap,.air-calendar-surface { background:rgba(255,253,247,.95); border-color:#d8d2c5; }
.crew-event-header,.responsive-record-header { background:linear-gradient(105deg,#e2ecdc,#f3f4e8); border-bottom-color:#d7e1d2; }
.crew-assignment-group:nth-child(even) .crew-event-header { background:linear-gradient(105deg,#f7ecd3,#fbf6e7); }
.crew-event-header strong,.responsive-record-header strong { color:#21432d; }
.crew-event-chevron,.responsive-record-chevron { border-color:#a9c2a9; background:#fffdf7; color:#2d663b; }
.air-detailpane { border-left-color:#cec9bc; }
.air-detail-header h2 { color:#233e2c; }
.status-pill.booked,.status-pill.confirmed,.status-pill.completed,.status-pill.enabled,.coverage-chip.good { background:#dcebd5; color:#286039; }
.status-pill.inquiry,.status-pill.follow-up,.status-pill.proposal-sent,.status-pill.need-to-ask,.status-pill.offered,.coverage-chip.warning { background:#f7e8bc; color:#986610; }
.status-pill.pending,.coverage-chip.neutral { background:#e9e7dc; color:#5d6b61; }
.status-pill.unavailable,.status-pill.cancelled,.status-pill.off,.coverage-chip.bad { background:#f3ddd2; color:#a24b2d; }

/* Make the active record unmistakable without changing its data or controls. */
.crew-assignment-card.selected,
.event-card.selected,
.responsive-record-card.selected,
.air-calendar-card.selected {
  position: relative;
  z-index: 1;
  border-color: #d59a22 !important;
  background: linear-gradient(135deg, #fff8e4 0%, #f7f0df 100%) !important;
  box-shadow: 0 0 0 4px rgba(213, 154, 34, 0.28), 0 14px 30px rgba(31, 52, 38, 0.16) !important;
}

.crew-assignment-card.selected::before,
.event-card.selected::before,
.responsive-record-card.selected::before,
.air-calendar-card.selected::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: #d59a22;
  pointer-events: none;
}

.responsive-record-card.selected .responsive-record-header {
  background: linear-gradient(105deg, #f7e8bc, #fff8e4);
  border-bottom-color: #d59a22;
}

.responsive-record-card.selected .responsive-record-header::after {
  content: "Selected";
  margin-left: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #d59a22;
  color: #fffdf7;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.air-grid-table tbody tr.selected {
  position: relative;
  background: #fff8e4 !important;
  box-shadow: inset 7px 0 0 #d59a22, 0 0 0 2px rgba(213, 154, 34, 0.28) !important;
}

.air-grid-table tbody tr.selected td,
.air-grid-table tbody tr.selected td.air-frozen-cell {
  background: #fff8e4 !important;
}

.dashboard-auth[hidden] { display: none; }
.dashboard-auth {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 20% 10%, rgba(213,154,34,.22), transparent 34%), #1e3426;
}
.dashboard-auth-card {
  width: min(440px, 100%);
  padding: 36px;
  border: 1px solid rgba(255,253,247,.35);
  border-radius: 24px;
  background: #fffdf7;
  color: #22362a;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.dashboard-auth-mark { color: #d59a22; font-size: 2rem; font-weight: 800; }
.dashboard-auth-kicker { margin: 10px 0 4px; color: #2d663b; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.dashboard-auth-card h1 { margin: 0; color: #1e3426; font-family: "DM Serif Display", serif; font-size: 2.35rem; }
.dashboard-auth-card > p:not(.dashboard-auth-kicker) { margin: 8px 0 24px; color: #66756b; }
.dashboard-auth-card label { display: grid; gap: 7px; margin-top: 16px; color: #526359; font-size: .82rem; font-weight: 800; }
.dashboard-auth-card input { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid #d0cabc; border-radius: 12px; background: #fff; color: #22362a; font: inherit; }
.dashboard-auth-card input:focus { outline: 3px solid rgba(213,154,34,.26); border-color: #d59a22; }
.dashboard-auth-card button { width: 100%; margin-top: 22px; padding: 13px 18px; border: 0; border-radius: 999px; background: #2d663b; color: #fffdf7; cursor: pointer; font: inherit; font-weight: 800; }
.dashboard-auth-card button:hover { background: #214d2c; }
.dashboard-auth-card button:disabled { opacity: .65; cursor: wait; }
.dashboard-auth-error { margin: 16px 0 0; color: #a24b2d; font-weight: 700; }
.dashboard-auth-required .air-shell { visibility: hidden; }
