/* Publifia Control Room — app-shell additions on top of the design's stylesheets. */

/* The root <body> carries Tailwind's `bg-background`/`text-foreground` classes,
   and in .dark those resolve to hsl(222.2 84% 4.9%) — a dark navy. A class beats
   dashboard3.css's `body { background: var(--bg) }` on specificity, so the
   sidebar (which is transparent) showed navy while .mn kept its own #101013.
   This file only loads on /dashboard, so the override stays route-scoped. */
body {
  background: var(--bg) !important;
  color: var(--txt) !important;
}

/* glass.css lays a `::before` carrying `backdrop-filter: blur(2px) url(#lg-distort)`
   over these bubbles, then tries to keep the label crisp with `… > * { z-index: 3 }`.
   That only lifts child *elements* — the labels here are bare text nodes, which
   can't take a z-index, so they end up under the distortion and render smeared
   while the icon beside them stays sharp. The design hit this too and disabled
   the layer on .cta; do the same for the rest of the text-bearing bubbles.
   The specular ::after sheen and the translucent fill are untouched. */
.gbtn.w::before,
.ex-cta::before,
.audit-btn::before,
.se-btn.primary::before {
  display: none !important;
}

/* Belt and braces: nothing inside a button should inherit a blur. */
.gbtn.w, .ex-cta, .audit-btn, .se-btn.primary, .cta, .btn3 {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* ---- Settings modal: make the body the one scrolling box ----
   .se-modal is a grid and .se-rail/.se-main are grid items, which default to
   `min-height: auto` — so they refuse to shrink below their content and the
   modal grows past its 640px instead of handing the overflow to .se-body.
   The result is a panel taller than the viewport with Profile / Settings /
   Personalization content clipped and unreachable. Allow the items to shrink,
   pin the shell to the viewport, and let only .se-body scroll. */
.se-modal {
  height: min(640px, calc(100vh - 48px)) !important;
  height: min(640px, calc(100dvh - 48px)) !important;
  max-height: calc(100vh - 48px) !important;
  max-height: calc(100dvh - 48px) !important;
}
.se-rail,
.se-main { min-height: 0; }
.se-rail { overflow-y: auto; }
.se-head { flex: none; }
.se-body {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Same treatment for the other scrolling panels, which share the pattern. */
.act-modal { max-height: calc(100vh - 64px); display: flex; flex-direction: column; }
.act-head { flex: none; }
.act-list { flex: 1 1 0%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.mx-modal { max-height: calc(100vh - 48px); }
.mx-body { min-height: 0; }
.mx-list { min-height: 0; overflow-y: auto; }

/* "Enhance" affordance on the campaign description field */
.ob-lbl-row { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; }
.ob-enhance {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; cursor: pointer;
  background: rgba(90,162,255,0.12); border: 1px solid rgba(90,162,255,0.32);
  color: var(--pp2); font-family: inherit; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.01em; transition: .14s;
}
.ob-enhance svg { width: 12px; height: 12px; flex: none; }
.ob-enhance:hover:not(:disabled) { background: rgba(90,162,255,0.2); border-color: rgba(90,162,255,0.5); color: #cfe6ff; }
.ob-enhance:disabled { opacity: .45; cursor: not-allowed; }
.ob-enhance-msg {
  display: flex; align-items: center; gap: 10px; margin-top: 8px;
  font-size: 12px; font-weight: 600; color: #ff8095;
}
.ob-enhance-msg.ok { color: #5fd08a; }
.ob-enhance-msg button {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 700;
  color: var(--txt3); text-decoration: underline;
}
.ob-enhance-msg button:hover { color: var(--txt2); }

/* Gmail authorisation was declined or the window was closed — shown in place of
   the send progress list, so a cancelled send never reads as a delivery. */
.ob-reauth { text-align: center; padding: 30px 28px 26px; }
.ob-reauth-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 15px; border-radius: 13px;
  background: rgba(255,128,149,0.1); border: 1px solid rgba(255,128,149,0.26);
}
.ob-reauth-ic svg { width: 21px; height: 21px; }
.ob-reauth-msg {
  font-size: 14px; line-height: 1.6; color: var(--txt2, #9b9ea6);
  max-width: 42ch; margin: 0 auto 20px;
}
.ob-reauth-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ob-btn.ghost {
  background: transparent !important;
  border: 1px solid var(--line2, rgba(226,227,228,0.115)) !important;
  color: var(--txt2, #9b9ea6) !important;
}
.ob-btn.ghost:hover {
  color: var(--txt, #eaeaeb) !important;
  border-color: var(--txt3, #666a73) !important;
}
.ob-reauth small {
  display: block; margin-top: 16px;
  font-size: 11.5px; line-height: 1.5; color: var(--txt3, #666a73);
}

/* ---- "..." action menus on the campaign tiles ---- */
.dmenu { position: relative; display: inline-flex; }
.dmenu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 22px; padding: 0; border: 0; border-radius: 7px;
  background: transparent; color: var(--txt3); cursor: pointer; transition: .14s;
}
.dmenu-btn svg { width: 16px; height: 16px; }
.dmenu-btn:hover, .dmenu.open .dmenu-btn { background: rgba(255,255,255,0.06); color: var(--txt); }
.dmenu-pop {
  position: absolute; top: calc(100% + 6px); z-index: 60;
  min-width: 208px; padding: 5px; border-radius: 12px;
  background: var(--surface2, #1a1a1d);
  border: 1px solid var(--line2, rgba(226,227,228,0.115));
  box-shadow: 0 22px 60px -22px rgba(0,0,0,0.9);
  animation: dmenuIn .12s ease-out;
}
.dmenu-pop.right { right: 0; }
.dmenu-pop.left { left: 0; }
@keyframes dmenuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dmenu-item {
  display: block; width: 100%; padding: 8px 11px; border: 0; border-radius: 8px;
  background: none; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--txt2);
  transition: .12s;
}
.dmenu-item:hover { background: rgba(255,255,255,0.06); color: var(--txt); }
.dmenu-item.danger { color: #ff8095; }
.dmenu-item.danger:hover { background: rgba(255,128,149,0.12); color: #ffa3b3; }

/* ---- Campaign detail ---- */
.cdt-scrim {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 24px;
  background: rgba(6,6,8,0.72); backdrop-filter: blur(6px);
}
.cdt-modal {
  display: flex; flex-direction: column;
  width: 100%; max-width: 760px; max-height: min(720px, calc(100dvh - 48px));
  border-radius: 18px; background: var(--surface, #151517);
  border: 1px solid var(--line2, rgba(226,227,228,0.115));
  box-shadow: 0 40px 100px -40px rgba(0,0,0,0.95);
}
.cdt-head { display: flex; align-items: flex-start; gap: 16px; padding: 24px 26px 18px; flex: none; }
.cdt-eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--txt3); margin-bottom: 7px;
}
.cdt-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 5px; }
.cdt-head p { font-size: 13px; color: var(--txt2); }
.cdt-x {
  margin-left: auto; flex: none; width: 30px; height: 30px; border: 0; border-radius: 9px;
  background: transparent; color: var(--txt3); cursor: pointer; font-size: 14px; transition: .14s;
}
.cdt-x:hover { background: rgba(255,255,255,0.06); color: var(--txt); }
.cdt-stats { display: flex; gap: 30px; padding: 0 26px 18px; flex: none; }
.cdt-stats div { display: flex; flex-direction: column; gap: 2px; }
.cdt-stats b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cdt-stats span { font-size: 11px; font-weight: 600; color: var(--txt3); }
.cdt-list {
  flex: 1 1 0%; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  border-top: 1px solid var(--line, rgba(226,227,228,0.07));
  padding: 6px 14px;
}
.cdt-row {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: center;
  padding: 12px; border-radius: 11px;
}
.cdt-row:hover { background: rgba(255,255,255,0.03); }
.cdt-pub b, .cdt-contact b { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 3px; }
.cdt-pub span, .cdt-contact span { display: block; font-size: 11.5px; color: var(--txt3); }
.cdt-contact b.muted { color: var(--txt3); font-weight: 600; }
.cdt-empty { padding: 34px 12px; text-align: center; font-size: 13px; color: var(--txt3); }
.cdt-foot {
  display: flex; gap: 10px; justify-content: flex-end; flex: none;
  padding: 16px 26px; border-top: 1px solid var(--line, rgba(226,227,228,0.07));
}

/* ---- Coverage map: full-market scan ---- */
.mx-scan {
  display: inline-flex; align-items: center; gap: 8px; margin-right: 10px;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  background: rgba(90,162,255,0.13); border: 1px solid rgba(90,162,255,0.34);
  color: var(--pp2, #7db8ff); font-family: inherit; font-size: 12px; font-weight: 700;
  white-space: nowrap; transition: .14s;
}
.mx-scan:hover:not(:disabled) { background: rgba(90,162,255,0.22); border-color: rgba(90,162,255,0.55); color: #cfe6ff; }
.mx-scan:disabled { opacity: .6; cursor: progress; }
.mx-scan-sp {
  width: 12px; height: 12px; flex: none; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2); border-top-color: currentColor;
  animation: dashSpin .7s linear infinite;
}
.mx-scan-msg {
  padding: 9px 14px; font-size: 11.5px; line-height: 1.5; color: var(--txt3);
  border-bottom: 1px solid var(--line, rgba(226,227,228,0.07));
}

/* ---- Pitching Studio: the category row now carries every sector ----
   The design had five categories on one line. Scrolling them hid the tail
   behind a fade, so they wrap instead — every sector visible at once, no
   scrollbar, nothing clipped. Chips are tightened so the full set lands in
   two or three tidy rows. */
.lib-cats {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}
.lib-cats .fchip {
  flex: none;
  white-space: nowrap;
  padding: 6px 12px;
  font-size: 12px;
}

/* Worked examples under the search box — the placeholder alone doesn't tell
   anyone what kind of word finds anything. */
.lib-examples {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: -2px 0 12px;
}
.lib-ex-lab {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--txt3); margin-right: 2px;
}
.lib-ex {
  padding: 4px 10px; border-radius: 999px; cursor: pointer;
  background: rgba(90,162,255,0.10); border: 1px solid rgba(90,162,255,0.26);
  color: var(--pp2, #7db8ff); font-family: inherit; font-size: 11.5px; font-weight: 600;
  transition: .14s;
}
.lib-ex:hover { background: rgba(90,162,255,0.2); border-color: rgba(90,162,255,0.5); color: #cfe6ff; }

/* ---- Schedule: month grid and day/week additions ---- */
.cal-empty {
  padding: 14px 16px; margin-bottom: 12px; border-radius: 12px;
  background: var(--surface, #151517);
  border: 1px solid var(--line, rgba(226,227,228,0.07));
  font-size: 13px; color: var(--txt3);
}
.cal-month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: minmax(96px, auto);
}
.cal-mhead {
  padding: 10px 8px; text-align: center;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--txt3);
  border-bottom: 1px solid var(--line2, rgba(226,227,228,0.115));
}
.cal-mcell {
  min-width: 0; padding: 7px 8px;
  border-right: 1px solid var(--line, rgba(226,227,228,0.07));
  border-bottom: 1px solid var(--line, rgba(226,227,228,0.07));
}
.cal-mcell:nth-child(7n + 7) { border-right: 0; }
/* Days either side of the month stay visible but recede. */
.cal-mcell.out { opacity: .38; }
.cal-mcell.today { background: rgba(90,162,255,0.07); }
.cal-mnum {
  font-size: 12px; font-weight: 700; color: var(--txt2); margin-bottom: 5px;
  font-variant-numeric: tabular-nums;
}
.cal-mcell.today .cal-mnum { color: var(--pp2, #7db8ff); }
.cal-mev {
  display: block; margin-bottom: 3px; padding: 3px 7px; border-radius: 6px;
  font-size: 11px; font-weight: 600; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(255,255,255,0.06); color: var(--txt2);
  border-left: 2px solid var(--txt3);
}
.cal-mev.b { background: rgba(90,162,255,0.14); border-left-color: #5aa2ff; color: #cfe6ff; }
.cal-mev.g { background: rgba(95,208,138,0.14); border-left-color: #5fd08a; color: #bdf0d1; }
.cal-mmore { font-size: 10.5px; font-weight: 600; color: var(--txt3); padding-left: 2px; }

/* "Ctrl K" is wider than the "⌘K" the pill was sized for. */
.mn-search .kbd { white-space: nowrap; letter-spacing: .01em; }

/* Coverage Intel: pull replies back from Gmail */
.cov-sync {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  margin-left: auto; padding: 6px 13px; border-radius: 999px; cursor: pointer;
  background: rgba(90,162,255,0.12); border: 1px solid rgba(90,162,255,0.3);
  color: var(--pp2, #7db8ff); font-family: inherit; font-size: 11.5px; font-weight: 700;
  white-space: nowrap; transition: .14s;
}
.cov-sync:hover:not(:disabled) { background: rgba(90,162,255,0.22); border-color: rgba(90,162,255,0.5); color: #cfe6ff; }
.cov-sync:disabled { opacity: .6; cursor: progress; }

/* Outlet picker: make selecting everything an obvious button rather than an
   unlabelled tick box in a table header. */
.ob-tools { flex-wrap: wrap; }
.ob-tools-sp { flex: 1 1 auto; }
.ob-selcount { font-size: 12px; font-weight: 600; color: var(--txt3); white-space: nowrap; }
.ob-selcount b { color: var(--txt); }
.ob-selall {
  padding: 7px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: rgba(90,162,255,0.13); border: 1px solid rgba(90,162,255,0.34);
  color: var(--pp2, #7db8ff); font-family: inherit; font-size: 12px; font-weight: 700;
  transition: .14s;
}
.ob-selall:hover { background: rgba(90,162,255,0.22); border-color: rgba(90,162,255,0.55); color: #cfe6ff; }

.ob-test-input {
  width: 190px; padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line2, rgba(226,227,228,0.115));
  color: var(--txt); font-family: inherit; font-size: 12px;
}
.ob-test-input::placeholder { color: var(--txt3); }
.ob-test-input:focus { outline: none; border-color: rgba(90,162,255,0.5); }

.ob-test-msg { font-size: 12px; font-weight: 600; color: #ff8095; }
.ob-test-msg.ok { color: #5fd08a; }

/* ---- Campaign detail: per-pitch outcome + coverage logging ---- */
.cdt-row { grid-template-columns: 1.1fr 1fr auto !important; }
.cdt-state { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.cdt-badge {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  background: rgba(255,255,255,0.06); color: var(--txt3); text-decoration: none;
}
.cdt-badge.opn { background: rgba(158,161,166,0.16); color: #b8babe; }
.cdt-badge.clk { background: rgba(77,139,255,0.18); color: #9dc0ff; }
.cdt-badge.rep { background: rgba(52,211,192,0.18); color: #6fe3d4; }
.cdt-badge.cov { background: rgba(95,208,138,0.2); color: #7ee0a4; }
.cdt-badge.cov:hover { background: rgba(95,208,138,0.32); color: #bdf0d1; }
.cdt-logbtn {
  padding: 4px 10px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line2, rgba(226,227,228,0.115));
  color: var(--txt3); font-family: inherit; font-size: 10.5px; font-weight: 600;
}
.cdt-logbtn:hover { color: var(--txt); border-color: var(--txt3); }
.cdt-log { display: inline-flex; gap: 6px; }
.cdt-log input {
  width: 190px; padding: 5px 10px; border-radius: 8px;
  background: var(--bg, #0e0e10); border: 1px solid rgba(90,162,255,0.4);
  color: var(--txt); font-family: inherit; font-size: 11.5px;
}
.cdt-log input:focus { outline: none; border-color: rgba(90,162,255,0.7); }
.cdt-log button {
  padding: 5px 11px; border-radius: 8px; cursor: pointer; border: 0;
  background: var(--pp, #5aa2ff); color: #fff; font-family: inherit; font-size: 11.5px; font-weight: 700;
}

/* ---- Team: your code, and joining someone else's ---- */
.tm-join { display: flex; flex-direction: column; }
.tm-code { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.tm-code b {
  font-family: var(--mono, monospace); font-size: 26px; font-weight: 700;
  letter-spacing: .16em; color: var(--txt);
}
.tm-copy {
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line2, rgba(226,227,228,0.115));
  color: var(--txt2); font-family: inherit; font-size: 11.5px; font-weight: 600;
}
.tm-copy:hover:not(:disabled) { color: var(--txt); border-color: var(--txt3); }
.tm-note { margin-top: 8px; font-size: 11.5px; line-height: 1.55; color: var(--txt3); }
.tm-join-row { display: flex; gap: 8px; margin-top: 10px; }
.tm-join-row input {
  flex: 1; min-width: 0; padding: 9px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line2, rgba(226,227,228,0.115));
  color: var(--txt); font-family: var(--mono, monospace); font-size: 15px; letter-spacing: .18em;
}
.tm-join-row input:focus { outline: none; border-color: rgba(90,162,255,0.5); }
.tm-msg { margin-top: 9px; font-size: 12px; font-weight: 600; color: #ff8095; }
.tm-msg.ok { color: #5fd08a; }
.tm-leave {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 11.5px; color: var(--txt3); text-decoration: underline;
}
.tm-leave:hover { color: var(--txt2); }

/* ---- Records: working filter, sort and selection ---- */
.rc-search {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line2, rgba(226,227,228,0.115));
}
.rc-search svg { width: 13px; height: 13px; color: var(--txt3); flex: none; }
.rc-search input {
  width: 220px; background: none; border: 0; outline: none;
  color: var(--txt); font-family: inherit; font-size: 12px;
}
.rc-search input::placeholder { color: var(--txt3); }
.rc-menu-wrap { position: relative; display: inline-flex; }
.rc-menu-scrim { position: fixed; inset: 0; z-index: 60; }
.rc-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 61;
  min-width: 220px; padding: 5px; border-radius: 12px;
  background: var(--surface2, #1a1a1d); border: 1px solid var(--line2, rgba(226,227,228,0.115));
  box-shadow: 0 22px 60px -22px rgba(0,0,0,0.9);
}
.rc-menu button {
  display: block; width: 100%; padding: 8px 11px; border: 0; border-radius: 8px;
  background: none; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--txt2);
}
.rc-menu button:hover { background: rgba(255,255,255,0.06); color: var(--txt); }
.rc-menu button.on { color: var(--pp2, #7db8ff); }
.rc-gr tbody tr { cursor: pointer; }
.rc-gr tbody tr.sel { background: rgba(90,162,255,0.08); }
.rc-ck.on { background: var(--pp, #5aa2ff); border-color: var(--pp, #5aa2ff); position: relative; }
.rc-ck.on::after {
  content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---- Knowledge: brand facts, not a file store ---- */
.kb-lead {
  padding: 12px 15px; margin-bottom: 14px; border-radius: 11px;
  background: rgba(90,162,255,0.07); border: 1px solid rgba(90,162,255,0.2);
  font-size: 12.5px; line-height: 1.6; color: var(--txt2);
}
.kb-lead b { color: var(--txt); }
.kb-editor {
  padding: 16px; margin-bottom: 16px; border-radius: 13px;
  background: var(--surface, #151517); border: 1px solid rgba(90,162,255,0.3);
}
.kb-ed-row { display: flex; gap: 9px; }
.kb-ed-row select, .kb-ed-row input, .kb-editor textarea {
  padding: 9px 12px; border-radius: 9px;
  background: var(--bg, #0e0e10); border: 1px solid var(--line2, rgba(226,227,228,0.115));
  color: var(--txt); font-family: inherit; font-size: 13px;
}
.kb-ed-row select { flex: none; }
.kb-ed-row input { flex: 1; min-width: 0; }
.kb-editor textarea { width: 100%; margin-top: 10px; resize: vertical; line-height: 1.6; }
.kb-editor textarea:focus, .kb-ed-row input:focus { outline: none; border-color: rgba(90,162,255,0.5); }
.kb-hint { margin-top: 8px; font-size: 11.5px; color: var(--txt3); }
.kb-ed-actions { display: flex; gap: 9px; justify-content: flex-end; margin-top: 12px; }
.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.kb-card {
  padding: 14px 16px; border-radius: 13px;
  background: var(--surface, #151517); border: 1px solid var(--line, rgba(226,227,228,0.07));
}
.kb-card.avoid { border-color: rgba(255,128,149,0.28); background: rgba(255,128,149,0.05); }
.kb-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.kb-kind {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--pp2, #7db8ff);
}
.kb-card.avoid .kb-kind { color: #ff8095; }
.kb-act {
  background: none; border: 0; padding: 0 2px; cursor: pointer;
  font-family: inherit; font-size: 11px; font-weight: 600; color: var(--txt3);
}
.kb-act:hover { color: var(--txt); }
.kb-act.danger:hover { color: #ff8095; }
.kb-label { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.kb-body { font-size: 13px; line-height: 1.6; color: var(--txt2); white-space: pre-wrap; }
.kb-empty {
  padding: 40px 24px; text-align: center; border-radius: 13px;
  background: var(--surface, #151517); border: 1px dashed var(--line2, rgba(226,227,228,0.115));
  font-size: 13.5px; line-height: 1.7; color: var(--txt3); max-width: 640px; margin: 0 auto;
}

/* Boot / auth-gate splash */
.dash-boot {
  position: fixed; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  background: var(--bg, #0e0e10); color: var(--txt2, #9b9ea6);
  font-family: 'Manrope', system-ui, sans-serif;
}
.dash-boot p { font-size: 13.5px; font-weight: 500; letter-spacing: -0.005em; }
.dash-boot-dot {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12); border-top-color: var(--pp, #5aa2ff);
  animation: dashSpin .75s linear infinite;
}
@keyframes dashSpin { to { transform: rotate(360deg); } }

/* Route error boundary */
.dash-error {
  position: fixed; inset: 0; display: grid; place-items: center; padding: 24px;
  background: var(--bg, #0e0e10); color: var(--txt, #eaeaeb);
  font-family: 'Manrope', system-ui, sans-serif;
}
.dash-error-card {
  width: 100%; max-width: 620px; padding: 30px 32px; border-radius: 18px;
  background: var(--surface, #151517); border: 1px solid var(--line2, rgba(226,227,228,0.115));
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.9);
}
.dash-error-card h1 { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 9px; }
.dash-error-lead { font-size: 14px; line-height: 1.6; color: var(--txt2, #9b9ea6); margin-bottom: 18px; }
.dash-error-detail {
  padding: 13px 15px; border-radius: 11px; background: var(--bg, #0e0e10);
  border: 1px solid var(--line, rgba(226,227,228,0.07));
  font: 400 12.5px/1.6 'JetBrains Mono', ui-monospace, Menlo, monospace;
  color: #ff8095; white-space: pre-wrap; word-break: break-word; max-height: 220px; overflow: auto;
}
.dash-error-digest { margin-top: 8px; font-size: 11.5px; color: var(--txt3, #666a73); font-family: 'JetBrains Mono', ui-monospace, monospace; }
.dash-error-actions { display: flex; gap: 10px; margin-top: 20px; }
.dash-error-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 18px; border-radius: 11px; cursor: pointer; text-decoration: none;
  font: 600 13.5px 'Manrope', system-ui, sans-serif;
  background: transparent; color: var(--txt2, #9b9ea6);
  border: 1px solid var(--line2, rgba(226,227,228,0.115));
}
.dash-error-btn:hover { color: var(--txt, #eaeaeb); border-color: var(--txt3, #666a73); }
.dash-error-btn.primary { background: var(--pp, #5aa2ff); border-color: transparent; color: #fff; }
.dash-error-btn.primary:hover { background: var(--pp2, #7db8ff); color: #fff; }

/* Transient status banner (Gmail not granted, invite code copied, …) */
.dash-banner {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 500; max-width: 560px;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: 13px;
  background: var(--surface2, #1a1a1d); border: 1px solid var(--line2, rgba(226,227,228,0.115));
  box-shadow: 0 22px 60px -22px rgba(0,0,0,0.85);
  font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--txt, #eaeaeb);
  cursor: pointer;
}
.dash-banner span { margin-left: auto; color: var(--txt3, #666a73); font-size: 17px; line-height: 1; }
.dash-banner:hover span { color: var(--txt, #eaeaeb); }

/* The design canvas assumed a fixed 1440-wide frame; give the shell a floor so
   the bento grid doesn't collapse on smaller laptops. */
.app3 { min-width: 1180px; }
@media (max-width: 1180px) {
  body { overflow: auto; }
  .app3 { min-width: 0; grid-template-columns: 1fr; height: auto; min-height: 100vh; }
  .sb { flex-direction: row; align-items: center; gap: 6px; overflow-x: auto; padding: 10px 12px; }
  .sb .sb-eyebrow, .sb .sb-sp { display: none; }
  .sb-nav { flex-direction: row; }
  .sb-item { white-space: nowrap; }
  .mn { margin: 0; border-radius: 0; border-left: 0; height: auto; }
  .mn-scroll { overflow: visible; }
}

/* Reply outcomes read off the inbound classifier. "Interested" is deliberately
   not green: a yes from a reporter is a live opportunity, not a placement, and
   colouring it like coverage would invite reading it as one. */
.cdt-badge.int { background: rgba(217,164,65,0.18); color: #e0b45f; }
.cdt-badge.dec { background: rgba(255,255,255,0.05); color: var(--txt3); }

/* ---- Greeting buttons were being clipped ----
   "New campaign" and "View replies" are flex items in .gbtns with no flex
   setting, so they inherit flex-shrink: 1 and squeeze below their own text
   width whenever the greeting tile is narrow. They carry white-space: nowrap,
   and .greet clips with overflow: hidden — so the label lost its last letters
   ("New campaig", "View replie") rather than the button simply getting smaller.

   flex: none keeps each button at its content width, and wrapping gives them
   somewhere to go when the row genuinely runs out of room. */
.greet .gbtns { flex-wrap: wrap; }
.greet .gbtn { flex: none; }
.greet .gbtn svg { flex: none; }
