/* ============================================================
   EYT Studio — product design system
   Dual-type: Playfair Display (brand/titles) + Inter (UI/data)
   Brand: plum #5B3D75 · teal #145F74 · cream #FDF9F0
   One polished light theme. Authentic-SaaS density, not marketing.
   ============================================================ */

:root {
  /* brand */
  --plum: #5b3d75;
  --plum-700: #4a3061;
  --plum-050: #f3eef7;
  --teal: #145f74;
  --teal-700: #0f4a5b;
  --teal-050: #e8f1f4;
  --cream: #fdf9f0;

  /* neutrals (warm) */
  --bg: #faf8f3;
  --surface: #ffffff;
  --surface-2: #f6f3ec;
  --ink: #241c2b;
  --ink-2: #4a4453;
  --muted: #7a7382;
  --line: #ece6de;
  --line-2: #e2dbd0;

  /* semantic */
  --green: #2e7d5b;
  --green-050: #e7f2ec;
  --amber: #b77a1e;
  --amber-050: #f6eddd;
  --red: #b23a3a;
  --red-050: #f6e6e5;
  --blue: #2f5fa6;
  --blue-050: #e7eef8;
  --slate: #5b6470;
  --slate-050: #eceef1;

  /* shape */
  --r-sm: 7px;
  --r: 11px;
  --r-lg: 16px;
  --shadow-sm:
    0 1px 2px rgba(36, 28, 43, 0.06), 0 1px 3px rgba(36, 28, 43, 0.05);
  --shadow: 0 2px 6px rgba(36, 28, 43, 0.06), 0 8px 24px rgba(36, 28, 43, 0.06);
  --shadow-lg: 0 12px 40px rgba(36, 28, 43, 0.14);

  --sidebar-w: 244px;
  --topbar-h: 62px;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-brand: "Playfair Display", Georgia, serif;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
}
button {
  font-family: inherit;
  cursor: pointer;
}
svg {
  display: block;
}
/* An icon with no size rule is 300px, not small.

   Every context that draws a sprite symbol was sized by hand: .btn svg,
   .search svg, .wf__ic svg and so on. A context nobody wrote a rule for
   painted the symbol at the SVG default of 300x150 and pushed the layout
   apart. Two shipped that way and neither could fail any check in
   checks/, because the markup is correct and the icon resolves: the nine
   settings category icons at 190px, and 66 status pills across the
   product carrying a 300px padlock.

   This is the floor, not a component style. It sits directly under the
   base `svg` rule so every later selector, all of which are at least as
   specific and all of which come after it, still wins. checks/icons.mjs
   asserts nothing gets past 40px again. */
svg:has(> use) {
  width: 16px;
  height: 16px;
}
.tnum {
  font-variant-numeric: tabular-nums;
}

/* ---------- wordmark ---------- */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32em;
  user-select: none;
}
.wordmark .eyt {
  font-family: var(--font-brand);
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.01em;
}
.wordmark .sub {
  font-family: var(--font-ui);
  font-weight: 500;
  color: var(--plum);
  letter-spacing: 0.02em;
}
.wordmark--lg .eyt {
  font-size: 26px;
}
.wordmark--lg .sub {
  font-size: 16px;
}
.wordmark .hqpill {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--plum);
  padding: 2px 7px;
  border-radius: 6px;
  align-self: center;
}

/* ---------- app shell ---------- */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, #fffdfa, #faf6ef);
  border-right: 1px solid var(--line);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar__brand {
  padding: 6px 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-section {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 10px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-weight: 500;
  font-size: 13.5px;
  position: relative;
  transition:
    background 0.12s,
    color 0.12s;
}
.nav-item svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  opacity: 0.8;
  flex: none;
}
.nav-item:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.nav-item.active {
  background: var(--plum-050);
  color: var(--plum);
  font-weight: 600;
}
.nav-item.active svg {
  opacity: 1;
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 6px 6px 0;
  background: var(--plum);
}
.nav-item .count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--muted);
  padding: 1px 7px;
  border-radius: 20px;
}
.nav-item.active .count {
  background: #fff;
  color: var(--plum);
}
.sidebar__foot {
  margin-top: auto;
  padding: 10px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

/* ---------- main + topbar ---------- */
.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
}
.studio-switcher {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-weight: 600;
  font-size: 13px;
}
.studio-switcher .dot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--teal), var(--plum));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-brand);
}
.studio-switcher .chev {
  color: var(--muted);
}
.search {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 13px;
}
.search svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}
.topbar-spacer {
  flex: 1;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  position: relative;
}
.icon-btn:hover {
  background: var(--surface-2);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}
