/* Techr design system. Tokens come from the Figma file (docs/design/figma/README.md). */

/* ---------- Tokens ---------- */
:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --c-primary: #0444e7;
  --c-primary-hover: #0337ba;
  --c-primary-soft: #eaf0fe;
  --c-primary-ink: #ffffff;
  --c-brand-ink: #00113c;

  --c-text: #111827;
  --c-text-2: #374151;
  --c-muted: #6b7280;
  --c-subtle: #9ca3af;

  --c-bg: #f9fafb;
  --c-surface: #ffffff;
  --c-surface-2: #f3f4f6;
  --c-border: #e5e7eb;
  --c-border-strong: #d1d5db;

  --c-danger: #dc2626;
  --c-danger-soft: #fef2f2;
  --c-success: #16a34a;
  --c-success-soft: #f0fdf4;
  --c-warning: #ea580c;
  --c-warning-soft: #fff7ed;
  --c-info: var(--c-primary);
  --c-info-soft: var(--c-primary-soft);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 1px rgb(0 14 51 / 0.05);
  --shadow-sm: 0 2px 10px rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 12px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 40px rgb(16 24 40 / 0.14);
  --ring: 0 0 0 3px rgb(4 68 231 / 0.25);

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 48px;

  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;

  --header-h: 88px;
  --container: 1280px;
  --aside-w: 273px;
}

@media (max-width: 767px) {
  :root {
    --header-h: 72px;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  /* Links to #sections land below the sticky header, with a little room, instead of under it. */
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 var(--s-2);
  line-height: 1.25;
  font-weight: 700;
  color: var(--c-text);
}
h1 {
  font-size: var(--fs-2xl);
}
h2 {
  font-size: var(--fs-xl);
}
h3 {
  font-size: var(--fs-lg);
}
h4 {
  font-size: var(--fs-md);
}
p {
  margin: 0 0 var(--s-3);
}
a {
  color: var(--c-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
hr {
  border: 0;
  border-top: 1px solid var(--c-border);
  margin: var(--s-5) 0;
}
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--r-sm);
}
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  display: inline-block;
  vertical-align: -0.2em;
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.muted {
  color: var(--c-muted);
}
.subtle {
  color: var(--c-subtle);
}
.text-sm {
  font-size: var(--fs-sm);
}
.text-xs {
  font-size: var(--fs-xs);
}
.text-center {
  text-align: center;
}
.fw-600 {
  font-weight: 600;
}
.fw-normal {
  font-weight: 400;
}
code {
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--c-surface-2);
}
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.stack-sm {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
}
.spread {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.mt-0 {
  margin-top: 0;
}
.mb-0 {
  margin-bottom: 0;
}
.mt-4 {
  margin-top: var(--s-4);
}
.mt-6 {
  margin-top: var(--s-6);
}
@media (max-width: 767px) {
  .hide-sm {
    display: none !important;
  }
}
@media (min-width: 768px) {
  .hide-md {
    display: none !important;
  }
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-4);
}
@media (min-width: 768px) {
  .container {
    padding: 0 var(--s-7);
  }
}
/* Event pages run nearly full-bleed in the design (content spans ~1690px at 1728px wide). */
.container-wide {
  max-width: 1760px;
}
@media (min-width: 1200px) {
  .container-wide {
    padding: 0 45px;
  }
}
.site-main {
  flex: 1;
  width: 100%;
}
.page {
  padding-top: var(--s-6);
  padding-bottom: var(--s-8);
}
.prose {
  max-width: 72ch;
  color: var(--c-text-2);
}
.prose h1,
.prose h2,
.prose h3 {
  margin-top: var(--s-6);
}
.prose h1:first-child {
  margin-top: 0;
}
.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin: 0 0 var(--s-3);
}
.prose li {
  margin-bottom: var(--s-1);
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--c-brand-ink);
  text-decoration: none;
}
.logo:hover {
  text-decoration: none;
}
.logo-img {
  width: 140px;
  height: auto;
}
@media (max-width: 420px) {
  .logo-img {
    width: 116px;
  }
}

/* ---------- Site header (event / simplified) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(255 255 255 / 0.95);
  backdrop-filter: blur(6px);
}
.site-header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.site-header-end {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

/* Top bar pills (Figma Topbar-navigation): Tools (blue icon circle + label + bold chevron) and the bell. */
.top-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 15px 0 6px;
  border: 3px solid var(--c-surface-2);
  border-radius: 26px;
  background: var(--c-surface);
  font-size: 18px;
  color: #000;
}
.top-circle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
}
.top-circle .icon {
  width: 20px;
  height: 20px;
}
.icon.top-chevron,
.user-pill .icon {
  width: 13px;
  height: 9px;
  color: var(--c-primary);
}
.top-bell {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border: 3px solid var(--c-surface-2);
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-primary);
}
.top-bell > .icon {
  width: 22px;
  height: 22px;
}
.top-bell.has-count > .badge-count {
  top: 0;
  right: -2px;
  min-width: 18px;
  height: 18px;
  border: 0;
  background: #fd0000;
  font-size: 10px;
}

/* ---------- Dropdown menu (details/summary) ---------- */
.menu {
  position: relative;
}
.menu > summary {
  list-style: none;
  cursor: pointer;
}
.menu > summary::-webkit-details-marker {
  display: none;
}
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + var(--s-2));
  min-width: 220px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: var(--s-2);
  z-index: 50;
}
.menu-panel-left {
  right: auto;
  left: 0;
}
.menu-header {
  padding: var(--s-2) var(--s-3);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--s-1);
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px var(--s-4);
  border: 0;
  background: none;
  border-radius: var(--r-sm);
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--c-text);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}
.menu-item:hover {
  background: var(--c-surface-2);
  text-decoration: none;
}
.menu form {
  margin: 0;
}

