/* Retina Creative brand tokens (Brand Quick Guide v1, 2025).
   Anton and Archivo stand in for Liquorstore and Neue Haas Grotesk. */
:root {
  --cream: #FFFEF7;
  --slate: #222222;
  --lemon: #F3FF6B;
  --moss: #9BAC98;
  --moss-ink: #56634F;     /* moss dark enough to read as text on cream */
  --paper: #F3F4EC;        /* column ground, a cream pushed toward moss */
  --line: rgba(34, 34, 34, 0.14);
  --line-strong: rgba(34, 34, 34, 0.28);
  --muted: #6A6A64;

  /* Roles. Light is the default; Darkroom swaps these below. */
  --ground: var(--cream);      /* page and panel */
  --ink: var(--slate);         /* text, rules, outlines */
  --surface: #FFFFFF;          /* inputs, cards, comments */
  --band: var(--slate);        /* header and footer */
  --invert: var(--slate);      /* solid buttons, selected pills, toast */
  --invert-ink: var(--cream);
  --invert-hover: #000000;
  --quiet: #E4E4DE;            /* cancelled */
  --quiet-ink: #5C5C57;
  --danger: #9A1C1C;

  --display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --text: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 15px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.band :focus-visible { outline-color: var(--lemon); }

/* ---------- Header band ---------- */
.band { background: var(--band); color: var(--cream); }
.band--stripe { border-bottom: 10px solid var(--moss); }   /* Moss Green break between header and page */
.band__inner { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) clamp(36px, 5vw, 56px); }
.band__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: block; height: 22px; width: auto; }
.who { font-size: 13px; color: rgba(255, 254, 247, 0.65); }