.icon-btn .badge-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  border: 1.5px solid #fff;
}
.btn-ai {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--teal);
  color: var(--teal);
  background: var(--teal-050);
  font-weight: 600;
  font-size: 13px;
}
.btn-ai svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--plum), var(--teal));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 13px;
  flex: none;
}
.avatar--sm {
  width: 26px;
  height: 26px;
  font-size: 11px;
}
.avatar--xs {
  width: 22px;
  height: 22px;
  font-size: 11px;
}

/* ---------- preview pill ---------- */
.preview-pill {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 15px;
  background: var(--ink);
  color: #fff;
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  font-size: 12.5px;
  font-weight: 500;
}
.preview-pill .k {
  opacity: 0.7;
}
.preview-pill a {
  background: rgba(255, 255, 255, 0.14);
  padding: 6px 13px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.preview-pill a:hover {
  background: rgba(255, 255, 255, 0.24);
}
.preview-pill svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* ---------- page ---------- */
.page {
  padding: 26px 30px 90px;
  max-width: 1240px;
}
.page.hidden {
  display: none;
}
.page-head {
  margin-bottom: 22px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}
.page-title {
  font-family: var(--font-brand);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.page-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
  max-width: 720px;
}
.page-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- layout utils ---------- */
.row {
  display: flex;
  gap: 16px;
}
.row--between {
  justify-content: space-between;
  align-items: center;
}
.row--center {
  align-items: center;
}
.wrap {
  flex-wrap: wrap;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.grid {
  display: grid;
  gap: 16px;
}
.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.col-2 {
  grid-column: span 2;
}
.g-24 {
  gap: 24px;
}
.mt-8 {
  margin-top: 8px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.mb-8 {
  margin-bottom: 8px;
}
.mb-16 {
  margin-bottom: 16px;
}
.mb-24 {
  margin-bottom: 24px;
}
.grow {
  flex: 1;
}

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.card--pad {
  padding: 18px 20px;
}
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.card__title {
  font-size: 13px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 9px;
}
.card__title svg {
  width: 17px;
  height: 17px;
  stroke: var(--plum);
}
.card__body {
  padding: 18px 20px;
}
.card__foot {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
}
.link {
  color: var(--teal);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* ---------- KPI tiles ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.kpi__label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
}
.kpi__label svg {
  width: 15px;
  height: 15px;
  stroke: var(--muted);
}
.kpi__value {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.kpi__meta {
  font-size: 12px;
  margin-top: 5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.delta {
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.delta--up {
  color: var(--green);
}
.delta--down {
  color: var(--red);
}
.delta svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
}

/* ---------- tables ---------- */
.table-wrap {
  overflow-x: auto;
}
table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tbl th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.tbl tbody tr:last-child td {
  border-bottom: none;
}
.tbl tbody tr:hover {
  background: var(--surface-2);
}
.tbl .strong {
  font-weight: 600;
}
.tbl .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.cell-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cell-sub {
  color: var(--muted);
  font-size: 12px;
}
.clickable {
  cursor: pointer;
}

/* ---------- pills / badges ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.pill .dt {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pill--green {
  background: var(--green-050);
  color: var(--green);
}
.pill--yellow {
  background: var(--amber-050);
  color: var(--amber);
}
.pill--red {
  background: var(--red-050);
  color: var(--red);
}
.pill--blue {
  background: var(--blue-050);
  color: var(--blue);
}
.pill--slate {
  background: var(--slate-050);
  color: var(--slate);
}
.pill--gray {
  background: var(--surface-2);
  color: var(--muted);
}
.pill--teal {
  background: var(--teal-050);
  color: var(--teal);
}
.pill--plum {
  background: var(--plum-050);
  color: var(--plum);
}
.tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--ink-2);
}

/* ---------- progress ---------- */
.progress {
  height: 7px;
  border-radius: 20px;
  background: var(--surface-2);
  overflow: hidden;
  min-width: 90px;
}
.progress__bar {
  height: 100%;
  border-radius: 20px;
  background: var(--teal);
}
.progress__bar--warn {
  background: var(--amber);
}
.progress__bar--plum {
  background: var(--plum);
}
.seatline {
  display: flex;
  align-items: center;
  gap: 10px;
}
.seatline .n {
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  transition: 0.12s;
}
.btn:hover {
  background: var(--surface-2);
}
.btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}
.btn--primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.btn--primary:hover {
  background: var(--teal-700);
}
.btn--plum {
  background: var(--plum);
  border-color: var(--plum);
  color: #fff;
}
.btn--plum:hover {
  background: var(--plum-700);
}
.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--teal);
}
.btn--ghost:hover {
  background: var(--teal-050);
}
.btn--sm {
  padding: 6px 11px;
  font-size: 12px;
}
.btn--disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--line);
}

