.ttu-board,
.ttu-dashboard,
.ttu-auth,
.ttu-merch {
  --ttu-navy: #13162f;
  --ttu-blue: #0089f7;
  --ttu-blue-ink: #055a9e;
  --ttu-orange: #e06a12;
  --ttu-orange-ink: #8a3d08;
  --ttu-ice: #e6f0f8;
  --ttu-paper: #f4f7fb;
  --ttu-line: #d5deea;
  --ttu-ink: #161922;
  --ttu-muted: #4a4f63;
  --ttu-card: #fff;
  color: var(--ttu-ink);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.45;
}

.ttu-board {
  position: relative;
  background: var(--ttu-paper);
  border: 1px solid var(--ttu-line);
  border-radius: 18px;
  overflow: hidden;
  color: var(--ttu-ink);
}

.ttu-board h2,
.ttu-board h3,
.ttu-board h3 a,
.ttu-board h2 a,
.ttu-board p,
.ttu-board li,
.ttu-board label,
.ttu-card h3,
.ttu-card h3 a,
.ttu-detail h3,
.ttu-detail h3 a,
.ttu-dashboard h2,
.ttu-dashboard h3,
.ttu-dashboard h3 a,
.ttu-dashboard p,
.ttu-dashboard label,
.ttu-auth h2,
.ttu-auth p,
.ttu-auth label {
  color: #13162f;
}

.ttu-board a,
.ttu-detail a,
.ttu-dashboard a,
.ttu-auth a {
  color: #055a9e;
}

.ttu-hero,
.ttu-hero h2,
.ttu-hero p {
  color: #fff;
}

.ttu-hero .ttu-brand {
  color: #b9dcff;
}

.ttu-card h3,
.ttu-company {
  color: #13162f;
}

.ttu-skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ttu-skip:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px 12px;
  overflow: visible;
  clip: auto;
  z-index: 30;
  background: #fff;
  color: #13162f;
  border-radius: 8px;
  outline: 3px solid var(--ttu-blue);
}

.ttu-board input,
.ttu-board select,
.ttu-dashboard input,
.ttu-dashboard select,
.ttu-auth input,
.ttu-auth select {
  color: #161922;
  background: #fff;
}

.ttu-hero {
  background: var(--ttu-navy);
  color: #fff;
  padding: 28px 24px 22px;
}

.ttu-hero h2,
.ttu-dashboard h2,
.ttu-auth h2 {
  font-size: 2rem;
  line-height: 1.1;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.ttu-brand {
  margin: 0 0 6px;
  color: #8ec8ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ttu-hero p {
  max-width: 62ch;
  margin: 0;
  color: #d5e4f5;
}

.ttu-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  padding: 14px;
  background: var(--ttu-ice);
  align-items: end;
}

.ttu-filters label,
.ttu-form label,
.ttu-contact label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ttu-navy);
  margin-bottom: 4px;
}

.ttu-board input,
.ttu-board select,
.ttu-board textarea,
.ttu-dashboard input,
.ttu-dashboard select,
.ttu-dashboard textarea,
.ttu-auth input,
.ttu-auth select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #b7c6d8;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ttu-ink);
  font: inherit;
}

.ttu-board textarea,
.ttu-dashboard textarea {
  min-height: 96px;
}

.ttu-board button,
.ttu-dashboard button,
.ttu-auth button,
.ttu-text-btn {
  min-height: 44px;
  border-radius: 999px;
  border: 0;
  background: var(--ttu-navy);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
}

.ttu-text-btn {
  background: transparent;
  color: var(--ttu-blue-ink);
  padding-left: 0;
}

.ttu-board button:focus-visible,
.ttu-dashboard button:focus-visible,
.ttu-auth button:focus-visible,
.ttu-board a:focus-visible,
.ttu-dashboard a:focus-visible,
.ttu-board input:focus-visible,
.ttu-board select:focus-visible,
.ttu-dashboard input:focus-visible,
.ttu-dashboard select:focus-visible,
.ttu-dashboard textarea:focus-visible {
  outline: 3px solid var(--ttu-blue);
  outline-offset: 2px;
}

.ttu-pane-toggle {
  display: none;
  gap: 8px;
  padding: 10px 14px 0;
}

.ttu-pane-toggle button[aria-pressed="true"] {
  background: var(--ttu-blue);
}

.ttu-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 0;
  min-height: 640px;
}

.ttu-map-wrap {
  position: relative;
  border-right: 1px solid var(--ttu-line);
  background: #d3e0ea;
}

