:root {
  --bg: oklch(98.6% 0.006 120);
  --surface: oklch(96.8% 0.008 120);
  --surface-strong: oklch(92.8% 0.014 120);
  --ink: oklch(18% 0.016 155);
  --muted: oklch(45% 0.02 155);
  --line: oklch(82% 0.012 120);
  --accent: oklch(43% 0.072 155);
  --accent-soft: oklch(90% 0.045 145);
  --danger: oklch(45% 0.15 28);
  --success: oklch(45% 0.11 145);
  --radius-min: 8px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #000;
  --surface: #000;
  --surface-strong: #050505;
  --ink: #f5f5f5;
  --muted: #a3a3a3;
  --line: #262626;
  --accent: oklch(76% 0.11 225);
  --accent-soft: #111827;
  --danger: oklch(68% 0.13 28);
  --success: oklch(72% 0.1 145);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.app-loading-screen {
  align-items: center;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  inset: 0;
  justify-content: center;
  min-height: 100vh;
  position: fixed;
  z-index: 100;
}

.app-loading-spinner {
  animation: app-loading-spin 720ms linear infinite;
  border: 2px solid var(--line);
  border-radius: 50%;
  border-top-color: var(--accent);
  height: 32px;
  width: 32px;
}

.app-loading-label {
  color: var(--muted);
  font-size: 0.82rem;
}

@keyframes app-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.image-page {
  min-height: 100svh;
  overflow-x: clip;
  overflow-y: auto;
}

.image-page .page {
  min-height: 100svh;
  overflow: visible;
}

@supports (height: 100dvh) {
  .image-page,
  .image-page .page {
    min-height: 100dvh;
  }
}

.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--bg);
  padding: 18px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark,
.brand .dot {
  display: none;
}

.topbar-spacer,
.topbar-right,
.nav {
  margin-left: auto;
}

.topbar-right,
.nav,
.meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.connections-panel,
.task-section {
  border: 2px solid var(--line);
  border-bottom-width: 4px;
  border-radius: 16px;
  background: var(--surface);
  padding: 24px;
}

.nav-link,
.ghost,
.theme-toggle,
.primary,
.submit-btn,
.connect,
.create-post-button,
a.primary {
  min-height: 40px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 12px;
  text-decoration: none;
  box-shadow: 0 2px 0 var(--line);
  transition:
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    transform 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
}

.nav-link {
  border-color: transparent;
  color: var(--muted);
}

.nav-link[aria-current="page"],
.nav-link:hover,
.nav-link:focus-visible,
.ghost:hover,
.theme-toggle:hover,
.primary:hover,
.submit-btn:hover,
.connect:hover,
a.primary:hover {
  border-color: var(--ink);
  background: var(--surface-strong);
  color: var(--ink);
}

.nav-link:active,
.ghost:active,
.theme-toggle:active,
.primary:active,
.submit-btn:active,
.connect:active,
a.primary:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 var(--line);
}

.theme-toggle[aria-pressed="true"] {
  background: var(--surface-strong);
  border-color: var(--line);
}

.connect.is-loading,
.connect:disabled {
  cursor: wait;
  opacity: 0.78;
  pointer-events: none;
}

.connect.is-loading::before {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  flex: 0 0 auto;
  animation: connect-spin 720ms linear infinite;
}

@keyframes connect-spin {
  to {
    transform: rotate(360deg);
  }
}

.menu-topbar {
  display: grid;
  gap: 14px;
  grid-template-columns: auto 1fr auto;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--bg);
}

.menu-topbar.has-auth-logout,
.menu-topbar:has(.auth-logout-button) {
  grid-template-columns: auto 1fr auto auto;
}

.menu-shell {
  position: relative;
}

.auth-logout-button {
  justify-self: end;
  white-space: nowrap;
}

.topbar-actions {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  justify-content: flex-end;
}

.menu-button {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  height: 36px;
  list-style: none;
  place-items: center;
  transition:
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    transform 180ms var(--ease-out);
  width: 36px;
}

.menu-button::-webkit-details-marker {
  display: none;
}

.menu-button:hover,
.menu-button:focus-visible,
.menu-shell[open] .menu-button {
  background: var(--surface);
  border-color: var(--ink);
}

.hamburger,
.hamburger::before,
.hamburger::after {
  background: var(--ink);
  border-radius: 999px;
  content: "";
  display: block;
  height: 1.5px;
  width: 15px;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  left: 0;
  position: absolute;
}

.hamburger::before {
  top: -5px;
}

.hamburger::after {
  top: 5px;
}

.menu-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-min);
  display: grid;
  gap: 1px;
  left: 0;
  min-width: 190px;
  padding: 6px;
  position: absolute;
  top: calc(100% + 10px);
}

.menu-panel a {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 620;
  padding: 10px 8px;
  text-decoration: none;
}

.menu-panel a:last-child {
  border-bottom: 0;
}

.menu-panel a:hover,
.menu-panel a:focus-visible {
  background: var(--surface);
}

.notification-tray {
  position: relative;
}

.notification-button {
  align-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-grid;
  min-height: 36px;
  place-items: center;
  position: relative;
  text-decoration: none;
  transition:
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    color 180ms var(--ease-out);
  width: 36px;
}

.notification-button:hover,
.notification-button:focus-visible,
.notification-tray:focus-within .notification-button {
  background: var(--surface);
  border-color: var(--ink);
}

.notification-bell {
  display: block;
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

.notification-dot {
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 999px;
  display: none;
  height: 10px;
  position: absolute;
  right: 5px;
  top: 5px;
  width: 10px;
}

.notification-tray.has-notifications .notification-dot {
  display: block;
}

.notification-preview {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-min);
  display: none;
  min-width: min(320px, calc(100vw - 36px));
  padding: 12px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 90;
}

.notification-tray:hover .notification-preview,
.notification-tray:focus-within .notification-preview {
  display: block;
}

