:root {
  color-scheme: dark;
  --black: #000000;
  --black-2: #030303;
  --panel: #070707;
  --panel-2: #0b0b0b;
  --line: #181818;
  --line-soft: #101010;
  --text: #f8f8f8;
  --muted: #9ca3af;
  --dim: #59616d;
  --red: #c084fc;
  --red-2: #a855f7;
  --radius: 8px;
  --sidebar: 306px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--black);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

svg {
  width: 18px;
  height: 18px;
}

body[data-view="landing"] .auth-view,
body[data-view="landing"] .app-shell,
body[data-view="auth"] .landing-view,
body[data-view="auth"] .app-shell,
body[data-view="app"] .landing-view,
body[data-view="app"] .auth-view {
  display: none;
}

.landing-view,
.auth-view {
  min-height: 100vh;
  background: var(--black);
}

.site-header,
.landing-main,
.site-footer {
  width: min(1320px, calc(100% - 96px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
}

.mark,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.bolt-logo {
  display: inline-block;
  width: 40px;
  height: 30px;
  background: var(--red);
  clip-path: polygon(72% 0, 30% 8%, 12% 37%, 50% 30%, 24% 100%, 88% 22%, 48% 31%);
  filter: drop-shadow(0 0 16px rgba(192, 132, 252, 0.42));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a,
.ghost-link,
.site-footer a,
.product-window a,
.price-grid a {
  color: #d8dde6;
  text-decoration: none;
  font-weight: 700;
}

.site-nav a:not(.red-btn):hover,
.ghost-link:hover,
.site-footer a:hover {
  color: #fff;
}

.red-btn,
.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(192, 132, 252, 0.18);
}

.red-btn.compact {
  min-height: 44px;
  padding: 0 18px;
}

.landing-main {
  padding-top: 70px;
}

.hero-section {
  display: grid;
  place-items: center;
  min-height: 460px;
  text-align: center;
}

.hero-section h1 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(52px, 6.8vw, 86px);
  font-weight: 900;
  line-height: 0.92;
}

.hero-section p {
  max-width: 650px;
  margin: 26px 0 0;
  color: #c3cad4;
  font-size: 22px;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: #b8c0cc;
}

.hero-tags {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  color: #747c87;
  font-weight: 800;
}

.hero-tags i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
}

.product-section,
.resources-section,
.pricing-section,
.final-cta {
  padding: 92px 0 0;
}

.section-line {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.section-line p,
.red-label {
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.section-line h2 {
  justify-self: end;
  max-width: 650px;
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 3.1vw, 46px);
  font-weight: 900;
  line-height: 1.08;
  text-align: right;
}

.product-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #030303;
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line-soft);
}

.window-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #464646;
}

.window-bar strong {
  margin-left: 22px;
  color: #aeb5c0;
  font-size: 13px;
}

.window-bar small {
  margin-left: auto;
  color: #393f49;
  font-size: 12px;
  font-weight: 900;
}

.composer-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.92fr;
  min-height: 560px;
}

.composer-form,
.preview-pane {
  padding: 36px 48px;
}

.preview-pane {
  border-left: 1px solid var(--line-soft);
}

.composer-form h3,
.preview-pane h3 {
  margin: 8px 0 30px;
  color: #fff;
  font-size: 25px;
}

.composer-form label {
  margin-bottom: 24px;
}

.composer-form label,
.auth-card label,
.app-shell label {
  display: grid;
  gap: 10px;
  color: #77808c;
  font-size: 12px;
  font-weight: 900;
}

.select-row,
.input-row,
.composer-form textarea {
  width: 100%;
  border: 1px solid #292929;
  border-radius: var(--radius);
  background: #050505;
  color: #9ea6b2;
}

.select-row,
.input-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  text-align: left;
  font-weight: 800;
}

.input-row i:first-child {
  color: var(--red);
}

.format-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.format-tabs button,
.resource-tabs button {
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: #7c8490;
  font-weight: 900;
  padding: 0 0 10px;
}

.format-tabs button.is-active,
.resource-tabs button.is-active {
  border-color: var(--red);
  color: #fff;
}

.composer-form textarea {
  min-height: 56px;
  padding: 16px;
  resize: none;
}

.phone-preview {
  width: min(330px, 100%);
  min-height: 380px;
  margin: 0 auto 28px;
  border: 1px solid #2a2a2a;
  border-radius: 13px;
  background: #050505;
  overflow: hidden;
}

.phone-preview div {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  background: #020202;
}

.phone-preview div span {
  height: 4px;
  border-radius: 999px;
  background: #353535;
}

.phone-preview small {
  color: #303741;
  font-weight: 900;
  text-align: center;
}

.phone-preview p {
  display: grid;
  place-items: center;
  min-height: 344px;
  margin: 0;
  color: #5f6671;
  font-weight: 800;
}

.delivery-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(330px, 100%);
  margin: 0 auto;
  color: var(--red);
}

.delivery-row span {
  display: grid;
  color: #717985;
  font-size: 12px;
  font-weight: 800;
}

.delivery-row strong {
  margin-top: 3px;
  color: #d7dde7;
  font-size: 14px;
}

.window-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 22px;
  border-top: 1px solid var(--line-soft);
  color: #5f6671;
  font-size: 13px;
  font-weight: 800;
}

.window-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.resource-tabs {
  display: flex;
  gap: 34px;
  border-bottom: 1px solid var(--line-soft);
}

.resource-card {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
  min-height: 160px;
  padding: 58px 0 0;
  border-left: 3px solid var(--red);
}

.resource-card div {
  padding-left: 28px;
}

.resource-card span {
  color: #717985;
  font-size: 12px;
  font-weight: 900;
}

.resource-card h3 {
  margin: 8px 0 0;
  color: #fff;
  font-size: 30px;
}

.resource-card p {
  margin: 0;
  color: #b4bac3;
  font-size: 19px;
  line-height: 1.4;
}

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

.price-grid article {
  min-height: 270px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #050505;
}

.price-grid span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.price-grid h3 {
  margin: 16px 0 10px;
  color: #fff;
  font-size: 28px;
}

.price-grid strong {
  display: block;
  color: #fff;
  font-size: 22px;
}

.price-grid p {
  min-height: 62px;
  color: #9ea6b2;
  line-height: 1.55;
}

.price-grid a {
  color: var(--red);
}

.final-cta {
  display: grid;
  place-items: center;
  min-height: 330px;
  text-align: center;
}

.final-cta h2 {
  margin: 0 0 32px;
  color: #fff;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  margin-top: 30px;
  border-top: 1px solid var(--line-soft);
  color: #555d68;
  font-weight: 700;
}

.site-footer .bolt-logo {
  width: 25px;
  height: 19px;
}

.site-footer div {
  display: flex;
  gap: 28px;
}

body[data-view="landing"] {
  background: #000;
}

body[data-view="landing"] .landing-view {
  background: #000;
  color: #fff;
}

body[data-view="landing"] .site-header {
  min-height: 86px;
  border-bottom: 1px solid #111;
  justify-content: end;
}

body[data-view="landing"] .landing-main {
  padding-top: 0;
}

body[data-view="landing"] .site-nav a:not(.red-btn) {
  color: #e8edf5;
  font-size: 14px;
}

body[data-view="landing"] .red-btn {
  background: #c084fc;
  color: #fff;
  box-shadow: 0 14px 34px rgba(192, 132, 252, 0.18);
}

.black-hero {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 40px 24px;
  text-align: center;
}

.landing-kicker {
  margin: 0 0 18px;
  color: #c084fc;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.black-hero h1 {
  max-width: 930px;
  margin: 0;
  color: #fff;
  font-size: clamp(48px, 7vw, 104px);
  font-weight: 950;
  line-height: 0.92;
}

.black-hero > p:not(.landing-kicker) {
  max-width: 680px;
  margin: 26px 0 0;
  color: #aab3c0;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.4;
}

.black-hero .hero-actions {
  margin-top: 38px;
}

.black-product,
.black-resources,
.black-pricing,
.black-cta {
  padding: 90px 0 0;
}

.black-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.black-section-head h2 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 950;
  line-height: 1.02;
  text-align: right;
}

.black-preview {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid #171717;
  border-radius: 14px;
  background: #030303;
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border-right: 1px solid #151515;
  background: #020202;
}

.preview-sidebar span {
  width: 32px;
  height: 24px;
  margin-bottom: 24px;
  background: #c084fc;
  clip-path: polygon(72% 0, 30% 8%, 12% 37%, 50% 30%, 24% 100%, 88% 22%, 48% 31%);
}

.preview-sidebar strong {
  padding: 12px;
  border: 1px solid #161616;
  border-radius: 8px;
  color: #d8dde6;
  font-size: 13px;
}

.preview-main {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
}

.preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 46px;
}

.preview-topline span {
  color: #58c98c;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-topline a,
.price-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 7px;
  background: #f3f1e9;
  color: #050505;
  font-size: 12px;
  font-weight: 900;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #171717;
  border-radius: 10px;
}

.preview-metrics article {
  min-height: 110px;
  padding: 18px;
  border-right: 1px solid #171717;
}

.preview-metrics article:last-child {
  border-right: 0;
}

.preview-metrics span,
.feature-grid span,
.black-pricing .price-grid p {
  color: #828b98;
  font-size: 13px;
}

.preview-metrics strong {
  display: block;
  margin-top: 22px;
  color: #fff;
  font-size: 38px;
}

