:root {
  --social-bg: #f5f7fb;
  --social-panel: rgba(255, 255, 255, 0.96);
  --social-border: rgba(226, 232, 240, 0.92);
  --social-text: #0f172a;
  --social-muted: #64748b;
  --social-accent: #0f766e;
  --social-accent-soft: rgba(15, 118, 110, 0.12);
  --social-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 24%),
    var(--social-bg);
  color: var(--social-text);
}

.desktop-stage {
  min-height: 100vh;
}

.app-window {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--hubitos-sidebar-width) minmax(0, 1fr);
}

.social-shell {
  min-width: 0;
  padding: 28px 28px 32px;
}

.social-page {
  display: grid;
  gap: 24px;
}

.social-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.create-menu {
  position: relative;
}

.create-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.create-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 168px;
  display: none;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--social-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--social-shadow);
  z-index: 10;
}

.create-menu:hover .create-popover,
.create-menu:focus-within .create-popover {
  display: grid;
}

.social-page-head h1 {
  margin: 8px 0 0;
  font-size: 34px;
  line-height: 1.08;
}

.social-page-head p {
  margin: 10px 0 0;
  max-width: 780px;
  color: var(--social-muted);
  font-size: 14px;
  line-height: 1.7;
}

.page-kicker {
  color: var(--social-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-link-btn,
.secondary-link-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid var(--social-border);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.primary-link-btn {
  background: var(--social-text);
  border-color: var(--social-text);
  color: #fff;
}

.secondary-link-btn {
  background: rgba(255, 255, 255, 0.82);
  color: var(--social-text);
}

.social-empty-card,
.social-panel-card {
  border: 1px solid var(--social-border);
  border-radius: 28px;
  background: var(--social-panel);
  box-shadow: var(--social-shadow);
}

.social-empty-card {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 32px;
}

.social-home-empty {
  min-height: calc(100vh - 220px);
}

.social-empty-content {
  width: min(1240px, 100%);
  display: grid;
  gap: 24px;
  justify-items: center;
  align-content: center;
}

.social-empty-copy {
  max-width: 520px;
  text-align: center;
  display: grid;
  gap: 12px;
}

.social-empty-copy strong {
  font-size: 28px;
  line-height: 1.15;
}

.social-empty-copy p {
  margin: 0;
  color: var(--social-muted);
  font-size: 15px;
  line-height: 1.75;
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-persona-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

.persona-card,
.custom-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--social-border);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.persona-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.persona-index {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--social-accent-soft);
  color: var(--social-accent);
  font-size: 12px;
  font-weight: 800;
}

.persona-role {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--social-muted);
  font-size: 11px;
  font-weight: 700;
}

.persona-card h3,
.custom-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.persona-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.persona-tag {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.98);
  border: 1px solid var(--social-border);
  color: var(--social-muted);
  font-size: 12px;
  font-weight: 700;
}

.persona-note,
.custom-card p {
  margin: 0;
  color: var(--social-muted);
  font-size: 13px;
  line-height: 1.65;
}

.persona-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.persona-dual-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.persona-single-action {
  display: flex;
  justify-content: flex-start;
}

.home-common-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ghost-meta {
  color: var(--social-muted);
  font-size: 12px;
  font-weight: 700;
}

.mini-action {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--social-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.slim-btn {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 13px;
}

.form-layout {
  display: grid;
  gap: 18px;
}

.form-section {
  padding: 20px;
  border: 1px solid var(--social-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
}

.form-section h3 {
  margin: 0 0 16px;
  font-size: 20px;
}

.field-block {
  display: grid;
  gap: 10px;
}

.field-block + .field-block {
  margin-top: 18px;
}

.field-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.field-note {
  color: var(--social-muted);
  font-size: 12px;
  line-height: 1.5;
}

.option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--social-border);
  background: rgba(248, 250, 252, 0.98);
  color: var(--social-text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s ease;
}

button.option-chip {
  font: inherit;
}

.option-chip:hover {
  border-color: rgba(15, 118, 110, 0.28);
}

.option-chip.is-active {
  border-color: rgba(15, 118, 110, 0.34);
  background: rgba(240, 253, 250, 0.98);
  color: var(--social-accent);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.08);
}

.field-input,
.field-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--social-border);
  border-radius: 16px;
  background: #fff;
  color: var(--social-text);
  font: inherit;
  outline: none;
}

.field-textarea {
  min-height: 120px;
  resize: vertical;
}

.field-helper {
  color: var(--social-muted);
  font-size: 12px;
  line-height: 1.5;
}

.field-status {
  color: var(--social-accent);
  font-size: 12px;
  font-weight: 700;
}