/* ---------- tabs ---------- */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.tab {
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab:hover {
  color: var(--ink);
}
.tab.active {
  color: var(--plum);
  border-bottom-color: var(--plum);
}
.tabpane {
  display: none;
}
.tabpane.active {
  display: block;
}

/* ---------- banners ---------- */
.banner {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 16px;
  border-radius: var(--r);
  font-size: 13px;
}
.banner svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
}
.banner--teal {
  background: var(--teal-050);
  color: var(--teal-700);
  border: 1px solid #cfe2e8;
}
.banner--amber {
  background: var(--amber-050);
  color: #7d5413;
  border: 1px solid #ecdcc0;
}
.banner--plum {
  background: var(--plum-050);
  color: var(--plum-700);
  border: 1px solid #e3d6ee;
}
.banner strong {
  font-weight: 700;
}

/* ---------- calendar (week) ---------- */
.cal {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
}
.cal__grid {
  display: grid;
  grid-template-columns: 56px repeat(7, 1fr);
}
.cal__hd {
  padding: 10px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cal__hd .d {
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
}
.cal__hd.today {
  background: var(--plum-050);
  color: var(--plum);
}
.cal__time {
  grid-column: 1;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  padding: 6px 8px 0 0;
  border-top: 1px solid var(--line);
}
.cal__cell {
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  min-height: 52px;
  padding: 3px;
}
.cal-event {
  border-radius: 6px;
  padding: 5px 7px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 3px;
  cursor: pointer;
  line-height: 1.3;
  border-left: 3px solid;
}
.cal-event .t {
  font-weight: 500;
  opacity: 0.8;
  font-size: 11px;
}
.cal-event--teal {
  background: var(--teal-050);
  color: var(--teal-700);
  border-color: var(--teal);
}
.cal-event--plum {
  background: var(--plum-050);
  color: var(--plum-700);
  border-color: var(--plum);
}
.cal-event--amber {
  background: var(--amber-050);
  color: #7d5413;
  border-color: var(--amber);
}
.cal-event--full {
  opacity: 0.55;
}

/* ---------- kanban ---------- */
.kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: start;
}
.kanban-col {
  background: var(--surface-2);
  border-radius: var(--r);
  padding: 10px;
}
.kanban-col__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
}
.kanban-col__hd .count {
  background: #fff;
  color: var(--muted);
  border-radius: 20px;
  font-size: 11px;
  padding: 1px 8px;
}
.kanban-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 12px;
  margin-bottom: 9px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.kanban-card:hover {
  box-shadow: var(--shadow);
}
.kanban-card__name {
  font-weight: 650;
  font-size: 13px;
}
.kanban-card__meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- drawer / slide-over ---------- */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(36, 28, 43, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 80;
}
.scrim.open {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 460px;
  max-width: 94vw;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transform: translateX(100%);
  transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.drawer.open {
  transform: translateX(0);
}
.drawer__head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.drawer__body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1;
}
.drawer__foot {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
}
.x-btn {
  border: none;
  background: var(--surface-2);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
}
.x-btn:hover {
  background: var(--line);
}
.x-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* mini definition list used in drawers */
.dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 9px 14px;
  font-size: 13px;
}
.dl dt {
  color: var(--muted);
}
.dl dd {
  margin: 0;
  font-weight: 550;
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 10px;
}