/* User menu pill (name + chevron + avatar) */
/* Outlined like every top-bar control (Figma manager user-profile): white, 3px #f3f4f6 ring. */
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 10px 0 16px;
  border: 3px solid var(--c-surface-2);
  border-radius: 50px;
  background: var(--c-surface);
  font-size: 18px;
  color: #000;
}
.user-pill .avatar {
  --av: 32px;
}
.user-pill-name {
  max-width: 12ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .user-pill {
    padding-left: var(--s-2);
  }
  .user-pill-name {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--c-surface);
  --btn-fg: var(--c-text);
  --btn-bd: var(--c-border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 42px;
  padding: 0 var(--s-5);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-md);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  text-decoration: none;
  background: var(--c-surface-2);
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-primary {
  --btn-bg: var(--c-primary);
  --btn-fg: var(--c-primary-ink);
  --btn-bd: var(--c-primary);
}
.btn-primary:hover {
  background: var(--c-primary-hover);
  border-color: var(--c-primary-hover);
}
.btn-secondary {
  --btn-bg: var(--c-surface);
  --btn-fg: var(--c-text);
  --btn-bd: var(--c-border-strong);
}
.btn-soft {
  --btn-bg: var(--c-surface-2);
  --btn-fg: var(--c-text);
  --btn-bd: var(--c-surface-2);
}
.btn-soft:hover {
  background: #e9ebef;
}
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--c-primary);
  --btn-bd: transparent;
}
.btn-ghost:hover {
  background: var(--c-primary-soft);
}
.btn-danger {
  --btn-bg: var(--c-danger);
  --btn-fg: #fff;
  --btn-bd: var(--c-danger);
}
.btn-pill {
  border-radius: var(--r-pill);
}
.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: var(--fs-sm);
}
.btn-lg {
  min-height: 47px;
  padding: 0 var(--s-6);
  border-radius: 12px;
  font-size: var(--fs-md);
  font-weight: 700;
}
.btn-block {
  width: 100%;
}
.btn-icon {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: var(--r-pill);
}
.btn-google {
  --btn-bg: var(--c-surface);
  --btn-fg: var(--c-text);
  --btn-bd: var(--c-border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-google svg {
  width: 20px;
  height: 20px;
}

/* ---------- Chips & tags ---------- */
.chip {
  --chip-bg: var(--c-surface);
  --chip-fg: var(--c-text);
  --chip-bd: var(--c-border);
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  min-height: 34px;
  padding: 0 var(--s-4);
  border: 1px solid var(--chip-bd);
  border-radius: var(--r-pill);
  background: var(--chip-bg);
  color: var(--chip-fg);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.chip:hover {
  text-decoration: none;
  border-color: var(--c-border-strong);
}
.chip.is-active,
.chip[aria-pressed="true"] {
  --chip-bg: var(--c-primary);
  --chip-fg: #fff;
  --chip-bd: var(--c-primary);
}
/* Company-type categories (map filters): coloured text, filled when active */
.chip-startup { --cat: #d97706; }
.chip-scaleup { --cat: #ca8a04; }
.chip-accelerator { --cat: #ea7a0c; }
.chip-community { --cat: #0f9488; }
.chip-datacenter { --cat: #0ea5e9; }
.chip-funding { --cat: #dc2626; }
.chip-incubator { --cat: #7c3aed; }
.chip-innovation { --cat: var(--c-primary); }
.chip-university { --cat: #111827; }
.chip-nonprofit { --cat: #db2777; }
[class*="chip-"]:where(.chip) {
  --chip-fg: var(--cat);
  --chip-bd: var(--c-surface);
  box-shadow: var(--shadow-sm);
}
[class*="chip-"]:where(.chip).is-active,
[class*="chip-"]:where(.chip)[aria-pressed="true"] {
  --chip-bg: var(--cat);
  --chip-fg: #fff;
  --chip-bd: var(--cat);
}

/* Pastel tags (idea categories, industries) */
.tag {
  --tag-bg: var(--c-surface-2);
  --tag-fg: var(--c-text-2);
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--tag-bg);
  color: var(--tag-fg);
  font-size: 11px;
  font-weight: 600;
  line-height: 13px;
  white-space: nowrap;
  width: fit-content;
}
.tag-fintech { --tag-bg: #ecfeff; --tag-fg: #0e7490; }
.tag-envirotech { --tag-bg: #fffbeb; --tag-fg: #b45309; }
.tag-healthtech { --tag-bg: #fdf2f8; --tag-fg: #be185d; }
.tag-edtech { --tag-bg: #fff1f2; --tag-fg: #be123c; }
.tag-agritech { --tag-bg: #f7fee7; --tag-fg: #4d7c0f; }
.tag-devtools { --tag-bg: #eef2ff; --tag-fg: #4f46e5; }
.tag-climate { --tag-bg: #ecfdf5; --tag-fg: #059669; }
.tag-ai { --tag-bg: #f3ecfe; --tag-fg: #7e22ce; }
.tag-blue { --tag-bg: var(--c-primary-soft); --tag-fg: var(--c-primary); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 3px 10px;
  border-radius: var(--r-sm);
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.4;
  width: fit-content;
}
.badge-warning {
  background: var(--c-warning-soft);
  color: var(--c-warning);
}
.badge-success {
  background: var(--c-success-soft);
  color: var(--c-success);
}
.badge-neutral {
  background: var(--c-surface-2);
  color: var(--c-text-2);
}
.badge-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--c-danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  border: 2px solid var(--c-surface);
}
.has-count {
  position: relative;
}
.has-count > .badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
}
.rank {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--r-pill);
  background: var(--c-surface-2);
  color: var(--c-primary);
  font-weight: 700;
  font-size: 15px;
  line-height: 18px;
}
.rank .icon {
  color: #d97706;
}
.count-box {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 25px;
  padding: 0 5px;
  border-radius: 5px;
  background: #f1f2f4;
  color: var(--c-primary);
  font-size: var(--fs-xs);
  font-weight: 600;
}

/* ---------- Cards ---------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--s-5);
  min-width: 0;
}
.card-flat {
  box-shadow: none;
}
.card-muted {
  background: var(--c-bg);
  box-shadow: none;
}
.card-title {
  font-size: var(--fs-md);
  font-weight: 800;
  line-height: 19px;
  margin: 0 0 var(--s-3);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.card-head .card-title {
  margin: 0;
}

/* Header card: square number/icon box + title + subtitle + action (ideas / team headers) */
.hero-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: var(--s-5);
}
.hero-card > .btn {
  min-height: 44px;
  border-radius: 12px;
}
.hero-box {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  color: var(--c-primary);
  font-size: var(--fs-xl);
  font-weight: 800;
}
.hero-box .icon {
  width: 26px;
  height: 26px;
}
.hero-box-solid {
  background: var(--team-color, var(--c-primary));
  color: #fff;
}
.hero-text {
  flex: 1 1 200px;
  min-width: 0;
}
.hero-title {
  font-size: var(--fs-xl);
  font-weight: 800;
  line-height: 27px;
  margin: 0;
}
.hero-sub {
  margin: 4px 0 0;
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
@media (max-width: 520px) {
  .hero-card > .btn {
    width: 100%;
  }
}

/* Stat cards */
.stat-grid {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .stat-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
.stat-card {
  background: #fbfbfb;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: var(--s-4);
}
.stat-value {
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 27px;
  color: var(--c-text);
}
.stat-label {
  margin-top: var(--s-1);
  font-size: var(--fs-xs);
  color: #666;
}

/* Feed (organizer announcements) */
.feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.feed-item {
  display: flex;
  gap: var(--s-3);
}
.feed-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: var(--r-pill);
  background: var(--c-primary-soft);
  color: var(--c-primary);
}
.feed-icon-schedule {
  background: var(--c-success-soft);
  color: var(--c-success);
}
.feed-icon-warning {
  background: var(--c-warning-soft);
  color: var(--c-warning);
}
.feed-title {
  font-weight: 700;
  margin: 0;
}
.feed-body {
  margin: 2px 0;
  color: var(--c-muted);
  font-size: var(--fs-sm);
}
.feed-time {
  font-size: var(--fs-xs);
  color: var(--c-subtle);
}

/* ---------- Avatars ---------- */
.avatar {
  --av: 36px;
  display: inline-grid;
  place-items: center;
  width: var(--av);
  height: var(--av);
  flex: none;
  border-radius: var(--r-pill);
  background: var(--av-bg, #dbe5ff);
  color: var(--av-fg, var(--c-primary));
  font-size: calc(var(--av) * 0.38);
  font-weight: 700;
  line-height: 1;
  overflow: hidden;
  text-transform: uppercase;
  user-select: none;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-xs { --av: 24px; }
.avatar-sm { --av: 30px; }
.avatar-lg { --av: 48px; }
.avatar-xl { --av: 72px; }
.avatar-1 { --av-bg: #fde2cc; --av-fg: #9a3412; }
.avatar-2 { --av-bg: #d8e4fc; --av-fg: #1e40af; }
.avatar-3 { --av-bg: #fbd5f2; --av-fg: #9d174d; }
.avatar-4 { --av-bg: #d3f2dc; --av-fg: #166534; }
.avatar-5 { --av-bg: #fcd4d4; --av-fg: #991b1b; }
.avatar-6 { --av-bg: #e6dcfd; --av-fg: #5b21b6; }
.avatar-stack {
  display: inline-flex;
  align-items: center;
}
.avatar-stack > .avatar {
  border: 2px solid var(--c-surface);
  margin-left: calc(var(--av) * -0.3);
}
.avatar-stack > .avatar:first-child {
  margin-left: 0;
}
.avatar-more {
  --av-bg: var(--c-surface-2);
  --av-fg: var(--c-muted);
}

/* ---------- Forms ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-label,
.field > label {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
}
.input,
.select,
.textarea,
.field input:not([type="checkbox"], [type="radio"], [type="hidden"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px var(--s-4);
  border: 1px solid var(--c-border-strong);
  border-radius: 8px;
  background: var(--c-bg);
  color: var(--c-text);
  font: inherit;
  font-size: var(--fs-md);
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
@media (min-width: 768px) {
  .input,
  .select,
  .textarea,
  .field input:not([type="checkbox"], [type="radio"], [type="hidden"]),
  .field select,
  .field textarea {
    min-height: 52px;
    padding: 14px var(--s-4);
    font-size: 14px;
  }
}
.input::placeholder,
.textarea::placeholder,
.field input::placeholder,
.field textarea::placeholder {
  color: var(--c-subtle);
}
.input:focus,
.select:focus,
.textarea:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  background: var(--c-surface);
  box-shadow: var(--ring);
}
.select,
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.textarea,
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field-check {
  flex-direction: row;
  align-items: center;
  gap: var(--s-2);
}
.field-check label {
  font-weight: 500;
}
.field-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--c-primary);
}
.field-help {
  font-size: var(--fs-xs);
  color: var(--c-muted);
}
.field-help ul {
  margin: 0;
  padding-left: 1.1rem;
}
.field-error,
.errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--c-danger);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea,
.input.is-invalid {
  border-color: var(--c-danger);
  background: var(--c-danger-soft);
}
.form-errors {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--c-danger-soft);
  color: var(--c-danger);
  font-size: var(--fs-sm);
}
.form-errors .errorlist {
  color: inherit;
}
.search-field {
  position: relative;
}
.search-field > .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-subtle);
}
.search-field > .input {
  padding-left: 42px;
  background: var(--c-surface);
}
.divider-text {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--c-subtle);
  font-size: var(--fs-sm);
}
.divider-text::before,
.divider-text::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--c-border);
}

/* ---------- Modal (<dialog class="modal">) ---------- */
.modal {
  width: min(720px, calc(100vw - 2 * var(--s-4)));
  max-height: calc(100vh - 2 * var(--s-4));
  padding: 0;
  border: 1px solid #e8ebef;
  border-radius: var(--r-xl);
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: 0 0 15px 16px rgb(0 0 0 / 0.03);
}
.modal::backdrop {
  background: rgb(255 255 255 / 0.75);
  backdrop-filter: blur(2px);
}
.modal-inner {
  padding: var(--s-6);
}
@media (min-width: 640px) {
  .modal-inner {
    padding: var(--s-7);
  }
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.modal-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 29px;
  margin: 0;
}
.modal-sub {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--c-muted);
}
.modal-close {
  border: 0;
  background: none;
  padding: var(--s-1);
  color: var(--c-muted);
  cursor: pointer;
  border-radius: var(--r-sm);
}
.modal-close .icon {
  width: 24px;
  height: 24px;
}

/* ---------- Alerts / messages ---------- */
.messages {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin: var(--s-4) auto 0;
}
.alert {
  --al-bg: var(--c-info-soft);
  --al-fg: var(--c-info);
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--al-bg);
  color: var(--c-text);
  font-size: var(--fs-sm);
  border: 1px solid color-mix(in srgb, var(--al-fg) 18%, transparent);
}
.alert > .icon {
  color: var(--al-fg);
  margin-top: 1px;
}
.alert-body {
  flex: 1;
}
.alert-body p:last-child {
  margin: 0;
}
.alert-success {
  --al-bg: var(--c-success-soft);
  --al-fg: var(--c-success);
}
.alert-warning {
  --al-bg: var(--c-warning-soft);
  --al-fg: var(--c-warning);
}
.alert-error {
  --al-bg: var(--c-danger-soft);
  --al-fg: var(--c-danger);
}
.banner {
  padding: var(--s-2) var(--s-4);
  background: var(--c-warning-soft);
  color: var(--c-warning);
  border-bottom: 1px solid color-mix(in srgb, var(--c-warning) 25%, transparent);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
}

/* ---------- Table ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.table th,
.table td {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}
.table th {
  background: var(--c-bg);
  color: var(--c-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- Event page ---------- */
.event-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-6);
  padding-top: var(--s-6);
  padding-bottom: var(--s-8);
}
@media (min-width: 900px) {
  .event-layout {
    grid-template-columns: var(--aside-w) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 0 45px;
  }
  .event-head {
    grid-column: 1;
    grid-row: 1;
  }
  .event-details {
    grid-column: 1;
    grid-row: 2;
    margin-top: var(--s-5);
    padding-top: var(--s-5);
    border-top: 1px solid var(--c-border);
  }
  .event-main {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}
.event-main {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  min-width: 0;
}
.event-head > .badge {
  padding: 5px 10px;
  border-radius: 5px;
  background: #f1f2f4;
  font-size: 14px;
  font-weight: 800;
  line-height: 17px;
}
.event-title {
  font-size: var(--fs-xl);
  line-height: 27px;
  margin: 6px 0 var(--s-3);
}
.meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--c-text-2);
}
.meta-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
}
.meta-list .icon {
  color: var(--c-primary);
  margin-top: 1px;
}
.event-desc {
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  line-height: 20px;
}
.event-details h3 {
  font-size: 14px;
  font-weight: 800;
  line-height: 17px;
  margin-top: var(--s-5);
}
.event-details > :first-child {
  margin-top: 0;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  font-size: var(--fs-sm);
  color: var(--c-text-2);
}
.steps li {
  counter-increment: step;
}
.steps .step-title::before {
  content: counter(step) ". ";
}
.steps .step-title {
  display: block;
  color: var(--c-text);
  font-weight: 500;
}
.cta-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.cta-card .card-title {
  font-size: var(--fs-xl);
  margin: 0;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
@media (min-width: 640px) {
  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
.placeholder-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
  .placeholder-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.skeleton {
  height: 132px;
  border-radius: var(--r-lg);
  border: 1px dashed var(--c-border-strong);
  background: repeating-linear-gradient(-45deg, var(--c-bg), var(--c-bg) 10px, #fff 10px, #fff 20px);
}

/* ---------- Auth pages ---------- */
.auth-wrap {
  display: flex;
  justify-content: center;
  padding: var(--s-7) var(--s-4) var(--s-8);
  background: var(--c-bg);
  flex: 1;
}
.auth-card {
  width: 100%;
  max-width: 440px;
}
.auth-card h1 {
  font-size: var(--fs-2xl);
}
.auth-card .form {
  margin-top: var(--s-2);
}
.auth-card .messages {
  margin: 0 0 var(--s-4);
  padding: 0;
}
.provider-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-top: var(--s-5);
  padding-bottom: var(--s-5);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  color: var(--c-muted);
}

/* ---------- Full app shell ---------- */
.app-body {
  background: var(--c-bg);
}
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--c-surface);
}
.app-header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: var(--header-h);
  padding: var(--s-2) var(--s-4);
}
@media (min-width: 768px) {
  .app-header-inner {
    padding: var(--s-2) var(--s-6);
  }
}
.app-header-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.app-search {
  display: none;
  flex: 1 1 auto;
  max-width: 680px;
  align-items: center;
  gap: var(--s-2);
  padding: 5px 5px 5px var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}
.app-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--c-text);
  outline: none;
}
.app-search input::placeholder {
  color: var(--c-subtle);
}
.city-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 0 var(--s-3);
  border-left: 1px solid var(--c-border);
  color: var(--c-muted);
  font-size: var(--fs-sm);
  white-space: nowrap;
}
.city-pill .icon {
  color: var(--c-primary);
}
.round-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--c-primary);
  color: #fff;
  cursor: pointer;
}
.round-btn:hover {
  background: var(--c-primary-hover);
}
.round-btn-ring {
  box-shadow: 0 0 0 4px var(--c-primary-soft);
}
.round-btn-light {
  background: var(--c-surface);
  color: var(--c-primary);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
.round-btn-light:hover {
  background: var(--c-surface-2);
}
.tools-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 8px var(--s-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
  font-size: var(--fs-md);
  color: var(--c-text);
}
.tools-pill .icon {
  color: var(--c-primary);
}
@media (min-width: 1024px) {
  .app-search {
    display: flex;
  }
}
.app-frame {
  flex: 1;
  display: flex;
  gap: var(--s-5);
  padding: var(--s-4);
  padding-bottom: calc(72px + var(--s-4));
}
@media (min-width: 768px) {
  .app-frame {
    padding: var(--s-5) var(--s-6) var(--s-6);
  }
}
.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.app-rail {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: space-around;
  padding: var(--s-2);
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
}
.rail-link {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-pill);
  color: var(--c-primary);
  background: var(--c-surface);
}
.rail-link:hover {
  background: var(--c-primary-soft);
}
.rail-link.is-active {
  background: var(--c-primary);
  color: #fff;
}
.rail-link .icon {
  width: 22px;
  height: 22px;
}
.rail-bottom {
  display: none;
}
@media (min-width: 768px) {
  .app-frame {
    padding-bottom: var(--s-6);
  }
  .app-rail {
    position: sticky;
    top: calc(var(--header-h) + var(--s-5));
    align-self: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--s-2);
    width: 74px;
    min-height: calc(100vh - var(--header-h) - 2 * var(--s-5));
    padding: var(--s-4) var(--s-3);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
  }
  .rail-link {
    background: var(--c-surface-2);
  }
  .rail-bottom {
    display: grid;
    margin-top: auto;
  }
}

/* ---------- Style guide ---------- */
.sg-section {
  padding: var(--s-7) 0;
  border-top: 1px solid var(--c-border);
}
.sg-section:first-of-type {
  border-top: 0;
}
.sg-swatches {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.sg-swatch {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: var(--fs-xs);
}
.sg-swatch > div {
  height: 56px;
}
.sg-swatch > p {
  margin: 0;
  padding: var(--s-2);
}
.sg-frame {
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-bg);
}
.sg-frame .site-header,
.sg-frame .app-header {
  position: static;
}
.sg-frame .app-rail {
  position: static;
  min-height: 360px;
}

/* Inline one-field forms (e.g. assign a seat): input grows, button stays beside it */
.inline-form { display: flex; gap: var(--s-2); align-items: center; }
.inline-form .input { flex: 1; min-width: 0; }

/* Announcements + profile (agent C) */
.ann-banner {
  --ab-bg: var(--c-info-soft);
  --ab-fg: var(--c-info);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md);
  background: var(--ab-bg);
  border: 1px solid color-mix(in srgb, var(--ab-fg) 25%, transparent);
}
.ann-banner-schedule { --ab-bg: var(--c-success-soft); --ab-fg: var(--c-success); }
.ann-banner-warning { --ab-bg: var(--c-warning-soft); --ab-fg: var(--c-warning); }
.ann-banner-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--ab-fg);
}
.ann-banner-icon .icon { width: 16px; height: 16px; }
.ann-banner-text { flex: 1; min-width: 0; margin: 0; font-size: var(--fs-sm); line-height: 1.4; }
.ann-banner-title { font-weight: 700; margin-right: var(--s-1); }
.ann-banner-body { color: var(--c-text-2); }
.ann-dismiss { flex: none; margin-left: auto; align-self: flex-start; }
.ann-dismiss .btn { color: var(--c-muted); }
.ann-dismiss .btn:hover { color: var(--c-text); }
.ann-dismiss .btn-xs.btn-icon { width: 28px; min-height: 28px; }
.ann-head-actions { display: flex; align-items: center; gap: var(--s-1); }
.ann-head-actions .ann-dismiss { align-self: center; margin-left: 0; }
.btn-xs { min-height: 28px; padding: 2px var(--s-2); font-size: var(--fs-xs); }
.ann-compose { margin-bottom: var(--s-5); }
.ann-compose > summary { list-style: none; }
.ann-compose > summary::-webkit-details-marker { display: none; }
.ann-compose[open] > summary { margin-bottom: var(--s-4); }
.ann-compose-form {
  padding: var(--s-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-bg);
}
.ann-options { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.ann-options .field-check { flex-wrap: wrap; }
.ann-options .field-check .field-help { flex-basis: 100%; padding-left: 26px; }
.ann-options input:disabled + label { color: var(--c-subtle); }
.ann-item-text { flex: 1; min-width: 0; }
.ann-item-text .feed-body p { margin: 0 0 var(--s-2); }
.ann-item-text .feed-body p:last-child { margin: 0; }
.ann-pinned { font-size: var(--fs-xs); padding: 1px 6px; vertical-align: middle; }
.ann-admin { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); margin-top: var(--s-1); }
.ann-admin { justify-content: flex-start; }
.ann-manage-deleted .ann-item-text > :not(.ann-admin) { opacity: 0.6; }
.ann-error,
.ann-delete { color: var(--c-danger); }
.profile-page { max-width: 720px; }
.profile-names { display: grid; gap: var(--s-4); }
@media (min-width: 640px) {
  .profile-names { grid-template-columns: 1fr 1fr; }
}
.check-group { border: 0; margin: 0; padding: 0; }
.check-grid { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.check-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 8px 14px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
}
.check-chip input { width: 16px; height: 16px; margin: 0; accent-color: var(--c-primary); }
.check-chip:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-soft); color: var(--c-primary); }
/* Settings editor (agent B) */
.settings-card-title {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.settings-card-title .icon {
  color: var(--c-primary);
}
.settings-alert {
  margin-bottom: var(--s-4);
}
.settings-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-size: var(--fs-sm);
}
.settings-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--s-3);
  padding: var(--s-2) 0;
  border-top: 1px solid var(--c-border);
}
.settings-row:first-child {
  border-top: 0;
}
.settings-row dt {
  color: var(--c-muted);
}
.settings-row dd {
  margin: 0;
  color: var(--c-text);
  overflow-wrap: anywhere;
}
.settings-list-compact .settings-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 4px 0;
  border-top: 0;
}
.settings-list-compact dd {
  font-weight: 600;
  text-align: right;
}
.phase-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-size: var(--fs-sm);
}
.phase-step {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-1) var(--s-3);
  padding: var(--s-2) var(--s-3);
  border-left: 3px solid var(--c-border);
  color: var(--c-text-2);
}
.phase-step.is-current {
  border-left-color: var(--c-primary);
  background: var(--c-primary-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--c-text);
  font-weight: 600;
}
.phase-at {
  color: var(--c-muted);
  font-weight: 400;
}
.change-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  font-size: var(--fs-sm);
}
.change-what {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-2);
  overflow-wrap: anywhere;
}
.change-values s {
  color: var(--c-muted);
}
.change-meta {
  font-size: var(--fs-xs);
  color: var(--c-muted);
}
/* Registration panel (agent A) */
.badge-danger {
  background: var(--c-danger-soft);
  color: var(--c-danger);
}
.reg-stat-of {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--c-muted);
}
.reg-search { min-width: min(100%, 380px); }
.reg-table tbody + tbody { border-top: 2px solid var(--c-border-strong); }
.reg-order td { background: var(--c-surface-2); }
.reg-order .badge { margin-left: var(--s-2); vertical-align: middle; }
.reg-actions { flex-wrap: wrap; gap: var(--s-1); }
.reg-actions form { margin: 0; }
.reg-reissue > summary { list-style: none; cursor: pointer; }
.reg-reissue > summary::-webkit-details-marker { display: none; }
.reg-reissue[open] > summary { background: var(--c-primary-soft); color: var(--c-primary); }
.reg-reissue > form { margin-top: var(--s-2); min-width: 280px; }
.reg-danger { color: var(--c-danger); }
.reg-role-form {
  display: grid;
  gap: var(--s-2);
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) auto auto;
  align-items: center;
}
@media (max-width: 720px) {
  .reg-role-form { grid-template-columns: minmax(0, 1fr); }
}

