:root {
  --paper: #f2ede2;
  --paper-2: #faf6ec;
  --paper-3: #e8e1d3;
  --ink: #17140f;
  --ink-2: #3b352c;
  --muted: #776f62;
  --line: #d6ccbc;
  --line-strong: #b9ae9c;
  --cobalt: #1f3be0;
  --cobalt-dark: #162cae;
  --cobalt-soft: #e6e9ff;
  --coral: #ff5b3d;
  --coral-ink: #b5341e;
  --coral-soft: #ffe7df;
  --green: #1f6b43;
  --green-soft: #e2f0e7;
  --lime: #d9f25a;
  --amber: #9a6508;
  --amber-soft: #fff0ce;
  --font-display: 'Fraunces', Georgia, serif;
  --font-ui: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'DM Mono', 'SFMono-Regular', Consolas, monospace;
  --radius: 4px;
  --radius-sm: 3px;
  --topbar: 72px;
  --bottom-nav: 64px;
  --content: 1280px;
  --shadow: 0 20px 45px -32px rgba(23, 20, 15, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.has-bottom-nav {
  padding-bottom: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 500;
  line-height: 1.1;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: -0.01em;
}

.muted {
  color: var(--muted);
}

.ital {
  font-style: italic;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow--coral {
  color: var(--coral-ink);
}

.link {
  color: var(--cobalt);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.link:hover {
  color: var(--cobalt-dark);
}

[hidden] {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
  box-shadow: 0 1px 0 rgba(23, 20, 15, 0.08);
}

.btn--primary:hover {
  background: var(--cobalt-dark);
  border-color: var(--cobalt-dark);
}

.btn--secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--secondary:hover {
  background: var(--paper-2);
  border-color: var(--ink-2);
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-2);
}

.btn--ghost:hover {
  background: var(--paper-3);
}

.btn--danger {
  background: transparent;
  border-color: rgba(181, 52, 30, 0.35);
  color: var(--coral-ink);
}

.btn--danger:hover {
  background: var(--coral-soft);
}

.btn--sm {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
}

.btn--lg {
  min-height: 50px;
  padding: 0 22px;
  font-size: 15px;
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink-2);
  transition: background 150ms ease, border-color 150ms ease;
}

.icon-btn:hover {
  background: var(--paper-3);
  border-color: var(--line-strong);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

.icon-btn__count {
  position: absolute;
  top: 2px;
  right: 1px;
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 2px solid var(--paper-2);
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 500;
  line-height: 1;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.status__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

.status__mark {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  opacity: 0.9;
}

.status--ok {
  border-color: rgba(31, 107, 67, 0.28);
  background: var(--green-soft);
  color: var(--green);
}

.status--warn {
  border-color: rgba(181, 52, 30, 0.28);
  background: var(--coral-soft);
  color: var(--coral-ink);
}

.status--run {
  border-color: rgba(31, 59, 224, 0.26);
  background: var(--cobalt-soft);
  color: var(--cobalt);
}

.status--draft {
  border-color: var(--line);
  background: var(--paper-3);
  color: var(--ink-2);
}

.status--neutral {
  border-color: var(--line);
  background: var(--paper);
  color: var(--muted);
}

.mono-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.mono-mark--sm {
  width: 24px;
  height: 24px;
  font-size: 8px;
}

.mono-mark--quiet {
  background: var(--paper-3);
  color: var(--ink-2);
  border: 1px solid var(--line);
}

.mono-mark--ml {
  background: #ffe600;
  color: #17140f;
}

.mono-mark--sh {
  background: #ee4d2d;
  color: #fff;
}

.mono-mark--mg {
  background: #0086ff;
  color: #fff;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 237, 226, 0.94);
  backdrop-filter: blur(10px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
  max-width: var(--content);
  height: var(--topbar);
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper-2);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.topbar__store {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.store-logo {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cobalt);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
}

.store-name {
  display: block;
  max-width: 150px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-name small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.main-nav a {
  padding: 8px 11px;
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease;
}

.main-nav a:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.main-nav a.is-active {
  background: var(--cobalt);
  color: #fff;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
}

.topbar__cta {
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
}

.topbar__cta .cta-short {
  display: none;
}

.popover {
  position: relative;
}

.popover__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  width: 340px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.notif-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.notif-panel__head strong {
  font-size: 13px;
}

.notif-item {
  display: block;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.notif-item:last-child {
  border-bottom: 0;
}

.notif-item:hover {
  background: var(--paper);
}

.notif-item small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.notif-item p {
  font-size: 12.5px;
  line-height: 1.4;
}

.notif-all {
  display: block;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--cobalt);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--paper-3);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
}

.avatar-name {
  font-size: 12px;
  font-weight: 800;
}

.user-menu {
  width: 230px;
  padding: 6px;
}

.user-menu__head {
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.user-menu__head strong {
  display: block;
  font-size: 13px;
}

.user-menu__head small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.user-menu a,
.user-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
}

.user-menu a:hover,
.user-menu button:hover {
  background: var(--paper);
  color: var(--ink);
}

.user-menu .user-menu__exit {
  color: var(--coral-ink);
}

.bottom-nav {
  display: none;
}

.app-main {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 30px 24px 64px;
}

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

.page-head__main {
  min-width: 0;
}

.page-head h1 {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.page-head h1 em {
  font-style: italic;
  color: var(--cobalt);
}

.page-head__sub {
  max-width: 64ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.page-head__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.back-link:hover {
  color: var(--ink);
}

.attention {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.attention__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--coral-soft);
  color: var(--coral-ink);
}

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

.attention__copy {
  flex: 1;
  min-width: 0;
}

.attention__copy strong {
  display: block;
  font-size: 13.5px;
}

.attention__copy p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.attention .btn {
  flex: 0 0 auto;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.summary-stat {
  min-width: 0;
  padding: 15px 18px;
  border-right: 1px solid var(--line);
}

.summary-stat:last-child {
  border-right: 0;
}

.summary-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.summary-stat strong small {
  margin-left: 3px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--muted);
}

.summary-stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(290px, 1fr);
  gap: 20px;
  align-items: start;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.panel + .panel {
  margin-top: 16px;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.panel__head h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.panel__head h2 em {
  font-style: italic;
  color: var(--cobalt);
}

.panel__link {
  color: var(--cobalt);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.panel__link:hover {
  color: var(--cobalt-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.panel__foot {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}

.brief-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 16px;
  gap: 13px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 150ms ease;
}

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

.brief-row:hover {
  background: var(--paper);
}

.brief-row img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.brief-row__title {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brief-row__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.brief-row__meta .mono {
  font-size: 10px;
}

.brief-row__channels {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.brief-row__chev {
  color: var(--line-strong);
}

.brief-row__chev svg {
  width: 16px;
  height: 16px;
}

.channel-mini {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
}

.channel-mini:last-child {
  border-bottom: 0;
}

.channel-mini__body {
  flex: 1;
  min-width: 0;
}

.channel-mini__body strong {
  display: block;
  font-size: 12.5px;
}

.channel-mini__body small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10.5px;
}

.channel-mini__state {
  color: var(--green);
  font-size: 10.5px;
  font-weight: 800;
  text-align: right;
}

.channel-mini__state--warn {
  color: var(--coral-ink);
}

.draft-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
}

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

.draft-row img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.draft-row__body {
  flex: 1;
  min-width: 0;
}

.draft-row__body strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-row__body small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 14px;
}

.search {
  position: relative;
  flex: 1 1 280px;
}

.search svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 17px;
  height: 17px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 39px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-2);
  font-size: 13px;
}

.search input::placeholder {
  color: var(--muted);
}

.search input:focus {
  border-color: var(--cobalt);
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 59, 224, 0.1);
}

.filter-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-chip {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.filter-chip:hover {
  background: var(--paper-2);
}

.filter-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-2);
}

.filter-chip span {
  margin-left: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.65;
}

.toolbar__count {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
}

.listing-table {
  width: 100%;
  border: 1px solid var(--line);
  border-collapse: collapse;
  background: var(--paper-2);
}

.listing-table th {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.listing-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.listing-table tr:last-child td {
  border-bottom: 0;
}

.listing-table tbody tr {
  transition: background 150ms ease;
}

.listing-table tbody tr:hover {
  background: var(--paper);
}

.listing-table .col-check {
  width: 36px;
}

.listing-table .col-price,
.listing-table .col-stock {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-align: right;
  white-space: nowrap;
}

.listing-table .col-update {
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}

.listing-table .col-action {
  width: 76px;
  text-align: right;
}

.listing-table input[type="checkbox"],
.listing-card input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--cobalt);
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.product-cell img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.product-cell__body {
  min-width: 0;
}

.product-cell strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-cell small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.3;
}

.listing-channels {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}

.listing-cards {
  display: none;
}

.listing-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 16px;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.listing-card:hover {
  background: var(--paper);
}

.listing-card__photo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.listing-card__body {
  min-width: 0;
}

.listing-card__body strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.listing-card__body small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.listing-card__channels {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 7px;
}

.listing-card__chev {
  align-self: center;
  color: var(--line-strong);
}

.listing-card__chev svg {
  width: 16px;
  height: 16px;
}

.empty-state {
  display: none;
  padding: 48px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.empty-state strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}

.empty-state p {
  max-width: 40ch;
  margin: 6px auto 14px;
  color: var(--muted);
  font-size: 13px;
}

.is-hidden {
  display: none !important;
}

.wizard-body {
  background: var(--paper);
}

.wizard-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 237, 226, 0.96);
  backdrop-filter: blur(10px);
}

.wizard-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
}

