:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #242a32;
  background: #fafaf8;
  font-synthesis: none;
  --blue: #2463df;
  --muted: #737780;
  --line: #e4e5e3;
  --paper: #fff;
  --radius: 8px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 15px;
  background: #fff;
  color: #333c49;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.35;
}
button:hover,
.button:hover {
  background: #f3f4f4;
}
button.primary,
.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
button.primary:hover,
.button.primary:hover {
  background: #1d53c1;
}
button.quiet {
  border-color: transparent;
  background: transparent;
}
button.danger {
  color: #b63c36;
}
button.small {
  font-size: 12px;
  padding: 6px 9px;
}
.muted {
  color: var(--muted);
}
.small-text {
  font-size: 12px;
  line-height: 1.6;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.4px;
  font-weight: 650;
  color: var(--muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.9px;
  color: #262d37;
}
.brand img {
  width: 31px;
  height: 31px;
}
.sidebar {
  position: fixed;
  width: 214px;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--line);
  padding: 30px 18px 18px;
  background: #f3f3ef;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.sidebar .brand {
  padding: 0 8px 38px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav button {
  border: 0;
  background: transparent;
  justify-content: flex-start;
  text-align: left;
  padding: 11px 13px;
  font-weight: 500;
  color: #676e76;
}
.nav button.active {
  color: #202b3b;
  background: #fff;
  box-shadow: 0 1px 3px #1824330a;
}
.nav svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.6;
}
.nav .count {
  margin-left: auto;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.side-bottom {
  margin-top: auto;
  padding: 20px 9px 0;
  display: grid;
  gap: 10px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4c8a63;
  margin-right: 6px;
}
.side-bottom p {
  margin: 0;
  font-size: 11px;
  color: #7c8185;
  line-height: 1.8;
}
.side-bottom a {
  font-size: 11px;
  color: #666e78;
}
.app-main {
  margin-left: 214px;
  min-height: 100vh;
}
.topbar {
  height: 69px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  color: #777e86;
}
.topbar strong {
  color: #454e59;
  font-weight: 550;
}
.topbar-right {
  display: flex;
  gap: 18px;
  align-items: center;
}
.page {
  max-width: 1200px;
  margin: auto;
  padding: 39px 42px 60px;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.page-header h1 {
  font-size: 28px;
  letter-spacing: -0.9px;
  font-weight: 650;
  margin: 0 0 8px;
}
.page-header p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.compose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: 27px;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel-heading {
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  font-weight: 600;
}
.panel-body {
  padding: 22px;
}
.label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 9px;
}
label {
  font-size: 12px;
  font-weight: 550;
}
input:not([type='checkbox']):not([type='file']),
select,
textarea {
  width: 100%;
  border: 1px solid #dcdfe2;
  background: #fff;
  border-radius: 5px;
  color: #303844;
  padding: 11px 12px;
  font-size: 13px;
}
textarea {
  resize: vertical;
  line-height: 1.7;
  min-height: 220px;
}
input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  margin: 0;
  flex-shrink: 0;
}
input::placeholder,
textarea::placeholder {
  color: #9ca1a7;
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 19px;
}
.field p {
  margin: 0;
}
.account-options {
  display: grid;
  gap: 9px;
  margin: 0 0 25px;
}
.account-option {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
}
.account-option:has(input[name='account']:checked) {
  border-color: #92b2ef;
  background: #f7faff;
}
.account-option .account-info {
  flex: 1;
  min-width: 0;
}
.account-info strong {
  font-size: 12px;
  display: block;
  font-weight: 550;
}
.account-info span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.platform-mark {
  width: 29px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f0f3f9;
  color: #4974b0;
  font-weight: 750;
  font-size: 14px;
  border-radius: 6px;
}
.platform-mark img,
.platform-mark > svg {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
}
.platform-mark.x {
  background: #222;
  color: white;
}
.platform-mark.mastodon {
  background: #eeebfa;
  color: #6958aa;
}
.platform-mark.bluesky {
  background: #e9f4ff;
  color: #2184df;
}
.badge {
  padding: 3px 7px;
  background: #f0f1f2;
  color: #6c7380;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.badge.scheduled,
.badge.queued,
.badge.publishing {
  background: #edf3ff;
  color: #4169b3;
}
.badge.failed,
.badge.partial,
.badge.needs_review,
.badge.blocked {
  background: #fff0ed;
  color: #a05042;
}
.compose-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 0;
  gap: 10px;
}
.counter {
  font-size: 11px;
  color: var(--muted);
}
.char-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 11px;
  color: #858b93;
  margin: 12px 0 0;
}
.warn {
  color: #a34a35 !important;
}
.notice {
  font-size: 12px;
  line-height: 1.7;
  padding: 11px 13px;
  border: 1px solid #e4e8ef;
  border-radius: 5px;
  background: #f7f9fc;
  color: #647189;
  margin: 16px 0;
}
.notice.warning {
  background: #fffbef;
  border-color: #eee3c3;
  color: #8c763e;
}
.error {
  color: #a53c32;
  background: #fff3f0;
  border: 1px solid #eed7d1;
  font-size: 12px;
  line-height: 1.6;
  padding: 10px 12px;
  border-radius: 5px;
}
.error:empty {
  display: none;
}
.schedule-box {
  padding-top: 22px;
  margin-top: 23px;
  border-top: 1px solid var(--line);
}
.schedule-box .field {
  margin-bottom: 8px;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 23px;
  flex-wrap: wrap;
}
.form-footnote {
  font-size: 11px;
  line-height: 1.7;
  color: #858b93;
  margin: 17px 0 0;
}
.preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.preview-card {
  padding: 22px;
}
.preview-user {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eaece8;
  color: #7f887c;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.preview-user strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
.preview-user span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.preview-text {
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 0;
}
.preview-placeholder {
  color: #b0b4b8;
}
.preview-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #eeefed;
  color: #9aa0a5;
  font-size: 11px;
}
.preview-note {
  font-size: 11px;
  color: #959ba2;
  line-height: 1.7;
  margin: 12px 3px 26px;
}
.note-box {
  padding: 19px 0;
  border-top: 1px solid var(--line);
}
.note-box h3 {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 9px;
}
.note-box p {
  font-size: 12px;
  line-height: 1.8;
  color: #858b93;
  margin: 0;
}
.attachments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}
.attachment {
  position: relative;
  min-width: 0;
}
.attachment img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}
.attachment button {
  position: absolute;
  right: 5px;
  top: 5px;
  border: 0;
  background: #fff;
  padding: 3px 8px;
  font-size: 16px;
}
.attachment input {
  margin-top: 5px;
  font-size: 11px !important;
  padding: 7px !important;
}
.preview-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin-top: 16px;
}
.preview-images img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 4px;
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  overflow-x: auto;
}
.tabs button {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 0 14px;
  color: #7f858e;
  white-space: nowrap;
  font-size: 12px;
}
.tabs button.active {
  border-bottom: 2px solid var(--blue);
  color: #2b58a8;
}
.post-list {
  display: grid;
  gap: 18px;
}
.post-row {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  min-width: 0;
}
.post-row-top {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}
.post-time {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.post-published {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.05em;
  color: #087a37;
}
:root[data-theme='dark'] .post-published {
  color: #39ff88;
  text-shadow: 0 0 8px #39ff8830;
}
.post-content-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8f9fa;
}
.post-thumbnail {
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
}
.post-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}
.post-image-count {
  position: absolute;
  right: 3px;
  bottom: 3px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #101820dd;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
:root[data-theme='dark'] .post-content-card {
  background: #111b28;
}
.post-text {
  min-width: 0;
  flex: 1;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}
.post-accounts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.post-accounts span {
  font-size: 10px;
  color: #7b828c;
  background: #f4f5f6;
  padding: 5px 8px;
  border-radius: 4px;
}
.row-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 13px;
}
.receipts {
  display: grid;
  gap: 8px;
  padding-top: 15px;
  margin-top: 15px;
  border-top: 1px solid #eceeec;
}
.receipt {
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.receipt strong {
  font-weight: 550;
}
.receipt p {
  margin: 3px 0 0;
  color: #8a7470;
}
.empty {
  padding: 65px 25px;
  text-align: center;
  max-width: 500px;
  margin: auto;
}
.empty h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.empty p {
  font-size: 13px;
  color: #858b93;
  line-height: 1.8;
  margin-bottom: 16px;
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.account-card {
  padding: 23px;
}
.account-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.account-card .account-info {
  flex: 1;
}
.account-card p {
  font-size: 11px;
  color: #8c9298;
  line-height: 1.7;
}
.account-card .row-actions {
  justify-content: flex-start;
  margin-top: 18px;
}
.section-label {
  font-size: 11px;
  color: #818790;
  letter-spacing: 0.6px;
  font-weight: 550;
  margin: 31px 0 16px;
}
.roadmap details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.roadmap p {
  font-size: 12px;
  line-height: 1.8;
  color: #858b93;
  margin-bottom: 0;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.settings-grid h2 {
  font-size: 14px;
  font-weight: 600;
  margin-top: 0;
}
.settings-grid p {
  font-size: 12px;
  line-height: 1.8;
  color: #838992;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  font-size: 12px;
  color: #7f858d;
}
dialog {
  width: 460px;
  max-width: calc(100vw - 30px);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 24px 80px #17263a24;
  color: #313a46;
}
dialog:has(#connect-form) {
  width: 680px;
}
dialog::backdrop {
  background: #202b3f38;
  backdrop-filter: blur(2px);
}
.dialog-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-header h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 0;
}
.dialog-header button {
  font-size: 21px;
  padding: 0 5px;
  border: 0;
}
.dialog-content {
  padding: 24px;
}
.dialog-content .actions {
  margin-top: 20px;
}
.dialog-help {
  font-size: 12px;
  line-height: 1.8;
  color: #7c8692;
  margin: 16px 0 23px;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: #293441;
  color: #fff;
  border-radius: 7px;
  font-size: 12px;
  box-shadow: 0 3px 15px #10243820;
  max-width: 90vw;
  z-index: 30;
  display: none;
}
#toast.visible {
  display: block;
}
.loading {
  margin: 60px;
  color: #899099;
  font-size: 13px;
}
.landing {
  background: #fff;
  height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}
.landing > main {
  display: grid;
  place-items: center;
  min-height: 0;
}
.landing-header {
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  padding: clamp(12px, 3svh, 31px) 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.landing-header .button {
  font-size: 12px;
}
.landing-hero {
  text-align: center;
  max-width: 1110px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(8px, 2svh, 24px) 30px;
}
.hero-platforms {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin-bottom: 33px;
}
.hero-platforms span {
  font-size: 14px;
  font-weight: 600;
  color: #596675;
  display: flex;
  gap: 8px;
  align-items: center;
}
.hero-platforms .platform-mark {
  width: 36px;
  height: 36px;
  font-size: 18px;
}
.platform-mark.tiktok,
.platform-mark.pinterest,
.platform-mark.google-business {
  background: #fff;
}
.landing h1 {
  font-size: clamp(28px, min(6.3vw, 9svh), 82px);
  line-height: 1.09;
  letter-spacing: -4px;
  font-weight: 700;
  color: #323e50;
  margin: 0 auto 27px;
  max-width: 1080px;
}
.hero-description {
  font-size: 18px;
  line-height: 1.8;
  color: #7e8793;
  max-width: 650px;
  margin: 0 auto 30px;
}
.hero-cta {
  padding: clamp(9px, 2svh, 18px) 43px !important;
  font-size: 16px !important;
  border-radius: 40px !important;
  min-width: 230px;
}
.hero-note {
  font-size: 11px;
  color: #969da5;
  margin: 22px auto 0;
}
.landing-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(8px, 2svh, 20px) 25px;
  text-align: center;
  color: #a1a6ac;
  font-size: 12px;
  line-height: 1.5;
}
.signin {
  max-width: 360px;
  margin: 12vh auto;
  padding: 25px;
}
.signin h1 {
  font-size: 24px;
  margin: 35px 0 25px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .page {
    padding-top: 54px;
  }
  .compose-grid {
    gap: 36px;
  }
  .preview-card {
    padding: 27px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 180px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .app-main {
    margin-left: 180px;
  }
  .page {
    padding: 30px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .compose-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 1fr);
    gap: 20px;
  }
  .panel-body {
    padding: 18px;
  }
  .landing h1 {
    letter-spacing: -3px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 16px 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    padding: 0 0 15px;
    font-size: 21px;
  }
  .nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }
  .nav button {
    padding: 10px;
    font-size: 12px;
    border-radius: 5px 5px 0 0;
    white-space: nowrap;
  }
  .nav .count {
    display: none;
  }
  .side-bottom {
    display: none;
  }
  .app-main {
    margin-left: 0;
  }
  .topbar {
    height: 45px;
    padding: 0 20px;
    font-size: 11px;
  }
  .topbar-right .muted {
    display: none;
  }
  .page {
    padding: 27px 20px;
  }
  .page-header h1 {
    font-size: 25px;
  }
  .compose-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(210px, 1fr);
    gap: 17px;
  }
  .account-grid,
  .settings-grid {
    grid-template-columns: 1fr 1fr;
  }
  .landing h1 {
    letter-spacing: -2.4px;
  }
  .hero-description {
    font-size: 16px;
  }
}
@media (max-width: 600px) {
  .compose-grid,
  .account-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .preview-column {
    margin-top: 14px;
  }
  .note-box {
    display: none;
  }
  .topbar {
    padding: 0 18px;
  }
  .page {
    padding: 26px 17px 50px;
  }
  .page-header {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
  }
  .page-header p {
    font-size: 12px;
  }
  .page-header .button {
    font-size: 11px;
    padding: 9px;
  }
  .panel-heading {
    padding: 16px 18px;
  }
  .panel-body {
    padding: 18px;
  }
  .nav {
    justify-content: space-between;
    gap: 0;
  }
  .nav button {
    font-size: 11px;
    gap: 6px;
    padding: 11px 9px;
  }
  .nav svg {
    width: 14px;
    height: 14px;
  }
  .sidebar {
    padding: 15px 17px 0;
  }
  .tabs {
    gap: 22px;
  }
  .post-row {
    padding: 19px 17px;
  }
  .post-time {
    font-size: 14px;
  }
  .landing-header {
    padding: 23px;
  }
  .landing-header .brand {
    font-size: 21px;
  }
  .landing-header .button {
    font-size: 10px;
    padding: 8px 10px;
  }
  .landing-hero {
    padding: 0 20px;
  }
  .hero-platforms {
    gap: 14px;
    margin-bottom: 28px;
  }
  .hero-platforms span {
    font-size: 11px;
    gap: 6px;
  }
  .hero-platforms .platform-mark {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }
  .landing h1 {
    font-size: clamp(26px, 7vw, 43px);
    letter-spacing: -2px;
    line-height: 1.12;
  }
  .hero-description {
    font-size: 14px;
    line-height: 1.9;
  }
  .landing-footer {
    font-size: 11px;
    line-height: 1.5;
  }
  .actions button {
    flex: 1;
    padding: 11px 9px;
  }
  .dialog-content {
    padding: 20px;
  }
}

