/**
 * Vignette 1 interactive — Jamie Daily Brief onboarding
 * Depends on concept-car.css for tokens + shared components.
 */
@import url('concept-car.css');

/* App shell */
body.v1-proto {
  margin: 0;
  min-height: 100vh;
  background: var(--surface-canvas);
  color: var(--text);
  overflow: hidden;
}

/* Sidebar collapse/expand — grid tracks follow rail width for smooth transition */
.v1-app {
  display: grid;
  grid-template-columns: auto 1fr;
  height: 100vh;
  max-height: 100dvh;
}

.v1-rail {
  width: var(--sidebar-width);
  transition: width 0.2s var(--ease-out);
}

/* Collapsed state — class-driven toggle */
.v1-app--sidebar-collapsed .v1-rail {
  width: 52px;
}

.v1-app--sidebar-collapsed .v1-rail__label,
.v1-app--sidebar-collapsed .v1-rail__section-title,
.v1-app--sidebar-collapsed .v1-rail__brand-name,
.v1-app--sidebar-collapsed .v1-rail__badge {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s var(--ease-out);
}

.v1-app--sidebar-collapsed .v1-rail__brand {
  flex-direction: column;
  align-items: center;
  padding-inline: 0;
  gap: var(--space-4);
}

.v1-app--sidebar-collapsed .v1-rail__toggle {
  margin-left: 0;
}

.v1-app--sidebar-collapsed .v1-rail__link {
  justify-content: center;
  padding-inline: 0;
}

.v1-app--sidebar-collapsed .v1-rail__command {
  padding-top: var(--space-12);
}

.v1-app--sidebar-collapsed .v1-rail__command .v1-rail__link {
  justify-content: center;
  padding-inline: 0;
}

/* Expanded state label transitions */
.v1-rail__label,
.v1-rail__section-title,
.v1-rail__brand-name,
.v1-rail__badge {
  opacity: 1;
  transition: opacity 0.15s var(--ease-out) 0.1s;
}

/* Responsive fallback: force-collapse on narrow viewports */
@media (max-width: 880px) {
  .v1-rail {
    width: 52px;
  }
  .v1-rail__label,
  .v1-rail__section-title,
  .v1-rail__brand-name,
  .v1-rail__badge {
    opacity: 0;
    pointer-events: none;
  }
  .v1-rail__brand {
    flex-direction: column;
    align-items: center;
    padding-inline: 0;
    gap: var(--space-4);
  }
  .v1-rail__toggle {
    margin-left: 0;
  }
  .v1-rail__link {
    justify-content: center;
    padding-inline: 0;
  }
}

/* ——— Sidebar (command-center nav) — Easol sidebar-first ——— */
.v1-rail {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--surface-muted);
  border-right: 1px solid var(--hairline);
  padding: var(--space-16) var(--space-12);
  gap: 2px;
}

.v1-rail__toggle {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--neutral-600);
  cursor: pointer;
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out);
}

.v1-rail__toggle:hover {
  background: var(--eclipse-4);
  color: var(--neutral-900);
}

.v1-rail__toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.v1-rail__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--space-8) 10px 16px;
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: var(--text-md);
  color: var(--neutral-900);
}

.v1-rail__mark {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: linear-gradient(145deg, var(--sea-500), var(--sea-700));
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.2);
}

.v1-rail__section-title {
  font-size: var(--text-meta);
  font-weight: 400;
  color: var(--text-secondary);
  padding: var(--space-16) var(--space-12) var(--space-4);
}

.v1-rail__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--space-8) var(--space-12);
  min-height: 36px;
  border-radius: var(--radius-sm);
  font-size: var(--text-ui);
  font-weight: 400;
  color: var(--neutral-800);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out);
}

.v1-rail__link:hover {
  background: var(--eclipse-4);
  color: var(--neutral-900);
}

.v1-rail__link--active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
  font-weight: 400;
}

.v1-rail__link--active svg {
  color: var(--accent);
}

.v1-rail__link svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.v1-rail__spacer {
  flex: 1;
  min-height: var(--space-16);
}

.v1-rail__command {
  margin-top: auto;
  padding-top: var(--space-12);
  border-top: 1px solid var(--hairline);
}

.v1-rail__command .v1-rail__link {
  background: var(--neutral-950);
  color: #fff;
  border: none;
}

.v1-rail__command .v1-rail__link:hover {
  color: #fff;
  filter: brightness(1.08);
}

.v1-rail__badge {
  margin-left: auto;
  font-size: var(--text-meta);
  font-weight: 700;
  padding: 2px var(--space-8);
  border-radius: 9999px;
  background: var(--accent);
  color: #fff;
}

/* ——— Main column ——— */
.v1-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  background: var(--surface-canvas);
}

/* Scrolls above fixed composer */
.v1-main__scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-padding-bottom: 120px;
}

/* Hub header hidden on reporting spoke — context lives in spoke + FAI */
.v1-main--report-spoke .v1-main__head {
  display: none;
}

/* Hub header — Daily Brief scope + Adjust what matters (opens agent) */
.v1-main__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  padding: var(--space-12) var(--space-24);
  background: var(--surface-canvas);
  box-sizing: content-box;
  border-bottom: 1px solid var(--hairline);
}

.v1-hub-head__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  min-width: 0;
}

.v1-hub-head__kicker {
  font-size: var(--text-meta);
  font-weight: 400;
  color: var(--text-secondary);
}

.v1-work-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 9999px;
  background: var(--neutral-200);
  gap: 2px;
}

.v1-work-toggle__btn {
  border: none;
  border-radius: 9999px;
  padding: 6px var(--space-16);
  font-family: inherit;
  font-size: var(--text-ui);
  font-weight: 400;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: color 0.15s var(--ease-out), background 0.15s var(--ease-out), box-shadow 0.15s;
}

.v1-work-toggle__btn:hover {
  color: var(--neutral-700);
}

.v1-work-toggle__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.v1-work-toggle__btn--active {
  background: var(--surface-raised);
  color: var(--sea-600);
  box-shadow: var(--shadow-sm);
}

.v1-hub-head__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.v1-hub-head__adjust {
  font-family: inherit;
  font-size: var(--text-ui);
  font-weight: 400;
  color: var(--text);
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface-raised);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s var(--ease-out), background 0.15s var(--ease-out);
}

.v1-hub-head__adjust:hover {
  border-color: var(--border-strong);
  background: var(--surface-muted);
}

.v1-hub-head__adjust:focus-visible {
  box-shadow: var(--focus-ring);
  outline: none;
}

