/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0a0a0a;
  --bg-2:         #111111;
  --bg-3:         #161616;
  --bg-4:         #1e1e1e;
  --accent:       #9DC88D;
  --accent-dark:  #7ab06a;
  --success:      #9DC88D;
  --warning:      #e6b84a;
  --danger:       #e05c5c;
  --info:         #6aaadc;
  --text:         #ffffff;
  --text-muted:   #888888;
  --text-dim:     #555555;
  --border:       #222222;
  --border-light: #2a2a2a;
  --radius:       6px;
  --radius-sm:    3px;
  --font-head:    'Montserrat', system-ui, sans-serif;
  --font-body:    'EB Garamond', Georgia, serif;
  --font-ui:      'Montserrat', system-ui, sans-serif;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.12s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}
.btn-primary:hover:not(:disabled) {
  background: #b5d9a8;
  border-color: #b5d9a8;
  color: #0a0a0a;
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-light);
}
.btn-secondary:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) { color: var(--text); }

.btn-sm  { padding: 6px 14px; font-size: 12px; }
.btn-lg  { padding: 13px 32px; font-size: 14px; letter-spacing: 0.5px; }
.btn-xs  { padding: 4px 10px; font-size: 11px; }

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 58px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo {
  height: 26px;
  width: auto;
}
.nav-brand-text {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}
.nav-brand-sub {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-left: 4px;
}
.nav-divider {
  width: 1px;
  height: 18px;
  background: var(--border-light);
  margin: 0 2px;
}
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* ── Flash messages ───────────────────────────────────────────────────────── */
.flash-container { max-width: 860px; margin: 16px auto 0; padding: 0 24px; }
.flash {
  padding: 10px 16px;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}