.platform-mark.discord {
  background: #5865f2;
  color: #5865f2;
}
.platform-mark.instagram {
  background: #fff;
}
.platform-mark.threads {
  background: #f0f0ee;
  color: #292929;
}
.hero-platforms {
  flex-wrap: wrap;
}
.badge.processing {
  background: #edf3ff;
  color: #4169b3;
}
.compose-tools > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.docs-guides {
  display: grid;
  gap: 13px;
  margin: 23px 0;
}
@media (max-width: 600px) {
  .nav button {
    padding: 11px 6px;
    gap: 4px;
  }
  .nav svg {
    width: 13px;
    height: 13px;
  }
}

.docs-platform {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
}
.docs-platform:hover {
  border-color: var(--muted);
}
.docs-platform > span:nth-child(2) {
  flex: 1;
}
.docs-platform strong,
.docs-platform small {
  display: block;
}
.docs-platform small {
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.6;
}
.docs-back {
  display: inline-block;
  margin-bottom: 22px;
}
.docs-screenshot {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.docs-section figure {
  margin: 20px 0 0;
}
.docs-section figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.docs-article {
  max-width: 820px;
  margin: 30px 0;
}
.docs-section {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.docs-section:first-child {
  padding-top: 0;
}
.docs-section h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 12px;
}
.docs-section p,
.docs-section ul {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0;
}

/* Keep the content preview proportional to the actual post. */
.preview-card {
  overflow: hidden;
}
.preview-user .avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin: 0;
  width: 40px;
  height: 40px;
}
.preview-user .platform-mark {
  display: inline-flex;
  margin: 0;
}
.preview-user > div {
  min-width: 0;
}
.preview-user strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.preview-user > div > span {
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.preview-text {
  font-size: 14px;
  line-height: 1.65;
}
.preview-images:empty {
  display: none;
}
.preview-images {
  overflow: hidden;
  border-radius: 8px;
  gap: 3px;
}
.preview-images img {
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0;
}
.preview-images img:only-child {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  max-height: 480px;
  object-fit: contain;
  background: #f4f5f3;
}
.preview-meta {
  padding-top: 14px;
  margin-top: 16px;
  align-items: center;
}

.docs-article > p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.docs-step strong {
  color: inherit;
}

button.image-url-button {
  background: #345bc5;
  border-color: #345bc5;
  color: #fff;
  font-weight: 600;
  padding: 9px 14px;
}
button.image-url-button:hover {
  background: #294aa4;
  border-color: #294aa4;
  color: #fff;
}
button.image-url-button:focus-visible {
  outline: 3px solid #a9bdf2;
  outline-offset: 3px;
}

.receipt > .platform-mark,
.post-accounts .platform-mark {
  display: inline-flex;
  vertical-align: middle;
  width: 24px;
  height: 24px;
  margin-right: 8px;
}
.post-accounts > span {
  display: inline-flex;
  align-items: center;
}

.platform-mark {
  border: 1px solid #000;
}
.nav .count {
  margin-left: 4px;
}

#x-options {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #e3c58c;
  border-radius: 8px;
  background: #fffaf0;
}
.x-link-option {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
}
#x-cost-estimate {
  line-height: 1.7;
  margin-bottom: 0;
}