@media (max-width: 720px) {
  .v1-main__head {
    flex-direction: column;
    align-items: stretch;
  }

  .v1-hub-head__right {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

.v1-canvas-wrap {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Chat column (scroll is on .v1-main__scroll) */
.v1-chat-scroll {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 16px;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  .v1-chat-scroll {
    scroll-behavior: auto;
  }
}

.v1-chat-inner {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
  flex-shrink: 0;
}

/* Zero state */
.v1-zero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 28px 48px;
  min-height: min(44vh, 420px);
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
  transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.v1-zero--hide {
  display: none;
}

.v1-zero__orb {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin-bottom: 28px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), transparent 45%),
    radial-gradient(circle at 70% 60%, var(--sea-300), transparent 50%),
    linear-gradient(145deg, var(--sea-100), var(--playa-100));
  box-shadow:
    0 20px 50px rgba(0, 92, 229, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.v1-zero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.375rem);
  font-weight: 600;
  color: var(--neutral-900);
  line-height: 1.2;
  margin-bottom: var(--space-12);
}

.v1-zero p {
  font-size: var(--text-md);
  color: var(--text-tertiary);
  line-height: 1.45;
  max-width: 42ch;
}

.v1-zero__trail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.v1-zero__trail span {
  font-size: var(--text-meta);
  font-weight: 400;
  color: var(--text-secondary);
  padding: var(--space-4) var(--space-12);
  border-radius: 9999px;
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
}

/* Messages */
.v1-msg {
  max-width: 92%;
  padding: var(--space-12) var(--space-16);
  border-radius: var(--radius-lg);
  font-size: var(--text-md);
  line-height: 1.45;
  animation: v1-msg-in 0.68s var(--ease-enter) both;
}

@keyframes v1-msg-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .v1-msg {
    animation: none;
  }
}

.v1-msg--user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.v1-msg--ai {
  align-self: flex-start;
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.v1-msg--ai strong {
  color: var(--neutral-950);
}

.v1-msg__list {
  margin: 12px 0 0;
  padding-left: 1.15em;
  color: var(--neutral-600);
  font-size: 0.8125rem;
}

.v1-msg__list li {
  margin-bottom: 6px;
}

.v1-brief-setup-summary {
  max-width: 100%;
}

.v1-brief-setup-summary > p {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: var(--neutral-800);
}

.v1-brief-setup-summary > p:first-child {
  font-size: 0.9375rem;
  color: var(--neutral-950);
  margin-bottom: 12px;
}

.v1-msg__quote {
  margin: 8px 0 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--sea-400);
  background: var(--neutral-50);
  border-radius: 0 10px 10px 0;
  font-size: 0.8125rem;
  color: var(--neutral-700);
  line-height: 1.45;
}

.v1-msg__lede {
  font-size: 0.8125rem !important;
  color: var(--neutral-600) !important;
  margin-top: 4px !important;
  max-width: 52ch;
  line-height: 1.45;
}

/* Typing */
.v1-typing {
  align-self: flex-start;
  display: flex;
  gap: 5px;
  padding: var(--space-16) 20px;
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  border-bottom-left-radius: 4px;
}

.v1-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neutral-400);
  animation: v1-dot 1.75s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.v1-typing span:nth-child(2) {
  animation-delay: 0.22s;
}

.v1-typing span:nth-child(3) {
  animation-delay: 0.44s;
}

@keyframes v1-dot {
  0%, 100% {
    opacity: 0.38;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .v1-typing span {
    animation: none;
    opacity: 0.6;
  }
}

/* Chips — binary only: off = neutral solid, on = sea (high contrast vs low-res screens) */
.v1-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.v1-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-8) var(--space-16);
  border-radius: 9999px;
  font-size: var(--text-ui);
  font-weight: 400;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--neutral-700);
  cursor: pointer;
  transition: border-color 0.15s var(--ease-out), background 0.15s var(--ease-out), box-shadow 0.15s, color 0.15s;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(7, 7, 7, 0.04);
}

.v1-chip:hover {
  border-color: var(--neutral-400);
  background: var(--neutral-75);
}

.v1-chip:focus-visible {
  outline: 2px solid var(--sea-500);
  outline-offset: 2px;
}

.v1-chip--on {
  border: 2px solid var(--sea-500);
  background: var(--sea-100);
  color: var(--sea-700);
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(0, 102, 255, 0.12), 0 2px 8px rgba(0, 102, 255, 0.12);
}

.v1-chip--on:hover {
  border-color: var(--sea-600);
  background: var(--sea-100);
}

/* Inline choice row */
.v1-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.v1-choice {
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--neutral-200);
  background: var(--neutral-75);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--neutral-800);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.v1-choice:hover {
  border-color: var(--sea-200);
  background: var(--sea-75);
  color: var(--sea-700);
}

.v1-choice:focus-visible {
  outline: 2px solid var(--sea-500);
  outline-offset: 2px;
}

/* Chat actions (scroll with thread, above fixed composer) */
.v1-chat-actions {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  padding: 8px 24px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.v1-btn-primary {
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius);
  font-size: var(--text-ui);
  font-weight: 400;
  font-family: inherit;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.15s var(--ease-out), transform 0.15s;
}

.v1-btn-primary:hover {
  background: var(--sea-600);
}

.v1-btn-primary:active {
  transform: scale(0.98);
}

.v1-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.v1-btn-ghost {
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius);
  font-size: var(--text-ui);
  font-weight: 400;
  font-family: inherit;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: background 0.15s var(--ease-out);
}

.v1-btn-ghost:hover {
  background: var(--accent-muted);
}

/* ——— Pill composer — sits at bottom of column; no extra bar / panel chrome ——— */
.v1-composer-wrap {
  flex-shrink: 0;
  padding: 10px 24px max(16px, env(safe-area-inset-bottom, 0px));
  background: transparent;
  border: none;
  box-shadow: none;
}

/* FAI stack: optional task “forehead” above dock (report spoke) — stays outside collapsed pill clip */
.v1-fai-dock-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 6px;
  min-height: 0;
}

.v1-fai-task-forehead {
  flex-shrink: 0;
  border-radius: var(--radius);
  padding: 10px var(--space-12) var(--space-12);
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
}

.v1-fai-task-forehead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 16px;
}

.v1-fai-task-forehead__label {
  margin: 0;
  width: 100%;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-500);
}

.v1-fai-task-forehead__title {
  margin: 0;
  flex: 1;
  min-width: min(100%, 200px);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--neutral-800);
  max-width: 46ch;
}

.v1-fai-task-forehead__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.v1-fai-task-forehead__dismiss {
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neutral-500);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.v1-fai-task-forehead__dismiss:hover {
  color: var(--neutral-800);
  background: var(--neutral-100);
}