.wizard-topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wizard {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px 80px;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 34px;
}

.wizard-progress__step {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 2px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.wizard-progress__step.is-active {
  border-color: var(--cobalt);
  color: var(--ink);
}

.wizard-progress__step.is-done {
  border-color: var(--green);
  color: var(--green);
}

.wizard-progress__num {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
}

.wizard-pane {
  display: none;
}

.wizard-pane.is-active {
  display: block;
}

.wizard-heading {
  margin-bottom: 22px;
}

.wizard-heading h1,
.wizard-heading h2 {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.wizard-heading h1 em,
.wizard-heading h2 em {
  font-style: italic;
  color: var(--cobalt);
}

.wizard-heading p {
  max-width: 62ch;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.wizard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.form-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.form-block + .form-block {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.form-block__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.form-block__title h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.form-block__title small {
  color: var(--muted);
  font-size: 11px;
}

.photo-grid {
  display: grid;
  grid-template-columns: 118px 118px 118px;
  gap: 8px;
}

.photo-slot {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 118px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-slot--add {
  border-style: dashed;
}

.photo-slot--add span {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.photo-slot__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 3px 6px;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 15px;
}

.field:last-child {
  margin-bottom: 0;
}

.field--spaced {
  margin-top: 16px;
}

.field label {
  font-size: 12px;
  font-weight: 800;
}

.field label span {
  margin-left: 4px;
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-2);
  font-size: 13.5px;
}

.field textarea {
  min-height: 96px;
  padding: 10px 12px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cobalt);
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 59, 224, 0.1);
}

.field small {
  color: var(--muted);
  font-size: 10.5px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-row--price {
  grid-template-columns: 1.25fr 0.75fr;
}

.char-count {
  justify-self: end;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.preview {
  position: sticky;
  top: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.preview__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.preview__body {
  padding-top: 12px;
}

.preview__body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.preview__price {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 500;
}

.preview__meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.preview__channels {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.preview-mobile-trigger {
  display: none;
}

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.wizard-actions__right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.form-hint {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.form-hint a {
  color: var(--cobalt);
  font-weight: 700;
}

.channel-select-list {
  display: grid;
  gap: 8px;
}

.channel-select {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.channel-select:hover {
  border-color: var(--line-strong);
}

.channel-select.is-selected {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 1px var(--cobalt) inset;
}

.channel-select input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--cobalt);
}

.channel-select__body {
  flex: 1;
  min-width: 0;
}

.channel-select__body strong {
  display: block;
  font-size: 13px;
}

.channel-select__body small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10.5px;
}

.channel-select .status {
  flex: 0 0 auto;
}

.channel-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 12px;
  font-weight: 700;
}

.channel-summary strong {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 16px;
  margin-bottom: 16px;
}

.review-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.review-card h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
}

.review-product {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.review-product img {
  width: 80px;
  height: 100px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.review-product__body {
  min-width: 0;
}

.review-product__body h3 {
  margin: 0 0 4px;
  font-size: 21px;
}

.review-product__body p {
  color: var(--muted);
  font-size: 11px;
}

.review-product__price {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 15px;
}

.review-product__edit {
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cobalt);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.review-product__edit:hover {
  text-decoration: underline;
}

.checklist {
  display: grid;
  gap: 10px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.45;
}

.checklist__icon {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}

.checklist__icon svg {
  width: 11px;
  height: 11px;
}

.review-channels {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  overflow: hidden;
}

.review-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.review-channel:last-child {
  border-bottom: 0;
}

.review-channel__body {
  flex: 1;
  min-width: 0;
}

.review-channel__body strong {
  display: block;
  font-size: 12.5px;
}

.review-channel__body small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
}

.review-channel .status {
  flex: 0 0 auto;
}

.publish-result {
  max-width: 660px;
  margin: 44px auto 0;
  text-align: center;
}

.publish-result[hidden] {
  display: none;
}

.publish-result__mark {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}

.publish-result__mark svg {
  width: 28px;
  height: 28px;
}

.publish-result h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.publish-result > p {
  max-width: 46ch;
  margin: 8px auto 22px;
  color: var(--muted);
  font-size: 13px;
}

.publish-channels {
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  text-align: left;
  overflow: hidden;
}

.publish-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.publish-channel:last-child {
  border-bottom: 0;
}

.publish-channel__body {
  flex: 1;
  min-width: 0;
}

.publish-channel__body strong {
  display: block;
  font-size: 12.5px;
}

.publish-channel__body small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
}

.publish-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}

.detail-photo {
  position: sticky;
  top: 96px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.detail-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.detail-photo__caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-body {
  min-width: 0;
}

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

.detail-headline h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.detail-headline h1 em {
  font-style: italic;
  color: var(--cobalt);
}

.detail-headline__meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.detail-headline__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-price-row strong {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
}

.detail-price-row span {
  color: var(--muted);
  font-size: 12px;
}

.detail-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.detail-section:last-child {
  border-bottom: 0;
}

.detail-section h2 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
}

.detail-section p {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
}

.channel-status-list {
  display: grid;
  gap: 8px;
}

.channel-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.channel-status-row__body {
  flex: 1;
  min-width: 0;
}

.channel-status-row__body strong {
  display: block;
  font-size: 12.5px;
}

.channel-status-row__body small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10.5px;
}

.channel-status-row__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-list {
  display: grid;
  gap: 0;
}

.history-row {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

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

.history-row__time {
  width: 74px;
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
  text-transform: uppercase;
}

.history-row p {
  font-size: 12px;
  line-height: 1.5;
}

.pub-group {
  margin-bottom: 22px;
}

.pub-group__label {
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pub-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.pub-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1.4fr) minmax(0, 1.2fr) auto 18px;
  gap: 13px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 150ms ease;
}

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

.pub-row:hover {
  background: var(--paper);
}

.pub-row img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.pub-row__title {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pub-row__meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.pub-row__channels {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}

.pub-row__time {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
}

.pub-row__chev {
  color: var(--line-strong);
}

.pub-row__chev svg {
  width: 16px;
  height: 16px;
}

.pub-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

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

.channel-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.channel-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.channel-card__logo {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.channel-card__logo--ml {
  background: #ffe600;
  color: #17140f;
}

.channel-card__logo--sh {
  background: #ee4d2d;
  color: #fff;
}

.channel-card__logo--mg {
  background: #0086ff;
  color: #fff;
}

.channel-card h2 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.channel-card__stats {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.channel-card__stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
}

.channel-card__stat strong {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.channel-card__stat span {
  color: var(--muted);
}

.channel-card__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

.others-panel {
  margin-top: 24px;
}

.section-head {
  margin-bottom: 12px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.section-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.others-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

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

.others-row__body {
  flex: 1;
  min-width: 0;
}

.others-row__body strong {
  display: block;
  font-size: 12.5px;
}

.others-row__body small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10.5px;
}

.settings-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.settings-tabs::-webkit-scrollbar {
  display: none;
}

.settings-tab {
  flex: 0 0 auto;
  padding: 11px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}

.settings-tab:hover {
  color: var(--ink);
}

.settings-tab.is-active {
  border-color: var(--cobalt);
  color: var(--ink);
}

.settings-panel {
  display: none;
}

.settings-panel.is-active {
  display: block;
}

.settings-card {
  max-width: 780px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.settings-card + .settings-card {
  margin-top: 14px;
}

.settings-card h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.settings-card__sub {
  margin-top: 4px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

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

.switch-row__copy {
  min-width: 0;
}

.switch-row__copy strong {
  display: block;
  font-size: 12.5px;
}

.switch-row__copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--line-strong);
  cursor: pointer;
  transition: background 150ms ease;
}

.switch span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 20, 15, 0.2);
  transition: transform 150ms ease;
}

.switch input:checked + span {
  background: var(--cobalt);
}

.switch input:checked + span::after {
  transform: translateX(20px);
}

.switch input:focus-visible + span {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
}

.team-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

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

.team-row__body {
  flex: 1;
  min-width: 0;
}

.team-row__body strong {
  display: block;
  font-size: 12.5px;
}

.team-row__body small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10.5px;
}

.auth-body {
  background: var(--paper);
}

.auth-topbar {
  border-bottom: 1px solid var(--line);
}

.auth-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--content);
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
}

