/* journey-comments-in-place · tokens from apps/web/src/assets/styles/globals.css (light theme) */
:root {
  --background: #f3effa;
  --foreground: #121021;
  --card: #ffffff;
  --primary: #06041f;
  --primary-foreground: #ffffff;
  --accent: #f5f5fc;
  --accent-interactive: #5935e9;
  --accent-soft: #e9e5f9;
  --accent-soft-hover: #ddd6f3;
  --accent-ink: #3b2a8f;
  --muted: #e8e5f0;
  --muted-foreground: #6e6a8b;
  --destructive: #e62b0f;
  --destructive-soft: #fdecea;
  --destructive-ink: #b3210a;
  --success-ink: #087a55;
  --success-soft: #e3f8ee;
  --warning-ink: #9a5b06;
  --warning-soft: #fff1d9;
  --border: #d4c5e6;
  --input: #ebe5f5;
  --ring: #5935e9;
  --sidebar: #f8f7fb;
  --service-card: #fbf2c7;
  --hotel-tint: #cfe8cf;
  --paris: #f3b77c;
  --paris-soft: #fde5cc;
  --paris-ink: #9a4d07;
  --alps: #9fcf87;
  --alps-soft: #dcf1d0;
  --alps-ink: #2f6b16;
  --emerald-soft: #ecfdf5;
  --emerald-line: #a7f3d0;
  --emerald-ink: #047857;
  --shadow-popover: 0 24px 60px rgba(18, 16, 33, 0.18), 0 2px 8px rgba(18, 16, 33, 0.06);
  --shadow-frame: 0 18px 50px rgba(18, 16, 33, 0.1);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--foreground);
}