.v1-fai-task-forehead__dismiss:focus-visible {
  outline: 2px solid var(--sea-500);
  outline-offset: 2px;
}

.v1-fai-task-forehead__accept {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--sea-200);
  background: var(--surface-raised);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sea-700);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(7, 7, 7, 0.04);
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s,
    box-shadow 0.2s;
}

.v1-fai-task-forehead__accept:hover {
  border-color: var(--sea-400);
  background: var(--sea-50);
  color: var(--sea-800);
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.08);
}

.v1-fai-task-forehead__accept:focus-visible {
  outline: 2px solid var(--sea-500);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .v1-fai-task-forehead__accept,
  .v1-fai-task-forehead__dismiss {
    transition: none;
  }
}

/* Floating agent: visible in setup (chat) and on the Brief hub — collapsed pill by default */
.v1-chat-dock {
  display: flex;
  flex-direction: column;
  max-width: none;
  margin: 0;
  width: 100%;
  min-height: 0;
  gap: 8px;
}

/* Resting vs expanded: single shell — no separate “Show” bar */
.v1-chat-dock--collapsed,
.v1-chat-dock--open {
  gap: 0;
}

.v1-chat-dock__panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: min(52vh, 480px);
}

/* Resting = composer-only pill (reference: one white capsule, mic + send) */
.v1-chat-dock--collapsed .v1-agent-topbar,
.v1-chat-dock--collapsed .v1-agent-picker,
.v1-chat-dock--collapsed .v1-agent-main {
  display: none !important;
}

.v1-chat-dock--collapsed .v1-chat-dock__panel.v1-agent-card {
  max-height: none;
  border-radius: 9999px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.v1-chat-dock--collapsed .v1-agent-footer {
  border-top: none;
  padding: 5px 8px 5px 12px;
}

.v1-chat-dock--collapsed .v1-composer {
  background: transparent;
  border: none;
  border-radius: 999px;
  box-shadow: none;
  padding: 2px 4px 2px 4px;
}

.v1-chat-dock--collapsed .v1-composer:focus-within {
  border: none;
  box-shadow: none;
}

.v1-chat-dock--collapsed .v1-composer__field {
  min-height: 40px;
  padding: 8px 10px 8px 6px;
  font-size: 0.9375rem;
}

.v1-chat-dock--collapsed .v1-composer__mic {
  color: var(--neutral-950);
}

.v1-chat-dock--collapsed .v1-composer__send:disabled {
  opacity: 1;
  background: var(--neutral-200);
  color: #fff;
}

.v1-chat-dock__panel--missions {
  max-height: min(58vh, 540px);
}

/* ——— Floating agent: one card, design-aligned ——— */
.v1-agent-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: min(52vh, 480px);
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.v1-chat-dock__panel--missions.v1-agent-card {
  max-height: min(60vh, 560px);
}

.v1-agent-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--space-12) var(--space-12);
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-raised);
}

.v1-agent-topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.v1-agent-picker {
  flex-shrink: 0;
  padding: var(--space-12) var(--space-12) var(--space-12);
  background: var(--surface-raised);
}

.v1-agent-picker__well {
  padding: var(--space-12);
  border-radius: var(--radius);
  background: var(--surface-muted);
  border: 1px solid var(--hairline);
}

.v1-agent-picker__search {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: var(--space-8) var(--space-12);
  margin: 0 0 10px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface-raised);
  font-family: inherit;
  font-size: var(--text-md);
  color: var(--neutral-900);
}

.v1-agent-picker__search::placeholder {
  color: var(--neutral-400);
  font-style: italic;
}

.v1-agent-picker__search:focus {
  outline: none;
  border-color: var(--sea-300);
  box-shadow: 0 0 0 3px var(--sea-75);
}

.v1-agent-picker__list {
  flex: 1;
  min-height: 0;
  max-height: min(28vh, 220px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v1-agent-picker__empty {
  margin: 4px 2px 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neutral-400);
}

.v1-agent-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface-raised);
}

.v1-agent-thread {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v1-agent-footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--space-12) var(--space-12) var(--space-12);
  border-top: 1px solid var(--hairline);
  background: var(--surface-raised);
}

.v1-agent-footer .v1-composer-stack {
  margin: 0;
}

.v1-chat-dock__panel--missions .v1-agent-footer {
  display: none !important;
}

.v1-chat-dock__panel--missions .v1-agent-thread {
  display: none !important;
}

.v1-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.v1-missions-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--surface-raised);
  font-family: inherit;
  font-size: var(--text-ui);
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s var(--ease-out), border-color 0.15s;
}

.v1-missions-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-muted);
}

.v1-missions-btn:focus-visible {
  outline: 2px solid var(--sea-500);
  outline-offset: 2px;
}

.v1-missions-btn[aria-expanded='true'] {
  border-color: var(--sea-300);
  background: var(--sea-75);
  color: var(--sea-900);
}

.v1-missions-btn__glyph {
  flex-shrink: 0;
  color: var(--neutral-600);
}

.v1-convo-trigger {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--surface-raised);
  font-family: inherit;
  font-size: var(--text-ui);
  font-weight: 400;
  color: var(--neutral-900);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s var(--ease-out), border-color 0.15s;
}

.v1-convo-trigger:hover {
  border-color: var(--sea-200);
  background: var(--accent-muted);
}

.v1-convo-trigger:focus-visible {
  outline: 2px solid var(--sea-500);
  outline-offset: 2px;
}

.v1-convo-trigger[aria-expanded='true'] {
  border-color: var(--sea-300);
  background: var(--sea-75);
}

.v1-convo-trigger[aria-expanded='true'] .v1-convo-trigger__chev {
  transform: rotate(180deg);
}

.v1-convo-trigger__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v1-convo-trigger__chev {
  flex-shrink: 0;
  color: var(--neutral-500);
  transition: transform 0.2s var(--ease-out);
}

.v1-convo-new {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--surface-raised);
  font-family: inherit;
  font-size: var(--text-ui);
  font-weight: 400;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.15s var(--ease-out), border-color 0.15s, opacity 0.15s;
}

.v1-convo-new:hover {
  background: var(--accent-muted);
  border-color: var(--sea-200);
}

.v1-convo-new:focus-visible {
  outline: 2px solid var(--sea-500);
  outline-offset: 2px;
}

.v1-convo-new svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.v1-convo-new:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.v1-convo-new:disabled:hover {
  background: var(--surface-raised);
  border-color: var(--sea-200);
}

