:root {
  --bg: oklch(98.6% 0.006 225);
  --surface: oklch(96.8% 0.008 225);
  --surface-strong: oklch(92.8% 0.014 225);
  --ink: oklch(18% 0.016 225);
  --muted: oklch(45% 0.02 225);
  --line: oklch(82% 0.012 225);
  --accent: oklch(52% 0.12 225);
  --accent-soft: oklch(91% 0.055 226);
  --danger: oklch(45% 0.15 28);
  --success: oklch(45% 0.11 145);
  --radius-min: 6px;
  --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;
}

.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: 10px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.brand {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0;
  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;
}

.nav-link,
.ghost,
.theme-toggle,
.primary,
.submit-btn,
.connect,
a.primary {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-min);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 12px;
  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);
}

.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);
  color: var(--ink);
}

.nav-link:active,
.ghost:active,
.theme-toggle:active,
.primary:active,
.submit-btn:active,
.connect:active,
a.primary:active {
  transform: translateY(1px);
}

.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-shell {
  position: relative;
}

.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);
}

.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 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%;
}

.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;
}

.hero-meta,
.details,
.feature-row,
.stats-row,
.platform-list,
.grid {
  display: grid;
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.hero-meta > *,
.detail,
.feature-pill,
.stat-box,
.platform-card,
.action-card,
.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: 6px;
  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-row,
.field,
.input-wrap {
  display: flex;
  gap: 8px;
}

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

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

input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-min);
  background: var(--bg);
  color: var(--ink);
  padding: 7px 9px;
}

input:focus {
  border-color: var(--ink);
}

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

.submit-btn,
button.primary,
a.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.submit-btn:hover,
button.primary:hover,
a.primary:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

button.primary {
  width: 100%;
}

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

.form-note,
.success-msg,
.error-msg {
  margin-top: 10px;
  font-size: 0.82rem;
}

.success-msg {
  display: none;
  color: var(--success);
}

.success-msg.visible,
.success-msg[style*="flex"] {
  display: block;
}

.error-msg {
  color: var(--danger);
  display: none;
}

.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-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;
}

.platform-logo {
  display: none;
}

.connected-badge {
  border-color: color-mix(in oklch, var(--success) 48%, var(--line));
  color: var(--success);
  cursor: default;
  opacity: 1;
}

.connected-badge::before {
  width: 6px;
  height: 10px;
  border-color: currentColor;
  border-style: solid;
  border-width: 0 2px 2px 0;
  content: "";
  flex: 0 0 auto;
  transform: rotate(45deg) translateY(-1px);
}

.scheduler-main {
  width: min(100% - 36px, 920px);
}

.scheduler-main .create-post-title {
  margin: 26px auto 22px;
  text-align: center;
  width: min(100%, 520px);
}

.scheduler-main .create-post-title strong {
  display: block;
  font-size: clamp(1.55rem, 3.6vw, 2.25rem);
  font-weight: 650;
  line-height: 1.04;
}

.scheduler-main .create-post-button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: var(--radius-min);
  color: var(--ink);
  display: inline-flex;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 650;
  gap: 10px;
  justify-content: center;
  line-height: 1.05;
  min-height: 52px;
  padding: 11px 18px;
  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: var(--surface);
  border-color: var(--ink);
}

.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-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 .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 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 > span {
  color: var(--muted);
  display: block;
  margin-top: 8px;
}

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

.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: 38px minmax(0, 1fr);
}

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

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

.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 .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: 18px clamp(18px, 4vw, 44px);
  font-size: 0.82rem;
  text-align: center;
}

.footer a,
footer a {
  color: var(--muted);
  text-decoration-thickness: 1px;
}

.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);
}

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;
}

.image-page-main {
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  display: block;
  overflow: visible;
}

.center-image-panel {
  width: 100%;
  min-height: 100%;
  display: block;
}

.center-page-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(500%, 500px);
  max-height: 100%;
  object-fit: contain;
}

.sb-scroll-stage {
  --sb-progress: 0;
  --sb-progress-eased: 0;
  position: relative;
  width: 100%;
  min-height: 100%;
  overflow: visible;
  background: var(--bg);
  color: var(--ink);
}

.sb-scroll-stage--annotated .sb-scroll-spacer {
  min-height: clamp(35svh, 45svh, 55svh);
}

.sb-scroll-stage--annotated .sb-scroll-frame {
  position: relative;
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(clamp(17rem, 38vw, 32rem), 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  padding: clamp(18px, 4vw, 44px);
}

.sb-scroll-stage--annotated .sb-scroll-media {
  position: fixed;
  left: clamp(18px, 8vw, 200px);
  top: 50%;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.sb-scroll-stage--annotated .sb-scroll-image {
  width: min(42vw, 430px);
  max-width: none;
  transform: scale(calc(1 - (var(--sb-progress-eased) * 0.4)));
  transform-origin: center center;
}

.sb-scroll-stage--annotated .sb-scroll-copy {
  grid-column: 2;
  width: min(38ch, 100%);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding-top: clamp(18svh, 22svh, 28svh);
  padding-right: clamp(4px, 1vw, 16px);
  z-index: 2;
}

.sb-scroll-stage--annotated .sb-scroll-gap {
  min-height: clamp(0svh, 55svh, 110svh);
}

.sb-scroll-stage--annotated .sb-scroll-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.1rem, 4.9vw, 4.45rem);
  font-weight: 650;
  line-height: 0.9;
  letter-spacing: -0.05em;
  opacity: 1;
  transform: none;
  text-wrap: balance;
}

.sb-scroll-stage--annotated .sb-scroll-secondary,
.sb-scroll-stage--annotated .sb-scroll-tertiary {
  margin: 0;
  max-width: 24ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  opacity: 1;
  transform: none;
}

@media (max-width: 820px) {
  .sb-scroll-stage--annotated .sb-scroll-frame {
    grid-template-columns: 1fr;
    gap: clamp(18px, 4vw, 28px);
    min-height: 100%;
  }

  .sb-scroll-stage--annotated .sb-scroll-media {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    z-index: auto;
    pointer-events: auto;
  }

  .sb-scroll-stage--annotated .sb-scroll-copy {
    position: relative;
    grid-column: auto;
    right: auto;
    top: auto;
    transform: none;
    width: min(30ch, 88vw);
    gap: clamp(0.875rem, 3vw, 1.25rem);
    padding-top: 0;
    padding-right: 0;
  }

  .sb-scroll-stage--annotated .sb-scroll-gap {
    min-height: clamp(48svh, 72svh, 86svh);
  }

  .sb-scroll-stage--annotated .sb-scroll-image {
    width: min(82vw, 430px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sb-scroll-stage--annotated .sb-scroll-image {
    transform: none;
    opacity: 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;
  }
}