.notification-preview-title {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.notification-preview-list {
  display: grid;
}

.notification-preview-item {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 2px;
  padding: 10px 0;
}

.notification-preview-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.notification-preview-item:last-child {
  padding-bottom: 0;
}

.notification-preview-item strong {
  font-size: 0.9rem;
  line-height: 1.3;
}

.notification-preview-item span,
.notification-preview-empty {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0;
}

.notification-preview-item small {
  color: var(--muted);
  font-size: 0.74rem;
}

.notification-preview-item.is-unread strong::after {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  display: inline-block;
  height: 6px;
  margin-left: 7px;
  vertical-align: 0.08em;
  width: 6px;
}

.theme-toggle-icon {
  aspect-ratio: 1;
  border-radius: 999px;
  color: var(--ink);
  min-height: 36px;
  padding: 0;
  width: 36px;
}

.theme-toggle-icon:hover,
.theme-toggle-icon:focus-visible {
  background: var(--surface);
}

.theme-toggle-icon .sun-mark {
  display: grid;
  height: 20px;
  place-items: center;
  position: relative;
  width: 20px;
}

.theme-toggle-icon .sun-mark::before {
  border: 2px solid currentColor;
  border-radius: 999px;
  content: "";
  height: 9px;
  width: 9px;
}

.theme-toggle-icon .sun-ray {
  background: currentColor;
  border-radius: 999px;
  height: 1.5px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(var(--ray-angle)) translateX(10px);
  transform-origin: center;
  width: 4px;
}

.theme-icon-label {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.inline-link {
  border-color: var(--line);
}

main,
.page-main {
  width: min(100% - 36px, 920px);
  margin: 0 auto;
  padding: 92px 0 96px;
  flex: 1;
}

.narrow,
.card,
.hero-card {
  width: min(100%, 640px);
}

.center {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 32px;
  padding-bottom: 24px;
}

.login-main {
  align-items: center;
  min-height: 0;
  padding-top: 24px;
  padding-bottom: 24px;
}

.login-page > .topbar,
.login-page > .footer {
  position: static;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 8vw, 84px);
  justify-items: center;
  text-align: center;
  padding-bottom: 48px;
}

.hero.center {
  min-height: calc(100svh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.under-construction-main {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 92px 18px 96px;
}

.under-construction {
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.under-construction-image {
  display: block;
  width: min(70vw, 360px);
  height: auto;
  object-fit: contain;
}

.under-construction h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 0.95;
}

.page-shell {
  width: min(100% - 36px, 920px);
  min-height: calc(100svh - 140px);
  margin: 0 auto;
  padding: 92px 0 96px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-shell {
  align-items: flex-start;
  padding-bottom: 120px;
}

.page-panel {
  width: min(100%, 720px);
  border: 1px solid var(--line);
  border-radius: var(--radius-min);
  background: color-mix(in oklch, var(--surface) 84%, var(--bg));
  padding: clamp(22px, 4vw, 36px);
}

.page-panel--narrow {
  width: min(100%, 560px);
}

.page-panel--wide {
  width: min(100%, 820px);
}

.legal-panel {
  width: min(100%, 860px);
}

.legal-copy {
  display: grid;
  gap: 18px;
}

.legal-copy > * {
  margin: 0;
}

.legal-copy .legal-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.legal-copy h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
}

.legal-copy h2 {
  margin-top: 14px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.legal-copy h3 {
  margin-top: 6px;
  font-size: 0.98rem;
  line-height: 1.25;
}

.legal-copy p,
.legal-copy li {
  color: color-mix(in oklch, var(--ink) 84%, var(--muted));
}

.legal-copy ul {
  margin: 0;
  padding-left: 1.25rem;
}

.legal-copy strong {
  color: var(--ink);
}

.panel-stack {
  display: grid;
  gap: 18px;
}

.panel-stack > * {
  margin: 0;
}

.panel-stack > p {
  color: color-mix(in oklch, var(--ink) 74%, var(--muted));
}

.panel-stack > .card-title {
  max-width: 20ch;
}

.status-pre {
  width: 100%;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-min);
  background: var(--bg);
  color: var(--muted);
  font: inherit;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.status-mark {
  width: 64px;
  height: 64px;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 999px;
  display: grid;
  place-items: center;
  animation: spin 900ms linear infinite;
}

.status-mark.done,
.status-mark.error {
  animation: none;
}

.status-mark.done {
  border-color: var(--ink);
}

.status-mark.done::after {
  content: "✓";
  font-size: 32px;
  line-height: 1;
}

.status-mark.error {
  border-color: var(--danger);
  color: var(--danger);
}

.status-mark.error::after {
  content: "!";
  font-size: 32px;
  line-height: 1;
}

.status-copy {
  color: var(--muted);
}

.status-divider {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.actions-row.hidden {
  display: none;
}

.oauth-complete-panel {
  gap: 20px;
}

.oauth-summary {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding-top: 18px;
}

.oauth-summary > div {
  display: grid;
  gap: 4px;
}

.oauth-summary dt {
  margin: 0;
}

.oauth-summary dd {
  color: var(--ink);
  font-weight: 650;
  margin: 0;
}

.redirect-status {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 18px;
}

.redirect-status-copy {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.redirect-meter {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-min);
  height: 10px;
  overflow: hidden;
}

.redirect-meter span {
  background: var(--accent);
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 120ms linear;
  width: 100%;
}

.facebook-pages-panel,
.account-selection-panel,
.failed-posts-panel,
.pending-posts-panel,
.notifications-panel {
  gap: 22px;
}

.facebook-pages-state,
.account-selection-state,
.failed-posts-state,
.pending-posts-state,
.notifications-state {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 18px;
}

.facebook-pages-form,
.account-selection-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  padding-top: 18px;
}

.facebook-pages-list,
.account-selection-list {
  border: 0;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.facebook-page-choice,
.account-selection-choice {
  align-items: center;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 0;
  padding: 13px 14px;
}

.facebook-page-choice:hover,
.facebook-page-choice:has(input:checked),
.account-selection-choice:hover,
.account-selection-choice:has(input:checked) {
  border-color: var(--ink);
  background: var(--surface);
}

.facebook-page-choice input,
.account-selection-choice input {
  margin: 0;
}

.facebook-page-copy,
.account-selection-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.facebook-page-copy strong,
.account-selection-copy strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.3;
}

.facebook-page-copy span,
.account-selection-copy span {
  color: var(--muted);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.failed-posts-shell,
.account-settings-shell,
.pending-posts-shell,
.subscription-shell,
.payment-shell {
  align-items: flex-start;
}

.account-settings-panel,
.subscription-panel,
.payment-panel {
  gap: 22px;
}

.account-settings-state {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 18px;
}

.account-settings-content {
  border: 1px solid color-mix(in oklch, var(--line) 86%, var(--accent-soft));
  border-radius: var(--radius-min);
  display: grid;
  padding: 0 16px;
}

.settings-section {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding: 18px 0;
}

.settings-section:last-child {
  border-bottom: 0;
}

.settings-section-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.settings-section-header h2 {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0;
}

.settings-detail-list {
  display: grid;
  gap: 0;
}

.settings-detail-list > div,
.settings-platform-item {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(140px, 0.4fr) minmax(0, 1fr);
  padding: 11px 0;
}

.settings-detail-list > div:first-child,
.settings-platform-item:first-child {
  border-top: 0;
}

.settings-detail-list dt,
.settings-detail-list dd {
  margin: 0;
}

.settings-detail-list dd {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.settings-platform-list,
.settings-platform-copy {
  display: grid;
}

.settings-platform-list {
  gap: 0;
}

.settings-platform-item {
  grid-template-columns: minmax(0, 1fr) auto;
}

.settings-platform-copy {
  gap: 2px;
  min-width: 0;
}

.settings-platform-copy strong {
  color: var(--ink);
  font-weight: 650;
}

.settings-platform-copy span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.settings-muted-badge {
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
}

.payment-summary,
.payment-provider-list,
.subscription-tier-list {
  border: 1px solid color-mix(in oklch, var(--line) 86%, var(--accent-soft));
  border-radius: var(--radius-min);
  display: grid;
  padding: 0 16px;
}

.payment-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-summary > div {
  display: grid;
  gap: 3px;
  padding: 14px 0;
}

.payment-summary > div + div {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.payment-summary span {
  color: var(--muted);
  font-size: 0.78rem;
}

.payment-summary strong {
  color: var(--ink);
  font-weight: 650;
}

.payment-provider,
.subscription-tier {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px 0;
}

.payment-provider:last-child,
.subscription-tier:last-child {
  border-bottom: 0;
}

.payment-provider-copy,
.subscription-tier-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.payment-provider-name,
.subscription-tier-name,
.subscription-tier-price {
  margin: 0;
}

.payment-provider-name,
.subscription-tier-name {
  color: var(--ink);
  font-weight: 650;
}

.subscription-tier-price {
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 650;
  line-height: 1.2;
}

.subscription-tier-price span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 400;
}

.subscription-tier ul {
  color: var(--muted);
  margin: 0;
  padding-left: 1.1rem;
}

.payment-provider .primary,
.payment-provider .ghost,
.subscription-tier .primary {
  align-self: start;
  white-space: nowrap;
}

.failed-posts-list,
.pending-posts-list,
.notifications-list {
  border: 1px solid color-mix(in oklch, var(--line) 86%, var(--accent-soft));
  border-radius: var(--radius-min);
  display: grid;
  padding: 0 16px;
}

.failed-post-item,
.pending-post-item,
.notification-page-item {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 16px 0;
}

.failed-post-item:last-child,
.pending-post-item:last-child,
.notification-page-item:last-child {
  border-bottom: 0;
}

.failed-post-copy,
.pending-post-copy,
.notification-page-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.failed-post-actions,
.pending-post-actions {
  align-self: start;
}

.pending-edit-dialog {
  background: var(--bg);
  border: 1px solid color-mix(in oklch, var(--line) 84%, var(--accent-soft));
  border-radius: var(--radius-min);
  color: var(--ink);
  overflow-x: hidden;
  padding: clamp(18px, 4vw, 30px);
  width: min(calc(100vw - 36px), 700px);
}

.pending-edit-dialog::backdrop {
  background: oklch(18% 0.016 225 / 0.34);
}

.pending-edit-dialog .dialog-header {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  text-align: left;
}

.pending-edit-dialog .dialog-title {
  display: block;
  font-size: clamp(1.35rem, 3vw, 1.95rem);
  font-weight: 650;
  line-height: 1.04;
}

.pending-edit-dialog .compose-grid {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.28fr) minmax(190px, 0.64fr);
  margin-top: 18px;
  padding-top: 18px;
  text-align: left;
  align-items: start;
}

.pending-edit-dialog .compose-fields,
.pending-edit-dialog .platform-checks {
  display: grid;
  gap: 12px;
}

.pending-edit-dialog .compose-fields {
  gap: 16px;
}

.pending-edit-dialog .platform-checks {
  align-content: start;
  gap: 6px;
}

.pending-edit-dialog .platform-checks label,
.pending-edit-dialog .compose-field label {
  color: var(--ink);
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
}

.pending-edit-dialog .platform-checks-title {
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  margin: 0 0 2px;
  text-transform: uppercase;
}

.pending-edit-dialog .platform-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pending-edit-dialog .platform-choice-mark {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-min);
  display: grid;
  gap: 8px;
  grid-template-columns: 18px minmax(0, 1fr);
  min-height: 28px;
  padding: 4px 6px;
}

.pending-edit-dialog .platform-choice:hover .platform-choice-mark,
.pending-edit-dialog .platform-choice input:focus-visible + .platform-choice-mark {
  border-color: var(--line);
  background: color-mix(in oklch, var(--surface) 72%, transparent);
}

.pending-edit-dialog .platform-choice input:checked + .platform-choice-mark {
  background: color-mix(in oklch, var(--accent-soft) 52%, transparent);
  border-color: var(--accent);
}

.pending-edit-dialog .platform-logo {
  align-items: center;
  aspect-ratio: 1;
  background: transparent;
  color: var(--ink);
  display: inline-grid;
  font-size: 1.3rem;
  font-weight: 750;
  justify-content: center;
  line-height: 1;
  width: 18px;
}

.pending-edit-dialog .platform-logo svg {
  height: 18px;
  width: 18px;
}

.pending-edit-dialog .schedule-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.72fr);
}

.pending-edit-dialog .tag-entry {
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-min);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
  padding: 8px 9px;
}

.pending-edit-dialog .tag-entry:focus-within {
  border-color: var(--accent);
}

.pending-edit-dialog .tag-entry input {
  border: 0;
  flex: 1 1 140px;
  min-width: 120px;
  outline: 0;
  padding: 0;
}

.pending-edit-dialog .tag-chip-list {
  display: contents;
}

.pending-edit-dialog .tag-chip {
  align-items: center;
  background: color-mix(in oklch, var(--accent-soft) 72%, var(--bg));
  border: 1px solid color-mix(in oklch, var(--line) 72%, var(--accent));
  border-radius: var(--radius-min);
  color: var(--ink);
  display: inline-flex;
  gap: 10px;
  line-height: 1;
  padding: 6px 10px;
}

.pending-edit-dialog .tag-chip-remove {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  margin-left: 2px;
  padding: 0;
}

.pending-edit-dialog textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-min);
  color: var(--ink);
  font: inherit;
  min-height: 104px;
  padding: 8px 9px;
  resize: vertical;
  width: 100%;
}