/* ---------- chat (Chat EYT) ---------- */
.chat {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 400px;
  max-width: 94vw;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transform: translateX(100%);
  transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.chat.open {
  transform: translateX(0);
}
.chat__head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 11px;
  background: linear-gradient(120deg, var(--plum-050), var(--teal-050));
}
.chat__head .mk {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-brand);
  font-weight: 700;
  color: var(--teal);
  box-shadow: var(--shadow-sm);
}
.chat__title {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 16px;
}
.chat__title small {
  display: block;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 11px;
  color: var(--muted);
}
.chat__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--cream);
}
.msg {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.5;
}
.msg--ai {
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.msg--user {
  background: var(--plum);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.msg__src {
  margin-top: 8px;
  font-size: 11px;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 5px;
}
.msg__src svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  flex: none;
}
.chat__chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
}
.chip {
  font-size: 12px;
  font-weight: 550;
  padding: 6px 11px;
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--ink-2);
  cursor: pointer;
  border: 1px solid var(--line);
}
.chip:hover {
  background: var(--plum-050);
  color: var(--plum);
  border-color: #e3d6ee;
}
.chat__input {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 9px;
  align-items: center;
}
.chat__input input {
  flex: 1;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: 10px 15px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.chat__input input:focus {
  border-color: var(--teal);
}
.chat__send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  flex: none;
}
.chat__send svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* ---------- studio health grid (HQ) ---------- */
.studio-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow 0.14s;
}
.studio-card:hover {
  box-shadow: var(--shadow);
}
.studio-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.studio-card__name {
  font-weight: 650;
  font-size: 13px;
}
.studio-card__city {
  color: var(--muted);
  font-size: 12px;
  margin-top: 1px;
}
.studio-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.mini-stat .l {
  font-size: 11px;
  color: var(--muted);
}
.mini-stat .v {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}

/* status stoplight dot */
.light {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.light--g {
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-050);
}
.light--y {
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-050);
}
.light--r {
  background: var(--red);
  box-shadow: 0 0 0 3px var(--red-050);
}
.light--w {
  background: var(--line-2);
  box-shadow: 0 0 0 3px var(--surface-2);
}

/* ---------- misc ---------- */
.muted {
  color: var(--muted);
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}
.dot-sep {
  color: var(--line-2);
}
.spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
}
.spark span {
  flex: 1;
  background: var(--teal-050);
  border-radius: 6px 6px 0 0;
}
.spark span.hi {
  background: var(--teal);
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 160px;
  padding-top: 10px;
}
.bars .colwrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.bars .col {
  width: 100%;
  display: flex;
  flex-direction: column-reverse;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}
.bars .seg--mem {
  background: var(--teal);
}
.bars .seg--tt {
  background: var(--plum);
}
.bars .lbl {
  font-size: 10.5px;
  color: var(--muted);
}
.legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-2);
}
.legend i {
  width: 10px;
  height: 10px;
  border-radius: 6px;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

.avatar-stack {
  display: flex;
}
.avatar-stack .avatar--xs {
  margin-left: -6px;
  border: 2px solid #fff;
}
.avatar-stack .avatar--xs:first-child {
  margin-left: 0;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
}
.check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.check--done {
  background: var(--green);
  color: #fff;
}
.check--todo {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line-2);
}
.check svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 3;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .app {
    grid-template-columns: 68px 1fr;
  }
  .sidebar {
    padding: 14px 10px;
  }
  .sidebar__brand .wtext,
  .nav-item span,
  .nav-section,
  .sidebar__foot,
  .nav-item .count {
    display: none;
  }
  .nav-item {
    justify-content: center;
    padding: 11px;
  }
  .kpi-grid,
  .cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cols-3 {
    grid-template-columns: 1fr;
  }
  .kanban {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .kpi-grid,
  .cols-2,
  .cols-4,
  .kanban,
  .studio-card__stats {
    grid-template-columns: 1fr;
  }
  .search {
    display: none;
  }
  .page {
    padding: 18px 16px 90px;
  }
}