.preview-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: 18px;
  min-height: 320px;
}

.preview-composer > div,
.preview-composer aside,
.feature-grid article,
.black-pricing .price-grid article {
  border: 1px solid #171717;
  border-radius: 10px;
  background: #050505;
}

.preview-composer > div {
  padding: 24px;
}

.preview-composer p {
  margin: 0 0 18px;
  color: #c084fc;
  font-size: 12px;
  font-weight: 900;
}

.preview-composer strong,
.preview-composer span {
  display: block;
}

.preview-composer strong {
  color: #fff;
  font-size: 24px;
}

.preview-composer span {
  margin-top: 8px;
  color: #828b98;
}

.preview-composer aside {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  aspect-ratio: 9 / 16;
}

.preview-composer aside small {
  color: #4f5865;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.preview-composer aside b {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid #292929;
  border-radius: 999px;
  color: #fff;
}

.feature-grid,
.black-pricing .price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article,
.black-pricing .price-grid article {
  min-height: 190px;
  padding: 22px;
}

.feature-grid i {
  color: #c084fc;
}

.feature-grid strong,
.black-pricing .price-grid h3 {
  display: block;
  margin-top: 34px;
  color: #fff;
  font-size: 20px;
}

.feature-grid span {
  display: block;
  margin-top: 10px;
  line-height: 1.45;
}

.black-pricing .price-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.black-pricing .price-grid span {
  color: #c084fc;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.black-pricing .price-grid h3 {
  margin: 34px 0 12px;
  font-size: 32px;
}

.black-pricing .price-grid p {
  min-height: 58px;
  margin: 0 0 22px;
  line-height: 1.45;
}

.black-cta {
  display: grid;
  justify-items: center;
  padding-bottom: 100px;
  text-align: center;
}

.black-cta h2 {
  max-width: 740px;
  margin: 0 0 26px;
  color: #fff;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
}

@media (max-width: 980px) {
  .black-section-head,
  .preview-topline {
    display: grid;
  }

  .black-section-head h2 {
    text-align: left;
  }

  .black-preview,
  .preview-composer,
  .feature-grid,
  .black-pricing .price-grid {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    display: none;
  }
}

@media (max-width: 620px) {
  .black-hero {
    min-height: 100svh;
    padding: 40px 18px;
    align-content: center;
  }

  .black-hero h1 {
    font-size: clamp(42px, 16vw, 68px);
  }

  .black-hero .hero-actions {
    display: grid;
  }

  .preview-metrics {
    grid-template-columns: 1fr;
  }

  .preview-metrics article {
    border-right: 0;
    border-bottom: 1px solid #171717;
  }

  .preview-metrics article:last-child {
    border-bottom: 0;
  }
}

.auth-view {
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-card {
  width: min(430px, 100%);
  padding: 38px 28px 30px;
  border: 1px solid #272727;
  border-radius: 10px;
  background: #080808;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.auth-logo {
  display: block;
  width: 42px;
  height: 30px;
  margin: 0 auto 34px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  min-height: 44px;
  margin-bottom: 22px;
  padding: 3px;
  border: 1px solid #2a2e32;
  border-radius: 6px;
  background: #030303;
}

.auth-tabs button {
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #7d8793;
  font-size: 12px;
  font-weight: 900;
}

.auth-tabs button.is-active {
  background: #252a2d;
  color: #fff;
}

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

.auth-card label {
  color: #d7dde7;
}

.auth-card input,
.password-field {
  width: 100%;
  min-height: 48px;
  border: 1px solid #333333;
  border-radius: 6px;
  background: #020202;
  color: #f3f4f6;
}

.auth-card input {
  padding: 0 14px;
  outline: none;
}

.auth-card input::placeholder {
  color: #4f5a66;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
}

.password-field input {
  min-height: 46px;
  border: 0;
  background: transparent;
}

.password-field button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #747d88;
}

.auth-submit {
  width: 100%;
  justify-content: space-between;
  min-height: 54px;
  margin-top: 30px;
  padding: 0 18px;
  text-align: left;
}

.privacy-copy {
  margin: 20px 0 0;
  color: #65707d;
  font-size: 12px;
}

.privacy-copy a {
  color: #cfd6df;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
  background: #f4f5f7;
  color: #17191f;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #17191f;
  border-right: 1px solid #0f1117;
  overflow-y: auto;
  scrollbar-width: thin;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 0 18px;
}

.brand-badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--red);
}

.brand-badge span {
  width: 22px;
  height: 16px;
  background: #fff;
  clip-path: polygon(72% 0, 30% 8%, 12% 37%, 50% 30%, 24% 100%, 88% 22%, 48% 31%);
}

.brand-row strong {
  color: #f8fafc;
  font-size: 22px;
  font-weight: 900;
}

.brand-row strong span {
  display: block;
  margin-top: 1px;
  color: #aeb6c6;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.user-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 12px;
  margin: 0 14px 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: #23262f;
}

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #241233;
  color: #e9d5ff;
  font-weight: 900;
}

.user-card strong,
.account-select strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-card p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0 0;
  color: #aeb6c6;
  font-size: 13px;
}

.user-card p span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(192, 132, 252, 0.16);
  color: #e9d5ff;
}

.account-select {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  margin: 0 14px 18px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: #11131a;
  color: #fff;
  text-align: left;
}

.question {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}

.nav {
  padding: 0 10px 12px;
}

.nav p {
  margin: 18px 10px 8px;
  color: #7f8796;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: #dbe1ea;
  text-decoration: none;
}

.nav a:hover,
.nav a.is-active {
  background: #2d3340;
}

.nav a.is-active {
  box-shadow: inset 3px 0 0 var(--red);
}

.nav i,
.sidebar-footer i {
  display: grid;
  place-items: center;
  color: #b9c2d0;
}

.nav a.is-active i,
.nav a.is-active strong {
  color: #fff;
}

.nav strong {
  display: block;
  overflow: hidden;
  color: #eef2f7;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #98a2b3;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-footer {
  margin-top: auto;
  padding: 12px 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.support,
.pin {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #e5eaf1;
  text-align: left;
  font-weight: 800;
}

.pin {
  grid-template-columns: 24px minmax(0, 1fr);
  color: #aeb6c6;
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 76px;
  padding: 0 30px;
  background: rgba(244, 245, 247, 0.9);
  border-bottom: 1px solid #dfe3ea;
  backdrop-filter: blur(16px);
}

.menu-toggle {
  display: none !important;
}

.greeting h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.greeting h1 span {
  color: var(--red);
}

.greeting p {
  margin: 5px 0 0;
  color: #6c7280;
  font-size: 13px;
  font-weight: 700;
}

.top-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #dfe3ea;
  border-radius: var(--radius);
  background: #fff;
  color: #4b5563;
}

.icon-btn.small {
  width: 30px;
  height: 30px;
  border-color: rgba(255, 255, 255, 0.08);
  background: #17191f;
  color: #cbd5e1;
}

.page {
  display: none;
  padding: 30px;
}

.page.is-active {
  display: block;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.command-center,
.today-panel,
.panel,
.metric,
.accordion,
.storage-card,
.instagram-card {
  border: 1px solid #dfe3ea;
  border-radius: var(--radius);
  background: #fff;
  color: #17191f;
  box-shadow: 0 14px 34px rgba(20, 24, 35, 0.08);
}

.command-center {
  display: grid;
  align-content: space-between;
  min-height: 360px;
  padding: 34px;
}

.command-center h2 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 64px);
  font-weight: 900;
  line-height: 1;
}

.command-center p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px 0 0;
  color: #6c7280;
  font-size: 18px;
  line-height: 1.6;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.today-panel,
.panel {
  padding: 24px;
}

.today-list,
.stack,
.changelog {
  display: grid;
  gap: 12px;
}

.today-list article,
.stack article {
  padding: 16px;
  border: 1px solid #dfe3ea;
  border-radius: var(--radius);
  background: #f9fafb;
}

.today-list span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.today-list strong {
  display: block;
  margin-top: 8px;
}

.today-list p,
.panel span,
.blue-info,
.drive-copy,
.empty p,
.changelog p {
  color: #6c7280;
  line-height: 1.45;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-head,
.automation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.page-head.row {
  align-items: center;
}

.page-head h2,
.automation-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: #17191f;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.05;
}

.page-head p,
.automation-head p {
  margin: 0;
  color: #6c7280;
}

.head-actions,
.search-actions,
.panel-head.split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.blue-outline,
.help-pill,
.muted-btn,
.primary-btn,
.ig-btn,
.manual-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.blue-outline {
  border: 1px solid #d8b4fe;
  background: #1a1024;
  color: #e9d5ff;
}

.help-pill,
.muted-btn {
  border: 1px solid #dfe3ea;
  background: #fff;
  color: #4b5563;
}

.primary-btn,
.ig-btn {
  border: 0;
  background: #17191f;
  color: #fff;
}

.ig-btn {
  background: var(--red);
}

.time-tabs,
.post-tabs,
.format-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

.time-tabs {
  margin-bottom: 16px;
}

.time-tabs button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #dfe3ea;
  border-radius: 999px;
  background: #fff;
  color: #596273;
  font-weight: 800;
  white-space: nowrap;
}

.time-tabs button.is-active {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.metric {
  min-height: 124px;
  padding: 22px;
}

.metric p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #6c7280;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  color: #17191f;
  font-size: 38px;
  font-weight: 900;
}

