:root {
  --halo-gold: #d5aa28;
  --halo-gold-soft: #f7e9b7;
  --halo-navy: #0d172a;
  --halo-navy-2: #162136;
  --halo-ink: #172033;
  --halo-muted: #667085;
  --halo-canvas: #f4f6f9;
  --halo-surface: #ffffff;
  --halo-line: #dfe4eb;
  --halo-focus: #9c7410;
  --halo-shadow: 0 8px 28px rgba(24, 35, 55, 0.08);
  --control-bg: #0b1220;
  --control-panel: #141f32;
  --control-panel-2: #1a273d;
  --control-line: rgba(255, 255, 255, 0.12);
  --control-red: #ee5b62;
}

html.halo-main-app,
html.halo-main-app body {
  background: var(--halo-canvas);
  color: var(--halo-ink);
}

html.halo-main-app body,
html.halo-control-app body {
  overflow-x: hidden;
}

.halo-main-app *:focus-visible,
.halo-control-app *:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--halo-gold) 55%, transparent);
  outline-offset: 2px;
}

.halo-sheet-head {
  align-items: center;
  background: inherit;
  border-bottom: 1px solid currentColor;
  border-color: var(--halo-line);
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  margin: -1rem -1rem 0.5rem;
  padding: 0.85rem 1rem;
  position: sticky;
  top: -1rem;
  z-index: 2;
}

.halo-sheet-head strong {
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.halo-sheet-head button {
  background: var(--halo-navy);
  border: 0;
  border-radius: 0.55rem;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.48rem 0.75rem;
}

.halo-tools-group {
  min-width: 0;
}

.halo-tools-group-title {
  color: #7b8799;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin: 0 0 0.4rem;
  text-transform: uppercase;
}

.halo-zero-card {
  display: none !important;
}

/* Halo Ops: planning and delivery workspace. */
.halo-app-shell {
  grid-template-columns: 248px minmax(0, 1fr) !important;
}

.halo-global-nav {
  background: var(--halo-navy) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  gap: 0.15rem !important;
  padding: 1rem 0.8rem !important;
}

.halo-brand {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 0 0.75rem !important;
  padding: 0.35rem 0.65rem 1rem !important;
}

.halo-brand-subtitle {
  color: #9aa8bb;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
  text-transform: uppercase;
}

.halo-global-group {
  color: #718096;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin: 0.85rem 0.65rem 0.25rem;
  text-transform: uppercase;
}

.halo-global-nav > a:not(.halo-product-switch):not(.halo-live-dashboard-switch) {
  border-radius: 0.55rem;
  color: #cad4e2 !important;
  font-size: 0.9rem;
  font-weight: 650;
  padding: 0.62rem 0.7rem !important;
  transition: background 120ms ease, color 120ms ease;
}

.halo-global-nav > a:not(.halo-product-switch):not(.halo-live-dashboard-switch):hover,
.halo-global-nav > a:not(.halo-product-switch):not(.halo-live-dashboard-switch):focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: #fff !important;
}

.halo-global-nav > a.halo-active:not(.halo-product-switch):not(.halo-live-dashboard-switch) {
  background: rgba(213, 170, 40, 0.16);
  box-shadow: inset 3px 0 0 var(--halo-gold);
  color: #fff !important;
}

.halo-product-switch,
.halo-live-dashboard-switch {
  align-items: center;
  background: #1b2940;
  border: 1px solid rgba(213, 170, 40, 0.42);
  border-radius: 0.75rem;
  color: #fff;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: auto 1fr auto;
  margin-top: auto;
  padding: 0.75rem;
  text-decoration: none;
}

.halo-product-switch:hover,
.halo-live-dashboard-switch:hover {
  background: #22324d;
}

.halo-live-dashboard-switch {
  background: #17362d;
  border-color: rgba(92, 211, 153, 0.45);
  margin-top: auto;
}

.halo-live-dashboard-switcher + .halo-product-switch,
.halo-live-dashboard-switch + .halo-product-switch {
  margin-top: 0.45rem;
}

.halo-live-dashboard-switcher {
  margin-top: auto;
  position: relative;
}

.halo-live-dashboard-switcher > summary {
  align-items: center;
  background: #17362d;
  border: 1px solid rgba(92, 211, 153, 0.45);
  border-radius: 0.75rem;
  color: #fff;
  cursor: pointer;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: auto 1fr auto;
  list-style: none;
  padding: 0.75rem;
}

