:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 13px;
  color: #353633;
  background: #fff;
  font-synthesis: none;
  --line: #ecece9;
  --muted: #92938c;
  --green: #6c785c;
  --hover: #f5f5f2;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #8d9c7d;
  outline-offset: 3px;
}
/* Keep inline settings and planner selectors visually unchanged on focus. */
.setting-value select:focus,
.setting-value select:focus-visible,
.planner-picker select:focus,
.planner-picker select:focus-visible {
  outline: none;
  box-shadow: none;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 15px;
  font-weight: 500;
}
h2 {
  font-size: 14px;
  font-weight: 500;
}
small {
  font-size: 11px;
}
.shell {
  max-width: 1160px;
  margin: 0 auto;
  min-height: 100dvh;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.topbar {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: -0.15px;
}
.brand .asterisk {
  font-size: 25px;
  color: #66705b;
  line-height: 1;
}
.top-actions,
.segmented,
.row-actions,
.inline {
  display: flex;
  align-items: center;
  gap: 6px;
}
.muted {
  color: var(--muted);
}
.micro {
  font-size: 11px;
  color: var(--muted);
}
.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    color 0.15s;
}
.icon-btn:hover {
  background: var(--hover);
  color: #222;
}
.btn {
  min-height: 31px;
  padding: 6px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #e3e4de;
  border-radius: 5px;
  line-height: 1.3;
  background: #fff;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
  white-space: nowrap;
}
.btn:hover {
  background: var(--hover);
  border-color: #cfcfc7;
}
.btn:active {
  transform: translateY(1px);
}
.btn.primary {
  background: #68735e;
  color: white;
  border-color: #68735e;
}
.btn.primary:hover {
  background: #58644e;
}
.btn.quiet {
  border-color: transparent;
  background: transparent;
}
.text-btn {
  padding: 5px 0;
  color: #78846a;
  font-size: 12px;
}
.text-btn:hover {
  text-decoration: underline;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 10px;
  color: #888b80;
  letter-spacing: 0.02em;
}
.badge .dot,
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a5ae95;
  display: inline-block;
}
.profile {
  padding: 30px 27px 25px;
  display: flex;
  align-items: flex-start;
  gap: 17px;
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  padding: 3px;
}
.profile-main {
  padding-top: 3px;
}
.profile h1 {
  margin: 0 0 14px;
  font-size: 14px;
  letter-spacing: -0.15px;
}
.stats {
  display: flex;
  gap: 29px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #8a8d83;
  font-size: 11px;
  padding: 0;
  text-align: left;
}
.stat strong {
  font-size: 14px;
  font-weight: 500;
  color: #3c4037;
}
.stat:hover span {
  color: #59614f;
}
.bio {
  margin-top: 17px;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-line;
}
.profile-side {
  margin-left: auto;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 5px;
}
.connected-note {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #9a9c93;
  font-size: 10px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 9px 23px;
  min-height: 49px;
}
.segmented {
  gap: 2px;
}
.tab-btn {
  font-size: 11px;
  color: #9a9c94;
  border-radius: 4px;
  padding: 6px 9px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.tab-btn svg {
  width: 13px;
  height: 13px;
}
.tab-btn.active {
  background: #f0f1ec;
  color: #515b47;
}
.tab-btn:hover {
  background: #f5f5f2;
}
.toolbar-end {
  display: flex;
  gap: 10px;
  align-items: center;
}
.filter {
  border: 0;
  background: transparent;
  font-size: 11px;
  color: #8d9186;
  padding: 4px;
  max-width: 130px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: #fff;
}
.card {
  position: relative;
  aspect-ratio: 4/5;
  background: #eeeee8;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
}
.card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.6s var(--ease),
    opacity 0.3s;
}
.card:hover .card-media {
  transform: scale(1.025);
}
.card.dragging {
  opacity: 0.3;
}
.card.drag-over {
  outline: 3px solid #869475;
  outline-offset: -3px;
}
.card:focus-visible {
  outline-offset: -4px;
  z-index: 2;
}
.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(22, 24, 18, 0.65));
  opacity: 0;
  transition: opacity 0.22s;
  pointer-events: none;
}
.card:hover .card-shade,
.card:focus-within .card-shade,
.show-details .card-shade {
  opacity: 1;
}
.card-top {
  position: absolute;
  top: 11px;
  left: 11px;
  right: 11px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  gap: 6px;
}
.card-chip {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  font-size: 9px;
  padding: 4px 6px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #4b5045;
}
.card-chip svg {
  width: 11px;
  height: 11px;
}
.pin-btn {
  pointer-events: auto;
  width: 25px;
  height: 25px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #72786b;
  opacity: 0;
  transition: opacity 0.15s;
}
.pin-btn svg {
  width: 12px;
  height: 12px;
}
.card:hover .pin-btn,
.card:focus-within .pin-btn,
.pin-btn.pinned {
  opacity: 1;
}
.pin-btn.pinned {
  color: #475b35;
}
.card-meta {
  position: absolute;
  bottom: 17px;
  left: 17px;
  right: 17px;
  color: #fff;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.22s,
    transform 0.22s;
  pointer-events: none;
}
.card:hover .card-meta,
.card:focus-within .card-meta,
.show-details .card-meta {
  opacity: 1;
  transform: translateY(0);
}
.card-title {
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 6px;
  max-width: 90%;
  font-weight: 500;
}
.card-caption {
  font-size: 11px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0.85;
}
.card-footer {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 12px;
  font-size: 9px;
  opacity: 0.85;
}
.card-footer svg {
  width: 11px;
  height: 11px;
}
.slide-controls {
  position: absolute;
  inset: 45% 8px auto;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.card:hover .slide-controls,
.card:focus-within .slide-controls {
  opacity: 1;
}
.slide-controls button {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.8);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-controls svg {
  width: 13px;
  height: 13px;
}
.dots {
  position: absolute;
  bottom: 7px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
  pointer-events: none;
}
.dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffffff70;
  box-shadow: 0 0 1px #444;
}
.dots i.active {
  background: #fff;
}
.placeholder-media {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #a5a79b;
  background: #f0f0eb;
  font-size: 14px;
}
.placeholder-media svg {
  width: 25px;
  height: 25px;
}
.grid-foot {
  padding: 23px;
  text-align: center;
  color: #aaada3;
  font-size: 10px;
  letter-spacing: 0.02em;
}
.grid-foot span {
  padding: 0 9px;
}
.view-enter {
  animation: enter 0.25s var(--ease);
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.settings {
  padding-bottom: 40px;
}
.settings-head {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.settings-head h1 {
  font-size: 13px;
}
.settings-section {
  border-top: 1px solid var(--line);
  padding: 19px 26px 15px;
}
.section-title {
  font-size: 10px;
  letter-spacing: 0.025em;
  color: #91948b;
  margin-bottom: 14px;
  font-weight: 500;
}
.setting-row {
  display: flex;
  align-items: center;
  min-height: 40px;
  gap: 10px;
}
.setting-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  font-size: 12px;
}
.setting-label svg {
  color: #73796c;
  width: 15px;
  height: 15px;
}
.setting-value {
  margin-left: auto;
  max-width: 55%;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  font-size: 12px;
  color: #969a8f;
}
.setting-value select {
  border: 0;
  background: transparent;
  max-width: 100%;
  text-align: right;
  color: #878e7d;
  padding: 7px 3px;
  font-size: 12px;
}
.setting-value select option {
  color: #353633;
}
.setting-row.top {
  align-items: flex-start;
  padding: 8px 0;
}
.setting-row.top .setting-label {
  padding-top: 8px;
}
.setting-row textarea {
  flex: 1;
  min-height: 65px;
  resize: vertical;
  line-height: 1.7;
}
.field {
  border: 1px solid #e6e6e0;
  border-radius: 5px;
  padding: 9px 10px;
  background: #fff;
  width: 100%;
  font-size: 12px;
  outline: none;
}
.field:focus {
  border-color: #9aa58c;
  box-shadow: 0 0 0 2px #97a48715;
}
.setting-value .inline-field:focus,
.setting-value .inline-field:focus-visible {
  outline: none;
  border-color: #e6e6e0;
  box-shadow: none;
}
.switch {
  width: 29px;
  height: 17px;
  border-radius: 20px;
  padding: 2px;
  background: #dadcd5;
  position: relative;
  transition: background 0.18s;
}
.switch::after {
  content: "";
  display: block;
  width: 13px;
  height: 13px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px #0001;
  transition: transform 0.18s;
}
.switch.on {
  background: #7e8c6d;
}
.switch.on::after {
  transform: translateX(12px);
}
.help-note {
  font-size: 11px;
  color: #959a8b;
  line-height: 1.7;
  margin: 8px 0;
}
.setup-note {
  padding: 13px 15px;
  background: #f6f7f3;
  border: 1px solid #eceee6;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.8;
  color: #7d8572;
  margin: 10px 0;
}
.setup-note code {
  font-size: 10px;
  background: #ecefe5;
  padding: 2px 4px;
  border-radius: 2px;
}
.platform-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e7e8e0;
  border-radius: 6px;
  font-weight: 500;
  font-size: 10px;
  background: #fff;
  color: #6f7665;
}
.platform-icon svg {
  width: 13px;
  height: 13px;
}
.platform-icon.ig {
  color: #a5798a;
}
.platform-icon.fb {
  color: #6d86ae;
}
.platform-icon.tiktok {
  color: #444;
}
.soon {
  font-size: 10px;
  color: #a1a599;
}
.setting-row.platform {
  padding: 5px 0;
}
.platform .setting-label {
  gap: 10px;
}
.danger {
  color: #ab766b;
}
.queue {
  padding: 0 24px 25px;
}
.queue-heading {
  display: grid;
  grid-template-columns: 2.5fr 1.1fr 1fr 35px;
  padding: 15px 0;
  color: #9a9f91;
  font-size: 10px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.queue-row {
  display: grid;
  grid-template-columns: 2.5fr 1.1fr 1fr 35px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  gap: 12px;
  cursor: pointer;
}
.queue-row:hover {
  background: #fafbf8;
}
.queue-post {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.queue-thumb {
  width: 44px;
  height: 54px;
  object-fit: cover;
  border-radius: 3px;
  background: #eff0e9;
  flex-shrink: 0;
}
.queue-post strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.queue-post p {
  font-size: 10px;
  color: #9a9e91;
  display: flex;
  align-items: center;
  gap: 4px;
}
.queue-date {
  font-size: 11px;
  line-height: 1.7;
}
.status-label {
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #929a84;
}
.status-label.failed {
  color: #ae7a6b;
}
.status-label.published {
  color: #718664;
}
.empty {
  padding: 80px 20px;
  text-align: center;
  grid-column: 1/-1;
  background: #fafbf8;
}
.empty svg {
  width: 27px;
  height: 27px;
  color: #a1ac92;
  margin-bottom: 14px;
}
.empty h2 {
  font-size: 14px;
  margin-bottom: 8px;
}
.empty p {
  color: #9a9f91;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.banner {
  margin: 0 24px 16px;
  padding: 10px 12px;
  border: 1px solid #e8ebdf;
  background: #f7f8f2;
  border-radius: 5px;
  color: #8b947b;
  font-size: 11px;
  line-height: 1.7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.banner.error {
  background: #fcf7f3;
  border-color: #f0e3db;
  color: #aa7c68;
}
.busy {
  opacity: 0.55;
  pointer-events: none;
}
.spin svg {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
dialog {
  border: 1px solid #e6e7df;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 24px 100px #0002;
  max-width: calc(100vw - 36px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  color: #353633;
  background: #fff;
}
dialog::backdrop {
  background: #262b2380;
  backdrop-filter: blur(3px);
}
dialog[open] {
  animation: modal-in 0.22s var(--ease);
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 19px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.modal-head h2 {
  font-size: 12px;
}
.composer {
  width: 790px;
  max-width: 100%;
}
.composer-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.composer-preview {
  padding: 19px;
  background: #fafbf7;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.composer-preview .media-stage {
  aspect-ratio: 4/5;
  position: relative;
  background: #eeefe7;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-stage img,
.media-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-stage .placeholder-media {
  background: transparent;
}
.upload-area {
  padding: 11px;
  border: 1px dashed #d6dacd;
  border-radius: 5px;
  text-align: center;
  font-size: 11px;
  color: #8b967b;
  cursor: pointer;
  line-height: 1.6;
  display: block;
}
.upload-area:hover {
  background: #f0f2e9;
}
.upload-area input {
  display: none;
}
.thumb-strip {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.thumb-item {
  position: relative;
  width: 43px;
  height: 53px;
  background: #ebeee3;
  border-radius: 3px;
  overflow: hidden;
}
.thumb-item img,
.thumb-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-item button {
  position: absolute;
  top: 0;
  right: 0;
  background: #fff;
  width: 15px;
  height: 15px;
  font-size: 11px;
  line-height: 1;
  border-radius: 0 0 0 3px;
}
.composer-fields {
  padding: 21px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.form-label {
  display: block;
  font-size: 10px;
  color: #929a85;
  margin-bottom: 7px;
}
.composer-fields textarea {
  min-height: 107px;
  resize: vertical;
  line-height: 1.7;
}
.counter {
  text-align: right;
  color: #a2a797;
  font-size: 9px;
  margin-top: 4px;
}
.destinations {
  display: flex;
  gap: 6px;
}
.destination {
  padding: 7px 10px;
  border: 1px solid #e6e8df;
  border-radius: 5px;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.destination.selected {
  background: #f0f3e9;
  border-color: #a9b699;
  color: #5f704e;
}
.destination svg {
  width: 13px;
  height: 13px;
}
.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 19px;
  border-top: 1px solid var(--line);
  gap: 8px;
}
.composer-footer .row-actions {
  gap: 7px;
}
.form-error {
  color: #a66e60;
  font-size: 11px;
  line-height: 1.6;
  min-height: 0;
}
.form-error:empty {
  display: none;
}
.preview-dialog {
  width: 410px;
}
.preview-media {
  aspect-ratio: 4/5;
  background: #eff0e8;
  position: relative;
  overflow: hidden;
}
.preview-media img,
.preview-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.preview-media .slide-controls {
  opacity: 1;
}
.preview-info {
  padding: 20px;
}
.preview-info h2 {
  margin-bottom: 9px;
}
.preview-info p {
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-line;
}
.preview-date {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 10px;
  color: #8e9681;
}
.preview-actions {
  border-top: 1px solid var(--line);
  padding: 11px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.preview-results {
  border-top: 1px solid var(--line);
  padding: 14px 20px;
  font-size: 11px;
  line-height: 1.7;
}
.preview-results p {
  margin-bottom: 8px;
}
.confirm-dialog,
.login-dialog {
  width: 390px;
  padding: 26px;
}
.confirm-dialog h2,
.login-dialog h2 {
  margin-bottom: 12px;
}
.confirm-dialog p,
.login-dialog p {
  font-size: 12px;
  line-height: 1.8;
  color: #919a83;
  margin-bottom: 20px;
}
.confirm-dialog .row-actions {
  justify-content: flex-end;
  margin-top: 20px;
}
.confirm-dialog label {
  display: flex;
  gap: 9px;
  font-size: 11px;
  align-items: flex-start;
  line-height: 1.7;
  color: #818b74;
}
.help-dialog {
  width: 540px;
  padding: 28px;
}
.help-dialog h2 {
  margin-bottom: 15px;
}
.help-dialog h3 {
  font-size: 12px;
  font-weight: 500;
  margin: 22px 0 7px;
}
.help-dialog p,
.help-dialog li {
  font-size: 12px;
  line-height: 1.85;
  color: #858e79;
}
.help-dialog ol {
  padding-left: 18px;
}
.help-dialog a {
  color: #667953;
  text-decoration: underline;
}
.help-dialog .icon-btn {
  float: right;
}
.wordmark {
  font-size: 12px;
  color: #7e8870;
  letter-spacing: 0.04em;
}
.callback {
  max-width: 440px;
  margin: 15vh auto;
  padding: 30px;
}
.callback h1 {
  font-size: 22px;
  margin: 25px 0 15px;
}
.callback p {
  font-size: 13px;
  line-height: 1.8;
  color: #939a89;
  margin-bottom: 20px;
}
.callback a {
  color: #677b54;
}
.loading-screen {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #8f9982;
  font-size: 23px;
}
.loading-screen span {
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 10px);
  background: #353b2e;
  color: #fff;
  padding: 11px 17px;
  border-radius: 6px;
  font-size: 11px;
  box-shadow: 0 5px 20px #0001;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  max-width: calc(100vw - 35px);
  line-height: 1.6;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.embed .shell {
  border: 0;
  max-width: none;
}
.embed .brand-name {
  display: none;
}
.embed .topbar {
  height: 43px;
  padding: 0 15px;
}
.embed .profile {
  padding: 20px 18px;
}
.embed .toolbar {
  padding: 8px 12px;
}
.embed .grid-foot {
  padding: 15px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.url-add {
  display: flex;
  gap: 5px;
}
.url-add .field {
  font-size: 10px;
  min-width: 0;
}
.url-add select {
  max-width: 70px;
}
.preview-top {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  background: #ffffffe6;
  border-radius: 4px;
}
.preview-status {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
}
.sync-notice {
  font-size: 10px;
  line-height: 1.7;
  color: #a78a72;
  margin-top: 10px;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.offline {
  padding: 60px 25px;
  text-align: center;
  color: #89947c;
}
.offline h1 {
  margin-bottom: 10px;
}
.offline p {
  margin: 10px auto 20px;
  max-width: 350px;
  line-height: 1.7;
}
.inline-field {
  max-width: 260px;
  text-align: right;
}
.settings-footer {
  padding: 20px 26px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #9fa693;
}
.media-error .card-media {
  visibility: hidden;
}
.media-error::before {
  content: "Media unavailable";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #9aa28d;
  font-size: 11px;
}
@media (min-width: 1500px) {
  .shell {
    margin-top: 32px;
    margin-bottom: 32px;
    min-height: calc(100dvh - 64px);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
  }
  .embed .shell {
    margin: 0;
    border-radius: 0;
  }
}
@media (max-width: 700px) {
  .shell {
    border: 0;
  }
  .topbar {
    padding: 0 15px;
    height: 48px;
  }
  .profile {
    padding: 25px 17px 22px;
    gap: 13px;
  }
  .avatar {
    width: 54px;
    height: 54px;
  }
  .profile h1 {
    font-size: 12px;
  }
  .stats {
    gap: 24px;
  }
  .profile-side .connected-note {
    display: none;
  }
  .toolbar {
    padding: 9px 10px;
    gap: 3px;
  }
  .toolbar-end .micro {
    display: none;
  }
  .tab-btn {
    padding: 6px 7px;
  }
  .card-top {
    inset: 7px 7px auto;
    gap: 3px;
  }
  .card-chip {
    font-size: 8px;
    padding: 3px 4px;
  }
  .card-chip svg {
    width: 9px;
    height: 9px;
  }
  .pin-btn {
    width: 20px;
    height: 20px;
  }
  .card-meta {
    left: 9px;
    right: 9px;
    bottom: 13px;
  }
  .card-title {
    font-size: 10px;
    margin: 0;
  }
  .card-caption,
  .card-footer {
    display: none;
  }
  .card {
    aspect-ratio: 3/4;
  }
  .setting-row {
    gap: 4px;
  }
  .setting-label {
    min-width: 145px;
    font-size: 11px;
    gap: 7px;
  }
  .setting-value {
    font-size: 11px;
    max-width: 48%;
  }
  .setting-value select {
    font-size: 11px;
  }
  .settings-section {
    padding: 17px 17px 12px;
  }
  .settings-head {
    padding: 17px 12px;
  }
  .setting-row.top {
    flex-wrap: wrap;
  }
  .setting-row.top textarea {
    flex-basis: 100%;
    margin-top: 6px;
  }
  .composer-body {
    grid-template-columns: 1fr;
  }
  .composer-preview {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px;
  }
  .composer-preview .media-stage {
    aspect-ratio: 4/3;
    max-height: 250px;
  }
  .composer-fields {
    padding: 18px;
    gap: 15px;
  }
  .composer {
    width: 430px;
  }
  .composer-footer {
    padding: 12px;
    flex-wrap: wrap;
  }
  .composer-footer .micro {
    font-size: 9px;
  }
  .queue {
    padding: 0 15px 20px;
  }
  .queue-heading,
  .queue-row {
    grid-template-columns: 1.8fr 1fr 75px 20px;
    gap: 8px;
  }
  .queue-thumb {
    width: 32px;
    height: 41px;
  }
  .queue-post {
    gap: 8px;
  }
  .queue-post strong {
    font-size: 10px;
    max-width: 110px;
  }
  .queue-date {
    font-size: 9px;
  }
  .queue-post p {
    font-size: 8px;
  }
  .status-label {
    font-size: 9px;
  }
  .profile-side {
    padding-top: 1px;
  }
  .profile-side .btn {
    font-size: 10px;
    min-height: 27px;
    padding: 5px 7px;
  }
  .profile-side .btn svg {
    width: 12px;
    height: 12px;
  }
  .badge {
    font-size: 9px;
  }
  .brand {
    gap: 6px;
  }
  .brand-name {
    font-size: 11px;
  }
  .banner {
    margin-left: 15px;
    margin-right: 15px;
    font-size: 10px;
  }
  .preview-dialog {
    width: 360px;
  }
  .preview-media {
    max-height: 60dvh;
  }
  .grid-foot {
    font-size: 9px;
    padding: 20px 10px;
  }
  .help-dialog {
    padding: 23px;
  }
  .inline-field {
    max-width: 170px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.composer {
  max-height: calc(100dvh - 50px);
  display: flex;
  flex-direction: column;
}
.composer-body {
  overflow-y: auto;
  min-height: 0;
}
.modal-head,
.composer-footer {
  flex-shrink: 0;
}
.auth-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin-top: 16px;
}
.login-dialog .wordmark {
  display: block;
  margin-bottom: 18px;
}
.planner-picker {
  max-width: 165px;
}
.planner-picker select {
  width: 100%;
  max-width: 165px;
}
.accounts .topbar {
  gap: 6px;
}
@media (max-width: 700px) {
  .accounts .brand-name {
    display: none;
  }
  .accounts .planner-picker,
  .accounts .planner-picker select {
    max-width: 85px;
  }
  .accounts .top-actions {
    gap: 3px;
  }
  .accounts .topbar {
    padding: 0 10px;
  }
  .accounts .top-actions .icon-btn {
    width: 26px;
  }
}

.tiktok-options { border: 1px solid #e6e6e0; border-radius: 5px; padding: 14px; display: grid; gap: 10px; }
.tiktok-check { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.6; flex-wrap: wrap; }
.tiktok-check input { margin-top: 4px; }
.legal-page { max-width: 760px; margin: 50px auto; padding: 24px; line-height: 1.75; }
.legal-page h1 { font-size: 28px; margin: 24px 0; }
.legal-page h2 { font-size: 18px; margin-top: 28px; }
.legal-page p { margin: 14px 0; }