.account-operation,
.empty-row {
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 1px dashed #c8ced8;
  border-radius: var(--radius);
  background: #f9fafb;
}

.account-operation {
  width: min(520px, 100%);
  min-height: 210px;
  margin-top: 18px;
}

.empty {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 150px;
  color: #9097a6;
  text-align: center;
}

.empty i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #c8ced8;
  border-radius: 8px;
  color: #b45309;
}

.table {
  overflow: hidden;
  border: 1px solid #dfe3ea;
  border-radius: var(--radius);
  background: #fff;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.table-head.posts,
.table-row.posts {
  grid-template-columns: 1fr 1fr 1.35fr 0.8fr 1fr 1fr 1fr;
}

.table-head {
  min-height: 48px;
  align-items: center;
  background: #f1f5f9;
  color: #617089;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table-head span,
.table-row span {
  padding: 0 16px;
}

.table-row {
  min-height: 56px;
  align-items: center;
  border-top: 1px solid #dfe3ea;
  color: #2f3540;
}

.post-tabs {
  gap: 4px;
  padding: 4px;
  border: 1px solid #dfe3ea;
  border-radius: var(--radius);
  background: #fff;
}

.post-tabs button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #596273;
  font-weight: 800;
}

.post-tabs button.is-active {
  background: #17191f;
  color: white;
}

.automation-head,
.upload-box,
.steps {
  width: min(1040px, 100%);
  margin-inline: auto;
}

.steps {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
  color: #9097a6;
}

.steps span {
  white-space: nowrap;
}

.steps span.on {
  color: var(--red);
  font-weight: 900;
}

.steps i {
  width: 52px;
  height: 1px;
  margin: 0 10px;
  background: #c8ced8;
  flex: 0 0 auto;
}

.upload-box {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 230px;
  margin-bottom: 22px;
  padding: 32px;
  border: 2px dashed #c8ced8;
  border-radius: var(--radius);
  background: #fff;
  color: #17191f;
  text-align: center;
  box-shadow: 0 14px 34px rgba(20, 24, 35, 0.08);
}

.upload-box.is-over {
  border-color: var(--red);
  background: #120919;
}

.upload-box > i {
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--red);
}

.upload-box > i svg {
  width: 44px;
  height: 44px;
}

.upload-box input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.blue-info {
  min-height: 56px;
  display: flex;
  align-items: center;
  margin-top: 16px;
  padding: 0 18px;
  border: 1px solid #d8b4fe;
  border-radius: var(--radius);
  background: #120919;
  color: #e9d5ff;
}

.blue-info.wide {
  margin: 0 0 18px;
}

.form-panel,
.caption-form,
.hashtag-form {
  display: grid;
  gap: 16px;
}

.hashtag-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.caption-form textarea,
.hashtag-form input,
.form-panel select,
.search input {
  width: 100%;
  border: 1px solid #c8ced8;
  border-radius: var(--radius);
  background: #fff;
  color: #17191f;
  outline: none;
}

.caption-form textarea {
  min-height: 112px;
  padding: 16px;
  resize: vertical;
}

.hashtag-form input,
.form-panel select,
.search input {
  min-height: 48px;
  padding: 0 14px;
}

.caption-form small {
  justify-self: end;
  color: #9097a6;
}

.caption-form .primary-btn,
.hashtag-form button {
  justify-self: start;
}

.captions-manager {
  display: grid;
  gap: 18px;
}

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

.captions-toolbar span {
  display: block;
  margin-top: 6px;
  color: #737b78;
  font-size: 12px;
}

.captions-toolbar > div:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.muted-btn.danger {
  border-color: rgba(255, 99, 99, 0.28);
  color: #ffb1b1;
}

.captions-list {
  display: grid;
  gap: 12px;
}

.caption-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #1f1f1f;
  border-radius: 10px;
  background: #050505;
}

.caption-card label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  color: #737b78;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.caption-card input {
  width: 15px;
  height: 15px;
  accent-color: var(--red);
}

.caption-card p {
  margin: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.caption-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid #181818;
}

.caption-card small {
  color: #737b78;
  font-size: 11px;
}

.caption-delete-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 99, 99, 0.24);
  border-radius: 999px;
  background: rgba(255, 99, 99, 0.08);
  color: #ffb1b1;
}

.caption-delete-btn svg {
  width: 15px;
  height: 15px;
}

.captions-empty {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px dashed #252525;
  border-radius: 10px;
  text-align: center;
}

.captions-empty h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.captions-empty p {
  margin: 0;
  color: #737b78;
  font-size: 12px;
}

.caption-distributor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.caption-distributor h3 {
  margin: 4px 0 8px;
  color: #fff;
  font-size: 18px;
}

.caption-distributor span {
  color: #737b78;
  font-size: 12px;
}

.caption-distribution-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.accordion {
  margin-bottom: 18px;
  padding: 0 22px;
}

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  list-style: none;
  text-transform: uppercase;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.instagram-card {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  padding: 26px;
  border-color: #d8b4fe;
  background: #100816;
}

.instagram-card.is-demo {
  border-color: #d8b4fe;
  background: #0d0612;
}

.ig-logo {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  background: var(--red);
  color: white;
  flex: 0 0 auto;
}

.instagram-card h3 {
  margin: 2px 0 8px;
  color: #17191f;
  font-size: 22px;
  font-weight: 900;
}

.instagram-card p {
  margin: 0 0 18px;
  color: #4b5563;
  line-height: 1.6;
}

.tag-bar > div {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tag-bar > div > span {
  margin-right: auto;
}

.search {
  position: relative;
  display: block;
  min-width: 330px;
}

.search i {
  position: absolute;
  left: 14px;
  top: 50%;
  color: #6c7280;
  transform: translateY(-50%);
}

.search input {
  padding-left: 44px;
}

.manual-link {
  display: flex;
  margin: 12px auto 0;
  border: 0;
  background: transparent;
  color: #6c7280;
}

.storage-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
  padding: 22px;
}

.storage-card > div {
  flex: 1;
}

.storage-line {
  height: 8px;
  margin-top: 14px;
  border-radius: 999px;
  background: #e5e7eb;
}

.storage-line span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
}