.halo-live-dashboard-switcher > summary::-webkit-details-marker {
  display: none;
}

.halo-live-dashboard-switcher > summary:hover,
.halo-live-dashboard-switcher[open] > summary {
  background: #1d4438;
}

.halo-live-dashboard-switcher > summary strong,
.halo-live-dashboard-switcher > summary small {
  display: block;
}

.halo-live-dashboard-switcher .halo-product-icon {
  background: #71d9a6;
  font-size: 0.49rem;
}

.halo-live-dashboard-switcher > summary strong {
  font-size: 0.82rem;
}

.halo-live-dashboard-switcher > summary small {
  color: #a8c3b7;
  font-size: 0.66rem;
  margin-top: 0.08rem;
}

.halo-live-dashboard-menu {
  background: #0f1b2d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  bottom: calc(100% + 0.5rem);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 0.4rem;
  left: 0;
  padding: 0.45rem;
  position: absolute;
  right: 0;
  z-index: 75;
}

.halo-live-dashboard-menu .halo-live-dashboard-switch {
  grid-template-columns: 1fr auto;
  margin-top: 0;
  padding: 0.65rem 0.7rem;
}

.halo-live-dashboard-menu .halo-live-dashboard-switch strong {
  font-size: 0.75rem;
}

.halo-live-dashboard-menu .halo-live-dashboard-switch small {
  font-size: 0.62rem;
}

.halo-live-dashboard-switch .halo-product-icon {
  background: #71d9a6;
  font-size: 0.49rem;
}

.halo-product-icon {
  align-items: center;
  background: var(--halo-gold);
  border-radius: 0.45rem;
  color: var(--halo-navy);
  display: flex;
  font-size: 0.68rem;
  font-weight: 900;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.halo-product-switch strong,
.halo-product-switch small,
.halo-live-dashboard-switch strong,
.halo-live-dashboard-switch small {
  display: block;
}

.halo-product-switch strong,
.halo-live-dashboard-switch strong {
  font-size: 0.82rem;
}

.halo-product-switch small,
.halo-live-dashboard-switch small {
  color: #9eacc0;
  font-size: 0.66rem;
  margin-top: 0.08rem;
}

.halo-mobile-appbar {
  display: none;
}

.halo-app-main {
  min-width: 0;
  padding: 1.75rem 2rem 5rem !important;
}

.halo-page-title {
  color: var(--halo-ink);
  font-size: clamp(2rem, 3.2vw, 3.3rem) !important;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-top: 0.18rem;
}

.halo-event-page {
  padding-top: 1rem !important;
}

.halo-event-eyebrow {
  font-size: 0.62rem !important;
  font-weight: 800;
  letter-spacing: 0.12em !important;
  margin: 0 0 0.22rem !important;
}

.halo-event-title {
  font-size: clamp(1.85rem, 2.6vw, 2.55rem) !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.halo-event-meta {
  color: var(--halo-muted) !important;
  font-size: 0.82rem !important;
  line-height: 1.25;
  margin: 0.3rem 0 0 !important;
}

.halo-event-meta [class*="rounded"] {
  font-size: 0.65rem !important;
  padding: 0.16rem 0.42rem !important;
}

.halo-section-title {
  color: var(--halo-ink);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.halo-event-layout-clean {
  display: block !important;
  margin-top: 0.7rem !important;
}

.halo-event-overview [class*="min-h-"] {
  min-height: 0 !important;
}

.halo-event-overview-grid {
  grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(150px, 1fr)) !important;
  gap: 0.75rem !important;
  margin-top: 0.75rem !important;
}

.halo-event-overview-stack {
  display: contents !important;
}

.halo-event-overview-grid > *,
.halo-event-overview-stack > * {
  margin: 0 !important;
  min-height: 0 !important;
}

.halo-event-source-nav {
  display: none !important;
}

.halo-workspace-nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--halo-line);
  border-radius: 0.8rem;
  box-shadow: var(--halo-shadow);
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  min-width: 0;
  padding: 0.34rem;
  position: sticky;
  top: 0.6rem;
  z-index: 35;
}

.halo-workspace-nav:has(.halo-workspace-tools[open]) {
  z-index: 110;
}

