/* Command Center - faithful Plaatsr visual identity.
   Tokens lifted verbatim from the live Plaatsr site (plaatsr-site/app/globals.css)
   and its components (nav, section-header, stat-block, ui/button, ui/input).

   Plaatsr restraint: serif display (Fraunces) + clean sans (Inter) + mono meta
   (JetBrains Mono). Paper background, ONE teal accent per viewport, hairline
   neutral-gray dividers, terracotta highlight used sparingly. No gradient chrome,
   no glows, no card shadows beyond a single hairline. */

:root {
  /* ----- Plaatsr palette (exact hex from the brand @theme) ----- */
  --paper: #fafaf7;            /* --color-background */
  --surface: #ffffff;          /* --color-surface */
  --ink: #0a0a0a;              /* --color-foreground */
  --ink-soft: #525252;         /* --color-muted-foreground */
  --ink-faint: #8a8a8a;        /* derived faint, between muted and border-strong */
  --hairline: #e5e5e5;         /* --color-border */
  --hairline-strong: #d4d4d4;  /* --color-border-strong */
  --accent: #0f4c5c;           /* --color-accent (the single teal) */
  --accent-deep: #08323c;      /* --color-accent-deep */
  --accent-tint: #e7eef0;      /* --color-accent-tint */
  --highlight: #c9543a;        /* --color-highlight (terracotta, sparing) */

  /* Semantic status hues, kept in the Plaatsr key (muted, never neon). */
  --ok: #2f5d34;
  --ok-tint: #eef3ee;
  --ok-line: #c4d6c5;
  --warn: #8a5a00;
  --warn-tint: #f6efe0;
  --warn-line: #e2d2ab;
  --bad: #b3402e;              /* aligned to the highlight family */
  --bad-tint: #f7ece9;
  --bad-line: #e3c1b8;

  /* ----- Fonts: same families and weights as the Plaatsr site ----- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  /* ----- Geometry ----- */
  --radius-md: 0.375rem;       /* --radius-md */
  --radius-lg: 0.5rem;         /* --radius-lg */
  --radius: var(--radius-md);
  --nav-w: 232px;              /* left nav rail */
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
}
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;                 /* Plaatsr body leading */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--accent); color: #fff; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;          /* Plaatsr heading tracking */
  margin: 0 0 0.4em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 0.98rem; }

/* Mono meta + the editorial eyebrow Plaatsr uses for section IDs/labels. */
.meta, .mono { font-family: var(--font-mono); }
.label-mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
}

/* =========================================================================
   App shell: fixed teal-tinted top bar + a real left-nav rail between sections.
   ========================================================================= */
.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--nav-w) 1fr;
  grid-template-rows: 64px 1fr;
  grid-template-areas:
    "brandbar topbar"
    "sidebar  content";
}

/* Brand block, top-left, aligned to the nav rail width (h-16 like the site nav). */
.brandbar {
  grid-area: brandbar;
  display: flex;
  align-items: center;
  padding: 0 22px;
  border-bottom: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  background: var(--surface);
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);              /* the Plaatsr wordmark is the accent */
}
.brand .sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 3px;
}

/* Top bar: page title + session controls. One accent per viewport lives here. */
.topbar {
  grid-area: topbar;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}