.flash-error   { background: rgba(224,92,92,0.1); border: 1px solid rgba(224,92,92,0.3); color: #f5a0a0; }
.flash-success { background: rgba(157,200,141,0.1); border: 1px solid rgba(157,200,141,0.3); color: #9DC88D; }

/* ── Toast ────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  z-index: 9999;
  animation: slide-up 0.18s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.toast-success { background: var(--accent); color: #0a0a0a; }
.toast-error   { background: var(--danger); color: #fff; }
@keyframes slide-up {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 20px 40px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-brand {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}
.footer-note {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-dim);
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* LANDING PAGE — EXECUTIVE ASSISTANT                                         */
/* ─────────────────────────────────────────────────────────────────────────── */

main { max-width: 1100px; margin: 0 auto; padding: 0 40px; }

.nav-badge {
  background: var(--accent);
  color: #0a0a0a;
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 10px;
  margin-left: 2px;
}

/* ── Spline Hero ─────────────────────────────────────────────────────────── */
.spline-hero {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0,0,0,0.96);
  border: 1px solid var(--border);
  margin-top: 24px;
  min-height: 500px;
}

/* Spotlight SVG */
.spotlight {
  pointer-events: none;
  position: absolute;
  z-index: 1;
  height: 169%;
  width: 138%;
  opacity: 0;
  top: -40%;
  left: 0;
  animation: spotlight-in 1.5s ease 0.5s forwards;
}
@keyframes spotlight-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.spline-hero-inner {
  display: flex;
  height: 100%;
  min-height: 500px;
}

/* Left: text content */
.spline-hero-text {
  flex: 1;
  padding: 48px 40px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ea-hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.spline-hero-title {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}
.ea-hero-accent {
  background: linear-gradient(to bottom, #f5f5f5, #9DC88D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.spline-hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 32px;
}
.ea-hero-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: rgba(157,200,141,0.08);
  color: #fff;
}

/* Right: 3D scene */
.spline-hero-scene {
  flex: 1;
  position: relative;
  min-height: 400px;
}
.spline-hero-scene spline-viewer {
  width: 100%;
  height: 100%;
  display: block;
}
/* Hide the Spline watermark */
.spline-hero-scene spline-viewer::part(logo) {
  display: none;
}

/* ── Metrics Bar ─────────────────────────────────────────────────────────── */
.ea-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 0;
  margin-bottom: 60px;
}
.ea-metric {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}
.ea-metric-value {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.ea-metric-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ea-metric-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Capabilities ────────────────────────────────────────────────────────── */
.ea-capabilities {
  padding-bottom: 80px;
}
.ea-section-title {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.3px;
}
.ea-cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.ea-cap-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: border-color 0.15s;
}
.ea-cap-card:hover { border-color: var(--border-light); }
.ea-cap-icon {
  font-size: 24px;
  margin-bottom: 14px;
}
.ea-cap-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.ea-cap-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}
.ea-cap-status {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
}
.ea-cap-live {
  background: rgba(157,200,141,0.12);
  color: var(--accent);
  border: 1px solid rgba(157,200,141,0.25);
}
.ea-cap-soon {
  background: rgba(230,184,74,0.08);
  color: #e6b84a;
  border: 1px solid rgba(230,184,74,0.2);
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* UPLOAD PAGE                                                                */
/* ─────────────────────────────────────────────────────────────────────────── */

.upload-main { max-width: 880px; margin: 0 auto; padding: 48px 40px 100px; }

.upload-header { margin-bottom: 36px; }
.upload-header h1 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.upload-header p { font-size: 15px; color: var(--text-muted); }

/* Batch queue */
.batch-queue {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
}
.batch-queue-title {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.batch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 13px;
}
.batch-item:last-child { border-bottom: none; }
.batch-item-label { color: var(--text); }
.batch-item-remove {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 4px;
}

/* Transcript block */
.transcript-block {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.transcript-block:first-child { border-top: 2px solid var(--accent); }
.block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.block-label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3px;
}
.btn-remove-block {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;
}
.btn-remove-block:hover { border-color: var(--danger); color: var(--danger); }

/* Context row */
.context-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto auto;
  gap: 10px;
  margin-bottom: 18px;
  align-items: end;
}
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group-sm { min-width: 110px; }
.form-group label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.form-group input,
.form-group select {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 13px;
  padding: 8px 11px;
  outline: none;
  width: 100%;
  transition: border-color 0.12s;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group select option { background: var(--bg-3); }

/* Drop zone */
.drop-zone {
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.12s;
  margin-bottom: 10px;
  background: var(--bg-3);
}
.drop-zone:hover,
.drop-zone.drag-over { border-color: var(--accent); background: rgba(157,200,141,0.04); }
.drop-zone.has-file  { border-color: var(--accent); border-style: solid; background: rgba(157,200,141,0.04); }
.drop-zone-icon { font-size: 22px; margin-bottom: 6px; opacity: 0.6; }
.drop-zone-text {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.drop-zone-sub { font-family: var(--font-ui); font-size: 11px; color: var(--text-dim); }
.drop-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.divider-or {
  text-align: center;
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 14px 0;
  position: relative;
}
.divider-or::before,
.divider-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 46%;
  height: 1px;
  background: var(--border);
}
.divider-or::before { left: 0; }
.divider-or::after  { right: 0; }

/* Textarea */
.textarea-wrapper { position: relative; }
.transcript-textarea {
  width: 100%;
  min-height: 180px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  padding: 12px 14px;
  resize: vertical;
  outline: none;
  display: block;
  transition: border-color 0.12s;
}
.transcript-textarea:focus { border-color: var(--accent); }
.transcript-textarea::placeholder { color: var(--text-dim); }
.char-count {
  text-align: right;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 5px;
}

.upload-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 12px;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* RESULTS PAGE                                                               */
/* ─────────────────────────────────────────────────────────────────────────── */

.results-main { max-width: 1100px; margin: 0 auto; padding: 36px 40px 100px; }

/* Tabs */
.tabs-row {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  overflow-x: auto;
}
.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  transition: all 0.12s;
  white-space: nowrap;
  margin-bottom: -1px;
  letter-spacing: 0.2px;
}
.tab-btn:hover  { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Episode header */
.episode-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.episode-guest {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  letter-spacing: -0.3px;
}
.episode-company {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.episode-title { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.episode-meta-row { display: flex; flex-wrap: wrap; gap: 6px; }
.episode-meta-tag {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 3px 9px;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}
.episode-counts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.count-pill {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 11px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.count-pill-icon { font-size: 13px; }
.count-pill-num {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
}

/* Cards grid */
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* Category card */
.cat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cat-card-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.cat-card-icon { font-size: 14px; }
.cat-card-label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  letter-spacing: 0.3px;
}
.cat-card-badge {
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 1px 7px;
}
.btn-copy {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  letter-spacing: 0.3px;
  transition: all 0.1s;
}
.btn-copy:hover { border-color: var(--accent); color: var(--accent); }

/* Category color accents */
.cat-build     { border-left: 2px solid #e6b84a; }
.cat-followup  { border-left: 2px solid var(--accent); }
.cat-info      { border-left: 2px solid #6aaadc; }
.cat-materials { border-left: 2px solid #c49fde; }
.cat-action    { border-left: 2px solid #e05c5c; }
.cat-takeaways { border-left: 2px solid var(--text-dim); }

.cat-card-body { padding: 0; flex: 1; }
.cat-empty {
  padding: 16px 14px;
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 12px;
  font-style: italic;
}

/* Result items */
.result-item { border-bottom: 1px solid var(--bg-4); }
.result-item:last-child { border-bottom: none; }
.item-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.1s;
}
.item-row:hover { background: var(--bg-3); }
.item-chevron {
  font-size: 8px;
  color: var(--text-dim);
  margin-top: 5px;
  flex-shrink: 0;
}
.item-text {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.item-detail { padding: 0 14px 12px 28px; }
.item-context {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 6px;
}
.item-quote {
  font-size: 13px;
  color: var(--accent);
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 10px;
  line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* PENDING ACTIONS PAGE                                                       */
/* ─────────────────────────────────────────────────────────────────────────── */

.pending-main { max-width: 1100px; margin: 0 auto; padding: 40px 40px 100px; }

.pending-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.pending-header h1 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.pending-header p { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

.filter-row {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-btn {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  transition: all 0.12s;
  letter-spacing: 0.3px;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(157,200,141,0.06);
}

.actions-table {
  width: 100%;
  border-collapse: collapse;
}
.actions-table th {
  text-align: left;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.actions-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.actions-table tr:hover td { background: var(--bg-2); }
.actions-table td.item-cell {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text);
  max-width: 280px;
}
.actions-table td.proposed-cell {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 300px;
}
.meta-cell {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Task Summary ────────────────────────────────────────────────────────── */
.task-summary { text-align: right; }
.task-summary-number {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
}
.task-summary-label {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Task Cards ──────────────────────────────────────────────────────────── */
.task-list { display: flex; flex-direction: column; gap: 8px; }

.task-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: border-color 0.15s, opacity 0.2s;
}
.task-card:hover { border-color: var(--border-light); }

.task-card.task-done {
  opacity: 0.5;
}
.task-card.task-done .task-card-item {
  text-decoration: line-through;
  color: var(--text-dim);
}

.task-card-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.task-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-light);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all 0.15s;
  color: var(--accent);
  padding: 0;
}
.task-check:hover {
  border-color: var(--accent);
  background: rgba(157,200,141,0.08);
}
.task-check-checked {
  border-color: var(--accent);
  background: rgba(157,200,141,0.15);
}

.task-card-content { flex: 1; min-width: 0; }

.task-card-item {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 4px;
}
.task-card-action {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
  border-left: 2px solid rgba(157,200,141,0.3);
  padding-left: 10px;
}
.task-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.task-meta-text {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-dim);
}

.task-card-right {
  flex-shrink: 0;
}

.task-status-select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 4px 24px 4px 10px;
  border-radius: 3px;
  border: 1px solid var(--border);
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: all 0.15s;
}
.task-status-select:hover { border-color: var(--accent); }

/* Status select color variants */
.task-status-select.status-todo {
  background-color: rgba(157,200,141,0.1);
  color: var(--accent);
  border-color: rgba(157,200,141,0.3);
}
.task-status-select.status-in_progress {
  background-color: rgba(106,170,220,0.1);
  color: #6aaadc;
  border-color: rgba(106,170,220,0.3);
}
.task-status-select.status-on_hold {
  background-color: rgba(230,184,74,0.1);
  color: #e6b84a;
  border-color: rgba(230,184,74,0.3);
}
.task-status-select.status-done {
  background-color: rgba(255,255,255,0.04);
  color: var(--text-dim);
  border-color: var(--border);
}

.priority-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.priority-high   { background: rgba(224,92,92,0.15); color: #e05c5c; }
.priority-medium { background: rgba(230,184,74,0.15); color: #e6b84a; }
.priority-low    { background: rgba(255,255,255,0.06); color: var(--text-dim); }

.cat-badge-sm {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ── Filter Dropdowns ─────────────────────────────────────────────────────── */
.filter-dropdowns {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 28px 6px 12px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-muted);
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.15s;
}
.filter-select:hover { border-color: var(--accent); color: var(--text); }
.filter-clear {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.filter-clear:hover {
  color: var(--danger);
  border-color: rgba(224,92,92,0.2);
  background: rgba(224,92,92,0.06);
}

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 36px; margin-bottom: 12px; opacity: 0.4; }
.empty-state-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.empty-state p { font-size: 14px; }

/* ── Action Response Page ─────────────────────────────────────────────────── */
.response-main {
  max-width: 520px;
  margin: 80px auto;
  padding: 0 24px;
  text-align: center;
}
.response-icon { font-size: 48px; margin-bottom: 16px; }
.response-title {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.response-sub { font-size: 16px; color: var(--text-muted); margin-bottom: 28px; }
.response-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  text-align: left;
}
.response-card-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.response-card-text { font-size: 14px; color: var(--text); line-height: 1.6; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .spline-hero-inner { flex-direction: column; }
  .spline-hero-text { padding: 32px 24px; }
  .spline-hero-title { font-size: 32px; }
  .spline-hero-scene { min-height: 300px; }
  .ea-cap-grid { grid-template-columns: 1fr; }
  .ea-metrics { flex-wrap: wrap; gap: 16px; padding: 16px; }
  .ea-metric-divider { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .context-row { grid-template-columns: 1fr 1fr 1fr; }
  .episode-header { flex-direction: column; }
  main, .upload-main, .results-main, .pending-main { padding-left: 20px; padding-right: 20px; }
  .navbar { padding: 0 20px; }
  .task-card { flex-direction: column; gap: 10px; }
  .task-card-right { align-self: flex-start; margin-left: 36px; }
}
@media (max-width: 560px) {
  .spline-hero-title { font-size: 26px; }
  .spline-hero-scene { min-height: 250px; }
  .ea-cap-grid { grid-template-columns: 1fr; }
  .context-row { grid-template-columns: 1fr 1fr; }
  .ea-metrics { flex-direction: column; }
}