/* Conversation list rows (rendered inside .v1-agent-picker__list) */
.v1-convo-menu__section {
  margin: 0;
  padding: 4px 8px 2px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-500);
}

.v1-convo-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.v1-convo-menu__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--neutral-800);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.v1-convo-menu__item:hover {
  background: var(--neutral-75);
}

.v1-convo-menu__item:focus-visible {
  outline: 2px solid var(--sea-500);
  outline-offset: -2px;
}

.v1-convo-menu__item--active {
  background: var(--sea-75);
  color: var(--sea-800);
  font-weight: 600;
}

.v1-convo-menu__item--active .v1-convo-menu__check {
  opacity: 1;
}

.v1-convo-menu__check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--sea-400);
  display: grid;
  place-items: center;
  opacity: 0.35;
  color: var(--sea-600);
  font-size: 11px;
  font-weight: 800;
}

.v1-convo-menu__item--active .v1-convo-menu__check {
  border-color: var(--sea-500);
  background: var(--sea-500);
  color: #fff;
}

.v1-convo-menu__item-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Missions sheet: replaces thread while open */
.v1-missions-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 10px 4px 8px;
  overflow: hidden;
}

.v1-missions-panel[hidden] {
  display: none !important;
}

.v1-missions-panel__lede {
  font-size: 0.75rem;
  color: var(--neutral-600);
  line-height: 1.45;
  margin: 0 8px 12px;
  max-width: 48ch;
}

.v1-missions-panel__list {
  list-style: none;
  margin: 0;
  padding: 0 4px 8px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v1-missions-panel__li {
  margin: 0;
  padding: 0;
}

.v1-mission-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-12);
  width: 100%;
  text-align: left;
  padding: var(--space-12);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface-raised);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s var(--ease-out), border-color 0.15s;
}

.v1-mission-row:hover,
.v1-mission-row:focus-visible {
  background: var(--surface-muted);
  border-color: var(--sea-200);
}

.v1-mission-row:focus-visible {
  outline: 2px solid var(--sea-500);
  outline-offset: 2px;
}

.v1-mission-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.v1-mission-row__title {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--neutral-950);
  margin: 0;
  line-height: 1.3;
}

.v1-mission-row__desc {
  display: block;
  font-size: 0.75rem;
  color: var(--neutral-600);
  line-height: 1.45;
  margin: 0;
}

.v1-mission-row__meta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-top: 2px;
}

.v1-chat-dock__minimize {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s var(--ease-out), color 0.15s, border-color 0.15s;
}

.v1-chat-dock__minimize:hover {
  background: var(--neutral-100);
  color: var(--neutral-900);
  border-color: var(--border-strong);
}

.v1-chat-dock__minimize:focus-visible {
  outline: 2px solid var(--sea-500);
  outline-offset: 2px;
}

.v1-agent-thread .v1-msg {
  max-width: 100%;
}

.v1-agent-thread .v1-msg--user {
  align-self: flex-end;
  max-width: 94%;
}

.v1-agent-thread .v1-msg--ai {
  max-width: 100%;
}

.v1-agent-thread .v1-typing {
  align-self: flex-start;
}

.v1-composer-stack {
  position: relative;
  width: 100%;
}

/* Shared mission row glyphs (Missions panel) */
.v1-starter-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.v1-starter-icon--a {
  background: linear-gradient(145deg, var(--sea-400), #5c3dff);
}

.v1-starter-icon--b {
  background: linear-gradient(145deg, var(--jade-600), var(--sea-600));
}

.v1-starter-icon--c {
  background: linear-gradient(145deg, #38bdf8, var(--sea-700));
}

.v1-starter-icon--d {
  background: linear-gradient(145deg, var(--playa-500), #c026d3);
}

.v1-starter-icon--e {
  background: linear-gradient(145deg, var(--playa-500), var(--lava-600));
}

.v1-starter-icon--f {
  background: linear-gradient(145deg, var(--neutral-600), var(--sea-900));
}

.v1-starter-tag {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sea-600);
}

.v1-starter-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--neutral-500);
}

.v1-starter-hint svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.v1-composer {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-4) var(--space-8) var(--space-4) 20px;
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s var(--ease-out), border-color 0.15s;
}

.v1-composer:focus-within {
  border-color: var(--sea-200);
  box-shadow: var(--focus-ring);
}

.v1-composer__field {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--font-ui);
  font-size: var(--text-md);
  color: var(--neutral-900);
  padding: 10px var(--space-8);
  resize: none;
  min-height: 44px;
  max-height: 120px;
  line-height: 1.45;
  field-sizing: content;
}

.v1-composer__field::placeholder {
  color: var(--neutral-400);
}

.v1-composer__field:focus {
  outline: none;
}

.v1-composer__mic {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--neutral-600);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
}

.v1-composer__mic:hover {
  background: var(--neutral-100);
  color: var(--neutral-950);
}

.v1-composer__mic:focus-visible {
  outline: 2px solid var(--sea-500);
  outline-offset: 2px;
}

.v1-composer__send {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--neutral-200);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.15s;
}

.v1-composer__send:hover:not(:disabled) {
  background: var(--neutral-300);
}

.v1-composer__send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.v1-composer__send:not(:disabled) {
  background: var(--neutral-500);
}

.v1-composer__send:not(:disabled):hover {
  background: var(--neutral-600);
}

.v1-composer__send:focus-visible {
  outline: 2px solid var(--sea-500);
  outline-offset: 2px;
}

/* Tiles (reuse ah-tile classes from concept-car — extend for removed state) */
.v1-tile-remove {
  transition: opacity 0.25s, transform 0.25s var(--ease-out);
}

.v1-tile-remove--gone {
  opacity: 0.35;
  transform: scale(0.97);
  pointer-events: none;
  text-decoration: line-through;
}

/* ——— Final Daily Brief: fluid modules on canvas (matches hub-style Daily Brief) ——— */
.v1-brief-root {
  display: none;
  padding: 8px 24px 24px;
}

.v1-brief-root .ah-brief {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  background: transparent;
}

.v1-brief-root .ah-brief__hero {
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  margin-bottom: 0;
  box-shadow: var(--shadow-sm);
  padding: var(--space-24);
  background: var(--surface-raised);
}

/* Full-width body copy in hub hero (concept-car caps .ah-brief__hero p at 52ch) */
.v1-brief-root .ah-brief__hero p {
  max-width: none;
}

.v1-brief-root .ah-brief__grid {
  background: transparent;
  padding: 0;
  gap: 16px;
}

/* Single column rhythm: hero → calendar → tiles → holds → tasks */
.v1-brief-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