.topbar .crumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.topbar .tools { display: flex; align-items: center; gap: 16px; }
.topbar .tools .who {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Left nav rail. */
.sidebar {
  grid-area: sidebar;
  border-right: 1px solid var(--hairline);
  background: var(--surface);
  padding: 18px 12px 28px;
  display: flex;
  flex-direction: column;
}
nav.rail { display: flex; flex-direction: column; gap: 1px; }
nav.rail a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background-color 0.12s, color 0.12s;
}
nav.rail a:hover { background: rgba(10, 10, 10, 0.04); color: var(--ink); text-decoration: none; }
nav.rail a.active { background: var(--accent-tint); color: var(--accent-deep); }
nav.rail a.active .ico { color: var(--accent); }
nav.rail .ico {
  width: 16px; height: 16px;
  flex: 0 0 16px;
  color: var(--ink-faint);
}
nav.rail a.active .ico { color: var(--accent); }
.rail-sep { height: 1px; background: var(--hairline); margin: 12px 8px; }
.rail-foot {
  margin-top: auto;
  padding: 12px 12px 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
nav.rail form { margin: 0; }
nav.rail button.navlink {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}
nav.rail button.navlink:hover { background: rgba(10, 10, 10, 0.04); color: var(--ink); }

/* Content column. */
.content { grid-area: content; padding: 30px 36px 90px; max-width: var(--maxw); }

/* Section heads. */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.section-head h2 { margin: 0; }
.section-head .count {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* =========================================================================
   Stat row: clean hairline-celled band, big serif numbers (Plaatsr stat feel).
   ========================================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 30px;
}
.stat {
  padding: 16px 20px;
  border-right: 1px solid var(--hairline);
}
.stat:last-child { border-right: 0; }
.stat .n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat .l {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-top: 8px;
}

/* =========================================================================
   Tables: dense, readable, hairline rows, mono column heads (Plaatsr restraint).
   ========================================================================= */
.table-wrap {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  font-weight: 500;
  padding: 11px 14px;
  background: #fbfbf9;
  border-bottom: 1px solid var(--hairline-strong);
}
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color 0.1s; }
tbody tr:hover { background: #f6f5f1; }
td .sub { color: var(--ink-faint); font-size: 0.82rem; }
td a { font-weight: 500; }

/* A bare table inside a panel (analytics) loses the outer frame. */
.panel table { font-size: 0.9rem; }
.panel thead th { background: transparent; padding: 8px 0; }
.panel tbody td { padding: 8px 0; }

/* Touch pips (the 1-2-3 outreach timeline). */
.touches { display: inline-flex; gap: 5px; }
.pip {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  width: 21px; height: 21px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  color: var(--ink-faint);
}
.pip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
/* Editable pips are buttons: clickable, but visually identical to the static pip. */
button.pip { cursor: pointer; padding: 0; background: transparent; }
button.pip:hover { border-color: var(--accent); }
button.pip.on:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
/* A manually-set touch carries a dashed ring so evidence vs manual is legible. */
.pip.manual { border-style: dashed; }

/* Compact inline controls used in the editable pipeline rows. */
select.mini {
  height: 26px;
  padding: 0 6px;
  font-size: 0.72rem;
  min-width: 0;
}
.btn.tiny {
  height: 22px;
  padding: 0 7px;
  font-size: 0.68rem;
  line-height: 1;
}

/* Status chips. */
.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border: 1px solid var(--hairline-strong);
  border-radius: 100px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.chip.ok { color: var(--ok); border-color: var(--ok-line); background: var(--ok-tint); }
.chip.warn { color: var(--warn); border-color: var(--warn-line); background: var(--warn-tint); }
.chip.bad { color: var(--bad); border-color: var(--bad-line); background: var(--bad-tint); }
.chip.accent { color: var(--accent); border-color: #b9d2d8; background: var(--accent-tint); }

/* Sales-funnel status chips. One accent, hairline, de-AI. Won is subtly positive (the green
   ok family), Lost is MUTED (a soft neutral, not an alarm red), the active mid-funnel states
   (Replied / Booked a call / Proposal sent) wear the single teal accent, Follow up later is a
   muted amber neutral (parked: neither active-teal nor won-green nor lost-red), Open is bare. */
.chip.status { min-width: 64px; justify-content: center; }
.chip.status.bad {
  color: var(--ink-faint);
  border-color: var(--hairline-strong);
  background: #f1f0ec;
}
/* Follow up later: the muted amber 'warn' family (a parked responder, not a closed deal). */
.chip.status.warn {
  color: var(--warn);
  border-color: var(--warn-line);
  background: var(--warn-tint);
}
/* The inline status chip sits just left of its dropdown on the pipeline row. */
.chip.status + .status-select { margin-left: 7px; vertical-align: middle; }

/* =========================================================================
   Buttons: lifted from plaatsr-site/components/ui/button.tsx.
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--hairline-strong);     /* secondary variant */
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.12s, border-color 0.12s, color 0.12s, opacity 0.12s;
}
.btn:hover { border-color: rgba(10, 10, 10, 0.3); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn.small { height: 30px; padding: 0 11px; font-size: 0.76rem; }
/* The contact page Set-status row highlights the contact's current funnel status. */
.btn.small.active { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-tint); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* =========================================================================
   Forms: input/textarea/select matched to ui/input.tsx (h-11, rounded-md, ring).
   ========================================================================= */
input[type=text], input[type=password], input[type=date], textarea, select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0 12px;
  height: 44px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}
textarea { height: auto; padding: 10px 12px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(15, 76, 92, 0.18);
}
label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 6px;
}
.field { margin-bottom: 16px; }

