/* Kituwa Studio · Social channels (/socials/).
 *
 * Page-scoped skin over the shared Boldcase shell. Every rule sits under
 * .socials-studio, which is the body class this route sets, so the catalog,
 * timeline, studio and timeline routes keep their own rendering. The protected
 * Live Watch tables keep their markup, columns and sort code; only their
 * narrow-screen container changes here.
 */

.socials-studio {
  /* Values come from the shared token sheet (studio-tokens.css), loaded before
     this file, so Hub and Socials cannot drift apart. */
  --canvas: var(--studio-canvas);
  --panel: var(--studio-panel);
  --ink: var(--studio-ink);
  --ink-2: var(--studio-ink-2);
  --line: var(--studio-line);
  --line-soft: var(--studio-line-soft);
  --accent: var(--studio-accent);
  --accent-dark: var(--studio-accent-dark);
  --tint: var(--studio-tint);
  --dark: var(--studio-dark);
  --dark-line: var(--studio-dark-line);
  --dark-text: var(--studio-dark-text);
  --olive: var(--studio-olive);
  --online: var(--studio-online);
  --online-bg: var(--studio-online-bg);
  --radius: var(--studio-radius);
  --radius-sm: var(--studio-radius-sm);

  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--studio-font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.socials-studio *,
.socials-studio *::before,
.socials-studio *::after { box-sizing: border-box; }

.socials-studio [hidden] { display: none !important; }

.socials-studio :focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.socials-studio .wrap { width: min(1200px, 100% - 48px); }

.socials-studio h1,
.socials-studio h2,
.socials-studio h3 {
  font-family: var(--studio-font-display);
  color: var(--ink);
  margin: 0;
}

.socials-studio h1 {
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 780;
}

.socials-studio h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 760;
}

.socials-studio h3 {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.socials-studio p { margin: 0; }

/* Links keep the colour their own component sets: the shared header's
   dark "Start a build" button must not inherit body ink. */
.socials-studio main a,
.socials-studio .site-footer a { text-underline-offset: 3px; }

.socials-studio .fb-wrap {
  padding: 0 0 3rem;
}

/* ---------- Breadcrumb and hero ---------- */

.studio-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 26px 0 16px;
  color: var(--ink-2);
  font-size: 13px;
}

.studio-crumb a { text-decoration: none; }
.studio-crumb a:hover { text-decoration: underline; }
.studio-crumb [aria-current] { color: var(--ink); font-weight: 650; }

.studio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 40px;
  align-items: center;
  padding-bottom: 30px;
}

.studio-hero-copy p {
  max-width: 46ch;
  margin: 16px 0 20px;
  color: var(--ink-2);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
}

.studio-hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }

.studio-hero-note {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 12.5px;
}

