:root {
  --nav: #211b50;
  --ink: #211e38;
  --egg: #fbfaf8;
  --line: #e1dfe6;
  --muted: #666476;
  --coral: #ff806a;
  --violet: #5a4b94;
  --light: #eeeafa;
  --green: #246447;
  font:
    16px/1.45 "Inter",
    "DM Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--egg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  color: inherit;
  border: 0;
  background: none;
  text-align: left;
}
button:disabled {
  cursor: wait;
  opacity: 0.58;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #8567ce;
  outline-offset: 3px;
}
a {
  color: var(--violet);
}
svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  vertical-align: middle;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 8px;
  background: white;
  padding: 10px;
  z-index: 20;
}
.layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}
.side {
  background: var(--nav);
  color: white;
  padding: 33px 16px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 10px 36px;
}
.word {
  font-size: 32px;
  letter-spacing: -2px;
  font-weight: 750;
  line-height: 1;
}
.brandmark {
  display: inline-grid;
  gap: 3px;
  transform: rotate(-12deg);
  width: 29px;
}
.brandmark i {
  display: block;
  background: #ff9a85;
  height: 5px;
  border-radius: 3px;
}
.brandmark i:nth-child(2) {
  width: 80%;
}
.brandmark i:nth-child(3) {
  width: 55%;
}
.navgroup {
  display: grid;
  gap: 4px;
  margin: 0 0 26px;
}
.navlabel,
.upper {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.navlabel {
  color: #b3abd4;
  padding: 0 13px 7px;
}
.navb {
  color: #eae6fa;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  border-radius: 7px;
}
.navb:hover,
.navb[aria-current="page"] {
  background: #423966;
  color: white;
}
.navb[aria-current="page"] {
  box-shadow: inset 3px 0 #ff9785;
}
.count {
  margin-left: auto;
  border-radius: 5px;
  background: #514674;
  padding: 0 6px;
  font-size: 13px;
}
.profile {
  margin-top: auto;
  border-top: 1px solid #51496e;
  padding: 18px 5px 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.av {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  font-weight: bold;
  background: #f8c4b4;
  color: #382044;
  border-radius: 50%;
  flex-shrink: 0;
}
.profile strong,
.profile small {
  display: block;
}
.profile strong {
  max-width: 104px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.profile small {
  font-size: 12px;
  color: #c9c1e1;
}
.profile button {
  margin-left: auto;
  color: white;
}
.top {
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 3.5vw, 58px);
  border-bottom: 1px solid var(--line);
  background: white;
  gap: 12px;
}
.brandSel {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.brandSel select {
  border: 0;
  font-weight: 650;
  max-width: 230px;
  margin: 0;
  padding: 7px 26px 7px 4px;
  background-color: transparent;
  width: auto;
}
.badgeDemo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 650;
  color: #704632;
}
.badgeDemo:before {
  content: "";
  background: #e88254;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
main.inner {
  padding: 34px clamp(18px, 3.5vw, 58px) 64px;
  margin: auto;
  max-width: 1530px;
}
.pagehead,
.bar,
.row,
.actions,
.sectiontitle,
.cardhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pagehead {
  margin-bottom: 24px;
}
.pagehead h1,
.login h1 {
  font-size: clamp(32px, 3.4vw, 54px);
  font-weight: 670;
  line-height: 1.07;
  letter-spacing: -0.06em;
  margin: 0;
}
.pagehead p,
.sub {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 14px;
}
.btn,
.ic,
select {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  font-size: 14px;
  font-weight: 600;
}
.btn,
.ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 13px;
  min-height: 40px;
  text-decoration: none;
}
.btn:hover,
.ic:hover {
  background: #efedf4;
}
.ic {
  width: 38px;
  min-height: 38px;
  padding: 6px;
}
.profile .ic {
  border: 0;
  background: transparent;
}
.primary {
  background: var(--coral);
  color: #2b2030;
  border-color: var(--coral);
}
.primary:hover {
  background: #ff967e;
}
.dark {
  background: var(--nav);
  color: white;
  border-color: var(--nav);
}
.dark:hover {
  background: #3f356f;
}
.danger {
  color: #912b2e;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.metric {
  min-height: 100px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: white;
}
.metric:first-child {
  background: #eae4fa;
  border-color: #d8ceed;
}
.metric:nth-child(2) {
  background: #f9e7de;
  border-color: #ead8ce;
}
.metric:nth-child(3) {
  background: #e3eee8;
  border-color: #d1e1d8;
}
.metric strong {
  display: block;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 620;
  letter-spacing: -0.07em;
  margin-top: 5px;
}
.metric span {
  font-size: 14px;
  font-weight: 560;
}
.metric .mi {
  align-self: flex-start;
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  background: #ffffff85;
}
.board,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.bar {
  padding: 17px 18px;
  flex-wrap: wrap;
}
.bar h2,
.sectiontitle h2,
.panel h2,
.card h2 {
  font-size: 20px;
  letter-spacing: -0.045em;
  line-height: 1.2;
  margin: 0;
}
.bar .left,
.bar .right,
.actions,
.tabs,
.tags,
.rowstart {
  display: flex;
  align-items: center;
  gap: 8px;
}
.arrows {
  display: flex;
  gap: 4px;
}
.arrows .ic {
  width: 31px;
  min-height: 31px;
  border-color: transparent;
}
.tabs {
  gap: 2px;
  border: 1px solid var(--line);
  background: #f5f3f7;
  padding: 3px;
  border-radius: 7px;
}
.tabs button {
  border-radius: 4px;
  padding: 5px 9px;
  font-size: 13px;
  font-weight: 650;
  display: flex;
  gap: 6px;
  align-items: center;
}
.tabs button.active {
  background: white;
  box-shadow: 0 1px 3px #211b501b;
}
.scrollx {
  overflow: auto;
}
.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
  min-width: 790px;
  border-top: 1px solid var(--line);
}
.day {
  min-height: 225px;
  padding: 12px 8px 16px;
  border-right: 1px solid #eeeaf2;
}
.day:last-child {
  border: none;
}
.day.current {
  background: #f8f6fd;
}
.day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 3px 15px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  font-weight: 650;
}
.day-top strong {
  font-size: 18px;
  letter-spacing: -0.05em;
  font-weight: 650;
  color: var(--ink);
  line-height: 30px;
  text-align: center;
  width: 30px;
}
.current .day-top strong {
  color: white;
  background: var(--nav);
  border-radius: 50%;
}
.postchip {
  display: block;
  width: 100%;
  border: 1px solid #e5dfef;
  border-left: 3px solid #927ebc;
  background: #f2eef8;
  border-radius: 7px;
  padding: 8px;
  margin: 0 0 7px;
}
.postchip[data-status="review"] {
  background: #fff2e8;
  border-left-color: #c47a4c;
}
.postchip[data-status="published"] {
  background: #ebf4ef;
  border-left-color: #648974;
}
.postchip:hover {
  filter: brightness(0.96);
}
.postchip small,
.postchip strong,
.postchip span {
  display: block;
}
.postchip small {
  font-size: 12px;
  font-weight: 650;
}
.postchip strong {
  font-size: 14px;
  line-height: 1.28;
  margin: 5px 0;
  overflow-wrap: anywhere;
}
.postchip span {
  font-size: 12px;
  color: #555065;
}
.dayadd {
  border: 1px dashed #d9d4e0;
  border-radius: 6px;
  width: 100%;
  text-align: center;
  font-size: 15px;
  color: #777087;
  line-height: 28px;
}
.dayadd:hover {
  background: var(--light);
}
.sectiontitle {
  margin: 25px 0 12px;
}
.sectiontitle h2 {
  font-size: 22px;
}
.list {
  display: grid;
}
.list > .item:not(:last-child) {
  border-bottom: 1px solid var(--line);
}
.item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  text-align: left;
  width: 100%;
  font-size: 14px;
  background: white;
}
.item:hover {
  background: #faf9fc;
}
.chan {
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #eae6f5;
  color: #514278;
  font-size: 12px;
  font-weight: 750;
  min-width: 35px;
  height: 35px;
}
.chan.facebook {
  background: #e4edf8;
  color: #315b8f;
}
.chan.youtube {
  background: #fbe8e7;
  color: #9b4639;
}
.chan.tiktok {
  background: #e4eeee;
  color: #285358;
}
.item .label {
  flex: 1;
  min-width: 0;
}
.label b,
.label small {
  display: block;
}
.label b {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.label small {
  font-size: 13px;
  color: var(--muted);
}
.pill {
  font-size: 12px;
  font-weight: 650;
  display: inline-block;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 20px;
  background: #eeeaf6;
  color: #544572;
}
.pill.review,
.pill.manual {
  background: #faeadb;
  color: #895120;
}
.pill.published,
.pill.active {
  background: #e4efe8;
  color: #2d6545;
}
.pill.failed,
.pill.rejected,
.pill.uncertain {
  background: #fae4e3;
  color: #913f3d;
}
.empty {
  padding: 30px 18px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 14px;
}
.card,
.content {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 18px;
}
.card .btn {
  margin-top: 8px;
}
.card h2 {
  margin: 14px 0 2px;
}
.note,
.feedback {
  border-radius: 7px;
  padding: 10px 13px;
  background: #f2eff8;
  color: #534967;
  margin: 10px 0;
  font-size: 14px;
}
.feedback.error,
.note.error {
  color: #882d34;
  background: #fae7e7;
}
.panel .content {
  border: 0;
}
.sectiontitle .btn {
  font-size: 13px;
}
.fields {
  display: grid;
  gap: 13px;
}
.fields label,
.formLabel {
  display: grid;
  gap: 5px;
  font-weight: 600;
  font-size: 14px;
}
.fields input,
.fields select,
.fields textarea,
.filters input,
.filters select,
.brandSel select {
  color: var(--ink);
}
input:not([type="checkbox"]),
select,
textarea {
  border: 1px solid #cfcbd7;
  padding: 9px 10px;
  border-radius: 6px;
  min-height: 41px;
  width: 100%;
  background-color: white;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2357506a' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.fields textarea {
  min-height: 76px;
  resize: vertical;
}
.two,
.three {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.three {
  grid-template-columns: repeat(3, 1fr);
}
.fields .check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.check input {
  margin-top: 4px;
}
.hint {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}
.formActions {
  margin-top: 19px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.filters {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.filters label {
  display: grid;
  gap: 3px;
  font-size: 13px;
  font-weight: 600;
}
.panel table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
.panel th,
.panel td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.panel th {
  background: #f6f4f9;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}
.panel tr:last-child td {
  border: 0;
}
.detail {
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.detail p {
  white-space: pre-wrap;
}
.detail dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 5px 12px;
  font-size: 14px;
}
.detail dt {
  color: var(--muted);
}
.detail dd {
  margin: 0;
}
.auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: var(--nav);
  padding: 28px;
}
.login {
  width: min(100%, 410px);
  padding: 32px;
  background: white;
  border-radius: 16px;
}
.login .word {
  color: var(--nav);
}
.login h1 {
  font-size: 34px;
  margin: 25px 0 18px;
}
.login .fields > .btn {
  margin-top: 5px;
}
.login .sub {
  margin: 14px 0 0;
}
.login .sub a {
  font-weight: 650;
}
.mobileNav {
  display: none;
}
dialog {
  width: min(560px, calc(100% - 24px));
  max-height: 89dvh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  box-shadow: 0 18px 90px #17133336;
}
dialog::backdrop {
  background: #18142a88;
}
dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 17px 21px;
  border-bottom: 1px solid var(--line);
}
dialog h2 {
  font-size: 24px;
  margin: 0;
  letter-spacing: -0.045em;
}
dialog header .ic {
  border: 0;
}
#dlgBody {
  padding: 18px 21px;
}
#toast {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  z-index: 9;
  background: #26213c;
  color: white;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
}
#toast.on {
  display: block;
}
.disabledText {
  font-size: 13px;
  color: var(--muted);
}
@media (min-width: 1510px) {
  .layout {
    grid-template-columns: 245px minmax(0, 1fr);
  }
  .day {
    min-height: 280px;
  }
}
@media (max-width: 1040px) {
  .layout {
    grid-template-columns: 182px minmax(0, 1fr);
  }
  .side {
    padding-left: 10px;
    padding-right: 10px;
  }
  .bar {
    padding: 12px;
  }
  .day {
    min-height: 205px;
  }
  .top {
    height: 65px;
  }
  .bar .right {
    margin-left: auto;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .side {
    display: none;
    position: fixed;
    top: 60px;
    bottom: 0;
    height: calc(100dvh - 60px);
    left: 0;
    width: 225px;
    z-index: 3;
    padding-top: 15px;
    box-shadow: 12px 0 32px #211b5033;
  }
  .side.open {
    display: flex;
  }
  .side .brand {
    margin-bottom: 20px;
  }
  .mobileNav {
    display: inline-flex;
  }
  .top {
    height: 60px;
    padding: 0 12px;
    position: sticky;
    top: 0;
    z-index: 3;
  }
  .brandSel {
    gap: 4px;
  }
  .brandSel > span {
    display: none;
  }
  .brandSel select {
    max-width: 155px;
    font-size: 14px;
  }
  .badgeDemo {
    font-size: 12px;
  }
  .top .rowstart {
    gap: 6px;
  }
  main.inner {
    padding: 22px 12px 44px;
  }
  .pagehead {
    margin-bottom: 17px;
    align-items: flex-start;
  }
  .pagehead h1 {
    font-size: 33px;
  }
  .pagehead .btn {
    font-size: 13px;
    min-height: 36px;
    padding: 7px 10px;
  }
  .metrics {
    gap: 6px;
    margin-bottom: 16px;
  }
  .metric {
    padding: 10px 8px;
    min-height: 81px;
  }
  .metric span {
    font-size: 12px;
  }
  .metric .mi {
    display: none;
  }
  .metric strong {
    font-size: 29px;
  }
  .bar h2 {
    font-size: 17px;
  }
  .bar .right {
    margin: 0;
  }
  .week {
    min-width: 805px;
  }
  .sectiontitle {
    margin-top: 19px;
  }
  .sectiontitle h2 {
    font-size: 20px;
  }
  .item {
    padding: 11px 9px;
    gap: 8px;
  }
  .two,
  .three {
    grid-template-columns: 1fr 1fr;
  }
  .printOnly {
    display: none;
  }
}
@media print {
  body {
    background: white;
    color: black;
  }
  .side,
  .top,
  .pagehead .btn,
  .filters,
  .noPrint,
  #toast,
  .skip,
  dialog {
    display: none !important;
  }
  .layout,
  main.inner {
    display: block;
    padding: 0;
  }
  .pagehead,
  .metrics,
  .panel {
    break-inside: avoid;
  }
  .panel {
    border: 0;
  }
  .scrollx {
    overflow: visible;
  }
  .metrics {
    margin-top: 15px;
  }
  .metric {
    min-height: 70px;
  }
  .panel th,
  .panel td {
    padding: 6px;
  }
  .panel table {
    font-size: 11px;
  }
  tr {
    break-inside: avoid;
  }
}

.demoPick {
  display: flex;
  align-items: center;
  gap: 10px;
}
.demoPick select {
  font-size: 14px;
  width: auto;
  max-width: 185px;
  padding: 6px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
}
@media (max-width: 700px) {
  .demoPick {
    gap: 3px;
    flex-direction: column;
    align-items: flex-end;
  }
  .demoPick select {
    max-width: 145px;
    font-size: 12px;
  }
  .demoPick .badgeDemo {
    font-size: 10px;
    padding: 1px 6px;
  }
}