.drive-copy {
  max-width: 620px;
  margin: 0 0 18px;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.folder-card,
.new-folder-card {
  display: grid;
  place-items: center;
  min-height: 210px;
  border: 1px dashed #c8ced8;
  border-radius: var(--radius);
  background: #fff;
  color: #6c7280;
  text-align: center;
  box-shadow: 0 14px 34px rgba(20, 24, 35, 0.08);
}

.folder-card {
  place-items: start;
  padding: 22px;
  border-style: solid;
}

.tall-empty {
  min-height: 340px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid #0f172a;
  border-radius: var(--radius);
  background: #17191f;
  color: white;
  font-weight: 900;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.confirm-modal[hidden] {
  display: none;
}

.confirm-dialog {
  width: min(440px, 100%);
  padding: 24px;
  border: 1px solid #242424;
  border-radius: 14px;
  background: #070707;
  color: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.confirm-dialog h2 {
  margin: 8px 0;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.confirm-dialog > p:not(.eyebrow) {
  margin: 0;
  color: #9aa29f;
  font-size: 13px;
  line-height: 1.5;
}

.confirm-dialog > div {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin-top: 24px;
}

.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 99, 99, 0.42);
  border-radius: 7px;
  background: rgba(255, 99, 99, 0.14);
  color: #ffb1b1;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .site-header,
  .landing-main,
  .site-footer {
    width: min(100% - 42px, 980px);
  }

  .composer-grid,
  .section-line,
  .resource-card,
  .price-grid,
  .home-grid,
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-line h2 {
    justify-self: start;
    text-align: left;
  }

  .table {
    overflow-x: auto;
  }

  .table-head,
  .table-row {
    min-width: 760px;
  }

  .table-head.posts,
  .table-row.posts {
    min-width: 1120px;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 78px;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav a:not(.red-btn):nth-child(-n + 3) {
    display: none;
  }

  .landing-main {
    padding-top: 28px;
  }

  .hero-section {
    min-height: 430px;
  }

  .hero-actions,
  .hero-tags,
  .site-footer,
  .site-footer div {
    display: grid;
    justify-items: center;
  }

  .composer-grid,
  .section-line,
  .resource-card,
  .price-grid,
  .home-grid,
  .summary-grid,
  .hashtag-form {
    grid-template-columns: 1fr;
  }

  .composer-form,
  .preview-pane {
    padding: 24px;
  }

  .preview-pane {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(306px, calc(100vw - 42px));
    transform: translateX(-102%);
    transition: transform 180ms ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .menu-toggle {
    display: inline-grid !important;
  }

  .topbar {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
  }

  .top-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .page {
    padding: 18px 14px 54px;
  }

  .page-head,
  .automation-head,
  .storage-card,
  .panel-head.split,
  .instagram-card,
  .tag-bar > div,
  .search-actions {
    display: grid;
  }

  .search {
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .site-header,
  .landing-main,
  .site-footer {
    width: min(100% - 28px, 430px);
  }

  .hero-section h1 {
    font-size: 49px;
  }

  .hero-section p {
    font-size: 18px;
  }

  .red-btn,
  .ghost-link,
  .auth-submit,
  .blue-outline,
  .help-pill,
  .muted-btn,
  .primary-btn,
  .ig-btn {
    width: 100%;
  }

  .site-nav {
    gap: 10px;
  }

  .site-nav .red-btn {
    width: auto;
  }

  .product-section,
  .resources-section,
  .pricing-section,
  .final-cta {
    padding-top: 62px;
  }

  .auth-card {
    padding: 36px 26px 28px;
  }
}

body[data-view="app"] {
  --sidebar: 248px;
  background: #000000;
  color: #f7f7f2;
}

body[data-view="app"] .app-shell {
  background: #000000;
  color: #f7f7f2;
}

body[data-view="app"] .sidebar {
  background: #000000;
  border-right: 1px solid #151515;
}

body[data-view="app"] .app-brand {
  justify-content: center;
  min-height: 108px;
  padding-top: 18px;
}

body[data-view="app"] .app-brand .bolt-logo {
  width: 54px;
  height: 38px;
}

.sidebar-actions {
  display: grid;
  gap: 8px;
  padding: 0 12px 18px;
}

.side-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: #f2f0e8;
  color: #060606;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.side-action svg {
  width: 16px;
  height: 16px;
}

body[data-view="app"] .nav {
  padding: 0 10px;
}

body[data-view="app"] .nav p,
body[data-view="app"] .sidebar-footer p {
  margin: 14px 10px 10px;
  color: #6f7775;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body[data-view="app"] .nav a {
  min-height: 41px;
  grid-template-columns: 22px minmax(0, 1fr);
  padding: 0 10px;
  border-radius: 6px;
  color: #b7bfbd;
}

body[data-view="app"] .nav a:hover {
  background: #070707;
}

body[data-view="app"] .nav a.is-active {
  background: transparent;
  color: #fff;
  box-shadow: inset 2px 0 0 var(--red);
}

body[data-view="app"] .nav a.is-active i,
body[data-view="app"] .nav a.is-active strong {
  color: #fff;
}

body[data-view="app"] .nav strong {
  color: #d8dfdd;
  font-size: 13px;
  font-weight: 800;
}

body[data-view="app"] .nav small {
  display: none;
}

body[data-view="app"] .sidebar-footer {
  border-top: 0;
  padding: 0 14px 18px;
}

.profile-mini {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 9px;
  min-height: 42px;
}

.profile-mini .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #181b1a;
  color: #f2f0e8;
  font-size: 12px;
}

.profile-mini strong {
  overflow: hidden;
  color: #f2f0e8;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-view="app"] .workspace {
  min-width: 0;
  background: #000000;
}

body[data-view="app"] .topbar {
  min-height: 76px;
  padding: 0 30px;
  background: #000000;
  border-bottom: 1px solid #151515;
  backdrop-filter: none;
}

body[data-view="app"] .greeting {
  display: grid;
  gap: 4px;
}

body[data-view="app"] .greeting p {
  order: -1;
  margin: 0;
  color: #6d7472;
  font-size: 12px;
  font-weight: 600;
}

body[data-view="app"] .greeting p span {
  margin-right: 10px;
  color: var(--red);
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

body[data-view="app"] .greeting h1 {
  margin: 0;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
}

body[data-view="app"] .top-actions {
  align-items: center;
  gap: 8px;
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 14px;
  color: #4ade80;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-status svg {
  width: 22px;
  height: 22px;
}

body[data-view="app"] .icon-btn {
  width: 35px;
  height: 35px;
  border-color: #181818;
  background: #050505;
  color: #e4e2d9;
}

.light-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 35px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: #f2f0e8;
  color: #000000;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

body[data-view="app"] .page {
  padding: 26px 66px 64px;
}

body[data-view="app"] .home-page {
  display: none;
}

body[data-view="app"] .home-page.is-active {
  display: block;
}

.overview-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 210px;
  margin-bottom: 18px;
  padding: 42px 36px;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(circle at 88% 52%, rgba(192, 132, 252, 0.62) 0 7%, rgba(192, 132, 252, 0.22) 7.2% 16%, transparent 16.2%),
    radial-gradient(circle at 120% 120%, rgba(168, 85, 247, 0.78) 0 20%, transparent 20.5%),
    repeating-radial-gradient(circle at 84% 50%, rgba(192, 132, 252, 0.24) 0 1px, transparent 1px 78px),
    linear-gradient(90deg, #f8f4ea 0%, #f7f1e7 100%);
  color: #070707;
}

.overview-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 9%;
  width: 74px;
  height: 100%;
  background: rgba(5, 5, 5, 0.82);
  mix-blend-mode: multiply;
}

.overview-hero > * {
  position: relative;
  z-index: 1;
}

.overview-hero p {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.overview-hero h2 {
  margin: 0;
  color: #060606;
  font-size: clamp(36px, 4.2vw, 55px);
  font-weight: 900;
  line-height: 0.98;
}

.overview-hero h2 span {
  color: var(--red);
}

.overview-hero small {
  display: block;
  margin-top: 12px;
  color: #656866;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.white-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #060606;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

body[data-view="app"] .overview-hero .red-btn {
  min-height: 42px;
  border-radius: 999px;
  box-shadow: none;
  font-size: 12px;
}

body[data-view="app"] .summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #181818;
  border-radius: 12px;
  background: #050505;
}

body[data-view="app"] .metric {
  min-height: 112px;
  padding: 18px;
  border: 0;
  border-right: 1px solid #181818;
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

body[data-view="app"] .metric:last-child {
  border-right: 0;
}

body[data-view="app"] .metric p {
  justify-content: space-between;
  margin: 0 0 34px;
  color: #737b78;
  font-size: 11px;
  letter-spacing: 0.12em;
}

body[data-view="app"] .metric p svg {
  order: 2;
  color: #707873;
}

body[data-view="app"] .metric strong {
  display: inline;
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

body[data-view="app"] .metric span {
  display: inline;
  margin-left: 8px;
  color: #656d69;
  font-size: 11px;
}

body[data-view="app"] .panel,
body[data-view="app"] .accordion,
body[data-view="app"] .storage-card,
body[data-view="app"] .instagram-card,
body[data-view="app"] .upload-box,
body[data-view="app"] .table,
body[data-view="app"] .post-tabs {
  border-color: #181818;
  background: #050505;
  color: #fff;
  box-shadow: none;
}

body[data-view="app"] .panel {
  border-radius: 12px;
}

body[data-view="app"] .panel h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.45;
}

body[data-view="app"] .analytics-panel {
  padding: 24px 18px 28px;
}

body[data-view="app"] .filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-filter {
  position: relative;
}

.date-filter-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 20;
  display: grid;
  width: 290px;
  gap: 12px;
  padding: 14px;
  border: 1px solid #242424;
  border-radius: 10px;
  background: #070707;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.date-filter-popover[hidden] {
  display: none;
}

.date-filter-popover label {
  display: grid;
  gap: 7px;
  color: #737b78;
  font-size: 11px;
  font-weight: 900;
}

body[data-view="app"] .date-filter-popover input {
  min-height: 40px;
  border: 1px solid #242424;
  border-radius: 7px;
  background: #020202;
  color: #fff;
}

.date-filter-popover > div {
  display: flex;
  justify-content: end;
  gap: 8px;
}

body[data-view="app"] .muted-btn,
body[data-view="app"] .help-pill,
body[data-view="app"] .blue-outline {
  border-color: #181818;
  background: #020202;
  color: #ebe9df;
}

body[data-view="app"] .primary-btn,
body[data-view="app"] .ig-btn {
  background: var(--red);
  color: #fff;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: 26px;
  border-top: 1px solid #181818;
}

.insight-grid article {
  min-height: 96px;
  padding: 16px;
  border-right: 1px solid #181818;
}

.insight-grid article:last-child {
  border-right: 0;
}

.insight-grid span {
  display: block;
  margin-bottom: 16px;
  color: #6d7472;
  font-size: 11px;
}

.insight-grid strong {
  color: #fff;
  font-size: 31px;
}

.analytics-note {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 15px;
}

.dashboard-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.56fr);
  align-items: start;
  gap: 18px;
}

.output-panel,
.daily-ranking-panel {
  min-width: 0;
}

.muted-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d8d6cf;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.ranking-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.ranking-totals article {
  min-height: 74px;
  padding: 14px;
  border: 1px solid #181818;
  border-radius: 9px;
  background: #030303;
}

.ranking-totals span,
.daily-ranking-row small {
  color: #737b78;
  font-size: 11px;
}

.ranking-totals strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.daily-ranking-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.ranking-title {
  margin-bottom: 14px;
}

.daily-ranking-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid #181818;
  border-radius: 9px;
  background: #030303;
}

.daily-ranking-row b {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(192, 132, 252, 0.34);
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.28), rgba(88, 201, 140, 0.1));
  color: #fff;
  font-size: 11px;
}

.daily-ranking-row b i {
  font-style: normal;
  font-weight: 900;
}

.daily-ranking-row b small {
  position: absolute;
  right: -4px;
  bottom: -3px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid #181818;
  border-radius: 999px;
  background: #050505;
  color: #d8b4fe;
  font-size: 8px;
  font-weight: 900;
}

.daily-ranking-row.is-placeholder {
  opacity: 0.56;
}

.daily-ranking-row.is-placeholder b {
  background: #111;
  color: #737b78;
  border-color: #242424;
}

.daily-ranking-row span,
.daily-ranking-row strong,
.daily-ranking-row small {
  display: block;
  min-width: 0;
}