.preference-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--social-border);
  background: rgba(17, 24, 39, 0.06);
}

.preference-panel-copy {
  display: grid;
  gap: 10px;
}

.preference-panel-copy strong {
  font-size: 15px;
}

.preference-panel-copy p {
  margin: 0;
  color: var(--social-text);
  font-size: 14px;
  line-height: 1.7;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tag-pill {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: #f7fbd8;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s ease;
}

.tag-pill.is-active {
  border-color: rgba(15, 118, 110, 0.34);
  background: #e8f7ec;
  color: var(--social-accent);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.08);
}

.form-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.preview-stage {
  display: grid;
  gap: 24px;
  padding: 22px;
}

.preview-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.preview-persona-card {
  min-width: 320px;
  max-width: 360px;
  padding: 18px;
  border: 1px solid var(--social-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
}

.preview-persona-topline {
  display: flex;
  justify-content: flex-end;
}

.preview-persona-role {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(244, 246, 250, 0.98);
  color: #667a96;
  font-size: 14px;
  font-weight: 700;
}

.preview-persona-title {
  margin: 20px 0 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.preview-persona-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.preview-persona-note {
  margin: 22px 0 0;
  color: #5c6f8b;
  font-size: 16px;
  line-height: 1.7;
}

.preview-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-title-row h1 {
  margin: 0;
  font-size: 16px;
  line-height: 1.1;
}

.preview-count-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.1);
  color: rgba(15, 23, 42, 0.7);
  font-size: 12px;
  font-weight: 700;
}

.preview-stage-head p {
  margin: 10px 0 0;
  color: var(--social-muted);
  font-size: 12px;
  line-height: 1.6;
}

.preview-head-actions {
  display: flex;
  gap: 12px;
}

.preview-action-btn {
  min-width: 118px;
  min-height: 38px;
  font-size: 12px;
}

.preview-workspace {
  display: grid;
  grid-template-columns: minmax(224px, 0.85fr) minmax(0, 1.55fr);
  gap: 16px;
  align-items: stretch;
}

.tweet-phone-card,
.editor-panel-card {
  min-height: 540px;
  border: 1px solid var(--social-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
}

.tweet-phone-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px 18px;
}

.tweet-phone-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tweet-phone-header strong,
.tweet-phone-header span {
  display: block;
}

.tweet-phone-header strong {
  font-size: 15px;
}

.tweet-phone-header span {
  margin-top: 4px;
  color: var(--social-muted);
  font-size: 10px;
}

.tweet-avatar-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #0b0b0d;
  color: #fff;
  font-size: 16px;
}

.tweet-phone-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.tweet-phone-metrics {
  margin-top: 52px;
  color: rgba(15, 23, 42, 0.45);
  font-size: 12px;
}

.tweet-phone-actions,
.tweet-phone-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(15, 23, 42, 0.5);
}

.tweet-phone-actions {
  font-size: 13px;
}

.tweet-phone-compose {
  margin-top: auto;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  color: rgba(15, 23, 42, 0.35);
  font-size: 12px;
}

.tweet-phone-nav {
  padding: 0 8px;
  font-size: 15px;
}

.editor-panel-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.editor-panel-section {
  display: grid;
  gap: 16px;
}

.editor-copy-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.editor-copy-head h2 {
  margin: 0;
  font-size: 16px;
}

.editor-copy-head p {
  margin: 8px 0 0;
  color: var(--social-muted);
  font-size: 12px;
  line-height: 1.6;
}

.preview-editor-textarea {
  width: 100%;
  min-height: 360px;
  padding: 14px;
  border: 1px solid var(--social-border);
  border-radius: 20px;
  background: #fff;
  color: var(--social-text);
  font: inherit;
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
}

.editor-divider {
  height: 1px;
  background: var(--social-border);
}

.image-choice-box {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border: 1px solid var(--social-border);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.04);
  color: rgba(15, 23, 42, 0.45);
  font-size: 42px;
  font-weight: 300;
}

.preview-footer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.preview-skip-btn,
.preview-like-btn,
.preview-draft-btn {
  min-height: 46px;
  border: 1px solid var(--social-border);
  border-radius: 18px;
  font-size: 15px;
  font-weight: 700;
}

.schedule-stage {
  display: grid;
  gap: 18px;
  max-width: 1480px;
  width: 100%;
  margin: 0;
  padding: 24px;
}

.schedule-kicker {
  color: var(--social-muted);
  font-size: 13px;
}

.schedule-stage h1 {
  margin: 0;
  font-size: 28px;
}