/* Ideas dashboard (agent B) */
.ideas-dash-stats,
.stat-grid.ideas-dash-stats { grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); }
.ideas-dash-help {
  margin-top: var(--s-1);
  font-size: var(--fs-xs);
  color: var(--c-subtle);
}
.ideas-dash-none { font-size: var(--fs-lg); }
.ideas-dash-bar {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--c-surface-2);
  overflow: hidden;
}
.ideas-dash-bar > span {
  display: block;
  height: 100%;
  background: var(--c-primary);
  border-radius: inherit;
}
.ideas-dash-details > summary {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  list-style: none;
}
.ideas-dash-details > summary::-webkit-details-marker { display: none; }
.ideas-dash-chev { transition: transform 0.15s; color: var(--c-muted); }
.ideas-dash-details[open] .ideas-dash-chev { transform: rotate(180deg); }
.ideas-dash-people {
  list-style: none;
  margin: var(--s-3) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-size: var(--fs-sm);
}
.ideas-dash-people li {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.ideas-dash-filters {
  display: grid;
  gap: var(--s-2);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
@media (max-width: 560px) {
  .ideas-dash-filters { grid-template-columns: minmax(0, 1fr); }
}
.ideas-dash-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.idea-dash-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.idea-dash-card.is-withdrawn { opacity: 0.6; }
.idea-dash-rank {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--c-surface-2);
  color: var(--c-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.idea-dash-rank.is-top {
  background: var(--c-warning-soft);
  color: var(--c-warning);
}
.idea-dash-title {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.idea-dash-desc {
  margin: 0;
  color: var(--c-text-2);
  font-size: var(--fs-sm);
  overflow-wrap: anywhere;
}
.idea-dash-votes {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-1) var(--s-3);
  margin-top: auto;
  padding-top: var(--s-2);
  border-top: 1px solid var(--c-border);
}
/* Ideas board (agent A) */
[x-cloak] { display: none !important; }
.ideas-board { display: flex; flex-direction: column; gap: var(--s-5); }
.ideas-note { display: flex; align-items: center; gap: var(--s-2); margin: 0; font-size: var(--fs-sm); }
.ideas-note .icon { flex: none; color: var(--c-primary); }
.tag-developer-tools { --tag-bg: #e3f6f1; --tag-fg: #047857; }
.tag-other { --tag-bg: #f1f2f6; --tag-fg: #475569; }
.idea-filters { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.idea-search { flex: 3 1 260px; }
.idea-category { flex: 1 1 180px; }
/* Search/filter rows: compact 38px controls on white (Figma search-filter-row). */
form[role="search"] .input,
form[role="search"] .select { min-height: 38px; padding-top: 8px; padding-bottom: 8px; border-radius: 8px; background-color: var(--c-surface); font-size: 14px; }
.idea-list { display: flex; flex-direction: column; gap: var(--s-3); }
.idea-grid {
  --gap: var(--s-5);
  display: grid;
  gap: var(--gap);
  /* Up to 3 columns, each at least 260px wide. */
  grid-template-columns: repeat(auto-fill, minmax(max(260px, calc((100% - 2 * var(--gap)) / 3)), 1fr));
}
.idea-card { display: flex; flex-direction: column; gap: 14px; padding: var(--s-5); box-shadow: none; border-color: #e8ebef; scroll-margin-top: calc(var(--header-h) + var(--s-4)); }
.idea-card.is-voted { border-color: color-mix(in srgb, var(--c-primary) 35%, var(--c-border)); }
.idea-card-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.idea-title { margin: 0; font-size: var(--fs-md); font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.idea-submitter { margin: 0; font-size: var(--fs-sm); color: var(--c-text-2); }
.idea-you { font-size: var(--fs-xs); padding: 0 6px; vertical-align: 1px; }
.idea-edited {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  width: fit-content;
  margin: 0;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  background: var(--c-warning-soft);
  color: var(--c-warning);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.idea-desc { margin: 0; font-size: var(--fs-sm); line-height: 1.35; color: var(--c-text-2); overflow-wrap: anywhere; }
.idea-desc.is-clamped { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.idea-more {
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-primary);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}
.idea-votes { display: flex; align-items: center; gap: var(--s-2); margin: 0; color: var(--c-primary); font-size: 15px; font-weight: 600; }
.idea-card-foot { display: flex; flex-direction: column; gap: var(--s-2); margin-top: auto; }
.idea-card-foot .btn-block { min-height: 38px; }
.idea-card-foot .btn-soft:not(:disabled) { --btn-fg: var(--c-primary); }
.idea-card-foot form { margin: 0; }
.idea-hint { margin: 0; font-size: var(--fs-xs); color: var(--c-muted); text-align: center; }
.idea-final-pick { font-size: var(--fs-sm); }
.idea-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-1); }
.idea-danger { --btn-fg: var(--c-danger); }
.idea-danger:hover { background: var(--c-danger-soft); }
.idea-empty { text-align: center; color: var(--c-muted); }
.idea-picks .card-head { flex-wrap: wrap; }
.idea-picks-list { list-style: none; margin: 0 0 var(--s-2); padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.idea-pick {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 48px;
  padding: var(--s-1) var(--s-2) var(--s-1) var(--s-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  font-size: var(--fs-sm);
}
.idea-pick.is-empty { border-style: dashed; background: var(--c-bg); }
.idea-pick-rank {
  flex: none;
  min-width: 40px;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-weight: 700;
  text-align: center;
}
.idea-pick.is-empty .idea-pick-rank { background: var(--c-surface-2); color: var(--c-muted); }
.idea-pick-title { flex: 1; min-width: 0; color: var(--c-text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idea-pick-edited { flex: none; font-size: var(--fs-xs); }
.idea-pick-actions { display: flex; flex: none; gap: 2px; }
.idea-pick-actions form { margin: 0; }
.idea-pick-btn { width: 34px; padding: 0; --btn-fg: var(--c-text-2); }
.idea-counter { text-align: right; }
.idea-form-page .modal-head { margin-bottom: var(--s-2); }

/* Team page (agent B) */
.team-header .avatar-stack { margin-left: auto; }
.team-rename { flex-basis: 100%; }
.team-rename > summary { list-style: none; cursor: pointer; }
.team-rename > summary::-webkit-details-marker { display: none; }
.team-rename-form { margin-top: var(--s-3); max-width: 420px; }
@media (min-width: 640px) {
  .team-rename { flex-basis: auto; }
  .team-rename[open] { flex-basis: 100%; }
}
.team-grid { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); align-items: start; }
.team-col { display: flex; flex-direction: column; gap: var(--s-5); min-width: 0; }
@media (min-width: 1180px) {
  .team-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
}
.team-idea-title { font-size: var(--fs-lg); font-weight: 700; margin: 0 0 var(--s-1); }
.team-idea-desc { color: var(--c-text-2); font-size: var(--fs-sm); margin: 0 0 var(--s-4); }
.team-members { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-4); }
.team-member { display: flex; gap: var(--s-3); align-items: flex-start; }
.team-member-text { min-width: 0; flex: 1; }
.team-member-name { font-weight: 600; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.team-member-name .badge { font-size: var(--fs-xs); padding: 1px 8px; }
.team-skills { margin-top: var(--s-1); gap: var(--s-1); }
.team-member-links { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-1); }
.team-member-links a { display: inline-flex; align-items: center; gap: 4px; }
.submission-deadline {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
  padding: var(--s-3);
  margin-bottom: var(--s-4);
  border-radius: var(--r-md);
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-size: var(--fs-sm);
}
.submission-deadline > .icon { flex: none; margin-top: 2px; }
.submission-deadline strong { color: var(--c-text); }
.submission-deadline.is-closed { background: var(--c-surface-2); color: var(--c-muted); }
.submission-layout { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .submission-layout.has-questions { grid-template-columns: minmax(0, 1fr) 240px; }
}
.submission-main { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.submission-sub { font-size: var(--fs-sm); font-weight: 700; margin: var(--s-3) 0 var(--s-2); display: flex; align-items: center; gap: var(--s-1); }
.submission-run { white-space: pre-wrap; margin: 0 0 var(--s-3); }
.submission-edit > summary,
.submission-history > summary { cursor: pointer; }
.submission-edit > summary { list-style: none; }
.submission-edit > summary::-webkit-details-marker { display: none; }
.submission-form { margin-top: var(--s-4); }
.submission-history > summary { color: var(--c-muted); margin-bottom: var(--s-2); }
.submission-questions { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--s-4); align-self: start; }
.submission-questions .submission-sub { margin-top: 0; }
.question-list { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: var(--s-2); font-size: var(--fs-sm); }
.quota-bar { height: 6px; border-radius: var(--r-pill); background: var(--c-surface-2); overflow: hidden; margin-bottom: var(--s-4); }
.quota-bar > span { display: block; height: 100%; background: var(--c-primary); border-radius: inherit; }
.team-upload { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin-bottom: var(--s-2); }
.team-upload input[type="file"] { flex: 1 1 180px; min-width: 0; font-size: var(--fs-sm); }
.file-list { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: var(--c-bg);
}
.file-row form { margin: 0; }
.file-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  color: var(--c-text-2);
}
.file-text { flex: 1; min-width: 0; }
.file-name { margin: 0; font-weight: 600; font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { margin: 0; font-size: var(--fs-xs); color: var(--c-subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .btn-icon { width: 32px; min-height: 32px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface); }
.file-delete { color: var(--c-danger); }
.team-index { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.team-index-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text);
  text-decoration: none;
}
.team-index-row:hover { border-color: var(--c-border-strong); text-decoration: none; }
.team-index-num {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--team-color, var(--c-primary));
  color: #fff;
  font-weight: 800;
}
.team-index-text { flex: 1; min-width: 0; }
.team-upload input[type="file"]::file-selector-button {
  margin-right: var(--s-2);
  padding: 6px 12px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--c-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Teams finalize (agent A) */
.stat-grid.teams-stats { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.teams-stat-warn { background: var(--c-warning-soft); border-color: color-mix(in srgb, var(--c-warning) 30%, transparent); }
.teams-stat-warn .stat-value { color: var(--c-warning); }
.teams-steps { margin: 0; padding-left: 1.25rem; display: grid; gap: var(--s-2); font-size: var(--fs-sm); }
.teams-k { max-width: 220px; }
.teams-pick { border: 0; margin: 0; padding: 0; min-width: 0; }
.teams-pick-list, .teams-chosen { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; gap: 2px; }
.teams-pick-row, .teams-chosen li {
  display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm); font-size: var(--fs-sm);
}
.teams-pick-row { cursor: pointer; }
.teams-pick-row:hover { background: var(--c-surface-2); }
.teams-pick-row input { flex: none; }
.teams-rank { flex: none; min-width: 2.25rem; font-weight: 700; color: var(--c-primary); }
.teams-pick-title { flex: 1; min-width: 0; font-weight: 600; }
.teams-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.teams-card { border-top: 4px solid var(--team, var(--c-primary)); display: flex; flex-direction: column; gap: var(--s-3); }
.teams-card-head { display: flex; align-items: flex-start; gap: var(--s-3); }
.teams-card-head > div { flex: 1; min-width: 0; }
.team-badge {
  flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--r-md); background: var(--team, var(--c-primary)); color: #fff;
  font-weight: 800; font-size: var(--fs-lg);
}
.teams-card-title { margin: 0; font-size: var(--fs-md); font-weight: 700; }
.teams-card-title a { color: inherit; text-decoration: none; }
.teams-card-title a:hover { text-decoration: underline; }
.teams-card-idea { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--c-text-2); overflow-wrap: anywhere; }
.teams-members { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.teams-member { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); padding: 2px 0; }
.teams-member-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teams-member-rank { flex: none; font-size: var(--fs-xs); color: var(--c-muted); }
.teams-member-none .teams-member-rank { color: var(--c-warning); font-weight: 600; }
.teams-member-none { background: var(--c-warning-soft); border-radius: var(--r-sm); padding: 2px var(--s-1); }
.teams-adjust { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: 0; font-size: var(--fs-sm); }
.teams-adjust .select { width: auto; max-width: 100%; flex: 1 1 180px; }
.teams-adjust-label { min-width: 80px; font-weight: 600; }
.teams-publish { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
.teams-publish form { margin: 0; }

/* Judging (agent C) */
.jd-team-badge {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--team-color, var(--c-primary));
  color: #fff;
  font-weight: 800;
  font-size: var(--fs-lg);
  line-height: 1;
}
.jd-team-badge-sm { width: 28px; height: 28px; border-radius: var(--r-sm); font-size: var(--fs-xs); }
.jd-team-inline { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; }
.jd-label {
  margin: var(--s-3) 0 var(--s-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.jd-flag { font-size: var(--fs-xs); padding: 1px 6px; margin-left: var(--s-1); }

/* Organizer page */
.jd-questions, .jd-order, .jd-judges, .jd-criteria, .jd-comments, .jd-podium, .jd-team-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.jd-questions { counter-reset: jdq; display: flex; flex-direction: column; gap: var(--s-2); }
.jd-question {
  counter-increment: jdq;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.jd-question::before {
  content: counter(jdq);
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: var(--r-sm);
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.jd-question-text { flex: 1 1 200px; display: flex; flex-direction: column; min-width: 0; }
.jd-question-actions { display: flex; gap: 2px; }
.jd-question-actions form, .jd-order form { margin: 0; }
.jd-question-actions .btn-icon, .jd-order .btn-icon { width: 36px; min-height: 36px; }
.jd-edit { flex-basis: 100%; }
.jd-edit > summary { list-style: none; width: fit-content; }
.jd-edit > summary::-webkit-details-marker { display: none; }
.jd-edit[open] > summary { margin-bottom: var(--s-2); }
.jd-add { padding-top: var(--s-2); border-top: 1px solid var(--c-border); }
.jd-order { display: flex; flex-direction: column; gap: var(--s-1); }
.jd-order li {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.jd-order li.is-current { border-color: var(--c-primary); background: var(--c-primary-soft); }
.jd-order-name { flex: 1; min-width: 0; font-weight: 600; }
.jd-judges { display: flex; flex-direction: column; gap: var(--s-2); }
.jd-judges li { display: flex; align-items: center; gap: var(--s-3); }
.jd-judge-name { flex: 1; min-width: 0; }
.jd-board td { white-space: nowrap; }
.jd-row-tied td { background: var(--c-warning-soft); }
.jd-ties { padding-top: var(--s-3); border-top: 1px solid var(--c-border); }
.jd-tie { border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--s-2) var(--s-3) var(--s-3); margin: 0; }
.jd-tie-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-2); }
.jd-tie-row label { display: inline-flex; align-items: center; gap: var(--s-2); }
.jd-tie-input { width: 80px; }

/* Judge scoring page */
.jd-judge { display: flex; flex-direction: column; gap: var(--s-5); }
.jd-event-title { font-weight: 700; margin-top: 0; }
@media (max-width: 899.98px) {
  /* Phones: scoring right after the title and date; event details only on wide screens. */
  .jd-event-title { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
  .event-details:has(> .jd-event-info) { display: none; }
}
.jd-now { position: sticky; top: calc(var(--header-h) + var(--s-2)); z-index: 20; }
.jd-now:empty { display: none; }
.jd-now-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--c-brand-ink);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.jd-now-bar strong { color: #fff; }
.jd-now-here { background: var(--c-primary-soft); color: var(--c-text); box-shadow: none; }
.jd-now-here strong { color: var(--c-text); }
.jd-now-text { flex: 1 1 180px; font-size: var(--fs-sm); }
.jd-team-list { display: flex; flex-direction: column; gap: var(--s-1); max-height: 360px; overflow-y: auto; }
.jd-team-link {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 48px;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text);
}
.jd-team-link:hover { text-decoration: none; background: var(--c-bg); }
.jd-team-link.is-current { border-color: var(--c-primary); background: var(--c-primary-soft); }
.jd-team-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jd-progress { flex: none; font-size: var(--fs-xs); }
.jd-form-card { scroll-margin-top: calc(var(--header-h) + var(--s-4)); }
.jd-form-head { display: flex; gap: var(--s-3); align-items: flex-start; margin-bottom: var(--s-4); }
.jd-form-title-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--s-1); }
.jd-links { margin-top: var(--s-1); }
.jd-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--s-5); }
.jd-fieldset:disabled .jd-scale-btn { cursor: not-allowed; opacity: 0.6; }
.jd-q-head { display: flex; flex-direction: column; margin-bottom: var(--s-2); }
.jd-q-text { font-weight: 700; }
.jd-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 440px) {
  .jd-scale { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}
.jd-scale-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.jd-scale-btn {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md);
  background: var(--c-surface);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.jd-scale-btn:hover { background: var(--c-surface-2); }
.jd-scale-input:checked + .jd-scale-btn { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.jd-scale-input:focus-visible + .jd-scale-btn { box-shadow: var(--ring); }
.jd-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.jd-save-status { font-size: var(--fs-sm); color: var(--c-muted); }
.jd-status-ok { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--c-success); }
.jd-status-error { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--c-danger); }

/* Presentation controls */
.jd-stage-mini { display: flex; align-items: center; gap: var(--s-3); }
.jd-present-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.jd-present-buttons form { margin: 0; }

/* Projector screen */
.jd-screen-body { background: var(--c-brand-ink); color: #fff; }
.jd-screen { flex: 1; display: flex; min-height: 100vh; position: relative; }
.jd-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4vw;
  padding: 6vh 6vw;
}
.jd-stage-main { display: flex; align-items: center; gap: 4vw; min-width: 0; }
.jd-stage-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 22vmin;
  height: 22vmin;
  border-radius: 4vmin;
  background: var(--team-color, var(--c-primary));
  color: #fff;
  font-size: 12vmin;
  font-weight: 800;
}
.jd-stage-text { min-width: 0; }
.jd-stage-kicker { margin: 0 0 1vh; font-size: 2.4vmin; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #9fb4ff; }
.jd-stage-team { margin: 0; color: #fff; font-size: 8vmin; line-height: 1.05; }
.jd-stage-title { margin: 2vh 0 0; font-size: 4.2vmin; font-weight: 700; }
.jd-stage-idea, .jd-stage-members { margin: 1.5vh 0 0; font-size: 3vmin; color: #c9d3f5; }
.jd-stage-links { list-style: none; margin: 3vh 0 0; padding: 0; font-size: 2.4vmin; color: #c9d3f5; word-break: break-all; }
.jd-stage-links li { display: flex; align-items: center; gap: 1vmin; }
.jd-stage-qr { margin: 0; flex: none; text-align: center; font-size: 2.2vmin; color: #c9d3f5; }
.jd-qr { width: 28vmin; height: 28vmin; margin-bottom: 1vh; border-radius: 2vmin; overflow: hidden; background: #fff; }
.jd-qr svg { width: 100%; height: 100%; }
.jd-stage-idle { text-align: center; margin: 0 auto; }
.jd-fullscreen { position: absolute; right: var(--s-4); bottom: var(--s-4); opacity: 0.5; }
.jd-fullscreen:hover { opacity: 1; }
:fullscreen .jd-fullscreen { display: none; }
@media (max-width: 700px) {
  .jd-stage, .jd-stage-main { flex-direction: column; text-align: center; }
}

/* Results */
.jd-place { font-size: var(--fs-sm); }
.jd-scores { margin: 0; display: flex; flex-direction: column; }
.jd-score-row {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--c-border);
  font-size: var(--fs-sm);
}
.jd-score-row dt { color: var(--c-text-2); }
.jd-score-row dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--c-muted); }
.jd-score-row dd strong { color: var(--c-text); }
.jd-score-total { border-bottom: 0; font-weight: 700; }
.jd-score-total dt { color: var(--c-text); }
.jd-comments { display: flex; flex-direction: column; gap: var(--s-2); }
.jd-comments li { padding: var(--s-3); border-radius: var(--r-md); background: var(--c-bg); font-size: var(--fs-sm); }
.jd-criteria { counter-reset: jdc; display: flex; flex-direction: column; gap: var(--s-2); }
.jd-criteria li { counter-increment: jdc; display: flex; flex-direction: column; padding-left: 34px; position: relative; }
.jd-criteria li::before {
  content: counter(jdc);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: var(--r-sm);
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.jd-podium { display: flex; flex-direction: column; gap: var(--s-2); }
.jd-podium-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.jd-podium-1 { border-color: #f5c451; background: #fffbeb; }
.jd-place-num { flex: none; min-width: 44px; font-weight: 800; color: #b45309; }
.jd-podium-text { min-width: 0; }
.jd-podium-name { font-weight: 700; color: var(--c-text); }

/* Team chat (Sprint 4, agent A) */
.chat { padding: 0; overflow: hidden; container-type: inline-size; }
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--c-surface-2);
}
.chat-head .card-title { margin: 0; }
.chat-online { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--c-muted); font-size: var(--fs-sm); }
.chat-dot { width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--c-success); }
.chat-body { display: grid; grid-template-columns: minmax(170px, min(280px, 36%)) minmax(0, 1fr); min-height: 460px; }
.chat-contacts .avatar { --av: 36px; }
.chat-contacts .badge-count { flex: none; }
.chat-contacts { background: var(--c-bg); border-right: 1px solid var(--c-border); padding: var(--s-2) 0; min-width: 0; }
.chat-channels,
.chat-people { list-style: none; margin: 0; padding: 0; }
.chat-contacts-label { margin: var(--s-3) var(--s-3) var(--s-1); font-size: var(--fs-xs); font-weight: 600; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.chat-contact {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  width: 100%;
  padding: var(--s-2) var(--s-3);
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  color: var(--c-text);
  cursor: pointer;
  text-decoration: none;
}
.chat-contact:hover { background: var(--c-surface-2); text-decoration: none; }
.chat-contact.is-active { background: #eff6ff; }
.chat-contact-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.chat-contact-name { font-size: var(--fs-sm); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-contact-preview { font-size: var(--fs-xs); color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-channel-icon { --av-bg: var(--c-surface-2); --av-fg: var(--c-text-2); }
.chat-channel-icon-org { --av-bg: #7c3aed; --av-fg: #fff; }
.chat-unread { border: 0; }
.chat-unread[hidden] { display: none; }
.chat-avatar-wrap { position: relative; flex: none; }
.chat-presence {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: var(--r-pill);
  background: var(--c-success);
  border: 2px solid var(--c-bg);
}
.chat-profile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 var(--s-3) var(--s-2) var(--s-3);
  padding: var(--s-2) var(--s-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.chat-profile-name { margin: 0; font-weight: 600; font-size: var(--fs-sm); display: flex; align-items: center; gap: var(--s-2); }
.chat-profile .badge { font-size: var(--fs-xs); padding: 1px 8px; }
.chat-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-pane-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; padding: var(--s-3) var(--s-5); border-bottom: 1px solid var(--c-surface-2); }
.chat-pane-title { margin: 0; font-size: 14px; font-weight: 500; }
.chat-note {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
  padding: var(--s-2) var(--s-5);
  background: var(--c-bg);
  color: var(--c-muted);
  font-size: var(--fs-xs);
  border-bottom: 1px solid var(--c-border);
}
.chat-log { flex: 1; overflow-y: auto; max-height: 520px; min-height: 260px; padding: var(--s-4) var(--s-5); overscroll-behavior: contain; }
.chat-older { margin: 0 0 var(--s-3); text-align: center; color: var(--c-muted); font-size: var(--fs-xs); }
.chat-messages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-4); }
.chat-empty { margin: 0; color: var(--c-muted); font-size: var(--fs-sm); text-align: center; padding: var(--s-6) 0; }
.chat-messages:has(> li) + .chat-empty { display: none; }
.chat-msg { display: flex; gap: var(--s-3); align-items: flex-start; }
.chat-msg-main { flex: 1; min-width: 0; }
.chat-msg-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2); margin: 0; }
.chat-msg-author { font-weight: 700; font-size: var(--fs-sm); }
.chat-msg-meta time { color: var(--c-subtle); font-size: var(--fs-xs); }
.chat-msg-badge { font-size: 11px; padding: 0 6px; }
.chat-msg-body { color: var(--c-text-2); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.chat-msg-removed { display: flex; align-items: center; gap: var(--s-1); margin: 0; color: var(--c-muted); font-size: var(--fs-sm); font-style: italic; }
.chat-msg-notice { display: flex; align-items: center; gap: var(--s-1); margin: var(--s-1) 0 0; color: var(--c-success); font-size: var(--fs-xs); }
.chat-msg-menu { flex: none; opacity: 0.55; }
.chat-msg:hover .chat-msg-menu,
.chat-msg-menu[open],
.chat-msg-menu:focus-within { opacity: 1; }
.chat-msg-more { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-sm); color: var(--c-muted); }
.chat-msg-more:hover { background: var(--c-surface-2); }
.chat-msg:nth-last-child(-n+2):not(:nth-child(-n+2)) .chat-msg-menu .menu-panel { top: auto; bottom: calc(100% + var(--s-1)); }
.chat-report { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-2) var(--s-3); border-top: 1px solid var(--c-border); margin-top: var(--s-1); }
.chat-report input { width: 100%; padding: 6px 10px; border: 1px solid var(--c-border-strong); border-radius: var(--r-sm); font: inherit; font-size: var(--fs-sm); }
.chat-composer { padding: var(--s-3) var(--s-5); border-top: 1px solid var(--c-surface-2); }
.chat-composer-row { display: flex; gap: var(--s-3); align-items: flex-end; }
.chat-composer textarea {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  max-height: 160px;
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-bg);
  font: inherit;
  font-size: var(--fs-sm);
  resize: none;
}
.chat-composer textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: var(--ring); background: var(--c-surface); }
.chat-send { min-height: 44px; padding: 0 var(--s-4); border-radius: var(--r-pill); }
.chat-error { margin: var(--s-1) 0 0; }
.chat-error:empty { display: none; }
.chat-help { margin: var(--s-2) 0 0; color: var(--c-muted); font-size: var(--fs-xs); }
@container (max-width: 520px) {
  .chat-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .chat-contacts { border-right: 0; border-bottom: 1px solid var(--c-border); padding: var(--s-2); }
  .chat-channels { display: flex; gap: var(--s-2); }
  .chat-channels > li { flex: 1; min-width: 0; }
  .chat-channels .chat-contact { border-radius: var(--r-md); padding: var(--s-2); }
  .chat-channels .chat-contact-preview,
  .chat-channels .chat-channel-icon { display: none; }
  .chat-contacts-label,
  .chat-people { display: none; }
  .chat-log { max-height: 60vh; padding: var(--s-3) var(--s-4); }
  .chat-pane-head,
  .chat-note,
  .chat-composer { padding-left: var(--s-4); padding-right: var(--s-4); }
}
.chat-inbox,
.chat-reports { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.chat-inbox-row { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-2); border-top: 1px solid var(--c-border); color: var(--c-text); text-decoration: none; }
.chat-inbox > li:first-child .chat-inbox-row { border-top: 0; }
.chat-inbox-row:hover { background: var(--c-surface-2); text-decoration: none; }
.chat-inbox-row.is-unread .chat-contact-name { font-weight: 800; }
.chat-inbox-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--team-color, var(--c-primary));
  color: #fff;
  font-weight: 800;
  font-size: var(--fs-sm);
}
.chat-inbox-meta { display: flex; align-items: center; gap: var(--s-2); flex: none; }
.chat-report-item { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4) 0; border-top: 1px solid var(--c-border); }
.chat-reports > li:first-child { border-top: 0; padding-top: 0; }
.chat-report-quote { margin: 0; padding: var(--s-2) var(--s-3); border-left: 3px solid var(--c-border-strong); background: var(--c-bg); border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* ---------- Per-team submission reopen ---------- */
.submission-reopen {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-3);
  margin: calc(-1 * var(--s-2)) 0 var(--s-4);
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--r-md);
}
.submission-reopen .cluster { align-items: center; }
.submission-reopen-select { width: auto; min-height: 36px; padding-top: 6px; padding-bottom: 6px; font-size: var(--fs-sm); }