/* =========================================================================
   Login: centered card on the paper background.
   ========================================================================= */
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card {
  width: 380px;
  max-width: 100%;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 34px 32px;
}
.login-card .brand { font-size: 2.1rem; display: block; margin-bottom: 4px; }
.login-card .label-mono { margin: 0 0 22px; color: var(--ink-faint); }
.err { color: var(--bad); font-family: var(--font-mono); font-size: 0.8rem; margin-top: 12px; }

/* =========================================================================
   Detail page (contact) + panels.
   ========================================================================= */
.detail-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 880px) { .detail-grid { grid-template-columns: 1fr; } }
.panel {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  background: var(--surface);
  margin-bottom: 20px;
}
.panel h3 { border-bottom: 1px solid var(--hairline); padding-bottom: 10px; margin-bottom: 14px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; font-size: 0.9rem; }
.kv dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  padding-top: 1px;
}
.kv dd { margin: 0; }

/* Timeline (touch / reply / call history). */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 12px 0 12px 18px; border-left: 1px solid var(--hairline-strong); position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -4px; top: 16px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.timeline .when {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.timeline .body { font-size: 0.9rem; margin-top: 3px; line-height: 1.5; }

.note { font-size: 0.8rem; color: var(--ink-faint); font-family: var(--font-mono); }
.hint { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.55; }

/* Brain context lines. */
.brain-lines { list-style: none; padding: 0; margin: 4px 0 0; }
.brain-lines li {
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding: 4px 0 4px 12px;
  border-left: 1px solid var(--hairline-strong);
  margin-bottom: 3px;
  line-height: 1.45;
}

/* =========================================================================
   Engage: comment-opportunity cards + the curated target list.
   Same restraint (one teal accent, hairlines, no glows). The drafted comment
   sits in a teal-tinted editable box so it reads as the actionable artifact.
   ========================================================================= */
.ecard { padding: 18px 20px; }
.ecard.is-done { opacity: 0.7; }
.ecard-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; margin-bottom: 10px;
}
.ecard-who { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.ecard-who a { color: var(--ink); }
.ecard-who .chip { margin-left: 6px; vertical-align: middle; }
.ecard-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.escore {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  color: var(--accent-deep); background: var(--accent-tint);
  border-radius: 100px; padding: 3px 9px; min-width: 30px; text-align: center;
}
.epost {
  font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55;
  border-left: 2px solid var(--hairline-strong); padding: 2px 0 2px 12px; margin: 0 0 12px;
  white-space: pre-wrap;
}
.ecomment-wrap { margin-bottom: 10px; }
.ecomment {
  width: 100%;
  font-family: var(--font-body); font-size: 0.95rem; line-height: 1.5;
  background: var(--accent-tint); border: 1px solid #b9d2d8; color: var(--ink);
}
.ecritic { margin: 0 0 12px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.eoutcome { margin-top: 12px; display: flex; gap: 8px; align-items: center; }
.btn.tiny.active { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-tint); }

/* Add-target form: a single responsive flex row of fields. */
.target-form { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.target-form .field { margin-bottom: 0; }
tr.is-off { opacity: 0.5; }
/* Video-send: a lead with a ready video not yet sent gets a teal left edge (action needed). */
tr.is-todo td:first-child { box-shadow: inset 3px 0 0 var(--accent); }

/* =========================================================================
   Coaching (call reviews): the head-coach verdict, quotes, and better lines.
   "You said" is the terracotta highlight (the moment to fix); "Better" is the
   single teal accent (the improvement). Restraint preserved.
   ========================================================================= */
.cverdict {
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.3;
  margin: 4px 0 0; color: var(--ink);
}
.cquote {
  font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft);
  border-left: 2px solid var(--highlight); padding: 2px 0 2px 12px; margin: 6px 0;
}
.cbetter {
  font-size: 0.9rem; line-height: 1.5; color: var(--accent-deep);
  border-left: 2px solid var(--accent); padding: 2px 0 2px 12px; margin: 6px 0;
  background: var(--accent-tint);
}
/* The "how to think" mindset block: the durable lesson, set apart with the teal accent. */
.panel.mindset { border-color: #b9d2d8; background: var(--accent-tint); }
.panel.mindset h3 { border-bottom-color: #b9d2d8; color: var(--accent-deep); }
.mindset-list { list-style: none; padding: 0; margin: 0; }
.mindset-list li {
  position: relative; padding: 7px 0 7px 22px; font-size: 0.96rem; line-height: 1.5;
  color: var(--ink); border-bottom: 1px solid #cfe0e4;
}
.mindset-list li:last-child { border-bottom: 0; }
.mindset-list li::before {
  content: ""; position: absolute; left: 4px; top: 15px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

.improve { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.improve:last-child { border-bottom: 0; padding-bottom: 0; }
.improve:first-child { padding-top: 4px; }
.improve-head {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 500; color: var(--highlight); margin-bottom: 6px;
}
.improve p { margin: 4px 0; font-size: 0.92rem; line-height: 1.5; }

/* =========================================================================
   Vandaag (home): the three daily task cards + funnel strip.
   Same restraint: hairlines, serif numbers, the single teal accent only where
   there is work to do.
   ========================================================================= */
.taskgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 8px;
}
.taskcard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 22px 24px 20px;
  color: var(--ink);
  transition: border-color 0.12s;
}
.taskcard:hover { border-color: var(--hairline-strong); text-decoration: none; }
.taskcard.is-todo { box-shadow: inset 3px 0 0 var(--accent); }
.taskcard.is-clear { opacity: 0.75; }
.taskcard .tc-step {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.taskcard .tc-n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.taskcard .tc-l { font-size: 0.95rem; font-weight: 500; }
.taskcard .tc-sub { font-size: 0.8rem; color: var(--ink-faint); margin-bottom: 12px; }
.taskcard .btn { pointer-events: none; }  /* the whole card is the link */

/* =========================================================================
   Connecties: the daily connect-list cards.
   ========================================================================= */
.connect-sec {
  margin: 26px 0 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.connect-sec .count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.ccard { padding: 16px 20px 14px; }
.ccard.is-sent { opacity: 0.65; }
.ccard.is-skipped { opacity: 0.5; }
.ccard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.ccard-who {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.25;
}
.ccard-who .chip { margin-left: 8px; vertical-align: middle; }
.ccard-tags { display: inline-flex; gap: 6px; align-items: center; flex-shrink: 0; }
.ccard-sub { font-size: 0.86rem; color: var(--ink-soft); margin: 1px 0 8px; }
.ccard-hook {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
  border-left: 2px solid var(--hairline-strong);
  padding: 2px 0 2px 12px;
  margin: 0 0 12px;
}

/* Content cards (generated posts + visual prompts). */
.kcard.is-done { opacity: 0.55; }
.klabel {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: block;
  margin: 10px 0 4px;
}
.kcard .msg-body-wrap { margin: 0 0 6px; }
.kcard .msg-body {
  width: 100%; box-sizing: border-box;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; line-height: 1.5;
  resize: vertical; border: 1px solid var(--hairline);
  border-radius: 8px; padding: 10px 12px; background: #fbfaf7; color: inherit;
}

/* =========================================================================
   Responsive: collapse the rail into a horizontal top strip on narrow screens.
   ========================================================================= */
@media (max-width: 760px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "brandbar"
      "sidebar"
      "content";
  }
  .brandbar { border-right: 0; }
  .topbar { display: none; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--hairline); padding: 10px; }
  nav.rail { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  nav.rail a, nav.rail button.navlink { padding: 7px 10px; font-size: 0.82rem; }
  .rail-sep, .rail-foot { display: none; }
  nav.rail .ico { display: none; }
  .content { padding: 22px 18px 70px; }
}
