/*
 * Copyright 2026 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
:root {
  --bg-canvas: hsl(38, 26%, 96%);
  --bg-surface: hsl(40, 30%, 99%);
  --bg-subtle: hsl(36, 18%, 92%);
  --ink-primary: hsl(24, 18%, 11%);
  --ink-secondary: hsl(24, 10%, 36%);
  --ink-muted: hsl(24, 8%, 52%);
  --border-hairline: hsl(32, 15%, 85%);
  --border-strong: hsl(28, 16%, 72%);

  --accent-brand: hsl(21, 86%, 44%);
  --accent-brand-hover: hsl(21, 86%, 36%);
  --accent-brand-soft: hsl(24, 85%, 94%);

  --consensus-green: hsl(154, 46%, 30%);
  --consensus-bg: hsl(150, 38%, 94%);

  --side-a-ink: hsl(204, 68%, 28%);
  --side-a-bg: hsl(204, 52%, 95%);
  --side-b-ink: hsl(14, 72%, 34%);
  --side-b-bg: hsl(14, 60%, 95%);

  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-sm: 0 1px 2px rgba(28, 22, 18, 0.04);
  --shadow-md: 0 6px 20px rgba(28, 22, 18, 0.06);
  --shadow-drawer: -12px 0 40px rgba(20, 16, 12, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Header & Top Bar */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-hairline);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-block {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  line-height: 1;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.event-select {
  appearance: none;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 0.5rem 2.1rem 0.5rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-primary);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23443c36' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
}

.btn-primary {
  background-color: var(--accent-brand);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.52rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--accent-brand-hover);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Sync Progress Banner */
.sync-banner {
  background: var(--accent-brand-soft);
  border-bottom: 1px solid hsl(24, 60%, 82%);
  padding: 0.75rem 1.75rem;
  display: none;
}

.sync-banner.active {
  display: block;
}

.sync-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.sync-status-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-brand-hover);
}

.progress-track {
  flex: 1;
  max-width: 360px;
  height: 7px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-brand);
  width: 12%;
  transition: width 0.25s ease;
}

/* Navigation Bar */
.nav-tabs-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.75rem;
  display: flex;
  gap: 1.75rem;
  border-top: 1px solid var(--border-hairline);
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.85rem 0.15rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tab-btn:hover {
  color: var(--ink-primary);
}

.tab-btn.active {
  color: var(--accent-brand);
  border-bottom-color: var(--accent-brand);
}

/* Tab Panes & View Switching (Modern Content-Visibility + Fallback) */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: tabFadeIn 0.18s ease-out;
}

@supports (content-visibility: hidden) {
  .tab-pane {
    display: block;
    content-visibility: hidden;
    height: 0;
    overflow: hidden;
  }
  .tab-pane.active {
    content-visibility: visible;
    height: auto;
    overflow: visible;
  }
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main Content Container */
.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.75rem 4rem;
}

/* Editorial Hero Summary */
.executive-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-brand);
  margin-bottom: 0.5rem;
}

.hero-summary-text {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  line-height: 1.35;
  color: var(--ink-primary);
  margin-bottom: 1.25rem;
}

.stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-hairline);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* Section Headers */
.section-header {
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.section-desc {
  color: var(--ink-secondary);
  font-size: 0.95rem;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
  gap: 1.5rem;
}

.digest-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 240px;
}

.digest-card:hover {
  box-shadow: var(--shadow-md);
}

.card-summary-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-secondary);
  font-size: 0.88rem;
  line-height: 1.45;
  margin-top: 0.25rem;
}

.talk-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-brand);
  margin-top: auto;
  padding-top: 0.35rem;
  transition: transform 0.15s ease;
}

.digest-card:hover .talk-card-cta {
  transform: translateX(3px);
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.category-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--bg-subtle);
  color: var(--ink-secondary);
}

.talk-count-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.card-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--ink-primary);
}