.v1-brief-stack > .v1-brief-section {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.v1-brief-section--calendar {
  margin: 0;
}

/* Calendar-connected hub strip (Jamie demo) */
.v1-calendar-strip {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  padding: var(--space-16) 20px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
}

.v1-calendar-strip__head {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(0, 92, 229, 0.08);
}

.v1-calendar-strip__eyebrow {
  margin: 0 0 var(--space-4);
  font-size: var(--text-meta);
  font-weight: 400;
  color: var(--text-secondary);
}

.v1-calendar-strip__sub {
  margin: 0;
  font-size: 0.75rem;
  color: var(--neutral-600);
  line-height: 1.45;
  max-width: 70ch;
}

.v1-calendar-strip__month {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: var(--neutral-600);
  line-height: 1.45;
  padding-top: 12px;
  border-top: 1px dashed var(--neutral-200);
}

.v1-cal-meeting {
  padding: var(--space-16) var(--space-16);
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface-raised);
}

.v1-cal-meeting--focus {
  border-color: var(--sea-200);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.v1-cal-meeting__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.v1-cal-meeting__time {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--neutral-950);
  font-variant-numeric: tabular-nums;
}

.v1-cal-meeting__badge {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sea-100);
  color: var(--sea-800);
}

.v1-cal-meeting__badge--done {
  background: var(--neutral-200);
  color: var(--neutral-700);
}

.v1-cal-meeting__title {
  margin: 0 0 var(--space-8);
  font-family: var(--font-ui);
  font-size: var(--title-section);
  font-weight: 400;
  color: var(--neutral-900);
  line-height: 1.25;
}

.v1-cal-meeting__desc {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--neutral-700);
  max-width: 72ch;
}

.v1-cal-meeting__easol {
  padding: var(--space-12) var(--space-16);
  border-radius: var(--radius);
  background: var(--accent-muted);
  border: 1px solid var(--accent-soft);
}

.v1-cal-meeting__easol--compact {
  padding: 12px 14px;
}

.v1-cal-meeting__easol-label {
  margin: 0 0 10px;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sea-700);
}

.v1-cal-meeting__insights {
  margin: 0 0 14px;
  padding-left: 1.15em;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--neutral-800);
}

.v1-cal-meeting__insights li {
  margin-bottom: 8px;
}

.v1-cal-meeting__insights li:last-child {
  margin-bottom: 0;
}

.v1-cal-meeting__compact-insight {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--neutral-800);
}

.v1-cal-meeting__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.v1-cal-meeting__btn {
  font-family: inherit;
  font-size: var(--text-ui);
  font-weight: 400;
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface-raised);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s var(--ease-out), border-color 0.15s;
}

.v1-cal-meeting__btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-canvas);
}

.v1-cal-meeting__btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.v1-cal-meeting__btn--primary:hover {
  background: var(--sea-600);
  border-color: var(--sea-600);
}

.v1-cal-meeting__btn--quiet {
  border-style: dashed;
  color: var(--neutral-600);
  background: transparent;
}

.v1-cal-meeting__btn:focus-visible {
  outline: 2px solid var(--sea-500);
  outline-offset: 2px;
}

.v1-cal-meeting__foot {
  margin: 12px 0 0;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: var(--neutral-500);
  max-width: 62ch;
}

.v1-brief-section--dash {
  margin: 0;
}

.v1-brief-root .v1-brief-dash {
  margin: 0;
  gap: 0;
}

.v1-brief-tasks__eyebrow {
  margin: 0 0 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral-500);
}

.v1-brief-tasks__head {
  margin-bottom: 10px;
}

.v1-brief-tasks__title {
  margin: 0 0 6px;
}

.v1-brief-tasks__hint {
  margin: 0;
  max-width: 58ch;
}

.v1-brief-filters {
  margin-bottom: 10px;
}