.daily-ranking-row strong {
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-ranking-row small {
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-ranking-row em {
  color: #d8b4fe;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.daily-ranking-empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 152px;
  gap: 10px;
  border: 1px dashed #252525;
  border-radius: 10px;
  color: #737b78;
  text-align: center;
}

.daily-ranking-empty i {
  color: var(--red);
}

.daily-ranking-empty p {
  margin: 0;
  font-size: 12px;
}

body[data-view="app"] .empty-row,
body[data-view="app"] .account-operation,
body[data-view="app"] .empty,
body[data-view="app"] .stack article,
body[data-view="app"] .today-list article,
body[data-view="app"] .new-folder-card,
body[data-view="app"] .folder-card {
  border-color: #1d1d1d;
  background: #050505;
  color: #fff;
  box-shadow: none;
}

body[data-view="app"] .empty-row {
  margin-top: 18px;
  min-height: 150px;
  border-style: dashed;
}

body[data-view="app"] .empty p,
body[data-view="app"] .panel span,
body[data-view="app"] .drive-copy,
body[data-view="app"] .changelog p,
body[data-view="app"] .today-list p {
  color: #737b78;
}

body[data-view="app"] .page-head h2,
body[data-view="app"] .automation-head h2,
body[data-view="app"] .instagram-card h3,
body[data-view="app"] .folder-card strong,
body[data-view="app"] .storage-card b {
  color: #fff;
}

body[data-view="app"] .page-head p,
body[data-view="app"] .automation-head p,
body[data-view="app"] .instagram-card p {
  color: #737b78;
}

body[data-view="app"] .table-head {
  background: #070707;
  color: #757d7a;
}

body[data-view="app"] .table-row {
  border-top-color: #181818;
  color: #f2f0e8;
}

body[data-view="app"] input,
body[data-view="app"] select,
body[data-view="app"] textarea,
body[data-view="app"] .caption-form textarea,
body[data-view="app"] .hashtag-form input,
body[data-view="app"] .form-panel select,
body[data-view="app"] .search input {
  border-color: #202020;
  background: #020202;
  color: #fff;
}

body[data-view="app"] .blue-info {
  border-color: #2e1a44;
  background: #0b0312;
  color: #e9d5ff;
}

body[data-view="app"] .upload-box {
  border-style: dashed;
  text-align: center;
}

body[data-view="app"] .upload-box.is-over {
  border-color: var(--red);
  background: #0b0312;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 18px;
  align-items: start;
}

.calendar-card,
.daily-card {
  border: 1px solid #181818;
  border-radius: 12px;
  background: #050505;
  color: #fff;
}

.calendar-card {
  overflow: hidden;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 18px 18px 14px;
}

.month-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
}

.month-switcher h2 {
  min-width: 132px;
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.month-switcher button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #777f7c;
}

.month-switcher button:first-child {
  transform: rotate(90deg);
}

.month-switcher button:last-child {
  transform: rotate(-90deg);
}

.calendar-head > strong {
  color: #686f6d;
  font-size: 12px;
  font-weight: 800;
}

.calendar-head > strong span {
  color: var(--red);
  font-size: 20px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekday {
  min-height: 36px;
  padding: 12px 10px;
  border-top: 1px solid #181818;
  border-right: 1px solid #181818;
  color: #6f7775;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.calendar-weekday:nth-child(7) {
  border-right: 0;
}

.calendar-day {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 115px;
  padding: 10px;
  border: 0;
  border-top: 1px solid #181818;
  border-right: 1px solid #181818;
  background: #050505;
  color: #d8dfdd;
  text-align: left;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day:hover,
.calendar-day.is-selected {
  background: #09040f;
}

.calendar-day.is-selected::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(192, 132, 252, 0.55);
  pointer-events: none;
}

.calendar-day > span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #cfd6d3;
  font-size: 12px;
  font-weight: 900;
}

.calendar-day.is-muted > span {
  color: #5f6663;
}

.calendar-day.is-today > span {
  border-radius: 999px;
  background: var(--red);
  color: #000;
}

.calendar-day strong {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(192, 132, 252, 0.14);
  color: #e9d5ff;
  font-size: 11px;
  font-weight: 900;
}

.calendar-day small {
  color: #8f98a8;
  font-size: 11px;
  font-weight: 800;
}

.daily-card {
  min-height: 154px;
  padding: 22px 18px;
}

.daily-card h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.daily-card > span,
.daily-summary p {
  color: #d2d7d5;
  font-size: 13px;
  line-height: 1.45;
}

.daily-summary {
  margin-top: 34px;
}

.daily-summary article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #181818;
  border-radius: 8px;
  background: #020202;
}

.daily-summary strong {
  color: #fff;
  font-size: 14px;
}

.daily-summary span {
  color: #c084fc;
  font-size: 13px;
  font-weight: 900;
}

.publications-page [hidden] {
  display: none !important;
}

.publications-page {
  padding-top: 24px;
}

.publication-panel {
  width: min(1520px, 100%);
  margin: 0 auto;
  padding: 24px;
  border: 1px solid #181818;
  border-radius: 12px;
  background: #050505;
}

.publication-list-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.publication-list-head h2 {
  margin: 4px 0 6px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.publication-list-head span {
  color: #d2d7d5;
  font-size: 13px;
}

.publication-list-head span b {
  color: #fff;
}

.publication-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.publication-filter-row > i {
  color: #6f7775;
}

.publication-filter-row > i svg {
  width: 16px;
  height: 16px;
}

body[data-view="app"] .publications-page .post-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: #030303;
}

body[data-view="app"] .publications-page .post-tabs button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #737b78;
  font-size: 11px;
  font-weight: 800;
}

body[data-view="app"] .publications-page .post-tabs button.is-active {
  border-color: #2a2a2a;
  background: #090909;
  color: #fff;
}

.publication-results {
  min-height: 160px;
  border: 1px dashed #252525;
  border-radius: 10px;
  background: #050505;
}

.publications-empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 158px;
  padding: 26px;
  text-align: center;
}

.publications-empty h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.publications-empty p {
  margin: 0 0 22px;
  color: #737b78;
  font-size: 12px;
}

.publications-empty button,
.publish-now-btn {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  background: #f3f1e9;
  color: #050505;
  font-size: 12px;
  font-weight: 900;
}

.publication-table {
  display: grid;
}

.publication-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 0.8fr 0.6fr 0.8fr;
  gap: 14px;
  align-items: center;
  min-height: 68px;
  padding: 0 18px;
  border-bottom: 1px solid #181818;
}

.publication-row:last-child {
  border-bottom: 0;
}

.publication-row strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publication-row span {
  color: #737b78;
  font-size: 12px;
}

.composer-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 30vw);
  gap: 22px;
  align-items: start;
}

.composer-main {
  overflow: hidden;
  border: 1px solid #181818;
  border-radius: 12px;
  background: #050505;
}

.composer-title,
.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 28px;
}

.composer-title {
  border-bottom: 1px solid #181818;
}

.composer-title h2,
.composer-preview h2 {
  margin: 4px 0 6px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.composer-title span,
.composer-preview span,
.compose-step p {
  color: #737b78;
  font-size: 12px;
}

.composer-title strong {
  color: #737b78;
  font-size: 12px;
}

.composer-title strong b {
  color: var(--red);
  font-size: 25px;
}

.compose-step {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  border-bottom: 1px solid #181818;
}

.compose-step > aside {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 18px;
  padding-top: 24px;
  border-right: 1px solid #181818;
  color: var(--red);
}

.compose-step > aside span {
  color: #7b8580;
  font-size: 11px;
  font-weight: 900;
}

.compose-step > aside svg {
  width: 18px;
  height: 18px;
}

.compose-step > div {
  padding: 24px 26px;
}

.compose-step h3 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.source-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 18px 0 18px;
  padding: 4px;
  border: 1px solid #202020;
  border-radius: 8px;
  background: #030303;
}

.source-tabs button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  gap: 8px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #dce2df;
  font-size: 12px;
  font-weight: 900;
}

.source-tabs button.is-active {
  background: #090909;
}

.source-tabs b {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #202020;
  color: #a8b0ad;
  font-size: 10px;
}

body[data-view="app"] .publication-upload {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 104px;
  padding: 24px;
  border: 1px dashed #252525;
  border-radius: 10px;
  background: #050505;
  cursor: pointer;
}

body[data-view="app"] .publication-upload:hover,
body[data-view="app"] .publication-upload.is-over {
  border-color: rgba(192, 132, 252, 0.7);
  background: #08020e;
}

body[data-view="app"] .publication-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.publication-library-panel {
  min-height: 104px;
  padding: 10px;
  border: 1px dashed #252525;
  border-radius: 10px;
  background: #050505;
}

.publication-library-grid {
  display: grid;
  gap: 8px;
}

.publication-library-grid button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #202020;
  border-radius: 8px;
  background: #030303;
  color: #fff;
  text-align: left;
}

.publication-library-grid button.is-active {
  border-color: var(--red);
  background: rgba(192, 132, 252, 0.16);
}

.publication-library-grid i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(192, 132, 252, 0.1);
  color: var(--red);
}

.publication-library-grid i.has-preview {
  background: #000;
}

.publication-library-grid i img,
.publication-library-grid i video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.publication-library-grid i span {
  display: none;
}

