/* Postmaxx neutral redesign — shared public and signed-in foundation

   Dark is the only theme. The light and System options were removed on
   2026-08-21, so `data-theme="dark"` is hard-coded on <html> and these are the
   only token values that ever apply. The `html[data-theme="dark"]` selectors
   further down are kept as-is: they always match, and rewriting eighty-odd
   selectors to drop the prefix would move specificity for no visible gain. */
:root {
  color-scheme: dark;
  --bg: #1b1b1c;
  --surface: #232324;
  --surface-2: #2b2b2d;
  --glass: rgba(255, 255, 255, .035);
  --glass-2: rgba(255, 255, 255, .075);
  --line: #373739;
  --line-2: #4a4a4e;
  --ink: #f1f1f2;
  --ink-2: #d0d0d3;
  --muted: #9a9a9f;
  --signal: #f1d84b;
  --signal-hi: #f6df5d;
  --signal-soft: #3b3825;
  --signal-line: #776d32;
  --danger: #ef8b8b;
  --danger-soft: #3a2426;
  --danger-line: #6a383d;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius: 14px;
  --radius-s: 9px;
}

body {
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

::selection { background: var(--signal); color: var(--ink); }

.btn {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 650;
}
.btn-primary {
  border-color: #20201d;
  background: #20201d;
  color: #fff;
}
.btn-primary:hover {
  background: #30302d;
  color: #fff;
  box-shadow: none;
}
.btn-ghost {
  border-color: var(--line-2);
  background: #fff;
  color: var(--ink);
}
.btn-ghost:hover { border-color: #b8b8bd; background: #fafafa; }
.btn-signal {
  border-color: #ddc63f;
  background: var(--signal);
  color: #20201d;
}
.btn-signal:hover { background: var(--signal-hi); box-shadow: none; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 11px; }

.card, .glass-card {
  border-color: var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}

input, textarea, select { color-scheme: dark; }

/* Public navigation, injected by nav.js */
body:not(.workspace-mounted) .suite-nav {
  border-bottom-color: rgba(225,225,228,.85);
  background: rgba(247,247,248,.92);
}
body:not(.workspace-mounted) .suite-nav-brand { color: var(--ink); font-weight: 720; }
body:not(.workspace-mounted) .suite-nav-brand::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 3px;
  margin: 0 0 -8px 7px;
  border-radius: 99px;
  background: var(--signal);
}
body:not(.workspace-mounted) .suite-nav-link,
body:not(.workspace-mounted) .suite-nav-username { color: var(--muted); }
body:not(.workspace-mounted) .suite-nav-link:hover,
body:not(.workspace-mounted) .suite-nav-link.active { color: var(--ink); background: var(--surface-2); }
body:not(.workspace-mounted) .suite-nav-signin {
  min-height: 40px;
  border-color: var(--line-2);
  border-radius: 9px;
  background: white;
  color: var(--ink);
}
body:not(.workspace-mounted) .suite-nav-gopro {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 9px;
  background: #20201d;
  color: white;
}
body:not(.workspace-mounted) .suite-nav-userbtn { color: var(--ink); }
body:not(.workspace-mounted) .suite-nav-dropdown {
  border-color: var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 20px 50px rgba(27,27,30,.12);
}
body:not(.workspace-mounted) .suite-nav-drop-item { color: var(--ink-2); }
body:not(.workspace-mounted) .suite-nav-drop-item:hover { background: var(--surface-2); color: var(--ink); }
body:not(.workspace-mounted) .suite-nav-drop-muted,
body:not(.workspace-mounted) .suite-nav-drop-muted:hover { color: var(--muted); }

html[data-theme="dark"] body:not(.workspace-mounted) .suite-nav {
  border-bottom-color: rgba(55,55,57,.9);
  background: rgba(27,27,28,.92);
}
html[data-theme="dark"] body:not(.workspace-mounted) .suite-nav-signin,
html[data-theme="dark"] body:not(.workspace-mounted) .suite-nav-dropdown {
  background: rgba(35,35,36,.98);
}
html[data-theme="dark"] body:not(.workspace-mounted) .suite-nav-gopro {
  background: #f1f1f2;
  color: #1b1b1c;
}
html[data-theme="dark"] body:not(.workspace-mounted) .suite-nav-dropdown {
  box-shadow: 0 20px 50px rgba(0,0,0,.38);
}

/* Signed-in application shell */
body.workspace-mounted {
  padding-top: 0 !important;
  overflow: hidden;
}
body.workspace-mounted > .suite-nav { display: none !important; }
body.workspace-mounted #legacy-shell { display: none !important; }
body.workspace-mounted #tg-workspace-root {
  min-height: 100vh;
  color: var(--ink);
}
body.workspace-mounted .tg-ws .postmaxx-app-shell {
  display: grid;
  grid-template-columns: 202px minmax(0, 1fr);
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: 0;
}
.app-sidebar {
  position: relative;
  z-index: 30;
  display: flex;
  height: 100vh;
  min-width: 0;
  flex-direction: column;
  padding: 18px 10px;
  border-right: 1px solid var(--line);
  background: #fafafa;
}
.app-brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  padding: 8px 10px 22px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -.035em;
  text-decoration: none;
}
.app-brand::after {
  content: "";
  width: 12px;
  height: 3px;
  margin-top: 12px;
  border-radius: 99px;
  background: var(--signal);
}
.app-nav-label {
  margin: 17px 10px 8px;
  color: #929298;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.app-side-nav { display: grid; gap: 1px; }
.app-side-nav a,
.app-account-link {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  padding: 0 11px;
  border-radius: 9px;
  color: #616167;
  font-size: 14px;
  font-weight: 540;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.app-side-nav a:hover,
.app-account-link:hover { background: #f0f0f2; color: var(--ink); }
.app-side-nav a.active,
.app-account-link.active { background: #ececef; color: var(--ink); font-weight: 670; }
.app-side-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #77777d;
  font-size: 13px;
}
.app-sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.app-usage { margin: 0 9px 13px; color: var(--muted); font-size: 11px; }
.app-usage-line { height: 4px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: #e2e2e5; }
.app-usage-line i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--signal); transition: width .25s; }
.app-account-link { min-height: 49px; padding: 7px 9px; }
.app-account-avatar {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #20201d;
  color: white;
  font-size: 11px;
  font-weight: 750;
}
.app-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.app-account-link b,
.app-account-link small { display: block; }
.app-account-link b {
  max-width: 125px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-account-link small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.app-main {
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--bg);
}
.app-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(247,247,248,.92);
  backdrop-filter: blur(16px);
}
.app-crumb { color: var(--muted); font-size: 13px; }
.app-crumb b { color: var(--ink); font-weight: 650; }
.app-top-actions { display: flex; align-items: center; gap: 9px; }
.app-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.app-button-primary { border-color: #20201d; background: #20201d; color: white; }
.app-menu-button {
  display: none;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}
.app-content {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 0 28px;
}
body.workspace-mounted .tg-ws #workspace { width: 100%; }
body.workspace-mounted .tg-ws .tabstrip { display: none !important; }
body.workspace-mounted .tg-ws .app-view { min-width: 0; }
.app-view-head { margin-bottom: 26px; }
.app-view-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.app-view-eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 99px; background: var(--signal); }
.app-view-head h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 630;
  letter-spacing: -.045em;
  line-height: 1.04;
}
.app-view-head p { max-width: 650px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.app-sidebar-backdrop { display: none; }

/* Shared production panels */
body.workspace-mounted .tg-ws .card {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: none;
}
body.workspace-mounted .tg-ws .card + .card { margin-top: 16px; }
body.workspace-mounted .tg-ws .card-head h2,
body.workspace-mounted .tg-ws .card > h2 { color: var(--ink); font-size: 16px; font-weight: 670; letter-spacing: -.018em; }
body.workspace-mounted .tg-ws .card-head p,
body.workspace-mounted .tg-ws .card > .card-sub { color: var(--muted); font-size: 12px; }
body.workspace-mounted .tg-ws .scope-note {
  padding: 5px 9px;
  border-color: var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
body.workspace-mounted .tg-ws .switch {
  width: 44px;
  height: 25px;
  border-color: #cfcfd4;
  background: #d5d5d9;
}
body.workspace-mounted .tg-ws .switch::after {
  top: 2px;
  left: 2px;
  width: 19px;
  height: 19px;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
body.workspace-mounted .tg-ws .switch[aria-checked="true"] { border-color: #20201d; background: #20201d; }
body.workspace-mounted .tg-ws .switch[aria-checked="true"]::after { transform: translateX(19px); background: white; }
body.workspace-mounted .tg-ws .setting-row { border-color: var(--line); }
body.workspace-mounted .tg-ws .setting-copy strong { color: var(--ink); font-size: 13px; }
body.workspace-mounted .tg-ws .setting-copy span { color: var(--muted); font-size: 11px; }

/* Create */
body.workspace-mounted .tg-ws #make-card {
  container-type: inline-size;
  padding: 22px;
}
body.workspace-mounted .tg-ws #make-card > .make {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
body.workspace-mounted .tg-ws #make-card > .make .m-copy h2 { font-size: 16px; }
body.workspace-mounted .tg-ws #make-card > .make .m-copy p { color: var(--muted); font-size: 12px; }
body.workspace-mounted .tg-ws .allowance .a-track { background: #e7e7e9; }
body.workspace-mounted .tg-ws .allowance .a-fill { background: var(--signal); }
body.workspace-mounted .in-workspace .gen-card { border: 0; background: none; padding: 0; }
body.workspace-mounted .in-workspace .gen-copy .hint-line { max-width: 540px; color: var(--muted); font-size: 13px; }
body.workspace-mounted .in-workspace .gen-card #gen-btn {
  min-height: 46px;
  width: auto;
  min-width: 230px;
  border-radius: 9px;
}
body.workspace-mounted .in-workspace .deliverables {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
}
body.workspace-mounted .in-workspace .deliverables > div { border-color: var(--line); }
body.workspace-mounted .in-workspace .customize-toggle {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  padding: 0 13px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
body.workspace-mounted .in-workspace .customize-toggle small { color: var(--muted); }
body.workspace-mounted .in-workspace .pick-item,
body.workspace-mounted .in-workspace .style-tile {
  border-color: var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
}
body.workspace-mounted .in-workspace .pick-item.sel,
body.workspace-mounted .in-workspace .style-tile.sel { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
body.workspace-mounted .in-workspace .output-zone {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
/* The output row mixes .btn (redesign geometry) with the older .mini-btn
   pills. Hold them to the same box so the row reads as one control strip. */
body.workspace-mounted .in-workspace .mini-btn {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 9px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 650;
}
body.workspace-mounted .in-workspace .mini-btn:hover:not(:disabled) { background: var(--surface-2); }
body.workspace-mounted .output-edit-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  opacity: .48;
  pointer-events: auto;
}
body.workspace-mounted .output-edit-link[aria-disabled="true"] { cursor: not-allowed; }
/* Ready is full opacity and nothing else — the yellow it used to take is
   reserved for generate actions and receipts, and here it read as a warning. */
body.workspace-mounted .output-edit-link.is-ready { opacity: 1; }
body.workspace-mounted .in-workspace .output-head h2 { color: var(--ink); }
body.workspace-mounted .in-workspace .slide-box,
body.workspace-mounted .in-workspace .caption-card { border-color: var(--line); background: #f0f0f2; }

/* Posts */
body.workspace-mounted .tg-ws #posts-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
body.workspace-mounted .tg-ws #posts-list .group-label {
  grid-column: 1 / -1;
  margin: 8px 0 -2px;
}
body.workspace-mounted .tg-ws #posts-list .group-label:not(:first-child) { margin-top: 20px; }
body.workspace-mounted .tg-ws #posts-list .post {
  min-width: 0;
  margin: 0;
  border-color: var(--line);
  border-radius: 12px;
  background: white;
}
body.workspace-mounted .tg-ws #posts-list .post:hover { border-color: var(--line-2); transform: translateY(-1px); }
body.workspace-mounted .tg-ws .post-head { padding: 12px 13px; border-bottom: 1px solid var(--line); }
body.workspace-mounted .tg-ws .post-when { color: var(--ink); font-size: 10px; }
body.workspace-mounted .tg-ws .post-kind { color: var(--muted); font-size: 9px; }
body.workspace-mounted .tg-ws .status-pill { padding: 4px 7px; border-radius: 6px; font-size: 8px; }
body.workspace-mounted .tg-ws .status-pill.queued,
body.workspace-mounted .tg-ws .status-pill.skipped { background: #eeeeef; color: #646469; }
body.workspace-mounted .tg-ws .status-pill.posted { background: #dceee4; color: #286244; }
/* Saved: made and kept, not yet sent anywhere. The signal colour is reserved
   for receipts and generate actions, and a finished post waiting to go out is
   exactly the receipt this list exists to show. */
body.workspace-mounted .tg-ws .status-pill.saved { background: #fbeeb4; color: #6a5900; }
body.workspace-mounted .tg-ws .status-pill.publishing,
body.workspace-mounted .tg-ws .status-pill.submitted,
body.workspace-mounted .tg-ws .status-pill.verifying { background: #e5ecf8; color: #436694; }
body.workspace-mounted .tg-ws .post-slides {
  gap: 7px;
  padding: 12px 13px;
  scroll-snap-type: x mandatory;
}
body.workspace-mounted .tg-ws .slide {
  width: 105px;
  border-radius: 7px;
  scroll-snap-align: start;
}
body.workspace-mounted .tg-ws .post-caption { padding: 2px 13px 12px; color: var(--muted); font-size: 11px; }
body.workspace-mounted .tg-ws .post-actions { padding: 0 13px 13px; }
body.workspace-mounted .tg-ws .post-actions .btn { min-height: 31px; padding: 0 9px; font-size: 9px; }
body.workspace-mounted .tg-ws .post-metrics { border-color: var(--line); background: #fafafa; }
body.workspace-mounted .tg-ws #totals-card { margin-top: 16px; }
body.workspace-mounted .tg-ws .tot { border-color: var(--line); background: #fafafa; }

/* Brand */
body.workspace-mounted .tg-ws #pane-brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
body.workspace-mounted .tg-ws #pane-brand[hidden] { display: none !important; }
body.workspace-mounted .tg-ws #pane-brand .app-view-head,
body.workspace-mounted .tg-ws #pane-brand #ws-product { grid-column: 1 / -1; }
body.workspace-mounted .tg-ws #pane-brand #look-card { margin: 0; }
body.workspace-mounted .in-workspace-product .profile-card {
  padding: 16px;
  border-color: var(--line);
  border-radius: 12px;
  background: white;
}
body.workspace-mounted .in-workspace-product .product-identity { align-items: center; }
body.workspace-mounted .in-workspace-product .promoting-label { color: var(--muted); }
body.workspace-mounted .in-workspace-product .ps-name { color: var(--ink); }
body.workspace-mounted .in-workspace-product .ps-what { color: var(--muted); }
body.workspace-mounted .in-workspace-product .profile-card .pastebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
body.workspace-mounted .in-workspace-product .profile-card .pastebar input {
  flex: none;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  line-height: 44px;
}
body.workspace-mounted .in-workspace-product .profile-card .pastebar .btn {
  width: auto;
  min-height: 44px;
  padding-inline: 17px;
  white-space: nowrap;
}
body.workspace-mounted .tg-ws .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.workspace-mounted .tg-ws .template-opt {
  border-color: var(--line);
  border-radius: 11px;
  background: white;
  color: var(--ink);
}
body.workspace-mounted .tg-ws .template-opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
body.workspace-mounted .tg-ws .template-shots { border-color: var(--line); }
body.workspace-mounted .tg-ws .store-option { border-color: var(--line); border-radius: 9px; background: #fafafa; }
body.workspace-mounted .tg-ws .store-option.is-selected { border-color: var(--ink); background: white; }
body.workspace-mounted .tg-ws .store-option.is-selected .store-check { border-color: var(--ink); background: var(--ink); color: white; }
body.workspace-mounted .tg-ws .save-bar { border-color: var(--line); }
body.workspace-mounted .tg-ws .preview-frame { border-color: var(--line); border-radius: 11px; }

/* Publishing */
body.workspace-mounted .tg-ws #pane-publishing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 12px;
  align-items: start;
}
body.workspace-mounted .tg-ws #pane-publishing[hidden] { display: none !important; }
body.workspace-mounted .tg-ws #pane-publishing .app-view-head,
body.workspace-mounted .tg-ws #pane-publishing #attention,
body.workspace-mounted .tg-ws #pane-publishing #status-card,
body.workspace-mounted .tg-ws #pane-publishing #upsell-card { grid-column: 1 / -1; }
body.workspace-mounted .tg-ws #status-card {
  padding: 19px 21px;
}
body.workspace-mounted .tg-ws .machine .m-state { color: var(--ink); font-size: 16px; }
body.workspace-mounted .tg-ws .machine .m-next { color: var(--muted); font-size: 11px; }
body.workspace-mounted .tg-ws .health {
  margin-top: 14px;
  border-color: var(--line);
  border-radius: 9px;
  background: #fafafa;
}
body.workspace-mounted .tg-ws .health.healthy .dot { background: #347352; box-shadow: 0 0 0 4px #dceee4; }
body.workspace-mounted .tg-ws .health .h-title { color: var(--ink); }
body.workspace-mounted .tg-ws .paused-note { border-color: var(--line); background: #eeeeef; color: var(--muted); }
body.workspace-mounted .tg-ws #schedule-card,
body.workspace-mounted .tg-ws #accounts-card { margin: 0; }
body.workspace-mounted .tg-ws .slot-grid { grid-template-columns: repeat(2, 1fr); }
body.workspace-mounted .tg-ws .slot {
  border-color: var(--line);
  border-radius: 9px;
  background: #fafafa;
}
body.workspace-mounted .tg-ws .slot[aria-pressed="true"] { border-color: var(--ink); background: white; box-shadow: inset 0 0 0 1px var(--ink); }
body.workspace-mounted .tg-ws .slot[aria-pressed="true"] .s-time { color: var(--ink); }
body.workspace-mounted .tg-ws .account-row,
body.workspace-mounted .tg-ws .plat-chip { border-color: var(--line); background: #fafafa; color: var(--ink); }

/* Publishing connection state */
body.workspace-mounted .tg-ws .publishing-alert {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  margin: 0;
  padding: 16px 17px;
  border-color: #e3c7a0;
  background: #fff8ed;
  color: var(--ink);
}
body.workspace-mounted .tg-ws .publishing-alert-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #dec093;
  border-radius: 10px;
  background: #fff;
  color: #895c1d;
  font-size: 15px;
  font-weight: 760;
}
body.workspace-mounted .tg-ws .publishing-alert-copy { display: grid; gap: 2px; min-width: 0; }
body.workspace-mounted .tg-ws .publishing-alert-copy strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
}
body.workspace-mounted .tg-ws .publishing-alert-copy span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
body.workspace-mounted .tg-ws .publishing-alert-copy strong:not(:first-child) { margin-top: 7px; }

body.workspace-mounted .tg-ws #accounts-card .card-body { margin-top: 16px; }
body.workspace-mounted .tg-ws .connection-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafafa;
}
body.workspace-mounted .tg-ws #accounts-card .connection-state.is-empty {
  grid-template-columns: 1fr;
  align-items: start;
  justify-items: start;
  gap: 15px;
  padding: 20px;
}
body.workspace-mounted .tg-ws #accounts-card .connection-state.is-empty .connection-action { width: 100%; }
body.workspace-mounted .tg-ws .connection-visual { position: relative; }
body.workspace-mounted .tg-ws .social-platform-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
  text-transform: uppercase;
}
body.workspace-mounted .tg-ws .social-platform-instagram {
  border-color: #dec4d7;
  background: #fff7fc;
  color: #9a3f7b;
}
body.workspace-mounted .tg-ws .social-platform-tiktok { background: #202023; color: #fff; }
body.workspace-mounted .tg-ws .connection-link-mark {
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid #fafafa;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  font-size: 13px;
  line-height: 1;
}
body.workspace-mounted .tg-ws .connection-copy { min-width: 0; }
body.workspace-mounted .tg-ws .connection-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.workspace-mounted .tg-ws .connection-copy h3 { font-size: 15px; font-weight: 720; letter-spacing: -.01em; }
body.workspace-mounted .tg-ws .connection-copy p {
  max-width: 58ch;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
body.workspace-mounted .tg-ws .connection-benefits { display: flex; gap: 8px 15px; flex-wrap: wrap; margin-top: 10px; }
body.workspace-mounted .tg-ws .connection-benefits span {
  position: relative;
  padding-left: 13px;
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 620;
}
body.workspace-mounted .tg-ws .connection-benefits span::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #347352;
}
body.workspace-mounted .tg-ws .connected-platforms { display: grid; gap: 8px; }
body.workspace-mounted .tg-ws .social-account-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
}
body.workspace-mounted .tg-ws .social-account-row strong {
  display: block;
  font-size: 12px;
  text-transform: capitalize;
}
body.workspace-mounted .tg-ws .social-account-row > div > span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
body.workspace-mounted .tg-ws .account-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}
body.workspace-mounted .tg-ws .account-status i { width: 7px; height: 7px; border-radius: 50%; background: #aaaab0; }
body.workspace-mounted .tg-ws .is-connected .account-status { color: #347352; }
body.workspace-mounted .tg-ws .is-connected .account-status i { background: #347352; box-shadow: 0 0 0 3px #dceee4; }
body.workspace-mounted .tg-ws .connection-warning { margin-top: 10px; color: var(--danger); font-size: 11px; }
body.workspace-mounted .tg-ws .connection-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
body.workspace-mounted .tg-ws .connection-footer > span { color: var(--muted); font-size: 10px; }

/* Calendar */
body.workspace-mounted .tg-ws .app-view-calendar > .app-view-head { display: none; }
body.workspace-mounted .tg-ws #calendar-card { margin: 0; padding: 0; overflow: hidden; }
body.workspace-mounted .tg-ws #calendar-card > .card-head { display: none; }
body.workspace-mounted .tg-ws #calendar-card > .card-body { margin-top: 0; }
body.workspace-mounted .tg-ws .batch-bar { padding: 0 20px; }
body.workspace-mounted .tg-ws #batch-count {
  border-color: var(--line);
  border-radius: 8px;
  background: #fafafa;
  color: var(--ink);
}
body.workspace-mounted .tg-ws #draft-tray { padding: 0 20px; }
body.workspace-mounted .tg-ws .tray {
  border-color: var(--line-2);
  border-radius: 9px;
  background: #fafafa;
}
body.workspace-mounted .tg-ws .dcard {
  border-color: var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
}
body.workspace-mounted .tg-ws #create-schedule-card .dcard.selected {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.month-toolbar {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}
.month-nav { display: flex; align-items: center; gap: 8px; }
.month-nav h2 { min-width: 150px; margin: 0 5px; font-size: 15px; font-weight: 680; letter-spacing: -.02em; }
.month-arrow {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  cursor: pointer;
}
.month-arrow:hover { border-color: var(--line-2); color: var(--ink); }
.month-connection { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.month-connection i { width: 7px; height: 7px; border-radius: 50%; background: #347352; }
.month-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--line);
  background: #fafafa;
}
.month-weekdays span {
  padding: 8px 9px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.month-weekdays span:last-child { border-right: 0; }
body.workspace-mounted .tg-ws .wk.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(52px, 1fr));
  height: clamp(324px, calc(100vh - 370px), 500px);
  gap: 0;
  overflow: hidden;
  border: 0;
}
body.workspace-mounted .tg-ws .month-cell {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 7px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: white;
}
body.workspace-mounted .tg-ws .month-cell:nth-child(7n) { border-right: 0; }
body.workspace-mounted .tg-ws .month-cell:nth-last-child(-n+7) { border-bottom: 0; }
body.workspace-mounted .tg-ws .month-cell.outside { background: #fafafa; }
body.workspace-mounted .tg-ws .month-cell.past { opacity: 1; }
body.workspace-mounted .tg-ws .month-cell.past .month-day-number { color: #b6b6bb; }
body.workspace-mounted .tg-ws .month-cell.today { box-shadow: inset 0 0 0 1px #20201d; }
body.workspace-mounted .tg-ws .month-cell.over { background: #f0f0f2; box-shadow: inset 0 0 0 1px var(--ink); }
.month-day-number {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  margin-bottom: 4px;
  border-radius: 50%;
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.month-cell.today .month-day-number { background: #20201d; color: white; }
.month-event {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-top: 4px;
  padding: 5px 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  cursor: grab;
}
.month-event:active { cursor: grabbing; }
.month-event-dot { width: 7px; height: 7px; border-radius: 2px; background: #20201d; }
.month-event-copy { min-width: 0; }
.month-event-copy b,
.month-event-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.month-event-copy b { font-size: 9px; font-weight: 650; }
.month-event-copy small { margin-top: 1px; color: var(--muted); font-size: 8px; }
.month-event .d-off { width: 18px; height: 18px; padding: 0; }
.month-more { margin: 5px 3px 0; color: var(--muted); font-size: 8px; }
.mobile-agenda { display: none; }
.agenda-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.agenda-date {
  color: var(--muted);
  font-size: 9px;
  text-align: center;
  text-transform: uppercase;
}
.agenda-date b { display: block; color: var(--ink); font-size: 17px; line-height: 1; }
.agenda-row > div:nth-child(2) { min-width: 0; }
.agenda-row > div:nth-child(2) b,
.agenda-row > div:nth-child(2) span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-row > div:nth-child(2) b { font-size: 12px; }
.agenda-row > div:nth-child(2) span { margin-top: 3px; color: var(--muted); font-size: 10px; }

/* Account */
body.workspace-mounted .tg-ws #pane-account { max-width: 760px; }
body.workspace-mounted .tg-ws #plan-card { margin: 0; }
body.workspace-mounted .tg-ws .identity-avatar { border-color: var(--line); background: #20201d; color: white; }
body.workspace-mounted .tg-ws .plan-price strong { color: var(--ink); }

/* Neutral empty/error states */
body.workspace-mounted .tg-ws .banner { border-color: var(--danger-line); border-radius: 9px; background: var(--danger-soft); color: var(--ink-2); }
body.workspace-mounted .tg-ws .empty { color: var(--muted); }
body.workspace-mounted .tg-ws .boot { color: var(--muted); }

@media (max-width: 1050px) {
  body.workspace-mounted .tg-ws #posts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.workspace-mounted .tg-ws #pane-brand { grid-template-columns: 1fr; }
  body.workspace-mounted .tg-ws #pane-brand .app-view-head,
  body.workspace-mounted .tg-ws #pane-brand #ws-product { grid-column: auto; }
  body.workspace-mounted .tg-ws #pane-publishing { grid-template-columns: 1fr; }
  body.workspace-mounted .tg-ws #pane-publishing .app-view-head,
  body.workspace-mounted .tg-ws #pane-publishing #attention,
  body.workspace-mounted .tg-ws #pane-publishing #status-card,
  body.workspace-mounted .tg-ws #pane-publishing #upsell-card { grid-column: auto; }
}

@media (max-width: 760px) {
  body.workspace-mounted { overflow: auto; }
  body.workspace-mounted .tg-ws .postmaxx-app-shell { display: block; }
  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 218px;
    height: 100dvh;
    max-height: 100dvh;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    overflow: hidden;
    transform: translateX(-102%);
    box-shadow: 18px 0 50px rgba(0,0,0,.14);
    transition: transform .2s ease;
  }
  .app-sidebar-foot { flex: 0 0 auto; }
  body.app-menu-open .app-sidebar { transform: none; }
  .app-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: block;
    border: 0;
    background: rgba(31,31,34,.36);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
  }
  body.app-menu-open .app-sidebar-backdrop { opacity: 1; pointer-events: auto; }
  .app-main { height: auto; min-height: 100vh; overflow: visible; }
  .app-topbar { display: flex; min-height: 52px; padding: 0 14px; }
  .app-menu-button { display: inline-flex; align-items: center; }
  .app-crumb { display: none; }
  .app-top-actions { margin-left: auto; }
  .app-button { min-height: 38px; padding: 0 12px; }
  .app-content { width: min(100% - 28px, 1180px); min-height: calc(100vh - 52px); padding: 18px 0 64px; }
  .app-view-head { margin-bottom: 22px; }
  .app-view-head h1 { font-size: 32px; letter-spacing: -.04em; }
  .app-view-head p { font-size: 13px; }
  body.workspace-mounted .tg-ws .card { padding: 17px; border-radius: 12px; }
  body.workspace-mounted .tg-ws #posts-list { grid-template-columns: 1fr; }
  body.workspace-mounted .tg-ws #posts-list .post { border-radius: 11px; }
  body.workspace-mounted .tg-ws .slide { width: min(36vw, 132px); }
  body.workspace-mounted .tg-ws #make-card { padding: 17px; }
  body.workspace-mounted .in-workspace .gen-card #gen-btn { width: 100%; }
  body.workspace-mounted .tg-ws .template-grid { grid-template-columns: 1fr; }
  body.workspace-mounted .tg-ws .closing-layout { grid-template-columns: 1fr; }
  body.workspace-mounted .tg-ws .closing-preview { max-width: 300px; }
  body.workspace-mounted .tg-ws .slot-grid { grid-template-columns: repeat(2, 1fr); }
  body.workspace-mounted .tg-ws .publishing-alert { grid-template-columns: 38px minmax(0, 1fr); }
  body.workspace-mounted .tg-ws .publishing-alert .btn { grid-column: 1 / -1; width: 100%; }
  body.workspace-mounted .tg-ws .connection-state { grid-template-columns: auto minmax(0, 1fr); }
  body.workspace-mounted .tg-ws .connection-action { grid-column: 1 / -1; width: 100%; }
  body.workspace-mounted .tg-ws .connection-footer { align-items: stretch; flex-direction: column; }
  body.workspace-mounted .tg-ws .connection-footer .btn { width: 100%; }
  body.workspace-mounted .tg-ws #calendar-card {
    width: calc(100% + 28px);
    margin-left: -14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
  .month-toolbar { min-height: 60px; padding: 0 14px; }
  .month-nav { width: 100%; }
  .month-nav h2 { flex: 1; min-width: 0; text-align: center; }
  .month-connection { display: none; }
  .month-weekdays,
  body.workspace-mounted .tg-ws .wk.month-grid { display: none; }
  .mobile-agenda { display: block; padding: 16px; }
}

@media (max-width: 760px) and (max-height: 700px) {
  .app-sidebar { padding-top: 9px; padding-bottom: calc(9px + env(safe-area-inset-bottom)); }
  .app-brand { padding-top: 5px; padding-bottom: 9px; }
  .app-nav-label { margin-top: 8px; margin-bottom: 4px; }
  .app-side-nav a { min-height: 34px; font-size: 13px; }
  .app-sidebar-foot { padding-top: 8px; }
  .app-usage { margin-bottom: 7px; font-size: 10px; }
  .app-usage-line { margin-top: 5px; }
  .app-account-link { min-height: 43px; padding-block: 5px; }
}

/* Production post library: the real account data uses these cards. */
body.workspace-mounted .tg-ws #posts-list { gap: 18px; }
body.workspace-mounted .tg-ws #posts-list .post {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface) !important;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
body.workspace-mounted .tg-ws .post-cover { position: relative; padding: 11px 11px 0; }
body.workspace-mounted .tg-ws #posts-list .post-slides {
  display: block;
  height: auto;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #111214;
}
body.workspace-mounted .tg-ws #posts-list .post-slides .slide {
  display: none !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  border: 0;
  border-radius: 10px;
}
body.workspace-mounted .tg-ws #posts-list .post-slides .slide:first-child { display: flex !important; }
body.workspace-mounted .tg-ws #posts-list .post-slides .slide .s-acc { width: 42px; height: 7px; margin: 8px 0 20px; }
body.workspace-mounted .tg-ws #posts-list .post-slides .slide .s-h { font-size: clamp(21px, 2vw, 31px); line-height: 1.08; }
body.workspace-mounted .tg-ws #posts-list .post-slides .slide .s-b { margin-top: 13px; font-size: clamp(11px, .9vw, 14px); }
body.workspace-mounted .tg-ws #posts-list .post-slides .slide .s-cta { font-size: 12px; }
body.workspace-mounted .tg-ws #posts-list .post-slides .slide canvas,
body.workspace-mounted .tg-ws #posts-list .post-slides .slide img { width: 100%; height: 100%; object-fit: cover; }
body.workspace-mounted .tg-ws .post-slide-count {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(17,18,20,.78);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
body.workspace-mounted .tg-ws .post-body { padding: 15px 16px 16px; background: var(--surface) !important; }
body.workspace-mounted .tg-ws #posts-list .post-head {
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent !important;
}
body.workspace-mounted .tg-ws #posts-list .post-when,
body.workspace-mounted .tg-ws #posts-list .post-kind { color: var(--muted); font-size: 10px; }
body.workspace-mounted .tg-ws .post-title {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.28;
  letter-spacing: -.015em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
body.workspace-mounted .tg-ws #posts-list .post-caption {
  padding: 0;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
body.workspace-mounted .tg-ws #posts-list .post-error {
  margin: 11px 0 0;
  padding: 10px 11px;
  border: 1px solid color-mix(in srgb, #d65c5c 30%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, #d65c5c 9%, var(--surface));
  color: #b94b4b;
  font-size: 11px;
  line-height: 1.45;
  max-height: 72px;
  overflow: auto;
}
body.workspace-mounted .tg-ws #posts-list .post-actions {
  margin-top: 14px;
  padding: 13px 0 0;
  border-top: 1px solid var(--line);
}
body.workspace-mounted .tg-ws #posts-list .post-actions .btn { min-height: 34px; padding: 0 11px; font-size: 10px; }
body.workspace-mounted .tg-ws #posts-list .post-metrics {
  margin: 14px -16px -16px;
  border-top: 1px solid var(--line);
  background: var(--surface-2) !important;
}

/* Create owns the make-to-schedule workflow; Calendar is now planning-only. */
body.workspace-mounted .tg-ws #create-schedule-card { margin-top: 18px; padding: 0; overflow: hidden; }
.create-schedule-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.create-schedule-head .eyebrow { display: block; margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.create-schedule-head h2 { margin: 0; color: var(--ink); font-size: 22px; letter-spacing: -.025em; }
.create-schedule-head p { max-width: 58ch; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.create-schedule-body { padding: 22px 24px 24px; }
.create-batch-copy { display: flex; align-items: baseline; gap: 10px; color: var(--ink); font-size: 12px; }
.create-batch-copy span { color: var(--muted); }
body.workspace-mounted .tg-ws #create-schedule-card .batch-bar { padding: 12px 0 18px; }
body.workspace-mounted .tg-ws #create-schedule-card #draft-tray { padding: 0; }
.quick-week-label { display: flex; justify-content: space-between; gap: 16px; margin: 21px 0 10px; color: var(--ink); font-size: 11px; }
.quick-week-label span { color: var(--muted); }
.quick-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.quick-day { min-width: 0; min-height: 126px; padding: 12px 9px; border-right: 1px solid var(--line); background: var(--surface); transition: background .15s, box-shadow .15s; }
.quick-day:last-child { border-right: 0; }
.quick-day.over { background: color-mix(in srgb, var(--yellow) 12%, var(--surface)); box-shadow: inset 0 0 0 2px var(--yellow); }
.quick-day-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.quick-day-head b { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; color: var(--ink); font-size: 11px; }
.quick-day.today .quick-day-head b { background: var(--ink); color: var(--bg); }
.quick-drop { display: block; margin-top: 32px; color: var(--muted); font-size: 10px; text-align: center; }
.quick-event { position: relative; margin-top: 15px; padding: 9px 20px 9px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); cursor: grab; }
.quick-event b { display: -webkit-box; overflow: hidden; color: var(--ink); font-size: 10px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.quick-event span { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.quick-event .d-off { position: absolute; top: 5px; right: 5px; }
body.workspace-mounted .tg-ws #calendar-card { padding: 0; }
body.workspace-mounted .tg-ws #calendar-card .batch-bar,
body.workspace-mounted .tg-ws #calendar-card #draft-tray { display: none !important; }

html[data-theme="dark"] body.workspace-mounted .tg-ws #posts-list .post,
html[data-theme="dark"] body.workspace-mounted .tg-ws #posts-list .post-body { background: #232324 !important; }
html[data-theme="dark"] body.workspace-mounted .tg-ws #posts-list .post-head { background: transparent !important; }
html[data-theme="dark"] body.workspace-mounted .tg-ws #posts-list .post-error { color: #f09a9a; }

@media (max-width: 1100px) {
  body.workspace-mounted .tg-ws #posts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick-day { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  body.workspace-mounted .tg-ws #posts-list { grid-template-columns: 1fr; }
  .create-schedule-head { display: block; padding: 20px 18px; }
  .create-schedule-head .btn { margin-top: 16px; }
  .create-schedule-body { padding: 18px; }
  .create-batch-copy { display: block; }
  .create-batch-copy span { display: block; margin-top: 4px; line-height: 1.45; }
  .quick-week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-day { min-height: 112px; }
  .quick-week-label span { display: none; }
}

@media (max-width: 430px) {
  .app-top-actions .app-button { font-size: 12px; }
  body.workspace-mounted .tg-ws .slot-grid { grid-template-columns: 1fr 1fr; }
  body.workspace-mounted .tg-ws .plan-summary { display: block; }
  body.workspace-mounted .tg-ws .plan-price { margin-top: 18px; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Codex-inspired dark application surfaces */
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .app-button-primary {
  border-color: #f1f1f2;
  background: #f1f1f2;
  color: #1b1b1c;
}
html[data-theme="dark"] .btn-primary:hover,
html[data-theme="dark"] .app-button-primary:hover { background: #fff; color: #1b1b1c; }
html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .app-button:not(.app-button-primary),
html[data-theme="dark"] .app-menu-button { background: var(--surface); color: var(--ink); }
html[data-theme="dark"] .btn-ghost:hover { border-color: var(--line-2); background: var(--surface-2); }
html[data-theme="dark"] .app-sidebar { background: #1e1e1f; }
html[data-theme="dark"] .app-nav-label { color: #77777d; }
html[data-theme="dark"] .app-side-nav a,
html[data-theme="dark"] .app-account-link { color: #a4a4aa; }
html[data-theme="dark"] .app-side-icon { color: #8a8a90; }
html[data-theme="dark"] .app-side-nav a:hover,
html[data-theme="dark"] .app-account-link:hover { background: #29292b; color: var(--ink); }
html[data-theme="dark"] .app-side-nav a.active,
html[data-theme="dark"] .app-account-link.active { background: #303032; color: var(--ink); }
html[data-theme="dark"] .app-usage-line { background: #343436; }
html[data-theme="dark"] .app-account-avatar,
html[data-theme="dark"] body.workspace-mounted .tg-ws .identity-avatar { background: #353537; }
html[data-theme="dark"] .app-topbar {
  border-bottom-color: var(--line);
  background: rgba(27,27,28,.92);
}
html[data-theme="dark"] .app-main { background: var(--bg); }
html[data-theme="dark"] body.workspace-mounted .tg-ws .card,
html[data-theme="dark"] body.workspace-mounted .in-workspace-product .profile-card,
html[data-theme="dark"] body.workspace-mounted .tg-ws .post,
html[data-theme="dark"] body.workspace-mounted .tg-ws .template-opt,
html[data-theme="dark"] body.workspace-mounted .tg-ws .store-option.is-selected,
html[data-theme="dark"] body.workspace-mounted .tg-ws .month-cell,
html[data-theme="dark"] .month-event { background: var(--surface); }
html[data-theme="dark"] body.workspace-mounted .tg-ws #batch-count,
html[data-theme="dark"] body.workspace-mounted .tg-ws .tray,
html[data-theme="dark"] body.workspace-mounted .tg-ws .health,
html[data-theme="dark"] body.workspace-mounted .tg-ws .slot,
html[data-theme="dark"] body.workspace-mounted .tg-ws .account-row,
html[data-theme="dark"] body.workspace-mounted .tg-ws .plat-chip,
html[data-theme="dark"] body.workspace-mounted .tg-ws .post-metrics,
html[data-theme="dark"] body.workspace-mounted .tg-ws .tot,
html[data-theme="dark"] body.workspace-mounted .tg-ws .store-option,
html[data-theme="dark"] .month-weekdays,
html[data-theme="dark"] body.workspace-mounted .tg-ws .month-cell.outside {
  background: var(--surface-2);
}
html[data-theme="dark"] body.workspace-mounted .tg-ws .dcard {
  border-color: var(--line-2);
  background: #29292b;
}
html[data-theme="dark"] body.workspace-mounted .tg-ws .publishing-alert {
  border-color: #5b4b31;
  background: #302a21;
}
html[data-theme="dark"] body.workspace-mounted .tg-ws .publishing-alert-icon {
  border-color: #655235;
  background: #3a3226;
  color: #e1bb78;
}
html[data-theme="dark"] body.workspace-mounted .tg-ws .connection-state,
html[data-theme="dark"] body.workspace-mounted .tg-ws .social-account-row { background: var(--surface-2); }
html[data-theme="dark"] body.workspace-mounted .tg-ws .connection-link-mark { border-color: var(--surface-2); }
html[data-theme="dark"] body.workspace-mounted .tg-ws .social-platform-instagram {
  border-color: #694b61;
  background: #372a34;
  color: #e49cca;
}
html[data-theme="dark"] body.workspace-mounted .tg-ws .is-connected .account-status i { box-shadow: 0 0 0 3px rgba(99,186,139,.13); }
html[data-theme="dark"] body.workspace-mounted .in-workspace .caption-card,
html[data-theme="dark"] body.workspace-mounted .tg-ws .paused-note { background: var(--surface-2); }
html[data-theme="dark"] body.workspace-mounted .tg-ws .allowance .a-track { background: #38383a; }
html[data-theme="dark"] body.workspace-mounted .tg-ws .status-pill.queued,
html[data-theme="dark"] body.workspace-mounted .tg-ws .status-pill.skipped { background: #353537; color: #b4b4b8; }
html[data-theme="dark"] body.workspace-mounted .tg-ws .status-pill.posted { background: #233b30; color: #8bd5ad; }
html[data-theme="dark"] body.workspace-mounted .tg-ws .status-pill.saved { background: #3d3517; color: #f0d54a; }
html[data-theme="dark"] body.workspace-mounted .tg-ws .status-pill.publishing,
html[data-theme="dark"] body.workspace-mounted .tg-ws .status-pill.submitted,
html[data-theme="dark"] body.workspace-mounted .tg-ws .status-pill.verifying { background: #273448; color: #9bbbed; }
html[data-theme="dark"] body.workspace-mounted .tg-ws .health.healthy .dot {
  background: #63ba8b;
  box-shadow: 0 0 0 4px rgba(99,186,139,.13);
}
html[data-theme="dark"] body.workspace-mounted .tg-ws .slot[aria-pressed="true"],
html[data-theme="dark"] body.workspace-mounted .tg-ws .template-opt[aria-pressed="true"] {
  border-color: var(--ink);
  background: #29292b;
  box-shadow: inset 0 0 0 1px var(--ink);
}
html[data-theme="dark"] body.workspace-mounted .tg-ws .month-cell.past .month-day-number { color: #626268; }
html[data-theme="dark"] body.workspace-mounted .tg-ws .month-cell.today { box-shadow: inset 0 0 0 1px var(--ink); }
html[data-theme="dark"] body.workspace-mounted .tg-ws .month-cell.over { background: #303032; }
html[data-theme="dark"] .month-cell.today .month-day-number,
html[data-theme="dark"] .month-event-dot { background: var(--ink); color: var(--bg); }
html[data-theme="dark"] body.workspace-mounted .tg-ws .switch {
  border-color: #55555a;
  background: #4a4a4e;
}
html[data-theme="dark"] body.workspace-mounted .tg-ws .switch[aria-checked="true"] {
  border-color: #e8e8e9;
  background: #e8e8e9;
}
html[data-theme="dark"] body.workspace-mounted .tg-ws .switch[aria-checked="true"]::after { background: #242425; }
html[data-theme="dark"] .app-sidebar-backdrop { background: rgba(0,0,0,.56); }

/* Theme-complete surfaces. Keep component styling on semantic tokens so a
   page cannot change its canvas without changing the cards that sit on it. */
.btn-ghost,
body:not(.workspace-mounted) .suite-nav-signin,
.app-button,
.app-menu-button,
.month-arrow,
.month-event,
body.workspace-mounted .tg-ws .card,
body.workspace-mounted .tg-ws .post,
body.workspace-mounted .tg-ws .dcard,
body.workspace-mounted .tg-ws .template-opt,
body.workspace-mounted .tg-ws .store-option.is-selected,
body.workspace-mounted .tg-ws .month-cell,
body.workspace-mounted .in-workspace-product .profile-card,
body.workspace-mounted .in-workspace .pick-item,
body.workspace-mounted .in-workspace .style-tile {
  background: var(--surface);
  color: var(--ink);
}

.btn-ghost:hover,
.month-weekdays,
body.workspace-mounted .in-workspace .deliverables,
body.workspace-mounted .in-workspace .slide-box,
body.workspace-mounted .in-workspace .caption-card,
body.workspace-mounted .tg-ws #batch-count,
body.workspace-mounted .tg-ws .tray,
body.workspace-mounted .tg-ws .health,
body.workspace-mounted .tg-ws .paused-note,
body.workspace-mounted .tg-ws .slot,
body.workspace-mounted .tg-ws .account-row,
body.workspace-mounted .tg-ws .plat-chip,
body.workspace-mounted .tg-ws .post-metrics,
body.workspace-mounted .tg-ws .tot,
body.workspace-mounted .tg-ws .store-option,
body.workspace-mounted .tg-ws .month-cell.outside {
  background: var(--surface-2);
}

.app-sidebar { background: color-mix(in srgb, var(--surface) 72%, var(--bg)); }
.app-topbar { background: color-mix(in srgb, var(--bg) 92%, transparent); }
.month-cell.today .month-day-number,
.month-event-dot,
body.workspace-mounted .tg-ws .identity-avatar {
  background: var(--ink);
  color: var(--bg);
}

/* A measured inset keeps content clear of the viewport edge without a header strip. */
.app-view-head { margin-bottom: 22px; }
body.workspace-mounted .tg-ws .card { padding: 20px; }
body.workspace-mounted .tg-ws .card-head p,
body.workspace-mounted .tg-ws .card > .card-sub { margin-top: 7px; line-height: 1.55; }
body.workspace-mounted .tg-ws .setting-row { padding-block: 14px; }
body.workspace-mounted .tg-ws .post-actions { gap: 8px; }

@media (max-width: 760px) {
  .app-content { padding-top: 18px; }
  .app-view-head { margin-bottom: 24px; }
  body.workspace-mounted .tg-ws .card { padding: 18px; }
  body.workspace-mounted .tg-ws .setting-row { gap: 18px; padding-block: 15px; }
  body.workspace-mounted .in-workspace-product .profile-card .pastebar { grid-template-columns: 1fr; }
  body.workspace-mounted .in-workspace-product .profile-card .pastebar .btn { width: 100%; }
}

/* Signed-in dashboard */
.dashboard-welcome {
  position: relative; display: flex; min-height: 130px; align-items: flex-end;
  justify-content: space-between; gap: 24px; overflow: hidden; padding: 22px 24px;
  border: 1px solid var(--line); border-radius: 17px;
  background: var(--surface);
}
.dashboard-welcome > * { position: relative; z-index: 1; }
.dashboard-welcome .app-view-eyebrow { margin-bottom: 10px; }
.dashboard-welcome h1 { margin: 0; font-size: clamp(30px,3.5vw,38px); font-weight: 640; letter-spacing: -.05em; line-height: 1.02; }
.dashboard-welcome p { max-width: 640px; margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.dashboard-create { flex: 0 0 auto; min-width: 126px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; margin-top: 12px; }
.dashboard-stat { min-width: 0; padding: 15px 17px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.dashboard-stat > span, .dashboard-stat small { display: block; color: var(--muted); }
.dashboard-stat > span { font-size: 11px; font-weight: 650; }
.dashboard-stat strong { display: block; margin-top: 6px; font-size: 26px; font-weight: 670; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.dashboard-stat small { min-height: 14px; margin-top: 6px; overflow: hidden; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(285px,.75fr); gap: 12px; margin-top: 12px; align-items: start; }
.dashboard-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.dashboard-panel-head { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.dashboard-panel-head h2 { margin: 3px 0 0; font-size: 16px; font-weight: 670; letter-spacing: -.02em; }
.dashboard-panel-head > a { color: var(--muted); font-size: 11px; font-weight: 620; text-decoration: none; }
.dashboard-panel-head > a:hover { color: var(--ink); }
.dashboard-kicker { display: block; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .09em; line-height: 1; text-transform: uppercase; }
.dashboard-panel-body { min-height: 130px; }
.dashboard-next-post { padding: 23px 21px 21px; }
.dashboard-next-date { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.dashboard-next-date span { color: var(--muted); font-size: 11px; }
.dashboard-next-date b { padding: 5px 8px; border-radius: 99px; background: var(--signal-soft); color: var(--ink); font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.dashboard-next-post h3 { margin: 14px 0 0; font-size: 20px; font-weight: 650; letter-spacing: -.03em; line-height: 1.25; }
.dashboard-next-post p { margin: 7px 0 18px; color: var(--muted); font-size: 11px; }
.dashboard-next-post .app-button { min-height: 36px; background: var(--surface); }
.dashboard-empty { display: flex; min-height: 130px; align-items: center; justify-content: center; padding: 19px; color: var(--muted); font-size: 12px; text-align: center; }
.dashboard-empty-action { justify-content: flex-start; gap: 13px; text-align: left; }
.dashboard-empty-action > div { flex: 1; min-width: 0; }
.dashboard-empty-action b { color: var(--ink); font-size: 13px; }
.dashboard-empty-action p { margin: 3px 0 0; line-height: 1.45; }
.dashboard-empty-action > a { flex: 0 0 auto; color: var(--ink); font-size: 11px; font-weight: 650; }
.dashboard-empty-mark { display: grid; flex: 0 0 37px; width: 37px; height: 37px; place-items: center; border-radius: 11px; background: var(--signal-soft); color: var(--ink); font-size: 19px; }
.dashboard-action-list, .dashboard-result-list { display: grid; }
.dashboard-action-list a, .dashboard-checks a { display: flex; min-height: 58px; align-items: center; gap: 11px; padding: 9px 15px; color: var(--ink); text-decoration: none; }
.dashboard-action-list a + a, .dashboard-checks a + a, .dashboard-result + .dashboard-result { border-top: 1px solid var(--line); }
.dashboard-action-list a:hover, .dashboard-checks a:hover { background: var(--surface-2); }
.dashboard-action-list a > span:nth-child(2), .dashboard-checks a > span:nth-child(2) { flex: 1; min-width: 0; }
.dashboard-action-list b, .dashboard-action-list small, .dashboard-checks b, .dashboard-checks small, .dashboard-result > span b, .dashboard-result > span small { display: block; }
.dashboard-action-list b, .dashboard-checks b, .dashboard-result > span b { font-size: 12px; font-weight: 650; }
.dashboard-action-list small, .dashboard-checks small { margin-top: 2px; color: var(--muted); font-size: 9.5px; line-height: 1.35; }
.dashboard-action-list i, .dashboard-checks i { color: var(--muted); font-size: 13px; font-style: normal; }
.dashboard-action-icon, .dashboard-check { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--ink-2); font-size: 14px; }
.dashboard-check { border-radius: 50%; color: var(--muted); }
.dashboard-check.ready { border-color: color-mix(in srgb,#3f9d72 42%,var(--line)); background: color-mix(in srgb,#3f9d72 12%,var(--surface)); color: #2e8b61; }
.dashboard-result { display: grid; grid-template-columns: minmax(0,1fr) 80px 92px; gap: 15px; align-items: center; min-height: 58px; padding: 9px 17px; }
.dashboard-result > span b { font-variant-numeric: tabular-nums; }
.dashboard-result > span small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.dashboard-result-title { min-width: 0; }
.dashboard-result-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-theme="dark"] .dashboard-welcome, html[data-theme="dark"] .dashboard-stat, html[data-theme="dark"] .dashboard-panel { background-color: var(--surface); }
html[data-theme="dark"] .dashboard-next-post .app-button { border-color: var(--line-2); background: var(--surface-2); color: var(--ink); }
html[data-theme="dark"] .dashboard-check.ready { color: #69c99a; }

.posts-view-switch { display: inline-flex; align-self: flex-end; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.view-switch-btn { min-width: 70px; padding: 8px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 11px; font-weight: 650; }
.view-switch-btn.is-active { background: var(--surface); box-shadow: 0 1px 4px rgba(20,20,20,.08); color: var(--ink); }
.posts-composer { margin: 16px 0; border-color: var(--line-2); }
.posts-composer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.posts-composer-head h2 { margin: 5px 0 0; font-size: 18px; letter-spacing: -.025em; }
.posts-composer-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.posts-composer .in-workspace { margin-top: 18px; }
.posts-composer .deliverables { display: none; }
.post { cursor: pointer; }
.post:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.post-viewer-open { overflow: hidden; }
.post-viewer { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 24px; }
.post-viewer-backdrop { position: absolute; inset: 0; background: rgba(12,15,20,.56); backdrop-filter: blur(6px); }
.post-viewer-panel { position: relative; display: flex; width: min(100%, 860px); height: min(900px, calc(100vh - 48px)); height: min(900px, calc(100dvh - 48px)); flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 24px 80px rgba(0,0,0,.24); }
.post-viewer-head, .post-viewer-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 23px; }
.post-viewer-head { flex: 0 0 auto; border-bottom: 1px solid var(--line); }
.post-viewer-head h2 { margin: 7px 0 0; font-size: 19px; letter-spacing: -.035em; }
.post-viewer-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.post-viewer-close { width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); color: var(--ink); cursor: pointer; font-size: 22px; line-height: 1; }
/* one slide at a time: each page is the full rail width, snap-locked, so a
   swipe is a slide and the arrows scroll exactly one page */
.post-viewer-stage { position: relative; display: flex; flex: 1; min-height: 0; }
.post-viewer-rail { flex: 1; display: flex; min-width: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.post-viewer-rail::-webkit-scrollbar { display: none; }
.post-viewer-slide { flex: 0 0 100%; min-width: 100%; display: flex; align-items: center; justify-content: center; padding: 20px 64px 24px; scroll-snap-align: center; scroll-snap-stop: always; }
.post-viewer-slide .slide { display: flex; height: 100%; max-height: 100%; width: auto; max-width: 100%; aspect-ratio: 4 / 5; flex-direction: column; justify-content: center; padding: clamp(18px, 4vmin, 44px); border-radius: 14px; box-shadow: 0 10px 28px rgba(15,18,23,.2); overflow: hidden; container-type: inline-size; }
.post-viewer-slide .s-acc { flex: 0 0 auto; width: 10cqi; height: 1.4cqi; margin-bottom: 6cqi; border-radius: 2px; background: var(--acc); }
.post-viewer-slide .s-h { font-size: clamp(17px, 7.4cqi, 42px); font-weight: 800; line-height: 1.16; letter-spacing: -.015em; }
.post-viewer-slide .s-b { margin-top: 4cqi; font-size: clamp(12px, 3.6cqi, 20px); line-height: 1.45; }
.post-viewer-slide .s-cta { margin-top: auto; padding-top: 4cqi; color: var(--acc); font-weight: 700; font-size: clamp(11px, 3.2cqi, 17px); }
.post-viewer-slide .slide.mono-type .s-h, .post-viewer-slide .slide.mono-type .s-b, .post-viewer-slide .slide.mono-type .s-cta { font-family: var(--mono); }
.post-viewer-slide .slide.has-img { color: #fff; }
.post-viewer-slide .slide.has-img .s-h { text-shadow: 0 1px 10px rgba(0,0,0,.55); }
.post-viewer-slide .slide.has-img .s-b { color: rgba(255,255,255,.85); }
/* publish-accurate repaint: the rendered slide replaces the CSS card */
.post-viewer-slide .slide.has-canvas { padding: 0; }
.post-viewer-slide .slide.has-canvas img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* the create page's finished slides come in as plain images */
.post-viewer-img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 10px 28px rgba(15,18,23,.2); }
.post-viewer-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; display: grid; place-items: center; width: 46px; height: 46px; padding: 0 0 3px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.28); transition: opacity .15s, border-color .15s; }
.post-viewer-arrow:hover { border-color: var(--ink); }
.post-viewer-arrow.prev { left: 14px; }
.post-viewer-arrow.next { right: 14px; }
.post-viewer-arrow:disabled { opacity: 0; pointer-events: none; }
.post-viewer-foot { flex: 0 0 auto; justify-content: flex-start; gap: 16px; border-top: 1px solid var(--line); }
.post-viewer-count { font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.post-viewer-foot p { flex: 1; margin: 0; max-height: 64px; overflow-y: auto; color: var(--muted); font-size: 11px; line-height: 1.45; }

.manual-publish-card select {
  width: 100%;
  min-height: 46px;
  padding: 10px 42px 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
}
.manual-publish-card select:focus { outline: 2px solid var(--signal-line); outline-offset: 2px; }
.manual-publish-card .actions { align-items: center; }
.manual-publish-card .msg { margin: 0; }

@media (max-width: 600px) {
  .posts-view-switch { align-self: flex-start; margin-top: 12px; }
  .post-viewer { padding: 0; }
  .post-viewer-panel { width: 100%; height: 100%; border: 0; border-radius: 0; }
  .post-viewer-head, .post-viewer-foot { padding: 13px 16px; }
  .post-viewer-head h2 { font-size: 16px; }
  /* width-driven on phones: the slide fills the screen and swipe drives it */
  .post-viewer-slide { padding: 12px 12px 16px; }
  .post-viewer-slide .slide { width: 100%; height: auto; max-height: 100%; }
  .post-viewer-arrow { width: 38px; height: 38px; font-size: 22px; }
  .post-viewer-arrow.prev { left: 8px; }
  .post-viewer-arrow.next { right: 8px; }
  .post-viewer-foot p { max-height: 44px; }
}

@media (max-width: 1020px) {
  .dashboard-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: minmax(0,1fr); }
  .dashboard-actions { grid-row: 3; }
}

@media (max-width: 600px) {
  .dashboard-welcome { min-height: 0; align-items: flex-start; padding: 23px 20px; }
  .dashboard-welcome h1 { max-width: 260px; font-size: 31px; }
  .dashboard-welcome p { max-width: 255px; font-size: 12px; }
  .dashboard-create { display: none; }
  .dashboard-stats { gap: 10px; margin-top: 10px; }
  .dashboard-stat { padding: 16px 15px 14px; }
  .dashboard-stat strong { font-size: 25px; }
  .dashboard-stat small { font-size: 9px; }
  .dashboard-grid { gap: 10px; margin-top: 10px; }
  .dashboard-panel { border-radius: 13px; }
  .dashboard-panel-head { min-height: 69px; padding: 15px 16px; }
  .dashboard-next-post { padding: 19px 17px 18px; }
  .dashboard-empty-action { flex-wrap: wrap; padding: 20px 17px; }
  .dashboard-empty-action > a { margin-left: 50px; }
  .dashboard-result { grid-template-columns: minmax(0,1fr) 61px; padding: 12px 16px; }
  .dashboard-result > span:last-child { display: none; }
}