/* ---------- Launch QA (agent: launch) ---------- */
/* Skip link: hidden until focused with the keyboard */
.skip-link:focus,
.skip-link:focus-visible {
  position: fixed;
  top: var(--s-2);
  left: var(--s-2);
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  padding: var(--s-2) var(--s-4);
  clip: auto;
  overflow: visible;
  white-space: normal;
  background: var(--c-surface);
  color: var(--c-primary);
  font-weight: 600;
  border-radius: var(--r-md);
  box-shadow: var(--ring), var(--shadow-md);
}

/* Small text on tinted backgrounds: darker orange / green so it passes WCAG AA (4.5:1) */
.banner,
.badge-warning {
  color: #c2410c;
}
.badge-success {
  color: #15803d;
}
.feed-time {
  color: var(--c-muted);
}

/* Auth pages: help line under the card, tips list on "not on the ticket list" */
.auth-column {
  width: 100%;
  max-width: 440px;
}
.auth-help {
  margin: var(--s-4) 0 0;
}
.auth-tips {
  margin: 0;
  padding-left: 1.25rem;
  font-size: var(--fs-sm);
  color: var(--c-text-2);
}
.auth-tips li + li {
  margin-top: var(--s-2);
}

/* Error pages (404 / 403; 500, 400 and CSRF are self-contained in templates/errors/standalone.html) */
.error-card {
  max-width: 560px;
  margin: var(--s-7) auto;
  text-align: center;
}
.error-card .badge {
  margin: 0 auto var(--s-3);
}
.error-actions {
  justify-content: center;
  margin: var(--s-5) 0 var(--s-4);
}