/* Hub reveal — choreographed “build” (hero → calendar pieces → tiles cascade → table → tasks) */
@keyframes v1-hub-magic-rise {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes v1-hub-hero-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes v1-brief-section-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Default: major blocks hidden until active */
.v1-brief-root--hub-enter .v1-brief-section--hero {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  will-change: opacity, transform;
}

/* Calendar + tiles: shell stays in flow; inner pieces animate */
.v1-brief-root--hub-enter .v1-brief-section--calendar {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.v1-brief-root--hub-enter .v1-brief-section--calendar .v1-calendar-strip__head,
.v1-brief-root--hub-enter .v1-brief-section--calendar .v1-cal-meeting,
.v1-brief-root--hub-enter .v1-brief-section--calendar .v1-calendar-strip__month {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}

.v1-brief-root--hub-enter .v1-brief-section--tiles {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.v1-brief-root--hub-enter .v1-brief-section--tiles .v1-hub-tile {
  opacity: 0;
  transform: translateY(26px) scale(0.965);
  will-change: opacity, transform;
}

.v1-brief-root--hub-enter .v1-brief-section--dash,
.v1-brief-root--hub-enter .v1-brief-section--tasks {
  opacity: 0;
  transform: translateY(16px);
  will-change: opacity, transform;
}

/* ——— Active: orchestration ——— */
.v1-brief-root--hub-enter-active .v1-brief-section--hero {
  animation: v1-hub-hero-in 0.95s cubic-bezier(0.16, 1, 0.32, 1) forwards;
}

.v1-brief-root--hub-enter-active .v1-brief-section--calendar {
  animation: none;
  opacity: 1;
  transform: none;
}

.v1-brief-root--hub-enter-active .v1-brief-section--calendar .v1-calendar-strip__head {
  animation: v1-hub-magic-rise 0.78s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.12s;
}

.v1-brief-root--hub-enter-active .v1-brief-section--calendar .v1-cal-meeting:nth-child(2) {
  animation: v1-hub-magic-rise 0.78s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.26s;
}

.v1-brief-root--hub-enter-active .v1-brief-section--calendar .v1-cal-meeting:nth-child(3) {
  animation: v1-hub-magic-rise 0.78s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.4s;
}

.v1-brief-root--hub-enter-active .v1-brief-section--calendar .v1-calendar-strip__month {
  animation: v1-hub-magic-rise 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.52s;
}

.v1-brief-root--hub-enter-active .v1-brief-section--tiles {
  animation: none;
  opacity: 1;
  transform: none;
}

.v1-brief-root--hub-enter-active .v1-brief-section--tiles .v1-hub-tile:nth-child(1) {
  animation: v1-hub-magic-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.38s;
}

.v1-brief-root--hub-enter-active .v1-brief-section--tiles .v1-hub-tile:nth-child(2) {
  animation: v1-hub-magic-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.5s;
}

.v1-brief-root--hub-enter-active .v1-brief-section--tiles .v1-hub-tile:nth-child(3) {
  animation: v1-hub-magic-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.62s;
}

.v1-brief-root--hub-enter-active .v1-brief-section--tiles .v1-hub-tile:nth-child(4) {
  animation: v1-hub-magic-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.74s;
}

.v1-brief-root--hub-enter-active .v1-brief-section--dash {
  animation: v1-brief-section-in 0.88s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.92s;
}

.v1-brief-root--hub-enter-active .v1-brief-section--tasks {
  animation: v1-brief-section-in 0.88s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 1.12s;
}

@media (prefers-reduced-motion: reduce) {
  .v1-brief-root--hub-enter .v1-brief-section--hero,
  .v1-brief-root--hub-enter .v1-brief-section--calendar .v1-calendar-strip__head,
  .v1-brief-root--hub-enter .v1-brief-section--calendar .v1-cal-meeting,
  .v1-brief-root--hub-enter .v1-brief-section--calendar .v1-calendar-strip__month,
  .v1-brief-root--hub-enter .v1-brief-section--tiles .v1-hub-tile,
  .v1-brief-root--hub-enter .v1-brief-section--dash,
  .v1-brief-root--hub-enter .v1-brief-section--tasks {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto !important;
    filter: none !important;
  }

  .v1-brief-root--hub-enter-active .v1-brief-section--hero,
  .v1-brief-root--hub-enter-active .v1-brief-section--calendar .v1-calendar-strip__head,
  .v1-brief-root--hub-enter-active .v1-brief-section--calendar .v1-cal-meeting,
  .v1-brief-root--hub-enter-active .v1-brief-section--calendar .v1-calendar-strip__month,
  .v1-brief-root--hub-enter-active .v1-brief-section--tiles .v1-hub-tile,
  .v1-brief-root--hub-enter-active .v1-brief-section--dash,
  .v1-brief-root--hub-enter-active .v1-brief-section--tasks {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    will-change: auto !important;
  }
}

.v1-brief-root--hub-enter-active .ah-brief__hero {
  box-shadow: 0 8px 28px rgba(7, 7, 7, 0.06);
  transition: box-shadow 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .v1-brief-root--hub-enter-active .ah-brief__hero {
    transition: none;
    box-shadow: none;
  }
}

.v1-hub-tile-grid .v1-hub-tile {
  grid-column: span 6;
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.15s var(--ease-out),
    box-shadow 0.15s var(--ease-out);
}

@media (max-width: 900px) {
  .v1-hub-tile-grid .v1-hub-tile {
    grid-column: 1 / -1;
  }
}

.v1-hub-tile--open {
  border-color: var(--sea-200);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.v1-hub-tile__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-12);
  width: 100%;
  padding: var(--space-16) 20px;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  border-radius: var(--radius);
  transition: background 0.15s var(--ease-out);
}

.v1-hub-tile__summary:hover {
  background: var(--surface-canvas);
}

.v1-hub-tile--open .v1-hub-tile__summary {
  border-radius: 16px 16px 0 0;
  border-bottom: 1px solid var(--neutral-200);
}

.v1-hub-tile__summary:focus-visible {
  outline: 2px solid var(--sea-500);
  outline-offset: 2px;
}

.v1-hub-tile__summary-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
  flex: 1;
}

.v1-hub-tile__summary-main .ah-card__row {
  width: 100%;
  margin-bottom: 10px;
}

.v1-hub-tile__h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.v1-hub-tile__title {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--neutral-500);
  margin: 0;
}

.v1-hub-tile__summary-main .ah-card__stat {
  margin-top: 0;
}

.v1-hub-tile__summary-main .ah-barset {
  margin-top: 4px;
  width: 100%;
}

.v1-hub-tile .ah-bar {
  display: grid;
  grid-template-columns: 72px 1fr 40px;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
}

.v1-hub-tile__teaser {
  margin-top: 8px !important;
}

.v1-hub-tile__teaser--muted {
  color: var(--neutral-600) !important;
  font-weight: 400 !important;
}

.v1-hub-tile__expand-hint {
  display: block;
  margin-top: 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--sea-600);
  letter-spacing: 0.02em;
}

.v1-hub-tile__chev {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 6px;
  background: var(--neutral-100);
  position: relative;
}

.v1-hub-tile__chev::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 45%;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--neutral-500);
  border-bottom: 2px solid var(--neutral-500);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.v1-hub-tile--open .v1-hub-tile__chev::after {
  transform: translate(-50%, -30%) rotate(-135deg);
}

.v1-hub-tile__body {
  padding: 0 20px var(--space-16);
  background: var(--surface-raised);
}

.v1-hub-tile__stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.v1-hub-tile__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 10px;
  margin: 0 0 4px;
  border-bottom: 1px solid var(--neutral-200);
}

.v1-hub-tile__nav-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.v1-hub-tile__nav-count {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-500);
}

.v1-hub-tile__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.v1-hub-tile__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--neutral-300);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.v1-hub-tile__dot:hover {
  background: var(--neutral-400);
}

.v1-hub-tile__dot--active,
.v1-hub-tile__dot[aria-current='true'] {
  background: var(--sea-500);
  transform: scale(1.15);
}

.v1-hub-tile__dot:focus-visible {
  outline: 2px solid var(--sea-500);
  outline-offset: 2px;
}

.v1-hub-tile__nav-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  font-size: 1.125rem;
  line-height: 1;
  color: var(--neutral-700);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    border-color 0.15s var(--ease-out),
    background 0.15s,
    color 0.15s;
}

.v1-hub-tile__nav-arrow:hover:not(:disabled) {
  border-color: var(--sea-200);
  background: var(--sea-50);
  color: var(--sea-800);
}

.v1-hub-tile__nav-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.v1-hub-tile__nav-arrow:focus-visible {
  outline: 2px solid var(--sea-500);
  outline-offset: 2px;
}

.v1-hub-tile__slides {
  min-width: 0;
}

.v1-hub-tile__slide > .v1-hub-tile__label:first-child {
  margin-top: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .v1-hub-tile__dot {
    transition: none;
  }
}

.v1-hub-tile__body:not([hidden]) {
  animation: v1-hub-tile-panel-in 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes v1-hub-tile-panel-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .v1-hub-tile__body:not([hidden]) {
    animation: none;
  }
}

.v1-hub-tile__label {
  margin: 14px 0 6px;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-500);
}

.v1-hub-tile__label:first-child {
  margin-top: 4px;
}

.v1-hub-tile__insight,
.v1-hub-tile__task {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--neutral-700);
}

