:root {
  --ink: #171532;
  --purple: #342f61;
  --purple-2: #4b457b;
  --grid-ink: #002060;
  --green: #00ad73;
  --green-2: #008a5d;
  --paper: #f7f8fb;
  --panel: #ffffff;
  --panel-2: #f9fafc;
  --line: #e3e8f1;
  --line-2: #cfd7e6;
  --muted: #657086;
  --danger: #c2413a;
  --amber: #b7791f;
  --ok-bg: #e9fbf3;
  --warn-bg: #fff6df;
  --bad-bg: #fff0ee;
  --shadow: 0 18px 42px rgba(20, 20, 45, 0.08);
  --shadow-soft: 0 1px 2px rgba(20, 20, 45, 0.05), 0 14px 34px rgba(20, 20, 45, 0.06);
  --focus: 0 0 0 3px rgba(0, 173, 115, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

.app-root {
  min-height: 100vh;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px 16px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
}

.brand-block {
  display: grid;
  gap: 10px;
  padding: 4px 4px 16px;
  flex: 0 0 auto;
}

.brand-block img {
  width: 190px;
  height: auto;
  display: block;
}

.product-title {
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  color: var(--ink);
}

.tour-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #bdebd8;
  border-radius: 999px;
  background: #f1fbf7;
  color: var(--green-2);
  font-weight: 800;
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  padding-bottom: 8px;
  scrollbar-gutter: stable;
}

.nav button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #3d425c;
  font-weight: 850;
  text-align: left;
}

.nav button:hover,
.nav button.active {
  background: #eeedf7;
  color: var(--ink);
}

.nav button.active {
  box-shadow: inset 4px 0 0 var(--green);
}

.nav::-webkit-scrollbar {
  width: 8px;
}

.nav::-webkit-scrollbar-thumb {
  background: #d7deeb;
  border-radius: 999px;
}

@media (min-width: 1081px) and (max-height: 840px) {
  .sidebar {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand-block {
    gap: 8px;
    padding-bottom: 14px;
  }

  .brand-block img {
    width: 158px;
  }

  .product-title {
    font-size: 22px;
  }

  .nav button {
    min-height: 38px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

}

.main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 248, 251, 0.9);
  backdrop-filter: blur(14px);
}

.topbar h1 {
  margin: 0;
  font-size: 18px;
}

.topbar small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 650;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-select {
  width: auto;
  min-width: 220px;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.top-select select {
  min-height: 42px;
  margin: 0;
}

.top-select.tour-select {
  min-width: 230px;
}

.top-select.event-select {
  min-width: 300px;
}

.workspace {
  min-width: 0;
  padding: 20px 24px 34px;
}

.hero-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 12px;
}

.hero-board h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.05;
  color: var(--ink);
}

.hero-board p {
  max-width: 780px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.button,
.file-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.button.primary,
.file-button.primary {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
}

.button.green {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.button.danger {
  border-color: #f1c6c2;
  background: #fff6f5;
  color: var(--danger);
}

.button.ghost {
  background: transparent;
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sync-status,
.user-pill,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.sync-status.ok,
.pill.ok {
  border-color: #ace6cf;
  background: var(--ok-bg);
  color: var(--green-2);
}

.sync-status.error,
.pill.bad {
  border-color: #efb8b1;
  background: var(--bad-bg);
  color: var(--danger);
}

.pill.warn {
  border-color: #f1d694;
  background: var(--warn-bg);
  color: var(--amber);
}

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

.stat {
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
}

.section {
  display: grid;
  gap: 16px;
}

.toolbar,
.panel-head,
.grid-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(44px, 1fr));
  gap: 3px;
  min-height: 40px;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #f5f7fb;
}

.segmented button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.segmented button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 20, 45, 0.08);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel-inner {
  padding: 18px;
}

.panel-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-head h3,
.panel h3 {
  margin: 0;
  font-size: 16px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 16px;
  align-items: start;
}

.event-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.tour-library {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
}

.tour-tile {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
  box-shadow: var(--shadow);
}

.tour-tile.active {
  border-color: #a7dbc8;
  box-shadow: inset 0 0 0 2px #dff7ed, var(--shadow);
}

.tour-tile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tour-tile-head strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.tour-tile-head span:not(.pill) {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 750;
}

.tour-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tour-metrics div {
  min-height: 64px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tour-metrics span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.tour-metrics strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  line-height: 1;
}

.tour-event-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tour-event-strip .event-pill {
  height: auto;
  min-height: 32px;
  max-width: 280px;
  padding: 7px 10px;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
}

.event-pill {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #3d425c;
  font-size: 12px;
  font-weight: 850;
}

.event-pill:hover {
  border-color: #a7dbc8;
  background: #f3fbf8;
}

.event-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.event-card.active {
  border-color: #a7dbc8;
  box-shadow: inset 0 0 0 2px #dff7ed;
}

.event-title {
  display: grid;
  gap: 3px;
}

.event-title strong {
  font-size: 17px;
}

.event-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.readiness div {
  padding: 9px;
  border-radius: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.readiness span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.readiness strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
  outline: none;
}

textarea {
  min-height: 180px;
  resize: vertical;
  font-family: "Segoe UI", Arial, sans-serif;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 173, 115, 0.12);
}

label {
  display: grid;
  gap: 7px;
  color: #3f435d;
  font-size: 12px;
  font-weight: 850;
}

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

.form-grid .wide {
  grid-column: 1 / -1;
}

.table-wrap {
  overflow: auto;
  scrollbar-gutter: stable;
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.data-table tr:hover td {
  background: #fafcff;
}

.check-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  background: #fff;
}

.check-cell.active {
  border-color: var(--green);
  background: var(--green);
}

.check-cell.active::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

.list {
  display: grid;
  gap: 8px;
}

.list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.list-row.active {
  border-color: #afe5d1;
  background: #f3fbf8;
}

.list-row strong {
  display: block;
  font-size: 14px;
}

.list-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #4b5168;
  font-size: 11px;
  font-weight: 850;
}

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

.category-option {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #303553;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
}

.category-option.active {
  border-color: var(--green);
  background: #effbf6;
}