/* Event page CTA: a POST button (sign out / switch email) sits in the row like the links */
.cta-actions > form {
  display: flex;
  margin: 0;
}
.cta-actions > form > .btn {
  flex: 1;
}

/* Tables that turn into stacked cards on phones (Your tickets). Cells carry data-label. */
@media (max-width: 599.98px) {
  .table-stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .table-stack,
  .table-stack tbody,
  .table-stack tr,
  .table-stack td {
    display: block;
    width: 100%;
  }
  .table-stack tr {
    padding: var(--s-3) var(--s-4);
    border-bottom: 1px solid var(--c-border);
  }
  .table-stack tr:last-child {
    border-bottom: 0;
  }
  .table-stack td {
    padding: var(--s-1) 0;
    border: 0;
    text-align: left;
  }
  .table-stack td.num {
    text-align: left;
  }
  .table-stack td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--c-muted);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .table-stack td:empty {
    display: none;
  }
  .table-stack-actions {
    padding-top: var(--s-2);
  }
}


/* ---------- Direct uploads (agent: uploads) ---------- */
.upload-status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-bottom: var(--s-2); }
.upload-status[hidden] { display: none; }
.upload-progress { flex: 1 1 100%; height: 6px; border-radius: var(--r-pill); background: var(--c-surface-2); overflow: hidden; }
.upload-progress > span { display: block; width: 0; height: 100%; background: var(--c-primary); border-radius: inherit; transition: width 0.2s ease; }
.upload-message { flex: 1 1 auto; margin: 0; color: var(--c-muted); }
.upload-status.is-error .upload-progress > span { background: var(--c-danger); }
.upload-status.is-error .upload-message { color: var(--c-danger); }
.team-upload.is-busy button[type="submit"] { opacity: 0.6; pointer-events: none; }

