/* Admin portal layout overrides */
.admin-layout {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.admin-map-panel {
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.2rem;
}

.admin-row {
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
  width: 100%;
}

.admin-half-panel {
  flex: 1 1 0;
  min-width: 0;
}

.shape-forms-row {
  display: flex;
  gap: 1rem;
  margin-top: 0.8rem;
  align-items: flex-start;
}

.shape-form-card {
  flex: 1 1 0;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.shape-form-card h3 {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.area-row {
  cursor: grab;
}

.area-row.dragging {
  opacity: 0.55;
}

.area-row.drop-before td {
  border-top: 2px solid var(--accent);
}

.area-row.drop-after td {
  border-bottom: 2px solid var(--accent);
}

@media (max-width: 900px) {
  .admin-row {
    flex-direction: column;
    gap: 0.8rem;
  }
  .admin-half-panel {
    width: 100%;
  }
  .shape-forms-row {
    flex-direction: column;
    gap: 0.75rem;
  }
}
:root {
  --bg: #f3efe6;
  --panel: #fffdf7;
  --text: #16202a;
  --accent: #2a6f97;
  --accent-alt: #d97706;
  --good: #1f8a70;
  --warn: #c2410c;
  --muted: #6b7280;
  --line: #d1c7b8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Mono", "Fira Sans", sans-serif;
  color: var(--text);
  background: #fbfaf7;
  min-height: 100vh;
}

header {
  height: 3.75rem;
  padding: 0 1.25rem;
  border-bottom: 2px solid var(--line);
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: visible;
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(3px);
  position: relative;
}

h1 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.map-page main {
  grid-template-columns: minmax(0, 2.6fr) minmax(280px, 1fr);
}

.insights-card {
  grid-column: 2;
  align-self: start;
  min-width: 0;
  overflow-wrap: anywhere;
}

.map-main-card {
  grid-column: 1;
}

.insights-card .stats-table {
  table-layout: fixed;
}

.insights-card .stats-table th,
.insights-card .stats-table td {
  white-space: normal;
  word-break: break-word;
}

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

@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
  }

  .insights-card,
  .map-main-card,
  .wide-card {
    grid-column: 1;
  }
}

.login-popover {
  position: absolute;
  right: 1.25rem;
  top: calc(100% + 0.4rem);
  width: min(320px, calc(100vw - 2rem));
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  z-index: 50;
}

.login-popover form {
  gap: 0.5rem;
}

.tab-row {
  display: flex;
  gap: 0.45rem;
}

.tab-btn {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 700;
}

.tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.team-popover {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  padding: 0.35rem 0.5rem;
}

.team-popover summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
}

.team-popover-list {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.team-popover-item {
  font-size: 0.74rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.14rem 0.5rem;
  background: #fff;
}

.panel {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 2px dashed var(--line);
  background: rgba(173, 216, 242, 0.42);
  touch-action: none;
}

.map-wrap.pannable {
  cursor: grab;
}

.map-wrap.dragging {
  cursor: grabbing;
}

.map-content {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
}

.map-shape {
  position: absolute;
  border: 2px solid #475569;
  opacity: 0.95;
  pointer-events: none;
  transform-origin: center center;
}

.map-shape-rectangle {
  border-radius: 6px;
}

.map-shape-circle {
  border-radius: 50%;
}

.map-shape-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.admin-shape-editor {
  margin-bottom: 0.8rem;
  min-height: 260px;
}

.admin-shape-layer {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: top left;
  will-change: transform;
}

.admin-grid-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.12) 1px, transparent 1px);
  background-repeat: repeat;
}

.admin-shape-editor {
  overflow: hidden;
}

#editorGridSize {
  width: 5rem;
}

.admin-seat-marker {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #334155;
  background: rgba(71, 85, 105, 0.55);
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: move;
}

.admin-seat-marker.selected {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.22);
}

.admin-shape {
  position: absolute;
  border: 2px solid #2563eb;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  cursor: move;
  transform-origin: center center;
}

.admin-shape.rectangle {
  border-radius: 8px;
}

.admin-shape.circle {
  border-radius: 50%;
}

.admin-shape.selected {
  outline: 2px dashed #f97316;
  outline-offset: 2px;
}