.auth-topbar__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.auth-topbar__meta a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  max-width: var(--content);
  min-height: calc(100vh - 69px);
  margin: 0 auto;
  padding: 28px 24px 40px;
  gap: 40px;
  align-items: center;
}

.auth-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 640px;
  padding: 34px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cobalt);
  color: #fff;
}

.auth-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  mix-blend-mode: luminosity;
}

.auth-hero__copy {
  position: relative;
  z-index: 1;
}

.auth-hero .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.auth-hero h1 {
  max-width: 11ch;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(42px, 5.4vw, 68px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.auth-hero h1 em {
  font-style: italic;
  color: var(--lime);
}

.auth-hero > p {
  max-width: 42ch;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.6;
}

.auth-hero__foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.auth-hero__foot strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-hero__foot small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  line-height: 1.4;
}

.auth-panel {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.auth-card {
  width: 100%;
  max-width: 410px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.auth-card__head h1,
.auth-card__head h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.auth-card__head h1 em,
.auth-card__head h2 em {
  font-style: italic;
  color: var(--cobalt);
}

.auth-card__head p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12.5px;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  margin-top: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-2);
  font-size: 13px;
  font-weight: 800;
}

.btn-google:hover {
  background: var(--paper);
}

.btn-google svg {
  width: 17px;
  height: 17px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-form .field {
  margin-bottom: 12px;
}

.auth-form__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 11px;
}

.checkline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-weight: 600;
}

.checkline input {
  width: 14px;
  height: 14px;
  accent-color: var(--cobalt);
}

.auth-form__meta button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cobalt);
  font-size: 11px;
  font-weight: 700;
}