/* ---------- Tracks & prizes: public (agent: prizes-pub) ---------- */
.pz-tracks, .pz-prizes, .pz-winners, .pz-won, .sp-logos, .jd-sponsor-wall { list-style: none; margin: 0; padding: 0; }
.pz-tracks { display: flex; flex-direction: column; gap: var(--s-3); }
.pz-track { display: flex; flex-direction: column; gap: var(--s-1); }
.pz-prizes { display: flex; flex-direction: column; gap: var(--s-2); }
.pz-prize {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.pz-prize-won { border-color: #f5c451; background: #fffbeb; }
.pz-prize-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pz-prize-name { margin: 0; font-weight: 700; }
.pz-prize-value { flex: none; max-width: 45%; white-space: normal; text-align: right; }
.pz-winner { display: flex; align-items: center; gap: var(--s-1); margin-top: var(--s-1); font-size: var(--fs-sm); font-weight: 600; }
.pz-winner .icon, .pz-won-item > .icon { color: #d97706; flex: none; }
.pz-winners { display: flex; flex-direction: column; gap: var(--s-2); }
.pz-winners-item { display: flex; align-items: center; gap: var(--s-3); }
.pz-winners-text { min-width: 0; }
.pz-won { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-3); }
.pz-won-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md);
  background: #fffbeb;
  font-size: var(--fs-sm);
}
.pz-won-item > .icon { margin-top: 3px; }
.pz-track-tag { margin-top: var(--s-1); }