.client {
  font: 400 clamp(48px, 9vw, 112px)/0.95 var(--display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: clamp(32px, 6vw, 64px) 0 14px;
  overflow-wrap: anywhere;
}

/* Laser Lemon accent bar above a client's name on their portal, matching the share image.
   Sized in em so it scales with the title. */
.client--accent::before {
  content: ''; display: block; width: 0.64em; height: 0.08em; min-height: 6px;
  margin-bottom: 0.26em; background: var(--lemon);
}

.subhead { margin: 0; font-size: clamp(16px, 2vw, 20px); font-weight: 500; color: var(--moss); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
}
a.btn { text-decoration: none; color: var(--ink); }
a.btn.btn--add, a.btn.btn--lemon { color: var(--slate); }
.btn--lemon { background: var(--lemon); color: var(--slate); }
.btn--add { border-radius: 4px; background: var(--lemon); color: var(--slate); padding: 0 20px; min-height: 44px; }
.btn--add:hover { background: #E9F55A; }
.btn--lemon:hover { background: #E9F55A; }
.btn--slate { background: var(--invert); color: var(--invert-ink); }
.btn--slate:hover { background: var(--invert-hover); }
.btn--ghost { background: transparent; border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  background: transparent; border: 0; cursor: pointer;
}
.icon-btn:hover { background: var(--paper); }

/* ---------- Task table ---------- */
.content { max-width: var(--max); margin: 0 auto; padding: clamp(28px, 4vw, 44px) var(--gutter) 96px; }

.toolbar { margin-bottom: 24px; }
.filterbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.archive-title { display: flex; align-items: baseline; gap: 10px; margin: 0; font: 400 28px/1 var(--display); letter-spacing: 0.01em; text-transform: uppercase; }
.archive-title .filter__n { font: 500 14px/1 var(--text); }
.text-link {
  padding: 4px 0; border: 0; background: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--moss); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.text-link:hover { text-decoration-color: var(--ink); }
.filter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  font-size: 13.5px; font-weight: 500; cursor: pointer;
}
.filter:hover { border-color: var(--ink); }
.filter__n { color: var(--muted); font-variant-numeric: tabular-nums; }
.filter.is-on { background: var(--invert); border-color: var(--invert); color: var(--invert-ink); }
.filter.is-on .filter__n { color: var(--lemon); }

.tasks { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tasks[hidden] { display: none; }
.c-task { width: 25%; }
.c-status { width: 150px; }
.c-by { width: 170px; }
.c-date { width: 130px; }

.tasks th {
  text-align: left; font-size: 12.5px; font-weight: 500; color: var(--muted);
  padding: 0 12px 12px; border-bottom: 1px solid var(--ink); white-space: nowrap;
}
.tasks th:first-child, .tasks td:first-child { padding-left: 0; }
.tasks th:last-child, .tasks td:last-child { padding-right: 0; }
.sort {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; cursor: pointer;
}
.sort:hover { color: var(--ink); }
.sort-icon path { fill: currentColor; opacity: 0.3; }
.sort.is-asc, .sort.is-desc { color: var(--ink); font-weight: 600; }
.sort.is-asc .up, .sort.is-desc .down { opacity: 1; }

.tasks td { padding: 18px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14.5px; }
.tasks tbody tr { cursor: pointer; }
.tasks tbody tr:hover td { background: rgba(155, 172, 152, 0.12); }

.task-link {
  display: block; padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
  font-weight: 600; font-size: 15px; line-height: 1.4; color: var(--ink);
}
.task-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.task-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.comments-n { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }

.td-status { padding-top: 16px !important; }
.td-desc .clamp {
  margin: 0; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.td-desc .none { color: var(--muted); opacity: 0.6; }
.td-by, .td-date { color: var(--muted); }
.td-date time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.is-cancelled .task-link { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }

.chip {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.chip--new { background: var(--lemon); color: var(--slate); }
.chip--in-progress { background: var(--moss); color: var(--slate); }
.chip--on-hold { background: var(--invert); color: var(--invert-ink); }
.chip--cancelled { background: var(--quiet); color: var(--quiet-ink); }
.chip--archived { background: transparent; color: var(--moss-ink); box-shadow: inset 0 0 0 1px var(--moss-ink); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 4px;
  border: 1px solid var(--moss-ink); color: var(--moss-ink); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--moss-ink); }

.table-empty { padding: 40px 0; border-top: 1px solid var(--ink); color: var(--muted); }
.table-empty button { background: none; border: 0; padding: 0; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.load-error { background: var(--lemon); color: var(--slate); border-radius: 8px; padding: 14px 16px; font-weight: 500; margin: 0 0 20px; }

/* Phones: each row becomes a stacked block with the same information. */
@media (max-width: 760px) {
  .tasks, .tasks tbody { display: block; }
  .tasks colgroup, .tasks thead { display: none; }
  .tasks tbody { border-top: 1px solid var(--ink); }
  .tasks tr {
    display: grid; grid-template-columns: 1fr auto; column-gap: 16px;
    grid-template-areas: "task status" "desc desc" "by date";
    padding: 18px 0; border-bottom: 1px solid var(--line);
  }
  .tasks td { display: block; padding: 0 !important; border: 0; }
  .tasks tbody tr:hover td { background: none; }
  .td-task { grid-area: task; }
  .td-status { grid-area: status; justify-self: end; }
  .td-desc { grid-area: desc; margin-top: 8px; }
  .td-desc .none { display: none; }
  .td-by { grid-area: by; margin-top: 10px; font-size: 13px; }
  .td-date { grid-area: date; margin-top: 10px; font-size: 13px; text-align: right; }
}

/* Status dots (used in the panel's status picker) */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.dot--new { background: var(--lemon); box-shadow: inset 0 0 0 1px rgba(34, 34, 34, 0.25); }
.dot--in-progress { background: var(--moss); }
.dot--on-hold { background: var(--invert); }
.dot--cancelled { background: #CFCFC8; }
.dot--archived { background: transparent; box-shadow: inset 0 0 0 1.5px var(--moss-ink); }

/* ---------- Project (Bonsai) strip in the panel ---------- */
.project {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--paper); border-radius: 10px; padding: 16px 18px; margin-bottom: 28px;
}
.project[hidden] { display: none; }
.project .form-actions, .project .form-error { width: 100%; }
.project .form-error { margin: 0; }
.project__note { margin: 0; font-size: 14px; flex: 1 1 220px; }
.project--started .project__note { margin-top: 8px; color: var(--muted); }

/* ---------- Side panel ---------- */
.panel {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(520px, 100vw); max-width: 100vw;
  border: 0; padding: 0; background: var(--ground); color: var(--ink);
  display: none; flex-direction: column;
}
.panel[open] { display: flex; animation: slide-in 0.22s ease-out; }
.panel::backdrop { background: rgba(34, 34, 34, 0.45); }
@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .panel[open] { animation: none; } }

.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px 28px; border-bottom: 1px solid var(--line); }
.panel__title { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.panel__body { overflow-y: auto; padding: 24px 28px 40px; flex: 1; }

.field { display: block; margin-bottom: 20px; }
.field__label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field__hint { font-weight: 400; color: var(--muted); }
.input, .textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(243, 255, 107, 0.9); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.input--title { font: 400 28px/1.15 var(--display); letter-spacing: 0.01em; text-transform: uppercase; padding: 10px 12px; }

.status-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; border: 0; padding: 0; margin: 0 0 24px; }
.status-picker legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.status-opt { position: relative; }
.status-opt input { position: absolute; opacity: 0; inset: 0; }
.status-opt > span {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; background: var(--surface);
}
.status-opt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.status-opt input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.status-opt input:checked + span.s--new,
.status-opt input:checked + span.s--in-progress { color: var(--slate); }
.status-opt input:checked + span.s--new { background: var(--lemon); }
.status-opt input:checked + span.s--in-progress { background: var(--moss); }
.status-opt input:checked + span.s--on-hold { background: var(--invert); color: var(--invert-ink); }
.status-opt input:checked + span.s--on-hold .dot { background: var(--invert-ink); }
.status-opt input:checked + span.s--cancelled { background: var(--quiet); }
.status-opt input:checked + span.s--archived { background: var(--paper); }
.status-opt:last-child { grid-column: 1 / -1; }

.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.byline { font-size: 13px; color: var(--muted); margin: 0 0 24px; }

.comments { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 24px; }
.comments h3 { margin: 0 0 16px; font-size: 15px; font-weight: 700; }
.thread { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.comment { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.comment--retina { background: var(--paper); border-color: rgba(155, 172, 152, 0.7); }
.comment__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.comment__author { font-weight: 600; color: var(--ink); }
.tag { background: var(--band); color: var(--lemon); border-radius: 4px; padding: 1px 6px; font-size: 11.5px; font-weight: 600; }
.comment__body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.thread-empty { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.comment-form .textarea { min-height: 84px; margin-bottom: 10px; }
.form-error { color: var(--danger); font-size: 13.5px; font-weight: 500; margin: -8px 0 14px; }

/* Until a page knows who's signed in, hide anything that might be wrong (titles, lists). */
.is-loading .client, .is-loading .subhead, .is-loading .content, .is-loading .band__meta { visibility: hidden; }

/* ---------- Header links ---------- */
.band__meta { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; }
.band__link { color: rgba(255, 254, 247, 0.75); font-size: 13px; text-decoration: none; }
.band__link:hover { color: var(--lemon); }
.band__link[hidden] { display: none; }

/* ---------- Clients page ---------- */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.client-card {
  position: relative; display: flex; flex-direction: column; min-height: 200px;
  padding: 24px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface);
}
.client-card:hover { border-color: var(--ink); }
.client-card__name { margin: 0; font: 400 30px/1.05 var(--display); letter-spacing: 0.01em; text-transform: uppercase; }
.client-card__name a { color: var(--ink); text-decoration: none; }
.client-card__name a::after { content: ''; position: absolute; inset: 0; border-radius: 4px; }   /* whole card opens the portal */
.client-card__name a:focus-visible { outline: none; }
.client-card__name a:focus-visible::after { outline: 3px solid var(--ink); outline-offset: 2px; }
.client-card__addr { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.client-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 28px; }
.client-card__stats { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; font-size: 14px; }
.client-card__manage { position: relative; z-index: 1; }
.client-card--add {
  align-items: center; justify-content: center; cursor: pointer;
  background: transparent; border: 1.5px dashed var(--line-strong); font: 600 15px/1 var(--text); color: var(--ink);
}
.client-card--add:hover { border-color: var(--slate); background: var(--lemon); color: var(--slate); border-style: solid; }

.input-prefix { display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.input-prefix:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(243, 255, 107, 0.9); }
.input-prefix__fixed { display: flex; align-items: center; padding: 0 2px 0 12px; color: var(--muted); white-space: nowrap; }
.input-prefix input { flex: 1; min-width: 0; border: 0; padding: 10px 12px 10px 0; background: transparent; }
.input-prefix input:focus { outline: none; }
.field__help { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.field__help--lead { margin: -8px 0 16px; font-size: 13.5px; }
.textarea--short { min-height: 96px; }

.address { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--paper); border-radius: 10px; padding: 14px 18px; margin-bottom: 24px; }
.address .field__label { margin-bottom: 2px; }
.address__url { margin: 0; font-weight: 600; }

.members { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--line); }
.member { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.member__email { overflow-wrap: anywhere; }
.member-add__row { display: flex; gap: 8px; margin-top: 6px; }
.member-add__row .input { flex: 1; }
.member-add .form-error { margin: 10px 0 0; }
.text-link--quiet { font-weight: 500; font-size: 13px; color: var(--muted); text-decoration-thickness: 1px; }
.text-link--quiet:hover { color: var(--ink); }

/* No access / not found */
.message { max-width: 560px; font-size: 16px; line-height: 1.6; }
.message p { margin: 0 0 16px; }
.message a:not(.btn) { color: var(--ink); }
.message .btn { margin-top: 12px; text-decoration: none; }

/* ---------- Footer ---------- */
body { min-height: 100dvh; display: flex; flex-direction: column; }
.content { flex: 1; width: 100%; }
.foot { background: var(--band); color: var(--cream); }
.foot__inner {
  max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 32px;
  display: grid; grid-template-columns: 1fr auto; gap: 20px 32px; align-items: baseline;
}
.foot__name { margin: 0; font-weight: 700; font-size: 15px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot__links a { color: var(--cream); font-size: 14px; text-decoration: none; border-bottom: 1px solid rgba(255, 254, 247, 0.3); padding-bottom: 2px; }
.foot__links a:hover { color: var(--lemon); border-bottom-color: var(--lemon); }
.foot__legal { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 20px; border-top: 1px solid rgba(155, 172, 152, 0.35); font-size: 12.5px; color: rgba(255, 254, 247, 0.55); }
.foot :focus-visible { outline-color: var(--lemon); }
@media (max-width: 560px) { .foot__inner { grid-template-columns: 1fr; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--invert); color: var(--invert-ink); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: opacity 0.2s, transform 0.2s; z-index: 10;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
  .who { display: none; }
  .client-card__name { font-size: 26px; }
  .client-card { min-height: 0; padding: 20px; }
  .client-card__foot { padding-top: 20px; }
  .client-card--add { min-height: 96px; }
  .logo { height: 18px; }
  .panel__body { padding: 20px 18px 32px; }
  .panel__head { padding-left: 18px; }
}


/* ---------- Portal tabs (in the header band) ---------- */
.band__inner:has(.tabs) { padding-bottom: 0; }
.tabs { display: flex; gap: 4px 32px; flex-wrap: wrap; margin-top: clamp(24px, 4vw, 40px); }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 0 14px; border-bottom: 4px solid transparent;
  color: rgba(255, 254, 247, 0.7); font-weight: 600; font-size: 15px; text-decoration: none;
}
.tab:hover { color: var(--cream); }
.tab.is-on { color: var(--cream); border-bottom-color: var(--lemon); }
.tab__n { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--lemon); color: var(--slate); font-size: 12px; display: inline-grid; place-items: center; }
.tab__n[hidden] { display: none; }
.stat--ready { font-weight: 600; text-decoration: underline; text-decoration-color: var(--lemon); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.setup-note { background: var(--paper); border-left: 4px solid var(--moss); border-radius: 4px; padding: 12px 16px; margin-bottom: 24px; font-size: 14px; }
.setup-note p { margin: 4px 0; }
[hidden] { display: none !important; }

/* ---------- Social post grid ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px 20px; }
.post-card {
  display: flex; flex-direction: column; padding: 0; text-align: left; cursor: pointer; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); color: var(--ink);
}
.post-card:hover { border-color: var(--ink); }
.post-card--draft .post-card__media { opacity: 0.7; }
.post-card__media { position: relative; aspect-ratio: 4 / 5; background: var(--paper); overflow: hidden; }
.post-card__media img, .post-card__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__nomedia { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.post-card__kind, .post-card__platforms { position: absolute; top: 10px; display: flex; gap: 4px; }
.post-card__kind { left: 10px; background: rgba(18, 17, 16, 0.78); color: #FFFEF7; border-radius: 4px; padding: 3px 8px; font-size: 12px; font-weight: 600; }
.post-card__platforms { right: 10px; }
.plat { background: rgba(255, 254, 247, 0.92); color: #222; border-radius: 4px; padding: 3px 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.post-card__body { padding: 14px 14px 16px; display: grid; gap: 10px; }
.post-card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.post-card__date { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.post-card__caption { margin: 0; font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__caption .none { color: var(--muted); }
@media (max-width: 560px) { .post-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; } .post-card__body { padding: 10px; } }

/* ---------- Post panel ---------- */
.panel--wide { width: min(760px, 100vw); }
.btn--big { min-height: 50px; padding: 0 30px; font-size: 16px; }
.btn--sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.post-status { align-items: flex-start; }
.post-status .project__note strong { font-weight: 700; }
.post-status--review { background: var(--lemon); color: var(--slate); }
.post-status--review .btn--ghost { border-color: rgba(34, 34, 34, 0.35); color: var(--slate); }
.post-status--review .btn--lemon { background: var(--slate); color: #FFFEF7; }
.post-status--approved { background: rgba(155, 172, 152, 0.22); }
.post-status .form-actions { width: 100%; flex-wrap: wrap; }
.post-status .form-error { width: 100%; margin: 0; }
.post-status__error { padding: 10px 12px; background: var(--surface); border-radius: 6px; }

.schedule { width: 100%; display: grid; gap: 12px; }
.schedule__modes { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.schedule__modes legend { margin-bottom: 8px; }
.schedule__due { margin: 0; max-width: 280px; }
.radio, .check { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
.check { display: flex; margin: -6px 0 20px; }
.schedule .check { margin: 0; }
.radio input, .check input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; flex: none; }

/* Instagram-style preview */
.preview { margin-bottom: 28px; border-radius: 12px; }
.preview.is-drop { outline: 3px dashed var(--moss); outline-offset: 6px; }
.ig { max-width: 480px; margin: 0 auto; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: var(--surface); }
.ig__head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.ig__avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--slate); color: var(--lemon); font: 400 14px/1 var(--display); flex: none; }
.ig__name { font-weight: 600; font-size: 14px; }
.ig__avatar--logo { object-fit: cover; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line); }
.logo-section { margin-bottom: 24px; }
.logo-field { display: flex; align-items: center; gap: 18px; }
.logo-field__img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #FFFFFF; border: 1px solid var(--line-strong); flex: none; }
.logo-field__img--empty { display: grid; place-items: center; background: var(--paper); color: var(--muted); font-weight: 600; }
.logo-field__text { display: grid; gap: 4px; }
.logo-field .form-actions { margin-top: 6px; }
.ig__kind { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.ig__media { position: relative; aspect-ratio: 4 / 5; background: #121110; display: grid; place-items: center; user-select: none; }
.ig__media.is-tall { aspect-ratio: 9 / 16; }
.ig__media > img, .ig__media > video { width: 100%; height: 100%; object-fit: contain; display: block; }
.ig__media.is-tagging { cursor: crosshair; }
.ig__media.is-tagging > img { outline: 2px solid var(--lemon); outline-offset: -2px; }
.ig__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: rgba(255, 254, 247, 0.9); color: #222; font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.ig__nav:disabled { opacity: 0; pointer-events: none; }
.ig__nav--prev { left: 10px; }
.ig__nav--next { right: 10px; }
.ig__dots { display: flex; justify-content: center; gap: 5px; padding: 10px 0; }
.ig__dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.ig__dots span.is-on { background: var(--ink); }
.dropzone {
  width: calc(100% - 32px); height: calc(100% - 32px); display: grid; place-content: center; gap: 6px; text-align: center;
  border: 2px dashed rgba(255, 254, 247, 0.35); border-radius: 10px; background: none; color: #FFFEF7; cursor: pointer; padding: 20px; margin: 0;
}
button.dropzone:hover { border-color: var(--lemon); }
.dropzone strong { font-size: 16px; }
.dropzone span { font-size: 13px; opacity: 0.75; }

.ptag {
  position: absolute; transform: translate(-50%, 10px); display: inline-flex; align-items: center; gap: 4px;
  background: rgba(18, 17, 16, 0.85); color: #FFFEF7; border-radius: 6px; padding: 4px 8px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.ptag::before { content: ''; position: absolute; left: 50%; top: -5px; transform: translateX(-50%); border: 5px solid transparent; border-top: 0; border-bottom-color: rgba(18, 17, 16, 0.85); }
.ptag__x { border: 0; background: none; color: inherit; font-size: 15px; line-height: 1; padding: 0 0 0 2px; cursor: pointer; opacity: 0.8; }
.ptag__x:hover { opacity: 1; color: var(--lemon); }
.ptag-new {
  position: absolute; transform: translate(-50%, 10px); display: flex; gap: 6px; padding: 6px; width: 230px; z-index: 2;
  background: var(--surface); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.ptag-new .input { padding: 6px 10px; min-width: 0; }
.ptag-new .btn { min-height: 36px; padding: 0 14px; }

.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.thumb { display: grid; gap: 4px; width: 72px; }
.thumb__pick { position: relative; display: block; width: 72px; height: 90px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--paper); }
.thumb.is-on .thumb__pick { border-color: var(--ink); }
.thumb__pick img, .thumb__pick video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.thumb__badge { position: absolute; left: 4px; bottom: 4px; background: rgba(18, 17, 16, 0.8); color: #FFFEF7; font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 3px; }
.thumb__tools { display: flex; justify-content: space-between; }
.thumb__tools button { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; }
.thumb__tools button:hover:not(:disabled) { background: var(--paper); color: var(--ink); }
.thumb__tools button:disabled { opacity: 0.25; cursor: default; }
.thumb--add { width: 72px; height: 90px; border: 1.5px dashed var(--line-strong); border-radius: 6px; background: none; font-size: 26px; color: var(--muted); cursor: pointer; }
.thumb--add:hover { border-color: var(--ink); color: var(--ink); }

.media-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }
.media-tools .alt { width: 100%; margin: 4px 0 0; }
.media-tools .note { width: 100%; margin: 0; padding: 10px 12px; border-radius: 6px; background: var(--paper); font-size: 13.5px; }
.upload-progress { margin: 12px 0 0; font-size: 13.5px; font-weight: 600; }

.post-settings { display: grid; gap: 18px; padding: 20px 0 6px; margin-bottom: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-settings .field { margin-bottom: 14px; max-width: 300px; }
.format { display: grid; gap: 4px; }
.format .field__label { margin: 0; }
.format__value { margin: 0 0 8px; font-size: 14px; }
.format .check { margin: 0; }
.seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { width: 100%; padding: 0; margin-bottom: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13.5px; font-weight: 600; background: var(--surface); }
.seg span em { font-style: normal; font-weight: 400; color: var(--muted); }
.seg input:checked + span { background: var(--invert); border-color: var(--invert); color: var(--invert-ink); }
.seg input:checked + span em { color: inherit; opacity: 0.7; }
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.seg:disabled span { opacity: 0.6; }

.field__label--row { display: flex; align-items: baseline; gap: 12px; }
.counter { margin-left: auto; font-weight: 500; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter.is-over { color: var(--danger); font-weight: 700; }
.textarea--caption { min-height: 180px; }
.textarea[readonly] { background: var(--paper); }
.post-text .form-actions { flex-wrap: wrap; }

/* Activity: history lines and comments */
.event { display: flex; gap: 10px; font-size: 13.5px; color: var(--muted); padding: 2px 2px; }
.event p { margin: 0; }
.event strong { color: var(--ink); font-weight: 600; }
.event__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--moss); margin-top: 7px; flex: none; }
.event--approve .event__dot { background: var(--moss-ink); }
.event--schedule .event__dot { background: var(--ink); }
.event--reopen .event__dot { background: var(--lemon); box-shadow: inset 0 0 0 1px rgba(34, 34, 34, 0.4); }
.event__time { white-space: nowrap; }
.diff { margin-top: 6px; }
.diff summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 13px; text-decoration: underline; text-decoration-color: var(--moss); text-underline-offset: 3px; }
.diff__row { display: grid; gap: 4px; margin-top: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); }
.diff__field { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.diff del, .diff ins { white-space: pre-wrap; overflow-wrap: anywhere; text-decoration: none; }
.diff del { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.diff ins { background: rgba(243, 255, 107, 0.45); border-radius: 3px; padding: 0 2px; }


/* ---------- Seasonal themes ----------
   The switch in the lower left (theme.js) turns on the current season's theme.
   To add a season: copy the pumpkin block, rename it, change the colors,
   then point SEASON in theme.js at the new name. */

/* Shared: a short fade while the theme changes, never on page load. */
.theme-fade, .theme-fade *, .theme-fade *::before, .theme-fade *::after {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease !important;
}
@media (prefers-reduced-motion: reduce) {
  .theme-fade, .theme-fade *, .theme-fade *::before, .theme-fade *::after { transition: none !important; }
}

/* Season switch, fixed lower left. Its colors come from --season. */
.season {
  position: fixed; left: 16px; bottom: 16px; z-index: 9;
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 38px; padding: 0 16px 0 12px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: var(--ground); color: var(--ink);
  font: 600 12px/1 var(--text); letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; box-shadow: 3px 3px 0 var(--season, var(--ink));
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.season:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--season, var(--ink)); }
.season:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--season, var(--ink)); }
.season__dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--season, var(--ink)); }
@media (max-width: 560px) { .season { left: 12px; bottom: 12px; } }
@media print { .season { display: none; } }

/* ---------- Pumpkin (fall 2026) ----------
   Orange, black and cream with solid drop shadows. */
:root[data-theme="pumpkin"] {
  color-scheme: dark;
  --pumpkin: #FF6B1A;
  --pitch: #121110;
  --ground: var(--pitch);
  --ink: var(--cream);
  --surface: #1D1A17;
  --paper: #251C14;
  --band: var(--pumpkin);
  --lemon: var(--pumpkin);          /* every Laser Lemon accent turns orange */
  --moss: #FFC08A;                  /* in progress: a lighter pumpkin */
  --moss-ink: #FFA35E;
  --invert: var(--cream);
  --invert-ink: var(--pitch);
  --invert-hover: #FFFFFF;
  --line: rgba(255, 254, 247, 0.14);
  --line-strong: rgba(255, 254, 247, 0.3);
  --muted: #B8AE9F;
  --quiet: #2E2924;
  --quiet-ink: #BDB2A4;
  --danger: #FF8E85;
  --season: var(--cream);
  --drop: var(--pumpkin);           /* solid shadow color */
}
:root:not([data-theme]) .season { --season: #FF6B1A; }

/* Orange header with black type; black footer with an orange edge. */
[data-theme="pumpkin"] .band { color: var(--pitch); }
[data-theme="pumpkin"] .band--stripe { border-bottom-color: var(--pitch); }
[data-theme="pumpkin"] .logo { filter: brightness(0); }
[data-theme="pumpkin"] .who, [data-theme="pumpkin"] .band__link { color: rgba(18, 17, 16, 0.75); }
[data-theme="pumpkin"] .band__link:hover { color: var(--pitch); text-decoration: underline; }
[data-theme="pumpkin"] .subhead { color: var(--pitch); }
[data-theme="pumpkin"] .client--accent::before { background: var(--pitch); }
[data-theme="pumpkin"] .band :focus-visible { outline-color: var(--pitch); }
[data-theme="pumpkin"] .foot { background: var(--pitch); border-top: 6px solid var(--pumpkin); }
[data-theme="pumpkin"] .foot__links a:hover { color: var(--pumpkin); border-bottom-color: var(--pumpkin); }
[data-theme="pumpkin"] .tag { background: var(--pitch); color: var(--pumpkin); }

/* Solid drop shadows. */
[data-theme="pumpkin"] .btn,
[data-theme="pumpkin"] .client-card,
[data-theme="pumpkin"] .comment,
[data-theme="pumpkin"] .project,
[data-theme="pumpkin"] .address,
[data-theme="pumpkin"] .load-error,
[data-theme="pumpkin"] .toast { box-shadow: 4px 4px 0 var(--drop); }
[data-theme="pumpkin"] .btn--add, [data-theme="pumpkin"] .btn--lemon { box-shadow: 4px 4px 0 var(--cream); }
[data-theme="pumpkin"] .btn { transition: transform 0.12s ease, box-shadow 0.12s ease; }
[data-theme="pumpkin"] .btn:not(:disabled):hover { transform: translate(-1px, -1px); }
[data-theme="pumpkin"] .btn:not(:disabled):active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--drop); }
[data-theme="pumpkin"] .btn--add:hover, [data-theme="pumpkin"] .btn--lemon:hover { background: #FF8236; }
[data-theme="pumpkin"] .client-card { border: 1.5px solid var(--cream); }
[data-theme="pumpkin"] .client-card:hover { box-shadow: 6px 6px 0 var(--drop); }
[data-theme="pumpkin"] .client-card--add { border-style: dashed; box-shadow: none; }
[data-theme="pumpkin"] .client-card--add:hover { border-style: solid; box-shadow: 4px 4px 0 var(--cream); }
[data-theme="pumpkin"] .filter.is-on { box-shadow: 3px 3px 0 var(--drop); }
[data-theme="pumpkin"] .filter.is-on .filter__n { color: var(--pumpkin); }
[data-theme="pumpkin"] .status-opt input:checked + span { box-shadow: 3px 3px 0 var(--drop); }
[data-theme="pumpkin"] .panel { border-left: 6px solid var(--pumpkin); }
[data-theme="pumpkin"] .panel::backdrop { background: rgba(0, 0, 0, 0.65); }
[data-theme="pumpkin"] .tasks th { border-bottom: 2px solid var(--pumpkin); }
[data-theme="pumpkin"] .tasks tbody tr:hover td { background: rgba(255, 107, 26, 0.08); }
[data-theme="pumpkin"] .input:focus, [data-theme="pumpkin"] .textarea:focus,
[data-theme="pumpkin"] .input-prefix:focus-within { border-color: var(--pumpkin); box-shadow: 3px 3px 0 var(--pumpkin); }

/* Social posts in pumpkin */
[data-theme="pumpkin"] .tab.is-on { color: var(--pitch); border-bottom-color: var(--pitch); }
[data-theme="pumpkin"] .tab { color: rgba(18, 17, 16, 0.7); }
[data-theme="pumpkin"] .tab:hover { color: var(--pitch); }
[data-theme="pumpkin"] .tab__n { background: var(--pitch); color: var(--pumpkin); }
[data-theme="pumpkin"] .post-card { border: 1.5px solid var(--cream); box-shadow: 4px 4px 0 var(--drop); }
[data-theme="pumpkin"] .post-card:hover { box-shadow: 6px 6px 0 var(--drop); }
[data-theme="pumpkin"] .ig { border-color: var(--cream); box-shadow: 4px 4px 0 var(--drop); }
[data-theme="pumpkin"] .post-status--review { background: var(--pumpkin); color: var(--pitch); }
[data-theme="pumpkin"] .post-status--review .btn--lemon { background: var(--pitch); color: var(--cream); box-shadow: 4px 4px 0 var(--cream); }
[data-theme="pumpkin"] .diff ins { background: rgba(255, 107, 26, 0.35); }


/* =====================================================================
   Client portal app shell (portal.html, body.app)
   Dark sidebar, soft page, white cards. Laser Lemon marks "your turn".
   On phones the sidebar becomes a top bar plus a bottom tab bar.
   ===================================================================== */
body.app { display: block; min-height: 100dvh; background: #F5F5F0; color: #222222; font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; --paper: #F5F5F0; --ground: #FFFFFF; --muted: #5F5F58; }
.app svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.app .icon-btn svg, .app .sort-icon { stroke: none; }
.app .icon-btn svg path { stroke: currentColor; }
.app .sort-icon path { fill: currentColor; }
.shell { display: flex; min-height: 100dvh; }

/* Sidebar */
.side { position: sticky; top: 0; height: 100dvh; flex: 0 0 248px; box-sizing: border-box; overflow-y: auto; background: #1C1C1B; color: #EDEDE6; padding: 28px 16px 20px; display: flex; flex-direction: column; gap: 24px; }
.side__brand { display: flex; flex-direction: column; gap: 10px; padding: 0 12px; }
.side__brand img { width: 96px; height: auto; display: block; }
.side__label, .topbar__label { font-size: 11px; line-height: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: #A3A39A; }
.side__client { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: #272725; }
.side__client-text, .side__user-text, .topbar__text { display: flex; flex-direction: column; min-width: 0; }
.side__client-name { font-weight: 600; color: #FFFFFF; }
.side__client-addr { font-size: 12px; line-height: 16px; color: #A3A39A; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: #3A3A37; color: #FFFFFF; font-weight: 700; font-size: 13px; }
.avatar--logo { background: #FFFFFF; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar--user { width: 36px; height: 36px; }
.avatar--retina { width: 36px; height: 36px; background: #222222; color: #F3FF6B; }
.side__nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.navlink { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 10px; color: #EDEDE6; text-decoration: none; }
.navlink:hover { background: #2A2A28; }
.navlink.is-on { background: #F3FF6B; color: #1C1C1B; font-weight: 600; }
.navlink__text { flex: 1; }
.navlink__badge { min-width: 22px; height: 22px; padding: 0 7px; box-sizing: border-box; border-radius: 11px; background: #F3FF6B; color: #1C1C1B; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.navlink.is-on .navlink__badge { background: #1C1C1B; color: #F3FF6B; }
.navlink__count { font-size: 12px; color: #A3A39A; }
.navlink.is-on .navlink__count { color: #1C1C1B; }
.side :focus-visible, .topbar :focus-visible { outline-color: #F3FF6B; }
.side__grow { flex: 1; }
.side__all { display: flex; align-items: center; gap: 8px; padding: 0 12px; color: #A3A39A; text-decoration: none; font-size: 13px; }
.side__all:hover { color: #FFFFFF; }
.side__user { display: flex; align-items: center; gap: 12px; padding: 16px 12px 0; border-top: 1px solid #333331; }
.side__user-email { color: #FFFFFF; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side__user-text a { color: #A3A39A; font-size: 12px; text-decoration: none; }
.side__user-text a:hover { color: #FFFFFF; }
.topbar, .tabbar, .approve-dock { display: none; }

/* Main column */
.main { flex: 1; min-width: 0; box-sizing: border-box; padding: 28px 40px 32px; display: flex; flex-direction: column; }
.view { display: flex; flex-direction: column; gap: 28px; width: 100%; max-width: 1240px; margin-inline: auto; }   /* centered in the space beside the sidebar */
.main > .load-error { width: 100%; max-width: 1240px; margin-inline: auto; box-sizing: border-box; }
.app .btn { min-height: 40px; border-radius: 20px; }
.btn--outline { background: #FFFFFF; border-color: #C9C9C0; color: #222222; text-decoration: none; }
.btn--outline:hover { border-color: #222222; }
.btn--block { width: 100%; min-height: 52px; font-size: 16px; }
.page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.kicker { font-size: 12px; line-height: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: #5F5F58; }
.hello { display: flex; flex-direction: column; gap: 8px; }
.hello h1 { margin: 0; font-weight: 600; font-size: 36px; line-height: 44px; letter-spacing: -0.02em; }
.hello p { margin: 4px 0 0; font-size: 16px; line-height: 24px; color: #5F5F58; }
.inline-link { color: #222222; font-weight: 600; text-decoration: underline; text-decoration-color: #E2EE4F; text-decoration-thickness: 3px; text-underline-offset: 5px; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; }
.inline-link:hover { color: #000000; text-decoration-color: #222222; }

/* Cards and rows */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; align-items: start; }
.card { background: #FFFFFF; border: 1px solid #E4E4DC; border-radius: 12px; overflow: hidden; }
.card--narrow { max-width: 640px; }
.card__head { display: flex; align-items: center; gap: 12px; padding: 24px 24px 12px; }
.card__head h2 { margin: 0; flex: 1; font-weight: 600; font-size: 20px; line-height: 28px; letter-spacing: -0.01em; }
.card__head a { color: #222222; font-weight: 500; text-underline-offset: 4px; }
.rows { list-style: none; margin: 0; padding: 0 0 8px; }
.row { display: flex; align-items: center; gap: 16px; padding: 14px 24px; border-top: 1px solid #EFEFE8; }
.row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.row__title { font-weight: 600; color: #222222; text-decoration: none; overflow-wrap: anywhere; }
.row__title:hover { text-decoration: underline; text-underline-offset: 3px; }
.row__meta { font-size: 12px; line-height: 16px; color: #5F5F58; }
.row__date { font-size: 13px; color: #5F5F58; white-space: nowrap; }
.rows__empty { padding: 16px 24px 20px; border-top: 1px solid #EFEFE8; color: #5F5F58; }
.thumb-sm { position: relative; width: 56px; height: 70px; border-radius: 8px; background: #3B3A36; flex: none; overflow: hidden; }
.thumb-sm img, .thumb-sm video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-sm__n { position: absolute; left: 4px; bottom: 4px; background: rgba(0, 0, 0, 0.6); color: #FFFFFF; border-radius: 4px; padding: 0 4px; font-size: 10px; font-weight: 700; }
.pill-btn { flex: none; height: 36px; padding: 0 16px; border-radius: 18px; border: 0; background: #F3FF6B; color: #1C1C1B; font: 600 13px var(--text); cursor: pointer; }
.pill-btn:hover { background: #E9F55A; }
.row__top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.row__icon { flex: none; width: 56px; height: 44px; border-radius: 8px; background: #F2F2EC; color: #5F5F58; display: grid; place-items: center; }
.row__icon svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.type-tag { flex: none; padding: 2px 7px; border-radius: 4px; font: 700 10.5px/14px var(--text); letter-spacing: 0.06em; text-transform: uppercase; }
.type-tag--post { background: #F3FF6B; color: #1C1C1B; }
.type-tag--task { background: #E6EBDD; color: #3F4A33; }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235F5F58' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.datebox { width: 48px; flex: none; display: flex; flex-direction: column; align-items: center; border: 1px solid #E4E4DC; border-radius: 8px; padding: 4px 0; }
.datebox span { font-size: 10px; line-height: 14px; letter-spacing: 0.08em; color: #5F5F58; }
.datebox strong { font-size: 18px; line-height: 22px; }
.app .chip { min-height: 26px; }
.app .chip--cancelled { background: #EDEDE6; color: #4A4A44; }

/* Quick links */
.links { list-style: none; margin: 0; padding: 0; }
.link-row { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-top: 1px solid #EFEFE8; text-decoration: none; color: #222222; }
.link-row:hover { background: #FAFAF6; }
.link-row__icon { width: 40px; height: 40px; border-radius: 10px; background: #F2F2EC; display: grid; place-items: center; flex: none; }
.link-row__text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.link-row__text strong { font-weight: 600; }
.link-row__text span { font-size: 12px; line-height: 16px; color: #5F5F58; }
.link-row > svg { color: #5F5F58; flex: none; }
.links__hint { margin: 0; padding: 12px 24px; border-top: 1px solid #EFEFE8; color: #5F5F58; font-size: 13px; }
/* Quick link rows and the contact row match the task rows' height, so both cards hold four items the same size. */
.contact { display: flex; align-items: center; gap: 14px; padding: 14px 24px 22px; border-top: 1px solid #EFEFE8; }
.contact .avatar { width: 40px; height: 40px; }
.contact__text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.contact__text span { font-size: 12px; line-height: 16px; color: #5F5F58; }
.contact a { color: #222222; font-weight: 600; font-size: 13px; text-underline-offset: 4px; }

/* Page headers and underline tabs */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.page-head__text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.page-head h1 { margin: 0; font-weight: 600; font-size: 32px; line-height: 40px; letter-spacing: -0.02em; }
.page-head p { margin: 0; font-size: 15px; line-height: 22px; color: #5F5F58; }
.utabs { display: flex; flex-wrap: wrap; gap: 4px 28px; border-bottom: 1px solid #DCDCD3; }
.utabs-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; border-bottom: 1px solid #DCDCD3; }
.utabs-row .utabs { border-bottom: 0; }
.utabs-row .text-link { margin-bottom: 10px; }
.utab { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 0 10px; margin-bottom: -1px; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; color: #5F5F58; cursor: pointer; white-space: nowrap; }
.utab:hover { color: #222222; }
.utab.is-on { color: #222222; font-weight: 600; border-bottom-color: #222222; }
.utab__n { font-size: 12px; }
.utab__n--hot { height: 20px; min-width: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 10px; background: #F3FF6B; color: #1C1C1B; font-weight: 700; display: grid; place-items: center; }
.utabs__title { margin: 0 0 12px; font-size: 16px; font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.empty { margin: 0; padding: 32px 0; color: #5F5F58; }
.empty button { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: #222222; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.app .setup-note { margin: 0; }

/* Tasks table inside a card */
.card--table { padding: 4px 24px 8px; overflow-x: auto; }
.card--table .tasks th { padding-top: 16px; border-bottom-color: #DCDCD3; }
.card--table .tasks tr:last-child td { border-bottom: 0; }
.card--table .empty { padding: 28px 0; }
.app .input--title { font: 600 22px/1.3 var(--text); letter-spacing: -0.01em; text-transform: none; }

/* Social post grid */
.app .post-card { border-radius: 12px; border-color: #E4E4DC; }
.app .post-card:hover { border-color: #222222; }

/* Post review page */
#post-page { display: flex; flex-direction: column; gap: 24px; }
.post-page__head { display: flex; flex-direction: column; gap: 6px; }
.post-page__head h1 { margin: 0; font-weight: 600; font-size: 28px; line-height: 36px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: #5F5F58; font-weight: 600; text-decoration: none; }
.back span { font-size: 22px; line-height: 1; }
.back:hover { color: #222222; }
.post-page__grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.post-page__left { flex: 1 1 360px; max-width: 460px; min-width: 0; }
.post-page__right { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.post-page .preview, #post-page .preview { margin: 0; }
#post-page .ig { max-width: none; margin: 0; }
.app .post-status { background: #FFFFFF; color: #222222; border: 1px solid #E4E4DC; border-radius: 12px; padding: 20px 24px; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.app .post-status .project__note { margin: 0; flex: 1 1 240px; font-size: 14px; line-height: 20px; color: #5F5F58; }
.app .post-status .project__note strong { color: #222222; }
.app .post-status.is-action { background: #222222; border-color: #222222; color: #FFFFFF; }
.app .post-status.is-action .project__note { color: #C9C9C0; }
.app .post-status.is-action .project__note strong { color: #FFFFFF; display: block; font-size: 16px; margin-bottom: 2px; }
.app .post-status.is-action .btn--ghost { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.35); }
.app .post-status.is-action .btn--ghost:hover { border-color: #FFFFFF; }
.app .post-status.is-action .form-error { color: #FFB4AA; }
.app .post-status.is-action .field__label, .app .post-status.is-action .radio, .app .post-status.is-action .check { color: #FFFFFF; }
.app .post-status.is-action .field__help { color: #C9C9C0; }
.app .post-status.is-action input[type=radio], .app .post-status.is-action input[type=checkbox] { accent-color: #F3FF6B; }
.app .post-status.is-action :focus-visible { outline-color: #F3FF6B; }
.app .post-status__error { background: #FFFFFF; color: #9A1C1C; }
.app .post-settings { background: #FFFFFF; border: 1px solid #E4E4DC; border-radius: 12px; padding: 20px 24px 6px; margin: 0; }
.app .post-text { background: #FFFFFF; border: 1px solid #E4E4DC; border-radius: 12px; padding: 24px; }
.app #post-page .comments { background: #FFFFFF; border: 1px solid #E4E4DC; border-radius: 12px; padding: 24px; margin: 0; }
.app #post-page .comments h3 { font-size: 18px; font-weight: 600; }

/* Small footer */
.foot-mini { width: 100%; max-width: 1240px; margin-inline: auto; box-sizing: border-box; margin-top: auto; padding-top: 48px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: #8A8A82; }
.foot-mini a { color: inherit; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .shell { display: block; }
  .side { display: none; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 20; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); background: #1C1C1B; color: #FFFFFF; }
  .topbar .avatar { width: 36px; height: 36px; }
  .topbar__text { flex: 1; }
  .topbar__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .acct { position: relative; }
  .acct summary { list-style: none; width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; cursor: pointer; color: #FFFFFF; }
  .acct summary::-webkit-details-marker { display: none; }
  .acct[open] summary { background: #2A2A28; }
  .acct__menu { position: absolute; right: 0; top: 50px; width: 250px; background: #FFFFFF; color: #222222; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22); padding: 8px; display: flex; flex-direction: column; }
  .acct__menu a { padding: 12px; border-radius: 8px; color: #222222; text-decoration: none; font-weight: 500; }
  .acct__menu a:hover { background: #F5F5F0; }
  .acct__email { padding: 10px 12px 12px; margin-bottom: 4px; font-size: 12px; color: #5F5F58; border-bottom: 1px solid #EFEFE8; overflow-wrap: anywhere; }

  .tabbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #FFFFFF; border-top: 1px solid #E4E4DC; padding: 6px 4px calc(10px + env(safe-area-inset-bottom)); }
  .tablink { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; text-decoration: none; color: #5F5F58; font-size: 11px; line-height: 14px; }
  .tablink__icon { position: relative; width: 52px; height: 28px; border-radius: 14px; display: grid; place-items: center; }
  .tablink.is-on { color: #222222; font-weight: 700; }
  .tablink.is-on .tablink__icon { background: #F3FF6B; }
  .tablink__dot { position: absolute; top: 1px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: #222222; box-shadow: 0 0 0 2px #FFFFFF; }

  .main { padding: 24px 16px calc(96px + env(safe-area-inset-bottom)); }
  .view { gap: 20px; }
  .page-actions { justify-content: flex-start; }
  .page-actions .btn { flex: 1 1 auto; }
  .hello h1 { font-size: 28px; line-height: 34px; }
  .hello p { font-size: 15px; line-height: 22px; }
  .cards { gap: 16px; }
  .card__head { padding: 18px 16px 10px; }
  .card__head h2 { font-size: 18px; line-height: 24px; }
  .row { padding: 12px 16px; gap: 12px; }
  .row__date { display: none; }
  .thumb-sm { width: 48px; height: 60px; }
  .row__icon { width: 48px; height: 40px; }
  .row__top { flex-direction: column; align-items: flex-start; gap: 4px; }
  .rows__empty, .links__hint { padding-left: 16px; padding-right: 16px; }
  .link-row { padding: 14px 16px; }
  .contact { padding: 12px 16px 20px; }
  .page-head h1 { font-size: 26px; line-height: 32px; }
  .page-head p { font-size: 14px; line-height: 20px; }
  .page-head .btn { width: 100%; }
  .utabs, .utabs-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 22px; }
  .utabs::-webkit-scrollbar, .utabs-row::-webkit-scrollbar { display: none; }
  .utabs-row { align-items: flex-end; }
  .card--table { padding: 0 16px; }
  .post-page__grid { gap: 16px; }
  .post-page__left { max-width: none; flex-basis: 100%; }
  .post-page__head h1 { font-size: 22px; line-height: 28px; }
  .app .post-status, .app .post-settings, .app .post-text, .app #post-page .comments { padding: 16px; }
  body.is-post .tabbar { display: none; }
  body.is-post .approve-dock { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #FFFFFF; border-top: 1px solid #E4E4DC; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
  body.is-post .post-status--review.is-action .form-actions { display: none; }
  body.is-post .main { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .app .input, .app .textarea, .app textarea, .app input { font-size: 16px; }
  .foot-mini { padding-top: 32px; }
}
.app.is-loading .main, .app.is-loading .side__client, .app.is-loading .side__nav, .app.is-loading .side__user, .app.is-loading .topbar__text { visibility: hidden; }
.app .post-status.is-action .btn--lemon { background: #F3FF6B; color: #1C1C1B; }
.app .post-status.is-action .btn--lemon:hover { background: #E9F55A; }
.card--table .tasks tbody { border-top: 0; }
.utabs-row .text-link { white-space: nowrap; }
@media (max-width: 760px) {
  .utabs-row { display: block; overflow: visible; border-bottom: 0; }
  .utabs-row .utabs { border-bottom: 1px solid #DCDCD3; overflow-x: auto; }
  .utabs-row .text-link { margin: 12px 0 0; }
}
#social-list { display: flex; flex-direction: column; gap: 24px; }

.member__approves { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; cursor: pointer; }
.member__approves input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; }
.member__email { flex: 1; }
.seg legend .field__hint { display: inline; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; font-size: 13px; font-weight: 400; color: #5F5F58; }

/* ---------- Privacy and terms pages ---------- */
body.doc-page { display: block; min-height: 100dvh; background: #F5F5F0; color: #222222; font-size: 16px; line-height: 26px; }
.doc-top { background: #1C1C1B; }
.doc-top__inner { max-width: 760px; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; gap: 14px; }
.doc-top__inner img { width: 96px; height: auto; display: block; }
.doc-top__inner span { font-size: 11px; line-height: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: #A3A39A; }
.doc { max-width: 760px; box-sizing: border-box; margin: 40px auto 0; padding: 40px 48px 48px; background: #FFFFFF; border: 1px solid #E4E4DC; border-radius: 12px; }
.doc__kicker { margin: 0 0 8px; font-size: 12px; line-height: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: #5F5F58; }
.doc h1 { margin: 0 0 16px; font-size: 36px; line-height: 44px; font-weight: 600; letter-spacing: -0.02em; }
.doc__lead { font-size: 17px; line-height: 28px; color: #3A3A37; }
.doc h2 { margin: 36px 0 8px; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.doc h3 { margin: 20px 0 4px; font-size: 16px; line-height: 24px; font-weight: 600; }
.doc p, .doc li { color: #3A3A37; }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc a { color: #222222; text-decoration: underline; text-decoration-color: #B9C6B4; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: #222222; }
.doc-foot { max-width: 760px; margin: 0 auto; padding: 24px 24px 48px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: #8A8A82; }
.doc-foot a { color: inherit; }
@media (max-width: 640px) {
  .doc { margin: 16px 12px 0; padding: 24px 20px 28px; }
  .doc h1 { font-size: 28px; line-height: 34px; }
  .doc-foot { padding: 20px 16px 40px; }
}