.halo-workspace-quick {
  display: flex;
  gap: 0.2rem;
  min-width: 0;
}

.halo-workspace-quick a,
.halo-workspace-tools > summary {
  align-items: center;
  border-radius: 0.5rem;
  color: #536075;
  cursor: pointer;
  display: flex;
  font-size: 0.79rem;
  font-weight: 750;
  min-height: 2.2rem;
  padding: 0 0.72rem;
  text-decoration: none;
  white-space: nowrap;
}

.halo-workspace-quick a:hover,
.halo-workspace-tools > summary:hover {
  background: #f0f2f6;
  color: var(--halo-ink);
}

.halo-workspace-quick a.halo-active {
  background: var(--halo-gold-soft);
  color: var(--halo-navy);
}

.halo-workspace-tools,
.halo-control-tools,
.halo-mobile-menu {
  position: relative;
}

.halo-workspace-tools > summary,
.halo-control-tools > summary,
.halo-mobile-menu > summary {
  list-style: none;
  user-select: none;
}

.halo-workspace-tools > summary::-webkit-details-marker,
.halo-control-tools > summary::-webkit-details-marker,
.halo-mobile-menu > summary::-webkit-details-marker {
  display: none;
}

.halo-workspace-tools > summary {
  border: 1px solid var(--halo-line);
}

.halo-workspace-tools[open] > summary {
  border-color: var(--halo-gold);
  color: var(--halo-ink);
}

.halo-workspace-control {
  align-items: center;
  background: var(--halo-navy);
  border-radius: 0.55rem;
  color: #fff;
  display: flex;
  font-size: 0.76rem;
  font-weight: 800;
  gap: 0.5rem;
  margin-left: auto;
  min-height: 2.2rem;
  padding: 0 0.75rem;
  text-decoration: none;
  white-space: nowrap;
}

.halo-workspace-live-dashboard {
  align-items: center;
  background: var(--halo-gold-soft);
  border: 1px solid rgba(156, 116, 16, 0.28);
  border-radius: 0.55rem;
  color: var(--halo-navy);
  display: flex;
  font-size: 0.74rem;
  font-weight: 850;
  min-height: 2.2rem;
  padding: 0 0.75rem;
  text-decoration: none;
  white-space: nowrap;
}

.halo-workspace-live-dashboard:hover {
  background: #f2db87;
}

.halo-workspace-control:hover {
  background: #1a2942;
}

.halo-live-dot {
  background: #48c78e;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(72, 199, 142, 0.18);
  height: 0.48rem;
  width: 0.48rem;
}

.halo-workspace-panel {
  background: #fff;
  border: 1px solid var(--halo-line);
  border-radius: 0.8rem;
  box-shadow: 0 24px 65px rgba(20, 31, 50, 0.2);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: min(72vh, 640px);
  overflow: auto;
  padding: 1rem;
  position: fixed;
  right: 1.5rem;
  top: 7.5rem;
  width: min(880px, calc(100vw - 300px));
  z-index: 70;
}

.halo-workspace-panel .halo-tools-group a,
.halo-mobile-menu-panel .halo-tools-group a {
  border-radius: 0.45rem;
  color: #344156;
  display: block;
  font-size: 0.84rem;
  font-weight: 650;
  padding: 0.55rem 0.62rem;
  text-decoration: none;
}

.halo-workspace-panel .halo-tools-group a:hover,
.halo-mobile-menu-panel .halo-tools-group a:hover {
  background: #f1f3f7;
  color: var(--halo-navy);
}

.halo-workspace-panel .halo-tools-group a.halo-active,
.halo-mobile-menu-panel .halo-tools-group a.halo-active {
  background: var(--halo-gold-soft);
  color: var(--halo-navy);
}

.halo-control-launch-card {
  display: none !important;
}