.region-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}
.region-toggle button {
  font-size: inherit;
  padding: 4px 6px;
  text-decoration: none;
}

.region-value.is-blurred {
  filter: blur(4px);
  user-select: none;
}
.region-value {
  transition: filter 140ms ease;
}

.account-select {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.content-options {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.content-options label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}
.content-options input {
  appearance: none;
  width: 28px;
  height: 16px;
  border-radius: 12px;
  background: #c9cdd2;
  position: relative;
  cursor: pointer;
  margin: 0;
}
.content-options input:checked {
  background: #345bc5;
}
.content-options input::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #fff;
}
.content-options input:checked::after {
  left: 14px;
}
.content-options input:focus-visible {
  outline: 2px solid #345bc5;
  outline-offset: 3px;
}
@media (max-width: 480px) {
  .account-option {
    flex-wrap: wrap;
  }
  .content-options {
    margin-left: 28px;
  }
}

.content-options input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.badge.connected {
  background: #e7f5ec;
  color: #21653b;
}

.compose-tools {
  flex-wrap: wrap;
}
.compose-tools > div > button {
  min-height: 36px;
}
.compose-tools .counter {
  white-space: nowrap;
  margin-left: auto;
}

.library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  max-height: 350px;
  overflow: auto;
}
.library button {
  display: block;
  padding: 4px;
}
.library img {
  width: 100%;
  height: 90px;
  object-fit: cover;
}
.library small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 10px;
  padding: 5px;
}
.library-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.library-thumbnail {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 6px;
  background: #f4f5f3;
  flex-shrink: 0;
}
.library-item > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
button.saved-library-button {
  background: #fff1f0;
  border-color: #f3c5c1;
  color: #9e3028;
}
button.saved-library-button:hover {
  background: #ffe3e0;
  border-color: #e8a9a3;
  color: #84251f;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sending-spinner {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: sending-spin 800ms linear infinite;
  flex-shrink: 0;
}
.badge.sending {
  background: #edf3ff;
  color: #4169b3;
}
.badge.published {
  background: #edfff3;
  color: #087c32;
  font-weight: 700;
  text-shadow: 0 0 7px #39ff1480;
  box-shadow: 0 0 7px #39ff1426;
}
@keyframes sending-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sending-spinner {
    animation: none;
  }
}

