:root {
  --ink: #211e2a;
  --muted: #777382;
  --line: #e9e6ed;
  --paper: #fbfafb;
  --panel: #fff;
  --violet: #6d4aff;
  --violet-dark: #5736e8;
  --violet-soft: #f0edff;
  --green: #1e9b68;
  --amber: #d99021;
  --red: #d95058;
  --shadow: 0 12px 40px rgba(35, 25, 65, 0.06);
}
* {
  box-sizing: border-box;
}
html {
  background: var(--paper);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.55 Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 246px;
  padding: 30px 18px 22px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 3;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  font:
    700 19px Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  letter-spacing: -0.5px;
}
.brand svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: var(--violet);
  stroke-width: 2.3;
}
.brand .fill {
  fill: var(--violet);
  stroke: none;
}
.brand b {
  color: var(--violet);
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 49px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #6c6875;
  font-weight: 600;
}
.sidebar nav svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  background: var(--violet-soft);
  color: var(--violet);
}
.sidebar nav .create {
  margin-top: 22px;
  background: var(--violet);
  color: #fff;
  justify-content: center;
}
.sidebar nav .create:hover {
  background: var(--violet-dark);
  color: #fff;
}
.side-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 20px 4px 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.side-foot strong,
.side-foot small {
  display: block;
  max-width: 115px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-foot small {
  font-size: 10px;
  color: var(--muted);
}
.side-foot form {
  margin-left: auto;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #7f65ff, #d467be);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.main {
  margin-left: 246px;
  min-height: 100vh;
  padding: 54px clamp(30px, 5vw, 78px);
  background: var(--paper);
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 32px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.7px;
  color: var(--violet);
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 7px;
}
.page-head h1,
.legal h1,
.login-card h1 {
  font:
    800 clamp(28px, 4vw, 39px) / 1.15 Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  letter-spacing: -1.4px;
  margin: 0;
}
.page-head p,
.login-card > p {
  margin: 7px 0 0;
  color: var(--muted);
}
.button {
  border: 0;
  border-radius: 10px;
  padding: 11px 17px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.button.primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 7px 18px rgba(109, 74, 255, 0.22);
}
.button.primary:hover {
  background: var(--violet-dark);
}
.button.secondary {
  background: #f1eff4;
  color: #4d4857;
}
.button.danger {
  background: #fff1f2;
  color: var(--red);
  width: 100%;
}
.full {
  width: 100%;
  margin-top: 10px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}
.stats article {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.stats strong {
  font:
    800 30px Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  display: block;
  margin-top: 8px;
}
.dot {
  position: absolute;
  right: 20px;
  top: 23px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.purple {
  background: var(--violet);
}
.amber {
  background: var(--amber);
}
.green {
  background: var(--green);
}
.red {
  background: var(--red);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 20px;
}
.panel,
.account-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow);
}
.panel-head {
  padding: 22px 24px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.panel-head h2,
.account-card h2 {
  font:
    700 16px Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  margin: 0;
}
.panel-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 2px 0 0;
}
.panel-head > a {
  font-size: 11px;
  color: var(--violet);
  font-weight: 700;
}
.post-row,
.account-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #f0edf2;
}
.post-row:last-child,
.account-row:last-child {
  border: 0;
}
.thumb {
  width: 39px;
  height: 39px;
  border-radius: 9px;
  background: linear-gradient(145deg, #eee9ff, #f7eaf4);
  color: var(--violet);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: 0 0 auto;
}
.thumb.reels {
  background: #272332;
  color: #fff;
}
.post-copy {
  min-width: 0;
  flex: 1;
}
.post-copy strong,
.post-copy small,
.post-copy em {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-copy strong {
  font-size: 12px;
}
.post-copy small {
  color: var(--muted);
  font-size: 10px;
}
.post-copy em {
  color: var(--red);
  font-size: 10px;
  font-style: normal;
}
.status {
  border-radius: 20px;
  padding: 4px 8px;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 800;
  background: #eee;
  color: #777;
}
.status.connected,
.status.published {
  color: var(--green);
  background: #eaf8f1;
}
.status.scheduled {
  color: var(--violet);
  background: var(--violet-soft);
}
.status.publishing {
  color: var(--amber);
  background: #fff6e7;
}
.status.failed,
.status.disconnected {
  color: var(--red);
  background: #fff0f1;
}
.icon-button {
  border: 0;
  background: transparent;
  color: #9a96a0;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
}
.ig-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(145deg, #7d5dff, #ef6b96);
}
.account-row > div:nth-child(2) {
  flex: 1;
}
.account-row strong,
.account-row small {
  display: block;
}
.account-row strong {
  font-size: 12px;
}
.account-row small {
  font-size: 10px;
  color: var(--muted);
}
.notice,
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin: 0 0 20px;
  background: #edfaf4;
  color: #17764f;
}
.alert {
  background: #fff0f1;
  color: #a93843;
}
.empty {
  padding: 56px 20px;
  text-align: center;
  color: var(--muted);
}
.empty div {
  font-size: 30px;
  color: #c9c4d1;
}
.empty p {
  margin: 6px;
}
.empty a {
  color: var(--violet);
  font-weight: 700;
}
.empty.compact {
  padding: 35px;
}
.tabs {
  display: flex;
  gap: 3px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
.tabs a {
  padding: 7px 12px;
  border-radius: 7px;
  text-transform: capitalize;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.tabs a.active {
  background: var(--violet-soft);
  color: var(--violet);
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 18px;
}
.account-card {
  text-align: center;
  padding: 26px;
}
.ig-avatar.large {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  font-size: 20px;
}
.account-card dl {
  text-align: left;
  margin: 24px 0 16px;
  border-top: 1px solid var(--line);
}
.account-card dl div {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.account-card dt {
  color: var(--muted);
}
.account-card dd {
  margin: 0;
  font-weight: 600;
}
.wide {
  grid-column: 1/-1;
  background: #fff;
  border: 1px dashed #d7d2dc;
  border-radius: 14px;
}
.composer {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(270px, 0.75fr);
  gap: 20px;
}
.compose-main,
.compose-side {
  padding: 25px;
}
.field {
  display: block;
  font-weight: 700;
  margin-bottom: 22px;
}
.field > .count {
  float: right;
  color: var(--muted);
  font-weight: 400;
  font-size: 11px;
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #ddd9e2;
  border-radius: 9px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-soft);
}
.field textarea {
  resize: vertical;
}
.dropzone {
  height: 210px;
  margin-top: 8px;
  border: 1.5px dashed #cfc9da;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #fcfbfd;
  cursor: pointer;
}
.dropzone:hover {
  border-color: var(--violet);
  background: #faf8ff;
}
.dropzone input {
  display: none;
}
.dropzone .upload-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--violet);
  background: var(--violet-soft);
  font-size: 20px;
  margin-bottom: 10px;
}
.dropzone span {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.timing {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 15px 0;
  color: var(--muted);
  font-size: 11px;
}
.timing strong {
  color: var(--ink);
}
.helper {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  margin: 15px 5px 0;
}
.public {
  min-height: 100vh;
}
.auth-page {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% -20%, #ded7ff, transparent 42%), #f8f6fa;
}
.login-card {
  width: min(410px, calc(100% - 32px));
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(50, 34, 89, 0.12);
  border-radius: 18px;
  padding: 38px;
}
.brand.center {
  justify-content: center;
  margin-bottom: 35px;
}
.login-card {
  text-align: center;
}
.login-card h1 {
  font-size: 31px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
  margin-top: 28px;
}
.stack label {
  font-weight: 700;
  font-size: 12px;
}
.stack input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.secure {
  display: block;
  margin-top: 22px;
  color: #9b96a2;
  font-size: 9px;
  letter-spacing: 0.4px;
}
.public-nav {
  height: 80px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 7vw;
}
.legal {
  width: min(720px, calc(100% - 40px));
  margin: 70px auto;
}
.legal h1 {
  margin-bottom: 30px;
}
.legal h2 {
  font:
    700 19px Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  margin-top: 30px;
}
.legal p {
  font-size: 15px;
  color: #5f5a67;
}
.legal footer {
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
  margin-top: 50px;
  color: var(--violet);
  font-size: 12px;
}
@media (max-width: 1000px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .split,
  .composer {
    grid-template-columns: 1fr;
  }
  .account-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: static;
    width: auto;
    height: auto;
    padding: 16px;
  }
  .sidebar nav {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .sidebar nav a {
    justify-content: center;
    font-size: 0;
  }
  .sidebar nav .create {
    margin: 0;
  }
  .side-foot {
    display: none;
  }
  .main {
    margin: 0;
    padding: 30px 18px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .stats,
  .account-grid {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .legal footer {
    flex-wrap: wrap;
  }
}