.auth-signup {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.auth-signup a {
  color: var(--cobalt);
  font-weight: 800;
}

.auth-foot {
  margin-top: 16px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  line-height: 1.6;
}

.onboarding {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  max-width: 1120px;
  min-height: calc(100vh - 69px);
  margin: 0 auto;
  padding: 34px 24px 48px;
  gap: 40px;
  align-items: start;
}

.onboarding__aside {
  position: sticky;
  top: 100px;
  padding-top: 10px;
}

.onboarding__aside h1 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.onboarding__aside h1 em {
  font-style: italic;
  color: var(--cobalt);
}

.onboarding__aside > p {
  max-width: 36ch;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.onboarding__steps {
  display: grid;
  gap: 0;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.onboarding-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.onboarding-step span:first-child {
  font-family: var(--font-mono);
  font-size: 10px;
}

.onboarding-step span:nth-child(2) {
  flex: 1;
  font-weight: 800;
}

.onboarding-step span:last-child {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.onboarding-step.is-active {
  color: var(--ink);
}

.onboarding-step.is-active span:last-child {
  color: var(--cobalt);
}

.onboarding-step.is-done {
  color: var(--green);
}

.onboarding__main {
  min-width: 0;
}

.onboarding-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.onboarding-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.onboarding-card__count {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.onboarding-card__count strong {
  color: var(--ink);
  font-weight: 500;
}

.onboarding-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 24px;
}

.onboarding-progress span {
  height: 3px;
  border-radius: 2px;
  background: var(--line);
}

.onboarding-progress span.is-active,
.onboarding-progress span.is-done {
  background: var(--cobalt);
}

.onboarding-pane {
  display: none;
}

.onboarding-pane.is-active {
  display: block;
}

.onboarding-pane h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.onboarding-pane h2 em {
  font-style: italic;
  color: var(--cobalt);
}

.onboarding-pane > p {
  margin-top: 6px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.onboarding-fields {
  display: grid;
  gap: 0;
}

.onboarding-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.onboarding-actions__back {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.onboarding-actions__back:hover {
  color: var(--ink);
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.choice {
  display: block;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 1px var(--cobalt) inset;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice strong {
  display: block;
  font-size: 12.5px;
}

.choice small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.channel-choice {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  cursor: pointer;
  margin-bottom: 7px;
}

.channel-choice:has(input:checked) {
  border-color: var(--cobalt);
}

.channel-choice input {
  width: 17px;
  height: 17px;
  accent-color: var(--cobalt);
}

.channel-choice__body {
  flex: 1;
  min-width: 0;
}

.channel-choice__body strong {
  display: block;
  font-size: 12.5px;
}

.channel-choice__body small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10.5px;
}

.form-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.onboarding-success {
  display: none;
  padding: 18px 0 6px;
  text-align: center;
}

.onboarding-success.is-active {
  display: block;
}

.onboarding-success__mark {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}

.onboarding-success__mark svg {
  width: 26px;
  height: 26px;
}

.onboarding-success h2 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.onboarding-success h2 em {
  font-style: italic;
  color: var(--cobalt);
}

.onboarding-success p {
  max-width: 38ch;
  margin: 10px auto 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

dialog.modal {
  width: min(560px, calc(100vw - 32px));
  max-height: min(86vh, 760px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: var(--shadow);
}

dialog.modal::backdrop {
  background: rgba(23, 20, 15, 0.36);
  backdrop-filter: blur(3px);
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 0;
}

.modal__head h2 {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.modal__head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.modal__close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.modal__close:hover {
  background: var(--paper);
  color: var(--ink);
}

.modal__body {
  padding: 16px 20px;
}

.modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

.modal-note {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.modal .field-row {
  margin-top: 2px;
}

.preview-dialog .preview__image {
  max-height: 360px;
}

.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 32px));
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(242, 237, 226, 0.18);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper-2);
  box-shadow: var(--shadow);
  animation: toast-in 180ms ease both;
}

.toast.is-out {
  animation: toast-out 200ms ease both;
}

.toast__mark {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
}

.toast p {
  flex: 1;
  font-size: 12px;
  line-height: 1.4;
}

.toast button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 16px;
  opacity: 0.7;
}

.toast button:hover {
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.app-footer__mark {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper-2);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: -0.04em;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 1180px) {
  .topbar__inner {
    gap: 14px;
    padding: 0 18px;
  }

  .topbar__store {
    padding-left: 12px;
  }

  .store-name {
    max-width: 110px;
  }

  .main-nav a {
    padding: 8px 8px;
    font-size: 12px;
  }

  .avatar-name {
    display: none;
  }
}

@media (max-width: 1020px) {
  .topbar__store {
    display: none;
  }

  .main-nav {
    margin-left: auto;
  }

  .auth {
    gap: 24px;
  }

  .auth-hero {
    min-height: 580px;
    padding: 26px;
  }

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

@media (max-width: 900px) {
  .topbar__inner {
    height: 60px;
    padding: 0 16px;
    gap: 10px;
  }

  .brand__mark {
    width: 30px;
    height: 30px;
    font-size: 19px;
  }

  .brand__name {
    font-size: 19px;
  }

  .main-nav {
    display: none;
  }

  .topbar__actions {
    margin-left: auto;
    gap: 8px;
  }

  .topbar__cta {
    min-height: 36px;
    padding: 0 12px;
  }

  .topbar__cta .cta-long {
    display: none;
  }

  .topbar__cta .cta-short {
    display: inline;
  }

  .avatar {
    width: 32px;
    height: 32px;
    font-size: 9px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }

  .icon-btn svg {
    width: 17px;
    height: 17px;
  }

  .bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: calc(var(--bottom-nav) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgba(250, 246, 236, 0.98);
    backdrop-filter: blur(10px);
  }

  .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 60px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.1;
  }

  .bottom-nav a svg {
    width: 20px;
    height: 20px;
  }

  .bottom-nav a.is-active {
    color: var(--cobalt);
  }

  .app-main {
    padding: 22px 16px calc(96px + env(safe-area-inset-bottom));
  }

  .page-head {
    display: block;
    margin-bottom: 18px;
  }

  .page-head h1 {
    font-size: 34px;
  }

  .page-head__sub {
    font-size: 13px;
  }

  .page-head__actions {
    margin-top: 14px;
  }

  .page-head__actions .btn {
    flex: 1 1 auto;
  }

  .attention {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 13px;
  }

  .attention__copy {
    flex: 1 1 calc(100% - 56px);
  }

  .attention .btn {
    width: 100%;
    margin-top: 2px;
  }

  .summary-strip {
    grid-template-columns: 1fr 1fr;
  }

  .summary-stat {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }

  .summary-stat:nth-child(2n) {
    border-right: 0;
  }

  .summary-stat:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .summary-stat strong {
    font-size: 24px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .brief-row {
    grid-template-columns: 48px minmax(0, 1fr) 16px;
    gap: 11px;
    padding: 12px 14px;
  }

  .brief-row__channels {
    grid-column: 2 / 4;
    justify-content: flex-start;
    margin-top: 1px;
  }

  .brief-row__chev {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
  }

  .panel__head {
    padding: 12px 14px;
  }

  .panel__head h2 {
    font-size: 19px;
  }

  .channel-mini,
  .draft-row {
    padding: 10px 14px;
  }

  .toolbar {
    gap: 9px;
  }

  .search {
    flex-basis: 100%;
  }

  .toolbar__count {
    width: 100%;
    margin-left: 0;
    text-align: right;
  }

  .listing-table {
    display: none;
  }

  .listing-cards {
    display: grid;
    gap: 8px;
  }

  .listing-card {
    grid-template-columns: 64px minmax(0, 1fr) 16px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .detail-photo {
    position: static;
    max-width: 420px;
  }

  .detail-photo img {
    aspect-ratio: 4 / 3;
  }

  .detail-headline {
    display: block;
  }

  .detail-headline__actions {
    margin-top: 12px;
  }

  .detail-headline__actions .btn {
    flex: 1 1 auto;
  }

  .detail-price-row {
    gap: 14px;
  }

  .pub-row {
    grid-template-columns: 48px minmax(0, 1fr) 16px;
    gap: 11px;
    padding: 12px 14px;
  }

  .pub-row__channels {
    grid-column: 2 / 4;
    margin-top: 1px;
  }

  .pub-row__time {
    grid-column: 2;
    margin-top: 1px;
    font-size: 9px;
  }

  .pub-row__chev {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
  }

  .pub-actions {
    grid-column: 2 / 4;
    margin-top: 2px;
  }

  .channel-grid {
    grid-template-columns: 1fr;
  }

  .settings-card {
    padding: 18px;
  }

  .auth-topbar__inner {
    height: 60px;
    padding: 0 16px;
  }

  .auth-topbar__meta span {
    display: none;
  }

  .auth {
    display: block;
    min-height: 0;
    padding: 18px 16px 40px;
  }

  .auth-hero {
    display: none;
  }

  .auth-panel {
    padding: 0;
  }

  .auth-card {
    max-width: none;
    padding: 22px;
  }

  .onboarding {
    display: block;
    min-height: 0;
    padding: 20px 16px 40px;
  }

  .onboarding__aside {
    position: static;
    padding-top: 0;
    margin-bottom: 20px;
  }

  .onboarding__aside h1 {
    font-size: 34px;
  }

  .onboarding__aside > p {
    max-width: none;
  }

  .onboarding__steps {
    display: none;
  }

  .onboarding-card {
    padding: 20px;
  }

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

  .app-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .toast-stack {
    right: 16px;
    bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .wizard-topbar__inner {
    height: 58px;
    padding: 0 16px;
  }

  .wizard-topbar .brand__name {
    display: none;
  }

  .wizard {
    padding: 18px 16px calc(96px + env(safe-area-inset-bottom));
  }

  .wizard-progress {
    margin-bottom: 24px;
  }

  .wizard-progress__step {
    gap: 6px;
    font-size: 10.5px;
  }

  .wizard-progress__num {
    width: 21px;
    height: 21px;
    font-size: 9px;
  }

  .wizard-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-card {
    padding: 18px;
  }

  .preview {
    display: none;
  }

  .preview-mobile-trigger {
    display: inline-flex;
  }

  .wizard-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    margin: 0;
    padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(250, 246, 236, 0.98);
    backdrop-filter: blur(10px);
  }

  .wizard-actions__right {
    flex: 1;
    justify-content: flex-end;
  }

  .wizard-actions .btn--primary {
    flex: 1;
  }

  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-slot {
    height: auto;
    aspect-ratio: 1;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .publish-result {
    margin-top: 28px;
    padding-bottom: 20px;
  }

  .publish-actions .btn {
    flex: 1 1 auto;
  }

  .notif-panel {
    position: fixed;
    top: 64px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .user-menu {
    position: fixed;
    top: 64px;
    right: 12px;
    width: 220px;
  }
}

@media (max-width: 520px) {
  .topbar__cta {
    padding: 0 10px;
    font-size: 12px;
  }

  .topbar__actions .icon-btn {
    display: none;
  }

  .page-head h1 {
    font-size: 31px;
  }

  .summary-stat {
    padding: 11px 12px;
  }

  .summary-stat strong {
    font-size: 22px;
  }

  .summary-stat span {
    font-size: 8px;
  }

  .filter-chips {
    gap: 5px;
  }

  .filter-chip {
    min-height: 33px;
    padding: 0 9px;
    font-size: 11px;
  }

  .toolbar__count {
    font-size: 9px;
  }

  .wizard-progress__step span:last-child {
    display: none;
  }

  .wizard-progress__step:first-child span:last-child,
  .wizard-progress__step.is-active span:last-child {
    display: inline;
  }

  .review-product img {
    width: 68px;
    height: 86px;
  }

  .settings-tab {
    padding: 10px 11px;
    font-size: 11.5px;
  }

  .auth-card {
    padding: 18px;
  }

  .auth-card__head h1,
  .auth-card__head h2 {
    font-size: 31px;
  }

  .onboarding-actions {
    flex-wrap: wrap;
  }

  .onboarding-actions .btn {
    flex: 1;
  }

  .onboarding-success h2 {
    font-size: 30px;
  }

  .pub-row__channels {
    gap: 3px;
  }

  .detail-headline h1 {
    font-size: 31px;
  }

  .channel-status-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .channel-status-row__actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 4px;
  }
}

:root {
  --surface: #fffdf8;
  --surface-2: #f7f1e5;
}

.icon-btn {
  position: relative;
}

.app-body {
  min-height: 100vh;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100vh;
  padding: 18px 14px 16px;
  border-right: 1px solid var(--line);
  background: var(--paper-2);
  overflow-y: auto;
}

.app-sidebar__brand {
  padding: 2px 8px 6px;
}

.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  transition: border-color 150ms ease, background 150ms ease;
}

.workspace:hover {
  border-color: var(--line-strong);
  background: var(--paper-3);
}

.workspace__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.workspace__body strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace__body small {
  color: var(--muted);
  font-size: 9.5px;
}

.workspace > svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--muted);
}

.app-sidebar__cta {
  width: 100%;
  margin-top: 2px;
}

.app-sidebar__cta svg {
  width: 16px;
  height: 16px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}

.side-nav__label {
  padding: 0 10px 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.side-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 39px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
  transition: background 150ms ease, color 150ms ease;
}

.side-nav a svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--muted);
  transition: color 150ms ease;
}

.side-nav a:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.side-nav a.is-active {
  background: var(--surface);
  color: var(--cobalt);
  box-shadow: 0 1px 2px rgba(23, 20, 15, 0.05);
}

.side-nav a.is-active::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: 17px;
  border-radius: 0 3px 3px 0;
  background: var(--cobalt);
  content: "";
  transform: translateY(-50%);
}

.side-nav a.is-active svg {
  color: var(--cobalt);
}

.side-nav__count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  min-height: 18px;
  margin-left: auto;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral-ink);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
}

.side-channels {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.side-channels__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 6px 4px;
}

.side-channels__head span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.side-channels__head a {
  color: var(--cobalt);
  font-size: 9px;
  font-weight: 800;
}

.side-channel {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 6px;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 700;
  transition: background 150ms ease;
}

.side-channel:hover {
  background: var(--paper-3);
}

.side-channel .mono-mark {
  width: 22px;
  height: 22px;
  font-size: 7.5px;
}

.side-channel__dot {
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--line-strong);
}

.side-channel__dot--ok {
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.side-channel__dot--warn {
  background: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-soft);
}

.side-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.side-user .avatar {
  width: 32px;
  height: 32px;
  font-size: 9px;
}

.side-user__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.side-user__body strong {
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-user__body small {
  color: var(--muted);
  font-size: 8.5px;
}

.side-user__exit {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--muted);
  transition: background 150ms ease, color 150ms ease;
}

.side-user__exit:hover {
  background: var(--paper-3);
  color: var(--coral-ink);
}

.side-user__exit svg {
  width: 15px;
  height: 15px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 237, 226, 0.9);
  backdrop-filter: blur(12px);
}

.app-header__left,
.app-header__right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.app-header__left {
  gap: 18px;
}

.app-header__right {
  gap: 9px;
}

.app-header__brand {
  display: none;
}

.app-header__cta {
  display: none;
  min-height: 36px;
  padding: 0 12px;
  font-size: 11.5px;
}

.app-header__cta svg {
  width: 14px;
  height: 14px;
}

.app-header__crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.app-header__crumb > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-header__crumb strong {
  color: var(--ink);
  font-weight: 800;
}