.pending-edit-dialog .field-hint {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  line-height: 1.45;
  margin-top: 6px;
}

.pending-edit-dialog .field-hint--error,
.pending-edit-dialog .compose-form-error {
  color: var(--danger);
}

.pending-edit-dialog .compose-form-error {
  font-size: 0.9rem;
  margin-top: 14px;
}

.pending-edit-dialog .dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 22px;
}

.failed-post-copy h2,
.pending-post-copy h2,
.notification-page-copy h2 {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0;
}

.failed-post-copy p,
.pending-post-copy p,
.notification-page-copy p {
  color: color-mix(in oklch, var(--ink) 78%, var(--muted));
  margin: 0;
}

.failed-post-meta,
.pending-post-meta,
.notification-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.failed-post-meta-item,
.pending-post-meta-item,
.notification-page-meta-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-min);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 4px 7px;
}

.notifications-pagination {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 18px;
}

.notifications-pagination span {
  color: var(--muted);
  font-size: 0.84rem;
}

@media (max-width: 760px) {
  .failed-post-item,
  .pending-post-item,
  .notification-page-item,
  .payment-provider,
  .payment-summary,
  .settings-detail-list > div,
  .settings-platform-item,
  .subscription-tier,
  .pending-edit-dialog .compose-grid,
  .pending-edit-dialog .schedule-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .payment-summary > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }
}

.action-arrow {
  align-self: center;
  color: var(--muted);
  font-weight: 650;
}

.eyebrow,
.section-label,
.badge,
dt,
.project-facts span,
.stat-label,
.form-note,
.footer,
footer,
.user-email,
.pill,
.range,
.meta,
.card-sub,
.hero-body,
.action-text span,
.platform-info span,
.switch-link,
label {
  color: var(--muted);
}

.eyebrow,
.section-label,
.badge,
dt,
.project-facts span {
  display: block;
  margin: 0 0 10px;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
.card-title,
.hero-card h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.5rem, 8vw, 5.6rem);
  font-weight: 650;
  line-height: 0.97;
  letter-spacing: 0;
}