/* ============================================================
   v2 additions — dropdown menus, comparison table, research
   accordion, view tags, finance, mock-up framing
   ============================================================ */

/* ---------- dropdown menu (studio / network switcher) ---------- */
.menu {
  position: fixed;
  top: calc(var(--topbar-h) - 6px);
  left: calc(var(--sidebar-w) + 22px);
  z-index: 80;
  min-width: 300px;
  max-width: 340px;
  max-height: 72vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 7px;
  opacity: 0;
  transform: translateY(-7px);
  pointer-events: none;
  transition:
    opacity 0.14s,
    transform 0.14s;
}
.menu.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.menu__label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 600;
  padding: 9px 10px 5px;
}
.menu__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: inherit;
}
.menu__item:hover {
  background: var(--surface-2);
}
.menu__item .mdot {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--plum);
  flex: none;
  letter-spacing: 0.02em;
}
.menu__item .nm {
  font-weight: 550;
  line-height: 1.2;
}
.menu__item .nm small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.menu__item .mt {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.menu__item.is-current {
  background: var(--plum-050);
}
.menu__item.is-current .mt {
  color: var(--plum);
  font-weight: 600;
}
.menu__sep {
  height: 1px;
  background: var(--line);
  margin: 6px 4px;
}
.menu__foot {
  padding: 8px 10px 6px;
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 720px) {
  .menu {
    left: 12px;
    right: 12px;
    min-width: 0;
    max-width: none;
  }
}

/* small caption under the switcher clarifying whose view this is */
.view-caption {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 2px;
}
.view-caption .vc-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.view-caption--studio .vc-badge {
  background: var(--teal-050);
  color: var(--teal-700);
}
.view-caption--hq .vc-badge {
  background: var(--plum-050);
  color: var(--plum-700);
}

/* ---------- comparison table (index pitch) ---------- */
.cmp-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
table.cmp {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 860px;
  font-size: 13px;
}
.cmp th,
.cmp td {
  padding: 11px 6px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.cmp thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--surface-2);
  font-weight: 600;
  font-size: 11px;
  line-height: 1.25;
  color: var(--ink-2);
  vertical-align: bottom;
  border-bottom: 2px solid var(--line-2);
}
.cmp th .csub {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.cmp th.pf,
.cmp td.pf {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  min-width: 172px;
  padding-left: 16px;
  font-weight: 600;
  border-right: 1px solid var(--line);
}
.cmp thead th.pf {
  z-index: 4;
  background: var(--surface-2);
}
.cmp tbody tr:hover td {
  background: #fcfaf6;
}
.cmp tbody tr:hover td.pf {
  background: #f7f3ec;
}
.cmp .pf .pname {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
  cursor: help;
  border-bottom: 1px dotted var(--line-2);
  padding-bottom: 1px;
}
.cmp .pf .ppx {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
/* hover verdict is rendered by a JS floating tooltip (#cmp-tip) so it can
   escape the sticky first column's stacking context. See index.html. */
/* capability dots */
.cap {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  vertical-align: middle;
}
.cap--deep {
  background: var(--teal);
}
.cap--std {
  background: radial-gradient(
    circle at 50% 50%,
    var(--teal) 0 42%,
    #b9d4dc 42% 100%
  );
}
.cap--thin {
  background: #fff;
  border: 1.5px solid #c7d7dc;
}
.cap--no {
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--line-2);
}
.cap--yes {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
}
.cap--yes::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.cap--cross {
  color: #cf9c9c;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}
.cap--part {
  background: radial-gradient(
    circle at 50% 50%,
    var(--amber) 0 42%,
    #e6d2ad 42% 100%
  );
}
/* EYT winning row */
.cmp tr.eyt td {
  background: linear-gradient(0deg, var(--plum-050), var(--plum-050));
  border-bottom: none;
  border-top: 2px solid var(--plum);
  padding-top: 14px;
  padding-bottom: 14px;
}
.cmp tr.eyt td.pf {
  background: #efe7f5;
}
.cmp tr.eyt .pname {
  border: none;
  cursor: default;
  font-family: var(--font-brand);
  font-size: 16px;
  color: var(--plum-700);
}
.cmp .yours {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: #fff;
  background: var(--plum);
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
}
.cmp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
}
.cmp-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ---------- research accordion ---------- */
.rcats {
  display: grid;
  gap: 10px;
}
details.rcat {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
details.rcat > summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 13px;
}
details.rcat > summary::-webkit-details-marker {
  display: none;
}
.rcat .rc-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--teal-050);
  display: grid;
  place-items: center;
  flex: none;
}
.rcat .rc-ic svg {
  width: 18px;
  height: 18px;
  stroke: var(--teal);
}
.rcat .rc-hint {
  font-weight: 400;
  font-size: 12.5px;
  color: var(--muted);
  margin-left: auto;
  padding-right: 4px;
}
.rcat .plus {
  flex: none;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.2s;
}
.rcat .plus::before,
.rcat .plus::after {
  content: "";
  position: absolute;
  background: var(--muted);
  border-radius: 2px;
}
.rcat .plus::before {
  left: 9px;
  top: 2px;
  width: 2px;
  height: 16px;
}
.rcat .plus::after {
  top: 9px;
  left: 2px;
  height: 2px;
  width: 16px;
}
details.rcat[open] .plus {
  transform: rotate(135deg);
}
details.rcat[open] > summary {
  border-bottom: 1px solid var(--line);
}
.rcat__body {
  padding: 16px 20px 20px 67px;
}
.rcat__body p {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 10px;
}
.rcat__body p:last-child {
  margin-bottom: 0;
}
.rcat__body b {
  color: var(--ink);
}
@media (max-width: 720px) {
  .rcat__body {
    padding-left: 20px;
  }
  .rcat .rc-hint {
    display: none;
  }
}