.app-header__sep {
  color: var(--line-strong);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 238px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.header-search:focus-within {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(31, 59, 224, 0.1);
}

.header-search svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--muted);
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11.5px;
}

.header-search input::placeholder {
  color: var(--muted);
}

.header-search kbd {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.app-main {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 32px 56px;
}

.overview-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 42px;
  align-items: center;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 30px 32px;
  border-radius: 14px;
  background: var(--cobalt);
  color: var(--paper-2);
}

.overview-hero::before,
.overview-hero::after {
  position: absolute;
  border: 1px solid rgba(250, 246, 236, 0.16);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.overview-hero::before {
  top: -210px;
  right: -90px;
  width: 460px;
  height: 460px;
}

.overview-hero::after {
  top: -130px;
  right: 34px;
  width: 300px;
  height: 300px;
}

.overview-hero__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.overview-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.overview-hero__eyebrow::before {
  width: 18px;
  height: 1px;
  background: var(--lime);
  content: "";
}

.overview-hero h1 {
  max-width: 18ch;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.4vw, 46px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.overview-hero h1 em {
  color: var(--lime);
  font-style: italic;
}

.overview-hero p {
  max-width: 56ch;
  margin-top: 10px;
  color: rgba(250, 246, 236, 0.76);
  font-size: 12.5px;
}

.overview-hero p strong {
  color: var(--paper-2);
  font-weight: 800;
}

.overview-hero__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn--lime {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}

.btn--lime:hover {
  border-color: #c9e447;
  background: #c9e447;
}

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

.btn--on-dark {
  border-color: rgba(250, 246, 236, 0.34);
  background: transparent;
  color: var(--paper-2);
}

.btn--on-dark:hover {
  border-color: rgba(250, 246, 236, 0.62);
  background: rgba(250, 246, 236, 0.1);
}

.hero-pulse {
  position: relative;
  z-index: 1;
  padding: 14px 15px 12px;
  border: 1px solid rgba(250, 246, 236, 0.18);
  border-radius: 12px;
  background: rgba(250, 246, 236, 0.08);
}

.hero-pulse__head,
.hero-pulse__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-pulse__head {
  color: rgba(250, 246, 236, 0.66);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-pulse__head strong {
  color: var(--lime);
  font-size: 10px;
  font-weight: 500;
}

.hero-pulse__spark {
  width: 100%;
  height: 74px;
  margin: 6px 0 2px;
  overflow: visible;
}

.hero-pulse__area {
  fill: var(--lime);
  opacity: 0.12;
}

.hero-pulse__line {
  stroke: var(--lime);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.hero-pulse__spark circle {
  fill: var(--lime);
  stroke: var(--cobalt);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.hero-pulse__foot {
  color: rgba(250, 246, 236, 0.62);
  font-size: 9px;
}

.hero-pulse__foot strong {
  color: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

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

.kpi {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  padding: 15px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(23, 20, 15, 0.04);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.kpi:hover {
  border-color: var(--line-strong);
  box-shadow: 0 4px 14px -10px rgba(23, 20, 15, 0.45);
}

.kpi__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.kpi__label {
  padding-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
}

.kpi__icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 8px;
}

.kpi__icon svg {
  width: 16px;
  height: 16px;
}

.kpi__icon--cobalt {
  background: var(--cobalt-soft);
  color: var(--cobalt);
}

.kpi__icon--lime {
  background: #eef7bf;
  color: #52620d;
}

.kpi__icon--coral {
  background: var(--coral-soft);
  color: var(--coral-ink);
}

.kpi__icon--paper {
  background: var(--paper-3);
  color: var(--ink-2);
}

.kpi__value {
  display: block;
  margin-top: 7px;
  font-size: 33px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.kpi__value small {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.kpi__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
}

.delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.delta svg {
  width: 10px;
  height: 10px;
}

.delta--up,
.delta--good {
  background: var(--green-soft);
  color: var(--green);
}

.delta--down {
  background: var(--coral-soft);
  color: var(--coral-ink);
}

.sparkline {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 33px;
  color: var(--cobalt);
  pointer-events: none;
}

.sparkline__area {
  fill: currentColor;
  opacity: 0.09;
}

.sparkline__line {
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.72;
  vector-effect: non-scaling-stroke;
}

.sparkline--cobalt {
  color: var(--cobalt);
}

.sparkline--green {
  color: var(--green);
}

.sparkline--coral {
  color: var(--coral);
}

.sparkline--ink {
  color: var(--ink-2);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "performance performance goal"
    "recent recent channels"
    "attention attention activity";
  gap: 16px;
  align-items: stretch;
}

.panel--performance {
  grid-area: performance;
}

.panel--goal {
  grid-area: goal;
}

.panel--recent {
  grid-area: recent;
}

.panel--channels {
  grid-area: channels;
}

.panel--attention {
  grid-area: attention;
}

.panel--activity {
  grid-area: activity;
}

.overview-grid .panel {
  margin-top: 0;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(23, 20, 15, 0.04);
}

.overview-grid .panel + .panel {
  margin-top: 0;
}

.overview-grid .panel__head {
  align-items: flex-start;
  padding: 15px 18px;
}

.overview-grid .panel__head h2 {
  font-size: 19px;
}

.panel__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.segmented button {
  padding: 5px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.segmented button:hover {
  color: var(--ink);
}

.segmented button.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(23, 20, 15, 0.09);
}

.chart-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 18px 0;
}

.chart-summary > strong {
  font-size: 33px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.chart-summary > span:nth-child(2) {
  color: var(--muted);
  font-size: 10px;
}

.chart-summary .delta {
  margin-left: auto;
}

.bar-chart {
  position: relative;
  height: 204px;
  margin: 12px 18px 16px;
}

.bar-chart__grid {
  position: absolute;
  inset: 0 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bar-chart__grid span {
  border-top: 1px dashed var(--line);
  opacity: 0.72;
}

.bar-chart__cols {
  position: absolute;
  inset: 0 0 20px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.bar-col {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
}

.bar-col__fill {
  display: block;
  width: 100%;
  max-width: 40px;
  border-radius: 5px 5px 2px 2px;
  background: var(--cobalt);
  opacity: 0.84;
  transition: background 150ms ease, opacity 150ms ease;
}

.bar-col:nth-child(1) .bar-col__fill {
  height: 34%;
}

.bar-col:nth-child(2) .bar-col__fill {
  height: 56%;
}

.bar-col:nth-child(3) .bar-col__fill {
  height: 48%;
}

.bar-col:nth-child(4) .bar-col__fill {
  height: 78%;
}

.bar-col:nth-child(5) .bar-col__fill {
  height: 66%;
}

.bar-col:nth-child(6) .bar-col__fill {
  height: 28%;
}

.bar-col:nth-child(7) .bar-col__fill {
  height: 46%;
  background: var(--lime);
  opacity: 1;
  box-shadow: inset 0 0 0 1px rgba(23, 20, 15, 0.15);
}

.bar-col:hover .bar-col__fill {
  background: var(--coral);
  opacity: 1;
}

.bar-col:nth-child(7):hover .bar-col__fill {
  background: var(--coral);
}

.bar-col small {
  position: absolute;
  bottom: -19px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1;
}

.panel--goal {
  display: flex;
  flex-direction: column;
}

.goal-ring {
  position: relative;
  width: 148px;
  height: 148px;
  margin: 16px auto 8px;
}

.goal-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.goal-ring__track,
.goal-ring__value {
  fill: none;
  stroke-width: 9;
}

.goal-ring__track {
  stroke: var(--paper-3);
}

.goal-ring__value {
  stroke: var(--cobalt);
  stroke-linecap: round;
  stroke-dasharray: 351.86;
  stroke-dashoffset: 98.52;
}

.goal-ring__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.goal-ring__center strong {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.goal-ring__center span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.goal-copy {
  padding: 0 18px;
  color: var(--muted);
  font-size: 10.5px;
  text-align: center;
}

.goal-copy strong {
  color: var(--ink);
  font-weight: 800;
}

.goal-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 18px 0;
  color: var(--muted);
  font-size: 9px;
}

.goal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.goal-legend strong {
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
}

.goal-legend__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.goal-legend__dot--cobalt {
  background: var(--cobalt);
}

.goal-legend__dot--line {
  background: var(--paper-3);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.panel--goal .btn {
  width: auto;
  margin: 16px 18px 18px;
}

.mini-table {
  display: flex;
  flex-direction: column;
}

.mini-table__head,
.mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.45fr) 0.68fr 0.55fr 16px;
  gap: 10px;
  align-items: center;
}

.mini-table__head {
  padding: 9px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mini-row {
  padding: 9px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 150ms ease;
}

.mini-row:hover {
  background: var(--paper);
}

.mini-row__product {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.mini-row__product img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-3);
  object-fit: cover;
}

.mini-row__product > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mini-row__product strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-row__product small {
  color: var(--muted);
  font-size: 8px;
}

.mini-row__channels {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}

.mini-row__channels .status {
  min-height: 21px;
  padding: 2px 6px;
  font-size: 8.5px;
}

.mini-row__channels .status__mark {
  font-size: 7px;
}

.mini-row > .status {
  min-height: 21px;
  padding: 2px 6px;
  font-size: 8.5px;
}

.mini-row__time {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  white-space: nowrap;
}

.mini-row__chev,
.attention-row__chev {
  width: 14px;
  height: 14px;
  color: var(--line-strong);
}

.mini-row__chev svg,
.attention-row__chev svg {
  width: 14px;
  height: 14px;
}

.mini-row:hover .mini-row__chev {
  color: var(--cobalt);
}

.channel-progress {
  padding: 11px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.channel-progress__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.channel-progress__name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 800;
}

.channel-progress__name .mono-mark {
  width: 23px;
  height: 23px;
  font-size: 7.5px;
}

.channel-progress__head > strong {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.channel-progress progress {
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--paper-3);
  appearance: none;
}

.channel-progress progress::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--paper-3);
}

.channel-progress progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--cobalt);
}

.channel-progress progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--cobalt);
}

.channel-progress small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 8.5px;
}

.text-warn {
  color: var(--coral-ink);
  font-weight: 700;
}

.attention-list {
  display: flex;
  flex-direction: column;
}

.attention-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 16px;
  gap: 11px;
  align-items: center;
  padding: 9px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 150ms ease;
}

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