.studio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.studio-btn:hover { border-color: #a69985; background: #fff; }

.studio-btn--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.studio-btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.studio-btn--sm { min-height: 38px; padding: 0 13px; font-size: 13px; }

.studio-link {
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.studio-link:hover { color: var(--accent-dark); }

/* Publishing snapshot: a dark surface used once per page. */
.studio-publish {
  border-radius: 17px;
  background: var(--dark);
  color: var(--dark-text);
  padding: 22px 24px 16px;
  box-shadow: 0 14px 26px -18px rgba(35, 40, 32, 0.55);
}

.studio-publish h2 { font-size: 19px; letter-spacing: -0.03em; color: var(--dark-text); }

.studio-publish dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 16px 0 12px;
}

.studio-publish dl div + div {
  border-left: 1px solid var(--dark-line);
  padding-left: 18px;
}

.studio-publish dt { color: #cfcec2; font-size: 12px; }

.studio-publish dd {
  margin: 2px 0 0;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 730;
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.studio-publish dd small { font-size: 12px; color: #cfcec2; }

.studio-publish small { color: #cfcec2; font-size: 11.5px; }

.studio-publish-note {
  margin-top: 12px !important;
  padding-top: 11px;
  border-top: 1px solid var(--dark-line);
  color: #dad9cb;
  font-size: 12px;
  line-height: 1.45;
}

.studio-publish-time {
  margin-top: 8px !important;
  color: #cfcec2;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

/* ---------- View and platform controls ---------- */

.studio-workspace {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.studio-views { display: flex; flex-wrap: wrap; align-items: center; }

.studio-view {
  min-height: 52px;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  font-weight: 660;
  cursor: pointer;
}

.studio-view:first-child { padding-left: 0; }

.studio-view:hover { color: var(--accent); }

.studio-view.is-active {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.studio-platforms {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding-block: 6px;
}

.studio-platforms-label {
  margin-right: 4px;
  color: var(--ink-2);
  font-size: 12px;
}

.studio-platform {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 640;
  text-decoration: none;
}

.studio-platform span { color: var(--ink-2); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.studio-platform:hover { color: var(--accent); }

.studio-platform.is-active {
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
}

/* The overview variant is chosen before first paint by socials-boot.js, the
   same way the platform panels are, so a ?platform=youtube link never flashes
   the All numbers first. */
html.plat-all [data-overview-variant="facebook"],
html.plat-all [data-overview-variant="youtube"],
html.plat-facebook [data-overview-variant="all"],
html.plat-facebook [data-overview-variant="youtube"],
html.plat-youtube [data-overview-variant="all"],
html.plat-youtube [data-overview-variant="facebook"] { display: none !important; }

/* ---------- Views ---------- */

.studio-panel { padding: 26px 0 34px; }

.studio-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.studio-section-head h2:focus { outline: none; }
.studio-section-head h2:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.studio-section-head p {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 13.5px;
  max-width: 74ch;
}

.studio-console { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Overview KPI row ---------- */

.studio-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.studio-stat {
  min-width: 0;
  padding: 14px 17px;
}

.studio-stat + .studio-stat { border-left: 1px solid var(--line); }

.studio-stat span { color: var(--ink-2); font-size: 13px; }

.studio-stat strong {
  display: block;
  margin-block: 2px 1px;
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.studio-stat small { display: block; color: var(--ink-2); font-size: 12px; }

/* ---------- Overview cards ---------- */

.studio-two {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

.studio-card {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.studio-card h3 { font-size: 17px; }

.studio-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.studio-card-top p { color: var(--ink-2); font-size: 12.5px; }

.studio-bars { margin: 0; padding: 0; list-style: none; }

.studio-bars li {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(40px, 1fr) minmax(44px, max-content);
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding-block: 5px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
}

.studio-bars li:first-child { border-top: 0; }

.studio-bars a {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 640;
  text-decoration: none;
}

.studio-bars a:hover { text-decoration: underline; }

.studio-bar { display: block; width: 100%; height: 8px; overflow: visible; }
.studio-bar-fill { fill: var(--accent); }
.studio-bar-fill--youtube { fill: var(--olive); }

.studio-bars strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.studio-linkbtn {
  margin-top: 9px;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.studio-foot {
  margin-top: 10px !important;
  padding-top: 9px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.45;
}

.studio-empty { color: var(--ink-2); font-size: 13px; padding-block: 6px; }

.studio-mixbar {
  height: 11px;
  margin: 12px 0 6px;
  border-radius: 20px;
  overflow: hidden;
  background: #ede8de;
}

.studio-mixbar svg { display: block; width: 100%; height: 11px; }
.studio-mixbar-fb { fill: var(--accent); }
.studio-mixbar-yt { fill: var(--olive); }

.studio-mixlist { margin: 0 0 4px; padding: 0; list-style: none; }

.studio-mixlist li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-block: 7px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
}

.studio-mixlist strong { font-variant-numeric: tabular-nums; }

.studio-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.studio-dot--youtube { background: var(--olive); }

.studio-mini { margin: 6px 0 4px; }

.studio-mini div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-block: 7px;
  border-top: 1px solid var(--line-soft);
}

.studio-mini div:first-child { border-top: 0; }
.studio-mini dt { color: var(--ink-2); font-size: 12.5px; }
.studio-mini dd { margin: 0; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.studio-mini small { display: none; }

/* ---------- Managed-service callout and next step ---------- */

.studio-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 15px 18px;
  border: 1px solid #e1d9c8;
  border-radius: 12px;
  background: #efeade;
}

.studio-service h3 { font-size: 16px; }
.studio-service p { margin-top: 2px; color: var(--ink-2); font-size: 12.5px; max-width: 68ch; }
.studio-service-links { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }

.studio-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.studio-next h3 { font-size: 16px; }
.studio-next p { margin-top: 2px; color: var(--ink-2); font-size: 12.5px; }
.studio-next-actions { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }

.studio-note {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink-2);
  font-size: 13px;
}

/* ---------- Channels view ---------- */

.socials-studio .fb-group { margin-top: 0; }
.socials-studio .fb-group + .fb-group {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.socials-studio .fb-group-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; }
.socials-studio .fb-group-head .eyebrow {
  color: var(--ink-2);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.socials-studio .fb-group-head .h3 { font-size: 19px; margin-top: 3px; }
.socials-studio .fb-group-note { color: var(--ink-2); font-size: 12.5px; max-width: 60ch; }

.socials-studio .fb-tools,
.socials-studio .fb-card {
  --fb-ink: var(--ink);
  --fb-muted: var(--ink-2);
  --fb-soft: var(--ink-2);
  --fb-line: var(--line);
  --fb-line-soft: var(--line-soft);
  --fb-accent: var(--accent);
  --fb-accent-text: var(--accent);
  --fb-tint: #fff;
}

.socials-studio .fb-tools {
  margin: 12px 0 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: none;
  gap: 8px 10px;
}

.socials-studio .catalog-search input,
.socials-studio .fb-sort select {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}

.socials-studio .catalog-search input:focus,
.socials-studio .fb-sort select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.socials-studio .fb-sort { font-size: 12px; color: var(--ink-2); }
.socials-studio .catalog-count { color: var(--ink-2); font-size: 12.5px; }

.socials-studio .fb-grid { gap: 14px; }

.socials-studio .fb-card {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: none;
}

.socials-studio .fb-card .fb-name { font-size: 17px; letter-spacing: -0.02em; }
.socials-studio .fb-card .fb-purpose { color: var(--ink-2); font-size: 12.5px; }

.socials-studio .fb-cover {
  border-radius: 13px 13px 0 0;
  background: #f2ede3;
  overflow: hidden;
}

.socials-studio .fb-cover-letter { color: var(--accent); opacity: 0.5; }

.socials-studio .fb-cover-id {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10.5px;
  color: var(--ink-2);
}

.socials-studio .fb-state {
  border: 1px solid currentColor;
  border-radius: 999px;
  background: #fff;
  font-size: 10.5px;
  padding: 2px 8px;
}

.socials-studio .fb-card-metrics {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: #fdfbf6;
}

.socials-studio .fb-card-metric-label,
.socials-studio .fb-card-metric-row span { color: var(--ink-2); font-size: 12px; }

.socials-studio .fb-card-metric-main strong {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.socials-studio .fb-sync { color: var(--ink-2); font-size: 11.5px; }
.socials-studio .fb-dot { background: var(--online); }
.socials-studio .fb-sync-stale .fb-dot,
.socials-studio .fb-sync-unavailable .fb-dot { background: var(--accent); }

.socials-studio .fb-card .btn-primary {
  border-radius: 8px;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.socials-studio .fb-card .btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.socials-studio .fb-card .btn-ghost {
  border-radius: 8px;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.socials-studio .fb-card .btn-ghost:hover { border-color: #a69985; background: #fff; }

.socials-studio .fb-latest {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fdfbf6;
}

.socials-studio .fb-latest:hover { border-color: var(--line); }

.socials-studio .fb-note-link,
.socials-studio .fb-note { color: var(--ink-2); }

.socials-studio .catalog-empty {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 14px;
  color: var(--ink-2);
  font-size: 13px;
}

/* ---------- Metrics view: the existing panels, re-skinned ---------- */

.socials-studio .fb-combined {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: none;
  color: var(--ink);
}

.socials-studio .fb-combined::before,
.socials-studio .fb-combined::after { content: none; }

.socials-studio .fb-combined .eyebrow {
  color: var(--ink-2);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.socials-studio .fb-combined .h2 { font-size: 24px; letter-spacing: -0.035em; color: var(--ink); }
.socials-studio .fb-combined-lede { color: var(--ink-2); font-size: 13px; }

.socials-studio .studio-control {
  display: grid;
  gap: 4px;
  min-width: 200px;
  color: var(--ink-2);
  font-size: 12px;
}

.socials-studio .studio-control select {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.socials-studio .studio-control select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.socials-studio .fb-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.socials-studio .fb-stat {
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background: var(--panel);
  box-shadow: none;
}

.socials-studio .fb-stat + .fb-stat { border-left: 1px solid var(--line); }
.socials-studio .fb-stat:nth-child(5) { border-left: 0; }
.socials-studio .fb-stat:nth-child(n+5) { border-top: 1px solid var(--line); }

.socials-studio .fb-stat span {
  color: var(--ink-2);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.socials-studio .fb-stat strong {
  font-size: 24px;
  letter-spacing: -0.04em;
  font-weight: 740;
  color: var(--ink);
}

.socials-studio .fb-stat small { color: var(--ink-2); font-size: 11.5px; }

.socials-studio .fb-chart-grid { gap: 14px; }

.socials-studio .fb-chart-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.socials-studio .fb-chart-head h3 {
  color: var(--ink-2);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.socials-studio .fb-chart-head span { color: var(--ink-2); font-size: 12px; }
.socials-studio .fb-svg-label { fill: var(--ink-2); }
.socials-studio .fb-svg-value { fill: var(--ink); }
.socials-studio .fb-chart-note { color: var(--ink-2); font-size: 12px; }

.socials-studio .fb-metrics { margin-top: 0; }

.socials-studio .fb-metrics-head h2 { font-size: 22px; letter-spacing: -0.035em; }
.socials-studio .fb-metrics-sub { color: var(--ink-2); font-size: 12.5px; }

.socials-studio .fb-metrics-kpi,
.socials-studio .fb-metrics-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: none;
}

.socials-studio .fb-metrics-kpi__label { color: var(--ink-2); font-size: 12.5px; }
.socials-studio .fb-metrics-kpi__value { color: var(--ink); font-variant-numeric: tabular-nums; }
.socials-studio .fb-metrics-kpi__note { color: var(--ink-2); font-size: 11.5px; }
.socials-studio .fb-metrics-card figcaption h3 { font-size: 15px; }
.socials-studio .fb-metrics-card figcaption span { color: var(--ink-2); font-size: 12px; }

.socials-studio .fb-metrics-posts li { border-color: var(--line-soft); }
.socials-studio .fb-metrics-post-meta { color: var(--ink-2); font-size: 12px; }
.socials-studio .fb-metrics-post-stats { color: var(--ink-2); font-size: 12px; }
.socials-studio .fb-metrics-foot { color: var(--ink-2); font-size: 12px; }

.socials-studio .fb-metrics-empty {
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink-2);
}

.socials-studio .fb-view-cta {
  border-radius: 8px;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-size: 12.5px;
  text-decoration: none;
}

.socials-studio .fb-view-cta:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* ---------- Live Watch ---------- */

.socials-studio .fb-live { padding-top: 26px; }

.socials-studio .fb-live-head { margin-bottom: 10px; align-items: flex-end; }
.socials-studio .fb-live-head h3 { font-size: 21px; letter-spacing: -0.035em; margin: 0; }
.socials-studio .fb-live-head p { color: var(--ink-2); font-size: 12.5px; max-width: 56ch; }

.studio-scroll-cue {
  display: none;
  margin: 0 0 8px;
  color: var(--ink-2);
  font-size: 12px;
}

.socials-studio .fb-table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: none;
  max-width: 100%;
}

.socials-studio .fb-table-wrap:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.socials-studio .fb-live-table { font-size: 13px; }

.socials-studio .fb-live-table thead th {
  background: #f5f0e6;
  border-bottom: 1px solid #ded6c8;
  color: #544e45;
}

.socials-studio .fb-live-table th,
.socials-studio .fb-live-table td { border-bottom: 1px solid #eee6d8; }

.socials-studio .fb-live-table tbody tr { background: var(--panel); }
.socials-studio .fb-live-table tbody tr:hover { background: #fbf7ef; }

.socials-studio .fb-live-sort:hover,
.socials-studio .fb-live-sort.is-sorted { color: var(--accent); }

.socials-studio .fb-live-sort { min-height: 24px; }
.socials-studio .fb-live-queue-th .fb-live-sort { min-width: 24px; min-height: 24px; }

.socials-studio .fb-live-table thead th button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.socials-studio .fb-live-slot { display: block; font-weight: 650; }
.socials-studio .fb-live-slot-label,
.socials-studio .fb-live-kind-label {
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.socials-studio .fb-live-kind-label { margin-right: 3px; }
.socials-studio .fb-live-exact { font-variant-numeric: tabular-nums; }

.socials-studio [data-post-status].is-awaiting { color: var(--accent); font-weight: 650; }

.socials-studio .fb-live-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--dark-text);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.socials-studio .fb-live-control:hover { background: var(--accent); color: #fff; }

.socials-studio .fb-live-chip {
  border-radius: 999px;
  font-size: 10.5px;
  padding: 2px 8px;
}

.socials-studio .fb-live-ok { color: var(--online); }
.socials-studio .fb-live-fail { color: var(--accent-dark); background: var(--tint); border-radius: 999px; padding: 1px 7px; }
.socials-studio .fb-live-null { color: var(--ink-2); }

.socials-studio .fb-cal {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  margin-top: 16px;
}

.socials-studio .fb-cal-head h2 { font-size: 20px; letter-spacing: -0.035em; }
.socials-studio .fb-cal-head p { color: var(--ink-2); font-size: 12.5px; }
.socials-studio .fb-cal-nav {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-width: 40px;
  min-height: 40px;
}

.socials-studio .fb-cal-nav:hover { border-color: #a69985; }
.socials-studio .fb-cal-cell { border-color: var(--line-soft); }
.socials-studio .fb-cal-cell:hover { background: #fbf7ef; }

.socials-studio .fb-pipeline-note,
.socials-studio .fb-live-foot { color: var(--ink-2); font-size: 12.5px; }

.socials-studio .fb-live-foot {
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 900px) {
  .studio-hero { gap: 22px; }
  .studio-two { grid-template-columns: minmax(0, 1fr); }
  .socials-studio .fb-live-table { min-width: 900px; }
}

@media (max-width: 720px) {
  .socials-studio .wrap { width: calc(100% - 32px); }
  .studio-crumb { margin: 18px 0 12px; }
  .studio-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-bottom: 22px;
  }
  .studio-hero-copy p { margin: 10px 0 14px; }
  .studio-publish { padding: 15px 16px 13px; }
  .studio-publish h2 { font-size: 17px; }
  .studio-workspace { gap: 0; }
  .studio-views { width: 100%; border-bottom: 1px solid var(--line); }
  .studio-view { flex: 1 1 auto; min-height: 46px; padding: 0 8px; font-size: 13px; }
  .studio-view:first-child { padding-left: 8px; }
  .studio-platforms { padding-block: 8px 6px; }
  .studio-platform { min-height: 44px; }
  .studio-panel { padding: 20px 0 28px; }
  .studio-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-stat:nth-child(3) { border-left: 0; }
  .studio-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .studio-stat { padding: 12px; }
  .studio-card,
  .studio-service,
  .studio-next { padding: 13px; }
  .studio-bars li { grid-template-columns: minmax(0, 1.6fr) minmax(28px, 1fr) max-content; gap: 7px; }
  .socials-studio .fb-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .socials-studio .fb-stat:nth-child(3) { border-left: 0; }
  .socials-studio .fb-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .socials-studio .fb-live-head { flex-direction: column; align-items: flex-start; }
  .studio-scroll-cue { display: block; }
}

@media (max-width: 460px) {
  .socials-studio h1 { font-size: clamp(38px, 11vw, 52px); }
  .studio-views { gap: 0; }
  .studio-view { font-size: 12px; padding: 0 6px; }
  .studio-hero-actions .studio-btn { padding: 0 12px; }
  .studio-btn { font-size: 13px; }
}

/* Narrow-screen table container, and nothing else about the table.
 *
 * The production rule at 760px hid the Facebook thead and turned every row
 * into a stacked card, which removed the sortable column titles the owner
 * uses. The table stays a table: it keeps its semantic structure, its eight
 * header buttons and its aria-sort state, and scrolls inside this labelled
 * region instead. The account column sticks so the row identity survives the
 * sideways scroll. Desktop rendering is untouched.
 */
@media (max-width: 760px) {
  .socials-studio .fb-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    box-shadow: none;
    -webkit-overflow-scrolling: touch;
  }

  .socials-studio .fb-live-table {
    display: table;
    width: 900px;
    min-width: 900px;
    table-layout: fixed;
  }

  .socials-studio .fb-live-table thead { display: table-header-group; }
  .socials-studio .fb-live-table tbody { display: table-row-group; }
  .socials-studio .fb-live-table tr { display: table-row; }

  .socials-studio .fb-live-table th,
  .socials-studio .fb-live-table td {
    display: table-cell;
    width: auto;
    padding: 9px 10px;
    border-bottom: 1px solid #eee6d8;
    text-align: left;
    vertical-align: top;
  }

  .socials-studio .fb-live-table td[data-label]::before { content: none; display: none; }

  .socials-studio .fb-live-table th:nth-child(1),
  .socials-studio .fb-live-table td:nth-child(1) { width: 190px; }
  .socials-studio .fb-live-table th:nth-child(2),
  .socials-studio .fb-live-table td:nth-child(2) { width: 74px; }
  .socials-studio .fb-live-table th:nth-child(3),
  .socials-studio .fb-live-table td:nth-child(3) { width: 132px; }
  .socials-studio .fb-live-table th:nth-child(4),
  .socials-studio .fb-live-table td:nth-child(4) { width: 156px; }
  .socials-studio .fb-live-table th:nth-child(5),
  .socials-studio .fb-live-table td:nth-child(5) { width: 104px; }
  .socials-studio .fb-live-table th:nth-child(6),
  .socials-studio .fb-live-table td:nth-child(6) { width: 174px; }
  .socials-studio .fb-live-table th:nth-child(7),
  .socials-studio .fb-live-table td:nth-child(7) { width: 70px; }

  .socials-studio .fb-live-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f5f0e6;
    white-space: normal;
  }

  .socials-studio .fb-live-table thead th .fb-live-sort {
    text-align: left;
    max-width: none;
    line-height: 1.2;
  }

  .socials-studio .fb-live-table th:first-child,
  .socials-studio .fb-live-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--panel);
    box-shadow: 1px 0 var(--line);
  }

  .socials-studio .fb-live-table thead th:first-child { z-index: 3; }

  .socials-studio .fb-live-table tbody tr:hover td:first-child { background: #fbf7ef; }

  .socials-studio .fb-live-logo { width: 32px; height: 32px; }
  .socials-studio .fb-live-name { font-size: 13px; }
  .socials-studio .fb-live-page-copy { min-width: 0; }
  .socials-studio .fb-live-purpose { display: none; }
  .socials-studio .fb-live-exact { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .socials-studio *,
  .socials-studio *::before,
  .socials-studio *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