.card-title {
  font-size: 1.1rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.hero-card h1 {
  font-size: clamp(2.1rem, 6vw, 3.7rem);
}

h1 span,
.stat-num {
  color: var(--ink);
}

p {
  margin: 0;
  max-width: 68ch;
}

.hero p,
.hero-body,
.card p {
  margin-top: 48px;
}

.hero-lede {
  color: color-mix(in oklch, var(--ink) 74%, var(--muted));
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.platform-list {
  display: grid;
  gap: 12px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.hero-meta > *,
.detail,
.feature-pill,
.stat-box,
.empty,
.error {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.hero-meta strong,
.detail dd,
.project-facts strong,
.action-text strong,
.platform-info strong {
  display: block;
  color: var(--ink);
  font-weight: 550;
}

.project-link {
  width: max-content;
}

.home-hero {
  align-items: end;
  min-height: clamp(420px, 58vh, 640px);
}

.hero-copy {
  padding-bottom: clamp(0px, 3vw, 34px);
}

.project-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius-min);
  background: color-mix(in oklch, var(--accent-soft) 68%, var(--surface));
  padding: clamp(18px, 3vw, 28px);
}

.project-panel h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: 0;
}

.project-panel p {
  margin-top: 14px;
  color: color-mix(in oklch, var(--ink) 78%, var(--muted));
}

.project-facts {
  display: grid;
  gap: 0;
  margin-top: auto;
  padding-top: 28px;
}

.project-facts > div {
  border-top: 1px solid color-mix(in oklch, var(--line) 72%, var(--ink));
  padding-top: 13px;
}

.project-facts > div + div {
  margin-top: 13px;
}

.signal {
  display: none;
}

.card,
.hero-card {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.login-sky-dock {
  align-items: center;
  background: var(--bg);
  border: 0;
  border-radius: var(--radius-min);
  display: grid;
  gap: clamp(28px, 6vw, 70px);
  grid-template-columns: repeat(2, minmax(300px, 360px));
  justify-content: center;
  max-width: 900px;
  padding: clamp(20px, 4vw, 42px);
  width: min(100%, 900px);
}

.login-sky-dock > * + * {
  margin-top: 0;
}

.login-sky-dock .login-art {
  align-self: stretch;
  background: var(--surface);
  border-radius: var(--radius-min);
  display: grid;
  min-height: 410px;
  overflow: hidden;
  padding: clamp(18px, 3vw, 28px);
  position: relative;
}

.login-sky-dock .login-art::before {
  display: none;
}

.login-sky-dock .image-placeholder {
  align-self: end;
  aspect-ratio: 16 / 11;
  border: 1px solid color-mix(in oklch, var(--accent) 28%, var(--line));
  border-radius: var(--radius-min);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.login-sky-dock .image-placeholder span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-sky-dock .login-form-panel {
  background: var(--bg);
  justify-self: stretch;
  width: 100%;
}

.login-sky-dock .card-title {
  font-size: clamp(1.7rem, 4vw, 2.65rem);
  line-height: 0.98;
  max-width: 10ch;
}

.login-actions {
  display: grid;
  gap: 12px;
}

.signup-button {
  width: 100%;
}

.signout-sky-main {
  min-height: calc(100vh - 73px);
  place-items: center;
  width: min(100% - 36px, 960px);
}

.signout-frame {
  background: var(--bg);
  border: 1px solid color-mix(in oklch, var(--line) 82%, var(--accent));
  border-radius: var(--radius-min);
  display: grid;
  gap: clamp(18px, 4vw, 38px);
  grid-template-columns: minmax(300px, 1.05fr) minmax(300px, 0.82fr);
  max-width: 960px;
  padding: clamp(18px, 3vw, 34px);
  width: min(100%, 960px);
}

.signout-frame > * + * {
  margin-top: 0;
}

.login-sky-dock .login-art {
  align-self: stretch;
  background: var(--bg);
  display: grid;
  min-height: 410px;
  overflow: hidden;
  padding: clamp(18px, 3vw, 28px);
  position: relative;
}

.signout-frame .image-placeholder {
  border: 1px solid color-mix(in oklch, var(--accent) 24%, var(--line));
  border-radius: var(--radius-min);
  display: grid;
  min-height: 100%;
  place-items: center;
}

.signout-frame .image-placeholder span,
.signout-kicker {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signout-frame .message-panel {
  align-self: center;
  justify-self: end;
  width: min(100%, 360px);
}

.signout-frame .card-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  line-height: 1.02;
}

.signout-frame .primary {
  margin-top: 24px;
  width: 100%;
}

.card > * + *,
.hero-card > * + *,
section + section {
  margin-top: 24px;
}

.input-wrap {
  position: relative;
  display: flex;
}

.toggle-pw {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.toggle-pw:hover {
  color: var(--ink);
}

.toggle-pw svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.field {
  flex-direction: column;
  margin-bottom: 14px;
}

.input-row {
  align-items: stretch;
}

input {
  width: 100%;
  min-height: 38px;
  border: 2px solid var(--line);
  border-bottom-width: 4px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  padding: 7px 12px;
  transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}

input:focus {
  border-color: var(--ink);
  background: color-mix(in oklch, var(--surface) 40%, var(--bg));
  outline: none;
}

input::placeholder {
  color: var(--muted);
}

.submit-btn {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: background-color 240ms var(--ease-out), transform 240ms var(--ease-out);
}

.submit-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(1px);
}

#signupForm {
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}

#signupForm.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

button.primary {
  width: 100%;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.form-note {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 12px;
}

.success-msg {
  display: grid;
  opacity: 0;
  transform: translateY(10px);
  color: var(--success);
  text-align: center;
  font-weight: 650;
  margin-top: 12px;
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
  pointer-events: none;
}

.success-msg.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.error-msg {
  color: var(--danger);
  display: none;
  text-align: center;
  font-size: 0.82rem;
  margin-top: 12px;
}

.error-msg.visible {
  display: block;
}

.feature-row,
.stats-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-row {
  grid-template-columns: 1fr;
}

.feature-pill {
  color: var(--muted);
}

.action-card,
.platform-card {
  color: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  text-decoration: none;
}

.action-card.ghost,
.platform-card.ghost {
  min-height: 40px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  text-decoration: none;
  box-shadow: 0 2px 0 var(--line);
  transition:
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    transform 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
  margin-bottom: 12px;
}

.action-card.ghost:last-child,
.platform-card.ghost:last-child {
  margin-bottom: 0;
}

.action-card.ghost:hover,
.platform-card.ghost:hover {
  border-color: var(--ink);
  background: var(--surface-strong);
  color: var(--ink);
}

.action-card.ghost:active,
.platform-card.ghost:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 var(--line);
}

.action-text,
.platform-info {
  min-width: 0;
}

.account-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.platform-action {
  margin-left: 0;
}

.connected-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.platform-logo {
  display: none;
}

.connect.connected-badge {
  background: var(--surface);
  border: 2px solid var(--success);
  border-bottom-width: 4px;
  border-radius: 12px;
  color: var(--success);
  cursor: default;
  gap: 6px;
  opacity: 1;
  padding-inline: 8px;
  box-shadow: 0 2px 0 var(--success);
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.disconnect-button,
.disconnect-confirm {
  -webkit-appearance: none;
  appearance: none;
  align-items: center;
  border: 1px solid var(--danger);
  border-color: var(--danger);
  border-radius: var(--radius-min);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  justify-content: center;
  transition:
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.disconnect-button {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--danger);
  min-height: 40px;
  padding: 0;
  position: relative;
  width: 40px;
}

.disconnect-button:focus-visible {
  background: transparent !important;
  background-color: transparent !important;
  border-color: var(--danger);
  color: var(--danger);
}

.disconnect-button:hover {
  background: color-mix(in oklch, var(--danger) 9%, transparent) !important;
  background-color: color-mix(in oklch, var(--danger) 9%, transparent) !important;
  border-color: color-mix(in oklch, var(--danger) 82%, var(--ink));
}

.disconnect-x {
  height: 14px;
  position: relative;
  width: 14px;
}

.disconnect-x::before,
.disconnect-x::after {
  background: currentColor;
  content: "";
  height: 2px;
  left: 50%;
  position: absolute;
  top: 50%;
  width: 16px;
}

.disconnect-x::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.disconnect-x::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.disconnect-confirm {
  background: var(--danger);
  color: var(--bg);
}

.disconnect-button:active,
.disconnect-confirm:active {
  transform: translateY(1px);
}

.connected-check {
  align-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  height: 16px;
  justify-content: center;
  width: 16px;
  visibility: visible;
}

.connected-badge:hover .connected-check {
  visibility: visible;
}

.connected-check::before {
  border-color: currentColor;
  border-style: solid;
  border-width: 0 2px 2px 0;
  content: "";
  height: 7px;
  transform: rotate(45deg) translateY(-1px);
  width: 4px;
}

.connect.select-page-button {
  background: #facc15;
  border-color: #eab308;
  color: #1f1800;
}

.connect.select-page-button:hover,
.connect.select-page-button:focus-visible {
  background: #eab308;
  border-color: #ca8a04;
  color: #1f1800;
}

.scheduler-main {
  display: grid;
  gap: 22px;
  padding-top: 92px;
  width: min(100% - 36px, 1080px);
}

.app-overview {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 22px;
}

.app-overview-copy {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.dashboard-title-image-slot img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
  }

.dashboard-title-image-slot {
  aspect-ratio: 1;
  background:
    linear-gradient(135deg, color-mix(in oklch, var(--accent-soft) 64%, var(--bg)), transparent),
    color-mix(in oklch, var(--surface) 72%, var(--bg));
  border: 0;
  border-radius: var(--radius-min);
  flex: 0 0 auto;
  width: clamp(64px, 8vw, 96px);
}

.app-overview h1 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.1;
  max-width: 44ch;
  min-width: 0;
}

.app-overview p:not(.section-label) {
  color: color-mix(in oklch, var(--ink) 76%, var(--muted));
  font-size: 1rem;
  max-width: 54ch;
}

.scheduler-main .create-post-title {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  margin: 0;
  padding: 10px 0 4px;
  text-align: center;
}

.scheduler-main .create-post-title h2,
.section-heading h2 {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.25;
  margin: 0;
}

.scheduler-main .create-post-button {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius-min);
  color: var(--bg);
  display: inline-flex;
  font-size: 1rem;
  font-weight: 650;
  gap: 10px;
  justify-content: center;
  line-height: 1.2;
  min-height: 52px;
  min-width: 220px;
  padding: 13px 22px;
  text-decoration: none;
  transition:
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.scheduler-main .create-post-button:hover,
.scheduler-main .create-post-button:focus-visible {
  background: color-mix(in oklch, var(--ink) 88%, var(--accent));
  border-color: var(--ink);
  color: var(--bg);
}

.scheduler-main .create-post-button:active {
  transform: translateY(1px);
}

.scheduler-main .create-post-button span {
  color: inherit;
  display: inline-grid;
  height: 1em;
  line-height: 1;
  margin: 0;
  place-items: center;
  width: 1em;
}

.scheduler-main .compose-dialog {
  background: var(--bg);
  border: 1px solid color-mix(in oklch, var(--line) 84%, var(--accent-soft));
  border-radius: var(--radius-min);
  color: var(--ink);
  overflow-x: hidden;
  padding: clamp(18px, 4vw, 30px);
  width: min(calc(100vw - 36px), 700px);
}

.scheduler-main .compose-dialog::backdrop {
  background: oklch(18% 0.016 225 / 0.34);
}

.scheduler-main .dialog-header {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  text-align: left;
}

.scheduler-main .dialog-title {
  display: block;
  font-size: clamp(1.35rem, 3vw, 1.95rem);
  font-weight: 650;
  line-height: 1.04;
}

.scheduler-main .compose-grid {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.28fr) minmax(190px, 0.64fr);
  margin-top: 18px;
  padding-top: 18px;
  text-align: left;
  align-items: start;
}

.scheduler-main .platform-checks,
.scheduler-main .compose-fields {
  display: grid;
  gap: 12px;
}

.scheduler-main .compose-fields {
  gap: 16px;
}

.scheduler-main .platform-checks label,
.scheduler-main .compose-field label {
  color: var(--ink);
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
}

.scheduler-main .platform-checks label {
  align-items: stretch;
  display: block;
}

.scheduler-main .platform-checks {
  align-content: start;
  gap: 6px;
}

.scheduler-main .platform-checks-title {
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  margin: 0 0 2px;
  text-transform: uppercase;
}

.scheduler-main .platform-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.scheduler-main .platform-choice-mark {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-min);
  display: grid;
  gap: 8px;
  grid-template-columns: 18px minmax(0, 1fr);
  min-height: 28px;
  padding: 4px 6px;
  transition:
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.scheduler-main .platform-choice:hover .platform-choice-mark,
.scheduler-main .platform-choice input:focus-visible + .platform-choice-mark {
  border-color: var(--line);
  background: color-mix(in oklch, var(--surface) 72%, transparent);
}

.scheduler-main .platform-choice input:checked + .platform-choice-mark {
  background: color-mix(in oklch, var(--accent-soft) 52%, transparent);
  border-color: var(--accent);
}

.scheduler-main .platform-choice input:disabled + .platform-choice-mark {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.46;
}

.scheduler-main .platform-choice.is-disabled {
  cursor: not-allowed;
}

.scheduler-main .platform-choice-copy {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.scheduler-main .compose-field input,
.scheduler-main .compose-field textarea {
  width: 100%;
}

.scheduler-main .field-hint {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  line-height: 1.45;
  margin-top: 6px;
}

.scheduler-main .field-hint--error {
  color: var(--danger);
}

.scheduler-main .compose-inline-check {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  margin-top: 10px;
}

.scheduler-main .compose-inline-check input {
  width: auto;
}

.scheduler-main .compose-form-error {
  color: var(--danger);
  font-size: 0.9rem;
  margin-top: 14px;
}

.scheduler-main .compose-form-success {
  color: var(--success);
  font-size: 0.9rem;
  margin-top: 14px;
}

.scheduler-main .post-success-toast {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-min);
  color: var(--ink);
  display: grid;
  gap: 4px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 13px 14px;
  position: fixed;
  right: 18px;
  top: 82px;
  z-index: 90;
}

.scheduler-main .post-success-toast.hidden {
  display: none;
}

.scheduler-main .post-success-toast strong {
  color: var(--success);
  font-size: 0.92rem;
  line-height: 1.25;
}

.scheduler-main .post-success-toast span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.scheduler-main .schedule-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.72fr);
}

