/* Vyllara workbench · design system
   Cream paper, deep green ink, a high-contrast serif for titles, a quiet grotesque for everything else.
   4 px spacing grid, one type scale, one radius scale. */

:root {
  --cream: #F4EFE6;
  --cream-2: #EDE6D8;
  --paper: #FFFFFF;
  --ink: #1E2A26;
  --ink-2: #3A4642;
  --muted: #6F7772;
  --line: #E4DCCD;
  --line-2: #D6CCB8;
  --sand: #C8A968;
  --sand-soft: #F3E9D2;
  --ok: #2E6B4F;      --ok-soft: #DFEBE4;
  --warn: #A3652A;    --warn-soft: #F7E8D2;
  --bad: #8C3B2E;     --bad-soft: #F2DBD6;
  --info: #3F4A6B;    --info-soft: #E4E6EE;

  --serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-1: 6px; --r-2: 10px; --r-3: 14px;
  --shadow-1: 0 1px 2px rgba(30,42,38,.05), 0 1px 1px rgba(30,42,38,.03);
  --shadow-2: 0 6px 18px rgba(30,42,38,.08), 0 1px 2px rgba(30,42,38,.05);
  --sidebar: 236px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 15px/1.55 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
h1 { font-size: 34px; line-height: 1.15; }
h2 { font-size: 22px; line-height: 1.25; }
h3 { font-size: 17px; line-height: 1.3; }
p { margin: 0 0 .75rem; }
p:last-child { margin-bottom: 0; }
code { font: 13px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--cream-2); padding: .1em .4em; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 28px 20px 24px;
  border-right: 1px solid var(--line); background: var(--cream);
  display: flex; flex-direction: column; gap: 28px;
}
.wordmark { font-family: var(--serif); letter-spacing: .38em; font-size: 15px; color: var(--ink); text-decoration: none; padding-left: 10px; }
.wordmark small { display: block; font-family: var(--sans); letter-spacing: .08em; font-size: 10px; color: var(--muted); text-transform: uppercase; margin-top: 6px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 10px; border-radius: var(--r-1); text-decoration: none; color: var(--ink-2); font-size: 14px;
  transition: background .12s ease, color .12s ease;
}
.nav a:hover { background: var(--cream-2); color: var(--ink); }
.nav a.active { background: var(--ink); color: var(--cream); }
.nav a.active .pill { background: var(--cream); color: var(--ink); }
.nav .group { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 14px 10px 4px; }
.pill { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ink); color: var(--cream); font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.sidebar-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.sidebar-foot strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