* { box-sizing: border-box; }
body { margin: 0; background: #ebe8f3; color: var(--foreground); }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.i { width: 20px; height: 20px; flex-shrink: 0; }
.i.small { width: 16px; height: 16px; }
.i.muted { color: var(--muted-foreground); }
.i.warn { color: #d88a06; }
.i.danger { color: var(--destructive); }
.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .spin, .caret { animation: none; } }

/* ---------------------------------------------------------------- review shell */
.review-toolbar { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 20px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 1px 0 rgba(18, 16, 33, 0.06); }
.review-brand { display: grid; gap: 2px; }
.review-brand strong { font-size: 16px; }
.review-kicker { color: var(--accent-interactive); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.review-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.review-controls label { display: grid; gap: 4px; color: var(--muted-foreground); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.review-controls select, .quiet-button { min-height: 36px; border: 0; border-radius: 999px; background: var(--accent-soft); padding: 0 14px; font-size: 13px; }
.notes-toggle { grid-auto-flow: column; align-items: center; min-height: 36px; border-radius: 999px; background: var(--accent-soft); padding: 0 12px; }
.notes-toggle input { accent-color: var(--accent-interactive); }
.state-pills { display: flex; gap: 8px; overflow-x: auto; padding: 12px 20px 0; scrollbar-width: none; }
.state-pills::-webkit-scrollbar { display: none; }
.state-pill { flex: 0 0 auto; border: 0; border-radius: 999px; background: #fff; padding: 8px 12px; font-size: 12px; font-weight: 600; }
.state-pill:hover { background: var(--accent-soft); }
.state-pill.active { background: var(--primary); color: var(--primary-foreground); }
.prototype-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; padding: 16px 20px 48px; }
.prototype-stage, .screen-root { min-width: 0; }
.review-notes { position: sticky; top: 124px; display: grid; gap: 14px; border-radius: 24px; background: #fff; padding: 20px; box-shadow: var(--shadow-frame); }
.review-notes[hidden] { display: none; }
.note-heading { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.note-group { color: var(--accent-interactive); }
.score-target { color: var(--success-ink); }
.review-notes h2 { margin: 0; font-size: 18px; }
.review-notes h3 { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted-foreground); }
.review-notes p, .review-notes li { margin: 0; font-size: 13px; line-height: 1.5; }
.review-notes ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.question-card { border-radius: 18px; background: var(--accent-soft); padding: 12px 14px; }
@media (max-width: 1240px) {
  .prototype-layout { grid-template-columns: minmax(0, 1fr); }
  .review-notes { position: static; }
}

/* ---------------------------------------------------------------- app frame */
.odia-app-frame { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr); overflow: hidden; border-radius: 24px; background: var(--sidebar); box-shadow: var(--shadow-frame); font-size: 14px; }
.app-sidebar { display: flex; flex-direction: column; gap: 10px; padding: 14px 10px; }
.team-switcher { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 6px 8px; font-weight: 600; text-align: left; }
.team-switcher span:nth-child(2) { flex: 1; }
.team-mark { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: var(--muted); color: var(--foreground); font-size: 12px; font-weight: 700; }
.sidebar-search { display: flex; align-items: center; gap: 8px; border-radius: 999px; background: #fff; padding: 9px 12px; color: var(--muted-foreground); font-size: 14px; }
.sidebar-nav { display: grid; gap: 2px; margin-top: 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 42px; border: 0; border-radius: 999px; background: transparent; padding: 0 12px; font-size: 15px; text-align: left; }
.nav-item:hover { background: var(--accent-soft); }
.nav-item.is-active { background: var(--accent-soft); font-weight: 600; }
.sidebar-account { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 8px 6px; }
.sidebar-account div { display: grid; min-width: 0; flex: 1; }
.sidebar-account strong { font-size: 14px; }
.sidebar-account span { overflow: hidden; color: var(--muted-foreground); font-size: 12px; text-overflow: ellipsis; }

.app-main { display: flex; min-width: 0; flex-direction: column; }
.app-topbar { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px 0 22px; }
.crumbs { display: flex; min-width: 0; align-items: center; gap: 10px; font-size: 15px; }
.crumb { color: var(--muted-foreground); }
.crumb.is-current { color: var(--foreground); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-button { position: relative; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 999px; background: transparent; }
.topbar-button:hover, .topbar-button.is-open { background: var(--accent-soft); }
.topbar-odi { display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--primary); }
.topbar-odi .i { width: 28px; height: 28px; stroke-width: 2.4; }
.count-badge { position: absolute; top: -5px; right: -6px; display: grid; min-width: 18px; height: 18px; place-items: center; border-radius: 999px; padding: 0 5px; font-size: 10px; font-weight: 700; line-height: 1; }
.count-badge.is-red { background: var(--destructive); color: #fff; }
.count-badge.is-emerald { border: 1px solid var(--emerald-line); background: var(--emerald-soft); color: var(--emerald-ink); }

.content-lane { display: grid; min-width: 0; gap: 14px; align-content: start; border-top-left-radius: 24px; background: var(--background); padding: 20px 22px 30px; }

.journey-header { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; border-radius: 24px; background: var(--card); padding: 12px; }
.journey-cover { min-height: 138px; border-radius: 18px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 6px, transparent 6px 22px), linear-gradient(165deg, #d8c6ae 0%, #9c8b78 42%, #4b433f 78%, #2f2a2a 100%); }
.journey-main { display: grid; min-width: 0; align-content: space-between; gap: 12px; padding: 4px 2px; }
.journey-top { display: flex; min-width: 0; align-items: flex-start; gap: 12px; }
.journey-identity { display: grid; min-width: 0; flex: 1; gap: 6px; }
.title-line { display: flex; align-items: center; gap: 10px; }
.title-line h1 { margin: 0; font-size: 20px; font-weight: 600; }
.ref { display: inline-flex; align-items: center; gap: 4px; color: var(--muted-foreground); font-size: 12px; }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted-foreground); font-size: 13px; }
.meta-line > span { display: inline-flex; align-items: center; gap: 5px; }
.meta-line strong { color: var(--foreground); font-weight: 500; }
.ta-chip { border-radius: 999px; background: var(--accent-soft); padding: 3px 10px; color: var(--accent-ink); font-weight: 500; }
.journey-total { display: grid; justify-items: end; }
.journey-total span { color: var(--muted-foreground); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.journey-total strong { font-size: 20px; font-weight: 600; }
.ghost-icon { display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--muted-foreground); }
.journey-bottom { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; }
.owner-line { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.owner-name { font-size: 16px; }
.version-pill { display: inline-flex; align-items: center; gap: 2px; border-radius: 999px; background: var(--accent-soft); padding: 3px 8px; color: var(--accent-ink); font-size: 13px; font-weight: 500; }
.status-pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; background: var(--success-soft); padding: 4px 10px; color: var(--success-ink); font-size: 13px; font-weight: 500; }
.header-actions { display: flex; min-width: 0; flex: 1; align-items: center; gap: 8px; overflow-x: auto; padding: 8px 8px 8px 2px; margin: -8px -8px -8px 0; scrollbar-width: none; }
.header-actions > :first-child { margin-left: auto; }
.header-actions::-webkit-scrollbar { display: none; }
.warning-chip { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; border-radius: 999px; background: var(--warning-soft); padding: 5px 10px; color: var(--warning-ink); font-size: 13px; }
.tinted-icon { position: relative; display: grid; flex: 0 0 auto; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 999px; background: var(--accent-soft); color: var(--accent-interactive); }
.tinted-icon .i { width: 17px; height: 17px; }
.tinted-icon:hover { background: var(--accent-soft-hover); }
.tinted-icon.is-open { background: var(--primary); color: var(--primary-foreground); }
.tinted-pill { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; height: 32px; border: 0; border-radius: 999px; background: var(--accent-soft); padding: 0 14px; color: var(--accent-ink); font-size: 13px; font-weight: 500; white-space: nowrap; }
.tinted-pill:hover { background: var(--accent-soft-hover); }
.unpublished { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; border-radius: 999px; background: var(--warning-soft); padding: 6px 12px; color: var(--warning-ink); font-size: 13px; white-space: nowrap; }
.publish-group { display: inline-flex; flex: 0 0 auto; overflow: hidden; border-radius: 999px; background: var(--primary); }
.publish-button, .publish-link { display: inline-flex; align-items: center; gap: 6px; height: 32px; border: 0; background: transparent; padding: 0 14px; color: #fff; font-size: 13px; font-weight: 600; }
.publish-link { padding: 0 12px; box-shadow: inset 1px 0 rgba(255, 255, 255, 0.2); }
.new-dot { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 999px; background: var(--destructive); box-shadow: 0 0 0 2px #fff; }
.new-dot.on-control { top: -2px; right: auto; left: -2px; }
.new-dot.inline { position: static; display: inline-block; width: 8px; height: 8px; box-shadow: none; }

.tabs-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; }
.journey-tabs { display: flex; min-width: 0; gap: 2px; overflow-x: auto; border-radius: 999px; background: var(--card); padding: 4px; scrollbar-width: none; }
.journey-tabs::-webkit-scrollbar { display: none; }
.journey-tabs button { flex: 0 0 auto; border: 0; border-radius: 999px; background: transparent; padding: 8px 16px; color: var(--muted-foreground); font-size: 15px; }
.journey-tabs button:hover { color: var(--foreground); }
.journey-tabs button.is-active { background: var(--primary); color: #fff; }
.ai-button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; border: 0; border-radius: 999px; background: var(--card); padding: 8px 14px; font-size: 14px; font-weight: 600; }

.board-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.toolbar-left, .toolbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sort-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; border: 0; border-radius: 999px; background: var(--card); padding: 0 14px; font-size: 14px; }
.link-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; border: 0; border-radius: 999px; background: var(--accent-soft); padding: 0 14px; color: var(--accent-interactive); font-size: 14px; }
.zoom-group { display: inline-flex; align-items: center; gap: 12px; height: 36px; border-radius: 999px; background: var(--card); padding: 0 14px; }
.round-tinted { display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 999px; background: var(--accent-soft); color: var(--accent-interactive); }
.view-toggle { display: inline-flex; gap: 2px; border-radius: 999px; background: var(--card); padding: 3px; font-size: 14px; }
.view-toggle span { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; color: var(--muted-foreground); }
.view-toggle span.is-active { background: var(--primary); color: #fff; }
.leg-pills { display: flex; gap: 8px; }
.leg-pill { border-radius: 999px; padding: 3px 10px; font-size: 13px; }
.leg-pill small { font-size: 12px; opacity: 0.85; }
.leg-pill.is-paris { background: var(--paris-soft); color: var(--paris-ink); }
.leg-pill.is-alps { background: var(--alps-soft); color: var(--alps-ink); }

/* ---------------------------------------------------------------- board */
.board { display: grid; min-width: 0; gap: 10px; }
.framing { display: flex; align-items: center; gap: 6px; color: var(--muted-foreground); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.day-row { display: grid; grid-template-columns: 44px 14px minmax(0, 1fr); gap: 10px; align-items: stretch; }
.day-label { display: grid; align-content: center; justify-items: start; gap: 2px; color: var(--muted-foreground); font-size: 11px; }
.day-label strong { color: var(--foreground); font-size: 15px; font-weight: 600; }
.leg-ribbon { position: relative; width: 6px; justify-self: center; border-radius: 999px; }
.leg-ribbon.is-paris { background: var(--paris); }
.leg-ribbon.is-alps { background: var(--alps); }
.leg-ribbon b { position: absolute; top: 4px; left: 50%; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; border-radius: 999px; padding: 6px 2px; font-size: 10px; font-weight: 600; }
.leg-ribbon.is-paris b { background: var(--paris-soft); color: var(--paris-ink); }
.leg-ribbon.is-alps b { background: var(--alps-soft); color: var(--alps-ink); }
.day-lane { display: flex; min-width: 0; align-items: center; gap: 16px; overflow-x: auto; border-radius: 24px; background: var(--card); padding: 14px 22px 12px 14px; scrollbar-width: none; }
.day-lane::-webkit-scrollbar { display: none; }
.empty-day { display: flex; align-items: center; gap: 18px; border: 1px dashed var(--border); border-radius: 24px; background: rgba(255, 255, 255, 0.45); padding: 10px 16px; color: var(--muted-foreground); font-size: 13px; }
.empty-day span { flex: 1; text-align: center; }
.empty-day button { border: 0; background: transparent; color: var(--muted-foreground); font-size: 13px; }
.add-slot { display: grid; flex: 0 0 auto; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--muted-foreground); }

.service-card { position: relative; flex: 0 0 240px; border-radius: 20px; background: var(--service-card); transition: box-shadow 160ms ease; }
.service-card.is-hotel { background: linear-gradient(112deg, var(--service-card) 0 64%, var(--hotel-tint) 64% 100%); }
.service-card.is-active { box-shadow: 0 0 0 3px var(--accent-soft-hover); }
.card-body { display: grid; width: 100%; gap: 12px; border: 0; border-radius: 20px; background: transparent; padding: 11px 12px 10px; text-align: left; }
.card-top { display: flex; min-width: 0; align-items: center; gap: 8px; }
.card-time { color: var(--muted-foreground); font-size: 13px; }
.card-title { min-width: 0; flex: 1; overflow: hidden; font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.card-icon { color: var(--muted-foreground); }
.card-bottom { display: flex; align-items: center; gap: 8px; }
.card-spacer { flex: 1; }
.price-pill { border-radius: 999px; background: var(--accent-soft); padding: 2px 10px; color: var(--accent-interactive); font-size: 13px; font-weight: 600; }
.price-pill.is-add { font-weight: 500; }
.price-range { color: var(--muted-foreground); font-size: 13px; }

/* Current CommentBubble.tsx: 28px, bg-primary, teardrop, ring-2 ring-white, shadow-md, trailing top-right */
.bubble { position: absolute; top: 12px; right: -14px; display: flex; width: 28px; height: 28px; align-items: center; justify-content: center; transform: translateY(-50%); border: 0; border-radius: 999px 999px 999px 0; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(6, 4, 31, 0.22); z-index: 2; }
.bubble.is-client { background: var(--accent-interactive); }
.bubble.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--accent-soft-hover); }
.bubble.is-ghost { display: none; background: #fff; color: var(--muted-foreground); box-shadow: 0 0 0 1px var(--border), 0 4px 10px rgba(6, 4, 31, 0.1); }
.service-card:hover .bubble.is-ghost, .bubble.is-ghost.is-forced { display: flex; }
.bubble.is-unavailable { background: var(--destructive); }
.bubble.in-header { position: relative; top: auto; right: auto; width: auto; height: 32px; gap: 6px; transform: none; border-radius: 999px; padding: 0 12px; font-size: 13px; box-shadow: none; }
.bubble.in-header.is-ghost { display: flex; box-shadow: 0 0 0 1px var(--border); }

/* ---------------------------------------------------------------- popovers */
.popover { position: absolute; z-index: 30; width: 384px; max-width: calc(100% - 24px); border-radius: 24px; background: var(--card); box-shadow: var(--shadow-popover); }
.list-popover { width: 420px; }
.inbox-popover { width: 390px; }
.thread-card.is-centered { width: 420px; }
.popover-header { display: flex; align-items: flex-start; gap: 4px; padding: 16px 12px 8px 16px; }
.popover-title { display: grid; min-width: 0; flex: 1; gap: 2px; }
.popover-title h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.popover-title span { color: var(--muted-foreground); font-size: 12px; }
.round-ghost { display: grid; flex: 0 0 auto; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--muted-foreground); }
.round-ghost:hover { background: var(--muted); color: var(--foreground); }
.follow-toggle { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; height: 30px; margin-right: 2px; border: 0; border-radius: 999px; background: var(--accent-soft); padding: 0 10px; color: var(--accent-interactive); font-size: 12px; font-weight: 600; }
.popover-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px 8px 10px; }
.stepper { display: inline-flex; align-items: center; gap: 2px; }
.stepper-label { margin-left: 4px; color: var(--muted-foreground); font-size: 12px; font-weight: 600; }
.popover-body { display: grid; gap: 10px; padding: 0 16px 14px; }
.popover-footer { padding: 4px 16px 16px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin: 12px 16px 0; border: 0; border-radius: 999px; background: var(--accent-soft); padding: 6px 12px; color: var(--accent-interactive); font-size: 12px; font-weight: 600; }

.thread-block { display: grid; gap: 2px; }
.thread-block:not(.is-primary):not(.is-resolved) { border-radius: 20px; background: var(--accent); padding: 8px 10px; }
.comment { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 6px 0; }
.avatar { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11px; font-weight: 700; }
.avatar.small { width: 24px; height: 24px; font-size: 10px; }
.avatar.is-client { background: var(--accent-interactive); color: #fff; }
.comment-main { min-width: 0; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 12px; color: var(--muted-foreground); }
.comment-meta strong { color: var(--foreground); font-size: 13px; font-weight: 600; }
.role-tag { border-radius: 999px; background: var(--accent-soft); padding: 0 7px; color: var(--accent-interactive); font-size: 11px; font-weight: 600; }
.comment p { margin: 2px 0 0; font-size: 14px; line-height: 1.45; }
.mention { border-radius: 6px; background: var(--accent-soft); padding: 0 3px; color: var(--accent-interactive); font-weight: 600; }
.new-marker { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; color: var(--destructive); font-size: 11px; font-weight: 700; }
.audience-chip { display: inline-flex; justify-self: start; align-items: center; gap: 6px; margin-bottom: 4px; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.audience-chip.is-client { background: var(--accent-soft); color: var(--accent-interactive); }

.composer { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.composer.is-pending { opacity: 1; }
.composer-field { display: flex; min-width: 0; min-height: 40px; flex: 1; align-items: center; border-radius: 24px; background: var(--input); padding: 9px 14px; font-size: 14px; line-height: 1.35; }
.composer-field span { color: var(--muted-foreground); }
.composer-field.is-focused { box-shadow: 0 0 0 2px rgba(89, 53, 233, 0.35); }
.composer.is-pending .composer-field { color: var(--muted-foreground); }
.caret { display: inline-block; width: 1px; height: 16px; margin-left: 1px; background: var(--foreground); animation: blink 1s step-end infinite; }
.send-button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 6px; width: 38px; height: 38px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; }
.send-button:disabled { background: var(--muted); color: var(--muted-foreground); cursor: not-allowed; }
.send-button.is-pending { width: auto; padding: 0 14px; background: var(--primary); color: #fff; cursor: progress; }
.composer-note { display: flex; align-items: center; gap: 6px; margin: 6px 2px 0; color: var(--muted-foreground); font-size: 12px; }
.inline-error { display: flex; align-items: center; gap: 8px; margin-top: 8px; border-radius: 18px; background: var(--destructive-soft); padding: 8px 8px 8px 12px; color: var(--destructive-ink); font-size: 13px; }
.inline-error span { flex: 1; }
.inline-error button { border: 0; border-radius: 999px; background: #fff; padding: 5px 12px; color: var(--destructive-ink); font-size: 12px; font-weight: 600; }
.thread-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ghost-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; border: 0; border-radius: 999px; background: transparent; padding: 0 12px; font-size: 13px; font-weight: 600; }
.ghost-pill:hover { background: var(--muted); }
.ghost-pill.is-resolve { color: var(--success-ink); }
.ghost-pill.is-resolve:hover { background: var(--success-soft); }
.resolved-line { display: flex; align-items: center; gap: 8px; border-radius: 18px; background: var(--success-soft); padding: 8px 8px 8px 12px; color: var(--success-ink); font-size: 13px; font-weight: 600; }
.resolved-line span { flex: 1; }
.text-button { display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 999px; background: transparent; padding: 5px 10px; color: var(--accent-interactive); font-size: 13px; font-weight: 600; }
.text-button:hover { background: var(--accent-soft); }
.text-button:disabled { color: var(--muted-foreground); cursor: default; background: transparent; }
.next-open { display: inline-flex; justify-self: end; align-items: center; gap: 6px; border: 0; border-radius: 999px; background: var(--primary); padding: 8px 14px; color: #fff; font-size: 13px; font-weight: 600; }

.filter-pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 8px; }
.filter-pill { display: inline-flex; align-items: center; gap: 5px; height: 30px; border: 0; border-radius: 999px; background: transparent; padding: 0 10px; color: var(--muted-foreground); font-size: 13px; font-weight: 600; }
.filter-pill span { font-size: 12px; font-weight: 500; }
.filter-pill:hover { background: var(--accent); color: var(--foreground); }
.filter-pill.is-active { background: var(--accent-soft); color: var(--foreground); }
.list-body { gap: 2px; padding: 0 8px 8px; }
.list-group { display: grid; gap: 2px; }
.list-group-label { padding: 8px 10px 2px; color: var(--muted-foreground); font-size: 12px; font-weight: 600; }
.list-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: start; width: 100%; border: 0; border-radius: 18px; background: transparent; padding: 9px 10px; text-align: left; }
.list-row:hover { background: var(--accent); }
.list-row .new-dot.inline, .dot-spacer { margin-top: 6px; }
.dot-spacer { width: 8px; }
.list-row-main { display: grid; min-width: 0; gap: 2px; }
.list-row-title { display: flex; min-width: 0; align-items: center; gap: 6px; overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.client-mark { color: var(--accent-interactive); }
.list-row-snippet { overflow: hidden; color: var(--muted-foreground); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.list-row-time { color: var(--muted-foreground); font-size: 12px; white-space: nowrap; }
.list-row-resolved { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; color: var(--success-ink); font-size: 12px; font-weight: 600; }
.list-row-resolved .text-button { padding: 2px 8px; font-size: 12px; }
.list-empty { display: grid; justify-items: center; gap: 6px; padding: 26px 16px; text-align: center; }
.list-empty .i { width: 28px; height: 28px; color: var(--success-ink); }
.list-empty strong { font-size: 15px; }
.list-empty span { color: var(--muted-foreground); font-size: 13px; }

.inbox-body { gap: 2px; padding: 0 8px 10px; }
.inbox-row { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; width: 100%; border: 0; border-radius: 18px; background: transparent; padding: 10px; text-align: left; }
.inbox-row:hover { background: var(--accent); }
.inbox-row.is-unread { background: rgba(6, 4, 31, 0.04); }
.inbox-main { display: grid; min-width: 0; gap: 2px; }
.inbox-line { display: flex; min-width: 0; align-items: center; gap: 5px; font-size: 13px; }
.inbox-line strong { font-weight: 600; }
.inbox-line span { color: var(--muted-foreground); }
.inbox-line .inbox-time { margin-left: auto; font-size: 12px; }
.inbox-snippet { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.journey-chip { display: inline-flex; max-width: 100%; justify-self: start; align-items: center; gap: 5px; margin-top: 4px; overflow: hidden; border-radius: 999px; background: var(--accent-soft); padding: 3px 10px; color: var(--accent-ink); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- service sheet (UnifiedServiceSheet.tsx) */
.service-sheet { position: absolute; top: 0; right: 0; bottom: 0; z-index: 20; display: flex; width: 60%; min-width: 420px; flex-direction: column; border-left: 1px solid var(--border); background: var(--card); box-shadow: -24px 0 60px rgba(18, 16, 33, 0.12); }
.sheet-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 22px 12px; }
.sheet-title { min-width: 0; }
.sheet-title h2 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 18px; font-weight: 600; }
.sheet-title p { margin: 4px 0 0; color: var(--muted-foreground); font-size: 14px; }
.sheet-header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.round-close { display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 999px; background: var(--accent); color: var(--muted-foreground); }
.sheet-tabs { display: flex; gap: 2px; overflow-x: auto; padding: 0 16px; border-bottom: 1px solid var(--muted); scrollbar-width: none; }
.sheet-tabs button { flex: 0 0 auto; border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 10px 10px; color: var(--muted-foreground); font-size: 14px; }
.sheet-tabs button.is-active { border-bottom-color: var(--primary); color: var(--foreground); font-weight: 500; }
.sheet-body { display: grid; flex: 1; align-content: start; gap: 12px; overflow: auto; background: var(--accent); padding: 16px 22px; }
.sheet-section { border-radius: 24px; background: var(--card); padding: 14px 16px; }
.sheet-section h4 { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.field-row label { display: grid; gap: 4px; color: var(--muted-foreground); font-size: 12px; }
.field-row label span, .field-area { border-radius: 24px; background: var(--input); padding: 8px 12px; color: var(--foreground); font-size: 14px; }
.field-area { min-height: 64px; }
.sheet-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid var(--muted); padding: 12px 22px; }
.danger-ghost { display: inline-flex; align-items: center; gap: 6px; height: 32px; border: 0; border-radius: 999px; background: transparent; padding: 0 12px; color: var(--destructive); font-size: 13px; font-weight: 600; }
.danger-ghost:hover { background: var(--destructive-soft); }
.primary-pill { height: 36px; border: 0; border-radius: 999px; background: var(--primary); padding: 0 18px; color: #fff; font-size: 13px; font-weight: 600; }

/* ---------------------------------------------------------------- edge surfaces */
.unavailable { display: grid; justify-items: center; gap: 8px; padding: 16px 8px 8px; text-align: center; }
.unavailable .i { width: 26px; height: 26px; color: var(--muted-foreground); }
.unavailable strong { font-size: 15px; }
.unavailable span { color: var(--muted-foreground); font-size: 13px; }
.detached-note { display: flex; align-items: flex-start; gap: 8px; border-radius: 18px; background: var(--warning-soft); padding: 10px 12px; color: var(--warning-ink); font-size: 13px; line-height: 1.45; }
.toast { position: absolute; right: 20px; bottom: 20px; z-index: 40; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 330px; border-radius: 24px; background: var(--card); padding: 12px 12px 12px 16px; box-shadow: var(--shadow-popover); font-size: 13px; }
.toast strong { display: block; font-size: 13px; }
.toast span { color: var(--muted-foreground); }
.toast button { border: 0; border-radius: 999px; background: var(--accent-soft); padding: 6px 12px; color: var(--accent-interactive); font-size: 12px; font-weight: 600; }
.toast.is-info { grid-template-columns: minmax(0, 1fr); }

/* Today's CommentAnchorLayer popover structure: header strip, then Liveblocks threads */
.popup-strip { display: flex; align-items: center; gap: 6px; border-radius: 24px 24px 0 0; background: rgba(232, 229, 240, 0.45); padding: 8px 8px 8px 16px; }
.strip-label { flex: 1; color: var(--muted-foreground); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.strip-button { display: inline-flex; align-items: center; gap: 5px; height: 28px; border: 0; border-radius: 999px; background: var(--card); padding: 0 10px; color: var(--muted-foreground); font-size: 12px; font-weight: 500; }
.strip-button:hover { color: var(--foreground); }
.strip-close { display: grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--muted-foreground); }
.strip-close:hover { background: var(--muted); color: var(--foreground); }
.popup-body { display: grid; }
.lb-thread { padding: 10px 16px 14px; }
.lb-thread + .lb-thread { border-top: 1px solid var(--muted); }
.lb-thread .comment { grid-template-columns: 28px minmax(0, 1fr) auto; }
.lb-thread.is-resolved .comment p { color: var(--muted-foreground); }
.resolve-toggle { display: grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--muted-foreground); }
.resolve-toggle:hover { background: var(--success-soft); color: var(--success-ink); }
.resolve-toggle.is-resolved { background: var(--success-ink); color: #fff; }
.resolved-note { display: flex; align-items: center; gap: 6px; margin: 4px 0 0 38px; color: var(--success-ink); font-size: 12px; font-weight: 600; }
.composer-field { cursor: text; }