.attention-row:hover {
  background: var(--paper);
}

.attention-row img {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-3);
  object-fit: cover;
}

.attention-row__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.attention-row__body strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attention-row__body small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attention-row > .status {
  min-height: 22px;
  padding: 2px 7px;
  font-size: 8.5px;
}

.attention-row:hover .attention-row__chev {
  color: var(--coral-ink);
}

.live-dot {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.activity-feed {
  padding: 9px 18px 10px;
}

.activity-feed li {
  position: relative;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
}

.activity-feed li:not(:last-child)::before {
  position: absolute;
  top: 20px;
  bottom: -2px;
  left: 3.5px;
  width: 1px;
  background: var(--line);
  content: "";
}

.activity-feed__dot {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}

.activity-feed__dot--green {
  background: var(--green);
}

.activity-feed__dot--amber {
  background: var(--amber);
}

.activity-feed__dot--cobalt {
  background: var(--cobalt);
}

.activity-feed__dot--line {
  background: var(--line-strong);
}

.activity-feed p {
  color: var(--ink-2);
  font-size: 10.5px;
  line-height: 1.4;
}

.activity-feed p strong {
  color: var(--ink);
  font-weight: 800;
}

.activity-feed small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
}

@media (min-width: 901px) {
  .app-body {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    grid-template-rows: 64px minmax(0, 1fr);
  }

  .app-sidebar {
    position: sticky;
    top: 0;
    grid-column: 1;
    grid-row: 1 / -1;
    height: 100vh;
  }

  .app-header {
    position: sticky;
    top: 0;
    z-index: 40;
    grid-column: 2;
    grid-row: 1;
  }

  .app-main {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 1320px) {
  .mini-table__head span:nth-child(4),
  .mini-row__time {
    display: none;
  }

  .mini-table__head,
  .mini-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.45fr) 0.68fr 16px;
  }
}

@media (max-width: 1200px) {
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "performance performance"
      "goal channels"
      "recent recent"
      "attention attention"
      "activity activity";
  }

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

@media (max-width: 1150px) {
  .overview-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .hero-pulse {
    display: none;
  }
}

@media (max-width: 900px) {
  .app-body {
    display: block;
  }

  .app-sidebar {
    display: none;
  }

  .app-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: 60px;
    padding: 0 18px;
  }

  .app-header__brand {
    display: inline-flex;
  }

  .app-header__brand .brand__mark {
    width: 30px;
    height: 30px;
    font-size: 19px;
  }

  .app-header__brand .brand__name {
    font-size: 19px;
  }

  .app-header__crumb {
    display: none;
  }

  .app-header__cta {
    display: inline-flex;
  }

  .app-main {
    padding: 22px 20px 92px;
  }
}

@media (max-width: 760px) {
  .header-search {
    display: none;
  }

  .app-header {
    gap: 12px;
  }

  .app-header__right {
    gap: 6px;
  }

  .overview-hero {
    padding: 24px 22px;
  }

  .overview-hero h1 {
    font-size: clamp(32px, 8vw, 40px);
  }

  .hero-pulse {
    display: none;
  }

  .overview-hero__actions .btn {
    flex: 1;
  }

  .bar-chart {
    height: 178px;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .overview-hero {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
  }

  .hero-pulse {
    display: block;
  }
}

@media (max-width: 620px) {
  .kpi-grid {
    gap: 10px;
  }

  .kpi {
    min-height: 138px;
    padding: 13px 13px 12px;
  }

  .kpi__value {
    font-size: 29px;
  }

  .kpi__label {
    font-size: 9.5px;
  }

  .kpi__icon {
    width: 27px;
    height: 27px;
  }

  .kpi__icon svg {
    width: 14px;
    height: 14px;
  }

  .overview-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "performance"
      "goal"
      "recent"
      "channels"
      "attention"
      "activity";
    gap: 12px;
  }

  .overview-grid .panel__head {
    padding: 13px 15px;
  }

  .chart-summary {
    padding: 12px 15px 0;
  }

  .bar-chart {
    margin: 10px 15px 16px;
  }

  .mini-table__head {
    display: none;
  }

  .mini-row {
    grid-template-columns: minmax(0, 1fr) auto 16px;
    gap: 8px;
    padding: 10px 15px;
  }

  .mini-row__channels {
    display: none;
  }

  .mini-row > .status {
    justify-self: end;
  }

  .channel-progress,
  .attention-row,
  .activity-feed {
    padding-right: 15px;
    padding-left: 15px;
  }

  .panel--goal .btn {
    margin-right: 15px;
    margin-left: 15px;
  }

  .app-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .app-header {
    padding: 0 14px;
  }

  .app-main {
    padding: 18px 14px 90px;
  }

  .kpi {
    min-height: 132px;
  }

  .overview-hero {
    padding: 22px 18px;
  }

  .overview-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .overview-hero__actions .btn {
    width: 100%;
  }

  .mini-row {
    grid-template-columns: minmax(0, 1fr) 16px;
  }

  .mini-row > .status {
    display: none;
  }

  .attention-row {
    grid-template-columns: 34px minmax(0, 1fr) 14px;
    gap: 9px;
  }

  .attention-row > .status {
    display: none;
  }

  .attention-row img {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 360px) {
  .kpi-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .wizard-actions {
    flex-wrap: wrap;
    row-gap: 12px;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .side-channels {
    display: none;
  }
}

.app-main--sales .panel {
  margin-top: 0;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(23, 20, 15, 0.04);
}

.sales-head {
  align-items: center;
}

.sales-head__actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.sales-range button {
  padding: 8px 12px;
  font-size: 9.5px;
}

.app-main--sales .btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.sales-syncline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -10px 0 18px;
  color: var(--muted);
  font-size: 10.5px;
}

.sales-syncline .live-dot {
  flex: 0 0 auto;
  margin-top: 0;
}

.sales-syncline strong {
  color: var(--ink);
  font-weight: 800;
}

.sales-syncline a {
  margin-left: auto;
  color: var(--cobalt);
  font-weight: 800;
}

.sales-syncline a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sales-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card {
  min-width: 0;
  padding: 15px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(23, 20, 15, 0.04);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.metric-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 4px 14px -10px rgba(23, 20, 15, 0.45);
  transform: translateY(-1px);
}

.metric-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.metric-card__head > span:first-child {
  padding-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
}

.metric-card__icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 8px;
}

.metric-card__icon svg {
  width: 16px;
  height: 16px;
}

.metric-card__icon--cobalt {
  background: var(--cobalt-soft);
  color: var(--cobalt);
}

.metric-card__icon--green {
  background: var(--green-soft);
  color: var(--green);
}

.metric-card__icon--amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.metric-card__icon--coral {
  background: var(--coral-soft);
  color: var(--coral-ink);
}

.metric-card__icon--ink {
  background: var(--paper-3);
  color: var(--ink-2);
}

.metric-card__value {
  display: block;
  margin-top: 9px;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.metric-card__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 9px;
  color: var(--muted);
  font-size: 9px;
}

.sales-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "chart chart mix"
    "funnel products products";
  gap: 16px;
  align-items: stretch;
}

.sales-chart-panel {
  grid-area: chart;
  display: flex;
  flex-direction: column;
}

