/* Amber Star Marketing — dashboard styles */
@import url("/static/fonts/inter.css");

:root {
  --bg: #f4f1eb;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --ink: #1b1e26;
  --ink-2: #474c57;
  --muted: #7b808a;
  --line: #e6e1d8;
  --line-2: #d7d1c6;
  --navy: #1f2a44;
  --navy-2: #2b3a5e;
  --navy-3: #16203a;
  --gold: #c9a24a;
  --gold-2: #e3c982;
  --ok: #1c7a4c; --ok-bg: #e4f3ea;
  --warn: #9a6400; --warn-bg: #fcf1d6;
  --bad: #b42318; --bad-bg: #fde8e6;
  --info: #2a4ea6; --info-bg: #e8eefc;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 26, 40, .05), 0 10px 30px -18px rgba(22, 26, 40, .25);
  --sidebar: 248px;
  --page-x: 40px;
  --page-top: 36px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px; line-height: 1.5; font-feature-settings: "cv11", "ss01";
}
a { color: var(--navy); }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 650; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* --- app shell --------------------------------------------------------------- */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff;
  padding: 26px 18px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100vh;
}
.wordmark { display: flex; align-items: center; gap: 10px; padding: 0 8px; text-decoration: none; color: #fff; }
.wordmark__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--gold); display: grid; place-items: center; color: var(--navy); font-weight: 800; letter-spacing: 0; font-size: 15px; }
.wordmark__name { font-weight: 700; letter-spacing: .14em; font-size: 13px; }
.wordmark__sub { display: block; font-weight: 400; letter-spacing: 0; font-size: 12px; color: rgba(255,255,255,.6); }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: rgba(255,255,255,.78); text-decoration: none; font-weight: 500; position: relative; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a.active { background: rgba(255,255,255,.14); color: #fff; }
.nav a .badge { margin-left: auto; background: var(--gold); color: var(--navy); font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.sidebar__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.sidebar__user { padding: 10px 8px 10px 10px; border-radius: 12px; background: rgba(255,255,255,.07); display: flex; align-items: center; gap: 8px; }
.sidebar__user > span:not(.avatar) { min-width: 0; flex: 1; }
.sidebar__user .strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gold-2); color: var(--navy); display: grid; place-items: center; font-weight: 700; flex: none; }
.sidebar__user button { background: none; border: 0; color: rgba(255,255,255,.7); cursor: pointer; padding: 5px; border-radius: 8px; flex: none; }
.sidebar__user button:hover { background: rgba(255,255,255,.1); color: #fff; }

.main { min-width: 0; }
/* company tabs: one per company the person sees, above the page */
.companies { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.companies__row { max-width: 1120px; margin: 0 auto; padding: 0 var(--page-x); display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.companies__row::-webkit-scrollbar { display: none; }
.companies__tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px 11px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.companies__tab:hover { color: var(--ink); }
.companies__tab--on { color: var(--navy); border-bottom-color: var(--gold); }
.companies__code { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
.companies__tab--on .companies__code { color: var(--navy); border-color: var(--gold-2); background: #fbf3df; }
.companies__badge { background: var(--gold); color: var(--navy); font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.page { max-width: 1120px; margin: 0 auto; padding: var(--page-top) var(--page-x) 80px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-head .sub { color: var(--muted); margin-top: 4px; max-width: 70ch; }
.page-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.section { margin-top: 32px; }
.section > h2 { margin-bottom: 12px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }

/* --- surfaces ------------------------------------------------------------------ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; overflow-x: auto; }
.card + .card { margin-top: 14px; }
.card--flat { box-shadow: none; }
.card--tint { background: var(--surface-2); }
.card h3 { margin-bottom: 10px; }
.card h3:not(:first-child) { margin-top: 22px; }
.stack > * + * { margin-top: 14px; }
.grid { display: grid; gap: 16px; }
.grid > .card + .card { margin-top: 0; }  /* the gap spaces them: a margin would lift the first card of a row */
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.row { display: flex; align-items: center; gap: 12px; }
.row--between { justify-content: space-between; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.divider { height: 1px; background: var(--line); margin: 18px 0; }

/* --- pills & badges ------------------------------------------------------------ */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--warn { background: var(--warn-bg); color: var(--warn); }
.pill--bad { background: var(--bad-bg); color: var(--bad); }
.pill--info { background: var(--info-bg); color: var(--info); }
.pill--muted { background: #eeeae3; color: var(--muted); }

/* --- buttons ------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 14px; line-height: 1.2; cursor: pointer; text-decoration: none; border: 1px solid transparent; transition: background .15s, box-shadow .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-2); }
.btn--approve { background: var(--ok); color: #fff; }
.btn--approve:hover { background: #166239; }
.btn--secondary { background: var(--surface); color: var(--navy); border-color: var(--line-2); }
.btn--secondary:hover { background: var(--surface-2); }
.btn--ghost { background: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: rgba(0,0,0,.05); }
.btn--danger { background: var(--bad); color: #fff; }
.btn--sm { padding: 7px 12px; font-size: 13px; }
.btn--lg { padding: 13px 22px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
form.inline { display: inline; margin: 0; }

/* --- forms --------------------------------------------------------------------- */
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
  font: inherit; width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid rgba(31, 42, 68, .25); outline-offset: 1px; border-color: var(--navy); }
textarea { min-height: 120px; resize: vertical; }
textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.55; min-height: 460px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }
.help { color: var(--muted); font-size: 13px; margin-top: 6px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; }
.switch strong { display: block; }
.switch span.small { display: block; color: var(--muted); }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: #cfc9bf; position: relative; flex: none; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(18px); }

/* --- today / inbox ------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat__label { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat__value { font-size: 28px; font-weight: 700; margin-top: 4px; letter-spacing: -0.02em; }
.stat__sub { font-size: 13px; color: var(--muted); }
.meter { height: 6px; border-radius: 999px; background: #ece7de; margin-top: 10px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.meter > i.over { background: var(--bad); }
.inbox { display: flex; flex-direction: column; }
.inbox-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.inbox-item:first-child { border-top: 0; padding-top: 0; }
.inbox-item:last-child { padding-bottom: 0; }
.thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #e9e4db; display: block; }
.thumb--ph { display: grid; place-items: center; color: var(--muted); font-weight: 700; font-size: 13px; }
.inbox-item__title { font-weight: 650; }
.inbox-item__meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.inbox-item__need { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.empty { padding: 28px 20px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink-2); margin-bottom: 4px; font-weight: 600; }

/* --- how it works (four steps) --------------------------------------------------- */
.howto { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; overflow: hidden; }
.howto__step { display: flex; gap: 12px; padding: 16px 18px; position: relative; }
.howto__step + .howto__step { border-left: 1px solid var(--line); }
.howto__step + .howto__step::before { content: ""; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; background: var(--surface); border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: translateY(-50%) rotate(45deg); }
.howto__n { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.howto__step--you .howto__n { background: var(--gold); color: var(--navy); }
.howto__step strong { display: block; font-size: 14px; }
.howto__step span.small { color: var(--muted); display: block; margin-top: 1px; }

/* --- listings ------------------------------------------------------------------ */
.listing { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.listing__cover { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #e9e4db, #d9d2c6); position: relative; overflow: hidden; }
.listing__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }  /* any shape of picture keeps the card's 16:10 */
.listing__cover .pill { position: absolute; top: 12px; left: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.12); background-color: #fff; }
.listing__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.listing__title { font-weight: 650; font-size: 16px; }
.listing__place { color: var(--muted); font-size: 13.5px; }
.listing__price { font-weight: 700; font-size: 17px; margin-top: 2px; }
.listing__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.listing__ref { font-size: 12px; color: var(--muted); letter-spacing: .04em; }

/* --- review page: action bar ------------------------------------------------------ */
.actionbar { position: sticky; top: 0; z-index: 5; margin: calc(-1 * var(--page-top)) calc(-1 * var(--page-x)) 22px; padding: 12px var(--page-x); background: rgba(244, 241, 235, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.actionbar .spacer { flex: 1; }
.actionbar__title { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 16px; }
.actionbar__title .strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-sub { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin: -6px 0 18px; }
.review-sub .price { color: var(--ink); font-weight: 650; }

/* --- review page: the flow --------------------------------------------------------- */
.flow-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px 0; margin-bottom: 26px; overflow: hidden; }
.flow-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.flow-card__step { font-size: 13px; font-weight: 600; color: var(--muted); }
/* the lane labels sit on the same seven columns as the stages: Claude's over stages 1-5, yours over 6-7 */
.flow-lanes { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 8px; }
.flow-lane { grid-column: span 5; padding: 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; text-align: center; }
.flow-lane--you { grid-column: span 2; }
.flow-lane::before, .flow-lane::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.flow-lane--you { color: var(--warn); }
.flow { list-style: none; margin: 0; padding: 6px 0 2px; display: grid; grid-template-columns: repeat(7, 1fr); }
.flow__stage { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 6px 22px; }
.flow__stage::before { content: ""; position: absolute; top: 17px; left: -50%; right: 50%; height: 3px; background: var(--line); }
.flow__stage:first-child::before { display: none; }
.flow__stage--done::before, .flow__stage--active::before, .flow__stage--waiting::before, .flow__stage--failed::before { background: var(--gold); }
.flow__dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-2); color: var(--muted); font-weight: 700; font-size: 13px; }
.flow__dot .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.flow__stage--done .flow__dot { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.flow__stage--active .flow__dot { border-color: var(--navy); color: var(--navy); box-shadow: 0 0 0 6px rgba(31,42,68,.08); }
.flow__spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(31,42,68,.18); border-top-color: var(--navy); animation: spin .9s linear infinite; }
.flow__stage--waiting .flow__dot { background: var(--warn-bg); border-color: var(--gold); color: var(--warn); animation: pulse 1.8s ease-in-out infinite; }
.flow__stage--failed .flow__dot { background: var(--bad); border-color: var(--bad); color: #fff; }
.flow__stage--skipped .flow__dot { border-style: dashed; background: #fff; }
/* A skipped step the work has passed: the line goes on in gold through it, and only its words are muted. Its dot
   stays opaque, or the next step's line, which starts at this dot's centre, would show through it. */
.flow__stage--done + .flow__stage--skipped::before { background: var(--gold); }
.flow__stage--skipped .flow__text { opacity: .6; }
.flow__text { display: flex; flex-direction: column; align-items: center; }
.flow__label { margin-top: 10px; font-weight: 650; font-size: 13.5px; line-height: 1.25; }
.flow__caption { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.3; }
.flow__who { display: none; }
.flow__stage--pending .flow__label { color: var(--muted); font-weight: 500; }
.flow__stage--active .flow__label, .flow__stage--waiting .flow__label { color: var(--navy); }
.flow__stage--waiting .flow__caption, .flow__stage--active .flow__caption { color: var(--warn); font-weight: 600; }
.flow__stage--active .flow__caption { color: var(--navy); }
.flow__stage--failed .flow__caption { color: var(--bad); font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,74,.5); } 60% { box-shadow: 0 0 0 11px rgba(201,162,74,0); } }

.now { margin: 2px -24px 0; padding: 20px 24px 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 14px 28px; align-items: center; background: var(--surface-2); }
.now--warn { background: #fff7e4; }
.now--bad { background: var(--bad-bg); }
.now--ok { background: var(--ok-bg); }
.now--info { background: #eef2fb; }
.now__eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.now--warn .now__eyebrow { color: var(--warn); }
.now--bad .now__eyebrow { color: var(--bad); }
.now--ok .now__eyebrow { color: var(--ok); }
.now--info .now__eyebrow { color: var(--info); }
.now__title { font-size: 21px; font-weight: 700; margin-top: 3px; letter-spacing: -0.01em; }
.now__text { color: var(--ink-2); margin-top: 6px; max-width: 68ch; }
.now__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.now__hint { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.questions { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: q; }
.questions li { position: relative; padding: 12px 14px 12px 46px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.questions li::before { counter-increment: q; content: counter(q); position: absolute; left: 14px; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--warn-bg); color: var(--warn); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.questions strong { display: block; }
.questions span { color: var(--muted); font-size: 13px; }
.questions__pt { display: block; margin-top: 2px; }
.questions__answer { margin-top: 8px; min-height: 0; padding: 8px 10px; font-size: 14px; }
.now form#proceed { max-width: 68ch; }
.memory { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.memory:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.memory .help { margin: 2px 0 8px; }
.memory ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.memory li { display: grid; gap: 2px; overflow-wrap: anywhere; }
.memory__q { color: var(--muted); font-size: 13px; }
.memory__a { font-weight: 550; }
.memory__by { font-size: 12.5px; color: var(--muted); }

/* --- review page: problems, content, details ------------------------------------- */
.issues { display: flex; flex-direction: column; gap: 10px; }
.issue { display: grid; grid-template-columns: 4px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.issue > i { background: var(--warn); }
.issue--block > i { background: var(--bad); }
.issue__body { padding: 12px 14px 12px 0; }
.issue__title { font-weight: 650; }
.issue__detail { margin-top: 2px; color: var(--ink-2); }
.issue__hint { margin-top: 4px; font-size: 13px; color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab { padding: 10px 14px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab.active { color: var(--navy); border-bottom-color: var(--gold); }
.tabpanel { display: none; }
.tabpanel.active { display: block; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.gallery__item { display: block; text-decoration: none; color: inherit; }
.gallery__item img { width: 100%; height: 230px; object-fit: contain; display: block; border-radius: 10px; background: #ece7df; box-shadow: 0 6px 18px -10px rgba(0,0,0,.35); border: 1px solid var(--line); }
.gallery__label { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.strip img { width: 120px; border-radius: 8px; border: 1px solid var(--line); flex: none; display: block; }
.strip--photos img { width: 84px; height: 84px; object-fit: cover; }
.pdf { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.pdf__icon { width: 40px; height: 48px; border-radius: 6px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: .05em; flex: none; }
.pdf .spacer { flex: 1; }
.textbox { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 92px 14px 16px; position: relative; }
.textbox pre { margin: 0; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.textbox ol, .textbox ul { margin: 0; padding-left: 20px; }
.textbox li + li { margin-top: 4px; }
.textbox .copy { position: absolute; top: 8px; right: 8px; }
.textbox + .textbox { margin-top: 10px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
details.more, details.tech { margin-top: 24px; }
details.more > summary, details.tech > summary { cursor: pointer; font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 6px; color: var(--navy); }
details.tech > summary { color: var(--muted); }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary .icon { transform: rotate(90deg); }
details.more > .card, details.tech > .card { margin-top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.table-wrap { overflow-x: auto; }
.ads { display: grid; gap: 10px; }
.ad { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.ad__head { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.scenes { margin: 0; padding-left: 20px; }
.scenes li + li { margin-top: 4px; }

/* --- brand book ------------------------------------------------------------------- */
.brand-section { display: flex; flex-direction: column; gap: 10px; }
.brand-section__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.brand-section__meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.brand-section__preview { color: var(--ink-2); font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.brand-section__foot { margin-top: auto; padding-top: 6px; }

/* --- settings ---------------------------------------------------------------------- */
.conn { display: flex; flex-direction: column; }
.conn__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.conn__row:first-child { border-top: 0; padding-top: 0; }
.conn__row:last-child { padding-bottom: 0; }
.conn__name { font-weight: 650; }
.conn__value { color: var(--muted); font-size: 13.5px; grid-column: 1; }
.conn__row .pill { grid-column: 2; grid-row: 1 / span 2; }

/* --- language switch and account ------------------------------------------------------ */
.langswitch { display: flex; gap: 2px; padding: 3px; border-radius: 10px; margin: 0; }
.langswitch button { flex: 1; min-width: 40px; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.langswitch--dark { background: rgba(255,255,255,.07); }
.langswitch--dark button { color: rgba(255,255,255,.6); }
.langswitch--dark button:hover { color: #fff; }
.langswitch--dark button[aria-pressed=true] { background: rgba(255,255,255,.16); color: #fff; }
.langswitch--light { background: var(--surface-2); border: 1px solid var(--line); }
.langswitch--light button { color: var(--muted); }
.langswitch--light button:hover { color: var(--navy); }
.langswitch--light button[aria-pressed=true] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(22,26,40,.12); }
.langswitch--wide button { min-width: 56px; }
.login__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.login__top .wordmark { margin-bottom: 0; }
.account { display: flex; flex-direction: column; }
.account__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.account__row:first-child { border-top: 0; padding-top: 0; }
.account__row:last-child { padding-bottom: 0; }
.admin-links { display: none; margin-top: 16px; }
.me { display: none; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.me .avatar { width: 40px; height: 40px; font-size: 16px; }
.account-who { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.account-who .avatar { width: 44px; height: 44px; font-size: 18px; }
.account-who > div { min-width: 0; overflow-wrap: anywhere; }
#account .dialog__foot { justify-content: space-between; }
a.account__row { color: inherit; text-decoration: none; flex-wrap: nowrap; }
a.account__row > div { flex: 1 1 auto; min-width: 0; }
a.account__row .icon { color: var(--muted); }

/* --- plan (week calendar) ------------------------------------------------------------ */
.weeknav { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.weeknav .spacer { flex: 1; }
.weeknav__title { display: flex; align-items: center; gap: 10px; font-size: 17px; flex-wrap: wrap; }
.cal { display: grid; grid-template-columns: 84px repeat(var(--pages, 3), minmax(0, 1fr)); gap: 8px; }
.cal__head { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 4px 6px; }
.cal__day { font-weight: 650; font-size: 13.5px; padding: 10px 6px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.cal__day--today { color: var(--navy); }
.cal__day--today::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.cal__cell { min-height: 60px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.cal__cell--weekend { background: transparent; border-color: var(--line); }
.cal__cell::before { display: none; }
.slot { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: start; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.slot--done { opacity: .65; }
.slot__thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #e9e4db; display: grid; place-items: center; font-size: 11px; color: var(--muted); font-weight: 700; }
.slot__title { font-weight: 650; font-size: 13.5px; line-height: 1.3; }
.slot__meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; align-items: center; }
.chip--sm { padding: 2px 8px; font-size: 11.5px; }
a.chip { text-decoration: none; }
a.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip--on { background: var(--navy); border-color: var(--navy); color: #fff; }
a.chip--on:hover { color: #fff; }
.source-line { margin-bottom: 16px; align-items: center; flex-wrap: wrap; }
.source-line .pill { background-color: #fff; }
.finder { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.finder input[type=search] { flex: 1 1 260px; min-width: 0; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font: inherit; background: var(--surface); }
.finder__filters { display: flex; gap: 6px; flex-wrap: wrap; }
.finder__count { margin-left: auto; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 18px; }
.pager > :last-child { justify-self: end; }
.slot__note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.slot__actions { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0 -12px; }  /* under the text: words differ in length per language */
.slot__remove .btn { padding-inline: 8px; }
.notes { margin: 0; padding-left: 20px; }
.notes li + li { margin-top: 6px; }
.inbox-item--compact { grid-template-columns: 44px 1fr auto; padding: 10px 0; }
.thumb--sm { width: 44px; height: 44px; }

/* --- team ------------------------------------------------------------------------- */
.legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.legend__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.legend__item p { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.people { display: flex; flex-direction: column; }
.person { display: grid; grid-template-columns: 40px 1fr auto auto auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.person:first-child { border-top: 0; padding-top: 0; }
.person:last-child { padding-bottom: 0; }
.person--off .person__who { opacity: .55; }
.person .avatar { width: 40px; height: 40px; }
.person__role select { width: auto; padding: 7px 32px 7px 10px; font-size: 13.5px; font-weight: 600; }
.person__actions { display: flex; gap: 4px; }
.person__companies { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.chip--check { cursor: pointer; user-select: none; }
.chip--check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip--check:hover { border-color: var(--line-2); color: var(--ink); }
.chip--check:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }  /* ticked */
.chip--check:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.chip--all { background: var(--info-bg); border-color: transparent; color: var(--info); }
fieldset.field { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* --- dialog & toast ------------------------------------------------------------ */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: 0 24px 60px -20px rgba(0,0,0,.4); }
dialog::backdrop { background: rgba(20, 24, 40, .45); }
.dialog__body { padding: 24px; }
.dialog__body h2 { margin-bottom: 6px; font-size: 19px; }
.dialog__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; background: var(--surface-2); border-top: 1px solid var(--line); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); font-weight: 500; z-index: 20; display: flex; gap: 10px; align-items: center; max-width: calc(100vw - 32px); }
.toast.hide { opacity: 0; transition: opacity .4s; }
.toast--bad { background: var(--bad); }
.notice { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.notice--bad { background: var(--bad-bg); color: var(--bad); }
.notice--warn { background: var(--warn-bg); color: var(--warn); }
.notice--info { background: var(--info-bg); color: var(--info); }
.notice--ok { background: var(--ok-bg); color: var(--ok); }

/* the plan at work (task 013): today's posts, the layout a slot publishes, updating changed listings */
.inbox-item__actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.gallery__item--focus img { outline: 3px solid var(--gold); outline-offset: 3px; }
.gallery__item--focus .gallery__label { color: var(--ink); font-weight: 650; }
.strip--focus { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 10px; }
.more--focus > summary { color: var(--ink); font-weight: 650; }
.refresh-opt__check { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-weight: 600; cursor: pointer; }
.refresh-opt .small { margin-top: 4px; opacity: .85; }
/* a plan slot's link lands on its layouts below the pack's sticky bar, not under it */
[id^="layouts-"], [id^="carousel-"], #reels { scroll-margin-top: 80px; }
/* not a scroll box itself (the carousel strip scrolls on its own), or it would cap that margin at its own top */
.card[data-tabs] { overflow: visible; }

/* rules Claude suggests from change requests (task 014) */
.suggestions__intro { margin: -6px 0 14px; }
.suggestions__none { margin: -10px 0 20px; }
.suggestions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.suggestions > .card + .card { margin-top: 0; }
.sections-head { margin-top: 32px; }
.suggestion__head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.suggestion__where { color: var(--muted); font-size: 13px; }
.suggestion textarea { min-height: 64px; }
.suggestion__terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.suggestion__now { margin: -6px 0 12px; }
.suggestion__text { font-weight: 600; margin: 0 0 10px; overflow-wrap: anywhere; }
.suggestion__why { color: var(--ink-2); font-size: 13.5px; margin: 0 0 6px; }
.suggestion__sources { list-style: none; padding: 0; margin: 0 0 14px; font-size: 13px; color: var(--muted); display: grid; gap: 4px; overflow-wrap: anywhere; }
.suggestion__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb--icon .icon { width: 26px; height: 26px; color: var(--navy); }
.lessons { margin-bottom: 20px; }
.recheck { margin-bottom: 20px; }
.recheck form { margin-top: 10px; }
.lessons ul { margin: 6px 0; padding-left: 18px; overflow-wrap: anywhere; }

/* --- tasks (019): the task list, a task, the team's workload --------------------------------------------------- */
input[type=date] { font: inherit; width: 100%; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); }
.late { color: var(--bad); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #b9b3a8; flex: none; }
.dot--info { background: var(--info); }
.dot--warn { background: var(--gold); }
.dot--ok { background: var(--ok); }
.board__filters { margin: 0; }
/* the task list: one row per task, wide enough to read at a glance */
.tasks-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.stagebar { display: flex; flex-wrap: wrap; gap: 6px; }
.stagebar a, .stagebar__empty { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.stagebar a:hover { border-color: var(--line-2); color: var(--ink); }
.stagebar b { color: var(--ink); font-weight: 700; }
.stagebar__empty { opacity: .5; }
.bulk { position: sticky; top: 8px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-height: 46px; padding: 8px 14px; margin-bottom: 12px; background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); font-size: 13.5px; color: var(--muted); }
.bulk select { width: auto; max-width: 220px; padding: 6px 30px 6px 10px; font-size: 13px; }
.bulk:not(.bulk--on) .bulk__count, .bulk:not(.bulk--on) select, .bulk:not(.bulk--on) button { display: none; }
.bulk--on { background: #fbf3df; border: 1px solid var(--gold-2); color: var(--ink); box-shadow: var(--shadow); }
.bulk--on .bulk__hint { display: none; }
.tasklist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.trow, .tasklist__head { display: grid; grid-template-columns: 22px minmax(0, 1fr) 160px 104px 64px 164px; gap: 14px; align-items: center; padding: 11px 16px; }
.tasklist--plain .trow, .tasklist--plain .tasklist__head { grid-template-columns: minmax(0, 1fr) 160px 104px 64px 164px; }
.tasklist__head { padding-top: 9px; padding-bottom: 9px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tgroup__head { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 16px; background: #fbfaf7; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); }
.tgroup + .tgroup .tgroup__head, .tgroup + .tgroup > summary.tgroup__head { border-top: 1px solid var(--line); }
.tgroup__head .trow__pick { width: 22px; }
.tgroup__count { color: var(--muted); font-weight: 600; }
.tgroup__note { color: var(--muted); font-weight: 500; font-size: 13px; }
.tgroup--closed > summary { cursor: pointer; list-style: none; }
.tgroup--closed > summary::-webkit-details-marker { display: none; }
.tgroup--closed > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 0 0 2px; transition: transform .15s; }
.tgroup--closed[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
.tgroup--closed:not([open]) > summary { border-bottom: 0; }
.trow { border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.tgroup > .trow:last-child { border-bottom: 0; }
.tgroup + .tgroup { border-top: 0; }
.trow:hover { background: #fdfcfa; }
.trow:target { background: #fbf3df; }
.trow--late { box-shadow: inset 3px 0 0 var(--bad); }
.trow__pick { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.trow__pick input { width: 17px; height: 17px; margin: 0; accent-color: var(--navy); cursor: pointer; }
.trow__main { min-width: 0; }
.trow__title { font-weight: 600; font-size: 14.5px; line-height: 1.35; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.trow__title:hover { color: var(--navy); text-decoration: underline; }
.trow__sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.trow__due, .trow__hours { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.trow__date { display: inline-flex; align-items: center; gap: 5px; }
.trow__date .icon { width: 15px; height: 15px; color: var(--muted); }
.trow__date.late .icon { color: var(--bad); }
.trow select { width: 100%; padding: 6px 28px 6px 10px; font-size: 13px; border-radius: 8px; background-color: var(--surface); }
.trow select.is-empty { background-color: #fbf3df; border-color: var(--gold-2); color: var(--warn); font-weight: 600; }
.avatar--xs { width: 22px; height: 22px; font-size: 11px; }
.trow__name { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; min-width: 0; overflow-wrap: anywhere; }
.stage-select { font-weight: 600; }
.stage-select--info { color: var(--info); }
.stage-select--warn { color: var(--warn); }
.stage-select--ok { color: var(--ok); }
.backlink { margin: -10px 0 6px -12px; }
.task { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.task__title { overflow-wrap: anywhere; }
.task__text { white-space: pre-line; overflow-wrap: anywhere; }
.task__side { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 16px; }
.task__details { margin-top: 14px; }
.task__cancel { align-self: flex-start; color: var(--bad); }
.stages { display: flex; flex-wrap: wrap; gap: 6px; }
.stages__btn { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.stages__btn:hover { border-color: var(--navy); color: var(--navy); }
.stages__btn--on, .stages__btn--on:disabled { background: var(--navy); border-color: var(--navy); color: #fff; cursor: default; }
.comment { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-bottom: 16px; }
.comment textarea { min-height: 72px; }
.history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.history__line { padding: 10px 0; border-top: 1px solid var(--line); }
.history__line:first-child { border-top: 0; padding-top: 0; }
.history__head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.history__text { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; overflow-wrap: anywhere; }
.history__line--comment .history__text { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; color: var(--ink); white-space: pre-line; margin-top: 6px; }
.kv--tight { margin-top: 12px; }
.nobody { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.nobody__list { display: flex; flex-wrap: wrap; gap: 8px; }
.nobody__list .chip { gap: 6px; text-decoration: none; }
.loads { display: flex; flex-direction: column; }
.load { border-top: 1px solid var(--line); }
.load:first-child { border-top: 0; }
.load__row { display: grid; grid-template-columns: 32px minmax(0, 1.2fr) minmax(80px, 1fr) auto; grid-template-areas: "face who bar hours" ". flags flags flags"; gap: 6px 14px; align-items: center; padding: 12px 0; cursor: pointer; list-style: none; }
.load__row > .avatar { grid-area: face; }
.load__who { grid-area: who; }
.load__bar { grid-area: bar; }
.load__hours { grid-area: hours; }
.load__flags { grid-area: flags; }
.load__row::-webkit-details-marker { display: none; }
.load__who, .load__hours { display: flex; flex-direction: column; min-width: 0; }
.load__hours { text-align: right; }
.load__bar { height: 8px; background: #ece7de; border-radius: 999px; overflow: hidden; }
.load__bar > i { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.load__flags { display: flex; flex-wrap: wrap; gap: 6px; }
.load__flags:empty { display: none; }
.load__tasks { list-style: none; margin: 0 0 14px 46px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.load__tasks li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13.5px; }
.load__none { margin: 0 0 14px 46px; }
.inbox-item.inbox-item--task { grid-template-columns: minmax(0, 1fr) auto; }  /* no picture: the text takes its place */
a.inbox-item__title { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
a.inbox-item__title:hover { color: var(--navy); text-decoration: underline; }
.nobody-line { font-size: 14px; color: var(--ink-2); }
.nobody-line--under { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .nav a.nav__spare { display: none; }  /* five tabs: Posts beside Listings opens from Listings and Today, the admin's brand book from Settings */
  .tasklist__head, .bulk, .trow__pick { display: none; }  /* on a phone tasks are given out one by one */
  .bulk.deck-pick { display: flex; }  /* but listings are still ticked for a presentation */
  .trow, .tasklist--plain .trow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "main main" "due hours" "who stage"; gap: 8px 10px; padding: 12px 14px; }
  .trow__main { grid-area: main; }
  .trow__due { grid-area: due; }
  .trow__hours { grid-area: hours; text-align: right; }
  .trow__who { grid-area: who; }
  .trow__stage { grid-area: stage; }
  .trow__none { display: none; }
  .tgroup__head { padding: 10px 14px; }
  .task { grid-template-columns: minmax(0, 1fr); }
  .task__side { position: static; }
  .load__row { grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: "face who hours" ". bar bar" ". flags flags"; }
  .load__tasks, .load__none { margin-left: 0; }
  .inbox-item.inbox-item--task { grid-template-columns: minmax(0, 1fr); }  /* over the phone rule for pictures */
  .inbox-item.inbox-item--task > .btn { grid-column: 1; }
}

/* --- PIN codes and the request form (020) ------------------------------------------------------------------ */
.post-form { max-width: 860px; }
.page-head--buttons .page-head__actions { flex: none; }  /* the buttons stay in a row beside a long subtitle */
.recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 8px; }
.recipe { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.recipe:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: #fff; }
.recipe input { margin-top: 3px; flex: none; }
.recipe > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.post-form__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.brief__text { white-space: pre-wrap; overflow-wrap: anywhere; }
.brief__foot { display: flex; justify-content: flex-end; margin-top: 14px; }
.pin-shown { margin-bottom: 16px; border-color: var(--gold-2); background: #fffaf0; }
.pin-shown__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; }
.pin-shown__head .notice { max-width: 520px; }
.pin-shown__pin { font-size: 34px; font-weight: 800; letter-spacing: .12em; color: var(--navy); font-variant-numeric: tabular-nums; }
.pin-shown__message { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pin-shown__text { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; overflow-wrap: anywhere; width: 100%; }
.pins { padding: 0; }
.pins__head, .pins__row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 150px 140px 180px; gap: 12px; align-items: center; padding: 12px 18px; }
.pins__head { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 9px; padding-bottom: 9px; }
.pins__row + .pins__row { border-top: 1px solid var(--line); }
.pins__row--off { opacity: .6; }
.pins__companies { display: flex; flex-wrap: wrap; gap: 4px; }
.pins__actions { display: flex; gap: 4px; justify-content: flex-end; }
.pins__revoke { color: var(--bad); }
.pins .empty { padding: 28px 20px; }
.chip--check input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.login.pedidos { place-items: start center; padding-top: 6vh; }  /* over the login page's centring: the form grows */
.login__card.pedidos__card { width: min(640px, 100%); }
.pedidos__title { font-size: 22px; margin-bottom: 4px; }
.pedidos__pin { font-size: 22px; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.pedidos__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pedidos__who { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pedidos__form { margin-top: 16px; }
.pedidos__for { font-weight: 600; margin-bottom: 14px; }
.pedidos__mine { margin: 28px 0 10px; font-size: 16px; }
.pedidos__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pedidos__list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.pedidos__list li > div { min-width: 0; overflow-wrap: anywhere; }
.pedidos .notice { margin-bottom: 14px; }
.request-from { margin-bottom: 14px; }
@media (max-width: 900px) {
  .pins__head { display: none; }
  .pins__row { grid-template-columns: minmax(0, 1fr) auto; }
  .pins__row > :nth-child(2), .pins__row > :nth-child(4) { grid-column: 1; }
  .pins__actions { grid-column: 1 / -1; justify-content: flex-start; margin-left: -12px; }
  .login.pedidos { padding: 12px; }
  .login__card.pedidos__card { padding: 22px 18px; }
}

/* --- login --------------------------------------------------------------------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 20% -10%, #2b3a5e 0%, var(--navy-3) 60%); }
.login__card { width: min(420px, 100%); background: #fff; border-radius: 18px; padding: 32px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.login__card .wordmark { color: var(--navy); padding: 0; margin-bottom: 22px; }
.login__card .wordmark__sub { color: var(--muted); }

/* --- responsive ---------------------------------------------------------------- */
@media (max-width: 900px) {
  :root { --page-x: 16px; --page-top: 20px; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: auto 0 0 0; height: auto; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); flex-direction: row; align-items: center; gap: 0; background: var(--navy-3); z-index: 10; border-top: 1px solid rgba(255,255,255,.08); }
  .sidebar .wordmark, .sidebar__foot { display: none; }
  .nav { flex-direction: row; width: 100%; justify-content: space-around; }
  .nav a { flex-direction: column; gap: 4px; font-size: 10.5px; padding: 6px 2px; min-width: 0; }
  .nav__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav a { flex: 1 1 0; }
  .nav a .badge { margin: 0; position: absolute; top: 0; right: calc(50% - 22px); }
  /* five tabs fit every phone in every language; the admin pages open from Settings */
  .nav a.nav__admin { display: none; }
  .nav a.nav__parent { background: rgba(255,255,255,.14); color: #fff; }
  .admin-links { display: flex; }
  .page-head--me { position: relative; }
  .page-head--me h1 { padding-right: 52px; }
  .me { display: block; position: absolute; top: 0; right: 0; }
  .page { padding-bottom: 96px; }
  .page-head { flex-direction: column; gap: 12px; }
  .row--between { flex-wrap: wrap; }  /* a long status ("Черновик: нужно ваше утверждение") goes under, not off */
  .grid--3, .grid--2 { grid-template-columns: minmax(0, 1fr); }  /* a photo strip must scroll, not widen the card */
  .kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kv dt { font-size: 12.5px; margin-top: 10px; }
  .kv dt:first-child { margin-top: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inbox-item { grid-template-columns: 56px 1fr; }
  .inbox-item > .btn { grid-column: 2; justify-self: start; }
  .inbox-item > .inbox-item__actions { grid-column: 2; justify-content: flex-start; }
  [id^="layouts-"], [id^="carousel-"], #reels { scroll-margin-top: 160px; }  /* the bar wraps to two rows */
  .suggestion__terms { grid-template-columns: minmax(0, 1fr); gap: 0; }
  h1 { font-size: 22px; }
  .howto { grid-template-columns: 1fr; }
  .howto__step + .howto__step { border-left: 0; border-top: 1px solid var(--line); }
  .howto__step + .howto__step::before { display: none; }
  .actionbar__title { flex: 1 1 100%; order: -1; }
  .flow-lanes { display: none; }
  .flow { grid-template-columns: 1fr; padding-top: 0; }
  .flow__stage { flex-direction: row; text-align: left; align-items: flex-start; gap: 14px; padding: 0 0 16px; }
  .flow__stage::before { top: -16px; left: 16px; right: auto; width: 3px; height: 16px; }
  .flow__text { align-items: flex-start; padding-top: 7px; }
  .flow__label { margin-top: 0; }
  .flow__who { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
  .flow__stage--you .flow__who { color: var(--warn); }
  .now { grid-template-columns: 1fr; }
  .now__actions { justify-content: flex-start; }
  .textbox { padding-right: 16px; padding-top: 44px; }
  .legend { grid-template-columns: 1fr; }
  .cal { grid-template-columns: 1fr; gap: 6px; }
  .cal__corner, .cal__head { display: none; }
  .cal__day { padding: 12px 0 2px; }
  .cal__cell { min-height: 0; }
  .cal__cell--empty { display: none; }
  .cal__cell::before { display: block; content: attr(data-page); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .weeknav .spacer { display: none; }
  .weeknav__title { order: -1; flex: 1 1 100%; }  /* the week on its own line, the arrows together below */
  .person { grid-template-columns: 40px 1fr; }
  .person__role, .person > .pill, .person__actions { grid-column: 2; justify-self: start; }
}

/* --- brand book editor: a section edited as a document ---------------------------------------------- */
.bb-doc[hidden], .bb-raw[hidden], .bb-switch[hidden] { display: none !important; }
.bb-hint { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; max-width: 780px; }
.bb-card { padding: 26px 30px; }
.bb-doc { display: flex; flex-direction: column; gap: 4px; max-width: 860px; }
.bb-block { position: relative; border-radius: var(--radius-sm); padding: 4px 92px 4px 4px; }
.bb-block:hover, .bb-block:focus-within { background: var(--surface-2); }
.bb-tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 2px; opacity: 0; transition: opacity .12s; }
.bb-block:hover > .bb-tools, .bb-block:focus-within > .bb-tools { opacity: 1; }
.bb-icon { border: 0; background: transparent; color: var(--muted); width: 28px; height: 28px; border-radius: 8px; font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.bb-icon:hover { background: var(--line); color: var(--ink); }
.bb-icon:disabled { opacity: .3; cursor: default; background: transparent; }
.bb-doc .bb-heading, .bb-doc .bb-text, .bb-doc .bb-cell {
  display: block; width: 100%; min-height: 0; margin: 0; padding: 6px 9px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--ink); font: inherit; line-height: 1.55; resize: none; overflow: hidden;
}
.bb-doc .bb-heading:hover, .bb-doc .bb-text:hover, .bb-doc .bb-cell:hover { border-color: var(--line); background: var(--surface); }
.bb-doc .bb-heading:focus, .bb-doc .bb-text:focus, .bb-doc .bb-cell:focus { border-color: var(--navy); background: var(--surface); outline: 2px solid rgba(31, 42, 68, .16); outline-offset: 0; }
.bb-doc .bb-heading--1 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.bb-doc .bb-heading--2 { font-size: 18px; font-weight: 650; margin-top: 10px; }
.bb-doc .bb-heading--3 { font-size: 15.5px; font-weight: 650; margin-top: 6px; }
.bb-doc .bb-quote { border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; background: var(--surface-2); color: var(--ink-2); font-style: italic; }
.bb-doc .bb-quote:hover, .bb-doc .bb-quote:focus { border-left-color: var(--gold); }
.bb-rawblock { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.bb-list { margin: 0; padding-left: 28px; }
.bb-item { margin: 1px 0; }
.bb-item::marker { color: var(--gold); font-weight: 700; }
.bb-item__row { display: flex; align-items: flex-start; gap: 4px; }
.bb-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bb-item__tools { display: flex; gap: 2px; opacity: 0; padding-top: 3px; transition: opacity .12s; }
.bb-item:hover .bb-item__tools, .bb-item:focus-within .bb-item__tools { opacity: 1; }
.bb-add { border: 1px dashed var(--line-2); background: transparent; color: var(--ink-2); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.bb-add:hover { border-color: var(--navy); color: var(--navy); background: var(--surface); }
.bb-listbox > .bb-add { margin: 6px 0 4px 28px; }
.bb-tablebox > .bb-add { margin: 8px 0 4px; }
.bb-tablescroll { overflow-x: auto; }
.bb-table { border-collapse: collapse; width: 100%; min-width: 560px; }
.bb-table th, .bb-table td { border: 1px solid var(--line); padding: 0; vertical-align: top; }
.bb-table th { background: var(--surface-2); }
.bb-doc .bb-table .bb-cell { border-radius: 0; padding: 7px 9px; }
.bb-doc .bb-cell--head { font-weight: 650; }
.bb-table .bb-table__tools { width: 36px; border: 0; background: transparent; text-align: center; }
.bb-addbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.bb-addbar__label { color: var(--muted); font-size: 13px; margin-right: 2px; }
.bb-foot { margin-top: 16px; }
.bb-switch { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 0; }
.bb-switch:hover { color: var(--navy); }
/* read-only view (viewers) */
[data-bb-readonly="true"] .bb-block { padding: 0; }
[data-bb-readonly="true"] .bb-block:hover { background: transparent; }
.bb-read-h { margin: 14px 0 4px; }
h2.bb-read-h { font-size: 22px; font-weight: 700; text-transform: none; letter-spacing: -0.01em; color: var(--ink); }
h3.bb-read-h { font-size: 17px; font-weight: 650; text-transform: none; letter-spacing: 0; color: var(--ink); }
h4.bb-read-h { font-size: 15px; font-weight: 650; }
.bb-read-p { margin: 4px 0; line-height: 1.6; }
.bb-read-list { margin: 4px 0; padding-left: 26px; }
.bb-read-list li { margin: 3px 0; }
.bb-read-list li::marker { color: var(--gold); }
.bb-read-q { margin: 6px 0; padding: 4px 12px; border-left: 3px solid var(--gold); color: var(--ink-2); font-style: italic; white-space: pre-line; }
.bb-read-table { border-collapse: collapse; margin: 6px 0; }
.bb-read-table th, .bb-read-table td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.bb-read-table th { background: var(--surface-2); }
@media (hover: none), (max-width: 900px) {
  .bb-tools, .bb-item__tools { opacity: 1; }
}
@media (max-width: 900px) {
  .bb-card { padding: 16px 12px; }
  .bb-block { padding: 38px 2px 4px; }
  .bb-tools { top: 4px; right: 4px; }
  .bb-list { padding-left: 22px; }
  .bb-listbox > .bb-add { margin-left: 22px; }
}

/* presentations (023) */
.listing { position: relative; }
.listing__pick { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; padding: 7px; border-radius: 8px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); cursor: pointer; }
.listing__pick input { width: 18px; height: 18px; margin: 0; }
.thumb--wide { width: 114px; height: 64px; }
.thumb--slide { object-position: 0 50%; }  /* a square from a 16:9 slide: its left side, where the title starts */
.inbox-item--deck { grid-template-columns: 114px minmax(0, 1fr) auto; }  /* a 16:9 cover, not a square */
.deck-form [hidden] { display: none !important; }
.deck-form [data-for] > .help { margin: -8px 0 14px; }  /* under its field, apart from the next one */
.recipes--kinds { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.slides { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.slide-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.slide-card__pic { display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #e9e4db; }
.slide-card__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-card__pic--none { display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.slide-card__words { display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.slide-card__words ul { margin: 0; padding-left: 18px; }
.slide-card__notes { padding: 6px 8px; border-radius: 6px; background: var(--surface-2); }
.deck-listings { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 900px) {
  .inbox-item--deck { grid-template-columns: 96px minmax(0, 1fr); }
  .inbox-item--deck .thumb--wide { width: 96px; height: 54px; }
}

/* the brand book from examples (024) */
.learn { margin-top: 0; }
.learn__intro { margin: -6px 0 14px; max-width: 80ch; }
.learn__drafts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; margin-bottom: 14px; }
.learn__drafts > .card + .card { margin-top: 0; }
.learn-draft { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; border-color: var(--info); }
.learn-draft:hover { box-shadow: 0 8px 22px -12px rgba(0,0,0,.35); }
.learn-draft__head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.learn-draft__changes { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); display: grid; gap: 4px; overflow-wrap: anywhere; }
.learn-draft__go { margin-top: auto; font-weight: 600; font-size: 13.5px; color: var(--navy); }
.learn__panel { display: flex; flex-direction: column; gap: 14px; overflow: visible; }
.learn__panel > .help { margin-top: -8px; }
.learn__notice ul { margin-top: 6px; }
.learn__study .meter { max-width: 460px; }
.learn__go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.learn__upload { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.learn__upload label.field { margin-bottom: 0; flex: 1 1 280px; min-width: 0; }
.learn__upload input[type=file] { max-width: 100%; }
.learn__archives { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.learn-archive { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.learn-archive:last-child { border-bottom: 0; padding-bottom: 0; }
.learn-archive__main { min-width: 0; display: grid; gap: 4px; overflow-wrap: anywhere; }
.learn-archive__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.learn-archive__error { color: var(--bad); }
.learn-archive__skipped summary { cursor: pointer; color: var(--navy); font-weight: 600; }
.learn-archive__skipped ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; color: var(--ink-2); }
.learn-archive__actions { display: flex; gap: 4px; flex: none; }
.examples-filter { margin-bottom: 16px; }
.examples { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; align-items: start; }
.examples > .card + .card { margin-top: 0; }
.example { display: flex; flex-direction: column; gap: 8px; min-width: 0; scroll-margin-top: 80px; }
.example__pic { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #ece7df; border: 1px solid var(--line); }
.example__pic img { display: block; width: 100%; height: 220px; object-fit: contain; }
.example__more { position: absolute; right: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(20,24,40,.75); color: #fff; font-size: 12.5px; font-weight: 600; }
.example__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.example__name { overflow-wrap: anywhere; margin-top: -4px; }
.example__text { margin: 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
.example__notes { grid-template-columns: minmax(80px, max-content) minmax(0, 1fr); gap: 6px 12px; font-size: 13px; overflow-wrap: anywhere; }
.example__colours { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.swatch { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--line-2); display: inline-block; flex: none; }
.example__delete { align-self: flex-start; margin-left: -12px; }
.example > .pill { align-self: flex-start; }
.learn__current { margin: 0; color: var(--ink-2); font-size: 14px; }
.draft { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; align-items: start; }
.draft > .card + .card { margin-top: 0; }
.draft__state { margin-bottom: 16px; }
.draft__list { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 10px; overflow-wrap: anywhere; }
.draft__ask { margin-bottom: 16px; }
.draft__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.draft__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.draft__head h2 { margin: 0; }
.draft__added { color: var(--ok); font-weight: 600; }
.draft__gone { color: var(--bad); font-weight: 600; }
.diff { font-size: 13.5px; line-height: 1.5; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.diff__line { display: grid; grid-template-columns: 22px minmax(0, 1fr); padding: 2px 10px 2px 0; min-height: 1.5em; }
.diff__text { white-space: pre-wrap; overflow-wrap: anywhere; }
.diff__mark { text-align: center; color: var(--muted); font-weight: 700; user-select: none; }
.diff__line--added { background: var(--ok-bg); }
.diff__line--added .diff__mark { color: var(--ok); }
.diff__line--gone { background: var(--bad-bg); }
.diff__line--gone .diff__text { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.35); }
.diff__line--gone .diff__mark { color: var(--bad); }
.diff__fold { background: var(--surface-2); border-block: 1px dashed var(--line); }
.diff__fold > summary { display: flex; align-items: center; gap: 4px; padding: 4px 10px 4px 6px; color: var(--muted); font-size: 12.5px; cursor: pointer; list-style: none; }
.diff__fold > summary .icon { width: 14px; height: 14px; transition: transform .15s; }
.diff__fold[open] > summary { border-bottom: 1px dashed var(--line); }
.diff__fold[open] > summary .icon { transform: rotate(90deg); }
.diff__fold .diff__line { background: var(--surface); }
.bb-draft { margin-bottom: 14px; display: block; }
.bb-draft__changes { margin-top: 8px; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .draft { grid-template-columns: minmax(0, 1fr); }
  .learn-archive { flex-direction: column; }
  .learn-archive__actions { margin-left: -12px; }
  .learn__go .btn { white-space: normal; text-align: left; }
}

/* Settings: who draws the layouts (025) */
.designers { border: 0; margin: 4px 0 18px; padding: 0; display: grid; gap: 8px; }
.designers legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.designers p { margin: 0 0 4px; }
.designer { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer; }
.designer input { margin-top: 3px; }
.designer > span { display: grid; gap: 2px; }
.designer:has(input:checked) { border-color: var(--gold); background: var(--surface-2); }

/* Brand book: how Claude draws (025) */
.look__intro { margin: 0 0 14px; }
.look__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.look__card h3 { margin: 0 0 12px; font-size: 15px; }
.look__grid > .card { margin-top: 0; }  /* the grid spaces them: no stacked cards' gap */
.look-logo { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.look-logo:first-of-type { border-top: 0; padding-top: 0; }
.look-logo__pic { width: 100%; height: 84px; border-radius: var(--radius-sm); display: grid; place-items: center;
  border: 1px solid var(--line); overflow: hidden; }
.look-logo__pic--light { background: #ffffff; color: var(--muted); }
.look-logo__pic--dark { background: var(--navy-3); color: rgba(255, 255, 255, .7); }
.look-logo__pic img { max-width: 80%; max-height: 64px; object-fit: contain; }
.look-logo__text { display: grid; gap: 8px; min-width: 0; }
.look-logo__form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.look-logo__form input[type=file] { width: 100%; min-width: 0; font-size: 12px; }
.look-logo__text form.inline { justify-self: start; }
.look-fonts { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; font-size: 22px; line-height: 1.25; }
.look-colours { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; }
.look-colour { display: inline-flex; align-items: center; gap: 6px; }
.look-refs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.look-refs a { display: block; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--line); }
.look-refs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.look-refs__label { margin: 10px 0 6px; }
@media (max-width: 1100px) { .look__grid { grid-template-columns: 1fr 1fr; } .look__card--refs { grid-column: 1 / -1; } }
@media (max-width: 720px) { .look__grid { grid-template-columns: 1fr; } }
/* The media library (027): the company's own files, by kind */
.look-lib { margin-top: 16px; }
.look-lib__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.look-lib__head h3 { margin: 0; font-size: 15px; }
.look-lib__add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.look-lib__add input[type=file] { max-width: 100%; min-width: 0; font-size: 12px; }
.look-lib__intro { margin: 8px 0 4px; }
.look-lib__kind { margin: 16px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.look-lib__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.lib-item { display: grid; gap: 6px; align-content: start; min-width: 0; }
.lib-item__pic { display: grid; place-items: center; height: 110px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: #ffffff; }
.lib-item__pic--dark { background: var(--navy-3); }
.lib-item__pic--check { background-color: #ffffff; background-image:
  linear-gradient(45deg, #ece8df 25%, transparent 25%), linear-gradient(-45deg, #ece8df 25%, transparent 25%),
  linear-gradient(45deg, transparent 75%, #ece8df 75%), linear-gradient(-45deg, transparent 75%, #ece8df 75%);
  background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
.lib-item__pic img { max-width: 92%; max-height: 96px; object-fit: contain; display: block; }
.lib-item__pic--none img { max-width: 100%; max-height: 110px; width: 100%; height: 110px; object-fit: cover; }
.lib-item__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-item__tools { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.lib-item__tools select { font-size: 12px; padding: 4px 6px; max-width: 100%; }
.lib-item__tools .btn--sm { padding: 4px 8px; font-size: 12px; }
.look-lib__fonts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lib-font { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.lib-font__name { font-size: 24px; line-height: 1.2; }
.lib-font form.inline { justify-self: start; margin-top: 4px; }
@media (max-width: 720px) { .look-lib__grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }
.drawn-by { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted);
  margin-left: 6px; }

/* Comments on each element under review (026) */
.gallery__cell { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.strip__cell { display: flex; flex-direction: column; gap: 6px; flex: none; width: 120px; }
.comment-tools { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 6px; }
.comment-btn { gap: 6px; padding-left: 8px; padding-right: 10px; }
.comment-btn .icon { width: 15px; height: 15px; }
.comment-btn__count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: var(--navy);
  font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.strip__cell .comment-btn span:not(.comment-btn__count) { display: none; }
.comment-note { position: relative; width: 100%; background: var(--warn-bg); border: 1px solid #f0dfb2; border-radius: 8px;
  padding: 7px 26px 7px 10px; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.comment-note__by { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.comment-note__remove { position: absolute; top: 3px; right: 4px; border: 0; background: none; font-size: 16px; line-height: 1;
  color: var(--muted); cursor: pointer; padding: 2px 5px; }
.comment-note__remove:hover { color: var(--bad); }
.comments-panel { border-color: #f0dfb2; background: #fffaf0; }
.comments-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.comments-panel__head h2 { margin: 0; font-size: 17px; }
.comments-panel__list { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.revise-comments { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px;
  margin-bottom: 12px; }
.revise-comments ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }

/* Claude's memory of a company (028) */
.memory-add { margin-bottom: 16px; }
.memory-add label.field { margin-bottom: 8px; }
.memory-add textarea { min-height: 64px; }
.memory-add__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.memory-add__foot .help { margin: 0; flex: 1 1 260px; }
.memory-filter { margin-bottom: 16px; }
.memory-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.memory-entry { display: grid; gap: 6px; overflow-wrap: anywhere; }
.memory-entry__head { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; font-size: 13px; }
.memory-entry__on { color: var(--ink-2); min-width: 0; }
.memory-entry__by { color: var(--muted); margin-left: auto; }
.memory-entry__q { margin: 0; color: var(--muted); font-size: 13.5px; }
.memory-entry__text { margin: 0; font-weight: 550; white-space: pre-line; }
.memory-entry--old { opacity: .72; }
.memory-entry__old { margin: 0; }
.memory-entry__actions { display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; margin-left: -12px; }
.memory-edit > summary { list-style: none; cursor: pointer; }
.memory-edit > summary::-webkit-details-marker { display: none; }
.memory-edit[open] { flex: 1 1 100%; }
.memory-edit form { display: grid; gap: 8px; margin: 6px 0 4px 12px; }
.memory-edit textarea { min-height: 64px; }
.memory-edit form .btn { justify-self: start; }
.memory-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.memory-link p { margin: 0; }
.questions__remembered { margin: 10px 0 0; }
@media (max-width: 720px) { .memory-entry__by { margin-left: 0; flex-basis: 100%; } }
.card.memory-link { margin-bottom: 22px; }
.memory-link p { flex: 1 1 360px; }