.scheduler-main .tag-entry {
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-min);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
  padding: 8px 9px;
}

.scheduler-main .tag-entry:focus-within {
  border-color: var(--accent);
}

.scheduler-main .tag-entry input {
  border: 0;
  flex: 1 1 140px;
  min-width: 120px;
  outline: 0;
  padding: 0;
}

.scheduler-main .tag-chip-list {
  display: contents;
}

.scheduler-main .tag-chip {
  align-items: center;
  background: color-mix(in oklch, var(--accent-soft) 72%, var(--bg));
  border: 1px solid color-mix(in oklch, var(--line) 72%, var(--accent));
  border-radius: var(--radius-min);
  color: var(--ink);
  display: inline-flex;
  gap: 10px;
  line-height: 1;
  padding: 6px 10px 6px 10px;
}

.scheduler-main .tag-chip-remove {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  margin-left: 2px;
}

.scheduler-main .tag-chip-remove:hover,
.scheduler-main .tag-chip-remove:focus-visible {
  color: var(--ink);
}

.scheduler-main .media-upload {
  border: 1px dashed var(--line);
  border-radius: var(--radius-min);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.scheduler-main .media-upload input[type="file"] {
  display: none;
}

.scheduler-main .media-upload-list {
  color: var(--muted);
  font-size: 0.88rem;
  min-height: 22px;
}

.scheduler-main .upload-progress {
  display: grid;
  gap: 7px;
}

.scheduler-main .upload-progress.hidden {
  display: none;
}

.scheduler-main .upload-progress-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.82rem;
  justify-content: space-between;
  line-height: 1.35;
}

.scheduler-main .upload-progress-track {
  background: color-mix(in oklch, var(--line) 36%, var(--bg));
  border: 1px solid color-mix(in oklch, var(--line) 82%, var(--accent-soft));
  border-radius: 999px;
  height: 9px;
  overflow: hidden;
}

.scheduler-main .upload-progress-fill {
  background: var(--accent);
  height: 100%;
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
  width: 0%;
}

.scheduler-main textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-min);
  color: var(--ink);
  font: inherit;
  min-height: 104px;
  padding: 8px 9px;
  resize: vertical;
  width: 100%;
}

.scheduler-main .dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 22px;
}

