@font-face {
  font-family: Golos;
  src: url("/static/fonts/GolosText.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #f5f6fa;
  --paper: #fff;
  --ink: #171c2b;
  --muted: #7a8296;
  --line: #e7eaf1;
  --blue: #345fe7;
  --pale: #eef2ff;
  --green: #287b62;
  --red: #ad3b46;
  --shadow: 0 12px 40px #25345307;
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Golos, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.55;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #91a9ff;
  outline-offset: 3px;
}
input,
textarea,
select {
  border: 1px solid #dce1ed;
  border-radius: 10px;
  padding: 11px 13px;
  background: #fff;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
textarea {
  resize: vertical;
  line-height: 1.65;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--blue);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1.1px;
  line-height: 1.25;
  font-weight: 650;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.45px;
  font-weight: 600;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
small,
.muted {
  color: var(--muted);
}
svg {
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: middle;
}
.initial-loading {
  margin: 20vh auto;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
}
.initial-loading span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  margin-top: 16px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  background: white;
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 19px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
}
.brand-name {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 1.8px;
  line-height: 1;
}
.brand small {
  font-size: 8px;
  letter-spacing: 2px;
  display: block;
  margin-top: 7px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #a0a6b5;
  padding: 39px 14px 10px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav button {
  border: 0;
  background: none;
  color: #7b8497;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  border-radius: 10px;
  padding: 13px 14px;
  text-align: left;
  font-weight: 500;
  font-size: 13px;
}
.nav button.active {
  background: var(--pale);
  color: var(--blue);
}
.nav button:hover {
  background: #f5f7fc;
}
.nav .count {
  margin-left: auto;
  font-size: 11px;
  background: #fff;
  border-radius: 6px;
  padding: 0 6px;
}
.side-note {
  margin-top: auto;
  background: #f7f8fc;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px;
  font-size: 11px;
  color: var(--muted);
}
.side-note strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  margin-bottom: 5px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 21px 6px 0;
  font-size: 12px;
}
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  background: #e8ecfb;
  color: var(--blue);
  font-weight: 600;
}
.profile small {
  display: block;
  font-size: 10px;
}
.profile .icon-btn {
  margin-left: auto;
}
.workspace {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 79px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 39px;
  background: #ffffffb8;
  gap: 12px;
}
.crumb {
  font-size: 12px;
  color: var(--muted);
}
.crumb b {
  color: #555e72;
  font-weight: 500;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.mode {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #636d83;
}
.dot {
  width: 6px;
  height: 6px;
  background: #e4ad4b;
  border-radius: 50%;
  display: inline-block;
}
.dot.live {
  background: #449477;
}
.content {
  padding: 32px 38px 50px;
  max-width: 1540px;
  margin: auto;
}
.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.page-title p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 9px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.9px;
  text-transform: uppercase;
  font-weight: 500;
}
.btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 41px;
  padding: 10px 16px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  font-size: 12px;
  white-space: normal;
  text-align: center;
}
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.btn.primary:hover {
  background: #2850d0;
}
.btn.dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.btn.small {
  min-height: 32px;
  padding: 7px 11px;
  font-size: 11px;
}
.btn.danger {
  color: var(--red);
}
.icon-btn {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 7px;
  display: inline-grid;
  place-items: center;
}
.icon-btn:hover {
  background: var(--pale);
  color: var(--blue);
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.hero {
  background: #172342;
  border-radius: var(--radius);
  padding: 31px 34px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
  min-height: 246px;
  overflow: hidden;
  color: white;
  position: relative;
}
.hero .eyebrow {
  color: #a5b7ef;
}
.hero h2 {
  font-size: 28px;
  letter-spacing: -1px;
  line-height: 1.27;
  margin: 13px 0;
}
.hero p {
  font-size: 12px;
  max-width: 350px;
  color: #b8c5e3;
}
.hero .btn {
  margin-top: 21px;
  background: #fff;
  color: #22396a;
  border: 0;
}
.hero-art {
  position: relative;
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.mini-slide {
  border-radius: 6px;
  width: 146px;
  height: 183px;
  padding: 32px 16px 16px;
  color: #161c30;
  font-size: 12px;
  position: absolute;
  box-shadow: 0 18px 35px #0002;
  background:
    repeating-linear-gradient(0deg, transparent 0 7px, #bcc5df15 7px 8px),
    repeating-linear-gradient(90deg, #e4e8f7 0 7px, #dce3f3 7px 8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.5;
}
.mini-slide strong {
  font-size: 13px;
  line-height: 1.3;
}
.mini-slide em {
  font-style: normal;
  color: #365ba9;
}
.mini-slide small {
  margin-top: 13px;
  color: inherit;
  font-size: 8px;
}
.mini-slide.first {
  transform: rotate(-11deg) translate(-96px, -7px);
}
.mini-slide.second {
  transform: rotate(5deg) translate(37px, 5px);
  background: #111725;
  color: #e2e8fa;
}
.mini-slide.third {
  transform: rotate(14deg) translate(151px, 18px);
  width: 104px;
  height: 144px;
  opacity: 0.35;
}
.mini-slide .circle-arrow {
  position: absolute;
  bottom: 12px;
  right: 12px;
  border: 1px solid #5475ce;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  text-align: center;
  color: #5475ce;
  font-size: 13px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 29px 0 15px;
}
.section-head p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 21px 0;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.stat-icon {
  color: #6d82c7;
  background: #f4f6fd;
  border-radius: 9px;
  padding: 7px;
  display: grid;
  place-items: center;
}
.stat strong {
  font-size: 31px;
  letter-spacing: -1px;
  display: block;
  margin: 10px 0 2px;
  font-weight: 600;
}
.stat small {
  font-size: 10px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad {
  padding: 23px;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
}
.steps {
  display: flex;
  gap: 14px;
  margin: 23px 0;
}
.step-number {
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--blue);
  flex: none;
}
.steps p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.empty {
  padding: 38px 25px;
  text-align: center;
}
.empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--pale);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
}
.empty p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px auto 19px;
  max-width: 320px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9199ab;
  font-weight: 500;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 14px 20px;
  border-bottom: 1px solid #f0f2f7;
}
tr:last-child td {
  border-bottom: 0;
}
.table-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}
.thumb {
  height: 51px;
  width: 41px;
  object-fit: cover;
  border-radius: 5px;
  background: var(--pale);
}
.table-name strong {
  font-weight: 500;
  display: block;
  max-width: 320px;
}
.table-name small {
  font-size: 10px;
  display: block;
  margin-top: 4px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  background: #f2f3f6;
  color: #777f91;
}
.status.approved,
.status.published,
.status.sent,
.status.completed {
  background: #eaf5ef;
  color: #2c7e5e;
}
.status.demo_published {
  background: #edf0ff;
  color: #5b67a8;
}
.status.queued,
.status.running {
  background: #fff4df;
  color: #9e792c;
}
.status.attention,
.status.failed,
.status.needs_attention {
  background: #fdeef0;
  color: #a64757;
}
.row-link {
  background: none;
  border: 0;
  text-align: left;
  padding: 0;
  color: var(--ink);
  font: inherit;
}
.row-link:hover {
  color: var(--blue);
}
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.search {
  max-width: 370px;
}
.filter-bar select {
  max-width: 190px;
}
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 325px;
  gap: 22px;
}
.field {
  display: block;
  margin-bottom: 19px;
}
.field > span,
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 7px;
}
.field small {
  display: block;
  font-size: 10px;
  line-height: 1.6;
  margin-top: 6px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.source-input {
  min-height: 330px;
  font-size: 13px;
}
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f2f4f9;
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  margin: 20px 0;
}
.segmented label {
  cursor: pointer;
  text-align: center;
  font-size: 11px;
  padding: 9px 3px;
  border-radius: 7px;
  color: var(--muted);
}
.segmented label:has(input:checked) {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 2px 7px #27345109;
}
.segmented input {
  position: absolute;
  opacity: 0;
  width: 1px;
}
.segmented label:focus-within {
  outline: 2px solid #91a9ff;
}
.note {
  padding: 13px 15px;
  background: #f5f7fc;
  border: 1px solid #e9edf7;
  border-radius: 10px;
  font-size: 11px;
  color: #738099;
  line-height: 1.65;
}
.note.warn {
  background: #fff9ed;
  border-color: #f6ebd2;
  color: #927642;
}
.note.blue {
  background: #eff3ff;
  border-color: #e3eafd;
  color: #5971ae;
}
.note + .note {
  margin-top: 12px;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.preview-panel {
  position: sticky;
  top: 20px;
}
.preview-frame {
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.preview-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: contain;
  border-radius: 7px;
  background: #eff1f6;
}
.preview-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}
.filmstrip {
  display: flex;
  gap: 9px;
  overflow: auto;
  padding: 14px 1px;
}
.filmstrip button {
  flex: 0 0 62px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 7px;
  padding: 0;
  background: #fff;
  position: relative;
}
.filmstrip button.selected {
  border-color: var(--blue);
}
.filmstrip img {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.filmstrip span {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: #fff;
  border-radius: 3px;
  font-size: 8px;
  padding: 0 3px;
}
.editor-card {
  padding: 23px;
}
.editor-card + .editor-card {
  margin-top: 18px;
}
.editor-card h2 {
  font-size: 16px;
  margin-bottom: 18px;
}
.slide-editor {
  background: #fafbfe;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.slide-editor h3 {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}
.slide-editor .field {
  margin-bottom: 11px;
}
.slide-editor .field:last-child {
  margin-bottom: 0;
}
.slide-editor textarea {
  min-height: 98px;
}
.slide-tools {
  display: flex;
  gap: 4px;
}
.warnings {
  font-size: 11px;
  line-height: 1.65;
  padding-left: 17px;
  color: #886f45;
}
.warnings li {
  margin: 7px 0;
}
.approval {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: #6d7487;
  align-items: flex-start;
  margin: 17px 0;
}
.approval input {
  margin-top: 2px;
}
.publish-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dirty-label {
  color: #b28431;
  font-size: 10px;
  padding: 6px 0;
}
.fact {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.fact span {
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.integration {
  display: flex;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.integration:last-child {
  border: 0;
}
.integration .tile {
  width: 37px;
  height: 37px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--pale);
  color: var(--blue);
  flex: none;
}
.integration p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.integration .status {
  margin-left: auto;
  align-self: flex-start;
}
.automation-card {
  padding: 22px;
  margin-bottom: 19px;
}
.automation-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.automation-head p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.simulation {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 8px;
}
.reply-preview {
  white-space: pre-wrap;
  font-size: 12px;
  padding: 17px;
  background: #f1f4fd;
  border-radius: 12px;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  height: 180px;
  gap: 14px;
  padding: 18px 6px 0;
}
.bar-group {
  flex: 1;
  min-width: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}
.bar {
  background: #7894ec;
  border-radius: 5px 5px 0 0;
  width: min(100%, 40px);
  min-height: 4px;
}
.bar-group small {
  font-size: 9px;
  margin-top: 7px;
}
.bar-group span {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.activity {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}
.activity li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.activity small {
  font-size: 10px;
  white-space: nowrap;
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.help-card {
  padding: 24px;
}
.help-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 20px;
}
.help-card .eyebrow {
  color: var(--blue);
  margin-bottom: 12px;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.auth-art {
  background: #182645;
  color: white;
  padding: 55px 12%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.auth-art h1 {
  font-size: 46px;
  letter-spacing: -1.8px;
  line-height: 1.18;
  margin-top: 43px;
  max-width: 450px;
}
.auth-art p {
  color: #acbddf;
  max-width: 340px;
  margin-top: 20px;
  font-size: 13px;
}
.auth-art .hero-art {
  height: 260px;
  margin-top: 36px;
}
.auth-art .brand {
  padding: 0;
}
.auth-art .brand-mark {
  background: white;
  color: #152444;
}
.auth-art .brand small {
  color: #a5b5d3;
}
.auth-form {
  max-width: 420px;
  width: 100%;
  margin: auto;
  padding: 42px;
}
.auth-form h2 {
  font-size: 26px;
}
.auth-form > p {
  font-size: 12px;
  color: var(--muted);
  margin: 13px 0 27px;
}
.auth-form .btn {
  width: 100%;
  margin-top: 6px;
}
.auth-form .foot {
  font-size: 10px;
  line-height: 1.7;
  margin-top: 25px;
}
.auth-form .brand {
  display: none;
}
.error-text {
  color: var(--red);
  font-size: 12px;
  margin-bottom: 14px;
  min-height: 1px;
}
.hidden {
  display: none !important;
}
.mobile-profile {
  display: none;
}
.loading-overlay {
  opacity: 0.6;
  pointer-events: none;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  padding: 13px 20px;
  border-radius: 12px;
  background: #202c46;
  color: white;
  font-size: 12px;
  box-shadow: 0 10px 40px #1113;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.18s;
  max-width: 90vw;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 12px;
}
.full-width {
  width: 100%;
}
.gap-top {
  margin-top: 17px;
}
.cost-number {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -1px;
}
.cost-number small {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}
.code {
  font-family: monospace;
  font-size: 12px;
  background: #f2f4fa;
  padding: 2px 6px;
  border-radius: 5px;
}
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid #ffffff66;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1600px) {
  .content {
    padding-top: 40px;
  }
  .hero {
    min-height: 275px;
  }
}
@media (max-width: 1150px) {
  .layout {
    grid-template-columns: 196px minmax(0, 1fr);
  }
  .sidebar {
    width: 196px;
    padding: 26px 12px;
  }
  .brand-name {
    font-size: 23px;
  }
  .content {
    padding: 27px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .two-col,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .two-col > aside {
    display: none;
  }
  .form-grid > aside {
    order: -1;
  }
  .form-grid > aside .mini-slide {
    display: none;
  }
  .form-grid > aside .hero-art {
    display: none;
  }
  .form-grid > aside .divider {
    margin: 12px 0;
  }
  .editor-grid {
    grid-template-columns: minmax(230px, 350px) minmax(0, 1fr);
    gap: 17px;
  }
  .editor-card {
    padding: 18px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .hero-art {
    transform: scale(0.85);
  }
}
@media (max-width: 800px) {
  .layout {
    display: block;
    padding-bottom: 80px;
  }
  .sidebar {
    inset: auto 0 0;
    width: 100%;
    height: 70px;
    padding: 5px 8px;
    border: 0;
    border-top: 1px solid var(--line);
  }
  .sidebar > .brand,
  .nav-label,
  .side-note,
  .profile {
    display: none;
  }
  .nav {
    flex-direction: row;
    justify-content: space-around;
    gap: 1px;
  }
  .nav button {
    width: auto;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
    padding: 8px 3px;
    font-size: 9px;
    border-radius: 8px;
  }
  .nav button:last-child {
    display: none;
  }
  .nav .count {
    display: none;
  }
  .nav svg {
    width: 19px;
    height: 19px;
  }
  .workspace {
    display: block;
  }
  .topbar {
    height: 65px;
    padding: 0 20px;
  }
  .crumb {
    font-size: 11px;
  }
  .topbar-right {
    gap: 9px;
  }
  .mode {
    display: none;
  }
  .mobile-profile {
    display: flex;
    gap: 5px;
  }
  .content {
    padding: 24px 19px 35px;
  }
  h1 {
    font-size: 27px;
  }
  .page-title {
    align-items: flex-start;
    gap: 12px;
  }
  .page-title .btn {
    font-size: 11px;
  }
  .page-title p {
    font-size: 12px;
  }
  .hero {
    padding: 25px;
    grid-template-columns: 1fr 130px;
    min-height: 242px;
    gap: 0;
  }
  .hero h2 {
    font-size: 24px;
  }
  .hero p {
    font-size: 11px;
  }
  .hero-art {
    transform: scale(0.72);
    transform-origin: center;
  }
  .mini-slide.third {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .stat {
    padding: 17px;
  }
  .stat strong {
    font-size: 29px;
  }
  .table-wrap {
    width: 100%;
  }
  td,
  th {
    padding: 13px;
  }
  .table-hide-mobile {
    display: none;
  }
  .table-name {
    min-width: 150px;
  }
  .table-name strong {
    max-width: 195px;
    font-size: 11px;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .preview-panel {
    position: static;
    max-width: 440px;
    width: 100%;
    margin: auto;
  }
  .preview-frame {
    padding: 12px;
  }
  .editor-card {
    padding: 20px;
  }
  .field-row {
    gap: 11px;
  }
  .help-grid {
    grid-template-columns: 1fr;
  }
  .simulation {
    grid-template-columns: 110px 1fr;
  }
  .simulation .btn {
    grid-column: 1/-1;
  }
  .auth-shell {
    display: block;
  }
  .auth-art {
    display: none;
  }
  .auth-form {
    padding: 32px 25px;
    max-width: 460px;
    padding-top: 65px;
  }
  .auth-form .brand {
    display: flex;
    margin-bottom: 65px;
    padding: 0;
  }
  .auth-form h2 {
    font-size: 25px;
  }
  .auth-form .foot {
    font-size: 11px;
  }
  .filter-bar {
    flex-wrap: wrap;
  }
  .filter-bar input {
    max-width: none;
  }
  .filter-bar select {
    max-width: none;
  }
  .form-grid > aside {
    display: none;
  }
  .automation-card {
    padding: 19px;
  }
  .automation-head {
    flex-wrap: wrap;
  }
  .source-input {
    min-height: 290px;
  }
  .btn {
    min-height: 43px;
  }
  .icon-btn {
    min-width: 36px;
    min-height: 36px;
  }
  #toast {
    bottom: 88px;
  }
  .cost-number {
    font-size: 30px;
  }
}
@media (max-width: 420px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-art {
    display: none;
  }
  .hero {
    min-height: 225px;
  }
  .page-title .actions {
    display: none;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .topbar .btn {
    padding: 8px 11px;
    font-size: 11px;
  }
  .content {
    padding: 22px 15px;
  }
  .topbar {
    padding: 0 15px;
  }
  .table-name .thumb {
    display: none;
  }
  .table-name strong {
    max-width: 150px;
  }
  .stat-top {
    font-size: 10px;
  }
  .stat-icon {
    padding: 6px;
  }
  .status {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.two-col > *,
.form-grid > *,
.editor-grid > *,
.card {
  min-width: 0;
}
@media (max-width: 420px) {
  .topbar .crumb {
    font-size: 0;
  }
  .topbar .crumb b {
    font-size: 11px;
  }
  .topbar-right {
    gap: 6px;
  }
}

/* Fast lane: primary publish button with secondary actions folded away */
.secondary-actions {
  margin-top: 10px;
  width: 100%;
}
.secondary-actions summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  padding: 4px 0;
}
.secondary-actions .btn {
  margin: 6px 6px 0 0;
}

/* Uploads, Instagram controls, style page, charts (v1.2) */
.upload-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}
.ig-controls .btn {
  margin: 0 6px 6px 0;
}
.ig-controls small {
  display: block;
  margin-top: 6px;
}
.link-box {
  width: 100%;
  min-height: 72px;
  margin: 8px 0 6px;
  font: 12px ui-monospace, Consolas, monospace;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--pale);
  color: var(--ink);
}
.chart {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 6px;
}
.chart .bar-mark {
  fill: var(--blue);
}
.chart g:hover .bar-mark {
  opacity: 0.85;
}
.chart .bar-cap,
.chart .end-label {
  font: 11px Golos, Arial, sans-serif;
  fill: var(--ink);
}
.chart .axis {
  font: 10px Golos, Arial, sans-serif;
  fill: var(--muted);
}
.chart .baseline {
  stroke: var(--line);
  stroke-width: 1;
}
.chart .line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart .dot {
  fill: var(--blue);
  stroke: var(--paper);
  stroke-width: 2;
}
tr.best td {
  background: var(--pale);
}
.style-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: start;
}
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px 14px;
}
.color-field input[type="color"] {
  width: 100%;
  height: 40px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.number-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px 14px;
}
.checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 14px;
}
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.preview-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--pale);
}
@media (max-width: 900px) {
  .style-grid {
    grid-template-columns: 1fr;
  }
  .upload-row {
    grid-template-columns: 1fr;
  }
}
