:root {
  --bg: #f6f7fb;
  --paper: #fff;
  --ink: #242a3b;
  --muted: #727a8d;
  --line: #e7e9f1;
  --purple: #8070d9;
  --lilac: #afa1fa;
  --nav: #222636;
  --green: #188669;
  --orange: #b86b16;
  --radius: 17px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
}
a:not(.btn):hover {
  color: var(--purple);
}
:focus-visible {
  outline: 3px solid #8873ed;
  outline-offset: 3px;
}
button {
  border: 0;
}
svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -1px;
  line-height: 1.2;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  font-weight: 650;
}
h3 {
  font-size: 14px;
  font-weight: 650;
}
small,
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 11px;
}
.nowrap {
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: 15px;
  top: -60px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 15px;
}
.boot {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  min-height: 100vh;
  color: var(--muted);
}
.brand-symbol {
  background: var(--lilac);
  color: #242938;
  border-radius: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
}
.shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--nav);
  color: #b1b6c7;
  padding: 29px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px;
  text-decoration: none;
  color: white !important;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.brand small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-weight: 500;
  color: #959ab0;
  display: block;
  margin-top: 2px;
}
.nav-label {
  padding: 0 15px;
  margin-bottom: 9px;
  letter-spacing: 1.5px;
  font-size: 9px;
  font-weight: 600;
  color: #82899e;
}
.nav {
  display: grid;
  gap: 6px;
}
.nav a {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 12px 15px;
  color: #b9becf;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
}
.nav a:hover {
  color: white;
  background: #2c3042;
}
.nav a.active {
  background: #38354f;
  color: #d7cdfd;
}
.nav .count {
  margin-left: auto;
  font-size: 10px;
  min-width: 19px;
  padding: 0 5px;
  background: #4b436b;
  color: #e3dbff;
  border-radius: 5px;
  text-align: center;
}
.project-links {
  display: grid;
  gap: 5px;
}
.project-links button {
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  color: #bbc0cf;
  background: transparent;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 12px;
}
.project-links button:hover {
  background: #2e3346;
}
.project-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #393e51;
  padding-top: 20px;
}
.server-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  font-size: 11px;
  color: #c8ccda;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #70caa7;
}
.sidebar-note {
  padding: 8px 10px 0;
  font-size: 10px;
  color: #8a92a8;
  line-height: 1.6;
}
.avatar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 19px 9px 0;
}
.avatar {
  display: grid;
  place-items: center;
  background: #41465b;
  color: #e5e7f5;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 11px;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 84px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 37px;
  gap: 15px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb b {
  color: #4a5164;
  font-weight: 500;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}
.mode-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e9e3d2;
  background: #fffcf4;
  color: #956a1f;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 10px;
  white-space: nowrap;
}
.mode-pill.live {
  border-color: #d0e9df;
  background: #f0faf5;
  color: #24866b;
}
.icon-btn {
  width: 33px;
  height: 33px;
  display: inline-grid;
  place-items: center;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
}
.icon-btn:hover {
  background: #eeeef6;
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
.mobile-menu {
  display: none;
}
.main {
  padding: 35px 37px 45px;
  max-width: 1560px;
  margin: auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-head p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}
.page-tools {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  padding: 10px 15px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: white;
  border: 1px solid #dfe2ed;
  color: #515a70;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  font-weight: 550;
  min-height: 37px;
}
.btn svg {
  width: 15px;
  height: 15px;
}
.btn:hover {
  background: #f4f3fb;
}
.btn.primary {
  background: var(--nav);
  color: white;
  border-color: var(--nav);
}
.btn.primary:hover {
  background: #3c3b55;
}
.btn.accent {
  background: #eee9ff;
  border-color: #e5defc;
  color: #6b55bc;
}
.btn.danger {
  color: #ba4855;
  border-color: #f1d6dc;
}
.btn.small {
  font-size: 11px;
  padding: 7px 11px;
  min-height: 31px;
}
.text-btn {
  background: transparent;
  color: var(--purple);
  font-size: 12px;
  font-weight: 550;
  padding: 2px;
}
.text-btn:hover {
  text-decoration: underline;
}
.project-select {
  background: white;
  border: 1px solid #dfe2ed;
  border-radius: 8px;
  padding: 9px 31px 9px 12px;
  color: #50596d;
  font-size: 12px;
  max-width: 240px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 25px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 19px 21px;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.stat-icon {
  background: #f3f0fd;
  color: #9a8bce;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
}
.stat-icon svg {
  width: 16px;
  height: 16px;
}
.stat-number {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -1px;
  margin-top: 4px;
}
.stat-sub {
  color: #a1a7b8;
  font-size: 10px;
  margin-top: 4px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr);
  gap: 23px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  padding: 20px 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #eff0f6;
}
.panel-head .muted {
  margin-top: 3px;
  font-size: 11px;
}
.panel-body {
  padding: 23px;
}
.stack {
  display: grid;
  gap: 22px;
}
.empty {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 40px 22px;
  gap: 10px;
}
.empty-symbol {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #f4f1fd;
  color: #aa9ad7;
  margin-bottom: 5px;
}
.empty-symbol svg {
  width: 28px;
  height: 28px;
}
.empty h3 {
  font-size: 14px;
}
.empty p {
  max-width: 320px;
  color: #8a91a2;
  font-size: 12px;
  line-height: 1.7;
}
.empty .btn {
  margin-top: 8px;
}
.onboarding {
  padding: 24px;
  background: linear-gradient(120deg, #f1ecff, #f8f6fd);
  border: 1px solid #e9e2f8;
  border-radius: var(--radius);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
}
.onboarding .eyebrow {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #9b89c0;
  margin-bottom: 8px;
  font-weight: 650;
}
.onboarding h2 {
  font-size: 19px;
}
.onboarding p {
  font-size: 12px;
  color: #8b829f;
  max-width: 510px;
  line-height: 1.7;
  margin-top: 8px;
}
.onboarding-steps {
  display: grid;
  gap: 8px;
  min-width: 240px;
}
.step-link {
  background: #ffffff9c;
  border: 1px solid #e9e2f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 9px 12px;
  color: #6e6284;
  font-size: 11px;
}
.step-link .step-number {
  width: 21px;
  height: 21px;
  border-radius: 6px;
  background: #e7dff8;
  color: #9c87c0;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.step-link.done {
  color: #4d8d79;
}
.network-badge {
  width: 29px;
  height: 29px;
  background: var(--network, #8774d6);
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: white;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.network-badge.mini {
  width: 21px;
  height: 21px;
  border-radius: 6px;
  font-size: 8px;
}
.network-badge.big {
  width: 41px;
  height: 41px;
  border-radius: 12px;
  font-size: 17px;
}
.channel-list {
  display: grid;
}
.channel-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #eff0f6;
}
.channel-row:last-child {
  border-bottom: 0;
}
.channel-row .grow {
  min-width: 0;
  flex: 1;
}
.channel-row .name {
  font-size: 12px;
  font-weight: 550;
}
.channel-row .muted {
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 6px;
  white-space: nowrap;
  background: #f1f2f7;
  color: #7b8295;
}
.status.green {
  background: #eaf6ef;
  color: #2b916c;
}
.status.amber {
  background: #fff4e4;
  color: #ad781f;
}
.status.purple {
  background: #f0eafb;
  color: #8d70b8;
}
.status.red {
  background: #fdf0f1;
  color: #bd6270;
}
.status.blue {
  background: #edf3ff;
  color: #6086be;
}
.project-card {
  padding: 18px 23px;
  display: flex;
  gap: 13px;
  align-items: center;
}
.project-icon {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: var(--project, #9b87de);
  color: white;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.project-card + .project-card {
  border-top: 1px solid #eff0f6;
}
.project-card h3 {
  font-size: 12px;
}
.project-card p {
  font-size: 10px;
  color: #969daf;
  margin-top: 3px;
}
.project-card .text-btn {
  margin-left: auto;
  font-size: 11px;
}
.list-tabs {
  display: flex;
  gap: 19px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 21px;
  overflow: auto;
}
.list-tabs button {
  padding: 0 0 12px;
  white-space: nowrap;
  font-size: 12px;
  background: none;
  color: #9298a9;
  border-bottom: 2px solid transparent;
}
.list-tabs button.active {
  color: #6e5db4;
  border-color: #9d8bdd;
}
.list-tabs button span {
  font-size: 10px;
  background: #eeedf5;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
}
.filters {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 11px;
  max-width: 330px;
  width: 100%;
  color: #9a9fb0;
}
.search svg {
  width: 16px;
  height: 16px;
}
.search input {
  border: 0;
  outline: 0;
  min-width: 0;
  width: 100%;
  font-size: 12px;
  background: transparent;
}
.posts-list {
  display: grid;
  gap: 12px;
}
.post-card {
  padding: 19px;
  display: flex;
  gap: 17px;
  align-items: center;
}
.post-thumb {
  width: 61px;
  height: 65px;
  border-radius: 10px;
  background: #f1edf9;
  display: grid;
  place-items: center;
  color: #a594ce;
  flex-shrink: 0;
  overflow: hidden;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-info {
  min-width: 0;
  flex: 1;
}
.post-info h3 {
  font-size: 13px;
}
.post-info p {
  color: #9198a9;
  font-size: 11px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 700px;
}
.post-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  font-size: 10px;
  color: #a3a9b8;
  flex-wrap: wrap;
}
.post-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}
.post-network-row {
  display: flex;
  gap: 4px;
  margin-left: 4px;
}
.calendar-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}
.calendar-controls h2 {
  text-transform: capitalize;
  font-size: 17px;
  min-width: 190px;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: white;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.calendar-day-name {
  padding: 13px 9px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: #989fb0;
  text-align: center;
  background: #fcfcfe;
}
.calendar-cell {
  min-height: 135px;
  min-width: 0;
  border-right: 1px solid #eff0f6;
  border-bottom: 1px solid #eff0f6;
  padding: 9px;
}
.calendar-cell:nth-child(7n) {
  border-right: 0;
}
.calendar-cell.outside {
  background: #fafbfe;
}
.day-number {
  font-size: 11px;
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  color: #9ca3b5;
  background: transparent;
  border-radius: 50%;
  padding: 0;
}
.calendar-cell.today .day-number {
  background: #aca0e7;
  color: white;
}
.calendar-post {
  display: block;
  width: 100%;
  text-align: left;
  background: #f0ebfb;
  border-left: 2px solid #ae9acb;
  border-radius: 5px;
  padding: 6px;
  margin-top: 6px;
  font-size: 10px;
  color: #76628f;
  overflow: hidden;
}
.calendar-post span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calendar-post .tiny {
  font-size: 8px;
  opacity: 0.75;
}
.connections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.connection-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.connection-top {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
}
.connection-top h3 {
  font-size: 13px;
}
.connection-top .small {
  font-size: 10px;
  color: #969daf;
}
.connection-card .hint {
  font-size: 11px;
  color: #939aab;
  line-height: 1.6;
  min-height: 52px;
}
.connection-card .formats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tag {
  padding: 3px 6px;
  border-radius: 5px;
  background: #f5f5f9;
  font-size: 9px;
  color: #8a91a1;
}
.connection-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.oauth-connection {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.oauth-connection .btn {
  width: 100%;
}
.settings-card code {
  overflow-wrap: anywhere;
}
.connection-actions .btn {
  flex: 1;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}
.media-card {
  overflow: hidden;
}
.media-preview {
  height: 175px;
  background: #f0eef7;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #a796cf;
}
.media-preview img,
.media-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-card .media-details {
  padding: 13px;
}
.media-card h3 {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.media-card p {
  font-size: 10px;
  margin-top: 4px;
  color: #9ca3b4;
}
.media-card .media-buttons {
  display: flex;
  gap: 9px;
  margin-top: 10px;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
  gap: 24px;
}
.editor-panel {
  padding: 23px;
}
.field {
  margin-bottom: 19px;
}
.field label,
.field-label {
  display: block;
  font-size: 11px;
  color: #727b8f;
  font-weight: 550;
  margin-bottom: 7px;
}
.field input,
.field textarea,
.field select,
.input {
  display: block;
  width: 100%;
  border: 1px solid #e0e3ed;
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  color: #424b60;
  font-size: 12px;
  min-height: 39px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #b0b5c3;
}
.field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.75;
}
.field small {
  display: block;
  color: #9ba2b3;
  font-size: 10px;
  margin-top: 6px;
  line-height: 1.6;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.7;
  color: #727b8d;
  margin: 10px 0;
}
.checkbox-row input {
  accent-color: #8c76cf;
  width: 15px;
  height: 15px;
  margin-top: 4px;
  flex-shrink: 0;
}
.channel-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.channel-chip {
  border: 1px solid #e3e5ee;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: #949aab;
  font-size: 11px;
}
.channel-chip.selected {
  border-color: #b7a7e2;
  background: #f7f3fd;
  color: #786192;
}
.channel-chip input {
  width: 12px;
  height: 12px;
  accent-color: #9175c4;
  margin: 0;
}
.editor-tabs {
  margin: 0 -23px 20px;
  padding: 0 23px;
  display: flex;
  gap: 17px;
  border-bottom: 1px solid #eeedf5;
  overflow: auto;
}
.editor-tabs button {
  background: none;
  padding: 10px 0;
  font-size: 11px;
  color: #a0a6b5;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.editor-tabs button.active {
  color: #8470bb;
  border-color: #a38ace;
}
.editor-tabs button i {
  width: 4px;
  height: 4px;
  background: #b39ada;
  display: inline-block;
  border-radius: 50%;
  margin-left: 5px;
  vertical-align: middle;
}
.editor-text {
  min-height: 225px !important;
  border: 0 !important;
  background: #fafafe !important;
  font-size: 13px !important;
  padding: 15px !important;
}
.text-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  color: #a3a9b9;
  font-size: 10px;
}
.dropzone {
  border: 1px dashed #d7cfe8;
  border-radius: 10px;
  background: #fcfaff;
  padding: 20px;
  text-align: center;
  color: #a398b7;
  font-size: 11px;
  cursor: pointer;
}
.dropzone.drag {
  border-color: #9879ce;
  background: #f2eafa;
}
.dropzone svg {
  margin-bottom: 5px;
}
.dropzone strong {
  color: #8b72b4;
  font-weight: 550;
}
.editor-assets {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.asset-chip {
  width: 74px;
  height: 74px;
  position: relative;
  background: #f0edf6;
  border-radius: 8px;
  overflow: hidden;
}
.asset-chip img,
.asset-chip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.asset-chip button {
  position: absolute;
  right: 3px;
  top: 3px;
  background: #202639c7;
  color: white;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.preview-wrap {
  position: sticky;
  top: 20px;
}
.preview-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 13px;
  font-size: 11px;
  color: #9ca3b2;
}
.preview-label select {
  border: 0;
  background: none;
  color: #837391;
  font-size: 11px;
  max-width: 140px;
}
.preview {
  border: 1px solid #e2e5ef;
  border-radius: 15px;
  background: white;
  overflow: hidden;
}
.preview-header {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 19px;
}
.preview-header p {
  font-size: 11px;
  font-weight: 550;
}
.preview-header small {
  font-size: 9px;
  color: #a2a9b9;
}
.preview-media img,
.preview-media video {
  width: 100%;
  max-height: 330px;
  object-fit: cover;
  display: block;
}
.preview-text {
  padding: 0 19px 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  color: #6e778b;
  line-height: 1.8;
  min-height: 90px;
}
.preview-media + .preview-text {
  padding-top: 17px;
}
.preview-footer {
  border-top: 1px solid #eff0f6;
  padding: 13px 19px;
  display: flex;
  gap: 18px;
  color: #b5b9c8;
}
.preview-footer svg {
  width: 16px;
  height: 16px;
}
.note {
  background: #f2eff9;
  border: 1px solid #e9e3f2;
  color: #9484a7;
  padding: 13px 15px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.7;
  margin-top: 16px;
}
.note.amber {
  background: #fffaf0;
  border-color: #f4e6cb;
  color: #a28b63;
}
.note.green {
  background: #eff8f3;
  border-color: #dceee4;
  color: #729b85;
}
.error-note {
  border: 1px solid #f0d5dd;
  background: #fff6f8;
  color: #b3677b;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 12px;
  white-space: pre-wrap;
}
.editor-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 19px;
  flex-wrap: wrap;
}
.editor-state {
  font-size: 10px;
  color: #a1a8b6;
  display: flex;
  gap: 6px;
  align-items: center;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 23px;
}
.settings-card {
  padding: 23px;
}
.settings-card h2 {
  margin-bottom: 20px;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #edf0f6;
  padding: 16px 0;
}
.setting-row:first-of-type {
  padding-top: 0;
}
.setting-row:last-child {
  border: 0;
}
.setting-row h3 {
  font-size: 12px;
}
.setting-row p {
  font-size: 11px;
  color: #979faf;
  max-width: 410px;
  margin-top: 5px;
  line-height: 1.7;
}
.switch {
  width: 38px;
  height: 22px;
  border-radius: 20px;
  background: #dfe2eb;
  position: relative;
  flex-shrink: 0;
}
.switch:after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px #0002;
}
.switch.on {
  background: #a491d5;
}
.switch.on:after {
  left: 19px;
}
.source-card {
  padding: 21px;
  margin-bottom: 14px;
}
.source-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.source-card p {
  font-size: 11px;
  color: #969eaf;
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.source-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.source-card-error {
  color: #be6c7b !important;
}
.journal {
  display: grid;
  gap: 11px;
}
.target-card {
  padding: 17px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.target-info {
  flex: 1;
  min-width: 0;
}
.target-info h3 {
  font-size: 12px;
}
.target-info p {
  font-size: 10px;
  color: #9ba3b4;
  overflow-wrap: anywhere;
  margin-top: 4px;
}
.target-info .error {
  color: #b98b79;
}
.target-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.audit-item {
  padding: 12px 0;
  border-bottom: 1px solid #eff0f6;
  font-size: 11px;
  color: #818a9e;
}
.audit-item small {
  font-size: 9px;
  color: #b0b6c3;
  display: block;
  margin-top: 5px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #17203265;
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}
.modal {
  background: white;
  border-radius: 18px;
  width: 540px;
  max-width: 100%;
  max-height: calc(100vh - 50px);
  overflow: auto;
  box-shadow: 0 25px 90px #1b203738;
}
.modal.wide {
  width: 720px;
}
.modal-head {
  padding: 23px 25px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.modal-head h2 {
  font-size: 18px;
}
.modal-body {
  padding: 5px 25px 24px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.modal .note {
  margin-bottom: 17px;
}
.modal-error {
  margin: 0 0 15px;
}
.validation-item {
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.validation-item h3 {
  font-size: 12px;
}
.validation-item p {
  font-size: 11px;
  color: #b07b80;
  margin-top: 4px;
}
.validation-item .ok {
  color: #68a18a;
}
.media-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.media-pick {
  background: #f6f4fa;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 7px;
  text-align: left;
  color: #939caf;
}
.media-pick.selected {
  border-color: #ad95d7;
}
.media-pick img,
.media-pick video {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
}
.media-pick span {
  display: block;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}
.login {
  max-width: 390px;
  margin: 12vh auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
}
.login h1 {
  font-size: 23px;
  margin: 25px 0 8px;
}
.login p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
}
.login .btn {
  width: 100%;
}
#toasts {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  gap: 8px;
  max-width: min(400px, calc(100vw - 36px));
}
.toast {
  background: #2b3040;
  color: #f7f7fd;
  border-radius: 11px;
  box-shadow: 0 8px 35px #1e243327;
  padding: 14px 18px;
  font-size: 12px;
  line-height: 1.7;
}
.toast.error {
  background: #8c4f60;
}
.help-list {
  display: grid;
  gap: 14px;
  font-size: 12px;
  color: #858ea1;
  line-height: 1.8;
}
.help-list b {
  color: #575f73;
}
.footer-note {
  text-align: center;
  color: #acb2c0;
  font-size: 10px;
  margin-top: 29px;
}
.scroll-table {
  overflow: auto;
}
code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  background: #f1eef7;
  border-radius: 4px;
  padding: 2px 5px;
  overflow-wrap: anywhere;
}
.loading {
  opacity: 0.6;
  pointer-events: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.red-text {
  color: #c2697a;
}
.body-copy {
  font-size: 12px;
  color: #9199ab;
  line-height: 1.8;
}
.busy-line {
  color: #8e7db9;
  font-size: 11px;
}
.settings-info {
  display: grid;
  gap: 11px;
  color: #929bad;
  font-size: 11px;
}
.settings-info div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.date-divider {
  font-size: 11px;
  color: #949caf;
  margin: 12px 0 15px;
  letter-spacing: 0.3px;
}
.row-spread {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.pill-group {
  display: flex;
  gap: 6px;
}
.pill-group button {
  padding: 7px 12px;
  border-radius: 7px;
  color: #969faf;
  background: #eceef5;
  font-size: 11px;
}
.pill-group button.active {
  color: #7f69ac;
  background: #eae3f7;
}
.hidden {
  display: none !important;
}
@media (min-width: 1600px) {
  .main {
    padding-top: 45px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr);
  }
  .sidebar {
    padding-top: 32px;
  }
}
@media (max-width: 1180px) {
  .shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .topbar {
    padding: 0 25px;
  }
  .main {
    padding: 28px 25px;
  }
  .connections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .onboarding {
    align-items: flex-start;
  }
  .onboarding-steps {
    min-width: 210px;
  }
  .media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
  }
  .editor-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  }
  .stat {
    padding: 16px;
  }
  .stat-top {
    font-size: 10px;
  }
  .calendar-cell {
    min-height: 116px;
  }
}
@media (max-width: 950px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    gap: 22px;
  }
  .brand {
    font-size: 15px;
    gap: 8px;
  }
  .brand-symbol {
    width: 32px;
    height: 32px;
    font-size: 21px;
  }
  .brand small {
    font-size: 8px;
  }
  .nav a {
    padding: 11px 12px;
    font-size: 12px;
    gap: 9px;
  }
  .main {
    padding: 25px 21px;
  }
  .topbar {
    padding: 0 21px;
    height: 74px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 13px;
  }
  .stat-number {
    font-size: 26px;
  }
  .stat-icon {
    display: none;
  }
  .dashboard-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .onboarding {
    flex-direction: column;
    gap: 16px;
  }
  .onboarding-steps {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }
  .step-link {
    font-size: 9px;
    padding: 8px;
  }
  .step-link .step-number {
    flex-shrink: 0;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .preview-wrap {
    position: static;
    max-width: 450px;
  }
  .editor-grid .preview-wrap {
    margin: auto;
    width: 100%;
  }
  .page-head {
    align-items: flex-start;
  }
  h1 {
    font-size: 25px;
  }
  .top-actions {
    gap: 7px;
  }
  .breadcrumb {
    font-size: 11px;
  }
  .calendar {
    min-width: 650px;
  }
  .calendar-container {
    overflow: auto;
  }
  .post-actions .status {
    display: none;
  }
  .post-card {
    gap: 12px;
    padding: 15px;
  }
  .post-thumb {
    width: 45px;
    height: 53px;
  }
  .media-preview {
    height: 150px;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 236px;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 10px 0 60px #0003;
  }
  .mobile-menu {
    display: inline-grid;
  }
  .topbar {
    height: 67px;
    padding: 0 15px;
  }
  .top-actions > .icon-btn {
    display: none;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .mode-pill {
    font-size: 9px;
    padding: 6px 7px;
  }
  .top-actions .avatar {
    display: none;
  }
  .main {
    padding: 25px 16px;
  }
  .page-head {
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 22px;
  }
  .page-head h1 {
    font-size: 26px;
  }
  .page-head .page-tools {
    width: 100%;
  }
  .page-tools .project-select {
    flex: 1;
    max-width: 100%;
    min-width: 0;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .stat {
    padding: 16px;
  }
  .stat-icon {
    display: grid;
  }
  .stat-top {
    font-size: 11px;
  }
  .stat-number {
    font-size: 29px;
  }
  .onboarding {
    padding: 20px;
  }
  .onboarding-steps {
    grid-template-columns: 1fr;
  }
  .step-link {
    font-size: 11px;
  }
  .onboarding h2 {
    font-size: 18px;
  }
  .panel-head {
    padding: 17px 19px;
  }
  .panel-body {
    padding: 19px;
  }
  .connections {
    gap: 12px;
  }
  .connection-card {
    padding: 16px;
    gap: 12px;
  }
  .connection-actions {
    flex-wrap: wrap;
  }
  .connection-actions .btn {
    font-size: 10px;
    padding: 8px;
  }
  .connection-card .hint {
    font-size: 10px;
    min-height: 68px;
  }
  .connection-top {
    gap: 8px;
  }
  .connection-top h3 {
    font-size: 12px;
  }
  .network-badge.big {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .search {
    max-width: 100%;
  }
  .post-actions {
    flex-direction: column;
    gap: 3px;
  }
  .post-info h3 {
    font-size: 12px;
  }
  .post-info p {
    max-width: 180px;
  }
  .post-meta {
    font-size: 9px;
    gap: 5px;
  }
  .target-card {
    flex-wrap: wrap;
    padding: 16px;
  }
  .target-actions {
    width: 100%;
    justify-content: flex-start;
    padding-left: 41px;
  }
  .modal-backdrop {
    padding: 12px;
  }
  .modal {
    max-height: calc(100dvh - 24px);
  }
  .modal-head {
    padding: 20px;
  }
  .modal-body {
    padding: 0 20px 20px;
  }
  .modal-head h2 {
    font-size: 17px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .editor-panel {
    padding: 18px;
  }
  .editor-tabs {
    margin-left: -18px;
    margin-right: -18px;
    padding: 0 18px;
  }
  .editor-footer {
    justify-content: stretch;
  }
  .editor-footer .btn {
    flex: 1;
  }
  .calendar-controls h2 {
    font-size: 15px;
    min-width: 150px;
  }
  .page-tools.calendar-controls {
    justify-content: space-between;
  }
  .footer-note {
    font-size: 9px;
  }
  .settings-card {
    padding: 20px;
  }
  .setting-row {
    gap: 15px;
  }
  .connection-card .status {
    font-size: 9px;
    white-space: normal;
  }
  .preview-text {
    min-height: 75px;
  }
  .media-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 360px) {
  .main {
    padding: 20px 12px;
  }
  .connections {
    grid-template-columns: 1fr;
  }
  .stat-top {
    font-size: 10px;
  }
  .mode-pill {
    max-width: 130px;
    white-space: normal;
    line-height: 1.2;
  }
  .topbar {
    gap: 6px;
  }
  .breadcrumb {
    font-size: 9px;
  }
  .stat {
    padding: 13px;
  }
  .page-tools .btn {
    font-size: 11px;
  }
  .post-thumb {
    display: none;
  }
  .post-info p {
    max-width: 175px;
  }
  .media-preview {
    height: 120px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Secondary text remains readable on light surfaces at normal and enlarged sizes. */
.page-head p,
.stat-top,
.stat-sub,
.muted,
.body-copy,
.preview-label,
.preview-text,
.preview-header small,
.post-info p,
.post-meta,
.connection-card .hint,
.connection-top .small,
.connection-card .tag,
.media-card p,
.source-card p,
.target-info p,
.audit-item,
.audit-item small,
.settings-info,
.setting-row p,
.field small,
.field label,
.field-label,
.text-toolbar,
.footer-note,
.calendar-day-name,
.day-number,
.onboarding p,
.onboarding .eyebrow,
.editor-state,
.empty p,
.channel-row .muted,
.project-card p {
  color: #657086;
}
.note {
  color: #77618f;
}
.note.amber {
  color: #896b38;
}
.status {
  color: #626d83;
}
.status.amber {
  color: #8f6118;
}
.status.purple {
  color: #7754a0;
}
.status.green {
  color: #237752;
}
.status.blue {
  color: #456fa6;
}
.status.red {
  color: #a4495b;
}
.calendar-post {
  color: #70578e;
}
.text-btn {
  color: #7460b2;
}
.preview-footer {
  color: #7a8599;
}
.editor-tabs button {
  color: #69758b;
}
.editor-tabs button.active {
  color: #7653a3;
}
.channel-chip {
  color: #67748a;
}
.connection-card .hint {
  min-height: 58px;
}

.sidebar {
  overflow-y: auto;
  scrollbar-width: thin;
}
.dropzone {
  width: 100%;
  text-align: center;
}

.field .channel-chip {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  font-weight: 400;
}
.channel-chip input {
  min-height: 0;
  padding: 0;
  display: inline-block;
  flex-shrink: 0;
}
.sidebar-close {
  display: none;
  position: absolute;
  right: 8px;
  top: 7px;
  color: #d6d9e5;
}
@media (max-width: 700px) {
  .sidebar-close {
    display: inline-grid;
  }
}