.v1-hub-tile__task {
  color: var(--neutral-800);
  font-weight: 500;
}

.v1-hub-tile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 4px;
}

.v1-hub-tile__btn {
  font-family: inherit;
  font-size: var(--text-ui);
  font-weight: 400;
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface-raised);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s var(--ease-out), border-color 0.15s;
}

.v1-hub-tile__btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-canvas);
}

.v1-hub-tile__btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.v1-hub-tile__btn--primary:hover {
  background: var(--sea-600);
  border-color: var(--sea-600);
}

.v1-brief-root .ah-card__row {
  margin-bottom: 8px;
}

.v1-msg .ah-text-options {
  margin-top: 12px;
}

.v1-msg .ah-pick-card {
  max-width: 100%;
}

/* Phase: onboarding chat vs Brief hub */
.v1-main--phase-chat .v1-brief-root {
  display: none;
}

/* Brief: hub surface = Brief only; thread is in .v1-chat-dock above composer */
.v1-main--phase-brief .v1-chat-actions {
  display: none !important;
}

.v1-main--phase-brief .v1-chat-scroll {
  display: none !important;
}

.v1-main--phase-brief .v1-brief-root {
  display: block;
}

.v1-main--phase-brief .v1-brief-root[hidden] {
  display: none !important;
}

.v1-main--phase-brief .v1-main__scroll {
  overflow-y: auto;
}

/* Demo link in header */
.v1-link-quiet {
  font-size: 0.75rem;
  color: var(--sea-600);
  font-weight: 600;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.v1-link-quiet:hover {
  text-decoration: underline;
}

.v1-hidden {
  display: none !important;
}

/* ——— Brief hub: Custom Daily Brief–parity (dashboard → tasks, one surface) ——— */
.v1-brief-dash {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.v1-dash-block {
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface-raised);
  overflow: hidden;
}

.v1-dash-block--full {
  width: 100%;
}

.v1-dash-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-12) 20px;
  padding: var(--space-16) var(--space-16);
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-canvas);
}

.v1-dash-block__title {
  margin: 0;
  font-size: var(--title-section);
  font-weight: 400;
  color: var(--neutral-900);
}

.v1-dash-block__hint {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: var(--neutral-600);
  max-width: 62ch;
  line-height: 1.45;
}

.v1-dash-block__action {
  font-family: inherit;
  font-size: var(--text-ui);
  font-weight: 400;
  color: var(--accent);
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--space-8) var(--space-16);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s var(--ease-out), border-color 0.15s;
}

.v1-dash-block__action:hover {
  background: var(--accent-muted);
  border-color: var(--sea-200);
}

.v1-dash-block__action:focus-visible {
  outline: 2px solid var(--sea-500);
  outline-offset: 2px;
}

.v1-dash-block__body {
  padding: 16px 18px 18px;
}

.v1-dash-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.v1-dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.v1-dash-table th,
.v1-dash-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--neutral-200);
  vertical-align: middle;
}

.v1-dash-table th {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--neutral-500);
  background: var(--neutral-50);
}

.v1-dash-table tbody tr:last-child td {
  border-bottom: none;
}

.v1-dash-table__strong {
  font-weight: 600;
  color: var(--neutral-900);
}

.v1-dash-table__row--click {
  cursor: pointer;
}

.v1-dash-table__row--click:hover td {
  background: var(--neutral-50);
}

.v1-dash-table__row--muted td {
  color: var(--neutral-500);
}

.v1-dash-pill {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.v1-dash-pill--risk {
  background: var(--playa-100);
  color: var(--playa-800);
}

.v1-dash-pill--watch {
  background: var(--neutral-200);
  color: var(--neutral-700);
}

.v1-dash-pill--ok {
  background: var(--jade-100);
  color: var(--jade-800);
}

.v1-dash-badge-ai {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--sea-100) 0%, var(--jade-100) 100%);
  color: var(--sea-800);
}

.v1-dash-cta {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sea-600);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.v1-dash-cta:hover {
  color: var(--sea-700);
}

.v1-dash-footnote {
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: var(--neutral-600);
  max-width: 70ch;
  line-height: 1.45;
}

.v1-insights-lede {
  font-size: 0.8125rem;
  color: var(--neutral-600);
  margin: 0 0 12px;
  max-width: 62ch;
}

.v1-insight-actions .ah-btn {
  cursor: pointer;
  font-family: inherit;
}

.v1-brief-tasks {
  width: 100%;
  min-width: 0;
  margin: 0 0 24px;
  padding-top: 8px;
  box-sizing: border-box;
}

.v1-brief-tasks__head {
  margin-bottom: 12px;
}

.v1-brief-tasks__title {
  margin: 0 0 6px;
  font-size: var(--title-section);
  font-weight: 400;
  color: var(--neutral-900);
}

.v1-brief-tasks__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--neutral-600);
  max-width: 56ch;
}

.v1-brief-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.v1-brief-chip {
  font-family: inherit;
  font-size: var(--text-meta);
  font-weight: 400;
  padding: var(--space-4) var(--space-12);
  border-radius: 9999px;
  border: 1px solid var(--hairline);
  background: var(--surface-raised);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: border-color 0.15s var(--ease-out), background 0.15s var(--ease-out), color 0.15s;
}

.v1-brief-chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.v1-brief-chip--active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.v1-brief-chip:focus-visible {
  outline: 2px solid var(--sea-500);
  outline-offset: 2px;
}

.v1-brief-task-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-raised);
  box-sizing: border-box;
}

.v1-brief-task {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px var(--space-16);
  width: 100%;
  text-align: left;
  font-family: inherit;
  padding: var(--space-12) var(--space-16);
  border: none;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-raised);
  cursor: pointer;
  transition: background 0.15s var(--ease-out);
}

.v1-brief-task:last-child {
  border-bottom: none;
}

.v1-brief-task:hover {
  background: var(--surface-canvas);
}

.v1-brief-task--hidden {
  display: none;
}

.v1-brief-task__main {
  flex: 1;
  min-width: 0;
}

.v1-brief-task__title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neutral-900);
}

.v1-brief-task__meta {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--neutral-600);
}

.v1-brief-task__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.v1-brief-task__due {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--neutral-500);
  flex-shrink: 0;
}

.v1-brief-task__due--urgent {
  color: var(--playa-700);
}

.v1-brief-badge-type {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 7px;
  border-radius: 4px;
}

.v1-brief-badge-type--sales {
  background: var(--sea-100);
  color: var(--sea-800);
}

.v1-brief-badge-type--marketing {
  background: var(--playa-100);
  color: var(--playa-600);
}

