/* The app's own angle card styles (Content OS tokens.css + angles.css, Nov 2026), scoped to .appk so they never touch the site. */
/* V5 design tokens (Docs/v5/V5-PLAN.md B.1 principle 6, V5-016).
   The clerk skin's own values, light and dark, as the old app sets them on
   .appk (interface/index.html), plus the few V5 adds.
   Three are V5's own: the two quiet text colours (--text-muted, --text-dim)
   are a touch darker in light and lighter in dark than the old app's, and
   light --success a touch darker, so every line of small print reads at 4.5
   to 1 on any surface it sits on, light or dark (V5-072, a11y.check.ts).
   Every brand colour is var(--brand-accent, var(--accent)): the app sets
   --brand-accent-raw from the brand's primary colour when a brand is entered
   (app/shell/brand-skin.ts), and dark mode lifts it so a dark brand colour
   stays readable, as the old app does. Nothing here is a client's colour.

   Dark mode and phones (V5-071, V5-073) add: light --warning a touch darker
   so it reads on its washes, the networks' colours, --bad and --wait as
   tokens lifted in dark, and a lighter brand wash in dark; every screen is
   measured in both themes by the look sweep (tests/browser/v5/look.check.ts).

   Dark mode's words, greys, lines and "white" buttons are V5's own since
   Bryan's 2026-10-29 pass: a warm off-white, never pure white, matching the
   warm backgrounds (the dark block below). The old app's page keeps its own
   copy of the skin and is not changed by this. */

.appk {
  --bg: #f7f7f8;
  --bg-elev: #ffffff;
  --bg-elev-2: #ffffff;
  --bg-subtle: #fafafb;
  --border: #eeeef0;
  --border-strong: #d9d9de;
  --border-hover: #b7b8c2;
  --text: #131316;
  --text-2: #42434d;
  --text-soft: #3a3b42; /* a soft charcoal, not black: the new chat's heading and its bold words (Bryan, 2026-10-28) */
  --nav-label: #2b2d34;
  --text-muted: #5e5f6e;
  --text-dim: #646676;
  --accent: #131316;
  --accent-hover: #000000;
  --accent-soft: #f0f0f2;
  --success: #127726;
  --success-soft: #f0fdf2;
  --warning: #975c06;
  --warning-soft: #fefce8;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --radius: 8px;
  --shadow-xs: 0 1px 2px rgba(19, 19, 22, 0.05);
  --shadow-sm: 0 1px 3px rgba(19, 19, 22, 0.08), 0 1px 2px rgba(19, 19, 22, 0.04);
  --shadow-pop: 0 12px 32px -12px rgba(19, 19, 22, 0.28), 0 0 0 1px rgba(19, 19, 22, 0.06);
  --t: 0.16s;

  /* V5's own: the hover wash, the soft grey of an idle control, the scrim,
     the type, and the phone's tab bar height. */
  --hover: #f0f0f2;
  --control: #f1f1f3;
  /* A field's border while you type in it: strong enough to see at a glance
     (3 to 1 and more on any surface), the same in every field (V5-072). */
  --border-focus: var(--text-dim);
  --scrim: rgba(10, 10, 12, 0.35);
  --font-ui: Manrope, system-ui, -apple-system, sans-serif;
  --font-display: 'Inter Tight', Manrope, system-ui, sans-serif;
  /* The Control Center's serif (interface/index.html .cc-greet): a new chat's greeting. */
  --font-serif: 'EB Garamond', Georgia, serif;
  --tabbar-h: 62px;
  color-scheme: light;
}

/* Dark mode (Bryan, 2026-10-29): the words and the "white" buttons are a warm
   off-white, never pure white, which is harsh on the eyes; the greys are warm
   too, to match the warm backgrounds (a cool grey on them read slightly blue).
   The lines and washes are the same off-white at low strength. Small print
   stays at 4.5 to 1 or more on every surface it sits on (V5-072). */