.destination-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.destination-heading .label {
  margin-bottom: 0;
}
.select-all-accounts {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.platform-mark.linkedin {
  background: #e8f2fa;
}

/* Theme controls stay available on the landing page, sign-in, and workspace. */
:root {
  color-scheme: light;
}
.theme-toggle {
  white-space: nowrap;
  min-height: 36px;
}
.theme-toggle svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
}
.theme-switch {
  width: 28px;
  height: 16px;
  padding: 2px;
  border-radius: 20px;
  background: #a0a8b4;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.theme-switch::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}
.theme-toggle[aria-checked='true'] .theme-switch {
  background: #2463df;
  justify-content: flex-end;
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--blue);
}
.landing-header-actions,
.signin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.signin-header {
  flex-wrap: wrap;
}

/* Explicit surfaces and semantic states keep every screen in the same palette. */
:root[data-theme='dark'] {
  color-scheme: dark;
  color: #e7edf7;
  background: #101722;
  --text: #e7edf7;
  --blue: #9ebfff;
  --muted: #b2bdce;
  --line: #374457;
  --paper: #182230;
  --dark-soft: #222f40;
  --dark-accent: #203756;
  --dark-success: #163d2c;
  --dark-danger: #44272f;
  --dark-warning: #3a311f;
}
:root[data-theme='dark'] :is(button, .button) {
  background: var(--paper);
  color: var(--text);
}
:root[data-theme='dark'] :is(button:hover, .button:hover) {
  background: var(--dark-soft);
}
:root[data-theme='dark'] :is(button.quiet, .nav button, .tabs button) {
  background: transparent;
}
:root[data-theme='dark'] button.quiet:hover {
  background: var(--dark-soft);
}
:root[data-theme='dark'] :is(button.primary, .button.primary, button.image-url-button) {
  background: #2463df;
  border-color: #2463df;
  color: #fff;
}
:root[data-theme='dark']
  :is(button.primary:hover, .button.primary:hover, button.image-url-button:hover) {
  background: #1d53c1;
  border-color: #1d53c1;
}
:root[data-theme='dark'] :is(.brand, .topbar strong, .nav button.active, .landing h1) {
  color: var(--text);
}
:root[data-theme='dark'] .sidebar {
  background: #131c28;
}
:root[data-theme='dark'] :is(.topbar, .panel, .post-row, .landing, .attachment button, dialog) {
  background: var(--paper);
  color: var(--text);
}
:root[data-theme='dark'] .nav button.active {
  background: var(--dark-soft);
  box-shadow: none;
}
:root[data-theme='dark'] :is(input:not([type='checkbox']):not([type='file']), select, textarea) {
  background: #111b28;
  border-color: #56667e;
  color: var(--text);
}
:root[data-theme='dark'] :is(input::placeholder, textarea::placeholder) {
  color: #a5b1c4;
  opacity: 1;
}
:root[data-theme='dark']
  :is(
    .nav button,
    .side-bottom p,
    .side-bottom a,
    .topbar,
    .char-hints,
    .form-footnote,
    .preview-placeholder,
    .preview-meta,
    .preview-note,
    .note-box p,
    .tabs button,
    .post-time,
    .receipt p,
    .empty p,
    .account-card p,
    .section-label,
    .settings-grid p,
    .pagination,
    .dialog-help,
    .loading,
    .hero-platforms span,
    .hero-description,
    .hero-note,
    .landing-footer
  ) {
  color: var(--muted);
}
:root[data-theme='dark'] :is(.tabs button.active, .side-bottom a) {
  color: var(--blue);
}
:root[data-theme='dark'] .account-option:has(input[name='account']:checked) {
  border-color: #779fe5;
  background: var(--dark-accent);
}
:root[data-theme='dark']
  :is(.avatar, .post-accounts > span, .library-thumbnail, .preview-images img:only-child) {
  background: var(--dark-soft);
  color: var(--muted);
}
:root[data-theme='dark'] :is(.preview-meta, .receipts) {
  border-color: var(--line);
}
:root[data-theme='dark'] .notice {
  background: var(--dark-soft);
  border-color: var(--line);
  color: #c5d2e6;
}
:root[data-theme='dark'] :is(.notice.warning, #x-options) {
  background: var(--dark-warning);
  border-color: #806a3c;
  color: #f3d493;
}
:root[data-theme='dark'] .error {
  background: var(--dark-danger);
  border-color: #895563;
  color: #ffb6b1;
}
:root[data-theme='dark'] .warn {
  color: #ffb6b1 !important;
}
:root[data-theme='dark'] button.danger {
  color: #ffb6b1;
}
:root[data-theme='dark'] .badge {
  background: var(--dark-soft);
  color: #c6d0df;
}
:root[data-theme='dark']
  :is(.badge.scheduled, .badge.queued, .badge.publishing, .badge.sending, .badge.processing) {
  background: var(--dark-accent);
  color: #b3d0ff;
}
:root[data-theme='dark']
  :is(.badge.failed, .badge.partial, .badge.needs_review, .badge.uncertain, .badge.blocked) {
  background: var(--dark-danger);
  color: #ffb6b1;
}
:root[data-theme='dark'] :is(.badge.published, .badge.connected) {
  background: var(--dark-success);
  color: #8aefb4;
  text-shadow: none;
  box-shadow: none;
}
:root[data-theme='dark'] .content-options input {
  background: #6b7a90;
}
:root[data-theme='dark'] .content-options input:checked {
  background: #2463df;
}
:root[data-theme='dark'] .content-options input:focus-visible {
  outline-color: var(--blue);
}
:root[data-theme='dark'] button.saved-library-button {
  background: var(--dark-danger);
  border-color: #895563;
  color: #ffb6b1;
}
:root[data-theme='dark'] button.saved-library-button:hover {
  background: #59313c;
}
:root[data-theme='dark'] dialog {
  box-shadow: 0 24px 80px #0008;
}
:root[data-theme='dark'] dialog::backdrop {
  background: #0009;
}
@media (max-width: 800px) {
  .topbar {
    height: auto;
    min-height: 54px;
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 8px 16px;
    flex-wrap: wrap;
  }
  .topbar-right {
    gap: 8px 12px;
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  .landing-header {
    padding: 20px;
    flex-wrap: wrap;
    gap: 18px;
  }
  .landing-header-actions {
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  .account-select {
    flex-basis: 100%;
  }
}

.guide-header h1 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.guide-header {
  flex-wrap: wrap;
}
.guide-header > button {
  flex-shrink: 0;
  margin-left: auto;
}

.platform-mark.telegram {
  background: #e5f4fc;
}

.platform-mark.facebook {
  background: #e8f0ff;
}

.published-check {
  display: inline-flex;
  width: 19px;
  height: 19px;
  vertical-align: middle;
  color: #087a37;
}
.published-check svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.published-check circle {
  fill: #39ff88;
  stroke: #169c4b;
  stroke-width: 1;
}
.published-check path {
  fill: none;
  stroke: #063b20;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:root[data-theme='dark'] .published-check {
  filter: drop-shadow(0 0 3px #39ff8840);
}

.region-value {
  display: inline;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  padding: 0 2px;
  vertical-align: baseline;
}

.library button:disabled {
  cursor: not-allowed;
}
.library button:disabled img {
  opacity: 0.45;
}
.library-unavailable {
  display: block;
  color: var(--muted);
  line-height: 1.5;
  white-space: normal;
}

.content-options .required-toggle {
  display: inline-flex;
  position: relative;
  width: 28px;
  height: 16px;
  flex-shrink: 0;
  cursor: help;
}
.required-toggle input:disabled {
  pointer-events: none;
}
.required-toggle-tooltip {
  display: none;
  position: absolute;
  z-index: 20;
  left: var(--tooltip-x, 50%);
  top: var(--tooltip-y, 0px);
  transform: translate(-50%, -100%);
  margin-top: -12px;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 9px 12px;
  border: 1px solid #364354;
  border-radius: 8px;
  background: #152132;
  color: #f1f5fb;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 6px 18px #0003;
  pointer-events: none;
}
.required-toggle-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: #152132;
}
.required-toggle:hover .required-toggle-tooltip,
.required-toggle:focus-visible .required-toggle-tooltip {
  display: block;
}
.required-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 4px;
}
.required-toggle:focus-visible .required-toggle-tooltip {
  left: 50%;
  top: 0;
}

@media (max-height: 700px) {
  .landing-header {
    padding: 12px 20px;
    gap: 10px;
  }
  .landing h1 {
    font-size: clamp(22px, min(6vw, 7svh), 48px);
    line-height: 1.1;
    letter-spacing: -1.2px;
    margin-bottom: clamp(8px, 2svh, 14px);
  }
  .hero-platforms {
    gap: 10px;
    margin-bottom: clamp(8px, 2svh, 14px);
  }
  .hero-platforms .platform-mark {
    width: 26px;
    height: 26px;
  }
  .hero-description {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: clamp(8px, 2svh, 14px);
  }
  .hero-cta {
    font-size: 14px !important;
    padding: 9px 28px !important;
  }
  .hero-note {
    margin-top: clamp(6px, 1.5svh, 10px);
    line-height: 1.4;
  }
  .landing-footer {
    padding: 8px 16px;
  }
}

#youtube-fields {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
#youtube-fields h2 {
  margin-top: 0;
  font-size: 16px;
}
#preview-video,
.post-video video {
  display: block;
  width: 100%;
  max-height: 300px;
  margin-bottom: 12px;
  border-radius: 6px;
  background: #101010;
}
.post-video {
  display: grid;
  gap: 8px;
  min-width: 0;
}
#connect-fields details {
  margin: 18px 0;
}
#connect-fields summary {
  cursor: pointer;
}

#preview-video[hidden] {
  display: none;
}
#preview-video-title {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.video-file-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
#youtube-file-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.connection-notice {
  max-width: 1200px;
  margin: 18px auto 0;
  padding: 0 42px;
}
@media (max-width: 600px) {
  .connection-notice {
    padding: 0 17px;
  }
}

.docs-connection-note {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.docs-connection-note h2 {
  margin: 0 0 12px;
  font-size: 16px;
}
.docs-connection-note p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}
.docs-connection-note p:last-child {
  margin-bottom: 0;
}

.required-indicator {
  color: #dc2626;
}
:root[data-theme='dark'] .required-indicator {
  color: #ff8d87;
}