.v1-brief-badge-type--support {
  background: var(--jade-100);
  color: var(--jade-800);
}

.v1-brief-badge-ai {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--sea-100), var(--jade-100));
  color: var(--sea-800);
}

.v1-brief-badge-approval {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--playa-100);
  color: var(--playa-800);
}

/* Modals */
.v1-brief-modal[hidden] {
  display: none !important;
}

.v1-brief-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.v1-brief-modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--eclipse-60);
  backdrop-filter: blur(4px);
}

.v1-brief-modal__box {
  position: relative;
  width: min(480px, 100%);
  max-height: min(88vh, 640px);
  display: flex;
  flex-direction: column;
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-xl);
}

.v1-brief-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--neutral-200);
}

.v1-brief-modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--neutral-950);
  line-height: 1.35;
}

.v1-brief-modal__close {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
  border: none;
  background: var(--neutral-100);
  color: var(--neutral-600);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.v1-brief-modal__close:hover {
  background: var(--neutral-200);
}

.v1-brief-modal__body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--neutral-800);
}

.v1-brief-modal__body p {
  margin: 0 0 12px;
}

.v1-brief-modal__body p:last-child {
  margin-bottom: 0;
}

.v1-brief-task-modal__source {
  font-size: 0.8125rem;
  color: var(--neutral-600);
  padding: 10px 12px;
  background: var(--neutral-50);
  border-radius: 8px;
  border-left: 3px solid var(--sea-400);
  margin-bottom: 14px !important;
}

.v1-brief-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--neutral-200);
}

.v1-brief-btn {
  font-family: inherit;
  font-size: var(--text-ui);
  font-weight: 400;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: background 0.15s var(--ease-out), border-color 0.15s;
}

.v1-brief-btn--secondary {
  background: var(--surface-raised);
  color: var(--text);
}

.v1-brief-btn--secondary:hover {
  background: var(--surface-canvas);
}

.v1-brief-btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.v1-brief-btn--primary:hover {
  background: var(--sea-600);
  border-color: var(--sea-600);
}

.v1-brief-bulk__lead {
  margin: 0 0 16px;
  font-size: 0.875rem;
  color: var(--neutral-700);
  line-height: 1.5;
}

.v1-brief-bulk__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.v1-brief-bulk__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--neutral-200);
}

.v1-brief-bulk__item:last-child {
  border-bottom: none;
}

.v1-brief-bulk__item--disabled {
  opacity: 0.72;
}

.v1-brief-bulk__item input {
  margin-top: 4px;
  flex-shrink: 0;
}

.v1-brief-bulk__item-main {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.v1-brief-bulk__item-title {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--neutral-900);
}

.v1-brief-bulk__item-meta {
  font-size: 0.75rem;
  color: var(--neutral-600);
  margin-top: 4px;
  line-height: 1.4;
}

.v1-brief-bulk__item-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--neutral-200);
  color: var(--neutral-700);
}

.v1-brief-bulk__item-tag--human {
  background: var(--jade-100);
  color: var(--jade-800);
}

.v1-brief-bulk__footnote {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--neutral-600);
}

.v1-brief-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 13000;
  padding: var(--space-12) 20px;
  font-size: var(--text-ui);
  font-weight: 400;
  color: var(--neutral-900);
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease-out);
  max-width: min(420px, calc(100vw - 32px));
  text-align: center;
}

.v1-brief-toast.v1-brief-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Hub tile → reporting spoke (glass box) */
.v1-hub-tile__report-line {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--neutral-200);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.v1-hub-tile__report-btn {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sea-600);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.v1-hub-tile__report-btn:hover {
  color: var(--sea-700);
}

.v1-hub-tile__report-btn:focus-visible {
  outline: 2px solid var(--sea-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.v1-hub-tile__report-hint {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--neutral-500);
  line-height: 1.45;
  max-width: 58ch;
}

/* Reporting spoke — full-width canvas; FAI remains fixed below */
.v1-main--phase-brief .v1-report-root:not([hidden]) {
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 8px 40px;
  box-sizing: border-box;
}

.v1-report-spoke {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.v1-report-spoke__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.v1-report-spoke__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font: inherit;
  font-size: var(--text-ui);
  font-weight: 400;
  color: var(--accent);
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--space-8) var(--space-12) var(--space-8) 10px;
  cursor: pointer;
  transition: background 0.15s var(--ease-out), border-color 0.15s;
}

.v1-report-spoke__back:hover {
  border-color: var(--sea-200);
  background: var(--accent-muted);
}

.v1-report-spoke__back:focus-visible {
  outline: 2px solid var(--sea-500);
  outline-offset: 2px;
}

.v1-report-spoke__title-wrap {
  width: 100%;
}

.v1-report-spoke__crumb {
  margin: 0 0 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-500);
}

.v1-report-spoke__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.375rem);
  font-weight: 600;
  color: var(--neutral-900);
  line-height: 1.2;
}

.v1-report-spoke__glass {
  margin: 0;
  padding: var(--space-12) var(--space-16);
  font-size: var(--text-ui);
  line-height: 1.45;
  color: var(--neutral-700);
  background: var(--accent-muted);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius);
}

.v1-report-spoke__glass strong {
  color: var(--neutral-900);
}

.v1-report-spoke__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.v1-report-spoke__search {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface-raised);
  font-size: var(--text-ui);
  color: var(--text-secondary);
}

.v1-report-spoke__search-icon {
  opacity: 0.5;
}

.v1-report-spoke__chip {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--neutral-200);
  background: var(--neutral-75);
  color: var(--neutral-600);
}

.v1-report-spoke__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .v1-report-spoke__metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

.v1-report-spoke__metric {
  padding: var(--space-16);
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface-raised);
}

.v1-report-spoke__metric-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--neutral-500);
  margin-bottom: 6px;
}

.v1-report-spoke__metric-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neutral-950);
  letter-spacing: -0.02em;
}

.v1-report-spoke__table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface-raised);
}

.v1-report-spoke__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.v1-report-spoke__table th,
.v1-report-spoke__table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--neutral-200);
  white-space: nowrap;
}

.v1-report-spoke__table th {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--neutral-500);
  background: var(--neutral-50);
}

.v1-report-spoke__table tbody tr:last-child td {
  border-bottom: none;
}

.v1-report-spoke__mono {
  font-family: ui-monospace, monospace;
  font-size: 0.6875rem;
  color: var(--neutral-600);
}

.v1-report-spoke__ref {
  font: inherit;
  font-size: inherit;
  font-weight: 600;
  color: var(--sea-600);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