/* Sponsors: a logo grid per tier, headline tiles larger */
.sp-logos { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-4); }
.sp-item { display: flex; flex-direction: column; align-items: center; gap: var(--s-1); width: 140px; }
.sp-item.sp-tier-headline { width: 220px; }
.sp-item.sp-tier-gold { width: 170px; }
.sp-tier-label { font-size: var(--fs-xs); color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.sp-logo {
  display: grid;
  place-items: center;
  width: 100%;
  height: 72px;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  color: var(--c-text);
  text-align: center;
  text-decoration: none;
}
a.sp-logo:hover { border-color: var(--c-border-strong); box-shadow: var(--shadow-sm); }
.sp-tier-headline .sp-logo { height: 112px; padding: var(--s-3) var(--s-4); }
.sp-tier-gold .sp-logo { height: 88px; }
.sp-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sp-logo-name { font-weight: 700; font-size: var(--fs-sm); line-height: 1.3; overflow-wrap: anywhere; }
.sp-tier-headline .sp-logo-name { font-size: var(--fs-lg); }

/* Projector: sponsor wall while nobody is presenting */
.jd-stage-idle { width: 100%; max-width: 90vw; }
.jd-sponsors { margin-top: 7vh; }
.jd-sponsor-wall { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2.5vmin; }
.jd-sponsor {
  display: grid;
  place-items: center;
  width: 22vmin;
  height: 11vmin;
  padding: 1.5vmin 2vmin;
  border-radius: 2vmin;
  background: #fff;
  color: var(--c-brand-ink);
}
.jd-sponsor-headline { width: 36vmin; height: 18vmin; padding: 2.5vmin 3vmin; }
.jd-sponsor img { display: block; width: 100%; height: 100%; object-fit: contain; }
.jd-sponsor-name { font-weight: 800; font-size: 2.6vmin; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.jd-sponsor-headline .jd-sponsor-name { font-size: 4vmin; }


/* ---------- Tracks & prizes: organizer (agent: prizes-org) ---------- */
.tag-track { --tag-bg: var(--c-warning-soft); --tag-fg: #9a3412; gap: 4px; }
.tag-track .icon { width: 1em; height: 1em; }
.idea-tags { display: inline-flex; flex-wrap: wrap; gap: var(--s-1); min-width: 0; }
.pz-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.pz-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  padding: var(--s-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.pz-item-text { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.pz-item-actions { display: flex; gap: 2px; }
.pz-item-actions form { margin: 0; }
.pz-item-actions .btn-icon { width: 36px; min-height: 36px; }
.pz-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--c-surface-2);
  color: var(--c-muted);
  overflow: hidden;
}
.pz-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pz-winner-box { flex-basis: 100%; display: flex; flex-direction: column; gap: var(--s-1); }
.pz-winner-form { flex-wrap: wrap; }
.pz-winner-form .select { flex: 1 1 200px; min-width: 0; max-width: 360px; }
.pz-edit { flex-basis: 100%; }
.pz-edit > summary { list-style: none; width: fit-content; }
.pz-edit > summary::-webkit-details-marker { display: none; }
.pz-edit[open] > summary { margin-bottom: var(--s-2); }
.pz-add { padding-top: var(--s-2); border-top: 1px solid var(--c-border); }
.pz-new-company { margin: 0; padding: var(--s-3); border: 1px dashed var(--c-border); border-radius: var(--r-md); display: flex; flex-direction: column; gap: var(--s-3); }
.pz-new-company legend { padding: 0 var(--s-1); }
.pz-track-filter { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-bottom: var(--s-2); }
.pz-lb-track { margin-left: var(--s-1); vertical-align: middle; }

/* ---------- Single-column event pages (organizer settings) ---------- */
/* Full width for data-heavy pages; add event-layout-narrow for forms. */
.event-layout.event-layout-narrow { max-width: 56rem; }
@media (min-width: 900px) {
  .event-layout.event-layout-solo { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .event-layout-solo .event-main { grid-column: 1; grid-row: auto; }
}
.crumbs-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.crumbs-back { flex: none; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); margin: 0; padding: 0; list-style: none; font-size: var(--fs-sm); }
.crumbs li { display: inline-flex; align-items: center; gap: var(--s-2); min-width: 0; }
.crumbs li + li::before { content: "/"; color: var(--c-subtle); }
.crumbs a { color: var(--c-muted); }
.crumbs a:hover { color: var(--c-primary); }
.crumbs [aria-current="page"] { color: var(--c-text); font-weight: 600; }

/* ---------- Confirm dialog (static/js/techr.js askConfirm) ---------- */
.confirm-dialog { width: min(440px, calc(100vw - 2 * var(--s-4))); }
.confirm-body { display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-5); margin: 0; }
.confirm-message { margin: 0; font-size: var(--fs-md); line-height: 1.5; }
.confirm-actions { justify-content: flex-end; }

/* ---------- Files for all teams (team/_files.html, settings/_files.html) ---------- */
.file-group-title { margin: var(--s-4) 0 0; font-size: var(--fs-sm); font-weight: 600; color: var(--c-muted); }
.file-group-title + .file-list, .file-group-title + p { margin-top: var(--s-2); }