.card-body-copy {
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

/* Sentiment Bar */
.sentiment-meter {
  display: flex;
  height: 6px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--bg-subtle);
}

.sentiment-bullish { background: hsl(152, 52%, 38%); }
.sentiment-mixed { background: hsl(38, 78%, 52%); }
.sentiment-skeptical { background: hsl(12, 68%, 48%); }

.sentiment-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

/* Clickable Verbatim Quotes */
.quote-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.quote-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: 7px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.quote-box:hover {
  border-color: var(--accent-brand);
  background: #fff;
}

.quote-text {
  font-size: 0.86rem;
  font-style: italic;
  color: var(--ink-primary);
  margin-bottom: 0.45rem;
}

.quote-attribution {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.speaker-cite {
  font-weight: 600;
  color: var(--ink-secondary);
}

.time-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--accent-brand-soft);
  color: var(--accent-brand);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}

/* Progressive Disclosure Accordions for Quotes */
.quotes-disclosure {
  margin-top: 0.85rem;
  border-top: 1px solid var(--border-hairline);
  padding-top: 0.65rem;
}

.quotes-disclosure-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 0.42rem 0.75rem;
  border-radius: 6px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  color: var(--ink-primary);
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.quotes-disclosure-summary::-webkit-details-marker {
  display: none;
}

.quotes-disclosure-summary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}

.quotes-disclosure-summary::after {
  content: '▸';
  font-size: 0.95rem;
  color: var(--accent-brand);
  transition: transform 0.2s ease;
  margin-left: 0.5rem;
}

.quotes-disclosure[open] > .quotes-disclosure-summary::after {
  transform: rotate(90deg);
}

.quotes-disclosure[open] > .quotes-disclosure-summary {
  margin-bottom: 0.85rem;
  background: var(--accent-brand-soft);
  border-color: var(--accent-brand);
  color: var(--accent-brand);
}

.disclosure-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.disclosure-hint {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--ink-muted);
}

.quotes-drawer-content {
  animation: tabFadeIn 0.2s ease-out;
}

/* Consensus Wall Styling */
.consensus-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.consensus-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 240px;
}

.consensus-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: var(--consensus-bg);
  color: var(--consensus-green);
  margin-bottom: 0.65rem;
}

/* Debate Arena (Side-by-Side Contrasting Takes) */
.debates-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.debate-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 240px;
}

.debate-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-hairline);
}

.debate-question {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  line-height: 1.25;
  margin: 0.35rem 0;
}

.debate-sides-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 820px) {
  .debate-sides-grid {
    grid-template-columns: 1fr;
  }
}

.debate-column {
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.debate-side-a {
  background: var(--side-a-bg);
  border: 1px solid hsl(204, 35%, 85%);
}

.debate-side-b {
  background: var(--side-b-bg);
  border: 1px solid hsl(14, 38%, 85%);
}

.side-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.debate-side-a .side-label { color: var(--side-a-ink); }
.debate-side-b .side-label { color: var(--side-b-ink); }

.side-position-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.2;
}

/* Empty State */
.empty-state {
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 3.5rem 2rem;
  max-width: 620px;
  margin: 2rem auto;
}

/* Slide-Over Talk & Speaker Inspector Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.42);
  z-index: 50;
  display: none;
}

.drawer-backdrop.open {
  display: block;
}

.talk-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(680px, 94vw);
  background: var(--bg-surface);
  z-index: 60;
  box-shadow: var(--shadow-drawer);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.talk-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.close-drawer-btn {
  background: var(--bg-subtle);
  border: none;
  border-radius: 6px;
  width: 34px;
  height: 34px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--ink-primary);
}

.drawer-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.takeaways-list {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.transcript-search-input {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  background: var(--bg-canvas);
}

.transcript-stream {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.transcript-chunk-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  font-size: 0.86rem;
  background: var(--bg-canvas);
}

.transcript-chunk-row.highlighted {
  background: var(--accent-brand-soft);
  border: 1px solid var(--accent-brand);
}

/* Day Filter Strip */
.day-filter-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.65rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-hairline);
}