.schedule-copy {
  margin: 0;
  color: var(--social-muted);
  font-size: 16px;
  line-height: 1.65;
}

.schedule-auth-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--social-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
}

.schedule-auth-meta {
  display: grid;
  gap: 8px;
}

.schedule-auth-meta strong {
  font-size: 18px;
}

.schedule-auth-meta span {
  color: var(--social-muted);
}

.schedule-auth-badges {
  display: flex;
  gap: 10px;
}

.schedule-badge,
.schedule-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.1);
  color: rgba(15, 118, 110, 0.8);
  font-size: 13px;
  font-weight: 700;
}

.schedule-pill.is-stopped {
  background: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.55);
}

.schedule-auth-actions {
  display: flex;
  gap: 14px;
}

.schedule-dark-btn,
.schedule-light-btn,
.schedule-submit-btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid var(--social-border);
  font-size: 14px;
  font-weight: 700;
}

.schedule-dark-btn {
  background: #050505;
  color: #fff;
  border-color: #050505;
}

.schedule-light-btn {
  background: rgba(15, 23, 42, 0.04);
  color: rgba(15, 23, 42, 0.45);
}

.schedule-list {
  display: grid;
  gap: 18px;
}

.schedule-item-row {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--social-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
}

.schedule-item-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.schedule-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.schedule-time-input {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--social-border);
  border-radius: 14px;
  background: #fff;
  color: rgba(15, 23, 42, 0.45);
  font: inherit;
  font-size: 14px;
}

.schedule-inline-btn {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--social-border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.04);
  color: rgba(15, 23, 42, 0.62);
  font-size: 14px;
  font-weight: 700;
}

.schedule-item-copy {
  min-height: 68px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--social-border);
  border-radius: 18px;
  background: #fff;
  font-size: 18px;
}

.schedule-footer {
  display: flex;
  justify-content: flex-end;
}

.schedule-submit-btn {
  background: #73a86d;
  border-color: #73a86d;
  color: #fff;
}

.social-running-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.social-running-main,
.social-running-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.compact-head {
  padding-bottom: 0;
}

.social-running-card,
.social-side-metric-card,
.social-side-feed-card {
  padding: 20px;
  border: 1px solid var(--social-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--social-shadow);
}

.social-running-link {
  text-decoration: none;
  color: inherit;
}

.page-home-link {
  color: inherit;
  text-decoration: none;
}

.social-running-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.social-running-card h3 {
  margin: 14px 0 0;
  font-size: 28px;
}

.social-running-handle {
  margin-top: 6px;
  color: var(--social-muted);
  font-size: 18px;
}

.social-running-topic {
  margin: 16px 0 0;
  color: var(--social-text);
  font-size: 15px;
  line-height: 1.7;
}

.running-info-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.running-account-chip {
  display: grid;
  gap: 2px;
  min-width: 120px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(240, 253, 250, 0.72);
  border: 1px solid rgba(15, 118, 110, 0.18);
}

.running-account-chip strong {
  color: var(--social-text);
  font-size: 16px;
  line-height: 1.2;
}

.running-account-chip span {
  color: rgba(15, 23, 42, 0.52);
  font-size: 12px;
  line-height: 1.4;
}

.running-info-hero {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(203, 213, 225, 0.88);
}