/* ---------- view tags on explore cards ---------- */
.view-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  align-self: flex-start;
}
.view-tag--studio {
  background: var(--teal-050);
  color: var(--teal-700);
}
.view-tag--hq {
  background: var(--plum-050);
  color: var(--plum-700);
}
.xcard .who2 {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
  margin-top: 10px;
}

/* ---------- mock-up framing callout ---------- */
.mock-line {
  display: block;
  font-weight: 700;
  color: var(--plum-700);
}
.mock-callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--plum-050);
  border: 1px solid #e2d3ee;
  border-left: 3px solid var(--plum);
  border-radius: var(--r);
  padding: 16px 20px;
  margin-top: 18px;
}
.mock-callout .mc-ic {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--plum);
  display: grid;
  place-items: center;
  flex: none;
}
.mock-callout .mc-ic svg {
  width: 17px;
  height: 17px;
  stroke: #fff;
}
.mock-callout p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}
.mock-callout p b {
  color: var(--plum-700);
}

/* ---------- finance (studio) reuse helpers ---------- */
.fin-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
}
.stream-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.stream-row:last-child {
  border-bottom: none;
}
.stream-row .sbar {
  flex: 1;
  height: 8px;
  border-radius: 6px;
  background: var(--surface-2);
  overflow: hidden;
}
.stream-row .sbar i {
  display: block;
  height: 100%;
  border-radius: 6px;
}
.stream-row .snm {
  width: 148px;
  font-size: 13px;
}
.stream-row .sval {
  width: 92px;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 820px) {
  .fin-hero {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   v3 additions — feature density, copilot, notifications,
   floating comparison tooltip, kanban drag
   ============================================================ */

/* --- floating comparison tooltip (escapes sticky stacking) --- */
#cmp-tip {
  position: fixed;
  z-index: 9999;
  max-width: 288px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 11px 13px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.12s ease,
    transform 0.12s ease;
  pointer-events: none;
  white-space: normal;
}
#cmp-tip.show {
  opacity: 1;
  transform: translateY(0);
}
#cmp-tip::after {
  content: "";
  position: absolute;
  left: var(--tipx, 20px);
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: var(--ink);
  transform: rotate(45deg);
  border-radius: 2px;
}
#cmp-tip.above::after {
  bottom: auto;
  top: -6px;
}