.scheduler-main .dialog-actions-right {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.scheduler-main .create-post-title div > span {
  color: var(--muted);
  display: block;
  margin-top: 3px;
}

.dashboard-grid {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-areas: "socials posts account";
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-grid > * {
  align-self: start;
  margin: 0;
  min-width: 0;
}

.dashboard-grid > .connections-panel {
  grid-area: socials;
}

.dashboard-grid > .task-section[aria-labelledby="reviewTitle"] {
  grid-area: posts;
}

.dashboard-grid > .task-section[aria-labelledby="settingsTitle"] {
  grid-area: account;
}

.task-section,
.connections-panel,
.section-heading {
  display: grid;
}

.task-section,
.connections-panel {
  gap: 12px;
}

.section-heading {
  gap: 4px;
}

.section-heading .section-label,
.create-post-title .section-label,
.app-overview .section-label {
  margin-bottom: 0;
}

.scheduler-main .platform-list {
  border: 1px solid color-mix(in oklch, var(--line) 86%, var(--accent-soft));
  border-radius: var(--radius-min);
  background: color-mix(in oklch, var(--surface) 54%, var(--bg));
  margin-top: 0;
  padding: 0 16px;
}

.scheduler-main .action-card {
  min-height: 72px;
}

.scheduler-main .action-card:hover,
.scheduler-main .action-card:focus-visible {
  color: var(--ink);
}

.scheduler-main .action-card:hover .action-arrow,
.scheduler-main .action-card:focus-visible .action-arrow {
  color: var(--ink);
  transform: translateX(2px);
}

.scheduler-main .action-arrow {
  transition:
    color 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.scheduler-main .platform-card {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 15px 0;
}

.scheduler-main .platform-info {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0, 1fr);
}

.scheduler-main .platform-logo {
  align-items: center;
  aspect-ratio: 1;
  background: transparent;
  color: var(--ink);
  display: inline-grid;
  font-size: 1.3rem;
  font-weight: 750;
  justify-content: center;
  line-height: 1;
  width: 42px;
}

.scheduler-main .platform-logo svg {
  height: 28px;
  width: 28px;
}

.scheduler-main .platform-logo--youtube {
  color: #d31510;
}

.scheduler-main .platform-logo--facebook {
  color: #0866ff;
}

.scheduler-main .platform-logo--instagram {
  color: #d4457a;
}

.scheduler-main .platform-logo--tiktok {
  color: #101010;
}

html[data-theme="dark"] .scheduler-main .platform-logo--tiktok {
  color: #f5f5f5;
}

@media (max-width: 760px) {
  .scheduler-main {
    gap: 18px;
    width: min(100% - 28px, 1080px);
  }

  .app-overview {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-grid {
    grid-template-areas:
      "socials"
      "posts"
      "account";
    grid-template-columns: minmax(0, 1fr);
  }

  .account-bar {
    justify-content: flex-start;
  }

  .scheduler-main .create-post-button {
    width: min(100%, 280px);
  }

  .scheduler-main .platform-card {
    align-items: start;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
  }

  .scheduler-main .platform-action,
  .scheduler-main .platform-action .connect,
  .scheduler-main .connected-actions {
    width: 100%;
  }

  .scheduler-main .connected-actions {
    justify-content: space-between;
  }

  .scheduler-main .compose-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .scheduler-main .schedule-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

.footer,
footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--bg);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 44px);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.footer a,
footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms var(--ease-out), text-decoration 180ms var(--ease-out);
}

.footer a:hover,
footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.toggle-pw {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
}

.input-wrap input {
  min-width: 0;
}

.spinner {
  display: none;
}

.spinner.visible {
  display: inline;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

dialog {
  width: min(100% - 36px, 420px);
  border: 1px solid var(--line);
  border-radius: var(--radius-min);
  background: var(--bg);
  color: var(--ink);
}

.session-dialog {
  padding: 24px;
  box-shadow: none;
  border: 1px solid var(--line);
}

.session-dialog::backdrop {
  background: color-mix(in oklch, var(--ink) 38%, transparent);
}

.session-dialog-content,
.session-dialog-copy {
  display: grid;
}

.session-dialog-content {
  gap: 20px;
  margin: 0;
}

.session-dialog-copy {
  gap: 8px;
}

.session-dialog-copy h2,
.session-dialog-copy p,
.session-dialog-error {
  margin: 0;
}

.session-dialog-copy h2 {
  font-size: 1.35rem;
}

.session-dialog-copy p {
  color: var(--muted);
  line-height: 1.5;
}

.session-dialog-error {
  color: var(--danger, oklch(52% 0.2 25));
}

.session-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.disconnect-dialog {
  padding: 24px;
}

.disconnect-dialog::backdrop {
  background: color-mix(in oklch, var(--ink) 38%, transparent);
}

.disconnect-dialog-content,
.disconnect-dialog-copy {
  display: grid;
}

.disconnect-dialog-content {
  gap: 20px;
  margin: 0;
}

.disconnect-dialog-copy {
  gap: 8px;
}

.disconnect-dialog-copy h2,
.disconnect-dialog-copy p,
.disconnect-dialog-error {
  margin: 0;
}

.disconnect-dialog-copy h2 {
  font-size: 1.35rem;
}

.disconnect-dialog-copy p {
  color: var(--muted);
  line-height: 1.5;
}

.disconnect-dialog-error {
  color: var(--danger);
}

.disconnect-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.disconnect-confirm {
  min-height: 40px;
  padding: 7px 12px;
}

.disconnect-confirm:hover,
.disconnect-confirm:focus-visible {
  background: color-mix(in oklch, var(--danger) 86%, var(--ink));
  border-color: color-mix(in oklch, var(--danger) 86%, var(--ink));
}

.disconnect-confirm:disabled,
.disconnect-dialog-actions button:disabled {
  cursor: wait;
  opacity: 0.72;
  pointer-events: none;
}

dl {
  margin: 0;
}

dd {
  margin: 0 0 14px;
}

.hidden {
  display: none;
}

/* login/signout images */

.login-art {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.login-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

@media (min-width: 780px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .details {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    column-gap: 28px;
  }

  .detail {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .topbar,
  .footer,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-right,
  .nav,
  .meta,
  .topbar-spacer {
    margin-left: 0;
  }

  .input-row {
    flex-direction: column;
  }

  .submit-btn {
    width: 100%;
  }

  .nav-link,
  .ghost,
  .theme-toggle,
  .primary,
  .submit-btn,
  .connect,
  a.primary {
    min-height: 44px;
  }

  .home-hero {
    min-height: 0;
  }

  .project-panel {
    min-height: 240px;
  }

  .actions-row > * {
    flex: 1 1 180px;
  }
}

@media (max-width: 760px) {
  .login-sky-dock {
    grid-template-columns: 1fr;
  }

  .login-sky-dock .login-art {
    min-height: 240px;
  }

  .signout-frame {
    grid-template-columns: 1fr;
  }

  .signout-frame .login-art {
    min-height: 220px;
  }

  .signout-frame .message-panel {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 680px) {
  .scheduler-main .compose-grid {
    grid-template-columns: 1fr;
  }
}

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

/* SocialFarm: clear workspaces, primary colors, and a little countryside. */
:root {
  --bg: oklch(99% 0.003 240);
  --surface: oklch(96.8% 0.008 240);
  --surface-strong: oklch(92% 0.023 240);
  --ink: oklch(26% 0.034 250);
  --muted: oklch(46% 0.025 250);
  --line: oklch(84% 0.02 240);
  --accent: oklch(46% 0.18 260);
  --accent-soft: oklch(93% 0.04 250);
  --farm-red: oklch(53% 0.18 28);
  --farm-yellow: oklch(87% 0.15 89);
  --farm-green: oklch(40% 0.08 151);
}
html[data-theme="dark"] {
  --bg: oklch(20% 0.025 250);
  --surface: oklch(24% 0.03 250);
  --surface-strong: oklch(30% 0.035 250);
  --ink: oklch(96% 0.008 240);
  --muted: oklch(77% 0.022 240);
  --line: oklch(39% 0.032 250);
  --accent: oklch(76% 0.115 250);
  --accent-soft: oklch(29% 0.07 250);
  --farm-red: oklch(76% 0.13 28);
  --farm-green: oklch(78% 0.1 151);
}
h1, h2, h3 { text-wrap: balance; }
.brand { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.035em; }
.brand::before { content: ''; width: 25px; height: 28px; background: url('/img/barn-mark.svg') center / contain no-repeat; flex-shrink: 0; }
.brand-period { color: var(--farm-red); margin-left: -7px; }
.menu-button, .theme-toggle-icon { background: var(--surface); border-radius: 10px; box-shadow: none; }
.nav-link, .ghost, .primary, .submit-btn, .connect, a.primary { border-width: 1px; border-radius: 8px; box-shadow: none; min-height: 44px; }
.primary, button.primary, a.primary, .submit-btn, .scheduler-main .create-post-button { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.primary:hover, button.primary:hover, a.primary:hover, .submit-btn:hover, .scheduler-main .create-post-button:hover { background: color-mix(in oklch, var(--accent) 85%, var(--ink)); border-color: var(--accent); color: var(--bg); }
input:not([type="checkbox"]):not([type="radio"]), textarea, select { border-width: 1px; border-radius: 8px; }
input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.connections-panel, .task-section { border-width: 1px; border-radius: 12px; background: var(--bg); }
.scheduler-main .create-post-button { box-shadow: none; }
.dashboard-title-image-slot { background: var(--farm-yellow); border-radius: 50%; }
.dashboard-title-image-slot img { object-fit: contain; }
.app-overview { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.login-sky-dock .login-art, .signout-frame .login-art { background: #ddeef9 url('/img/farm-landscape.svg') center / cover no-repeat; border-radius: 12px; }
.login-art .login-image { max-height: 370px; object-fit: contain; padding-top: 56px; }
.signout-frame .login-art { min-height: 300px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 70; padding: 10px 18px; background: var(--bg); color: var(--ink); }
.skip-link:focus { top: 12px; }
.farm-home .page { overflow: visible; }
.farm-topbar { position: relative; grid-template-columns: auto 1fr auto auto; padding: 22px max(24px, calc((100vw - 1240px) / 2)); gap: 22px; border-bottom: 0; }
.farm-topbar .brand { justify-self: start; }
.farm-login { font-weight: 650; font-size: .9rem; text-decoration: none; display: inline-flex; gap: 12px; align-items: center; min-height: 44px; }
.farm-login:hover { color: var(--accent); }
.farm-topbar .theme-toggle { width: 40px; height: 40px; }
.farm-main { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 32px 0 0; flex: 1; }
.farm-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 76px); align-items: center; }
.farm-intro { padding: 18px 0; min-width: 0; }
.launch-tag { display: inline-flex; align-items: center; gap: 9px; color: var(--farm-green); font-size: .8rem; font-weight: 650; }
.launch-tag > span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.farm-intro h1 { font-size: clamp(3.2rem, 5.5vw, 5rem); line-height: 1.04; letter-spacing: -.04em; font-weight: 780; margin: 26px 0 23px; max-width: none; }
.farm-intro h1 span { color: var(--accent); }
.farm-description { font-size: 1.075rem; line-height: 1.75; max-width: 42ch; color: var(--muted); margin: 0; }
.farm-signup { margin-top: 36px; }
.farm-signup h2 { font-size: 1rem; margin: 0 0 4px; font-weight: 750; }
.farm-signup > p { font-size: .875rem; color: var(--muted); margin: 0 0 17px; max-width: 40ch; }
.farm-signup .input-row { display: flex; flex-direction: row; gap: 8px; }
.farm-signup input { min-width: 0; min-height: 50px; flex: 1; background: var(--bg); }
.farm-signup .submit-btn { min-height: 50px; padding: 10px 18px; flex-shrink: 0; gap: 14px; font-size: .875rem; }
.farm-signup .form-note { text-transform: none; letter-spacing: 0; text-align: left; font-size: .75rem; font-weight: 400; margin-bottom: 0; }
.farm-signup .success-msg { display: none; text-align: left; }
.farm-signup .success-msg.visible { display: block; }
.farm-picture { position: relative; width: 100%; aspect-ratio: 640 / 620; border-radius: 16px; overflow: hidden; isolation: isolate; background: #ddeef9; }
.farm-landscape { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-note { position: absolute; top: 7%; left: 7%; color: #294e4a; font-size: .82rem; font-weight: 650; max-width: 15ch; line-height: 1.5; }
.farm-cow { position: absolute; width: 59%; height: auto; left: 4%; bottom: 7%; transform: rotate(-7deg); }
.farm-pig { position: absolute; width: 35%; height: auto; right: 2%; bottom: 12%; transform: rotate(6deg); }
.scene-post { position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%); width: max-content; max-width: 94%; display: flex; gap: 10px; align-items: center; background: #fffdf7; color: #263e34; border-radius: 8px; padding: 12px 17px; font-size: .8rem; font-weight: 650; box-shadow: 0 4px 0 #27492e26; }
.post-check { width: 23px; height: 23px; display: grid; place-items: center; background: #e5efcf; color: #285734; border-radius: 50%; }
.farm-picture:hover .farm-cow { transform: rotate(-3deg) translateY(-4px); }
.farm-cow { transition: transform 350ms var(--ease-out); }
.farm-workflow { display: grid; grid-template-columns: 1fr 1.1fr 1.1fr; align-items: center; column-gap: 40px; margin: 62px 0 40px; padding-top: 34px; border-top: 1px solid var(--line); }
.workflow-heading h2 { max-width: 12ch; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.025em; margin: 0; }
.workflow-heading p { color: var(--muted); font-size: .8rem; margin-bottom: 0; }
.workflow-item { display: flex; align-items: center; gap: 15px; }
.workflow-item img { width: 80px; height: 90px; object-fit: contain; flex-shrink: 0; }
.workflow-item h3 { font-size: .95rem; margin: 0 0 6px; }
.workflow-item p { font-size: .825rem; line-height: 1.65; color: var(--muted); margin: 0; max-width: 27ch; }
.farm-home .footer { position: static; text-transform: none; letter-spacing: 0; font-weight: 400; justify-content: flex-start; width: min(1240px, calc(100% - 64px)); margin: auto auto 0; padding: 22px 0; font-size: .75rem; }
@media (min-width: 1500px) { .farm-main { padding-top: 56px; } .farm-workflow { margin-top: 80px; } }
@media (max-width: 1000px) {
  .farm-hero { gap: 30px; }
  .farm-intro h1 { font-size: clamp(2.7rem, 5.5vw, 4rem); }
  .farm-signup .input-row { flex-direction: column; }
  .farm-signup .submit-btn { width: 100%; }
  .farm-workflow { gap: 24px; }
  .workflow-item { gap: 8px; }
  .workflow-item img { width: 62px; }
}
@media (max-width: 720px) {
  .farm-topbar { padding: 16px 20px; gap: 12px; align-items: center; }
  .farm-topbar .brand { font-size: 1.1rem; gap: 6px; }
  .farm-topbar .brand::before { width: 21px; }
  .farm-login { font-size: .8rem; gap: 5px; }
  .farm-main { width: calc(100% - 40px); padding-top: 18px; }
  .farm-hero { grid-template-columns: 1fr; gap: 28px; }
  .farm-intro { padding: 6px 0 0; }
  .farm-intro h1 { font-size: clamp(3rem, 10vw, 4.8rem); margin-top: 22px; }
  .farm-description { max-width: 48ch; font-size: 1rem; }
  .farm-signup { margin-top: 28px; }
  .farm-signup .input-row { flex-direction: row; }
  .farm-signup .submit-btn { width: auto; padding-inline: 13px; gap: 8px; }
  .farm-picture { max-width: 540px; justify-self: center; }
  .farm-workflow { grid-template-columns: 1fr 1fr; row-gap: 24px; margin: 36px 0 28px; padding-top: 28px; }
  .workflow-heading { grid-column: 1 / -1; }
  .workflow-heading h2 { max-width: none; }
  .workflow-item { align-items: flex-start; flex-direction: column; }
  .workflow-item img { width: 66px; height: 70px; }
  .farm-home .footer { width: calc(100% - 40px); display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px 22px; }
  .farm-home .footer > span { flex-basis: 100%; }
  .login-sky-dock { grid-template-columns: minmax(0, 1fr); }
  .login-sky-dock .login-art { min-height: 220px; max-height: 250px; }
  .login-art .login-image { max-height: 240px; padding-top: 30px; }
}
@media (max-width: 380px) {
  .farm-topbar { gap: 8px; padding-inline: 16px; }
  .farm-topbar .brand::before { display: none; }
  .launch-tag { font-size: .72rem; }
  .farm-signup .input-row { flex-direction: column; }
  .farm-signup .submit-btn { width: 100%; }
}

.farm-home .footer > span { margin-right: auto; }

/* Keep the footer after the content, including on short phone screens. */
.footer, footer { position: static; text-transform: none; letter-spacing: 0; font-weight: 400; }
.signout-sky-main { min-height: 0; align-items: center; padding-top: 110px; padding-bottom: 36px; }
.signout-frame .message-panel { gap: 16px; }
@media (max-width: 720px) {
  .login-sky-dock { gap: 28px; }
  .signout-frame { gap: 28px; }
  .signout-frame .login-art { min-height: 230px; }
  .signout-frame .message-panel { padding: 0; }
}
.scheduler-main { align-content: start; gap: 28px; padding-top: 104px; }
.app-overview { align-items: center; }
.app-overview h1 { margin: 0; }
.scheduler-main .action-list { border: 0; background: transparent; padding: 0; }
.scheduler-main .action-card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; min-height: 62px; padding: 15px 0; justify-content: space-between; margin: 0; }
.scheduler-main .action-card:last-child { border-bottom: 0; }
.scheduler-main .action-card::after { content: '↗'; color: var(--accent); font-size: 1.1rem; }
.scheduler-main .action-card:hover { background: var(--surface); color: var(--accent); }
.scheduler-main .action-card .action-arrow { color: inherit; }
.scheduler-main .action-card:hover .action-arrow { color: var(--accent); transform: none; }

/* Dashboard: retain the two task groups with softer, consistent interaction states. */
.dashboard-home .dashboard-grid {
  grid-template-areas: "posts account";
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.dashboard-home .app-overview {
  background: var(--surface);
  padding: 24px;
  border-radius: 14px;
}
.dashboard-home .task-section {
  padding: 24px;
  border-radius: 14px;
}
.dashboard-home .section-heading h2 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.dashboard-home .scheduler-main .action-list {
  display: grid;
  gap: 6px;
}
.dashboard-home .scheduler-main .action-card {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 14px 16px;
  min-height: 56px;
  background: var(--surface);
}
.dashboard-home .scheduler-main .action-card:hover,
.dashboard-home .scheduler-main .action-card:focus-visible {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.dashboard-home .scheduler-main .action-card:active {
  transform: translateY(1px);
}
.dashboard-home .scheduler-main .action-arrow {
  text-wrap: pretty;
}
.dashboard-home .scheduler-main .action-card::after {
  flex-shrink: 0;
  margin-left: 12px;
}
.dashboard-home .menu-panel,
.dashboard-home .notification-preview {
  border-radius: 12px;
}
.dashboard-home .menu-panel a {
  border-radius: 8px;
  border-bottom: 0;
  padding-inline: 12px;
}
.dashboard-home .scheduler-main .platform-choice-mark {
  border-radius: 10px;
  padding: 9px 10px;
  min-height: 44px;
}
.dashboard-home .scheduler-main .platform-choice input:focus-visible + .platform-choice-mark {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.dashboard-home .scheduler-main .compose-dialog {
  border-radius: 14px;
}
@media (max-width: 760px) {
  .dashboard-home .dashboard-grid {
    grid-template-areas: "posts" "account";
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .dashboard-home .task-section,
  .dashboard-home .app-overview { padding: 18px; }
}
@media (max-width: 480px) {
  .dashboard-home .menu-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "menu brand brand" ". controls logout";
    gap: 10px 12px;
    padding: 12px 18px;
  }
  .dashboard-home .menu-shell { grid-area: menu; }
  .dashboard-home .topbar .brand { grid-area: brand; justify-self: start; }
  .dashboard-home .topbar-actions { grid-area: controls; justify-content: flex-end; }
  .dashboard-home .auth-logout-button { grid-area: logout; }
  .dashboard-home .scheduler-main { padding-top: 138px; }
}

/* Create-post dialog: comfortable fields and dedicated logo space. */
.scheduler-main #composeDialogTwo {
  width: min(calc(100vw - 32px), 780px);
  max-height: calc(100dvh - 32px);
  padding: 28px;
  overflow-y: auto;
}
#composeDialogTwo .dialog-title {
  font-size: 1.5rem;
  line-height: 1.25;
  margin-top: 0;
  color: var(--ink);
}
#composeDialogTwo .dialog-header .card-sub {
  margin: 8px 0 0;
  max-width: 44ch;
  line-height: 1.5;
}
#composeDialogTwo .compose-grid {
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 28px;
  margin-top: 24px;
  padding-top: 24px;
}
#composeDialogTwo .compose-fields { gap: 20px; min-width: 0; }
#composeDialogTwo .compose-field { gap: 8px; }
#composeDialogTwo .platform-checks { gap: 8px; }
#composeDialogTwo .platform-checks-title {
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  font-weight: 650;
  margin: 0 0 4px;
}
#composeDialogTwo .platform-choice-mark {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 10px;
  border-color: var(--line);
}
#composeDialogTwo .platform-choice .platform-logo {
  width: 32px;
  height: 32px;
  margin: 0;
}
#composeDialogTwo .platform-choice-copy {
  line-height: 1.4;
  min-width: 0;
}
#composeDialogTwo .compose-inline-check input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
  accent-color: var(--accent);
}
#composeDialogTwo .media-upload {
  padding: 16px;
  gap: 10px;
  background: var(--surface);
}
#composeDialogTwo .media-upload .ghost { justify-self: start; }
#composeDialogTwo .dialog-actions {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
}
#composeDialogTwo .dialog-actions .primary { min-width: 100px; }
@media (max-width: 680px) {
  .scheduler-main #composeDialogTwo { padding: 20px; }
  #composeDialogTwo .compose-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  #composeDialogTwo .platform-checks { grid-row: 1; }
  #composeDialogTwo .dialog-header { gap: 10px; }
  #composeDialogTwo .dialog-title { font-size: 1.3rem; }
}
#composeDialogTwo .compose-field { display: grid; margin-bottom: 0; }
#composeDialogTwo .compose-inline-check { margin-top: 0; }
#composeDialogTwo .compose-inline-check input { min-height: 16px; padding: 0; }
#composeDialogTwo .platform-choice { position: relative; }
#composeDialogTwo .platform-choice > input {
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  left: 0;
  top: 0;
  clip-path: inset(50%);
}
#composeDialogTwo .hidden { display: none; }
#composeDialogTwo .field-hint { margin-top: 0; }
#composeDialogTwo .schedule-fields input { min-width: 0; }