.sales-mix-panel {
  grid-area: mix;
  display: flex;
  flex-direction: column;
}

.sales-funnel-panel {
  grid-area: funnel;
  display: flex;
  flex-direction: column;
}

.sales-products-panel {
  grid-area: products;
}

.sales-grid .panel__head {
  align-items: flex-start;
}

.sales-grid .panel__head h2 {
  font-size: 19px;
}

.sales-chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 8.5px;
  white-space: nowrap;
}

.sales-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.legend-dot--current {
  background: var(--cobalt);
}

.legend-dot--prev {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.legend-dot--ml {
  background: var(--cobalt);
}

.legend-dot--sh {
  background: var(--coral);
}

.legend-dot--mg {
  background: var(--amber);
}

.sales-chart-panel .chart-summary {
  padding-top: 15px;
}

.sales-chart {
  position: relative;
  flex: 1;
  min-height: 230px;
  margin: 14px 18px 10px;
}

.sales-chart svg {
  width: 100%;
  height: 220px;
}

.sales-chart__grid line {
  stroke: var(--line);
  stroke-dasharray: 3 5;
  opacity: 0.8;
  vector-effect: non-scaling-stroke;
}

.sales-chart__area {
  fill: var(--cobalt);
  opacity: 0.1;
}

.sales-chart__line {
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.sales-chart__prev {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.4;
  stroke-dasharray: 4 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.sales-chart__labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1;
}

.sales-chart__labels span {
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}

.sales-chart__foot,
.sales-product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  font-size: 9px;
}

.sales-mix {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 20px 18px 16px;
}

.sales-donut {
  position: relative;
  width: 164px;
  height: 164px;
  margin: 0 auto;
}

.sales-donut svg {
  width: 100%;
  height: 100%;
}

.sales-donut circle {
  fill: none;
  stroke-width: 14;
}

.sales-donut__track {
  stroke: var(--paper-3);
}

.sales-donut__seg {
  stroke-linecap: butt;
}

.sales-donut__seg--ml {
  stroke: var(--cobalt);
}

.sales-donut__seg--sh {
  stroke: var(--coral);
}

.sales-donut__seg--mg {
  stroke: var(--amber);
}

.sales-donut__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
}

.sales-donut__center strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.sales-donut__center span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sales-mix__legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.sales-mix__legend li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.sales-mix__legend strong {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
}

.sales-mix__legend small {
  display: block;
  color: var(--muted);
  font-size: 8.5px;
}

.sales-mix__legend > li > span:last-child {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
}

.sales-funnel {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  padding: 18px;
}

.funnel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
}

.funnel-row__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  grid-column: 1;
  color: var(--muted);
  font-size: 9.5px;
}

.funnel-row__meta strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
}

.funnel-row__pct {
  grid-column: 2;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  text-align: right;
}

.funnel-track {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-3);
}

.funnel-fill {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: var(--cobalt);
  opacity: 0.8;
  transition: width 240ms ease;
}

.funnel-fill--muted {
  background: var(--line-strong);
  opacity: 1;
}

.funnel-fill--coral {
  background: var(--coral);
  opacity: 1;
}

.funnel-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9.5px;
}

.funnel-foot strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.funnel-foot .delta {
  margin-left: auto;
}

.sales-product-table {
  display: flex;
  flex-direction: column;
}

.sales-product-table__head,
.sales-product-row {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) 88px 44px 90px 52px 64px;
  gap: 10px;
  align-items: center;
}

.sales-product-table__head {
  padding: 9px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sales-product-row {
  padding: 9px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 150ms ease;
}

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

.sales-product-row:hover {
  background: var(--paper);
}

.sales-product-row__name {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.sales-product-row__name img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.sales-product-row__name > div {
  min-width: 0;
}

.sales-product-row__name strong {
  display: block;
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-product-row__name small {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
}

.sales-product-row > strong {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  white-space: nowrap;
}

.sales-product-row > span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  white-space: nowrap;
}

.channel-dots {
  display: flex;
  gap: 3px;
}

.channel-mark {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 6.5px;
  font-weight: 500;
}

.channel-mark--ml {
  background: #ffe600;
  color: #17140f;
}

.channel-mark--sh {
  background: #ee4d2d;
  color: #fff;
}

.channel-mark--mg {
  background: #0086ff;
  color: #fff;
}

.stock-pill {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  padding: 3px 6px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  white-space: nowrap;
}

.stock-pill--ok {
  background: var(--green-soft);
  color: var(--green);
}

.stock-pill--low {
  background: var(--coral-soft);
  color: var(--coral-ink);
}

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

.sales-section-head h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.sales-section-head h2 em {
  color: var(--cobalt);
  font-style: italic;
}

.sales-section-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
}

.sales-section-head .btn {
  flex: 0 0 auto;
}

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

.sales-channel-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(23, 20, 15, 0.04);
}

.sales-channel-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.sales-channel-card__id {
  min-width: 0;
}

.sales-channel-card__id h3 {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-channel-card__id small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
}

.sales-rating svg {
  width: 12px;
  height: 12px;
  fill: #e9a800;
  stroke: #e9a800;
  stroke-width: 1;
}

.sales-channel-card__revenue {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.sales-channel-card__revenue > span:first-child {
  width: 100%;
  color: var(--muted);
  font-size: 9px;
}

.sales-channel-card__revenue > span:first-child em {
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 8px;
  font-style: normal;
}

.sales-channel-card__revenue > strong {
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.sales-channel-card__revenue .delta {
  margin-left: auto;
}

.sales-channel-card__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.sales-channel-card__metrics > div {
  min-width: 0;
  padding: 10px 16px;
  background: var(--surface);
}

.sales-channel-card__metrics span,
.sales-channel-card__ads span {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.sales-channel-card__metrics strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-channel-card__ads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.sales-channel-card__ads > div {
  padding: 10px 16px;
  background: var(--surface);
}

.sales-channel-card__ads strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
}

.sales-channel-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
}

.sales-channel-card__foot .status {
  gap: 6px;
  padding: 0;
  background: transparent;
  color: var(--green);
  font-size: 8.5px;
}

.sales-channel-card__foot .live-dot {
  width: 5px;
  height: 5px;
  margin-top: 0;
  box-shadow: 0 0 0 3px var(--green-soft);
}

.sales-channel-card__foot a {
  color: var(--cobalt);
  font-size: 9px;
  font-weight: 800;
}

.sales-channel-card__foot a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sales-grid--bottom {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, 1.08fr);
  grid-template-areas: none;
  margin-top: 16px;
}

.sales-grid--bottom > .panel {
  display: flex;
  flex-direction: column;
}

.sales-ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  flex: 1;
  background: var(--line);
}

.sales-ops-item {
  padding: 12px 16px;
  background: var(--surface);
}

.sales-ops-item > span {
  display: block;
  color: var(--muted);
  font-size: 8.5px;
}

.sales-ops-item > strong {
  display: block;
  margin-top: 3px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.sales-ops-item > small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
}