.publication-library-grid strong,
.publication-library-grid small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publication-library-grid strong {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.publication-library-grid small {
  margin-top: 3px;
  color: #737b78;
  font-size: 11px;
}

.publication-library-grid b {
  width: 16px;
  height: 16px;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
}

.publication-library-grid .is-active b {
  border-color: var(--red);
  background: var(--red);
  box-shadow: inset 0 0 0 4px #050505;
}

.publication-library-empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 118px;
  text-align: center;
}

.publication-library-empty h4 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.publication-library-empty p {
  margin: 0 0 14px;
  color: #737b78;
  font-size: 12px;
}

.publication-library-empty button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #242424;
  border-radius: 7px;
  background: #f3f1e9;
  color: #050505;
  font-size: 12px;
  font-weight: 900;
}

.accounts-page,
.settings-page {
  padding-top: 28px;
}

.accounts-panel {
  width: min(1520px, 100%);
  margin: 0 auto;
  padding: 24px;
  border: 1px solid #181818;
  border-radius: 12px;
  background: #050505;
}

.accounts-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.accounts-head h2,
.settings-main h2,
.settings-side h2 {
  margin: 4px 0 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.accounts-head span,
.settings-main > p,
.settings-side p {
  color: #d2d7d5;
  font-size: 13px;
  line-height: 1.5;
}

.connect-account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  gap: 8px;
  border: 0;
  border-radius: 7px;
  background: #f3f1e9;
  color: #050505;
  font-size: 12px;
  font-weight: 900;
}

.connection-link-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(420px, 1fr);
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #181818;
  border-radius: 10px;
  background: #030303;
}

.connection-link-panel h3 {
  margin: 4px 0 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.connection-link-panel span {
  color: #737b78;
  font-size: 12px;
  line-height: 1.45;
}

.connection-link-panel span.is-ready {
  color: #58c98c;
}

.connection-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 8px;
}

body[data-view="app"] .connection-link-row input {
  min-height: 38px;
  border: 1px solid #242424;
  border-radius: 7px;
  background: #020202;
  color: #fff;
  font-size: 12px;
}

.accounts-results {
  min-height: 160px;
  border: 1px dashed #252525;
  border-radius: 10px;
}

.accounts-empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 158px;
  text-align: center;
}

.accounts-empty h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.accounts-empty p {
  margin: 0;
  color: #737b78;
  font-size: 12px;
}

.accounts-list {
  display: grid;
}

.account-card-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 16px;
  border-bottom: 1px solid #181818;
}

.account-card-row:last-child {
  border-bottom: 0;
}

.account-card-row i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--red);
  background: rgba(192, 132, 252, 0.12);
}

.account-card-row strong,
.account-card-row small {
  display: block;
}

.account-card-row strong {
  color: #fff;
  font-size: 13px;
}

.account-card-row small {
  margin-top: 4px;
  color: #737b78;
  font-size: 11px;
}

.account-card-row b {
  color: #58c98c;
  font-size: 11px;
  font-weight: 900;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 70px;
  width: min(1520px, 100%);
  margin: 0 auto;
}

.settings-main {
  min-width: 0;
}

.profile-edit {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid #181818;
}

body[data-view="app"] .profile-photo-picker {
  position: relative;
  display: block;
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  cursor: pointer;
}

.settings-avatar,
.profile-mini .avatar {
  background-size: cover;
  background-position: center;
}

.settings-avatar {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 6px solid rgba(192, 132, 252, 0.24);
  border-radius: 999px;
  background-color: #121212;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.profile-photo-picker > i {
  position: absolute;
  right: -4px;
  bottom: 5px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--red);
  color: #050505;
}

.profile-photo-picker > i svg {
  width: 14px;
  height: 14px;
}

.profile-photo-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.profile-edit strong,
.profile-edit span {
  display: block;
}

.profile-edit strong {
  margin: 8px 0;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.profile-edit span {
  color: #737b78;
  font-size: 12px;
}

body[data-view="app"] .profile-photo-picker .settings-avatar {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.settings-field {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  color: #d4dbd8;
  font-size: 11px;
  font-weight: 900;
}

body[data-view="app"] .settings-field input {
  min-height: 48px;
  border-radius: 7px;
}

body[data-view="app"] .settings-check {
  display: flex;
  align-items: start;
  gap: 12px;
  margin-top: 22px;
}

.settings-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--red);
}

.settings-check strong,
.settings-check small {
  display: block;
}

.settings-check strong {
  color: #fff;
  font-size: 12px;
}

.settings-check small {
  margin-top: 5px;
  color: #737b78;
  font-size: 11px;
}

.settings-save-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding: 18px 0 24px;
  border-top: 1px solid #181818;
  border-bottom: 1px solid #181818;
}

.settings-save-row span {
  color: #737b78;
  font-size: 11px;
}

.settings-info-list article {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  border-bottom: 1px solid #181818;
}

.settings-info-list i {
  color: #777f7c;
}

.settings-info-list span,
.settings-info-list small {
  display: block;
}

.settings-info-list span {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.settings-info-list small {
  margin-top: 5px;
  color: #737b78;
  font-size: 11px;
  font-weight: 700;
}

.settings-info-list strong {
  color: #fff;
  font-size: 12px;
}

.settings-info-list .operational {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #58c98c;
}

.settings-info-list .operational svg {
  width: 14px;
  height: 14px;
}

.settings-side {
  min-height: 340px;
  padding: 18px 0 0 44px;
  border-left: 1px solid #181818;
}

.settings-side > i {
  display: block;
  margin-bottom: 46px;
  color: var(--red);
}

.settings-side > i svg {
  width: 24px;
  height: 24px;
}

.settings-side button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.meta-config-panel {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid #181818;
}

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

.meta-config-head h2 {
  margin: 4px 0 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.meta-config-head p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: #d2d7d5;
  font-size: 13px;
  line-height: 1.5;
}

.meta-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #2c2525;
  border-radius: 999px;
  background: rgba(255, 99, 99, 0.08);
  color: #ff8f8f;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 900;
}

.meta-status.is-ready {
  border-color: rgba(88, 201, 140, 0.32);
  background: rgba(88, 201, 140, 0.1);
  color: #58c98c;
}

.meta-status svg {
  width: 14px;
  height: 14px;
}

.meta-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.meta-redirect-field {
  grid-column: 1 / -1;
}

.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 10px;
}

.copy-field button {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid #252525;
  border-radius: 7px;
  background: #090909;
  color: #fff;
}

.copy-field button svg {
  width: 18px;
  height: 18px;
}

.meta-feature-block {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #181818;
  border-radius: 10px;
  background: #050505;
}

.meta-feature-block h3 {
  margin: 4px 0 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.meta-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.meta-feature-grid label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid #202020;
  border-radius: 8px;
  background: #090909;
}

.meta-feature-grid input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--red);
}

.meta-feature-grid strong,
.meta-feature-grid small {
  display: block;
}

.meta-feature-grid strong {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.meta-feature-grid small {
  margin-top: 5px;
  color: #737b78;
  font-size: 11px;
  line-height: 1.4;
}

.meta-scope-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  color: #737b78;
  font-size: 11px;
}

.meta-scope-row strong {
  color: #d4dbd8;
}

.meta-scope-row a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  white-space: nowrap;
  font-weight: 900;
}

.meta-scope-row svg {
  width: 14px;
  height: 14px;
}

.meta-actions {
  margin-top: 22px;
  padding-bottom: 0;
  border-bottom: 0;
}

.meta-actions > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.field-label {
  display: block;
  margin: 18px 0 8px;
  color: #d4dbd8;
  font-size: 11px;
  font-weight: 900;
}

.connect-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px dashed #252525;
  border-radius: 8px;
  background: #050505;
  color: #fff;
  text-align: left;
}

.connect-row i {
  color: var(--red);
}

.connect-row strong,
.connect-row small {
  grid-column: 2;
}

.connect-row small {
  color: #737b78;
  font-size: 11px;
}

.compose-step h4 {
  margin: 12px 0 0;
  color: #fff;
  font-size: 14px;
}

.format-choice-grid,
.publish-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

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

.format-choice-grid button,
.publish-choice-grid button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  align-items: center;
  min-height: 58px;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid #202020;
  border-radius: 8px;
  background: #050505;
  color: #fff;
  text-align: left;
}

.format-choice-grid button.is-active,
.publish-choice-grid button.is-active {
  border-color: var(--red);
  background: rgba(192, 132, 252, 0.16);
}

.format-choice-grid i,
.publish-choice-grid i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #080808;
  color: var(--red);
}

.format-choice-grid small,
.publish-choice-grid small {
  display: block;
  margin-top: 3px;
  color: #737b78;
  font-size: 11px;
}

.format-choice-grid b,
.publish-choice-grid b {
  width: 18px;
  height: 18px;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
}

.format-choice-grid .is-active b,
.publish-choice-grid .is-active b {
  border-color: var(--red);
  background: var(--red);
  box-shadow: inset 0 0 0 5px #050505;
}

.caption-compose {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: #d4dbd8;
  font-size: 11px;
  font-weight: 900;
}

body[data-view="app"] .caption-compose textarea {
  min-height: 116px;
  resize: vertical;
}

.caption-compose small {
  justify-self: end;
  margin-top: -28px;
  padding-right: 10px;
  color: #737b78;
  font-size: 10px;
}

.composer-footer {
  border-bottom: 0;
}

.composer-footer > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-btn {
  border: 0;
  background: transparent;
  color: #d7e0dc;
  font-size: 13px;
  font-weight: 900;
}