.admin-shape-pill {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #0f172a;
  white-space: nowrap;
  pointer-events: none;
}

.admin-shape-handle {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border: 2px solid #ea580c;
  background: #fff;
  border-radius: 4px;
  cursor: nwse-resize;
  padding: 0;
}

.admin-shape-rotate-handle {
  position: absolute;
  left: 50%;
  top: -16px;
  width: 12px;
  height: 12px;
  transform: translateX(-50%);
  border: 2px solid #0891b2;
  background: #fff;
  border-radius: 50%;
  cursor: grab;
  padding: 0;
}

.seat-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.15s ease;
}

.seat-dot.assigned-compass {
  border-color: #111111;
}

.seat-dot.assigned-compass::before,
.seat-dot.assigned-compass::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
}

.seat-dot.assigned-compass::before {
  width: 3px;
  height: 32px;
  transform: translate(-50%, -50%);
  background: linear-gradient(to bottom, #111111 0 24%, transparent 24% 76%, #111111 76% 100%);
}

.seat-dot.assigned-compass::after {
  width: 32px;
  height: 3px;
  transform: translate(-50%, -50%);
  background: linear-gradient(to right, #111111 0 24%, transparent 24% 76%, #111111 76% 100%);
}

.seat-dot:hover {
  transform: translate(-50%, -50%) scale(1.15);
}

.seat-label {
  position: absolute;
  transform: translate(-50%, 10px);
  font-size: 0.7rem;
  font-weight: 700;
  color: #111827;
  pointer-events: none;
}

.seat-overlay-container {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.seat-name-overlay {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%);
  background: #fffdf7;
  color: #16202a;
  font-size: 1rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #e5ddd0;
  white-space: nowrap;
  max-width: calc(100% - 16px);
  pointer-events: none;
  z-index: 20;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.zoom-input {
  width: 60px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: center;
}

.zoom-input:hover {
  border-color: var(--accent);
}

.zoom-input:focus {
  outline: none;
  border-color: var(--accent);
  background: #f9f9f9;
}

form {
  display: grid;
  gap: 0.6rem;
}

input,
select,
textarea,
button {
  font: inherit;
  border-radius: 8px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c5b9a4;
  padding: 0.5rem 0.65rem;
  background: #fff;
}

button {
  border: 0;
  padding: 0.55rem 0.85rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button.secondary {
  background: var(--accent-alt);
}

button.ghost {
  background: #fff;
  color: #111827;
  border: 1px solid #9ca3af;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.4rem;
  border-bottom: 1px solid #e5ddd0;
  font-size: 0.86rem;
}

.flex-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.editor-toolbar {
  row-gap: 0.45rem;
}

.editor-toolbar > * {
  flex: 0 0 auto;
  min-width: fit-content;
}

.editor-toolbar label {
  white-space: nowrap;
}

.editor-toolbar input[type="checkbox"] {
  width: auto;
  height: auto;
  margin: 0;
}

.editor-toolbar button,
.editor-toolbar .zoom-input,
.editor-toolbar select,
.editor-toolbar input {
  flex-shrink: 0;
}

.hidden {
  display: none !important;
}

.notice {
  font-size: 0.9rem;
  color: var(--muted);
}

.floor-toggle {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.floor-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.floor-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.legend {
  display: grid;
  gap: 0.4rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
}

.team-checkboxes {
  display: grid;
  gap: 0.35rem;
}

.team-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.87rem;
  cursor: pointer;
  padding: 0.25rem 0;
}

.team-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.team-ring-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid currentColor;
  background: transparent;
  flex-shrink: 0;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-top: 0.25rem;
}

.stats-table th,
.stats-table td {
  text-align: center;
  padding: 0.3rem 0.4rem;
  border-bottom: 1px solid #e5ddd0;
}

.stats-table th:first-child,
.stats-table td:first-child {
  text-align: left;
}

.status-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

.legend-swatch {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.2);
}

.legend-swatch.compass-assigned {
  border-color: #111111;
}

.legend-swatch.compass-assigned::before,
.legend-swatch.compass-assigned::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
}

.legend-swatch.compass-assigned::before {
  width: 3px;
  height: 20px;
  transform: translate(-50%, -50%);
  background: linear-gradient(to bottom, #111111 0 24%, transparent 24% 76%, #111111 76% 100%);
}

.legend-swatch.compass-assigned::after {
  width: 20px;
  height: 3px;
  transform: translate(-50%, -50%);
  background: linear-gradient(to right, #111111 0 24%, transparent 24% 76%, #111111 76% 100%);
}

.historical-data-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
}

.history-table-wrap {
  max-height: 300px;
  overflow: auto;
  border: 1px solid #e5ddd0;
  border-radius: 8px;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.history-table th,
.history-table td {
  padding: 0.28rem 0.32rem;
  border-bottom: 1px solid #efe7db;
  text-align: center;
  white-space: nowrap;
}

.history-table th:first-child,
.history-table td:first-child {
  text-align: left;
}

.history-status-cell {
  width: 18px;
  min-width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.history-status-green { background: #22c55e; }
.history-status-orange { background: #f97316; }
.history-status-red { background: #ef4444; }

/* ── Shared nav & header additions ──────────────────────────────────────────── */
.site-brand {
  flex: 1;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

.site-brand:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 0.2rem;
  align-items: center;
}

.nav-link {
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
  background: #ede8e0;
  color: var(--text);
}

.nav-link.active {
  background: var(--accent);
  color: #fff;
}

/* ── Shared header right-group ─────────────────────────────────────────────── */
.header-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Home page layout ────────────────────────────────────────────────────────── */
.home-page body,
body.home-page {
  background: var(--bg);
}

.home-main {
  display: block;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  padding: 3.5rem 1rem 2.5rem;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.18;
}

.hero-glow-1 {
  width: 480px;
  height: 220px;
  background: var(--accent);
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-glow-2 {
  width: 320px;
  height: 160px;
  background: var(--accent-alt);
  top: 80px;
  left: 55%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(42, 111, 151, 0.1);
  border: 1px solid rgba(42, 111, 151, 0.25);
  border-radius: 999px;
  padding: 0.2rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}

.hero-badge-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-family: "Space Mono", monospace;
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0 0 0.6rem;
  color: var(--accent);
}

.hero-tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.6rem;
}

.hero-sub {
  font-size: 0.97rem;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 1.8rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-primary {
  padding: 0.65rem 1.35rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.15s;
  box-shadow: 0 4px 14px rgba(42, 111, 151, 0.3);
}

.cta-primary:hover { opacity: 0.88; }

.cta-secondary {
  padding: 0.65rem 1.35rem;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: background 0.15s;
}

.cta-secondary:hover { background: #f0ebe3; }

/* ── Home map widget ─────────────────────────────────────────────────────────── */
.home-map-section {
  margin-bottom: 1.75rem;
}

.home-map-card {
  padding: 0.85rem;
}

.home-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.home-map-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.home-map-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.home-map-wrap {
  /* taller than the full seat-map page, still maintains 16:9 */
  aspect-ratio: 16 / 7;
  pointer-events: none;
}

.home-map-badge {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  color: var(--text);
  pointer-events: none;
  z-index: 5;
}

.home-map-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
}

.home-map-hint a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.home-map-hint a:hover { text-decoration: underline; }

/* ── Feature cards ───────────────────────────────────────────────────────────── */
.feature-section {
  margin-bottom: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.feature-card {
  padding: 1.1rem;
}

.feature-card:hover {
  border-color: var(--accent);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.feature-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
  color: var(--text);
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.home-booth-callout {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.85rem 1rem;
  border-color: rgba(42, 111, 151, 0.3);
  background: rgba(42, 111, 151, 0.04);
}

/* ── About page layout ───────────────────────────────────────────────────────── */
.about-main {
  display: block;
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-section {}

.about-h1 {
  font-family: "Space Mono", monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.65rem;
}

.about-h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.85rem;
}

.about-body {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* Steps grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

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

.step-card {
  padding: 1.1rem;
}

.step-number {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
}

.step-label {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
  color: var(--text);
}

.step-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* Tech pills */
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-pill {
  padding: 0.3rem 0.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

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

.team-card {
  padding: 1.1rem;
  text-align: center;
}

.team-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 115, 234, 0.08), rgba(97, 97, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 0.7rem;
  object-fit: cover;
}

.team-role {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.team-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