.ttu-map {
  height: 560px;
  background: #d3e0ea;
}

.ttu-state-label,
.ttu-state-label .ttu-state-name,
.ttu-state-leader {
  pointer-events: none !important;
}

.ttu-state-label {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
}

.ttu-state-name {
  color: #142033;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 1px 0 #fff;
}

.ttu-state-label.is-callout .ttu-state-name {
  position: absolute;
  transform: translate(0, -50%);
}

.ttu-state-leader {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
  width: 80px;
  height: 48px;
}

.ttu-state-leader line {
  stroke: #5d6b80;
  stroke-width: 1;
}

.ttu-map img {
  max-width: none !important;
}

.ttu-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 500;
  padding: 10px 12px 0;
}

.ttu-swatch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #13162f;
  box-shadow: 0 6px 16px rgba(19, 22, 47, 0.12);
}

.ttu-swatch .ttu-icon { width: 18px; height: 18px; }
.ttu-swatch-field .ttu-icon { color: var(--ttu-blue); }
.ttu-swatch-desk .ttu-icon { color: #7c3aed; }
.ttu-swatch-hiring .ttu-icon { color: var(--ttu-orange); }

.leaflet-container .leaflet-marker-icon.ttu-pin,
.leaflet-div-icon.ttu-pin,
.ttu-pin {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--ttu-blue);
}

.leaflet-container .leaflet-marker-icon.ttu-pin-field,
.leaflet-container .leaflet-marker-icon.ttu-pin-seeker,
.ttu-pin-field,
.ttu-pin-seeker { color: var(--ttu-blue); }
.leaflet-container .leaflet-marker-icon.ttu-pin-desk,
.ttu-pin-desk { color: #7c3aed; }
.leaflet-container .leaflet-marker-icon.ttu-pin-hiring,
.leaflet-container .leaflet-marker-icon.ttu-pin-job,
.ttu-pin-hiring,
.ttu-pin-job { color: var(--ttu-orange); }

.ttu-pin-glyphs {
  display: flex;
  gap: 1px;
  position: relative;
  z-index: 1;
}

.ttu-pin .ttu-icon {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 1px 1px rgba(19, 22, 47, 0.45));
}

.ttu-map[data-ttu-zoom="low"] .ttu-pin .ttu-icon {
  width: 16px;
  height: 16px;
}

.ttu-map[data-ttu-zoom="mid"] .ttu-pin .ttu-icon {
  width: 22px;
  height: 22px;
}

.ttu-icon {
  display: block;
  width: 14px;
  height: 14px;
}

.ttu-chips .ttu-icon,
.ttu-role-line .ttu-icon {
  width: 16px;
  height: 16px;
}

.ttu-public-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 8px 0;
}
.ttu-public-contact a {
  color: #055a9e;
  font-weight: 700;
  min-height: 44px;
  line-height: 44px;
}