.composer-preview {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.phone-frame {
  position: relative;
  overflow: hidden;
  width: min(100%, 390px);
  margin: 0 auto;
  border: 1px solid #252525;
  border-radius: 16px;
  background: #030303;
}

.phone-frame header {
  display: flex;
  align-items: center;
  min-height: 34px;
  gap: 12px;
  padding: 0 16px;
}

.phone-frame header span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--red);
}

.phone-frame header small {
  flex: 1;
  color: #626a67;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.phone-frame header i {
  width: 24px;
  height: 1px;
  background: #252525;
}

.phone-frame > b {
  position: absolute;
  right: 26px;
  margin-top: 12px;
  padding: 5px 8px;
  border: 1px solid #4a4a4a;
  border-radius: 5px;
  color: #fff;
  font-size: 9px;
  text-transform: uppercase;
}

.preview-empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 0;
  aspect-ratio: 9 / 16;
  gap: 12px;
  color: #777;
}

.preview-empty svg {
  width: 30px;
  height: 30px;
}

.preview-media {
  display: grid;
  aspect-ratio: 9 / 16;
  min-height: 0;
  background: #000;
}

.publication-preview-media {
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
}

.phone-frame[data-format="feed"] .preview-empty,
.phone-frame[data-format="feed"] .preview-media,
.phone-frame[data-format="feed"] .publication-preview-media {
  aspect-ratio: 1 / 1;
}

video.publication-preview-media {
  cursor: pointer;
}

.phone-frame footer {
  min-height: 86px;
  padding: 16px;
  background: #080808;
}

.phone-frame footer strong,
.phone-frame footer small,
.phone-frame footer p {
  display: block;
  margin: 0;
}

.phone-frame footer strong {
  color: #fff;
  font-size: 12px;
}

.phone-frame footer small {
  margin-top: 3px;
  color: #737b78;
  font-size: 10px;
}

.phone-frame footer p {
  margin-top: 18px;
  color: #b7bfbb;
  font-size: 12px;
}

.preview-summary {
  overflow: hidden;
  border: 1px solid #252525;
  border-radius: 10px;
  background: #050505;
}

.preview-summary article {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  align-items: center;
  min-height: 52px;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid #181818;
}

.preview-summary article:last-child {
  border-bottom: 0;
}

.preview-summary i {
  color: #7a827f;
}

.preview-summary span {
  color: #777f7c;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-summary strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.preview-summary b {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #58c98c;
}

.library-page {
  padding-top: 26px;
}

body[data-view="app"] .library-dropzone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 104px;
  margin: 0 auto 18px;
  padding: 24px 28px;
  border: 1px dashed #252525;
  border-radius: 12px;
  background: #050505;
  color: #fff;
  cursor: pointer;
}

body[data-view="app"] .library-dropzone:hover,
body[data-view="app"] .library-dropzone.is-over {
  border-color: rgba(192, 132, 252, 0.7);
  background: #08020e;
}

body[data-view="app"] .library-drop-copy {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

body[data-view="app"] .library-drop-copy span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

body[data-view="app"] .library-drop-copy strong {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

body[data-view="app"] .library-drop-copy small {
  color: #737b78;
  font-size: 12px;
  font-weight: 700;
}

body[data-view="app"] .library-upload-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid #202020;
  border-radius: 999px;
  color: var(--red);
  background: #020202;
}

body[data-view="app"] .library-upload-icon svg {
  width: 18px;
  height: 18px;
}

body[data-view="app"] .library-browse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  gap: 8px;
  flex: 0 0 auto;
  border: 1px solid #242424;
  border-radius: 7px;
  background: #080808;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

body[data-view="app"] .library-browse svg {
  width: 15px;
  height: 15px;
}

body[data-view="app"] .library-dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.library-empty {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 34px;
  border: 1px dashed #252525;
  border-radius: 12px;
  background: #050505;
  text-align: center;
}

.library-empty h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.library-empty p {
  margin: 0;
  color: #737b78;
  font-size: 12px;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.library-media-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #1d1d1d;
  border-radius: 10px;
  background: #050505;
}

.library-media-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid #1d1d1d;
  color: #e9d5ff;
  background: #080808;
}

.library-media-preview > i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(192, 132, 252, 0.12);
}

.library-media-preview svg {
  width: 19px;
  height: 19px;
}

.library-media-preview img,
.library-media-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.library-media-preview span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
}

.library-media-preview span svg {
  width: 15px;
  height: 15px;
}

.library-delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  opacity: 0;
  transition: opacity 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.library-media-card:hover .library-delete-btn,
.library-delete-btn:focus-visible {
  opacity: 1;
}

.library-delete-btn:hover {
  border-color: rgba(255, 99, 99, 0.55);
  background: rgba(255, 99, 99, 0.18);
  color: #ffb1b1;
}

.library-delete-btn svg {
  width: 16px;
  height: 16px;
}

.library-media-card div {
  min-width: 0;
}

.library-media-card > div:last-child {
  padding: 14px;
}

.library-media-card strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-media-card p {
  margin: 5px 0 0;
  color: #737b78;
  font-size: 12px;
}

body[data-view="app"] {
  --sidebar: 232px;
}

body[data-view="app"] .sidebar {
  display: flex;
  flex-direction: column;
  padding: 12px 8px 8px;
  border-right: 1px solid #1a1c2e;
  background: #090b1c;
  color: #a6abc4;
  overflow: hidden;
}

body[data-view="app"] .app-nav {
  display: block;
  flex: 1;
  padding: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}

.sidebar-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 8px 10px;
  align-items: center;
  min-height: 58px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #282942;
  background: #101125;
}

.sidebar-status div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.sidebar-status div span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #aeb4cf;
}

.sidebar-status strong {
  color: #f4f1ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sidebar-status button {
  position: relative;
  width: 36px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: #30324c;
}

.sidebar-status button::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #090b1c;
}

.sidebar-status small {
  grid-column: 1 / -1;
  color: #99a0bd;
  font-size: 12px;
  letter-spacing: 0;
}

body[data-view="app"] .nav p {
  margin: 15px 8px 6px;
  color: #8e94ae;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

body[data-view="app"] .nav a {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  gap: 8px;
  border-radius: 0;
  color: #9aa0b8;
  text-decoration: none;
}

body[data-view="app"] .nav a:hover {
  background: #12142a;
  color: #fff;
}

body[data-view="app"] .nav a.is-active {
  background: #191a3a;
  color: #fff;
  box-shadow: inset 3px 0 0 var(--red);
}

body[data-view="app"] .nav a i,
body[data-view="app"] .nav a svg {
  width: 16px;
  height: 16px;
}

body[data-view="app"] .nav strong {
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  width: 100%;
  gap: 9px;
  margin-top: 8px;
  border: 1px solid #2a2c43;
  background: #090b1c;
  color: #f4f1ff;
  font-size: 12px;
  font-weight: 800;
}

.sidebar-logout:hover {
  border-color: var(--red);
}

.sidebar-logout svg {
  width: 16px;
  height: 16px;
}

.utility-panel {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 26px;
  border: 1px solid #181818;
  border-radius: 12px;
  background: #050505;
}

.utility-panel h2 {
  margin: 4px 0 8px;
  color: #fff;
  font-size: 22px;
}

.utility-panel span {
  display: block;
  color: #737b78;
  font-size: 13px;
}

.utility-panel .light-btn {
  width: fit-content;
  margin-top: 22px;
}

.utility-empty {
  display: grid;
  place-items: center;
  min-height: 150px;
  margin-top: 22px;
  border: 1px dashed #252525;
  border-radius: 10px;
  color: #737b78;
  font-size: 13px;
}

@media (max-width: 1500px) {
  .composer-board {
    grid-template-columns: 1fr;
  }

  .composer-preview {
    position: static;
  }

}

@media (max-width: 1180px) {
  body[data-view="app"] .page {
    padding-inline: 28px;
  }

  body[data-view="app"] .summary-grid,
  .dashboard-lower-grid,
  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-view="app"] .metric:nth-child(2n),
  .insight-grid article:nth-child(2n) {
    border-right: 0;
  }

  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .composer-board {
    grid-template-columns: 1fr;
  }

  .composer-preview {
    position: static;
  }

  .preview-empty {
    min-height: 320px;
  }

  .settings-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .settings-side {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid #181818;
  }
}