.sales-ads-hero {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.sales-ads-hero > span:first-child {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.sales-ads-hero > strong {
  display: block;
  margin-top: 3px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.sales-ads-hero .delta {
  margin-top: 9px;
}

.sales-ads-hero .delta strong {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
}

.sales-ads-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  flex: 1;
  background: var(--line);
}

.sales-ads-grid > div {
  padding: 11px 18px;
  background: var(--surface);
}

.sales-ads-grid span {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.sales-ads-grid strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sales-payout-hero {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.sales-payout-hero strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.sales-payout-hero span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.sales-payout-list {
  flex: 1;
}

.sales-payout-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1px 10px;
  padding: 9px 18px;
  border-bottom: 1px solid var(--line);
}

.sales-payout-list span {
  font-size: 9.5px;
  font-weight: 700;
}

.sales-payout-list strong {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
}

.sales-payout-list small {
  grid-column: 1;
  color: var(--muted);
  font-size: 7.5px;
}

.sales-payout-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  color: var(--muted);
  font-size: 8px;
}

.sales-payout-meta strong {
  display: block;
  margin-top: 1px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
}

.sales-api-panel {
  margin-top: 16px;
}

.sales-api-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sales-api-card {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.sales-api-card:last-child {
  border-right: 0;
}

.sales-api-card header {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sales-api-card header > div {
  min-width: 0;
}

.sales-api-card header strong {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
}

.sales-api-card header small {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.sales-api-card header .status {
  margin-left: auto;
  flex: 0 0 auto;
}

.sales-api-card p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 10.5px;
  line-height: 1.45;
}

.sales-api-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 8.5px;
}

.sales-api-card__foot strong {
  color: var(--ink-2);
  font-weight: 700;
}

.sales-api-card__foot a {
  color: var(--cobalt);
  font-weight: 800;
  white-space: nowrap;
}

.sales-api-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 8.5px;
}

.sales-api-note .mono {
  font-size: 8.5px;
}

@media (max-width: 1200px) {
  .sales-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "chart chart"
      "mix funnel"
      "products products";
  }

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

  .sales-channel-card__metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sales-grid--bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: none;
  }

  .sales-payout-panel {
    grid-column: 1 / -1;
  }

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

  .sales-api-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sales-api-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 900px) {
  .sales-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "chart"
      "mix"
      "funnel"
      "products";
  }

  .sales-channel-card__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-grid--bottom {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: none;
  }

  .sales-payout-panel {
    grid-column: auto;
  }

  .sales-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .sales-section-head .btn {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .sales-head {
    align-items: stretch;
  }

  .sales-head__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sales-range {
    width: 100%;
  }

  .sales-range button {
    flex: 1;
  }

  .sales-head__actions .btn {
    width: 100%;
  }

  .sales-syncline {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: -6px;
    line-height: 1.4;
  }

  .sales-syncline .live-dot {
    margin-top: 4px;
  }

  .sales-syncline a {
    width: 100%;
    margin-left: 16px;
  }

  .sales-kpi-grid {
    gap: 10px;
  }

  .metric-card {
    padding: 13px 13px 12px;
  }

  .metric-card__value {
    font-size: 23px;
  }

  .metric-card__foot {
    gap: 5px;
  }

  .sales-chart {
    min-height: 200px;
    margin-right: 14px;
    margin-left: 14px;
  }

  .sales-chart svg {
    height: 190px;
  }

  .sales-chart-legend {
    width: 100%;
    margin-top: 8px;
    white-space: normal;
  }

  .sales-chart__labels {
    font-size: 7px;
  }

  .sales-mix {
    padding: 18px 16px 14px;
  }

  .sales-funnel {
    padding: 16px;
  }

  .sales-product-table__head,
  .sales-product-row {
    grid-template-columns: minmax(0, 1fr) 42px 82px;
    gap: 8px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .sales-product-table__head span:nth-child(2),
  .sales-product-table__head span:nth-child(5),
  .sales-product-table__head span:nth-child(6),
  .sales-product-row .channel-dots,
  .sales-product-row > span:nth-child(5),
  .sales-product-row > span:nth-child(6) {
    display: none;
  }

  .sales-product-row__name img {
    width: 34px;
    height: 34px;
  }

  .sales-channel-card__top,
  .sales-channel-card__revenue,
  .sales-channel-card__metrics > div,
  .sales-channel-card__ads > div,
  .sales-channel-card__foot {
    padding-right: 14px;
    padding-left: 14px;
  }

  .sales-channel-card__revenue > strong {
    font-size: 27px;
  }

  .sales-channel-card__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-grid--bottom {
    margin-top: 14px;
  }

  .sales-api-note {
    align-items: flex-start;
  }
}

@media (max-width: 360px) {
  .sales-kpi-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sales-range button {
    padding: 7px 6px;
    font-size: 9px;
  }

  .sales-product-table__head,
  .sales-product-row {
    grid-template-columns: minmax(0, 1fr) 38px 76px;
    gap: 6px;
  }

  .sales-product-row__name strong {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Guias de conexão de canais */
.guides-panel {
  margin-top: 28px;
}

.guide {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2, #fff);
  margin-bottom: 10px;
  overflow: hidden;
}

.guide__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.guide__head::-webkit-details-marker {
  display: none;
}

.guide__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: auto;
}

.guide__title strong {
  font-size: 14px;
}

.guide__title small {
  color: var(--muted);
  font-size: 11px;
}

.guide__chev {
  color: var(--muted);
  transition: transform .2s ease;
}

.guide[open] .guide__chev {
  transform: rotate(180deg);
}

.guide__body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.guide__steps {
  list-style: decimal;
  padding-left: 20px;
  margin: 14px 0;
  display: grid;
  gap: 9px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2, var(--ink));
}

.guide__steps code {
  display: inline-block;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  background: var(--paper-3, #f4f2ec);
  padding: 3px 6px;
  border-radius: var(--radius-sm, 6px);
  word-break: break-all;
}

.guide__steps a {
  color: var(--cobalt);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guide__note {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.guide__disclaimer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}

@media (max-width: 640px) {
  .guide__body {
    padding: 0 12px 14px;
  }
  .guide__steps {
    font-size: 12.5px;
  }
}

/* Formulários de credenciais das integrações */
.guide__form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.guide__form .field {
  margin: 0;
}

.guide__form .field label {
  font-size: 11px;
}

.guide__form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.guide__form-status {
  font-size: 12px;
  color: var(--muted);
}

.guide__form-status--ok {
  color: var(--green);
}

/* ============================================================
   Marketplaces — cards, filtros e guias geradas a partir do catálogo
   ============================================================ */

.mp-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 16px;
  flex-wrap: wrap;
}

.mp-filter__btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink-2);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.mp-filter__btn:hover {
  border-color: var(--line-strong);
}

.mp-filter__btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.mp-filter__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.channel-grid__loading {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 14px;
  padding: 20px 0;
}

.mp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0 2px;
}

.mp-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}

.side-channels__empty {
  font-size: 12px;
  color: var(--muted);
  padding: 4px 12px 10px;
  margin: 0;
}

.guide-search {
  margin: 0 0 14px;
}

.guide-search input {
  width: 100%;
  max-width: 340px;
  font-family: var(--font-ui);
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  color: var(--ink);
}

.guide__subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 16px 0 8px;
}

.guide__reqs {
  margin: 0 0 6px;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
}

.mp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px 0 6px;
}

.mp-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--cobalt);
  text-decoration: none;
  border-bottom: 1px solid var(--cobalt-soft);
}

.mp-links a:hover {
  border-bottom-color: var(--cobalt);
}

.mp-redirect {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
}

.mp-redirect > span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.mp-redirect code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  word-break: break-all;
  flex: 1 1 260px;
}

/* ============================================================
   ADMINISTRACAO DA PLATAFORMA (super-admin)
   ============================================================ */
.kpi-grid--admin {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1280px) {
  .kpi-grid--admin {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .kpi-grid--admin {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.kpi--admin {
  min-height: 124px;
}

.kpi--admin .kpi__value {
  font-size: 30px;
}

.workspace--admin {
  cursor: default;
}

.store-logo--admin {
  background: var(--ink);
  color: var(--paper);
}

.channel-card__logo--admin {
  background: var(--ink);
  color: var(--paper);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.data-table th {
  padding: 11px 14px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: var(--surface-2);
}

.data-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.data-table small {
  color: var(--muted);
  font-size: 11px;
}

.vazio {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

.detalhe-loja {
  background: var(--surface-2);
}

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

.detalhe-cols h4 {
  margin: 0 0 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.detalhe-cols ul {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}

@media (max-width: 720px) {
  .detalhe-cols {
    grid-template-columns: 1fr;
  }
}

.mp-list {
  display: grid;
  gap: 10px;
}

.mp-item {
  margin-bottom: 0;
}

.mp-status {
  margin-bottom: 10px;
}

.mp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 10px 0 4px;
}

.mp-links a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cobalt);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.mp-links a:hover {
  border-bottom-color: var(--cobalt);
}

.mp-badge {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding-right: 0.5rem;
}

.mp-badge .status {
  font-size: 9.5px;
  padding: 3px 7px;
}

/* ============================================================
   ONBOARDING — "vamos conectar suas contas?"
   ============================================================ */
.app-header--standalone {
  border-bottom: 1px solid var(--line);
}

.app-main--narrow {
  max-width: 940px;
  margin-inline: auto;
  padding: 32px 20px 64px;
}

.onb-progress {
  margin: 26px 0 30px;
}

.onb-progress__bar {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.onb-progress__bar span {
  display: block;
  height: 100%;
  background: var(--cobalt);
  border-radius: 999px;
  transition: width 400ms ease;
}

.onb-progress__text {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.onb-lista {
  display: grid;
  gap: 26px;
}

.onb-group h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.onb-group > p {
  margin: 0 0 11px;
  font-size: 13.5px;
  color: var(--muted);
}

.onb-group__list {
  display: grid;
  gap: 8px;
}

.onb-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.onb-item__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.onb-item__body strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.onb-item__body small {
  color: var(--muted);
  font-size: 12px;
}

.onb-item__action {
  flex-shrink: 0;
}

.onb-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.onb-note {
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.onb-note a {
  color: var(--cobalt);
}

@media (max-width: 620px) {
  .onb-item {
    flex-wrap: wrap;
  }
  .onb-item__action {
    width: 100%;
    padding-left: 55px;
  }
}

/* Na tela de onboarding nao ha sidebar: a marca precisa aparecer no topo */
.app-header--standalone .app-header__brand {
  display: inline-flex;
}