main { padding: 40px 48px 96px; max-width: 1180px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-head > :last-child { flex-shrink: 0; }
.page-head .lede { color: var(--muted); margin-top: 8px; max-width: 64ch; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.eyebrow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.section { margin-top: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.section-head .count { color: var(--muted); font-size: 13px; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2);
  padding: 20px 22px; box-shadow: var(--shadow-1);
}
.card + .card { margin-top: 12px; }
a.card { display: block; text-decoration: none; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
a.card:hover { box-shadow: var(--shadow-2); border-color: var(--line-2); transform: translateY(-1px); }
.card.accent-warn { border-left: 4px solid var(--warn); }
.card.accent-ok { border-left: 4px solid var(--ok); }
.card.accent-bad { border-left: 4px solid var(--bad); }
.card.accent-sand { border-left: 4px solid var(--sand); }
.card.quiet { background: transparent; box-shadow: none; border-style: dashed; }
.card-row { display: flex; align-items: center; gap: 18px; }
.card-row .grow { flex: 1; min-width: 0; }
.card-title { font-weight: 600; font-size: 15px; color: var(--ink); }
.card-sub { color: var(--muted); font-size: 13.5px; margin-top: 3px; }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--cream-2); color: var(--ink-2); border: 1px solid transparent; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.chip.plain::before { display: none; }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.info { background: var(--info-soft); color: var(--info); }
.chip.sand { background: var(--sand-soft); color: #7A5E22; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Buttons and forms ---------- */
.btn, button {
  font: 500 14px/1 var(--sans); padding: 11px 16px; border-radius: var(--r-1); cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: var(--cream); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: background .12s ease, transform .05s ease, border-color .12s ease, color .12s ease;
}
.btn:hover, button:hover { background: #2A3A35; }
.btn:active, button:active { transform: translateY(1px); }
.btn.secondary, button.secondary { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
.btn.secondary:hover, button.secondary:hover { background: var(--cream-2); }
.btn.ghost, button.ghost { background: transparent; border-color: transparent; color: var(--ink-2); padding-left: 8px; padding-right: 8px; }
.btn.ghost:hover, button.ghost:hover { background: var(--cream-2); }
.btn.danger, button.danger { background: var(--paper); color: var(--bad); border-color: #E0B8B0; }
.btn.danger:hover, button.danger:hover { background: var(--bad-soft); }
.btn.lg { padding: 14px 22px; font-size: 15px; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
form.inline { display: inline; }
textarea, input[type=text], input[type=number], select {
  font: 15px/1.5 var(--sans); width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-1);
  background: var(--paper); color: var(--ink); transition: border-color .12s ease, box-shadow .12s ease;
}
textarea { min-height: 120px; resize: vertical; }
textarea:focus, input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(30,42,38,.08); }
.help { font-size: 13px; color: var(--muted); }
input[type=file] { font: 13px var(--sans); color: var(--muted); }

/* ---------- Tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); padding: 16px 18px; box-shadow: var(--shadow-1); }
.tile .label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tile .value { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin: 8px 0 4px; color: var(--ink); }
.tile .sub { font-size: 12.5px; color: var(--muted); }

/* ---------- Next step ---------- */
.next { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 28px 30px; border-left: 5px solid var(--sand); }
.next h2 { font-size: 26px; margin: 6px 0 10px; }
.next .why { color: var(--ink-2); max-width: 70ch; }
.after ol { margin: 0; padding-left: 20px; }
.after li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.after li:last-child { border-bottom: 0; }
.after a { text-decoration: none; }
.after a:hover { text-decoration: underline; }
.phase { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.phase::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sand); }

/* ---------- Tables ---------- */
table { border-collapse: separate; border-spacing: 0; width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; box-shadow: var(--shadow-1); }
th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 16px; background: #FBF9F4; border-bottom: 1px solid var(--line); }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #FCFAF6; }
td a { text-decoration: none; font-weight: 500; }
td a:hover { text-decoration: underline; }
/* A whole table row that opens a page: the row is the link, with a visible cue. */
tr.rowlink { cursor: pointer; }
tbody tr.rowlink:hover td { background: #F6F1E7; }
tr.rowlink td.go { text-align: right; white-space: nowrap; color: var(--muted); }
tr.rowlink:hover td.go { color: inherit; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Roadmap ---------- */
.monthbar { display: flex; align-items: center; gap: 16px; margin: 36px 0 12px; }
.monthbar h2 { font-size: 24px; }
.monthbar .count { color: var(--muted); font-size: 13.5px; }
.progress { height: 4px; background: var(--cream-2); border-radius: 2px; overflow: hidden; width: 160px; }
.progress span { display: block; height: 100%; background: var(--ok); }

/* ---------- Options and preview ---------- */
.option { display: grid; grid-template-columns: 300px 1fr; gap: 26px; padding: 22px; }
.option + .option { margin-top: 14px; }
.option.picked { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.option-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.option-head h3 { margin-right: 4px; }
.caption { white-space: pre-wrap; font-size: 15px; line-height: 1.6; color: var(--ink); }
.meta { color: var(--muted); font-size: 13px; }
.flags { color: var(--bad); font-size: 12.5px; }
.pass { color: var(--ok); font-size: 12.5px; }
.option-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.phone { width: 300px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-1); }
.phone .ph-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.phone .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--cream); font-family: var(--serif); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.phone .handle { font-size: 13px; font-weight: 600; }
.phone .handle small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }
.phone .ph-media { position: relative; aspect-ratio: 4 / 5; background: var(--cream-2); overflow: hidden; }
.phone .ph-media img { width: 100%; height: 100%; object-fit: cover; }
.phone .ph-media .count { position: absolute; top: 10px; right: 10px; background: rgba(30,42,38,.75); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.phone .ph-cap { padding: 10px 12px 12px; font-size: 12.5px; line-height: 1.45; color: var(--ink); }
.phone .ph-cap b { font-weight: 600; }
.phone .ph-cap .more { color: var(--muted); }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.thumbs a { display: block; width: 56px; height: 70px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
details.edit summary { cursor: pointer; color: var(--ink-2); font-size: 14px; }
details.edit[open] summary { margin-bottom: 10px; }

/* ---------- Thread ---------- */
.thread { margin-top: 36px; }
.thread h3 { margin-bottom: 14px; }
.msg { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 0; }
.msg .who-avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 15px; }
.msg.owner .who-avatar { background: var(--sand-soft); color: #7A5E22; }
.msg.claude .who-avatar { background: var(--ink); color: var(--cream); }
.msg.system .who-avatar { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); font-family: var(--sans); font-size: 11px; }
.msg .bubble { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); padding: 12px 16px; }
.msg.owner .bubble { background: #FBF6EA; border-color: #EADFC6; }
.msg.system .bubble { background: transparent; border: 0; padding: 4px 0; color: var(--muted); font-size: 13px; }
.msg .who { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.msg .who b { color: var(--ink-2); font-weight: 600; }
.msg .thumbs a { width: 160px; height: 110px; }
.composer { margin-top: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); padding: 14px; }
.composer textarea { border: 0; padding: 6px 4px; min-height: 90px; box-shadow: none; }
.composer textarea:focus { box-shadow: none; }
.composer .bar { display: flex; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.composer .bar .help:last-child { margin-left: auto; max-width: 44ch; text-align: right; }
.working { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-2); background: var(--warn-soft); color: var(--warn); font-size: 14px; margin-bottom: 12px; }
.working::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ---------- Kanban ---------- */
.kanban { display: flex; gap: 10px; align-items: stretch; }
.kanban .col { flex: 1 1 0; min-width: 0; background: var(--cream-2); border-radius: var(--r-2); padding: 10px; min-height: 160px; }
.kanban .col.empty { flex: 0 0 120px; }
.kanban .col.empty .colhead { writing-mode: vertical-rl; transform: rotate(180deg); justify-content: flex-end; padding: 10px 4px; }
.kanban .col.hot.empty { flex: 0 0 120px; }
.kanban .colhead { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 4px 6px 10px; display: flex; justify-content: space-between; }
.kanban .card { padding: 12px 14px; border-radius: var(--r-1); }
.kanban .card + .card { margin-top: 8px; }
.kanban .card strong { display: block; font-size: 13.5px; line-height: 1.35; margin-bottom: 6px; }
.kanban .card .meta { font-size: 12px; }
.col.hot { background: var(--sand-soft); }

/* ---------- Docs ---------- */
.doc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); padding: 26px 30px; box-shadow: var(--shadow-1); line-height: 1.65; }
.doc h1, .doc h2, .doc h3 { margin: 1.4em 0 .5em; }
.doc h1:first-child, .doc h2:first-child, .doc p:first-child { margin-top: 0; }
.doc ol, .doc ul { padding-left: 1.4em; }
.doc li { margin: .35em 0; }
.doc blockquote { margin: .8em 0; padding: .6em 1em; border-left: 3px solid var(--sand); background: var(--sand-soft); border-radius: 0 var(--r-1) var(--r-1) 0; color: var(--ink-2); }
.doc table { margin: 1em 0; box-shadow: none; }
.doc code { font-size: 12.5px; }

.empty { color: var(--muted); font-style: italic; padding: 18px 0; }
.quiet { color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kv th { width: 34%; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--muted); background: transparent; }
.kv td { font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 16px; gap: 14px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav .group { display: none; }
  .sidebar-foot { display: none; }
  main { padding: 24px 16px 72px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .option { grid-template-columns: 1fr; }
  .phone { width: 100%; max-width: 360px; }
  .next { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 28px; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Galleries inside documents ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 10px 0 18px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-1); border: 1px solid var(--line); background: var(--cream-2); }
.gallery figcaption { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.3; word-break: break-word; }

/* ---------- Photo viewer: a click on any photo opens it here, arrows flip through the set ---------- */
.pv { position: fixed; inset: 0; z-index: 1000; background: rgba(18, 24, 22, .97); display: none; flex-direction: column; color: #F4EFE6; }
.pv.open { display: flex; }
.pv-top { display: flex; align-items: center; gap: 16px; padding: 12px 18px; font-size: 13px; }
.pv-top .pv-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-top .pv-count { font-variant-numeric: tabular-nums; opacity: .8; }
.pv-top a { color: inherit; opacity: .8; text-decoration: underline; }
.pv-top a:hover { opacity: 1; }
.pv button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; box-shadow: none; }
.pv .pv-close { font-size: 26px; line-height: 1; padding: 2px 8px; opacity: .8; }
.pv-close:hover { opacity: 1; }
.pv-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.pv-stage img { max-width: calc(100% - 140px); max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.45); background: #2A3632; }
.pv .pv-nav { position: absolute; top: 0; bottom: 0; width: 70px; font-size: 56px; font-family: var(--serif); opacity: .55; transition: opacity .12s ease, background .12s ease; }
.pv .pv-nav:hover { opacity: 1; background: rgba(255,255,255,.06); }
.pv .pv-nav[disabled] { opacity: .12; cursor: default; background: none; }
.pv-prev { left: 0; } .pv-next { right: 0; }
.pv-strip { display: flex; gap: 6px; padding: 12px 18px 14px; overflow-x: auto; justify-content: safe center; }
.pv .pv-strip button { flex: 0 0 auto; width: 64px; height: 64px; padding: 0; border-radius: 4px; overflow: hidden; opacity: .45; outline: 2px solid transparent; }
.pv .pv-strip button:hover { opacity: .85; }
.pv .pv-strip button.on { opacity: 1; outline-color: #F4EFE6; }
/* while the large version loads, the small one already on the page stands in, stretched */
.pv-stage img.lo { height: 100%; filter: blur(3px); box-shadow: none; }
.pv-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-hint { text-align: center; font-size: 11.5px; opacity: .5; padding-bottom: 10px; }
a.pv-link { cursor: zoom-in; }
.phone .ph-media a { display: block; width: 100%; height: 100%; }
@media (max-width: 700px) { .pv-stage img { max-width: 100%; } .pv .pv-nav { width: 44px; font-size: 36px; } }

/* ---------- Ad previews: how an ad will show on Facebook, Instagram and Google ---------- */
.mp-row, .gp-pair { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; margin-top: 8px; }
.mp-label { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.mp-frame { background: #fff; border: 1px solid #DADDE1; border-radius: 10px; overflow: hidden; color: #1C1E21; line-height: 1.34; box-shadow: var(--shadow-1); }
.mp-frame b { font-weight: 600; }
.mp-av { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--cream); font-family: var(--serif); font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.mp-av.sm { width: 26px; height: 26px; font-size: 12px; }
.mp-dots { margin-left: auto; color: #65676B; font-size: 18px; letter-spacing: 1px; }
.mp-foldtext { white-space: pre-line; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.mp-fold.open .mp-foldtext { display: block; }
.mp-fold .mp-more { background: none; border: 0; box-shadow: none; padding: 0; margin-top: 2px; font: inherit; font-weight: 600; color: #65676B; cursor: pointer; }
.mp-fold.open .mp-more { display: none; }

.mp-frame.fb { width: 340px; font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: 14px; }
.fb-head, .ig-head { display: flex; align-items: center; gap: 9px; padding: 11px 12px 8px; }
.fb-who { display: flex; flex-direction: column; font-size: 14px; }
.fb-who small { color: #65676B; font-size: 12px; }
.fb-text { padding: 0 12px 10px; }
.fb-img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--cream-2); }
.fb-cards { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 4px; scroll-snap-type: x mandatory; }
.fb-card { flex: 0 0 76%; border: 1px solid #DADDE1; border-radius: 8px; overflow: hidden; scroll-snap-align: start; }
.fb-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--cream-2); }
.fb-cardfoot, .fb-link { display: flex; align-items: center; gap: 8px; padding: 9px 10px; background: #F0F2F5; }
.fb-link { padding: 10px 12px; }
.fb-cardtext { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13.5px; }
.fb-cardtext b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.fb-cardtext small { color: #65676B; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-cardtext .fb-dom { text-transform: uppercase; font-size: 11px; letter-spacing: .02em; }
.fb-btn { flex: 0 0 auto; background: #E4E6EB; border-radius: 6px; padding: 7px 10px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.fb-actions { display: flex; justify-content: space-around; padding: 9px 12px; margin-top: 6px; border-top: 1px solid #E4E6EB; color: #65676B; font-size: 13px; font-weight: 600; }

.mp-frame.ig { width: 320px; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 13.5px; }
.ig-head .mp-av { width: 32px; height: 32px; font-size: 14px; }
.ig-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream-2); }
.ig-track { display: flex; height: 100%; transition: transform .25s ease; }
.ig-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.ig-media .ig-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: #262626; font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.ig-media .ig-nav[disabled] { display: none; }
.ig-prev { left: 8px; } .ig-next { right: 8px; }
.ig-count { position: absolute; top: 10px; right: 10px; background: rgba(38,38,38,.75); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.ig-cta { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-weight: 600; color: #262626; border-bottom: 1px solid #EFEFEF; }
.ig-icons { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px 4px; }
.ig-icons svg { width: 23px; height: 23px; fill: none; stroke: #262626; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.ig-icons .ig-save { margin-left: auto; }
.ig-dots { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.ig-dots i { width: 6px; height: 6px; border-radius: 50%; background: #C7C7C7; }
.ig-dots i.on { background: #0095F6; }
.ig-cap { padding: 4px 12px 12px; }
.ig-cap .mp-foldtext { -webkit-line-clamp: 2; line-clamp: 2; }

.mp-frame.st { position: relative; width: 236px; aspect-ratio: 9 / 17.5; background: #2B3631; color: #fff; border-color: #2B3631; border-radius: 14px; display: flex; flex-direction: column; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 12px; }
.st-bar { height: 2px; margin: 8px 8px 0; background: rgba(255,255,255,.35); border-radius: 2px; }
.st-bar i { display: block; width: 35%; height: 100%; background: #fff; border-radius: 2px; }
.st-head { display: flex; align-items: center; gap: 7px; padding: 8px 10px; font-size: 12px; }
.st-head small { opacity: .8; }
.st-img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.st-text { padding: 9px 12px 0; font-size: 11.5px; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.st-cta { margin-top: auto; padding: 0 0 14px; text-align: center; }
.st-cta span { display: inline-block; background: #fff; color: #262626; font-weight: 600; font-size: 12px; padding: 7px 16px; border-radius: 999px; }

.gp { width: 620px; max-width: 100%; background: #fff; border: 1px solid #DADCE0; border-radius: 10px; padding: 14px 18px 16px; font-family: Arial, Helvetica, sans-serif; color: #4D5156; font-size: 14px; line-height: 1.58; box-shadow: var(--shadow-1); }
.gp.gp-m { width: 340px; padding: 12px 14px 14px; }
.gp-search { display: flex; align-items: center; gap: 10px; border: 1px solid #DFE1E5; border-radius: 999px; padding: 8px 16px; color: #202124; font-size: 15px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(32,33,36,.12); }
.gp-search svg, .gp-call svg { width: 17px; height: 17px; fill: none; stroke: #9AA0A6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.gp-spons { font-weight: 700; color: #202124; font-size: 13.5px; margin-bottom: 6px; }
.gp-site { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.gp-fav { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--cream); font-family: var(--serif); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.gp-sitetext { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.gp-name { color: #202124; font-size: 14px; }
.gp-url { color: #4D5156; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-h { color: #1A0DAB; font-size: 20px; line-height: 1.3; margin: 4px 0 3px; }
.gp-m .gp-h { font-size: 18px; }
.gp-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; margin-top: 12px; }
.gp-sl { display: flex; flex-direction: column; line-height: 1.4; }
.gp-slt { color: #1A0DAB; font-size: 16px; }
.gp-sld { font-size: 13px; }
.gp-m .gp-links { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; }
.gp-m .gp-sl { flex: 0 0 auto; border: 1px solid #DADCE0; border-radius: 999px; padding: 5px 12px; }
.gp-m .gp-slt { font-size: 13.5px; }
.gp-call { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #ECEDEF; color: #1A0DAB; font-size: 14px; }
.gp-call svg { stroke: #1A0DAB; }

/* ---------- Organic post previews on a slot ---------- */
.option { grid-template-columns: minmax(0, auto) minmax(300px, 1fr); }
.ig-comment { padding: 0 12px 12px; margin-top: -6px; color: #00376B; font-size: 12.5px; line-height: 1.4; }
.ig-comment b { color: #262626; }
.fbo-text .mp-foldtext { -webkit-line-clamp: 5; line-clamp: 5; }
.fbo-photos { display: grid; gap: 2px; }
.fbo-first { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--cream-2); }
.fbo-rest { display: grid; gap: 2px; }
.fbo-cell { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream-2); }
.fbo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fbo-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.45); color: #fff; font-size: 22px; font-weight: 600; }
@media (max-width: 1340px) { .option { grid-template-columns: 1fr; } }

/* ---------- Budget ledger on the Paid page ---------- */
.progress.wide { width: 100%; height: 6px; margin-top: 8px; }
.accent-bad .progress span { background: var(--bad); }
.accent-warn .progress span { background: var(--warn); }

/* The edit box of a post takes the full width of the card once opened */
.option-foot details.edit[open] { flex: 1 1 100%; }
.option-foot details.edit textarea { width: 100%; box-sizing: border-box; }