@media (max-width: 820px) {
  body[data-view="app"] .page {
    padding: 18px 14px 54px;
  }

  body[data-view="app"] .topbar {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: auto;
    padding: 12px 14px;
  }

  body[data-view="app"] .top-actions {
    grid-column: 1 / -1;
    justify-content: start;
    overflow-x: auto;
  }

  .overview-hero {
    display: grid;
    min-height: 330px;
    padding: 28px 20px;
  }

  .hero-buttons,
  .filter-row {
    display: grid;
    white-space: normal;
  }

  .calendar-head {
    display: grid;
  }

  .calendar-grid {
    overflow-x: auto;
  }

  .calendar-weekday,
  .calendar-day {
    min-width: 112px;
  }

  .publication-list-head,
  .publication-filter-row,
  .accounts-head,
  .connection-link-panel,
  .connection-link-row,
  .captions-toolbar,
  .caption-distributor,
  .meta-config-head,
  .meta-scope-row,
  .settings-save-row,
  .composer-title,
  .composer-footer {
    display: grid;
  }

  .meta-form-grid,
  .meta-feature-grid {
    grid-template-columns: 1fr;
  }

  .meta-actions > div {
    display: grid;
  }

  .publication-filter-row {
    justify-items: start;
  }

  .captions-toolbar > div:last-child,
  .caption-distribution-actions {
    display: grid;
    justify-items: start;
  }

  body[data-view="app"] .publications-page .post-tabs,
  .composer-footer > div {
    max-width: 100%;
    overflow-x: auto;
  }

  .compose-step {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .compose-step > div {
    padding: 22px 16px;
  }

  body[data-view="app"] .publication-upload,
  .publication-row {
    display: grid;
  }

  .format-choice-grid,
  .publish-choice-grid {
    grid-template-columns: 1fr;
  }

  .settings-info-list article {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .settings-info-list strong {
    grid-column: 2;
  }

  body[data-view="app"] .library-dropzone {
    display: grid;
    padding: 22px 18px;
  }

  body[data-view="app"] .library-browse {
    width: fit-content;
  }
}

@media (max-width: 520px) {
  body[data-view="app"] .summary-grid,
  .dashboard-lower-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  body[data-view="app"] .metric,
  .insight-grid article {
    border-right: 0;
    border-bottom: 1px solid #181818;
  }

  .overview-hero h2 {
    font-size: 37px;
  }

  .system-status {
    margin-right: 0;
  }
}

/* Sidebar visual system: scoped so the dashboard content and its layout stay unchanged. */
body[data-view="app"] .sidebar {
  background:
    radial-gradient(circle at 0 0, rgba(139, 92, 246, 0.08), transparent 34%),
    linear-gradient(180deg, #09090b 0%, #050505 46%, #070708 100%);
  border-right: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: 1px 0 0 rgba(168, 85, 247, 0.06), 8px 0 24px rgba(88, 28, 135, 0.08);
}

body[data-view="app"] .app-nav {
  scrollbar-color: rgba(139, 92, 246, 0.34) transparent;
}

body[data-view="app"] .sidebar-status {
  margin: 0 2px 18px;
  padding: 13px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 9px;
  background: linear-gradient(100deg, rgba(139, 92, 246, 0.09), rgba(139, 92, 246, 0.02) 68%, rgba(0, 0, 0, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

body[data-view="app"] .sidebar-status div span {
  background: #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.46);
}

body[data-view="app"] .sidebar-status strong {
  color: #eeeaf8;
  letter-spacing: 0.17em;
}

body[data-view="app"] .sidebar-status small {
  color: #777481;
}

body[data-view="app"] .sidebar-status button {
  border: 1px solid rgba(139, 92, 246, 0.26);
  background: #0b0a0f;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.7);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body[data-view="app"] .sidebar-status button::after {
  left: 3px;
  right: auto;
  background: #676270;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  transition: left 180ms ease, right 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

body[data-view="app"] .sidebar-status button.is-active,
body[data-view="app"] .sidebar-status button[aria-pressed="true"] {
  border-color: rgba(168, 85, 247, 0.72);
  background: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.16), inset 0 1px 3px rgba(0, 0, 0, 0.45);
}

body[data-view="app"] .sidebar-status button.is-active::after,
body[data-view="app"] .sidebar-status button[aria-pressed="true"]::after {
  left: auto;
  right: 3px;
  background: #f5efff;
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.7);
}

body[data-view="app"] .nav a.sidebar-new-publication {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  margin: 0 2px 18px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: #f2f0e8;
  color: #070707;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

body[data-view="app"] .nav a.sidebar-new-publication:hover {
  border-color: rgba(168, 85, 247, 0.72);
  background: #a855f7;
  color: #fff;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.18);
}

body[data-view="app"] .nav a.sidebar-new-publication::before {
  display: none;
}

body[data-view="app"] .nav a.sidebar-new-publication strong {
  min-width: max-content;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
}

body[data-view="app"] .nav a.sidebar-new-publication i,
body[data-view="app"] .nav a.sidebar-new-publication svg {
  width: 16px;
  height: 16px;
  color: inherit;
}

body[data-view="app"] .nav p {
  margin: 23px 12px 9px;
  color: rgba(196, 181, 253, 0.7);
  font-size: 10px;
  letter-spacing: 0.23em;
}

body[data-view="app"] .nav > section + p {
  margin-top: 12px;
}

body[data-view="app"] .nav a {
  min-height: 39px;
  margin: 1px 0;
  padding: 0 12px;
  border-radius: 7px;
  color: #8d8d9a;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

body[data-view="app"] .nav a::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.7);
  opacity: 0;
  transition: opacity 180ms ease;
}

body[data-view="app"] .nav a:hover {
  background: rgba(139, 92, 246, 0.08);
  color: #f5f3fa;
}

body[data-view="app"] .nav a.is-active {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.14), rgba(139, 92, 246, 0.03));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.08);
}

body[data-view="app"] .nav a.is-active::before {
  opacity: 1;
}

body[data-view="app"] .nav a i,
body[data-view="app"] .nav a svg {
  width: 16px;
  height: 16px;
  color: #70717d;
  transition: color 180ms ease;
}

body[data-view="app"] .nav a:hover i,
body[data-view="app"] .nav a:hover svg,
body[data-view="app"] .nav a.is-active i,
body[data-view="app"] .nav a.is-active svg {
  color: #fff;
}

body[data-view="app"] .nav strong {
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

body[data-view="app"] .sidebar-logout {
  align-self: center;
  width: calc(100% - 8px);
  min-height: 40px;
  margin: 12px 4px 4px;
  padding: 0 12px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.2);
  color: #a2a0ab;
  font-size: 12px;
  font-weight: 700;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

body[data-view="app"] .sidebar-logout:hover {
  border-color: rgba(168, 85, 247, 0.46);
  background: rgba(139, 92, 246, 0.08);
  color: #fff;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.08);
}

body[data-view="app"] .sidebar-logout svg {
  width: 16px;
  height: 16px;
  color: inherit;
}

body[data-view="app"] .profile-mini {
  grid-template-columns: 30px minmax(0, 1fr);
  min-height: 48px;
  margin: 10px 6px 0;
  padding: 0 6px;
  border-top: 1px solid rgba(139, 92, 246, 0.12);
}

body[data-view="app"] .profile-mini .avatar {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(168, 85, 247, 0.36);
  border-radius: 50%;
  background-color: #17131f;
  background-size: cover;
  background-position: center;
  color: #f5efff;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.12);
}

body[data-view="app"] .profile-mini strong {
  overflow: hidden;
  color: #e8e5ef;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-view="app"] .cover-source-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin: 18px 0;
  padding: 4px;
  border: 1px solid #202020;
  border-radius: 8px;
  background: #030303;
}

body[data-view="app"] .cover-source-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #a8b0ad;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

body[data-view="app"] .cover-source-tabs button.is-active {
  background: #0d0b11;
  color: #fff;
}

body[data-view="app"] .cover-source-tabs button svg {
  width: 16px;
  height: 16px;
  color: var(--red);
}

body[data-view="app"] .cover-source-tabs b {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #202020;
  color: #a8b0ad;
  font-size: 10px;
}

body[data-view="app"] .cover-upload {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 92px;
  padding: 20px 24px;
  border: 1px dashed #252525;
  border-radius: 10px;
  background: #050505;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}

body[data-view="app"] .cover-upload:hover,
body[data-view="app"] .cover-upload.is-over {
  border-color: rgba(192, 132, 252, 0.7);
  background: #08020e;
}

body[data-view="app"] .cover-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

body[data-view="app"] .cover-upload-copy {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

body[data-view="app"] .cover-upload-copy > svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--red);
}

body[data-view="app"] .cover-upload-copy span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body[data-view="app"] .cover-upload-copy strong,
body[data-view="app"] .cover-upload-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-view="app"] .cover-upload-copy strong {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

body[data-view="app"] .cover-upload-copy small {
  color: #737b78;
  font-size: 11px;
}

body[data-view="app"] .cover-library-grid .cover-library-thumb {
  width: 38px;
  height: 52px;
  border-radius: 6px;
}

body[data-view="app"] .cover-library-grid .cover-library-thumb img {
  object-fit: cover;
}

body[data-view="app"] .cover-selection {
  margin-top: 10px;
}

body[data-view="app"] .cover-selection-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(192, 132, 252, 0.36);
  border-radius: 8px;
  background: rgba(192, 132, 252, 0.08);
}

body[data-view="app"] .cover-selection-thumb {
  display: grid;
  place-items: center;
  width: 48px;
  height: 62px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(192, 132, 252, 0.12);
  color: var(--red);
}

body[data-view="app"] .cover-selection-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-view="app"] .cover-selection-card > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body[data-view="app"] .cover-selection-card strong,
body[data-view="app"] .cover-selection-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-view="app"] .cover-selection-card strong {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

body[data-view="app"] .cover-selection-card small {
  color: #a8a0b4;
  font-size: 11px;
}

body[data-view="app"] .cover-remove {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: transparent;
  color: #a8a0b4;
}

body[data-view="app"] .cover-remove:hover {
  border-color: rgba(239, 68, 68, 0.46);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

body[data-view="app"] .cover-remove svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 620px) {
  body[data-view="app"] .cover-upload {
    display: grid;
    justify-content: stretch;
    gap: 14px;
  }

  body[data-view="app"] .cover-upload .library-browse {
    width: fit-content;
  }
}