.program-audit { margin-top: 12px; min-width: 0; max-width: 100%; }
.program-audit > summary { cursor: pointer; color: #37315f; font-weight: 600; padding: 8px 0; }
.program-audit p, .program-audit dd { overflow-wrap: anywhere; white-space: pre-wrap; }
.program-audit dd { margin: 4px 0 12px; }
.program-audit .category-grid { grid-template-columns: minmax(0, 1fr); margin: 12px 0; max-height: 340px; overflow-y: auto; }
.program-audit label { display: flex; align-items: flex-start; gap: 10px; text-align: left; white-space: normal; }
.program-audit label:has(select) { flex-direction: column; }
.program-audit input[type="checkbox"] { width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; accent-color: #00a878; margin-top: 2px; }
.program-audit .button { margin-top: 12px; }

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

.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.status-line.bad {
  border-color: #efb8b1;
  background: var(--bad-bg);
}

.status-line.warn {
  border-color: #efd28b;
  background: var(--warn-bg);
}

.status-line.ok {
  border-color: #afe5d1;
  background: var(--ok-bg);
}

.history-meta {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.history-meta-head,
.history-entry,
.submission-mini {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.history-meta-head strong,
.history-entry strong {
  font-size: 13px;
  color: var(--ink);
}

.history-list,
.submission-stack {
  display: grid;
  gap: 8px;
}

.history-entry,
.submission-mini {
  min-height: 46px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.history-entry span,
.submission-mini span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.history-entry.muted {
  color: var(--muted);
  font-weight: 750;
}

.submission-mini {
  grid-template-columns: minmax(0, 1fr) auto;
}

.submission-mini > input, .submission-mini > .program-audit { grid-column: 1 / -1; }
.history-meta, .submission-stack, .submission-mini { min-width: 0; }
.history-meta-head { display: flex; flex-wrap: wrap; justify-content: space-between; }
.history-meta-head .pill { white-space: normal; overflow-wrap: anywhere; }

.submission-mini input {
  min-height: 36px;
}

.grid-stage {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.srt-grid-card {
  min-width: 1540px;
  background: #fff;
  color: #10133c;
}

.srt-grid-card.pg-grid {
  min-width: 1180px;
}

.print-header {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 120px;
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}

.print-header img {
  width: 180px;
  height: auto;
}

.print-title {
  text-align: center;
}

.print-title small {
  display: block;
  color: var(--green-2);
  font-weight: 900;
  text-transform: uppercase;
}

.print-title h2 {
  margin: 8px 0 4px;
  color: var(--purple);
  font-size: 24px;
  text-transform: uppercase;
}

.print-title span {
  color: var(--muted);
  font-weight: 800;
}

.qr-slot {
  width: 96px;
  height: 96px;
  border: 2px solid #111;
  margin-left: auto;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  text-align: center;
}

.green-rule {
  height: 5px;
  background: var(--green);
  margin: 10px 0 22px;
}

.grid-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 10px;
}

.grid-table th,
.grid-table td {
  border: 1px solid #20233f;
}

.grid-table th {
  color: var(--grid-ink);
  font-weight: 950;
  text-transform: uppercase;
  background: #fff;
}

.grid-table .table-col {
  width: 36px;
}

.grid-table .name-col {
  width: 150px;
}

.major-head {
  height: 56px;
  padding: 4px;
  text-align: center;
  vertical-align: middle;
}

.sub-head {
  height: 120px;
  padding: 4px 0;
  vertical-align: bottom;
}

.sub-head > div {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: normal;
  margin: 0 auto;
  max-height: 112px;
  font-size: 8px;
  line-height: 1.05;
}

.pg-grid .major-head {
  height: 88px;
  font-size: 11px;
  line-height: 1.12;
}

.grid-table td {
  height: 24px;
  padding: 2px 4px;
  background: #fff;
}

.grid-table .filled {
  background: var(--grid-ink) !important;
  color: var(--grid-ink);
  box-shadow: inset 0 0 0 9999px var(--grid-ink);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.grid-table .cell-edit {
  cursor: pointer;
  transition: background 0.12s ease, box-shadow 0.12s ease;
}

.grid-table .cell-edit:hover {
  box-shadow: inset 0 0 0 2px var(--green);
  background: #effbf6;
}

.grid-table .cell-edit.filled:hover {
  background: var(--grid-ink);
}

.grid-table .name-cell {
  font-weight: 850;
  color: var(--grid-ink);
}

.grid-table .name-cell span {
  display: block;
  color: #697386;
  font-weight: 700;
  font-size: 9px;
  margin-top: 1px;
}

.print-footer {
  margin-top: 14px;
  color: var(--green-2);
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
  font-size: 16px;
}

.empty {
  padding: 28px;
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  text-align: center;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: 420px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(246, 248, 251, 0.94);
}

.login-screen.active {
  display: flex;
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.login-card img {
  width: 220px;
  height: auto;
}

.login-card h1 {
  margin: 4px 0 0;
  font-size: 28px;
}

.login-error {
  min-height: 20px;
  color: var(--danger);
  font-weight: 800;
}

/* Modern product refresh */
.shell {
  grid-template-columns: 264px minmax(0, 1fr);
  background:
    linear-gradient(180deg, #fbfcfe 0%, #f5f7fb 100%);
}

.sidebar {
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 1px 0 0 rgba(227, 232, 241, 0.9);
}

.brand-block {
  gap: 12px;
  padding: 4px 2px 24px;
}

.brand-block img {
  width: 184px;
}

.product-title {
  font-size: 25px;
  letter-spacing: 0;
}

.tour-chip {
  min-height: 34px;
  padding: 0 12px;
  border-color: #b8ead6;
  background: #f0fbf7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.nav {
  gap: 4px;
}

.nav button {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 8px;
  color: #414761;
  font-size: 14px;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.nav button:hover {
  background: #f4f5f9;
}

.nav button.active {
  background: #efedf8;
  color: var(--ink);
  box-shadow: inset 4px 0 0 var(--green);
}

@media (min-width: 1081px) and (max-height: 840px) {
  .sidebar {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand-block {
    gap: 8px;
    padding-bottom: 14px;
  }

  .brand-block img {
    width: 158px;
  }

  .product-title {
    font-size: 22px;
  }

  .tour-chip {
    min-height: 30px;
  }

  .nav button {
    min-height: 38px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

}

.topbar {
  padding: 16px 32px;
  background: rgba(250, 251, 253, 0.88);
  box-shadow: 0 1px 0 rgba(227, 232, 241, 0.95);
}

.topbar h1 {
  font-size: 20px;
  line-height: 1.1;
}

.topbar small {
  margin-top: 5px;
}

.top-actions > select {
  width: min(420px, 32vw);
  min-width: 260px;
}

.workspace {
  padding: 28px 32px 42px;
}

.section {
  gap: 18px;
}

.hero-board {
  min-height: 56px;
  align-items: center;
  margin-bottom: 2px;
}

.hero-board h2 {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 0.98;
  letter-spacing: 0;
}

.button,
.file-button {
  min-height: 42px;
  border-radius: 8px;
  border-color: #d7deeb;
  box-shadow: 0 1px 1px rgba(20, 20, 45, 0.03);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.button:hover,
.file-button:hover {
  border-color: #bdc7da;
  box-shadow: 0 8px 18px rgba(20, 20, 45, 0.08);
  transform: translateY(-1px);
}

.button.primary,
.file-button.primary {
  border-color: var(--purple);
  background: var(--purple);
  box-shadow: 0 12px 24px rgba(52, 47, 97, 0.18);
}

.button.primary:hover,
.file-button.primary:hover {
  background: var(--purple-2);
}

.button.ghost {
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
}

.button.ghost:hover {
  color: var(--green-2);
  transform: none;
}

.sync-status,
.user-pill,
.pill,
.chip {
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0;
}

.stat-grid {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
}

.stat,
.panel,
.event-card,
.list-row,
.readiness div,
.grid-stage,
.login-card {
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.stat {
  min-height: 92px;
  padding: 16px;
  border-color: #e5eaf3;
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--green);
}

.stat strong {
  margin-top: 10px;
  font-size: 32px;
}

.panel {
  border-color: #e5eaf3;
  overflow: hidden;
}

.panel-head {
  min-height: 58px;
  padding: 14px 18px;
  background: #fbfcfe;
}

.panel-head h3,
.panel h3 {
  font-size: 15px;
  letter-spacing: 0;
}

.panel-inner {
  padding: 18px;
}

.split {
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: 18px;
}

.event-board {
  grid-template-columns: repeat(auto-fit, minmax(286px, 1fr));
  gap: 14px;
}

.event-card {
  padding: 18px;
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e4;
  box-shadow: 0 18px 40px rgba(20, 20, 45, 0.1);
}

.event-card.active {
  border-color: #8eddbf;
  box-shadow: 0 0 0 1px #b8ead6, 0 18px 40px rgba(0, 173, 115, 0.09);
}

.event-title strong {
  font-size: 20px;
  line-height: 1.08;
}

.readiness {
  gap: 10px;
}

.readiness div {
  padding: 11px 10px;
  background: #fff;
}

input,
select,
textarea {
  min-height: 42px;
  border-color: #d7deeb;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(20, 20, 45, 0.03);
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: var(--focus);
}

label {
  gap: 8px;
  color: #40465f;
  font-size: 11px;
  text-transform: uppercase;
}

.data-table {
  font-size: 13px;
}

.data-table th {
  height: 44px;
  background: #f6f8fb;
  color: #687286;
  letter-spacing: 0;
}

.data-table td {
  height: 58px;
  padding: 10px 12px;
}

.data-table tbody tr:hover td {
  background: #f8fbff;
}

.check-cell {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.list {
  gap: 7px;
}

.list-row {
  min-height: 58px;
  border-color: #e5eaf3;
}

.list-row:hover {
  border-color: #cbd5e4;
}

.list-row.active {
  border-color: #9fe2c9;
  background: #f0fbf7;
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 9px;
}

.category-option {
  min-height: 48px;
  border-radius: 8px;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.category-option:hover {
  border-color: #b8c3d6;
  background: #fbfcfe;
}

.category-option.active {
  border-color: #7fd8b6;
  background: #edf9f4;
  color: #123a32;
}

.status-line {
  min-height: 54px;
  border-radius: 8px;
}

.grid-stage {
  padding: 18px;
  background: #eef2f7;
  border-color: #dce3ee;
}

.srt-grid-card {
  width: 900px;
  min-width: 900px;
  padding: 26px 30px 24px;
  border: 1px solid #e1e6ef;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(20, 20, 45, 0.1);
}

.srt-grid-card.pg-grid {
  width: 900px;
  min-width: 900px;
}

.print-header {
  grid-template-columns: 124px minmax(0, 1fr) 124px;
  align-items: start;
  margin-bottom: 12px;
}

.print-title img {
  width: 160px;
  height: auto;
  margin: 0 auto 8px;
  display: block;
}

.print-title small {
  letter-spacing: 0;
}

.print-title h2 {
  font-size: 19px;
  line-height: 1.06;
  margin-top: 6px;
}

.qr-slot {
  width: 104px;
  height: 104px;
  border-width: 1.5px;
}

.green-rule {
  height: 3px;
  margin: 10px 0 14px;
}

.grid-table {
  font-size: 7.1px;
}

.grid-table th,
.grid-table td {
  border-color: #252947;
}

.grid-table th {
  background: #fbfcff;
}

.major-head {
  height: 64px;
  font-size: 6.6px;
  line-height: 1.08;
}

.sub-head {
  height: 138px;
}

.sub-head > div {
  max-height: 132px;
  font-size: 6px;
  line-height: 1.08;
}

.grid-table td {
  height: 24px;
}

.grid-table .filled {
  background: #332f62;
}

.grid-table .name-cell {
  line-height: 1.08;
}

.print-footer {
  margin-top: 16px;
  font-size: 15px;
}

.season-library,
.stats-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
}

.season-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #e2e8f2;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
  box-shadow: var(--shadow-soft);
}

.season-card.active {
  border-color: #8eddbf;
  box-shadow: 0 0 0 1px #b8ead6, 0 18px 40px rgba(0, 173, 115, 0.08);
}

.season-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.season-card-head strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.season-card-head span:not(.pill) {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-weight: 800;
}

.season-tour-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 32px;
}

.season-manage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.compact-form {
  grid-template-columns: minmax(180px, 0.7fr) minmax(220px, 1fr) auto;
  align-items: end;
}

.compact-stats .stat {
  min-height: 78px;
}

.sync-panel {
  border-color: #dfe7f2;
}

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

.sync-metrics div {
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.sync-metrics span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.sync-metrics strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.15;
}

.review-stack {
  display: grid;
  gap: 10px;
}

.review-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e2e8f2;
  border-radius: 8px;
  background: #fff;
}

.review-card.bad {
  border-color: #efb8b1;
  background: #fffafa;
}

.review-card strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.review-card span:not(.pill) {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.review-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.row-actions.nowrap {
  flex-wrap: nowrap;
}

.stats-panel {
  min-height: 380px;
}

.stat-bars {
  display: grid;
  gap: 10px;
}

.stat-bar {
  position: relative;
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.stat-bar span,
.stat-bar strong {
  position: relative;
  z-index: 1;
}

.stat-bar span {
  font-size: 12px;
  font-weight: 850;
  color: #303553;
}

.stat-bar strong {
  color: var(--ink);
}

.stat-bar i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: var(--green);
}

.qr-block {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.qr-block > span {
  width: 118px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.srt-grid-card {
  width: 1540px;
  min-width: 1540px;
}

.srt-grid-card.pg-grid {
  width: 1180px;
  min-width: 1180px;
}

.grid-table .filled {
  background: var(--grid-ink) !important;
  box-shadow: inset 0 0 0 9999px var(--grid-ink);
}

.pg-grid .major-head {
  height: 92px;
  font-size: 8.2px;
  line-height: 1.08;
}

.empty {
  border-radius: 8px;
  background: #fbfcfe;
}

.toast {
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(20, 20, 45, 0.22);
}

@media (max-width: 1080px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split,
  .hero-board {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .workspace,
  .topbar,
  .sidebar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    grid-template-columns: 1fr;
  }

  .stat-grid,
  .form-grid,
  .tour-metrics,
  .sync-metrics,
  .compact-form,
  .season-manage,
  .season-library,
  .stats-board {
    grid-template-columns: 1fr;
  }

  .tour-library {
    grid-template-columns: 1fr;
  }

  .top-actions,
  .toolbar-right,
  .toolbar-left,
  .row-actions,
  .row-actions.nowrap {
    width: 100%;
    flex-wrap: wrap;
  }

  .top-select,
  .top-select.tour-select,
  .top-select.event-select,
  .top-select.season-select,
  .top-actions .button {
    width: 100%;
    min-width: 0;
  }

  .button,
  .file-button {
    white-space: normal;
  }

  .season-card-head,
  .tour-tile-head {
    flex-direction: column;
  }

  .review-card {
    padding: 12px;
  }

  .submission-mini,
  .history-meta-head,
  .history-entry {
    grid-template-columns: 1fr;
  }
}

@media print {
  .context-tabs,
  .checks-workspace,
  .hubspot-crm-settings,
  .hubspot-season-import {
    display: none !important;
  }

  .shell,
  .main,
  .workspace,
  .section,
  .panel,
  .panel-inner,
  .grid-stage {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    border: 0;
    box-shadow: none;
    background: #fff;
  }
}

/* v11 final cascade */
@media screen {
  .shell { grid-template-columns: 216px minmax(0, 1fr); background: #f5f7fa; }
  .sidebar { width: auto; padding: 18px 14px; }
  .brand-block { padding: 3px 7px 18px; }
  .brand-block img { width: 164px; }
  .topbar { min-height: 64px; padding: 10px 20px; }
  .topbar-context { display: none; }
  .top-actions { width: 100%; flex-wrap: nowrap; justify-content: flex-start; }
  .top-select { min-width: 120px; }
  .top-select.tour-select { min-width: 260px; }
  .top-select.event-select { min-width: 320px; flex: 1 1 420px; }
  .workspace { max-width: 1720px; padding: 24px 28px 48px; }
  .hero-board h2 { font-size: 27px; }
  .event-board { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
  .event-card { gap: 12px; padding: 16px; background: #fff; }
  .event-card:hover { transform: none; }
  .grid-stage { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 560px; margin-top: 18px; padding: 0; overflow: hidden; background: #edf1f6; }
  .shell.grid-focus-mode { display: block; min-height: 100vh; }
  .grid-focus-mode .sidebar,
  .grid-focus-mode .topbar,
  .grid-focus-mode .context-tabs,
  .grid-focus-mode .workspace > .section > :not(.grid-stage) { display: none !important; }
  .grid-focus-mode .main,
  .grid-focus-mode .workspace,
  .grid-focus-mode .section { display: block; width: 100%; max-width: none; height: 100vh; min-height: 0; margin: 0; padding: 0; }
  .grid-focus-mode .grid-stage { position: fixed; inset: 0; z-index: 1000; min-height: 0; margin: 0; border: 0; border-radius: 0; }
}

@media screen and (max-width: 1180px) {
  .top-actions { flex-wrap: wrap; }
  .top-select.event-select { order: 4; flex-basis: 100%; }
}

@media screen and (max-width: 720px) {
  .shell { display: block; }
  .sidebar { position: relative; height: auto; }
  .brand-block img { width: 142px; }
  .top-actions { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); }
  .top-select,
  .top-select.tour-select,
  .top-select.event-select,
  .top-select.season-select { width: 100%; min-width: 0; }
  .top-select.event-select { grid-column: 1 / -1; }
  .workspace { padding: 18px 12px 34px; }
  .event-board,
  .fair-quick-settings { grid-template-columns: 1fr; }
  .grid-stage { min-height: 70vh; }
}

/* v12 final cascade */
@media screen {
  .shell { grid-template-columns: 232px minmax(0, 1fr); background: #f4f6f8; }
  .sidebar { width: auto; padding: 22px 16px; background: #fff; }
  .brand-block { padding: 4px 8px 22px; }
  .brand-block img { width: 174px; }
  .nav { gap: 4px; margin-top: 18px; padding: 0; }
  .nav button { min-height: 44px; padding: 0 13px; border-radius: 6px; color: #50586b; font-size: 14px; }
  .nav button.active { background: #edf8f4; color: #16203a; box-shadow: inset 3px 0 0 var(--green); }
  .topbar { min-height: 72px; padding: 11px 28px; background: rgba(255, 255, 255, .94); }
  .workspace { width: 100%; max-width: 1760px; padding: 28px 34px 54px; }
  .context-tabs { min-height: 54px; padding: 0 30px; background: #fff; }
  .context-tabs button { min-height: 54px; padding: 0 15px; }
  .file-button input { position: absolute !important; width: 1px !important; min-width: 1px !important; height: 1px !important; min-height: 1px !important; padding: 0 !important; opacity: 0 !important; pointer-events: none !important; }
}

@media screen and (max-width: 720px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  .shell { display: block; }
  .sidebar { position: relative; width: 100%; height: auto; padding: 12px 12px 0; overflow: visible; border-right: 0; }
  .brand-block { padding: 2px 5px 11px; border: 0; }
  .brand-block img { width: 142px; }
  .nav { display: flex; gap: 3px; margin: 0; padding: 0 0 8px; overflow-x: auto; }
  .nav button { width: auto; min-width: max-content; min-height: 38px; padding: 0 12px; }
  .nav button.active { box-shadow: inset 0 -3px 0 var(--green); }
  .topbar { position: relative; min-height: 0; padding: 10px 12px 12px; }
  .top-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .top-select, .top-select.tour-select, .top-select.event-select, .top-select.season-select { width: 100%; min-width: 0; }
  .top-select.event-select, .top-actions .sync-status, .top-actions .user-pill { grid-column: 1 / -1; }
  .top-actions .button { width: 100%; }
  .context-tabs { width: 100%; max-width: 100vw; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 46px; padding: 0 8px; overflow: hidden; }
  .context-tabs > button { width: 100%; min-width: 0; min-height: 46px; padding: 0 6px; white-space: normal; }
  .workspace { padding: 20px 12px 38px; }
  .hero-board, .archive-hero, .split { grid-template-columns: 1fr; }
  .hero-board h2 { font-size: 25px; }
  .event-board, .fair-quick-settings { grid-template-columns: 1fr; }
}

/* v12 definitive shell and responsive overrides */
@media screen {
  .shell { grid-template-columns: 232px minmax(0, 1fr); background: #f4f6f8; }
  .sidebar { width: auto; padding: 22px 16px; background: #fff; }
  .brand-block { padding: 4px 8px 22px; }
  .brand-block img { width: 174px; }
  .nav { gap: 4px; margin-top: 18px; padding: 0; }
  .nav button { min-height: 44px; padding: 0 13px; border-radius: 6px; color: #50586b; font-size: 14px; }
  .nav button.active { background: #edf8f4; color: #16203a; box-shadow: inset 3px 0 0 var(--green); }
  .topbar { min-height: 72px; padding: 11px 28px; background: rgba(255, 255, 255, .94); }
  .workspace { width: 100%; max-width: 1760px; padding: 28px 34px 54px; }
  .context-tabs { min-height: 54px; padding: 0 30px; background: #fff; }
  .context-tabs button { min-height: 54px; padding: 0 15px; }
  .button.primary, .file-button.primary { background: #373166; }
  .file-button input {
    position: absolute !important;
    width: 1px !important;
    min-width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    padding: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media screen and (max-width: 720px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  .shell { display: block; }
  .sidebar { position: relative; width: 100%; height: auto; padding: 12px 12px 0; overflow: visible; border-right: 0; }
  .brand-block { padding: 2px 5px 11px; border: 0; }
  .brand-block img { width: 142px; }
  .nav { display: flex; gap: 3px; margin: 0; padding: 0 0 8px; overflow-x: auto; }
  .nav button { width: auto; min-width: max-content; min-height: 38px; padding: 0 12px; }
  .nav button.active { box-shadow: inset 0 -3px 0 var(--green); }
  .topbar { position: relative; min-height: 0; padding: 10px 12px 12px; }
  .top-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .top-select, .top-select.tour-select, .top-select.event-select, .top-select.season-select { width: 100%; min-width: 0; }
  .top-select.event-select, .top-actions .sync-status, .top-actions .user-pill { grid-column: 1 / -1; }
  .top-actions .button { width: 100%; }
  .context-tabs {
    width: 100%;
    max-width: 100vw;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 46px;
    padding: 0 8px;
    overflow: hidden;
  }
  .context-tabs > button { width: 100%; min-width: 0; min-height: 46px; padding: 0 6px; white-space: normal; }
  .workspace { padding: 20px 12px 38px; }
  .hero-board, .archive-hero, .split { grid-template-columns: 1fr; }
  .hero-board h2 { font-size: 25px; }
  .event-board, .fair-quick-settings { grid-template-columns: 1fr; }
}

/* v12 application workspace */
@media screen {
  :root {
    --paper: #f4f6f8;
    --line: #dde3ea;
    --line-2: #cbd4df;
    --muted: #667085;
    --shadow-soft: 0 1px 2px rgba(17, 24, 39, .04), 0 10px 28px rgba(17, 24, 39, .055);
  }

  body {
    background: var(--paper);
  }

  .shell {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .sidebar {
    padding: 22px 16px;
    border-right-color: #e4e8ee;
    background: #fff;
  }

  .brand-block {
    padding: 4px 8px 22px;
    border-bottom: 1px solid #edf0f3;
  }

  .brand-block img {
    width: 174px;
  }

  .nav {
    gap: 4px;
    margin-top: 18px;
    padding: 0;
  }

  .nav button {
    min-height: 44px;
    padding: 0 13px;
    border-radius: 6px;
    color: #50586b;
    font-size: 14px;
    font-weight: 750;
  }

  .nav button:hover {
    background: #f4f6f8;
  }

  .nav button.active {
    background: #edf8f4;
    color: #16203a;
    box-shadow: inset 3px 0 0 var(--green);
  }

  .topbar {
    min-height: 72px;
    padding: 11px 28px;
    border-bottom-color: #e3e7ed;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
  }

  .top-actions {
    gap: 9px;
  }

  .top-select {
    color: #697386;
    font-size: 10px;
    font-weight: 800;
  }

  .top-select select {
    min-height: 42px;
    border-color: #d7dee8;
    background-color: #fff;
    color: #20243e;
    font-size: 14px;
    font-weight: 700;
  }

  .topbar .sync-status,
  .topbar .user-pill {
    min-height: 38px;
    border-radius: 999px;
    font-size: 11px;
  }

  .workspace {
    width: 100%;
    max-width: 1760px;
    padding: 28px 34px 54px;
  }

  .context-tabs {
    min-height: 54px;
    padding: 0 30px;
    border-bottom: 1px solid #e3e7ed;
    background: #fff;
  }

  .context-tabs button {
    min-height: 54px;
    padding: 0 15px;
    color: #657086;
    font-size: 13px;
  }

  .context-tabs button.active {
    color: #191832;
  }

  .hero-board {
    align-items: center;
    margin-bottom: 20px;
  }

  .hero-board h2 {
    font-size: 30px;
    font-weight: 820;
  }

  .hero-board p {
    margin-top: 7px;
    color: #6b7280;
  }

  .button,
  .file-button {
    min-height: 40px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 750;
  }

  .button.primary,
  .file-button.primary {
    background: #373166;
  }

  .button.primary:hover,
  .file-button.primary:hover {
    background: #29254f;
  }

  .file-button input {
    position: absolute;
    width: 1px;
    min-width: 1px;
    height: 1px;
    min-height: 1px;
    padding: 0;
    opacity: 0;
    pointer-events: none;
  }

  .panel,
  .season-card,
  .tour-tile,
  .event-card {
    border-color: #dfe4eb;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
  }

  .archive-workspace {
    min-width: 0;
  }

  .archive-hero .toolbar-right {
    flex-wrap: wrap;
  }

  .archive-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #dfe4eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .03);
  }

  .archive-metrics > div {
    min-width: 0;
    display: grid;
    gap: 7px;
    padding: 15px 18px;
    border-right: 1px solid #e7ebf0;
  }

  .archive-metrics > div:last-child {
    border-right: 0;
  }

  .archive-metrics span,
  .archive-directory-head span,
  .archive-detail-head small {
    color: #70798b;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .archive-metrics strong {
    font-size: 22px;
    line-height: 1;
  }

  .archive-add-bar,
  .archive-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, .65fr) auto auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #dfe4eb;
    border-radius: 8px;
    background: #fff;
  }

  .archive-filters {
    grid-template-columns: minmax(280px, 1.35fr) minmax(230px, .9fr) minmax(180px, .6fr) auto;
  }

  .archive-add-bar label,
  .archive-filters label {
    display: grid;
    gap: 6px;
    color: #687184;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .archive-add-bar input,
  .archive-filters input,
  .archive-filters select {
    min-width: 0;
    min-height: 42px;
    margin: 0;
    background: #fff;
    color: #1d2038;
    font-size: 13px;
    text-transform: none;
  }

  .archive-layout {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(330px, .82fr) minmax(520px, 1.35fr);
    gap: 16px;
    align-items: start;
  }

  .archive-directory,
  .archive-detail {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe4eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
  }

  .archive-directory-head,
  .archive-detail-head {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 16px;
    border-bottom: 1px solid #e5e9ef;
    background: #fafbfc;
  }

  .archive-detail-head h3 {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
    font-size: 18px;
  }

  .archive-list {
    max-height: calc(100vh - 344px);
    min-height: 440px;
    overflow-y: auto;
  }

  .archive-list-row {
    width: 100%;
    min-height: 82px;
    display: grid;
    grid-template-columns: minmax(155px, .9fr) minmax(170px, 1.1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 12px 15px;
    border: 0;
    border-bottom: 1px solid #edf0f3;
    background: #fff;
    color: #20243d;
    text-align: left;
  }

  .archive-list-row:hover {
    background: #f8fafb;
  }

  .archive-list-row.active {
    background: #eef9f5;
    box-shadow: inset 3px 0 0 var(--green);
  }

  .archive-identity {
    min-width: 0;
    display: grid;
    gap: 4px;
  }

  .archive-identity strong {
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.25;
  }

  .archive-identity small,
  .archive-program-preview {
    color: #6c7587;
    font-size: 11px;
    line-height: 1.35;
  }

  .archive-program-preview {
    min-width: 0;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .archive-counts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    color: #566074;
    font-size: 10px;
    font-weight: 800;
  }

  .archive-detail-body {
    padding: 18px;
  }

  .archive-detail .history-meta {
    margin-top: 16px;
    border-color: #e1e6ec;
    background: #fafbfc;
  }

  .archive-detail .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .archive-detail .category-option {
    min-height: 42px;
    justify-content: flex-start;
    padding: 9px 11px;
    border-radius: 6px;
    background: #fff;
    color: #3f475a;
    font-size: 11px;
    line-height: 1.3;
    text-align: left;
  }

  .archive-detail .category-option.active {
    border-color: #22b988;
    background: #eaf9f3;
    color: #075e43;
    box-shadow: inset 0 0 0 1px #22b988;
  }

  .fair-quick-settings {
    grid-template-columns: 84px minmax(190px, 1fr) auto;
  }

  .fair-qr-control {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .fair-qr-control .file-button {
    width: auto;
    flex: 1 1 auto;
  }

  .fair-qr-thumb,
  .fair-qr-empty {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border: 1px solid #d8dfe8;
    border-radius: 4px;
    background: #fff;
    object-fit: contain;
  }

  .fair-qr-empty {
    color: #8790a1;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .hubspot-program-settings {
    max-width: 1080px;
  }

  .hubspot-program-head {
    align-items: center;
  }

  .hubspot-program-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #e0e5eb;
    border-radius: 7px;
    background: #fafbfc;
  }

  .hubspot-program-summary > div {
    min-width: 0;
    display: grid;
    gap: 6px;
    padding: 14px;
    border-right: 1px solid #e6eaf0;
  }

  .hubspot-program-summary > div:last-child {
    border-right: 0;
  }

  .hubspot-program-summary span {
    color: #737c8e;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .hubspot-program-summary strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 16px;
  }
}

@media screen and (max-width: 1100px) {
  .archive-layout {
    grid-template-columns: 1fr;
  }

  .archive-list {
    max-height: 420px;
    min-height: 0;
  }

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

@media screen and (max-width: 720px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .shell {
    display: block;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 12px 12px 0;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid #e3e7ed;
  }

  .brand-block {
    padding: 2px 5px 11px;
    border: 0;
  }

  .brand-block img {
    width: 142px;
  }

  .nav {
    display: flex;
    gap: 3px;
    margin: 0;
    padding: 0 0 8px;
    overflow-x: auto;
  }

  .nav button {
    width: auto;
    min-width: max-content;
    min-height: 38px;
    padding: 0 12px;
  }

  .nav button.active {
    box-shadow: inset 0 -3px 0 var(--green);
  }

  .topbar {
    position: relative;
    min-height: 0;
    padding: 10px 12px 12px;
  }

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

  .top-select.event-select,
  .top-actions .sync-status,
  .top-actions .user-pill {
    grid-column: 1 / -1;
  }

  .top-actions .button {
    width: 100%;
  }

  .context-tabs {
    width: 100%;
    max-width: 100vw;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 46px;
    padding: 0 8px;
    overflow: hidden;
    contain: inline-size;
  }

  .context-tabs button {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0 6px;
    white-space: normal;
  }

  .workspace {
    padding: 20px 12px 38px;
  }

  .hero-board,
  .archive-hero {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 14px;
  }

  .hero-board h2 {
    font-size: 25px;
  }

  .archive-hero .toolbar-right {
    display: grid;
    grid-template-columns: minmax(92px, .7fr) repeat(2, minmax(0, 1fr));
  }

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

  .archive-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .archive-metrics > div:nth-child(-n + 2) {
    border-bottom: 1px solid #e7ebf0;
  }

  .archive-add-bar,
  .archive-filters {
    grid-template-columns: 1fr;
  }

  .archive-add-bar .button,
  .archive-filters .button {
    width: 100%;
  }

  .archive-list-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .archive-program-preview {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .archive-counts {
    grid-column: 2;
    grid-row: 1;
  }

  .archive-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .archive-detail-head .button {
    width: 100%;
  }

  .archive-detail-body {
    padding: 14px;
  }

  .archive-detail .category-grid,
  .hubspot-program-summary {
    grid-template-columns: 1fr;
  }

  .hubspot-program-summary > div {
    border-right: 0;
    border-bottom: 1px solid #e6eaf0;
  }

  .hubspot-program-summary > div:last-child {
    border-bottom: 0;
  }

  .hubspot-program-head {
    align-items: stretch;
    flex-direction: column;
  }

  .hubspot-program-head .toolbar-right {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .fair-quick-settings {
    grid-template-columns: 1fr;
  }
}

/* SRT Grids v11: compact fair workspace and direct grid editing */
.shell {
  grid-template-columns: 216px minmax(0, 1fr);
  background: #f5f7fa;
}

.sidebar {
  padding: 18px 14px;
}

.brand-block {
  padding: 3px 7px 18px;
}

.brand-block img {
  width: 164px;
}

.topbar {
  min-height: 64px;
  padding: 10px 20px;
}

.topbar-context {
  display: none;
}

.top-actions {
  width: 100%;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.top-select {
  min-width: 120px;
}

.top-select.tour-select {
  min-width: 260px;
}

.top-select.event-select {
  min-width: 320px;
  flex: 1 1 420px;
}

.top-select select,
.topbar .button,
.topbar .sync-status,
.topbar .user-pill {
  min-height: 38px;
}

.workspace {
  max-width: 1720px;
  padding: 24px 28px 48px;
}

.hero-board h2 {
  font-size: 27px;
}

.event-board {
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}

.event-card {
  gap: 12px;
  padding: 16px;
  background: #fff;
}

.event-card:hover {
  transform: none;
}

.event-title strong {
  font-size: 18px;
}

.fair-quick-settings {
  display: grid;
  grid-template-columns: 84px minmax(180px, 1fr) auto;
  align-items: end;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #e7ebf1;
}

.fair-quick-settings label {
  min-width: 0;
  margin: 0;
}

.fair-quick-settings input,
.fair-quick-settings select,
.fair-quick-settings .button,
.fair-quick-settings .file-button {
  width: 100%;
  min-height: 38px;
}

.fair-quick-settings .fair-qr-link {
  min-width: 0;
}

.bulk-roster-panel textarea,
.grid-bulk-add textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
}

.bulk-roster-panel .row-actions,
.grid-bulk-add .button {
  margin-top: 10px;
}

.grid-stage {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 560px;
  margin-top: 18px;
  padding: 0;
  overflow: hidden;
  border-color: #dbe1ea;
  background: #edf1f6;
}

.grid-stage-toolbar {
  position: relative;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 10px 14px;
  border-bottom: 1px solid #dbe1ea;
  background: rgba(255, 255, 255, 0.98);
}

.grid-stage-toolbar > div:first-child {
  display: grid;
  gap: 2px;
}

.grid-stage-toolbar strong {
  color: #171532;
  font-size: 14px;
}

.grid-stage-toolbar span {
  color: #687085;
  font-size: 11px;
}

.grid-stage-scroll {
  min-width: 0;
  min-height: 0;
  padding: 18px;
  overflow: auto;
}

.grid-stage-scroll .srt-grid-card {
  box-shadow: 0 8px 32px rgba(20, 20, 45, 0.08);
}

.grid-archive {
  position: absolute;
  top: 58px;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 12px;
  width: min(430px, 100%);
  padding: 16px;
  border-left: 1px solid #dbe1ea;
  background: #fff;
  box-shadow: -18px 0 48px rgba(20, 20, 45, 0.14);
}

.grid-archive-head,
.grid-archive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.grid-archive-head > div,
.grid-archive-row > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.grid-archive-head span,
.grid-archive-row small {
  color: #687085;
  font-size: 11px;
}

.grid-bulk-add {
  padding: 12px 0;
  border-top: 1px solid #e7ebf1;
  border-bottom: 1px solid #e7ebf1;
}

.grid-archive-list {
  min-height: 0;
  overflow: auto;
}

.grid-archive-row {
  padding: 9px 0;
  border-bottom: 1px solid #edf0f4;
}

.grid-archive-row strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.grid-archive-row .button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 11px;
}

.shell.grid-focus-mode {
  display: block;
  min-height: 100vh;
}

.grid-focus-mode .sidebar,
.grid-focus-mode .topbar,
.grid-focus-mode .context-tabs,
.grid-focus-mode .workspace > .section > :not(.grid-stage) {
  display: none !important;
}

.grid-focus-mode .main,
.grid-focus-mode .workspace,
.grid-focus-mode .section {
  display: block;
  width: 100%;
  max-width: none;
  height: 100vh;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.grid-focus-mode .grid-stage {
  position: fixed;
  inset: 0;
  z-index: 1000;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
}

@media (max-width: 1180px) {
  .top-actions {
    flex-wrap: wrap;
  }

  .top-select.event-select {
    order: 4;
    flex-basis: 100%;
  }
}

@media (max-width: 720px) {
  .shell {
    display: block;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .brand-block img {
    width: 142px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  }

  .top-select,
  .top-select.tour-select,
  .top-select.event-select,
  .top-select.season-select {
    width: 100%;
    min-width: 0;
  }

  .top-select.event-select {
    grid-column: 1 / -1;
  }

  .top-actions > .button {
    min-width: 0;
  }

  .workspace {
    padding: 18px 12px 34px;
  }

  .event-board,
  .fair-quick-settings {
    grid-template-columns: 1fr;
  }

  .grid-stage {
    min-height: 70vh;
  }

  .grid-stage-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid-stage-toolbar .row-actions {
    width: 100%;
  }

  .grid-stage-toolbar .button {
    flex: 1 1 0;
  }

  .grid-archive {
    top: 104px;
    width: 100%;
    border-left: 0;
  }

  .grid-stage-scroll {
    padding: 10px;
  }
}

@media print {
  .grid-stage-toolbar,
  .grid-archive {
    display: none !important;
  }

  .grid-stage-scroll {
    padding: 0;
    overflow: visible;
  }
}

/* Unified workflow interface */
.shell {
  grid-template-columns: 232px minmax(0, 1fr);
  background: #f6f7f9;
}

.sidebar {
  padding: 20px 14px;
  border-right-color: #e5e8ee;
  background: #fff;
  box-shadow: none;
}

.brand-block {
  gap: 10px;
  padding: 2px 6px 22px;
}

.brand-block img {
  width: 158px;
}

.product-title {
  font-size: 21px;
  font-weight: 850;
}

.nav {
  gap: 3px;
  margin-top: 4px;
  padding-right: 0;
  align-content: start;
  grid-auto-rows: min-content;
}

.nav button {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 6px;
  color: #535a6d;
  font-size: 14px;
  font-weight: 750;
}

.nav button:hover {
  background: #f5f6f8;
}

.nav button.active {
  background: #f0f8f5;
  color: #171532;
  box-shadow: inset 3px 0 0 var(--green);
}

.topbar {
  min-height: 74px;
  padding: 12px 24px;
  border-bottom-color: #e5e8ee;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.topbar h1 {
  font-size: 17px;
  font-weight: 850;
}

.topbar-context {
  min-width: 180px;
  color: #4f576a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.topbar small {
  margin-top: 4px;
  font-size: 12px;
}

.top-actions {
  gap: 8px;
}

.top-select {
  min-width: 128px;
  gap: 4px;
  font-size: 9px;
}

.top-select.tour-select {
  min-width: 210px;
}

.top-select.event-select {
  min-width: 220px;
}

.top-select select {
  min-height: 38px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.sync-status,
.user-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
}

.workspace {
  padding: 24px 28px 40px;
}

.section {
  gap: 16px;
}

.hero-board {
  min-height: 46px;
  margin: 0;
}

.hero-board h2 {
  color: var(--ink);
  font-size: 28px;
  line-height: 1.1;
  font-weight: 850;
}

.button,
.file-button {
  min-height: 40px;
  border-radius: 6px;
  box-shadow: none;
  font-weight: 800;
}

.button:hover,
.file-button:hover {
  box-shadow: 0 5px 14px rgba(23, 21, 50, 0.08);
}

.button.primary,
.file-button.primary {
  box-shadow: none;
}

.stat,
.panel,
.event-card,
.tour-tile,
.season-card,
.list-row,
.readiness div,
.grid-stage,
.login-card {
  border-color: #e1e5eb;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(23, 21, 50, 0.04);
}

.stat {
  min-height: 82px;
  padding: 14px 16px;
}

.stat::before {
  width: 3px;
}

.stat strong {
  margin-top: 8px;
  font-size: 28px;
}

.panel-head {
  min-height: 52px;
  padding: 12px 16px;
  background: #fafbfc;
}

.panel-inner {
  padding: 16px;
}

.tour-tile,
.season-card,
.event-card {
  background: #fff;
}

.tour-tile,
.season-card {
  gap: 14px;
  padding: 16px;
}

.tour-tile.active,
.season-card.active,
.event-card.active {
  border-color: #86d9ba;
  box-shadow: inset 0 0 0 1px #86d9ba;
}

.event-card:hover {
  transform: none;
  border-color: #c7ceda;
  box-shadow: 0 7px 20px rgba(23, 21, 50, 0.07);
}

.tour-metrics div,
.readiness div,
.sync-metrics div {
  border-radius: 6px;
  background: #fafbfc;
}

.event-pill {
  min-height: 32px;
  border-radius: 6px;
  background: #f8f9fb;
}

.utility-details {
  overflow: hidden;
  border: 1px solid #e1e5eb;
  border-radius: 7px;
  background: #fff;
}

.utility-details summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #4d5468;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.utility-details[open] summary {
  border-bottom: 1px solid #e1e5eb;
}

.hubspot-form-list {
  display: grid;
  border: 1px solid #e1e5eb;
  border-radius: 7px;
  overflow: hidden;
}

.hubspot-settings-warnings {
  margin-bottom: 14px;
}

.hubspot-form-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fff;
}

.hubspot-form-summary {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px auto;
  gap: 14px;
  align-items: center;
}

.hubspot-property-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #e8ebf0;
  border-radius: 7px;
  background: #f8fafc;
}

.hubspot-property-map .wide-map {
  grid-column: span 2;
}

.hubspot-form-assignment {
  align-items: end;
}

.hubspot-advanced-map {
  color: var(--muted);
}

.hubspot-advanced-map summary {
  width: fit-content;
  cursor: pointer;
  color: var(--ink-soft);
  font-weight: 800;
}

.hubspot-advanced-map .hubspot-property-map {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  margin-top: 10px;
}

.hubspot-field-note {
  color: var(--muted);
  font-weight: 700;
}

.hubspot-form-row + .hubspot-form-row {
  border-top: 1px solid #e8ebf0;
}

.hubspot-form-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  text-transform: none;
}

.hubspot-form-toggle input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--green);
}

.hubspot-form-toggle strong,
.hubspot-form-toggle small {
  display: block;
}

.hubspot-form-toggle strong {
  color: var(--ink);
  font-size: 14px;
}

.hubspot-form-toggle small,
.hubspot-form-settings .panel-head small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: none;
}

.source-control {
  width: min(360px, 34vw);
  display: grid;
  gap: 6px;
}

.source-control select {
  width: 100%;
  min-width: 220px;
  font-size: 12px;
}

.source-control .pill {
  justify-self: start;
}

@media (max-width: 1080px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    z-index: 10;
    height: auto;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 18px;
    border-right: 0;
    border-bottom: 1px solid #e5e8ee;
  }

  .brand-block {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
  }

  .brand-block img {
    width: 138px;
  }

  .product-title {
    font-size: 18px;
    white-space: nowrap;
  }

  .nav {
    min-width: 0;
    display: flex;
    flex: 1 1 auto;
    gap: 3px;
    margin: 0;
    padding: 0 0 4px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .nav button {
    width: auto;
    min-height: 38px;
    flex: 0 0 auto;
    padding: 0 13px;
  }

  .nav button.active {
    box-shadow: inset 0 -3px 0 var(--green);
  }

  .topbar {
    position: relative;
  }

  .split,
  .hero-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .sidebar {
    display: block;
    padding: 12px 14px 8px;
  }

  .brand-block {
    justify-content: space-between;
  }

  .brand-block img {
    width: 132px;
  }

  .nav {
    width: 100%;
    margin-top: 10px;
  }

  .nav button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .topbar {
    gap: 12px;
    padding: 12px 14px;
  }

  .topbar-context {
    min-width: 0;
    font-size: 12px;
  }

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

  .top-select,
  .top-select.tour-select,
  .top-select.event-select,
  .top-select.season-select {
    width: 100%;
    min-width: 0;
  }

  .top-select.event-select {
    grid-column: 1 / -1;
  }

  .top-actions .button {
    width: auto;
    min-width: 0;
  }

  .workspace {
    padding: 18px 14px 32px;
  }

  .hero-board h2 {
    font-size: 24px;
  }

  .stat-grid,
  .compact-stats,
  .tour-metrics,
  .sync-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid,
  .compact-form,
  .season-manage,
  .season-library,
  .stats-board,
  .tour-library {
    grid-template-columns: 1fr;
  }

  .hero-board .toolbar-right {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-board .toolbar-right > * {
    width: 100%;
  }

  .data-table {
    min-width: 780px;
  }

  .hubspot-form-summary,
  .hubspot-property-map {
    grid-template-columns: 1fr;
  }

  .hubspot-property-map .wide-map {
    grid-column: auto;
  }

  .hubspot-form-summary .button {
    width: 100%;
  }

  .source-control {
    width: 320px;
  }

  .grid-stage {
    overflow-x: auto;
  }
}

@media print {
  @page {
    size: A3 portrait;
    margin: 8mm;
  }

  body {
    background: #fff;
  }

  .sidebar,
  .topbar,
  .hero-board,
  .stat-grid,
  .toolbar,
  .panel-head,
  .no-print,
  .toast {
    display: none !important;
  }

  .shell,
  .main,
  .workspace,
  .section,
  .panel,
  .panel-inner,
  .grid-stage {
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    box-shadow: none;
    background: #fff;
  }

  .srt-grid-card {
    min-width: 0;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .grid-table {
    font-size: 6.2px;
  }

  .grid-table .table-col {
    width: 24px;
  }

  .grid-table .name-col {
    width: 116px;
  }

  .pg-grid .grid-table .name-col {
    width: 168px;
  }

  .sub-head > div {
    font-size: 5.5px;
  }
}

/* SRT Grids v5: fair-centered workspace */
.main {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.sidebar {
  width: auto;
  padding: 22px 18px;
  background: #fff;
}

.brand-block {
  gap: 14px;
  padding: 2px 6px 22px;
  border-bottom: 1px solid #edf0f5;
}

.brand-block img {
  width: 174px;
  max-width: 100%;
}

.product-title {
  font-size: 21px;
  font-weight: 800;
}

.nav {
  align-content: start;
  gap: 4px;
  margin-top: 18px;
  padding: 0;
}

.nav button {
  min-height: 44px;
  border-radius: 6px;
  color: #4b5267;
  font-size: 14px;
  font-weight: 700;
}

.nav button:hover {
  background: #f4f5f8;
}

.nav button.active {
  background: #f0f7f4;
  color: #171532;
  box-shadow: inset 3px 0 0 var(--green);
}

.topbar {
  min-height: 76px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.94);
}

.topbar-context {
  max-width: 260px;
  color: #27243f;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.top-select {
  min-width: 148px;
  text-transform: none;
  font-size: 11px;
  font-weight: 750;
}

.top-select.tour-select {
  min-width: 190px;
}

.top-select.event-select {
  min-width: 220px;
}

.top-select select {
  min-height: 40px;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  font-weight: 650;
}

.context-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  overflow-x: auto;
}

.context-tabs button {
  min-height: 46px;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #687085;
  font-size: 13px;
  font-weight: 750;
}

.context-tabs button:hover {
  color: #211d47;
}

.context-tabs button.active {
  border-bottom-color: var(--green);
  color: #171532;
}

.workspace {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 26px 30px 48px;
}

.hero-board {
  align-items: center;
  margin-bottom: 18px;
}

.hero-board h2 {
  font-size: 28px;
  font-weight: 800;
}

.hero-board p {
  margin: 5px 0 0;
  color: var(--muted);
}

.panel,
.tour-tile,
.season-card,
.stat,
.event-card {
  border-color: #e2e6ed;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(20, 20, 45, 0.04), 0 8px 22px rgba(20, 20, 45, 0.035);
}

.button,
.file-button {
  min-height: 40px;
  border-radius: 6px;
  font-weight: 750;
}

.hubspot-season-import {
  margin-top: 14px;
}

.import-season-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.import-season-row > div {
  display: grid;
  gap: 5px;
}

.import-season-row span,
.crm-sync-summary,
.sync-note span {
  color: var(--muted);
  font-size: 12px;
}

.hubspot-crm-settings {
  margin-bottom: 18px;
}

.crm-property-map {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.crm-property-map label:first-child {
  grid-column: 1 / -1;
}

.crm-property-map label > small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.crm-sync-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.crm-sync-summary span {
  padding: 6px 9px;
  border: 1px solid #e3e8ef;
  border-radius: 5px;
  background: #f8fafb;
}

.check-setup {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(240px, 0.7fr);
  gap: 12px;
  margin-bottom: 14px;
}

.check-setup > label,
.sync-note {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e1e6ed;
  border-radius: 7px;
  background: #fff;
}

.check-setup > label {
  display: grid;
  gap: 7px;
  color: #4c5266;
  font-size: 11px;
  font-weight: 750;
}

.sync-note {
  display: grid;
  align-content: center;
  gap: 5px;
}

.sync-note.bad {
  border-color: #f2b8b2;
  background: var(--bad-bg);
}

.fair-check-connection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding: 13px 16px;
  border: 1px solid #dfe5ed;
  border-left: 3px solid #d2d8e2;
  border-radius: 7px;
  background: #fff;
}

.fair-check-connection.connected {
  border-left-color: var(--green);
  background: #f7fcfa;
}

.fair-check-connection.warn {
  border-left-color: #dba53d;
  background: #fffaf0;
}

.fair-check-connection.bad {
  border-color: #f2b8b2;
  border-left-color: #c94b45;
  background: var(--bad-bg);
}

.fair-check-connection > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.fair-check-connection strong {
  color: var(--ink);
  font-size: 13px;
}

.fair-check-connection small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fair-check-connection select {
  width: 100%;
}

.fair-match-details {
  min-width: 0;
}

.fair-match-details summary {
  width: max-content;
  margin-left: auto;
  color: var(--purple);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  list-style-position: inside;
}

.fair-match-details[open] summary {
  margin-bottom: 8px;
}

.booking-check-input textarea {
  min-height: 150px;
  resize: vertical;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
}

.booking-check-input .row-actions {
  margin-top: 12px;
}

.check-empty {
  margin-top: 14px;
  border: 1px dashed #cfd6e2;
  background: #fbfcfd;
}

.check-stats {
  margin-top: 16px;
}

.check-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

.check-result-panel {
  min-width: 0;
}

.check-result-list {
  display: grid;
  gap: 0;
  max-height: 430px;
  overflow: auto;
}

.check-person {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f4;
}

.check-person:last-child {
  border-bottom: 0;
}

.check-person > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.check-person strong,
.check-person small {
  overflow-wrap: anywhere;
}

.check-person small {
  color: var(--muted);
}

.check-person em {
  flex: 0 0 auto;
  color: #a73a34;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
}

@media (max-width: 1180px) {
  .check-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .main {
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .sidebar {
    width: 100%;
    padding: 10px 16px;
  }

  .brand-block {
    border: 0;
    padding: 0;
  }

  .context-tabs {
    padding: 0 18px;
  }
}

@media (max-width: 720px) {
  .sidebar {
    display: flex;
    padding: 10px 12px;
  }

  .brand-block img {
    width: 122px;
  }

  .product-title {
    font-size: 17px;
  }

  .nav {
    margin-top: 8px;
  }

  .nav button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .topbar {
    min-height: 0;
    padding: 10px 12px;
  }

  .topbar-context {
    display: none;
  }

  .top-actions {
    width: 100%;
  }

  .top-select,
  .top-select.tour-select,
  .top-select.event-select,
  .top-select.season-select {
    min-width: 0;
  }

  .top-select.season-select {
    grid-column: span 1;
  }

  .sync-status,
  .user-pill {
    display: none;
  }

  .context-tabs {
    padding: 0 10px;
  }

  .context-tabs button {
    min-height: 42px;
    padding: 0 10px;
    font-size: 12px;
  }

  .workspace {
    padding: 20px 12px 36px;
  }

  .hero-board h2 {
    font-size: 23px;
  }

  .import-season-row,
  .check-person {
    align-items: stretch;
    flex-direction: column;
  }

  .check-setup,
  .check-results,
  .crm-property-map {
    grid-template-columns: 1fr;
  }

  .fair-check-connection {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .fair-check-connection small {
    white-space: normal;
  }

  .fair-match-details summary {
    margin-left: 0;
  }

  .crm-property-map label:first-child {
    grid-column: auto;
  }

  .check-person em {
    flex: none;
  }

}

.hubspot-sync-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 2px 0 20px;
  border-top: 1px solid #e3e7ee;
  border-bottom: 1px solid #e3e7ee;
}

.hubspot-sync-overview > div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-right: 1px solid #e3e7ee;
}

.hubspot-sync-overview > div:last-child {
  border-right: 0;
}

.hubspot-sync-overview span,
.srt-form-status small,
.hubspot-last-sync span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.hubspot-sync-overview strong {
  color: #16142f;
  font-size: 22px;
}

.srt-form-status {
  display: grid;
}

.srt-form-status > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 13px 0;
  border-bottom: 1px solid #edf0f4;
}

.srt-form-status > div > span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.hubspot-last-sync {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 0;
}

.hubspot-last-sync.bad strong {
  color: #b42318;
}

.connection-details {
  margin-top: 8px;
  border-top: 1px solid #e3e7ee;
}

.connection-details summary {
  padding: 15px 0;
  color: #4e566a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.connection-details .crm-property-map {
  padding: 0 0 6px;
}

.event-mapping-callout,
.event-mapping-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.event-mapping-alert {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #edd9a8;
  border-left: 3px solid #d49a28;
  border-radius: 7px;
  background: #fffaf0;
}

.event-mapping-callout > span,
.event-mapping-alert > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.event-mapping-callout small,
.event-mapping-alert small {
  color: var(--muted);
  font-size: 12px;
}

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

.mapping-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mapping-summary > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.mapping-summary > div:last-child {
  border-right: 0;
}

.mapping-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.mapping-summary strong {
  font-size: 22px;
}

.mapping-summary .warn strong {
  color: #9a650f;
}

.mapping-summary .bad strong {
  color: var(--danger);
}

.mapping-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.mapping-toolbar input {
  max-width: 390px;
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(2, auto);
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #f2f4f8;
}

.segmented-control button {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.segmented-control button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(20, 20, 45, 0.12);
}

.mapping-list,
.canonical-event-list,
.event-review-list {
  display: grid;
}

.mapping-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(320px, 1.35fr) minmax(190px, 0.65fr);
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid #edf0f4;
}

.mapping-row:last-child,
.canonical-event-row:last-child,
.event-review-list > div:last-child {
  border-bottom: 0;
}

.mapping-choice,
.mapping-status,
.canonical-event-row > span:first-child,
.event-review-list > div > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.mapping-choice strong,
.canonical-event-row strong,
.event-review-list strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.mapping-choice small,
.canonical-event-row small,
.event-review-list small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
}

.mapping-status {
  justify-items: start;
  gap: 6px;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green-2);
  font-size: 11px;
  font-weight: 800;
  text-align: left;
}

.text-button:hover {
  text-decoration: underline;
}

.canonical-catalog-panel,
.event-review-panel {
  margin-top: 18px;
}

.canonical-event-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 11px 16px;
  border-bottom: 1px solid #edf0f4;
}

.canonical-binding-state {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.event-review-list > div {
  padding: 12px 16px;
  border-bottom: 1px solid #edf0f4;
}

@media (max-width: 720px) {
  .hubspot-sync-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hubspot-sync-overview > div:nth-child(2) {
    border-right: 0;
  }

  .event-mapping-callout,
  .event-mapping-alert,
  .mapping-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .event-property-grid,
  .mapping-row,
  .canonical-event-row {
    grid-template-columns: 1fr;
  }

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

  .mapping-summary > div:nth-child(2n) {
    border-right: 0;
  }

  .mapping-toolbar input {
    max-width: none;
  }

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

  .canonical-binding-state {
    justify-content: flex-start;
  }
}

@media print {
  .context-tabs,
  .checks-workspace,
  .hubspot-crm-settings,
  .hubspot-season-import {
    display: none !important;
  }

  .shell,
  .main,
  .workspace,
  .section,
  .panel,
  .panel-inner,
  .grid-stage {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    border: 0;
    box-shadow: none;
    background: #fff;
  }
}

/* v11 final visual overrides */
@media screen {
  .shell { grid-template-columns: 216px minmax(0, 1fr); background: #f5f7fa; }
  .sidebar { width: auto; padding: 18px 14px; }
  .brand-block { padding: 3px 7px 18px; }
  .brand-block img { width: 164px; }
  .topbar { min-height: 64px; padding: 10px 20px; }
  .topbar-context { display: none; }
  .top-actions { width: 100%; flex-wrap: nowrap; justify-content: flex-start; }
  .top-select { min-width: 120px; }
  .top-select.tour-select { min-width: 260px; }
  .top-select.event-select { min-width: 320px; flex: 1 1 420px; }
  .workspace { max-width: 1720px; padding: 24px 28px 48px; }
  .hero-board h2 { font-size: 27px; }
  .event-board { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
  .event-card { gap: 12px; padding: 16px; background: #fff; }
  .event-card:hover { transform: none; }
  .grid-stage { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 560px; margin-top: 18px; padding: 0; overflow: hidden; background: #edf1f6; }
  .shell.grid-focus-mode { display: block; min-height: 100vh; }
  .grid-focus-mode .sidebar,
  .grid-focus-mode .topbar,
  .grid-focus-mode .context-tabs,
  .grid-focus-mode .workspace > .section > :not(.grid-stage) { display: none !important; }
  .grid-focus-mode .main,
  .grid-focus-mode .workspace,
  .grid-focus-mode .section { display: block; width: 100%; max-width: none; height: 100vh; min-height: 0; margin: 0; padding: 0; }
  .grid-focus-mode .grid-stage { position: fixed; inset: 0; z-index: 1000; min-height: 0; margin: 0; border: 0; border-radius: 0; }
}

@media screen and (max-width: 1180px) {
  .top-actions { flex-wrap: wrap; }
  .top-select.event-select { order: 4; flex-basis: 100%; }
}

@media screen and (max-width: 720px) {
  .shell { display: block; }
  .sidebar { position: relative; height: auto; }
  .brand-block img { width: 142px; }
  .top-actions { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); }
  .top-select,
  .top-select.tour-select,
  .top-select.event-select,
  .top-select.season-select { width: 100%; min-width: 0; }
  .top-select.event-select { grid-column: 1 / -1; }
  .workspace { padding: 18px 12px 34px; }
  .event-board,
  .fair-quick-settings { grid-template-columns: 1fr; }
  .grid-stage { min-height: 70vh; }
}

/* v12 final cascade */
@media screen {
  .shell { grid-template-columns: 232px minmax(0, 1fr); background: #f4f6f8; }
  .sidebar { width: auto; padding: 22px 16px; background: #fff; }
  .brand-block { padding: 4px 8px 22px; }
  .brand-block img { width: 174px; }
  .nav { gap: 4px; margin-top: 18px; padding: 0; }
  .nav button { min-height: 44px; padding: 0 13px; border-radius: 6px; color: #50586b; font-size: 14px; }
  .nav button.active { background: #edf8f4; color: #16203a; box-shadow: inset 3px 0 0 var(--green); }
  .topbar { min-height: 72px; padding: 11px 28px; background: rgba(255, 255, 255, .94); }
  .workspace { width: 100%; max-width: 1760px; padding: 28px 34px 54px; }
  .context-tabs { min-height: 54px; padding: 0 30px; background: #fff; }
  .context-tabs button { min-height: 54px; padding: 0 15px; }
  .file-button input { position: absolute !important; width: 1px !important; min-width: 1px !important; height: 1px !important; min-height: 1px !important; padding: 0 !important; opacity: 0 !important; pointer-events: none !important; }
}

@media screen and (max-width: 720px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  .shell { display: block; }
  .sidebar { position: relative; width: 100%; height: auto; padding: 12px 12px 0; overflow: visible; border-right: 0; }
  .brand-block { padding: 2px 5px 11px; border: 0; }
  .brand-block img { width: 142px; }
  .nav { display: flex; gap: 3px; margin: 0; padding: 0 0 8px; overflow-x: auto; }
  .nav button { width: auto; min-width: max-content; min-height: 38px; padding: 0 12px; }
  .nav button.active { box-shadow: inset 0 -3px 0 var(--green); }
  .topbar { position: relative; min-height: 0; padding: 10px 12px 12px; }
  .top-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .top-select, .top-select.tour-select, .top-select.event-select, .top-select.season-select { width: 100%; min-width: 0; }
  .top-select.event-select, .top-actions .sync-status, .top-actions .user-pill { grid-column: 1 / -1; }
  .top-actions .button { width: 100%; }
  .context-tabs { width: 100%; max-width: 100vw; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 46px; padding: 0 8px; overflow: hidden; }
  .context-tabs > button { width: 100%; min-width: 0; min-height: 46px; padding: 0 6px; white-space: normal; }
  .workspace { padding: 20px 12px 38px; }
  .hero-board, .archive-hero, .split { grid-template-columns: 1fr; }
  .hero-board h2 { font-size: 25px; }
  .event-board, .fair-quick-settings { grid-template-columns: 1fr; }
}