.halo-control-kicker {
  color: #e7c766;
  display: block;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.halo-main-app .halo-app-main .halo-card,
.halo-main-app .halo-app-main [class~="bg-white"][class~="rounded"] {
  border-color: var(--halo-line) !important;
  border-radius: 0.8rem !important;
  box-shadow: 0 2px 12px rgba(24, 35, 55, 0.04);
}

.halo-main-app .halo-app-main button,
.halo-main-app .halo-app-main a[class*="bg-gold"] {
  border-radius: 0.55rem;
}

.halo-field,
.halo-main-app .halo-app-main input,
.halo-main-app .halo-app-main select,
.halo-main-app .halo-app-main textarea {
  background: #fff;
  border: 1px solid #cfd6e0 !important;
  border-radius: 0.55rem !important;
  color: var(--halo-ink);
  min-height: 2.55rem;
}

.halo-field:focus,
.halo-main-app .halo-app-main input:focus,
.halo-main-app .halo-app-main select:focus,
.halo-main-app .halo-app-main textarea:focus {
  border-color: var(--halo-focus) !important;
  box-shadow: 0 0 0 3px rgba(213, 170, 40, 0.18);
  outline: none;
}

.halo-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.halo-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.halo-table th {
  background: #f0f2f6;
  color: #667085;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.halo-table th,
.halo-table td {
  border-bottom: 1px solid var(--halo-line);
  padding: 0.72rem 0.8rem;
  text-align: left;
}

/* Event Control: a separate show-day product. */
html.halo-control-app,
html.halo-control-app body {
  background: var(--control-bg) !important;
  color: #edf3fb;
}

.halo-control-header {
  align-items: center !important;
  background: rgba(13, 23, 42, 0.98) !important;
  border-color: var(--control-line) !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.24);
  display: flex !important;
  gap: 0.75rem !important;
  padding: 0.7rem 1rem !important;
}

.halo-control-actions {
  align-items: center;
  display: flex;
  gap: 0.65rem !important;
  margin-left: auto !important;
}

.halo-control-state {
  order: 4;
}

.halo-control-header:has(.halo-control-tools[open]) {
  z-index: 110 !important;
}

.halo-control-log-app .halo-control-header {
  flex-wrap: nowrap !important;
}

.halo-control-log-page .halo-control-event-title {
  margin-right: auto !important;
}

.halo-control-product {
  align-items: center;
  border-right: 1px solid var(--control-line);
  display: flex;
  gap: 0.6rem;
  padding-right: 0.9rem;
}

.halo-control-mark {
  align-items: center;
  background: var(--halo-gold);
  border-radius: 0.45rem;
  color: var(--halo-navy);
  display: flex;
  font-size: 0.67rem;
  font-weight: 900;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.halo-control-product strong,
.halo-control-product small {
  display: block;
  white-space: nowrap;
}

.halo-control-product strong {
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.halo-control-product small {
  color: #91a0b5;
  font-size: 0.65rem;
  margin-top: 0.05rem;
}

.halo-control-event-title {
  margin-right: auto !important;
  min-width: 160px;
}

.halo-control-event-title > :first-child {
  font-size: 1rem !important;
  line-height: 1.05;
}

.halo-control-source-nav {
  display: none !important;
}

.halo-control-exit {
  border: 1px solid var(--control-line);
  border-radius: 0.45rem;
  color: #bcc8d8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.5rem 0.65rem;
  text-decoration: none;
  white-space: nowrap;
}

.halo-control-log-link,
.halo-control-live-dashboard {
  border: 1px solid var(--control-line);
  border-radius: 0.45rem;
  color: #d6dfeb;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.5rem 0.65rem;
  text-decoration: none;
  white-space: nowrap;
}

.halo-control-log-link:hover {
  border-color: var(--halo-gold);
  color: #fff;
}

.halo-control-live-dashboard {
  background: var(--halo-gold);
  border-color: var(--halo-gold);
  color: var(--halo-navy);
}

.halo-control-live-dashboard:hover {
  background: #e3bf4e;
}

.halo-control-exit:hover {
  border-color: var(--halo-gold);
  color: #fff;
}

.halo-control-quick-nav {
  align-items: center;
  display: grid;
  flex: 1 0 100%;
  gap: 0.42rem 0.65rem;
  grid-template-columns: minmax(0, 1fr) auto;
  order: 20;
  width: 100%;
}

.halo-control-work-areas {
  display: flex;
  gap: 0.25rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.halo-control-work-area,
.halo-control-tools > summary {
  border-radius: 0.45rem;
  color: #b9c5d5;
  cursor: pointer;
  display: flex;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  min-height: 2.35rem;
  padding: 0 0.72rem;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.halo-control-work-area::before {
  color: #68788f;
  content: attr(data-index);
  font-size: 0.56rem;
  margin-right: 0.38rem;
}

.halo-control-work-area:hover,
.halo-control-tools > summary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.halo-control-work-area.halo-workspace-active {
  background: var(--halo-gold);
  color: var(--halo-navy);
}

.halo-control-work-area.halo-workspace-active::before {
  color: rgba(15, 27, 45, 0.58);
}

.halo-control-context-tabs {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 0.2rem;
  grid-column: 1 / -1;
  min-width: 0;
  overflow-x: auto;
  padding-top: 0.38rem;
}

.halo-control-context-link {
  border-radius: 0.4rem;
  color: #8998ad;
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 750;
  padding: 0.42rem 0.62rem;
  text-decoration: none;
  white-space: nowrap;
}

.halo-control-context-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.halo-control-context-link.halo-active {
  background: rgba(213, 170, 40, 0.14);
  color: #fff;
}

.halo-control-tools {
  grid-column: 2;
  grid-row: 1;
}

.halo-control-tools > summary {
  align-items: center;
  border: 1px solid var(--control-line);
}

.halo-control-tools[open] > summary {
  border-color: var(--halo-gold);
  color: #fff;
}

.halo-control-tools-panel {
  background: #111c30;
  border: 1px solid var(--control-line);
  border-radius: 0.75rem;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.58);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: min(72vh, 640px);
  overflow: auto;
  padding: 1rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  width: min(820px, 88vw);
  z-index: 90;
}

.halo-control-tools-panel .halo-sheet-head {
  background: #111c30;
  border-color: var(--control-line);
}

.halo-control-tools-panel .halo-sheet-head button {
  background: var(--halo-gold);
  color: var(--halo-navy);
}

.halo-control-tools-panel .halo-tools-group-title {
  color: #7f8ea5;
}

.halo-control-tools-panel .halo-tools-group a {
  border-radius: 0.42rem;
  color: #d5deea;
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  padding: 0.52rem 0.58rem;
  text-decoration: none;
}

.halo-control-tools-panel .halo-tools-group a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.halo-control-tools-panel .halo-tools-group a.halo-active {
  background: rgba(213, 170, 40, 0.16);
  color: #fff;
}

.halo-control-original-metrics {
  display: none !important;
}

.halo-control-command-board {
  background:
    radial-gradient(circle at 88% 0%, rgba(213, 170, 40, 0.11), transparent 34%),
    #0d1828;
  border: 1px solid var(--control-line);
  border-radius: 0.85rem;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.75rem;
  padding: 0.75rem;
}

.halo-command-heading {
  align-items: flex-end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  padding: 0 0.15rem;
}

.halo-command-heading > div:first-child > span {
  color: var(--halo-gold);
  display: block;
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.halo-command-heading h1 {
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0.12rem 0 0;
}

.halo-command-heading p {
  color: #8190a6;
  font-size: 0.7rem;
  margin: 0.18rem 0 0;
}

.halo-command-refresh {
  align-items: center;
  color: #91a0b5;
  display: flex;
  font-size: 0.66rem;
  gap: 0.42rem;
  white-space: nowrap;
}

.halo-command-refresh span {
  background: #49d49d;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(73, 212, 157, 0.12);
  height: 0.44rem;
  width: 0.44rem;
}

.halo-command-lanes {
  align-items: start;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(230px, 0.86fr) minmax(330px, 1.3fr) minmax(285px, 1fr);
}

.halo-command-lane {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.68rem;
  min-width: 0;
  padding: 0.62rem;
}

.halo-command-lane-head {
  align-items: center;
  display: flex;
  gap: 0.52rem;
  margin-bottom: 0.52rem;
}

.halo-command-lane-head > span {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #8090a7;
  display: flex;
  font-size: 0.58rem;
  font-weight: 900;
  height: 1.55rem;
  justify-content: center;
  width: 1.55rem;
}

.halo-command-lane-head strong,
.halo-command-lane-head small {
  display: block;
}

.halo-command-lane-head strong {
  color: #f5f8fc;
  font-size: 0.79rem;
  letter-spacing: 0.01em;
}

.halo-command-lane-head small {
  color: #7f8da1;
  font-size: 0.6rem;
  margin-top: 0.04rem;
}

.halo-command-metric {
  background: #131f32;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0.55rem !important;
  color: #edf3fb;
  display: block !important;
  font-size: 0.73rem;
  line-height: 1.38;
  min-height: 0 !important;
  padding: 0.58rem !important;
  text-decoration: none;
}

.halo-command-metric:hover {
  background: #18263b;
  border-color: rgba(213, 170, 40, 0.45) !important;
}

.halo-command-metric-alert {
  border-color: rgba(238, 91, 98, 0.42) !important;
}

.halo-command-metric-weather {
  border-color: rgba(96, 165, 250, 0.38) !important;
}

.halo-command-metric > div:first-child {
  color: #aab7c9 !important;
  font-size: 0.61rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.1em !important;
  margin-bottom: 0.28rem !important;
  text-transform: uppercase;
}

.halo-command-metric [class*="grid"] {
  gap: 0.1rem !important;
}

.halo-command-metric [class*="text-xs"] {
  font-size: 0.68rem !important;
}

.halo-command-links {
  display: grid;
  gap: 0.34rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.44rem;
}

.halo-command-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.42rem;
  color: #d7e0eb;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 800;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.35rem;
  text-align: center;
  text-decoration: none;
}

.halo-command-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.halo-command-primary {
  background: var(--halo-gold);
  border-color: var(--halo-gold);
  color: var(--halo-navy);
}

.halo-command-primary:hover {
  background: #e4bc43;
  color: var(--halo-navy);
}

.halo-command-danger {
  border-color: rgba(238, 91, 98, 0.62);
  color: #ffb2b6;
}

.halo-command-site-metrics {
  display: grid;
  gap: 0.38rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.halo-command-quiet {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.halo-command-quiet span {
  background: rgba(73, 212, 157, 0.08);
  border: 1px solid rgba(73, 212, 157, 0.24);
  border-radius: 999px;
  color: #8fa0b4;
  flex: 1;
  font-size: 0.6rem;
  padding: 0.28rem 0.42rem;
  text-align: center;
}

.halo-command-quiet b {
  color: #7de0b9;
}

.halo-command-quiet .halo-not-clear {
  background: rgba(238, 91, 98, 0.1);
  border-color: rgba(238, 91, 98, 0.38);
}

.halo-command-quiet .halo-not-clear b {
  color: #ff9da2;
}

.halo-alert-sources {
  display: grid;
  gap: 0.3rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.4rem;
}

.halo-alert-source {
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.42rem;
  color: #cbd6e5;
  display: grid;
  gap: 0.1rem 0.45rem;
  grid-template-columns: 1fr;
  padding: 0.38rem 0.46rem;
  text-decoration: none;
}

a.halo-alert-source:hover {
  background: rgba(255, 255, 255, 0.06);
}

.halo-alert-source > span {
  font-size: 0.66rem;
  font-weight: 800;
}

.halo-alert-source > b {
  border-radius: 999px;
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  padding: 0.16rem 0.32rem;
  justify-self: start;
  text-transform: uppercase;
}

.halo-alert-source > small {
  color: #78879b;
  font-size: 0.56rem;
  display: none;
  grid-column: 1 / -1;
}

.halo-source-live {
  background: rgba(73, 212, 157, 0.14);
  color: #7de0b9;
}

.halo-source-config {
  background: rgba(96, 165, 250, 0.14);
  color: #9fc8ff;
}

.halo-source-needed {
  background: rgba(245, 184, 65, 0.14);
  color: #f5c867;
}

.halo-weather-advisory {
  color: #8997aa;
  font-size: 0.56rem;
  line-height: 1.35;
  margin: 0.4rem 0 0;
}

.halo-control-live-grid {
  gap: 0.65rem !important;
  grid-template-columns: minmax(360px, 1.45fr) minmax(220px, 0.8fr) minmax(220px, 0.8fr) !important;
  margin-top: 0.65rem !important;
}

.halo-control-live-grid [class*="min-h-"] {
  min-height: 0 !important;
}

.halo-control-app main {
  padding: 1rem !important;
}

.halo-control-app main .halo-card,
.halo-control-app main section.rounded,
.halo-control-app main [class*="bg-[#182236]"] {
  border-color: var(--control-line) !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.13);
}

.halo-control-app .halo-section-title {
  color: #f4f7fb;
}

.halo-dashboard-metrics {
  align-items: stretch;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

@media (max-width: 1100px) {
  .halo-event-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

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

  .halo-workspace-quick a:nth-child(n + 5) {
    display: none;
  }

  .halo-dashboard-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

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

  .halo-command-conditions {
    grid-column: 1 / -1;
  }

  .halo-control-live-grid {
    grid-template-columns: minmax(360px, 1.3fr) minmax(250px, 0.9fr) !important;
  }

  .halo-control-live-grid > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .halo-app-shell {
    display: block !important;
  }

  .halo-global-nav {
    display: none !important;
  }

  .halo-mobile-appbar {
    align-items: center;
    background: var(--halo-navy);
    color: #fff;
    display: grid;
    gap: 0.35rem;
    grid-template-columns: 1fr auto auto auto;
    min-height: 3.45rem;
    padding: 0.45rem 0.65rem;
    position: sticky;
    top: 0;
    z-index: 60;
  }

  .halo-mobile-appbar.halo-has-event-control {
    grid-template-columns: 1fr auto auto auto;
  }

  .halo-mobile-appbar.halo-has-event-control > a[href="/reports"] {
    display: none;
  }

  .halo-mobile-appbar > a,
  .halo-mobile-menu > summary {
    border-radius: 0.42rem;
    color: #d5deea;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 750;
    padding: 0.55rem 0.6rem;
    text-decoration: none;
  }

  .halo-mobile-appbar > a.halo-active {
    background: rgba(213, 170, 40, 0.16);
    color: #fff;
  }

  .halo-mobile-brand {
    font-size: 1.05rem !important;
    font-weight: 850 !important;
    letter-spacing: -0.02em;
    padding-left: 0.2rem !important;
  }

  .halo-mobile-brand span {
    color: var(--halo-gold);
  }

  .halo-mobile-control {
    background: var(--halo-gold) !important;
    color: var(--halo-navy) !important;
    white-space: nowrap;
  }

  .halo-mobile-live-dashboard {
    background: #e9f7ef !important;
    color: #14532d !important;
    white-space: nowrap;
  }

  .halo-mobile-menu > summary {
    background: rgba(255, 255, 255, 0.08);
  }

  .halo-mobile-menu-panel,
  .halo-workspace-panel,
  .halo-control-tools-panel {
    background: #fff;
    border: 1px solid var(--halo-line);
    border-radius: 0.75rem;
    bottom: 4.8rem;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.36);
    display: block;
    height: calc(100dvh - 5.55rem);
    left: 0.75rem;
    max-height: none;
    overflow: auto;
    padding: 1rem;
    position: fixed;
    right: 0.75rem;
    top: 0.75rem;
    width: auto;
    z-index: 100;
  }

  .halo-mobile-menu-panel {
    color: var(--halo-ink);
  }

  .halo-mobile-menu-panel .halo-tools-group,
  .halo-workspace-panel .halo-tools-group,
  .halo-control-tools-panel .halo-tools-group {
    margin-bottom: 1rem;
  }

  .halo-app-main {
    padding: 1rem 0.85rem 5.5rem !important;
  }

  .halo-event-page {
    padding-top: 0.65rem !important;
  }

  .halo-event-eyebrow {
    font-size: 0.56rem !important;
    margin-bottom: 0.14rem !important;
  }

  .halo-event-title {
    font-size: clamp(1.42rem, 7vw, 1.85rem) !important;
    line-height: 1.02 !important;
  }

  .halo-event-meta {
    font-size: 0.73rem !important;
    line-height: 1.2;
    margin-top: 0.22rem !important;
  }

  .halo-event-overview-grid {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
  }

  .halo-page-title {
    font-size: clamp(1.8rem, 9vw, 2.45rem) !important;
  }

  .halo-workspace-nav {
    display: grid;
    gap: 0.4rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0.55rem -0.1rem 0.65rem;
    padding: 0.3rem;
    top: 3.7rem;
  }

  .halo-workspace-quick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .halo-workspace-quick a {
    justify-content: center;
    text-align: center;
  }

  .halo-workspace-quick a:nth-child(n + 3) {
    display: none;
  }

  .halo-workspace-tools > summary {
    padding-inline: 0.65rem;
  }

  .halo-workspace-control {
    display: none;
  }

  .halo-workspace-live-dashboard {
    display: none;
  }

  .halo-workspace-panel .halo-sheet-head,
  .halo-mobile-menu-panel .halo-sheet-head {
    background: #fff;
  }

  .halo-control-header {
    gap: 0.5rem !important;
    padding: 0.6rem 0.7rem !important;
  }

  .halo-control-actions {
    gap: 0.38rem !important;
    width: auto;
  }

  .halo-control-actions > button[title*="Command"],
  .halo-control-actions > span:first-child {
    display: none !important;
  }

  .halo-control-actions > .num {
    font-size: 1rem !important;
  }

  .halo-control-actions > button:last-child {
    font-size: 0 !important;
    min-height: 2rem;
    padding-inline: 0.62rem !important;
  }

  .halo-control-actions > button:last-child::after {
    content: "+ Incident";
    font-size: 0.68rem;
  }

  .halo-control-product {
    border-right: 0;
    padding-right: 0;
  }

  .halo-control-product small,
  .halo-control-event-title > :last-child {
    display: none;
  }

  .halo-control-event-title {
    flex: 1;
    min-width: 120px;
  }

  .halo-control-event-title > :first-child {
    font-size: 0.84rem !important;
  }

  .halo-control-exit {
    font-size: 0;
    padding: 0.5rem;
  }

  .halo-control-exit::before {
    content: "Halo Ops";
    font-size: 0.68rem;
  }

  .halo-control-live-dashboard {
    font-size: 0;
    padding: 0.5rem;
  }

  .halo-control-live-dashboard::before {
    content: "Live Ops";
    font-size: 0.68rem;
  }

  .halo-control-log-link {
    font-size: 0;
    padding: 0.5rem;
  }

  .halo-control-log-link::before {
    content: "Control log";
    font-size: 0.68rem;
  }

  .halo-control-log-app .halo-control-product > span:last-child,
  .halo-control-log-app .halo-control-exit {
    display: none;
  }

  .halo-control-quick-nav {
    min-width: 0;
  }

  .halo-control-work-areas {
    gap: 0.12rem;
  }

  .halo-control-work-area {
    font-size: 0.59rem;
    justify-content: center;
    letter-spacing: 0;
    min-width: max-content;
    padding-inline: 0.55rem;
    text-align: center;
    white-space: nowrap;
  }

  .halo-control-work-area::before {
    display: none;
  }

  .halo-control-context-link {
    font-size: 0.61rem;
    padding: 0.42rem 0.5rem;
  }

  .halo-control-tools > summary {
    padding-inline: 0.55rem;
  }

  .halo-control-tools-panel,
  .halo-control-tools-panel .halo-sheet-head {
    background: #111c30;
    border-color: var(--control-line);
    color: #f4f7fb;
  }

  .halo-control-tools-panel .halo-tools-group a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-block: 0.68rem;
  }

  .halo-control-app main {
    padding: 0.8rem !important;
  }

  .halo-control-command-board {
    border-radius: 0.7rem;
    padding: 0.55rem;
  }

  .halo-command-heading {
    align-items: flex-start;
    margin-bottom: 0.5rem;
  }

  .halo-command-heading p,
  .halo-command-refresh {
    display: none;
  }

  .halo-command-lanes {
    grid-template-columns: 1fr;
  }

  .halo-command-conditions {
    grid-column: auto;
  }

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

  .halo-alert-sources {
    grid-template-columns: 1fr;
  }

  .halo-alert-source {
    grid-template-columns: 1fr auto;
  }

  .halo-alert-source > b {
    justify-self: auto;
  }

  .halo-alert-source > small {
    display: block;
  }

  .halo-command-site-metrics > :last-child {
    grid-column: 1 / -1;
  }

  .halo-control-live-grid {
    grid-template-columns: 1fr !important;
  }

  .halo-control-live-grid > :last-child {
    grid-column: auto;
  }

  .halo-dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .halo-dashboard-metrics > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .halo-mobile-appbar > a:not(.halo-mobile-brand):nth-of-type(3) {
    display: none;
  }

  .halo-control-mark {
    height: 1.8rem;
    width: 1.8rem;
  }

  .halo-control-product strong {
    font-size: 0.74rem;
  }

  .halo-command-link {
    font-size: 0.58rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .halo-global-nav > a,
  .halo-workspace-panel,
  .halo-control-tools-panel {
    scroll-behavior: auto;
    transition: none;
  }
}