/* Compact tag entry; instructions appear in an accessible top-layer tooltip. */
#composeDialogTwo .composer-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#composeDialogTwo .tag-optional { color: var(--muted); font-weight: 400; }
#composeDialogTwo .composer-help-button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
#composeDialogTwo .composer-help-button:hover,
#composeDialogTwo .composer-help-button:focus-visible { color: var(--accent); border-color: var(--accent); }
#composeDialogTwo .composer-help {
  position: fixed;
  inset: auto;
  margin: 0;
  width: min(280px, calc(100vw - 24px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: left;
}
#composeDialogTwo .tag-entry { min-height: 44px; padding: 7px 10px; gap: 6px; }
#composeDialogTwo .tag-entry input { min-height: 28px; background: transparent; }
#composeDialogTwo .tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  margin: 0;
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.85rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}
#composeDialogTwo .tag-chip-remove { flex-shrink: 0; padding: 4px; }

/* One compact file row, with progress only during an upload. */
#composeDialogTwo .media-upload {
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  gap: 12px;
}
#composeDialogTwo .media-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
#composeDialogTwo .media-picker-row .ghost { flex-shrink: 0; }
#composeDialogTwo .media-upload-list {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}
#composeDialogTwo .upload-progress { gap: 8px; padding: 0 2px 4px; }
#composeDialogTwo .upload-progress-meta > span {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0;
}
#composeDialogTwo #post-upload-progress-value { font-variant-numeric: tabular-nums; }
#composeDialogTwo .upload-progress-track {
  height: 5px;
  border: 0;
  background: var(--surface-strong);
}
#composeDialogTwo .upload-progress-fill {
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  border-radius: inherit;
  transition: transform 180ms ease-out;
}
#composeDialogTwo .upload-progress.is-failed .upload-progress-fill { background: var(--danger); }
#composeDialogTwo .upload-progress.is-failed #post-upload-progress-label { color: var(--danger); }
#composeDialogTwo #post-media-trigger-two:disabled { opacity: .6; cursor: wait; }
@media (prefers-reduced-motion: reduce) {
  #composeDialogTwo .upload-progress-fill { transition: none; }
}