.ttu-shape {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 0.3em;
  vertical-align: -0.05em;
}
.ttu-shape-field { background: var(--ttu-blue); border-radius: 50%; }
.ttu-shape-desk {
  background: #7c3aed;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.ttu-shape-hiring { background: var(--ttu-orange); border-radius: 2px; }

.ttu-cluster {
  background: var(--ttu-navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-weight: 700;
  border: 2px solid #fff;
}

.ttu-detail[hidden] {
  display: none;
}

.ttu-detail {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: rgba(19, 22, 47, 0.5);
}

.ttu-detail-panel {
  width: min(640px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  background: #fff;
  color: #13162f;
  border-radius: 16px;
  padding: 16px 16px 20px;
  box-shadow: 0 16px 40px rgba(19, 22, 47, 0.28);
}

.ttu-detail-panel h3,
.ttu-detail-panel p,
.ttu-detail-panel li {
  color: #13162f;
}

.ttu-detail-close {
  min-height: 44px;
  min-width: 44px;
}

body.ttu-detail-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .ttu-detail {
    align-items: stretch;
    padding: 8px;
  }
  .ttu-detail-panel {
    max-height: none;
    height: 100%;
  }
}

.ttu-map-status,
.ttu-attr,
.ttu-note,
.ttu-count {
  margin: 0;
  padding: 8px 12px 12px;
  color: var(--ttu-muted);
  font-size: 0.88rem;
}

.ttu-list {
  padding: 8px 12px 20px;
  max-height: 760px;
  overflow: auto;
}

.ttu-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ttu-card {
  background: var(--ttu-card);
  border: 1px solid var(--ttu-line);
  border-left: 6px solid var(--ttu-blue);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(19, 22, 47, 0.05);
}

.ttu-card-field { border-left-color: var(--ttu-blue); }
.ttu-card-desk { border-left-color: #7c3aed; }
.ttu-card-hiring,
.ttu-card-job { border-left-color: var(--ttu-orange); }
.ttu-card.is-demo { outline: 1px dashed var(--ttu-navy); }
.ttu-card.is-active { outline: 3px solid var(--ttu-blue); }

.ttu-card h3 {
  margin: 4px 0;
  font-size: 1.15rem;
}

.ttu-kicker {
  color: var(--ttu-blue-ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ttu-card-field .ttu-kicker { color: var(--ttu-blue-ink); }
.ttu-card-desk .ttu-kicker { color: #5b21b6; }
.ttu-card-hiring .ttu-kicker,
.ttu-card-job .ttu-kicker { color: var(--ttu-orange-ink); }

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

.ttu-chips {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.ttu-chips li,
.ttu-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--ttu-ice);
  color: #13162f;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.82rem;
  font-weight: 700;
}

.ttu-pill[hidden],
#ttu-detail-demo[hidden] {
  display: none !important;
}

.ttu-pill-demo { background: #fff4e8; color: var(--ttu-orange-ink); }
.ttu-company { font-weight: 700; margin: 0; }
.ttu-place { color: var(--ttu-muted); }
.ttu-summary p { margin: 0 0 8px; }
.ttu-banner {
  margin: 12px 14px 0;
  padding: 10px 12px;
  background: #e8f7ee;
  border-radius: 10px;
}
.ttu-banner-bad { background: #fff1f2; color: #9f1239; }
.ttu-empty { padding: 12px; background: #fff; border-radius: 12px; }
.ttu-video video { width: 100%; border-radius: 10px; background: #000; }
.ttu-hp {
  position: absolute !important;
  left: -10000px !important;
  height: 0;
  overflow: hidden;
}

.ttu-dashboard,
.ttu-auth {
  background: #fff;
  border: 1px solid var(--ttu-line);
  border-radius: 18px;
  padding: 22px;
}

.ttu-dashboard h2 { color: var(--ttu-navy); }
.ttu-form {
  display: grid;
  gap: 12px;
  margin: 16px 0 28px;
  padding-top: 8px;
  border-top: 1px solid var(--ttu-line);
}
.ttu-checks { display: grid; gap: 8px; }
.ttu-role-line { display: inline-flex; align-items: center; gap: 6px; margin: 0 12px 8px 0; }
.ttu-checks label { font-weight: 600; font-size: 0.95rem; }
.ttu-checks input { width: auto; min-height: 0; }
.ttu-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ttu-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ttu-ice);
  font-size: 0.78rem;
  font-weight: 700;
}

.ttu-canvas {
  margin: 0;
  background: var(--ttu-paper, #f4f7fb);
  color: #161922;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}
.ttu-canvas-bar {
  background: #13162f;
  color: #fff;
  padding: 18px 22px;
}
.ttu-canvas-bar strong { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; color: #8ec8ff; }
.ttu-canvas-bar h1 { margin: 4px 0 0; font-size: 1.8rem; }
.ttu-canvas main { max-width: 1180px; margin: 0 auto; padding: 18px; }
.ttu-canvas-foot { max-width: 1180px; margin: 0 auto; padding: 0 18px 28px; color: #4a4f63; font-size: 0.9rem; }

@media (max-width: 1279px) {
  .ttu-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .ttu-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ttu-split { grid-template-columns: 1fr; }
  .ttu-map { height: 460px; }
  .ttu-map-wrap { border-right: 0; border-bottom: 1px solid var(--ttu-line); }
  .ttu-list { max-height: none; }
}

@media (max-width: 768px) {
  .ttu-filters { grid-template-columns: 1fr; }
  .ttu-pane-toggle { display: flex; }
  .ttu-board[data-pane="list"] .ttu-map-wrap { display: none; }
  .ttu-board[data-pane="map"] .ttu-list { display: none; }
  .ttu-grid-2 { grid-template-columns: 1fr; }
  .ttu-hero { padding: 22px 16px 18px; }
  .ttu-hero h2 { font-size: 1.7rem; }
  .ttu-card h3 { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ttu-board *, .ttu-dashboard * { scroll-behavior: auto; }
}