.appk-dark {
  --bg: #131312;
  --bg-elev: #181817;
  --bg-elev-2: #1e1e1c;
  --bg-subtle: #151514;
  --border: rgba(236, 232, 222, 0.07);
  --border-strong: rgba(236, 232, 222, 0.11);
  --border-hover: rgba(236, 232, 222, 0.17);
  --text: #eae8e3;
  --text-2: #d3d1ca;
  --text-soft: #e0ded8;
  --nav-label: #d6d4cd;
  --text-muted: #a9a69d;
  --text-dim: #96938a;
  --accent: #eae8e3;
  --accent-hover: #dcdad4;
  --accent-soft: rgba(236, 232, 222, 0.07);
  --success: #4ade68;
  --success-soft: rgba(74, 222, 104, 0.10);
  --warning: #fde047;
  --warning-soft: rgba(253, 224, 71, 0.10);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.10);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-pop: 0 16px 40px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(236, 232, 222, 0.08);
  --hover: rgba(236, 232, 222, 0.06);
  --control: rgba(236, 232, 222, 0.07);
  --scrim: rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

/* The networks' own colours (a mark, a card's glow), the red of a post that
   can't go out, and the amber of one waiting: lifted in dark mode so they
   read on the dark surfaces. */
.appk { --net-linkedin: #0a66c2; --net-instagram: #d62976; --net-x: var(--text); --net-video: #7c3aed; --net-other: var(--text-muted); --bad: #c13227; --wait: #e0a400; }
.appk-dark { --net-linkedin: #4c9be8; --net-instagram: #f0609f; --net-video: #a78bfa; --bad: #f87171; --wait: #f2c14e; }

/* Staging's own teal (app/shell/env-band.ts): the Staging band and the
   "Staging copy" tag. Calm and apart from the brand, the Control Center's
   purple and the orange of what needs you; the same on every brand. */
.appk { --env-band-bg: #115e59; --env-band-ink: #f0fdfa; --env-tag-bg: #ccfbf1; --env-tag-ink: #115e59; }
.appk-dark { --env-band-bg: #134e4a; --env-band-ink: #ccfbf1; --env-tag-bg: rgba(94, 234, 212, 0.14); --env-tag-ink: #5eead4; }

/* Sidekick's own orange: the top of its body's gradient (character.ts). What
   belongs to Sidekick (the glow round it on a new chat) keeps this, in light
   and dark, and never takes the brand's colour (Bryan, 2026-10-29). */
.appk { --sidekick-orange: #ff7429; }

/* The brand's colour, once a brand is entered. */
.appk {
  --brand-accent: var(--brand-accent-raw);
  --brand-accent-on: var(--brand-accent-raw-on, #ffffff);
}
.appk-dark {
  /* Lifted to read on the dark, but capped (Bryan, 2026-10-29): no lighter
     than 0.80 and no stronger than 0.15, so a bright green or orange doesn't
     glow. Words on it are the page's own warm black. */
  --brand-accent: color-mix(in oklab, var(--brand-accent-raw), var(--text) 42%);
  --brand-accent: oklch(from var(--brand-accent-raw) clamp(0.66, l, 0.8) min(c, 0.15) h);
  --brand-accent-on: var(--bg);
}

/* The brand's colour as words and small marks (a link, "In progress", a
   tick): the same hue, never lighter than it can be read at 4.5 to 1 on the
   page, whatever the brand's colour (V5-072). In dark the brand colour is
   already lifted (above), so it is used as it is. */
.appk { --brand-ink: color-mix(in oklab, var(--brand-accent, var(--accent)) 70%, var(--text)); }
@supports (color: oklch(from red l c h)) {
  .appk { --brand-ink: oklch(from var(--brand-accent, var(--accent)) min(l, 0.5) c h); }
}
.appk-dark { --brand-ink: var(--brand-accent, var(--accent)); }

/* A soft wash of the brand colour, for the selected row and the person's own
   message, as the old app's selected tab. */
.appk { --brand-wash: color-mix(in oklab, var(--brand-accent, var(--accent)) 14%, var(--bg-elev)); }
/* In dark the brand colour is lifted, so a lighter touch of it: a bright
   brand (a yellow) would otherwise wash out the grey words on it. */
.appk-dark { --brand-wash: color-mix(in oklab, var(--brand-accent, var(--accent)) 9%, var(--bg-elev)); }
/* Angles in the chat (V5-031, V5-032): as the mock v5-1.html draws them (.cf-aset,
   .cf-acard.a6 with its kind colour, white tag, select circle and chips; the
   keep bar; grouped news; the queue line), and the platform and format picker
   as today's Studio draws it (interface/variants/hybrid.css .platform-pill),
   in V5's tokens, light and dark. The kinds' colours are their own, never the
   brand's; the brand's colour only through var(--brand-accent, var(--accent)). */

.v5-aset { display: flex; flex-direction: column; gap: 14px; min-width: 0; width: 100%; }
.v5-aset.is-busy { opacity: 0.75; }
.v5-aset-wait { display: inline-flex; align-items: center; gap: 10px; font: 500 13.5px/1.4 var(--font-ui); color: var(--text-dim); }
.v5-aset-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-accent, var(--accent)); animation: v5-aset-pulse 1.1s ease-in-out infinite; }
@keyframes v5-aset-pulse { 50% { opacity: 0.3; transform: scale(0.8); } }
/* The lines while the angles are found (wait-lines.ts): each fades into the next. */
.v5-aset-say { min-width: 0; transition: opacity 0.22s ease; }
.v5-aset-say.is-out { opacity: 0; }

/* ---- the row of cards: scrolls sideways, fading at its right edge ------------------------ */
.v5-arow {
  /* The cards take their width from the row (Bryan, 2026-10-28: wider, the
     same height, so titles fit, and a slice of the next card always shows). */
  container-type: inline-size;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin;
  margin: -8px -8px -6px; padding: 8px 40px 12px 8px; scroll-padding-left: 8px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
}
.v5-agrid { display: flex; gap: 12px; width: max-content; }

/* ---- an angle card ------------------------------------------------------------------------ */
.v5-acard {
  --fc: #5d5e66;
  --fc-text: color-mix(in oklab, var(--fc) 78%, var(--text)); /* small type on the card reads at 4.5 to 1 */
  position: relative; box-sizing: border-box; width: clamp(340px, calc((100cqw - 24px) / 2.2), 390px); flex: none; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 9px; padding: 14px 15px 13px; border-radius: 16px;
  background: color-mix(in oklab, var(--fc) 9%, var(--bg-elev));
  border: 1px solid color-mix(in oklab, var(--fc) 18%, transparent);
  font-family: var(--font-ui); text-align: left; user-select: none;
  transition: border-color var(--t), box-shadow var(--t), opacity 0.4s, transform 0.4s, filter 0.4s;
}
.v5-acard[role] { cursor: pointer; }
.v5-acard[role]:hover { box-shadow: 0 14px 30px -22px rgba(0, 0, 0, 0.35); }
.v5-acard:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.v5-acard.is-picked { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.v5-acard.is-gone { opacity: 0.38; filter: grayscale(1); transform: scale(0.97); }
/* A new story's angle once 2 from it are picked or kept: greyed, still readable, not pickable. */
.v5-acard.is-rest { opacity: 0.5; filter: grayscale(1); cursor: default; }

:is(.v5-acard, .v5-amini)[data-look="case"]     { --fc: #2456b8; }
:is(.v5-acard, .v5-amini)[data-look="myth"]     { --fc: #b4471b; }
:is(.v5-acard, .v5-amini)[data-look="join"]     { --fc: #2f8f5b; }
:is(.v5-acard, .v5-amini)[data-look="behind"]   { --fc: #6a4caa; }
:is(.v5-acard, .v5-amini)[data-look="opinion"]  { --fc: #b33224; }
:is(.v5-acard, .v5-amini)[data-look="how"]      { --fc: #0f7c86; }
:is(.v5-acard, .v5-amini)[data-look="data"]     { --fc: #9a6a12; }
:is(.v5-acard, .v5-amini)[data-look="question"] { --fc: #a3337a; }
:is(.v5-acard, .v5-amini)[data-look="story"]    { --fc: #5b5f2a; }
:is(.v5-acard, .v5-amini)[data-look="photo"]    { --fc: #3d4f8f; }
.appk-dark :is(.v5-acard, .v5-amini) { --fc-text: color-mix(in oklab, var(--fc), var(--text) 45%); }

.v5-acard-ring {
  position: absolute; top: 11px; right: 11px; width: 20px; height: 20px; border-radius: 50%; box-sizing: border-box; z-index: 2;
  border: 1.5px solid color-mix(in oklab, var(--fc, var(--text-dim)) 45%, var(--bg-elev)); background: var(--bg-elev);
}
.is-picked > .v5-acard-ring {
  border-color: var(--text);
  background: var(--text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
.appk-dark .is-picked > .v5-acard-ring {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23131316' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.v5-acard:not([role]):not(.has-open) > .v5-acard-ring { display: none; }
/* A post has been made from it (P4): said where the circle sits; the words stay at full strength. */
.v5-acard-made {
  position: absolute; top: 12px; right: 11px; z-index: 2; display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px 3px 5px; border-radius: 99px;
  background: var(--bg-elev); border: 1px solid color-mix(in oklab, var(--text) 14%, transparent);
  font: 600 11px/1.2 var(--font-ui); color: var(--text); white-space: nowrap;
}
.v5-acard-mic { display: inline-flex; width: 12px; height: 12px; color: var(--brand-ink); }
.v5-acard-mic svg { width: 100%; height: 100%; }
/* The kind gives way to it on a narrow card, cut short with …. */
.v5-acard:has(> .v5-acard-made) > .v5-acard-tag { max-width: calc(100% - 86px); box-sizing: border-box; }
.v5-acard-tn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A card whose title is its button (the Library's): the button covers the
   card, and the card's own buttons sit above it. */
.v5-acard.has-open { cursor: pointer; }
.v5-acard.has-open:hover { box-shadow: 0 14px 30px -22px rgba(0, 0, 0, 0.35); }
.v5-acard-open { appearance: none; background: none; border: 0; padding: 0; margin: 0; color: inherit; text-align: left; cursor: pointer; }
.v5-acard-open::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.v5-acard-open:focus-visible { outline: none; }
.v5-acard.has-open:has(.v5-acard-open:focus-visible) { outline: 2px solid var(--text); outline-offset: 2px; }
.v5-acard.has-open button:not(.v5-acard-open) { position: relative; z-index: 1; }

/* The white tag: the kind, with its icon, in its colour. */
.v5-acard-tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px 4px 6px; border-radius: 7px;
  background: color-mix(in oklab, var(--bg-elev) 82%, transparent);
  border: 1px solid color-mix(in oklab, var(--fc) 22%, transparent);
  box-shadow: 0 1px 1px rgba(10, 10, 12, 0.04), 0 6px 14px -6px color-mix(in oklab, var(--fc) 55%, transparent);
  font: 600 11.5px/1.2 var(--font-ui); color: var(--fc-text, var(--fc));
}
.v5-acard-tic { display: inline-flex; }
.v5-acard-t {
  padding-right: 26px; font: 700 15px/1.3 var(--font-ui); color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.3em);
}
.v5-acard-d {
  box-sizing: border-box; padding: 9px 11px; border-radius: 10px; background: var(--bg-elev);
  font: 500 13px/1.5 var(--font-ui); color: var(--text-2); height: calc(4 * 1.5em + 18px);
}
.v5-acard-dt { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; max-height: calc(4 * 1.5em); }
.v5-acard-chips { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 5px; height: 53px; overflow: hidden; }
.v5-acard-chip {
  padding: 4px 9px; border-radius: 999px; background: var(--bg-elev); box-shadow: inset 0 0 0 1px var(--border-strong);
  font: 500 11.5px/1.35 var(--font-ui); color: var(--text-muted); white-space: nowrap;
}

/* ---- grouped by where they came from (news stories; a new story and what is saved) ---------------------------------------------------------------- */
.v5-agroup { display: flex; flex-direction: column; gap: 8px; }
.v5-agroup + .v5-agroup { margin-top: 4px; }
.v5-ghead { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-family: var(--font-ui); }
.v5-gsrc { font: 600 12px/1.3 var(--font-ui); color: var(--text-dim); }
.v5-gn { font: 500 12.5px/1.3 var(--font-ui); color: var(--text-dim); }
/* The quiet line under a new story's angles (at most 2 kept from it). */
.v5-gnote, .v5-keepmore { margin: 0; font: 500 12.5px/1.5 var(--font-ui); color: var(--text-dim); }

/* ---- the keep bar --------------------------------------------------------------------------- */
.v5-keepbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.v5-keepbar .v5-chip { border-radius: 8px; padding: 9px 14px; }
.v5-chip.is-dark { background: var(--accent); border-color: var(--accent); color: var(--bg-elev); }
.v5-chip.is-dark:hover { filter: brightness(1.15); }
.v5-chip:disabled { opacity: 0.35; cursor: default; }
.v5-aset.is-busy .v5-chip:disabled { cursor: progress; }
.v5-morenote { flex-basis: 100%; font: 500 12.5px/1.5 var(--font-ui); color: var(--text-dim); }
.v5-morenote .v5-link { color: var(--text); }

/* "needs Sidekick": shown only while Sidekick can't reply (the composer sets v5-sk-down). */
.v5-needs { display: none; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--control); font: 600 10.5px/1.5 var(--font-ui); color: var(--text-dim); }
.v5-sk-down .v5-needs { display: inline-block; }
.v5-sk-down [data-needs-sk] { opacity: 0.45; cursor: not-allowed; }
.v5-sk-down .v5-link[data-needs-sk] { text-decoration: none; }

/* ---- the news and campaign lists a tap shows --------------------------------------------------- */
.v5-nlist, .v5-clist { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 620px; }
/* The buttons under a list are as wide as its cards, so Delete sits under their right edge. */
.v5-nlist + .v5-keepbar, .v5-clist + .v5-keepbar { width: 100%; max-width: 620px; box-sizing: border-box; }
.v5-nrow, .v5-crow {
  position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; box-sizing: border-box; width: 100%;
  background: var(--bg-elev); border: 1px solid var(--border-strong); font-family: var(--font-ui); text-align: left; cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.v5-nrow:hover, .v5-crow:hover { border-color: var(--border-hover); }
.v5-nrow .v5-acard-ring { position: static; flex: none; margin-top: 1px; --fc: var(--text-dim); }
.v5-nrow.is-picked { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); background: var(--bg-subtle); }
.v5-nrow-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.v5-nrow b, .v5-crow b { font: 700 14px/1.35 var(--font-ui); color: var(--text); }
.v5-nrow-text > span:not(.v5-lp-meta), .v5-crow span { font: 400 13px/1.45 var(--font-ui); color: var(--text-2); }
/* A story's relevance, age and source: All news's own line (app/lists/meta.ts, row 261). */
.v5-nrow .v5-lp-meta { margin-top: 2px; }
.v5-nrow small { font: 500 11.5px/1.3 var(--font-ui); color: var(--text-dim); }
.v5-crow { flex-direction: column; gap: 2px; }
/* "+ Start a new campaign": dotted, with no fill of its own (Bryan, 2026-10-20). */
.v5-crow.is-new { border-style: dashed; background: transparent; }
.v5-nrow:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.v5-nlist.is-done .v5-nrow, .v5-nlist.is-done .v5-crow, .v5-clist.is-done .v5-crow { cursor: default; }
.v5-nlist.is-done .v5-nrow:not(.is-picked) { opacity: 0.45; }
.v5-nlist.is-done .v5-crow, .v5-clist.is-done .v5-crow { opacity: 0.6; }

/* ---- a mini angle card (a picked angle: its tag and title, in its colour) ----------------------- */
.v5-aminis { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; max-width: 760px; }
.v5-amini {
  --fc: #5d5e66;
  --fc-text: color-mix(in oklab, var(--fc) 78%, var(--text));
  box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
  width: 240px; max-width: 100%; min-height: 44px; padding: 10px 12px 11px; border-radius: 12px;
  background: color-mix(in oklab, var(--fc) 9%, var(--bg-elev));
  border: 1px solid color-mix(in oklab, var(--fc) 18%, transparent);
  font-family: var(--font-ui); text-align: left; color: var(--text);
}
button.v5-amini { cursor: pointer; transition: border-color var(--t), box-shadow var(--t); }
button.v5-amini:hover { border-color: color-mix(in oklab, var(--fc) 45%, transparent); box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.35); }
button.v5-amini:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.v5-amini .v5-acard-tag { padding: 3px 7px 3px 5px; font-size: 11px; }
.v5-amini-t { font: 700 13.5px/1.3 var(--font-ui); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- the queue -------------------------------------------------------------------------------- */
.v5-qstep { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; min-width: 0; }
.v5-queue { font: 600 12px/1.4 var(--font-ui); font-style: normal; color: var(--brand-ink); }
.v5-picksum { font: 500 13px/1.4 var(--font-ui); color: var(--text-muted); }
.v5-qstatus {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; max-width: 560px; box-sizing: border-box;
  background: var(--bg-elev); border: 1px dashed var(--border-hover); font-family: var(--font-ui);
}
.v5-qstatus > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.v5-qstatus b { font: 700 13.5px/1.3 var(--font-ui); color: var(--text); }
.v5-qstatus span { font: 400 12.5px/1.4 var(--font-ui); color: var(--text-dim); }
.v5-qstatus-live { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in oklab, var(--success) 20%, transparent); }
/* Closed without Done: Not finished yet, with its way back and the next one. */
.v5-qstatus.is-paused { flex-wrap: wrap; border-style: solid; border-color: var(--border-strong); }
.v5-qstatus.is-paused .v5-qstatus-live { background: var(--warning); box-shadow: 0 0 0 4px color-mix(in oklab, var(--warning) 20%, transparent); }
.v5-qstatus > .v5-chips { flex-basis: 100%; flex-direction: row; gap: 8px; margin-left: 22px; }
/* The post's newest render, small, as the finished-post card shows it (.v5-dcimg). */
.v5-qstatus-pic { flex: none; width: 44px; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--control); }
.v5-qstatus-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.v5-qstatus.has-pic > .v5-chips { margin-left: 78px; }
/* Its post deleted (21c) or sent to approval (R13): only the quiet line, as the finished-post card's (chat.css .v5-dback). */
.v5-qstatus:is(.is-deleted, .is-finished) { padding: 0; border: 0; background: none; border-radius: 0; }
/* The picker, once it's open in the Studio: greyed, still showing what was picked. */
.v5-pick.is-locked { opacity: 0.6; filter: saturate(0.55); }
.v5-pick.is-locked .v5-pick-format { cursor: default; }

/* ---- the platform and format picker (today's Studio pills) ---------------------------------------- */
.v5-pick { display: flex; gap: 10px; width: 100%; max-width: 760px; }
.v5-pick-pill {
  --pill-accent: var(--text);
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 16px; border-radius: 12px; box-sizing: border-box;
  border: 1px solid var(--border); background: var(--bg-elev); color: var(--text-dim);
  font: 500 14px/1 var(--font-ui);
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}
.v5-pick-pill[data-platform="linkedin"]  { --pill-accent: #0a66c2; }
.v5-pick-pill[data-platform="instagram"] { --pill-accent: #e1306c; }
.v5-pick-pill[data-platform="x"]         { --pill-accent: #000000; }
.v5-pick-pill:hover { border-color: var(--border-strong); color: var(--text); }
.v5-pick-pill.is-on {
  border-color: color-mix(in srgb, var(--pill-accent) 22%, transparent);
  background: color-mix(in srgb, var(--pill-accent) 7%, var(--bg-elev));
  color: var(--pill-accent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--pill-accent) 18%, transparent);
}
.v5-pick-pill[data-platform="x"].is-on { color: var(--text); }
.appk-dark .v5-pick-pill.is-on { background: color-mix(in srgb, var(--pill-accent) 16%, var(--bg-elev)); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45); }
.appk-dark .v5-pick-pill[data-platform="linkedin"].is-on { color: #58a6e8; }
.appk-dark .v5-pick-pill[data-platform="instagram"].is-on { color: #ff6196; }
.appk-dark .v5-pick-pill[data-platform="x"] { --pill-accent: var(--text); }

.v5-pick-head { display: inline-flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; }
.v5-pick-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px;
  background: color-mix(in srgb, var(--pill-accent) 12%, transparent); color: var(--pill-accent);
}
.v5-pick-icon svg { width: 16px; height: 16px; display: block; }
.v5-pick-formats { display: inline-flex; align-items: center; gap: 2px; }
.v5-pick-pill.is-on .v5-pick-formats { gap: 3px; padding: 3px; border-radius: 11px; background: color-mix(in srgb, var(--pill-accent) 12%, transparent); }
.v5-pick-format {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--text-dim); cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.v5-pick-format:hover { color: var(--text); background: var(--hover); }
.v5-pick-pill.is-on .v5-pick-format:not(.is-on) { color: var(--text-muted); background: var(--bg-elev); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pill-accent) 14%, transparent); }
.v5-pick-format.is-on, .v5-pick-format.is-on:hover { background: var(--pill-accent); color: #ffffff; /* fixed: white on the network's colour */ }
.appk-dark .v5-pick-pill[data-platform="x"] .v5-pick-format.is-on { color: #131316; }
.v5-pick-format:focus-visible { outline: 2px solid var(--pill-accent); outline-offset: 2px; }
.v5-pick-ficon { display: inline-flex; }
.v5-pick-ficon svg { width: 16px; height: 16px; display: block; }
.v5-pick-check {
  position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-radius: 50%; display: none; align-items: center; justify-content: center;
  background: #ffffff; /* fixed: the tick's white dot on the network's colour */ color: var(--pill-accent); box-shadow: 0 0 0 2px var(--pill-accent); pointer-events: none;
}
.v5-pick-check svg { width: 7px; height: 7px; }
/* In dark, the dot is the warm off-white, never pure white (Bryan, 2026-10-29). */
.appk-dark .v5-pick-check { background: var(--text); }
.v5-pick-format.is-on .v5-pick-check { display: inline-flex; }

@media (prefers-reduced-motion: reduce) {
  .v5-acard { transition: none; }
  .v5-aset-dot { animation: none; }
  .v5-aset-say { transition: none; }
}

@media (max-width: 899px) {
  /* A phone: one card and a clear slice of the next. The row runs to the
     screen's edge with a short fade; a title has three lines and the body
     three, so the card keeps its height. */
  .v5-arow { margin-right: -16px; padding-right: 24px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
  .v5-acard { width: clamp(220px, calc(100cqw - 40px), 320px); }
  .v5-acard:has(> .v5-acard-made) .v5-acard-tic { display: none; }
  .v5-acard-t { -webkit-line-clamp: 3; min-height: calc(3 * 1.3em); }
  .v5-acard-d { height: calc(3 * 1.5em + 18px); }
  .v5-acard-dt { -webkit-line-clamp: 3; max-height: calc(3 * 1.5em); }
  .v5-pick { flex-direction: column; }
  .v5-pick-pill { flex: none; width: 100%; padding: 14px 14px; }
}

/* The keep's receipt sits at the start of its line, its own width. */
.v5-arc { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.v5-arc:empty { display: none; }

.appk{background:transparent;color:var(--text)}
.appk .v5-acard{width:340px;text-align:left}
.appk .v5-acard-ring{pointer-events:none}
.appk .v5-acard:has(.v5-acard-made) .v5-acard-ring{display:none}
