    :root {
      /* Page + surfaces */
      --page-bg: #f5f5f5;
      --card-bg: #ffffff;
      --card-alt-bg: #f7f7f7;

      /* Text */
      --text-main: #111111;
      --text-strong: #111111;
      --text-muted: #555555;            /* on white */
      --text-muted-on-light: #444444;   /* on #f7f7f7 */

      /* Accent (safe on white) */
      --accent: #004880;
      --accent-soft-bg: #e5f1fb;

      /* Borders, dividers */
      --border-subtle: #d0d0d0;
      --border-strong: #aaaaaa;

      /* Word-cloud text (single accessible color) */
      --word-cloud-text: #222222;

      /* Speaker indicator colors (non-text visual only) */
      --speaker-a: #145da0;
      --speaker-b: #006b4f;
      --speaker-c: #7b296a;
      --speaker-d: #8b4b00;
    }

    * {
      box-sizing: border-box;
    }

    body {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      margin: 0;
      padding: 1rem 1.5rem 2rem;
      color: var(--text-main);
      background: var(--page-bg);
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
    }

    .header-flex {
      display: flex;
      align-items: center;
      gap: 1.25rem;
      flex-wrap: nowrap;
    }

    .app-logo {
      width: 96px;
      height: auto;
      flex-shrink: 0;
      border-radius: 24px;
      background: #0b1220;
      box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    }

    .app-intro {
      flex: 1;
      min-width: 0;
    }

    header {
      margin-bottom: 1rem;
    }

    h1, h2, h3 {
      margin-top: 1rem;
      margin-bottom: 0.5rem;
      color: var(--text-strong);
    }

    main {
      margin-top: 0.5rem;
      background-color: var(--card-bg);
      border-radius: 8px;
      padding: 0.5rem 1rem 1.5rem;
      box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    section {
      margin-top: 1.25rem;
      padding: 0.75rem 1rem;
      border: 1px solid var(--border-subtle);
      border-radius: 6px;
      background: var(--card-alt-bg);
    }

    section:focus-within {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }

    .is-hidden {
      display: none;
    }

    textarea {
      width: 100%;
      min-height: 180px;
      padding: 0.5rem;
    }

    textarea, input, button {
      font-family: inherit;
      font-size: 1rem;
    }

    button {
      padding: 0.4rem 0.9rem;
      border-radius: 4px;
      border: 1px solid var(--accent);
      background: var(--accent);
      color: #ffffff;
      cursor: pointer;
    }

    button:hover {
      background: #003a63;
    }

    button:focus-visible,
    [tabindex]:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }

    label {
      display: inline-block;
      margin-bottom: 0.25rem;
    }

    .controls-row {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      align-items: flex-end;
      margin-top: 0.5rem;
    }

    .controls-row > div {
      min-width: 220px;
    }

    .file-drop {
      border: 2px dashed var(--border-subtle);
      border-radius: 6px;
      padding: 0.75rem;
      background: var(--card-bg);
    }

    .file-drop.is-dragover {
      border-color: var(--accent);
      background: var(--accent-soft-bg);
    }

    .file-drop p {
      margin: 0;
      font-size: 0.9rem;
      color: var(--text-muted);
    }

    .layout-two-col {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
      gap: 1rem;
    }

    @media (max-width: 900px) {
      .layout-two-col {
        grid-template-columns: minmax(0, 1fr);
      }
    }

    table {
      border-collapse: collapse;
      width: 100%;
      background-color: var(--card-bg);
    }

    th, td {
      border: 1px solid var(--border-subtle);
      padding: 0.25rem 0.5rem;
      font-size: 0.9rem;
      text-align: left;
      color: var(--text-main);
    }

    th {
      background: #ececec;
    }

    th[data-sort-key] {
      cursor: pointer;
    }

    th .sort-label {
      display: inline-block;
    }

    th .sort-arrow {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-left: 0.25rem;
      width: 0.8rem;
      height: 0.8rem;
    }

    .sort-arrow svg {
      width: 100%;
      height: 100%;
    }

    .sort-arrow--none .tri-up,
    .sort-arrow--none .tri-down {
      fill: #777777;
    }

    .sort-arrow--asc .tri-up {
      fill: #000000;
    }
    .sort-arrow--asc .tri-down {
      fill: #bbbbbb;
    }

    .sort-arrow--desc .tri-up {
      fill: #bbbbbb;
    }
    .sort-arrow--desc .tri-down {
      fill: #000000;
    }

    #meeting-metrics p {
      margin: 0.1rem 0;
      font-size: 0.95rem;
      color: var(--text-muted-on-light);
    }

    /* Bar charts */

    .charts-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 1rem;
      margin-top: 0.75rem;
    }

    @media (max-width: 900px) {
      .charts-row {
        grid-template-columns: minmax(0, 1fr);
      }
    }

    .bar-chart {
      border-radius: 4px;
      background: var(--card-bg);
      padding: 0.5rem 0.75rem;
      border: 1px solid var(--border-subtle);
    }

    .bar-chart h3 {
      font-size: 1rem;
      margin-top: 0;
    }

    .bar-row {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.25rem;
      font-size: 0.9rem;
    }

    .bar-label {
      min-width: 5rem;
      max-width: 8rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .bar-track {
      flex: 1;
      background: #e2e2e2;
      border-radius: 999px;
      overflow: hidden;
      height: 0.75rem;
    }

    .bar-fill {
      height: 100%;
      border-radius: inherit;
    }

    .bar-value {
      min-width: 3.2rem;
      text-align: right;
    }

    /* Timeline */

    #timeline-container {
      border-radius: 4px;
      background: var(--card-bg);
      padding: 0.5rem;
      border: 1px solid var(--border-subtle);
    }

    #timeline {
      position: relative;
      height: 70px;
      background: #f9f9f9;
      border-radius: 4px;
      border: 1px solid var(--border-subtle);
      overflow: hidden;
    }

    .segment {
      position: absolute;
      top: 12px;
      bottom: 12px;
      border-radius: 4px;
      opacity: 0.9;
    }

    .segment-label {
      position: absolute;
      top: 2px;
      left: 2px;
      font-size: 0.7rem;
      color: #111111;
      background: rgba(255, 255, 255, 0.8);
      padding: 0 3px;
      border-radius: 3px;
    }

    .speaker-legend {
      margin-top: 0.5rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem 1rem;
    }

    .legend-item {
      display: inline-flex;
      align-items: center;
      font-size: 0.9rem;
    }

    .legend-color {
      width: 16px;
      height: 16px;
      border-radius: 3px;
      margin-right: 0.35rem;
      border: 1px solid rgba(0,0,0,0.15);
    }

    .legend-symbol {
      font-weight: bold;
      margin-right: 0.25rem;
    }

    /* Word clouds */

    #word-cloud-container {
      margin-top: 0.5rem;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .word-cloud-row {
      display: flex;
      flex-wrap: nowrap;
      gap: 1rem;
    }

    @media (max-width: 900px) {
      .word-cloud-row {
        flex-wrap: wrap;
      }
    }

    .word-cloud-card {
      border: 1px solid var(--border-subtle);
      border-radius: 4px;
      padding: 0.5rem;
      background: var(--card-bg);
      flex: 1 1 0;
      min-width: 0;
    }

    .word-cloud-card[role="button"] {
      cursor: pointer;
    }

    .word-cloud-card[role="button"]:hover {
      box-shadow: 0 0 0 2px rgba(0, 72, 128, 0.25);
    }

    .word-cloud-visual {
      display: flex;
      flex-wrap: wrap;
      gap: 0.3rem;
      align-items: flex-start;
      margin-top: 0.25rem;
      background-color: var(--card-alt-bg);
      padding: 0.5rem;
      border-radius: 4px;
    }

    .word-cloud-visual span {
      line-height: 1.1;
      display: inline-block;
      color: var(--word-cloud-text); /* single accessible color */
    }

    /* Speaker buttons */

    .speaker-name-button {
      background: transparent;
      border: 1px solid transparent;
      padding: 0.15rem 0.35rem;
      margin: 0;
      color: var(--text-main);
      font: inherit;
      cursor: pointer;
      text-align: left;
      border-radius: 999px;
    }

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

    .speaker-name-button:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }

    .speaker-name-button.is-selected {
      background-color: var(--accent-soft-bg);
      border-color: var(--accent);
      color: var(--accent);
      font-weight: 600;
    }

    .speaker-name-button.is-muted {
      background-color: transparent;
      border-color: var(--border-subtle);
      color: var(--text-main);
      font-style: italic;
    }

    /* Highlighting containers (no opacity on text) */

    [data-speaker].is-active {
      outline: 2px solid var(--accent);
      outline-offset: 1px;
      background-color: #eef5ff;
    }

    [data-speaker].is-muted {
      background-color: #f0f0f0;
    }

    /* Cleaned transcript */

    .utterance-line {
      margin-bottom: 0.25rem;
    }

    .utterance-speaker {
      font-weight: 600;
    }

    .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;
    }
    .site-footer {
      margin-top: 2rem;
      padding: 1rem 0;
      border-top: 1px solid var(--border-subtle);
      background: var(--card-bg);
      text-align: center;
    }

    .site-footer p {
      margin: 0;
      color: var(--text-muted-on-light);
      font-size: 0.95rem;
    }

    .site-footer a {
      color: var(--accent);
      text-decoration: underline;
    }

    .site-footer a:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }

    .instructions-visual {
      margin: 2rem 0 0;
      padding: 1rem 0 0.5rem;
      text-align: center;
    }

    .instructions-visual img {
      width: 100%;
      height: auto;
      border-radius: 18px;
      box-shadow: 0 20px 45px rgba(0,0,0,0.15);
      border: 1px solid var(--border-subtle);
      background: #0b1220;
    }



/* Bluesky Links */
/* Container card */
.post__likes {
  margin-block: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  margin-inline: auto;

  /* KEY CHANGES: no hard-coded colors */
  color: inherit; /* use whatever the page is using (light or dark) */
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  background-color: color-mix(in srgb, currentColor 4%, transparent);

  /* optional layout */
  max-width: 32rem;
}

/* Heading */
.post__likesTitle {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

/* CTA link */
.post__likesCta {
  display: inline-block;
  margin-bottom: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  color: inherit; /* let the global link color / theme handle it */
  display: inline-block;
  margin-inline: auto;
}

/* Avatar list */
.post__likesList {
  list-style: none;
  padding: 0;
  margin: 1rem auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.post__like {
  margin: 0;
  padding: 0;
}

.post__like__avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;

  /* also theme-aware */
  border: 2px solid color-mix(in srgb, currentColor 40%, transparent);
  display: block;
}

.social-media-links {
    text-align: center;
}