/* --- collapsible capability block (feature density) --- */
details.feat {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  margin-top: 16px;
  overflow: hidden;
}
details.feat + details.feat {
  margin-top: 10px;
}
details.feat > summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  user-select: none;
}
details.feat > summary::-webkit-details-marker {
  display: none;
}
.feat__ic {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--teal-050);
  color: var(--teal);
  display: grid;
  place-items: center;
  flex: none;
}
.feat__ic svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.feat__t {
  flex: 1;
}
.feat__t small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.feat__n {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-050);
  padding: 3px 9px;
  border-radius: 20px;
}
.feat__chev {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 0.18s ease;
  flex: none;
}
details.feat[open] .feat__chev {
  transform: rotate(180deg);
}
.feat__body {
  padding: 4px 16px 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 7px 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.fchk {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.4;
}
.fchk::before {
  content: "";
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
}
.fchk b {
  font-weight: 600;
  color: var(--ink);
}
.fchk .src {
  color: var(--muted);
  font-weight: 400;
}

/* --- EYT copilot strip (Claude-cowork feel) --- */
.copilot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: linear-gradient(100deg, var(--plum-050), var(--teal-050) 130%);
  border: 1px solid #e6ddec;
  margin-top: 18px;
}
.copilot__mk {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: none;
  background: linear-gradient(135deg, var(--plum), var(--teal));
  color: #fff;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 16px;
  display: grid;
  place-items: center;
}
.copilot__tx {
  flex: 1;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}
.copilot__tx b {
  color: var(--ink);
  font-weight: 600;
}
.copilot__acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cchip {
  border: 1px solid #d9cee3;
  background: rgba(255, 255, 255, 0.7);
  color: var(--plum-700);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 550;
  padding: 7px 12px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.05s;
}
.cchip:hover {
  background: #fff;
}
.cchip:active {
  transform: translateY(1px);
}
@media (max-width: 720px) {
  .copilot {
    flex-direction: column;
    align-items: stretch;
  }
  .copilot__acts {
    justify-content: flex-start;
  }
}

/* --- notifications drawer list --- */
.notif {
  display: flex;
  gap: 12px;
  padding: 13px 6px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.notif:hover {
  background: var(--surface-2);
  border-radius: 6px;
}
.notif__ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: none;
  display: grid;
  place-items: center;
}
.notif__ic svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.ni--teal {
  background: var(--teal-050);
  color: var(--teal);
}
.ni--plum {
  background: var(--plum-050);
  color: var(--plum);
}
.ni--green {
  background: var(--green-050);
  color: var(--green);
}
.ni--amber {
  background: var(--amber-050);
  color: var(--amber);
}
.ni--red {
  background: var(--red-050);
  color: var(--red);
}
.notif__c {
  flex: 1;
  font-size: 13px;
  line-height: 1.4;
}
.notif__c b {
  font-weight: 600;
}
.notif__c .nt {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.notif__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
  margin-top: 6px;
}
.notif.read .notif__dot {
  background: transparent;
}
.notif-day {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 16px 0 4px;
}

/* --- kanban drag states --- */
.kanban-card {
  cursor: grab;
}
.kanban-card.dragging {
  opacity: 0.45;
  cursor: grabbing;
}
.kanban-col.drop {
  outline: 2px dashed var(--teal);
  outline-offset: 2px;
  border-radius: var(--r);
  background: var(--teal-050);
}

/* --- simple workflow/automation row (marketing section) --- */
.wf {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.wf:last-child {
  border-bottom: none;
}
.wf__ic {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--plum-050);
  color: var(--plum);
  display: grid;
  place-items: center;
  flex: none;
}
.wf__ic svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.wf__t {
  flex: 1;
}
.wf__t small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 1px;
}
.tog {
  width: 34px;
  height: 20px;
  border-radius: 20px;
  background: var(--green);
  position: relative;
  flex: none;
}
.tog::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}
.tog--off {
  background: var(--line-2);
}
.tog--off::after {
  right: auto;
  left: 2px;
}

/* --- "extensively added" note to Jessica --- */
.jnote {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 16px;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px dashed var(--line-2);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.jnote svg {
  width: 17px;
  height: 17px;
  color: var(--plum);
  flex: none;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.jnote b {
  color: var(--ink);
  font-weight: 600;
}

.mt-12 {
  margin-top: 12px;
}