.running-info-hero-value {
  color: var(--social-text);
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.running-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.running-info-row {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(214, 223, 236, 0.92);
  background: rgba(255, 255, 255, 0.98);
}

.running-info-row.accent {
  background: rgba(240, 253, 250, 0.72);
  border-color: rgba(15, 118, 110, 0.18);
}

.running-info-row.soft {
  background: rgba(248, 250, 252, 0.96);
}

.running-info-label {
  color: var(--social-muted);
  font-size: 12px;
  font-weight: 700;
}

.running-info-value {
  color: var(--social-text);
  font-size: 22px;
  line-height: 1.25;
}

.running-info-subvalue {
  color: rgba(15, 23, 42, 0.48);
  font-size: 12px;
  line-height: 1.5;
}

.social-side-time {
  color: rgba(15, 118, 110, 0.72);
  font-size: 18px;
  font-weight: 800;
}

.social-side-metric {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 18px;
}

.social-side-metric strong {
  font-size: 44px;
  line-height: 1;
}

.social-side-metric span {
  font-size: 24px;
  font-weight: 700;
}

.social-side-metric-card p {
  margin: 16px 0 0;
  color: var(--social-muted);
  font-size: 14px;
  line-height: 1.6;
}

.social-side-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.social-side-feed-list {
  display: grid;
  gap: 12px;
  max-height: 720px;
  overflow: auto;
}

.pending-tweet-row {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--social-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
}

.pending-tweet-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pending-tweet-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pending-tweet-copy {
  color: var(--social-text);
  font-size: 14px;
  line-height: 1.6;
}

.preview-skip-btn {
  background: rgba(15, 23, 42, 0.04);
  color: rgba(15, 23, 42, 0.45);
}

.preview-like-btn {
  background: rgba(251, 207, 232, 0.4);
  color: #e24b6a;
}

@media (max-width: 1120px) {
  .persona-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 780px) {
  .app-window {
    grid-template-columns: 1fr;
  }

  .social-shell {
    padding: 20px 16px 24px;
  }

  .social-page-head {
    display: grid;
  }

  .persona-grid {
    grid-template-columns: 1fr;
  }

  .home-persona-grid {
    grid-template-columns: 1fr;
  }

  .home-common-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .social-empty-card {
    min-height: 420px;
  }

  .preview-stage-head,
  .preview-workspace,
  .preview-footer-actions,
  .preview-head-actions,
  .social-running-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .preview-workspace {
    gap: 16px;
  }

  .tweet-phone-card,
  .editor-panel-card {
    min-height: auto;
  }

  .preview-editor-textarea {
    min-height: 320px;
  }
}

.preview-tabs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.preview-tab {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--social-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  color: rgba(15, 23, 42, 0.55);
  font-size: 14px;
  font-weight: 700;
}

.preview-tab.is-active {
  background: #050505;
  border-color: #050505;
  color: #fff;
}

.preview-tab-panel {
  display: none;
  gap: 20px;
}

.preview-tab-panel.is-active {
  display: grid;
}

.inner-head {
  padding-bottom: 0;
}

.preview-title-row h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.1;
}

.history-panel-head h2 {
  margin: 0;
  font-size: 22px;
}

.history-panel-head p {
  margin: 8px 0 0;
  color: var(--social-muted);
  font-size: 14px;
}

.history-list {
  display: grid;
  gap: 16px;
}

.history-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--social-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
}

.history-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.history-date {
  color: var(--social-muted);
  font-size: 12px;
}

.history-copy {
  color: var(--social-text);
  font-size: 15px;
  line-height: 1.7;
}

.history-empty {
  padding: 22px;
  border: 1px dashed var(--social-border);
  border-radius: 18px;
  color: var(--social-muted);
  font-size: 14px;
  text-align: center;
}

.topic-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.24);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.topic-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(640px, calc(100vw - 32px));
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--social-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: var(--social-shadow);
  z-index: 81;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.topic-modal-overlay.is-open,
.topic-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.topic-modal-head h3 {
  margin: 0;
  font-size: 24px;
}

.topic-modal-head p {
  margin: 10px 0 0;
  color: var(--social-muted);
  font-size: 14px;
  line-height: 1.6;
}

.topic-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.task-card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.task-card-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.task-platform-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #0b0b0d;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.task-state-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.task-state-pill.warm {
  background: rgba(255, 115, 0, 0.12);
  color: #f97316;
}

.task-state-pill.green {
  background: rgba(34, 197, 94, 0.12);
  color: #5f9b62;
}

.task-state-pill.gray {
  background: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.55);
}

.task-card-title {
  margin: 18px 0 0;
  font-size: 24px;
  line-height: 1.2;
}

.task-card-desc {
  margin: 14px 0 0;
  color: var(--social-muted);
  font-size: 16px;
  line-height: 1.55;
}

.task-card-footer {
  margin-top: 26px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.task-card-meta {
  color: rgba(15, 23, 42, 0.45);
  font-size: 14px;
}

.task-card-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.task-card-ghost-btn,
.task-card-dark-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid var(--social-border);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.task-card-ghost-btn {
  background: rgba(255, 255, 255, 0.98);
  color: rgba(15, 23, 42, 0.42);
}

.task-card-dark-btn {
  background: #050505;
  color: #fff;
  border-color: #050505;
}

.task-card-text-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: rgba(239, 68, 68, 0.92);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
}

.pending-task-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--social-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
}

.publish-detail-stage {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.publish-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.publish-detail-panel {
  display: none;
  gap: 16px;
}

.publish-detail-panel.is-active {
  display: grid;
}

.detail-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-list-head strong {
  font-size: 18px;
}

.detail-list-head span {
  color: var(--social-muted);
  font-size: 14px;
}

.detail-list-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-task-list {
  display: grid;
  gap: 16px;
}

@media (max-width: 780px) {
  .running-info-grid {
    grid-template-columns: 1fr;
  }
}