/* Browser-independent scheduling controls. */
#composeDialogTwo .schedule-heading { color: var(--ink); margin: 0; font-size: .9rem; }
#composeDialogTwo .schedule-mode { display: flex; gap: 4px; padding: 4px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); }
#composeDialogTwo .schedule-mode label { position: relative; flex: 1; cursor: pointer; }
#composeDialogTwo .schedule-mode input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; clip-path: inset(50%); }
#composeDialogTwo .schedule-mode label > span { display: block; padding: 9px 12px; text-align: center; border-radius: 6px; color: var(--muted); font-size: .85rem; }
#composeDialogTwo .schedule-mode input:checked + span { background: var(--accent-soft); color: var(--ink); font-weight: 650; }
#composeDialogTwo .schedule-mode input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
#composeDialogTwo .schedule-details { display: grid; gap: 12px; padding-top: 6px; }
#composeDialogTwo [hidden] { display: none !important; }
#composeDialogTwo .schedule-controls { display: grid; grid-template-columns: minmax(0, 1fr) 145px; gap: 14px; }
#composeDialogTwo .schedule-control-label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
#composeDialogTwo .schedule-format { font-size: .75rem; }
#composeDialogTwo .schedule-date-button,
#composeDialogTwo .schedule-time-entry { min-height: 44px; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; color: var(--ink); }
#composeDialogTwo .schedule-date-button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; font: inherit; font-size: .85rem; text-align: left; cursor: pointer; }
#composeDialogTwo .schedule-date-button svg { flex-shrink: 0; color: var(--muted); }
#composeDialogTwo .schedule-time-entry { display: flex; align-items: center; justify-content: center; gap: 2px; padding: 0 8px; }
#composeDialogTwo .schedule-time-entry input { width: 42px; min-width: 0; min-height: 38px; border: 0; border-radius: 4px; padding: 6px; text-align: center; background: transparent; font-variant-numeric: tabular-nums; }
#composeDialogTwo .schedule-time-entry input[aria-invalid="true"] { color: var(--danger); }
#composeDialogTwo .schedule-time-entry:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
#composeDialogTwo .schedule-time-entry input:focus { outline: 0; background: var(--surface); }
#composeDialogTwo .schedule-calendar { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
#composeDialogTwo .calendar-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
#composeDialogTwo #calendarMonth { margin: 0; color: var(--ink); font-size: .9rem; font-weight: 650; }
#composeDialogTwo .calendar-header button { border: 0; background: var(--surface); color: var(--ink); border-radius: 6px; width: 36px; height: 36px; font-size: 24px; cursor: pointer; }
#composeDialogTwo .calendar-weekdays,
#composeDialogTwo .calendar-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; }
#composeDialogTwo .calendar-weekdays { text-align: center; color: var(--muted); font-size: .72rem; padding-bottom: 6px; }
#composeDialogTwo .calendar-days button { min-height: 36px; padding: 0; font: inherit; font-size: .8rem; border: 1px solid transparent; border-radius: 6px; color: var(--ink); background: transparent; cursor: pointer; }
#composeDialogTwo .calendar-days button:hover:not(:disabled) { background: var(--surface); }
#composeDialogTwo .calendar-days button[aria-current="date"] { border-color: var(--line); }
#composeDialogTwo .calendar-days button[aria-pressed="true"] { background: var(--accent); color: var(--bg); }
#composeDialogTwo .schedule-calendar button:disabled { opacity: .35; cursor: default; }
@media (max-width: 420px) {
  #composeDialogTwo .schedule-controls { grid-template-columns: minmax(0,1fr); gap: 12px; }
  #composeDialogTwo .schedule-time-entry { justify-content: flex-start; }
}

/* 12-hour time entry and a timezone choice, defaulting to the device zone. */
#composeDialogTwo .schedule-controls { grid-template-columns: minmax(0, 1fr) 210px; }
#composeDialogTwo .schedule-period { display: flex; gap: 2px; margin-left: auto; }
#composeDialogTwo .schedule-period label { position: relative; cursor: pointer; }
#composeDialogTwo .schedule-period input { position: absolute; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; clip-path: inset(50%); }
#composeDialogTwo .schedule-period label > span { display: block; margin: 0; padding: 7px 6px; border-radius: 5px; color: var(--muted); font-size: .72rem; }
#composeDialogTwo .schedule-period input:checked + span { color: var(--ink); background: var(--accent-soft); font-weight: 650; }
#composeDialogTwo .schedule-period input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
#composeDialogTwo .schedule-zone-control { display: grid; gap: 6px; min-width: 0; }
#composeDialogTwo .schedule-zone-control .schedule-control-label { margin: 0; font-size: .8rem; color: var(--muted); }
#composeDialogTwo #post-timezone-two {
  appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 34px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%237a8592' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  font: inherit;
  font-size: .82rem;
  text-overflow: ellipsis;
}
@media (max-width: 680px) {
  #composeDialogTwo .schedule-controls { grid-template-columns: minmax(0, 1fr); }
  #composeDialogTwo .schedule-time-entry { justify-content: flex-start; }
  #composeDialogTwo .schedule-period { margin-left: 12px; }
}

/* Account settings: readable facts, quiet statuses, and consistent section headers. */
.account-settings-page .topbar { position: relative; align-items: center; }
.account-settings-page .menu-button,
.account-settings-page .theme-toggle-icon,
.account-settings-page .notification-button { width: 44px; height: 44px; }
.account-settings-shell {
  align-items: flex-start;
  justify-content: flex-start;
  width: min(calc(100% - 48px), 960px);
  min-height: 0;
  padding: 48px 0 72px;
}
.account-settings-panel {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 32px;
}
.account-settings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.account-settings-heading .card-title {
  max-width: none;
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -.03em;
}
.account-settings-heading p {
  margin: 10px 0 0;
  max-width: 55ch;
  color: var(--muted);
  font-size: .9375rem;
}
.account-settings-heading > a { flex-shrink: 0; }
.account-settings-content {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: stretch;
  gap: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.account-settings-panel .settings-section {
  min-width: 0;
  align-content: start;
  margin: 0;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.account-settings-panel .settings-section-header {
  min-height: 44px;
  align-items: center;
  margin-bottom: 8px;
}
.account-settings-panel .settings-section-header h2 {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -.015em;
}
.account-settings-panel .settings-section-header > .ghost {
  min-height: 44px;
  padding: 8px 12px;
  font-size: .875rem;
}
.account-settings-panel .settings-detail-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
}
.account-settings-panel .settings-detail-list > div {
  min-width: 0;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.account-settings-panel .settings-detail-list dt {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.account-settings-panel .settings-detail-list dd {
  min-width: 0;
  color: var(--ink);
  font-size: .9375rem;
  line-height: 1.5;
}
.account-settings-panel .settings-platform-item {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 70px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.account-settings-panel .settings-platform-copy { gap: 4px; }
.account-settings-panel .settings-platform-copy strong { font-size: .9375rem; font-weight: 600; }
.account-settings-panel .settings-platform-copy span { font-size: .875rem; line-height: 1.5; }
.account-settings-panel .settings-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.5;
  white-space: nowrap;
}
.account-settings-panel .settings-status.is-connected { color: var(--success); }
.account-settings-panel .settings-status.is-connected::before {
  content: '';
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: currentColor;
}
.account-settings-state {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.account-settings-state .status-mark {
  width: 28px;
  height: 28px;
  border-width: 2px;
  border-top-color: var(--accent);
}
@media (max-width: 800px) {
  .account-settings-shell {
    width: min(calc(100% - 32px), 600px);
    padding: 32px 0 48px;
  }
  .account-settings-content { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 480px) {
  .account-settings-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .account-settings-heading .card-title { font-size: 1.75rem; }
  .account-settings-panel { gap: 24px; }
  .account-settings-panel .settings-section { padding: 20px; }
  .account-settings-panel .settings-detail-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .account-settings-panel .settings-section-header { gap: 8px; }
  .account-settings-panel .settings-platform-item { gap: 8px; }
}

@media (max-width: 480px) {
  .account-settings-page .topbar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding: 14px 12px; }
  .account-settings-page .brand { font-size: 1.0625rem; gap: 6px; }
  .account-settings-page .brand::before { width: 21px; }
  .account-settings-page .topbar-actions { gap: 4px; }
  .account-settings-page .auth-logout-button { display: none; }
}