.day-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 999px;
  padding: 0.32rem 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.14s ease;
}

.day-pill:hover {
  border-color: var(--border-strong);
  color: var(--ink-primary);
}

.day-pill.active {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  color: var(--bg-surface);
}

/* Crowd & Popularity Badges */
.crowd-badges-inline {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.crowd-pill {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 600;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  background: var(--bg-subtle);
  color: var(--ink-secondary);
}

.crowd-pill.packed {
  background: hsl(18, 88%, 92%);
  color: hsl(18, 82%, 34%);
}

.crowd-pill.sleeper {
  background: hsl(166, 48%, 91%);
  color: hsl(166, 62%, 26%);
}

/* Ask the Conference Bar */
.ask-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 1.35rem 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.ask-form-row {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.55rem;
}

.ask-input {
  flex: 1;
  padding: 0.6rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  background: var(--bg-canvas);
  color: var(--ink-primary);
}

.ask-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.suggestion-chip {
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: 99px;
  padding: 0.22rem 0.65rem;
  font-size: 0.76rem;
  color: var(--ink-secondary);
  cursor: pointer;
}

.suggestion-chip:hover {
  border-color: var(--accent-brand);
  color: var(--accent-brand);
}

.ask-answer-panel {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-hairline);
}

/* Smooth Anchor Scrolling & Permalink Links */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

.section-block {
  margin-bottom: 3rem;
}

.section-anchor {
  color: var(--ink-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  margin-left: 0.35rem;
  opacity: 0.45;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.section-header:hover .section-anchor,
.section-anchor:focus {
  opacity: 1;
  color: var(--accent-brand);
}

.nav-anchor-link {
  text-decoration: none;
  padding: 0.85rem 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-secondary);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-anchor-link:hover,
.nav-anchor-link.active {
  color: var(--accent-brand);
  border-bottom-color: var(--accent-brand);
}

/* Company Lens & Expanded Ecosystem Tags */
.company-lens-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 1.4rem 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.expanded-tags-box {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-hairline);
}

.expanded-tag-chip {
  background: var(--accent-brand-soft);
  border: 1px solid hsl(24, 65%, 78%);
  color: var(--accent-brand-hover);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.expanded-tag-chip.disabled {
  background: var(--bg-subtle);
  border-color: var(--border-hairline);
  color: var(--ink-muted);
  text-decoration: line-through;
}

.match-tag-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  background: hsl(42, 88%, 90%);
  color: hsl(32, 82%, 28%);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
}

/* Toggle Switch & Editable Tag Controls */
.lens-control-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}

.toggle-switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
}

.toggle-switch-track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--border-strong);
  transition: background-color 0.18s ease;
}

.toggle-switch-track.on {
  background: var(--accent-brand);
}

.toggle-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform 0.18s ease;
}

.toggle-switch-track.on .toggle-switch-thumb {
  transform: translateX(20px);
}

.toggle-switch-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.editable-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent-brand-soft);
  border: 1px solid hsl(24, 65%, 78%);
  color: var(--accent-brand-hover);
  border-radius: 999px;
  padding: 0.22rem 0.55rem 0.22rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
}

.editable-tag-remove {
  background: none;
  border: none;
  color: var(--accent-brand-hover);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
  opacity: 0.7;
}

.editable-tag-remove:hover {
  opacity: 1;
  color: hsl(0, 72%, 42%);
}

.add-tag-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.add-tag-input {
  border: 1px dashed var(--border-strong);
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  background: var(--bg-surface);
  color: var(--ink-primary);
  width: 155px;
}

.add-tag-btn {
  background: var(--ink-primary);
  color: var(--bg-surface);
  border: none;
  border-radius: 999px;
  padding: 0.24rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}
