:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --bg-elevated: rgba(255, 255, 255, 0.88);
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-strong: #eef2f7;
  --ink: #102033;
  --ink-soft: #344054;
  --muted: #667085;
  --muted-2: #98a2b3;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;
  --brand: #d94f04;
  --brand-strong: #9a3412;
  --brand-soft: #fff1e8;
  --success: #079455;
  --success-strong: #067647;
  --success-soft: #ecfdf3;
  --warning: #dc6803;
  --warning-soft: #fff8eb;
  --danger: #d92d20;
  --danger-soft: #fff1f0;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 10px 30px rgba(16, 24, 40, 0.07), 0 2px 6px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 24px 70px rgba(16, 24, 40, 0.12), 0 4px 16px rgba(16, 24, 40, 0.06);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b101b;
  --bg-elevated: rgba(17, 24, 39, 0.88);
  --surface: #111827;
  --surface-soft: #161f2e;
  --surface-strong: #202a3a;
  --ink: #f4f6fb;
  --ink-soft: #d0d5dd;
  --muted: #98a2b3;
  --muted-2: #667085;
  --line: #263244;
  --line-strong: #344054;
  --brand: #fb923c;
  --brand-strong: #fdba74;
  --brand-soft: rgba(249, 115, 22, 0.14);
  --success: #32d583;
  --success-strong: #6ce9a6;
  --success-soft: rgba(18, 183, 106, 0.12);
  --warning: #fdb022;
  --warning-soft: rgba(247, 144, 9, 0.12);
  --danger: #f97066;
  --danger-soft: rgba(240, 68, 56, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.24);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(15, 45, 75, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 45, 75, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  transition: background-color 180ms ease, color 180ms ease;
}

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

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

button {
  color: inherit;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.hidden {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--surface);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(130px);
  opacity: 0.16;
}

.ambient--one {
  top: -260px;
  right: 5%;
  background: #fb923c;
}

.ambient--two {
  bottom: -300px;
  left: 22%;
  background: #2563eb;
  opacity: 0.1;
}

.system-banner {
  position: relative;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--danger);
  color: white;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
}

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  width: 268px;
  flex-direction: column;
  border-right: 0;
  background: linear-gradient(180deg, #0b1728 0%, #101f34 100%);
  padding: 24px 18px 20px;
  box-shadow: 10px 0 34px rgba(11, 23, 40, 0.1);
  color: #f8fafc;
}

.brand-lockup,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 13px;
  background: linear-gradient(145deg, #fb923c, #c2410c);
  box-shadow: 0 10px 24px rgba(217, 79, 4, 0.26);
  color: #fff;
}

.brand-mark svg {
  width: 23px;
  height: 23px;
}

.brand-lockup strong,
.mobile-brand strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-lockup span,
.mobile-brand span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.brand-lockup strong {
  color: #fff;
}

.brand-lockup span {
  color: #94a3b8;
}

.sidebar-nav {
  display: grid;
  gap: 7px;
  margin-top: 42px;
}

.nav-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: #cbd5e1;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}

.nav-item.is-active {
  border-color: rgba(251, 146, 60, 0.24);
  background: rgba(249, 115, 22, 0.14);
  color: #fdba74;
}

.nav-item > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.nav-item strong,
.nav-item small {
  display: block;
}

.nav-item strong {
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-item small {
  margin-top: 1px;
  color: #8291a6;
  font-size: 0.72rem;
  font-weight: 500;
}

.sidebar-foot {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.privacy-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--success);
}

.privacy-note strong,
.privacy-note small {
  display: block;
}

.privacy-note strong {
  font-size: 0.75rem;
}

.privacy-note small {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 0.68rem;
  line-height: 1.4;
}

.support-link {
  display: flex;
  justify-content: space-between;
  padding: 8px 11px;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.support-link:hover {
  color: var(--success);
}

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

.app-shell:has(.sidebar:not(.hidden)) .app-main {
  margin-left: 268px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 12px clamp(18px, 3vw, 42px);
  backdrop-filter: blur(24px);
}

.mobile-brand {
  display: none;
}

.page-identity span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-identity h1 {
  margin: 1px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.topbar-actions,
.user-menu,
.user-summary {
  display: flex;
  align-items: center;
}

.topbar-actions {
  gap: 10px;
  margin-left: auto;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease, background 160ms ease;
}

.icon-button:hover {
  border-color: var(--line-strong);
  color: var(--brand);
  transform: translateY(-1px);
}

.icon-button:active {
  transform: translateY(0);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.icon-button--danger:hover {
  border-color: rgba(217, 45, 32, 0.25);
  background: var(--danger-soft);
  color: var(--danger);
}

.theme-icon--sun,
:root[data-theme="dark"] .theme-icon--moon {
  display: none;
}

:root[data-theme="dark"] .theme-icon--sun {
  display: block;
}

.user-menu {
  gap: 8px;
  border-left: 1px solid var(--line);
  margin-left: 2px;
  padding-left: 12px;
}

.user-summary {
  gap: 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  padding: 3px 7px 3px 3px;
  text-align: left;
  cursor: pointer;
}

.user-summary:hover {
  background: var(--surface-soft);
}

.user-summary img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--surface-strong);
  object-fit: cover;
}

.user-summary strong,
.user-summary small {
  display: block;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-summary strong {
  font-size: 0.8rem;
  font-weight: 700;
}

.user-summary small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.text-button:hover {
  color: var(--brand-strong);
}

.text-button--danger {
  color: var(--danger);
}

.content {
  width: min(100%, 1440px);
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: 34px clamp(18px, 3vw, 44px) 64px;
}

.auth-view {
  display: grid;
  min-height: calc(100vh - 142px);
  padding-block: 20px;
  place-items: center;
}

.auth-card {
  position: relative;
  display: grid;
  width: min(100%, 1180px);
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.auth-copy {
  position: relative;
  padding: clamp(42px, 5vw, 68px);
  overflow: hidden;
}

.auth-copy::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -130px;
  width: 280px;
  height: 280px;
  border: 52px solid var(--brand-soft);
  border-radius: 50%;
  pointer-events: none;
}

.auth-badge,
.local-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 7px 11px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.auth-badge span,
.local-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-soft);
}

.auth-copy h1 {
  max-width: 650px;
  margin: 24px 0 18px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.5rem, 4.6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.auth-copy h1 em {
  color: var(--brand);
  font-style: normal;
}

.auth-copy > p:not(.auth-fineprint) {
  max-width: 590px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.auth-fineprint {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.auth-proof {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 28px;
}

.auth-proof span {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 11px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.auth-proof strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 0.78rem;
}

.auth-features {
  display: grid;
  align-content: center;
  gap: 0;
  border-left: 1px solid var(--line);
  background: var(--surface-soft);
  padding: clamp(28px, 4vw, 48px);
}

.auth-features__heading {
  margin-bottom: 10px;
}

.auth-features__heading h2 {
  margin: 5px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.auth-features article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.auth-features article:last-child {
  border-bottom: 0;
}

.auth-features article > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--brand);
  font-family: "Manrope", sans-serif;
  font-size: 0.73rem;
  font-weight: 800;
}

.auth-features strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
}

.auth-features p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.auth-flow {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(7, auto);
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 17px 24px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.auth-flow span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.auth-flow b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: "Manrope", sans-serif;
}

.auth-flow i {
  color: var(--muted-2);
  font-style: normal;
}

.expired-panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--surface);
  padding: 42px;
  text-align: center;
}

.expired-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--danger-soft);
  color: var(--danger);
  font-family: "Manrope", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
}

.expired-panel > span {
  margin-top: 18px;
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.expired-panel h2 {
  margin: 6px 0 8px;
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
}

.expired-panel p {
  margin: 0 0 22px;
  color: var(--muted);
}

.expired-panel .text-button {
  margin-top: 16px;
}

.workspace {
  animation: enter 240ms ease both;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.workspace-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.eyebrow {
  display: block;
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.workspace-heading h2 {
  margin: 4px 0 5px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.workspace-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.platform-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  padding: 5px;
}

.platform-switch__button {
  display: flex;
  min-width: 142px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  padding: 10px 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.platform-switch__button:hover {
  color: var(--ink);
}

.platform-switch__button.is-active {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.market-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
}

.market-dot--flipkart {
  background: #2874f0;
}

.market-dot--meesho {
  background: #9f2089;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.upload-panel,
.setup-panel,
.plan-panel,
.brand-panel,
.store-panel,
.recovery-panel,
.admin-cloud-panel,
.admin-public-count {
  padding: clamp(20px, 2.4vw, 30px);
}

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

.panel-heading > div,
.cost-tools > div:first-child,
.loss-panel > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-heading h3,
.cost-tools h3,
.loss-panel h3,
.table-panel__heading h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 0.96rem;
  letter-spacing: -0.015em;
}

.panel-heading p,
.cost-tools p,
.loss-panel p,
.table-panel__heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.step-number,
.loss-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.step-number svg,
.loss-icon svg {
  width: 18px;
  height: 18px;
}

.step-number--muted {
  background: var(--surface-strong);
  color: var(--ink-soft);
}

.count-badge {
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 6px 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.upload-zone {
  position: relative;
  display: flex;
  min-height: 302px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  border: 1.5px dashed #9ebef0;
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(40, 116, 240, 0.07), rgba(40, 116, 240, 0.015));
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.upload-zone[data-platform="meesho"] {
  border-color: rgba(159, 32, 137, 0.45);
  background: linear-gradient(155deg, rgba(159, 32, 137, 0.08), rgba(159, 32, 137, 0.015));
}

.upload-zone:hover,
.upload-zone.is-dragover {
  border-color: #2874f0;
  box-shadow: inset 0 0 0 1px rgba(40, 116, 240, 0.16);
  transform: translateY(-1px);
}

.upload-zone[data-platform="meesho"]:hover,
.upload-zone[data-platform="meesho"].is-dragover {
  border-color: #9f2089;
  box-shadow: inset 0 0 0 1px rgba(159, 32, 137, 0.16);
}

.upload-zone input,
.pnl-upload input,
.logo-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-zone::after {
  content: "PDF";
  position: absolute;
  right: -16px;
  bottom: -28px;
  color: rgba(40, 116, 240, 0.06);
  font-family: "Manrope", sans-serif;
  font-size: 6.8rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  pointer-events: none;
}

.upload-zone[data-platform="meesho"]::after {
  color: rgba(159, 32, 137, 0.06);
}

.upload-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(40, 116, 240, 0.17);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: #2874f0;
}

.upload-zone[data-platform="meesho"] .upload-icon,
.upload-zone[data-platform="meesho"] #lc_platformName {
  color: #9f2089;
}

.upload-icon svg {
  width: 25px;
  height: 25px;
}

.upload-zone > strong {
  position: relative;
  z-index: 1;
  margin-top: 15px;
  font-family: "Manrope", sans-serif;
  font-size: 1.08rem;
}

.upload-zone #lc_platformName {
  color: #2874f0;
}

.upload-zone > p {
  position: relative;
  z-index: 1;
  margin: 5px 0 16px;
  color: var(--muted);
  font-size: 0.8rem;
}

.browse-chip {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  padding: 8px 13px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

.file-manager {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  padding: 14px;
}

.file-manager__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.file-list {
  display: grid;
  max-height: 184px;
  gap: 7px;
  overflow: auto;
}

.file-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 9px 10px;
}

.file-item__icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 0.62rem;
  font-weight: 800;
}

.file-item__copy {
  min-width: 0;
}

.file-item__copy strong,
.file-item__copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-item__copy strong {
  font-size: 0.76rem;
}

.file-item__copy small {
  color: var(--muted);
  font-size: 0.65rem;
}

.file-remove {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.file-remove:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

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

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.field > span small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
}

select,
input[type="text"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="email"],
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  background: var(--surface);
  color: var(--ink);
  padding: 11px 12px;
  font-size: 0.86rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

select {
  min-height: 46px;
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.logo-control {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 9px;
  cursor: pointer;
}

.logo-control:hover {
  border-color: var(--brand);
}

.logo-control--static {
  cursor: default;
}

.logo-control--static:hover {
  border-color: var(--line);
}

.logo-settings-button {
  white-space: nowrap;
}

.logo-preview {
  display: grid;
  width: 84px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.logo-preview img {
  max-width: 76px;
  max-height: 40px;
  object-fit: contain;
}

.logo-empty {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo-copy {
  min-width: 0;
}

.logo-copy strong,
.logo-copy small {
  display: block;
}

.logo-copy strong {
  font-size: 0.78rem;
}

.logo-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.66rem;
}

.logo-control > svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.toggle-row {
  position: relative;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 11px 13px;
  cursor: pointer;
}

.toggle-row > span:first-child strong,
.toggle-row > span:first-child small {
  display: block;
}

.toggle-row > span:first-child strong {
  font-size: 0.78rem;
}

.toggle-row > span:first-child small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.66rem;
}

.toggle-row input {
  position: absolute;
  opacity: 0;
}

.toggle {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 42px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background 160ms ease;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.24);
  transition: transform 160ms ease;
}

.toggle-row input:checked + .toggle {
  background: var(--brand);
}

.toggle-row input:checked + .toggle::after {
  transform: translateX(18px);
}

.toggle-row:has(input:focus-visible) {
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.setup-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

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

.button--primary {
  background: #4f46e5;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.2);
  color: #fff;
}

.button--primary:hover:not(:disabled) {
  background: #4338ca;
  box-shadow: 0 11px 24px rgba(79, 70, 229, 0.26);
}

.button--secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
}

.button--secondary:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.button--success {
  background: #079455;
  box-shadow: 0 8px 18px rgba(7, 148, 85, 0.18);
  color: #fff;
}

.button--success:hover:not(:disabled) {
  background: #067647;
  box-shadow: 0 11px 24px rgba(7, 148, 85, 0.22);
}

.button--large {
  min-height: 50px;
  padding-inline: 20px;
  font-size: 0.88rem;
}

.button--large svg {
  width: 20px;
  height: 20px;
  padding: 2px;
  border-radius: 50%;
  background: #fff;
}

.button--grow {
  flex: 1;
}

.result-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  border: 1px solid rgba(7, 148, 85, 0.22);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--success-soft), var(--surface) 48%);
  box-shadow: var(--shadow-md);
  padding: 20px 22px;
}

.result-success {
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-success > svg {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  color: var(--success);
}

.result-success strong,
.result-success span {
  display: block;
}

.result-success strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
}

.result-success span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
}

.result-metrics {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.result-metrics > div {
  min-width: 102px;
  padding: 9px 15px;
}

.result-metrics > div + div {
  border-left: 1px solid var(--line);
}

.result-metrics span,
.result-metrics strong {
  display: block;
}

.result-metrics span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
}

.result-metrics strong {
  margin-top: 1px;
  font-family: "Manrope", sans-serif;
  font-size: 1.35rem;
}

.result-actions {
  display: flex;
  gap: 9px;
}

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

.recovery-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recovery-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 13px 0 5px;
}

.recovery-item__meta {
  display: flex;
  align-items: center;
  gap: 11px;
}

.market-badge {
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.market-badge--flipkart {
  background: rgba(40, 116, 240, 0.1);
  color: #2874f0;
}

.market-badge--meesho {
  background: rgba(159, 32, 137, 0.1);
  color: #9f2089;
}

.recovery-item__copy strong,
.recovery-item__copy small {
  display: block;
}

.recovery-item__copy strong {
  font-size: 0.78rem;
}

.recovery-item__copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
}

.recovery-item__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.mini-button--share,
.mini-button--merge {
  border-color: rgba(99, 102, 241, .28);
  background: var(--brand-soft);
  color: var(--brand);
}

.mini-button--share:hover,
.mini-button--merge:hover {
  border-color: var(--brand);
}

.mini-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 7px 10px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.mini-button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.mini-button--success {
  border-color: transparent;
  background: var(--success);
  color: #fff;
}

.mini-button--danger:hover {
  border-color: rgba(217, 45, 32, 0.25);
  background: var(--danger-soft);
  color: var(--danger);
}

.pnl-upload {
  position: relative;
  display: grid;
  min-height: 150px;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  border: 1.5px dashed rgba(40, 116, 240, 0.48);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(40, 116, 240, 0.08), var(--surface));
  box-shadow: var(--shadow-md);
  padding: 28px;
  cursor: pointer;
}

.pnl-upload:hover {
  border-color: #2874f0;
}

.pnl-upload.is-dragover {
  border-color: #2874f0;
  box-shadow: inset 0 0 0 1px rgba(40, 116, 240, 0.18), var(--shadow-md);
}

.pnl-upload__icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(40, 116, 240, 0.18);
  border-radius: 16px;
  background: var(--surface);
  color: #2874f0;
}

.pnl-upload__icon svg {
  width: 26px;
  height: 26px;
}

.pnl-upload strong,
.pnl-upload p {
  display: block;
}

.pnl-upload strong {
  margin-top: 4px;
  font-family: "Manrope", sans-serif;
  font-size: 1.15rem;
}

.pnl-upload p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.pnl-results {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

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

.kpi-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.kpi-grid article > span,
.kpi-grid article > strong,
.kpi-grid article > small {
  display: block;
}

.kpi-grid article > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kpi-grid article > strong {
  overflow: hidden;
  margin-top: 9px;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kpi-grid article > small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.67rem;
}

.kpi-grid .kpi-card--accent {
  border-color: rgba(7, 148, 85, 0.24);
  background: linear-gradient(140deg, var(--success-soft), var(--surface));
}

.kpi-grid .kpi-card--accent > strong {
  color: var(--success);
}

.positive {
  color: var(--success) !important;
}

.negative {
  color: var(--danger) !important;
}

.cost-tools,
.loss-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 9px;
}

.currency-input {
  position: relative;
  width: 132px;
}

.currency-input > span {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 1;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 700;
}

.currency-input input {
  padding-left: 30px;
  font-weight: 700;
}

.table-panel {
  overflow: hidden;
}

.table-panel__heading {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.table-panel__heading--actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.table-scroll,
.store-table {
  overflow: auto;
}

.table-scroll-top {
  height: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  scrollbar-color: var(--brand) var(--surface-strong);
  scrollbar-width: auto;
}

.table-scroll-top > div { height: 1px; }

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

td {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: var(--surface-soft);
}

th.number,
td.number {
  text-align: right;
}

.sku-row--missing td {
  background: var(--warning-soft);
}

.sku-id {
  max-width: 260px;
  overflow: hidden;
  color: var(--ink);
  font-weight: 700;
  text-overflow: ellipsis;
}

.cost-input {
  width: 104px !important;
  min-height: 38px;
  padding: 8px 10px !important;
  text-align: right;
}

.cost-input.is-missing {
  border-color: var(--warning);
}

.missing-copy {
  color: var(--warning);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profit-value {
  font-weight: 700;
}

.loss-panel {
  border: 1px solid rgba(217, 45, 32, 0.17);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--danger-soft), var(--surface) 48%);
  box-shadow: var(--shadow-md);
}

.loss-icon {
  background: var(--danger-soft);
  color: var(--danger);
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(290px, 0.72fr) minmax(0, 1.28fr);
  gap: 16px;
}

.brand-panel {
  grid-column: 1;
}

.format-panel {
  grid-column: 1;
}

.store-panel {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.format-fields {
  display: grid;
  gap: 14px;
}

.format-save-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.format-save-row .setting-feedback {
  flex: 1 1 220px;
}

.account-logo-preview {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-logo-preview > span {
  display: grid;
  width: 126px;
  height: 58px;
  flex: 0 0 126px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

.account-logo-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.account-logo-preview strong,
.account-logo-preview p {
  display: block;
  margin: 0;
}

.account-logo-preview strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
}

.account-logo-preview p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.brand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.button--danger-text {
  color: var(--danger);
}

.button--danger-text:hover {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.brand-upload {
  position: relative;
  cursor: pointer;
}

.brand-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.setting-feedback {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--success);
  font-size: 0.76rem;
  font-weight: 700;
}

.account-details {
  display: grid;
  gap: 14px;
  margin: 0;
}

.account-details div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.account-details dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-details dd {
  overflow: hidden;
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-overflow: ellipsis;
}

.plan-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 18px;
}

.plan-stats div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 12px;
}

.plan-stats span,
.plan-stats strong {
  display: block;
}

.plan-stats span {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
}

.plan-stats strong {
  margin-top: 4px;
  color: var(--brand);
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
}

.store-form {
  display: grid;
  grid-template-columns: minmax(140px, 0.65fr) minmax(220px, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 18px;
}

.store-table {
  border: 1px solid var(--line);
  border-radius: 12px;
}

.store-url {
  display: block;
  max-width: 320px;
  overflow: hidden;
  color: var(--brand);
  text-overflow: ellipsis;
}

.empty-state {
  padding: 24px;
  color: var(--muted);
  text-align: center;
  font-size: 0.8rem;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface-strong);
  object-fit: cover;
}

.admin-user strong,
.admin-user small,
.admin-user .admin-email {
  display: block;
}

.day-adjuster {
  display: flex;
  min-width: 190px;
  align-items: center;
  gap: 7px;
}

.day-adjuster input {
  width: 108px;
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  padding: 7px 9px;
  color: var(--ink);
  font-size: 0.78rem;
  outline: none;
}

.day-adjuster input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.admin-user strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.admin-user small,
.admin-user .admin-email {
  color: var(--muted);
  font-size: 0.66rem;
}

.admin-user .admin-email:hover {
  color: var(--brand);
}

.admin-users-table {
  min-width: 1080px;
}

.admin-activity {
  display: grid;
  min-width: 270px;
  gap: 5px;
}

.admin-activity > .status-badge {
  width: max-content;
  margin-bottom: 2px;
}

.admin-activity > span {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 7px;
  color: var(--ink-soft);
  font-size: .69rem;
}

.admin-activity em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.admin-activity > small {
  color: var(--muted);
  font-size: .66rem;
}

.status-badge {
  display: inline-flex;
  border-radius: 999px;
  background: var(--surface-strong);
  padding: 5px 8px;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-badge--brand {
  background: var(--brand-soft);
  color: var(--brand);
}

.status-badge--success {
  background: var(--success-soft);
  color: var(--success);
}

.status-badge--warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-badge--danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-badge--muted {
  background: var(--surface-strong);
  color: var(--muted);
}

.mobile-nav,
.mobile-menu-button,
.mobile-menu-backdrop {
  display: none;
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  border: 0;
  background: rgba(7, 15, 27, 0.58);
  backdrop-filter: blur(3px);
}

.processing-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.38);
  padding: 20px;
  backdrop-filter: blur(8px);
}

.invitation-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  overflow-y: auto;
  place-items: center;
  background: rgba(7, 15, 27, 0.68);
  padding: 22px;
  backdrop-filter: blur(10px);
}

body.invitation-open {
  overflow: hidden;
}

.invitation-card {
  width: min(100%, 610px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: clamp(26px, 5vw, 42px);
}

.invitation-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 17px;
  background: var(--brand-soft);
  color: var(--brand);
  font: 800 1.25rem "Manrope", sans-serif;
}

.invitation-card h2 {
  margin: 7px 0 10px;
  font: 800 clamp(1.65rem, 4vw, 2.25rem)/1.15 "Manrope", sans-serif;
  letter-spacing: -.04em;
}

.invitation-card > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.invitation-warning {
  margin: 20px 0 0;
  border: 1px solid rgba(220, 104, 3, .28);
  border-radius: 15px;
  background: var(--warning-soft);
  padding: 15px 17px;
}

.invitation-warning strong,
.invitation-warning p {
  display: block;
  margin: 0;
}

.invitation-warning strong { color: var(--warning); }
.invitation-warning p { margin-top: 4px; color: var(--ink-soft); font-size: .82rem; line-height: 1.55; }

.invitation-permissions {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  border-block: 1px solid var(--line);
  padding: 20px 0;
}

.invitation-permissions span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: .86rem;
  font-weight: 700;
}

.invitation-permissions b { color: var(--success); }
.invitation-permissions .denied b { color: var(--danger); }
.invitation-actions { display: flex; justify-content: flex-end; gap: 10px; }
.invitation-footnote { margin-top: 14px !important; font-size: .73rem; text-align: right; }

.sku-merge-target {
  margin-top: 22px;
}

.sku-merge-card .invitation-warning {
  margin-bottom: 22px;
}

.processing-card {
  width: min(100%, 430px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}

.processing-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.processing-top > div {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.processing-top strong {
  overflow: hidden;
  font-family: "Manrope", sans-serif;
  font-size: 0.85rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.processing-top span:not(.spinner) {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
}

.spinner {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 2.5px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.progress-track {
  height: 8px;
  overflow: hidden;
  margin-top: 18px;
  border-radius: 999px;
  background: var(--surface-strong);
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f46e5, #2dd4bf);
  transition: width 180ms ease;
}

.processing-card > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

*:focus-visible {
  outline: 3px solid var(--brand-soft);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--line-strong);
  background-clip: padding-box;
}

@media (max-width: 1180px) {
  .sidebar {
    width: 236px;
  }

  .app-shell:has(.sidebar:not(.hidden)) .app-main {
    margin-left: 236px;
  }

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

  .upload-zone {
    min-height: 250px;
  }

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

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

  .brand-panel,
  .format-panel,
  .store-panel {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 820px) {
  .sidebar {
    z-index: 90;
    display: flex !important;
    width: min(88vw, 320px);
    transform: translateX(-105%);
    box-shadow: 24px 0 70px rgba(4, 10, 20, 0.34);
    transition: transform 200ms ease;
  }

  .sidebar.hidden {
    display: none !important;
  }

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

  .mobile-menu-backdrop.is-open {
    display: block;
  }

  .mobile-menu-button:not(.hidden) {
    display: grid;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  .app-shell:has(.sidebar:not(.hidden)) .app-main {
    margin-left: 0;
  }

  .topbar {
    min-height: 66px;
    padding-inline: 16px;
  }

  .mobile-brand {
    display: flex;
  }

  .mobile-brand .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .page-identity {
    display: none !important;
  }

  .content {
    min-height: calc(100vh - 66px);
    padding: 22px 16px 34px;
  }

  .auth-view {
    min-height: calc(100vh - 114px);
  }

  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-copy {
    padding: 38px 28px;
  }

  .auth-copy h1 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .auth-features {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 24px 28px;
  }

  .auth-flow {
    grid-template-columns: 1fr 1fr;
    justify-items: start;
  }

  .auth-flow i {
    display: none;
  }

  .workspace-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .result-panel {
    grid-template-columns: 1fr;
  }

  .result-metrics {
    width: 100%;
  }

  .result-metrics > div {
    flex: 1;
  }

  .result-actions .button {
    flex: 1;
  }

  .pnl-upload {
    grid-template-columns: 50px 1fr;
  }

  .pnl-upload > .button {
    grid-column: 1 / -1;
  }

  .cost-tools,
  .loss-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-form > * {
    flex: 1;
  }

  .currency-input {
    width: auto;
  }

  .store-form {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  .mobile-brand span,
  .user-summary > span,
  #adminToggleBtn {
    display: none;
  }

  .user-menu {
    gap: 5px;
    border-left: 0;
    margin-left: 0;
    padding-left: 0;
  }

  .user-summary {
    padding: 0;
  }

  .user-summary img {
    width: 40px;
    height: 40px;
  }

  .topbar {
    gap: 9px;
    padding-inline: 12px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .workspace-heading h2 {
    font-size: 1.7rem;
  }

  .platform-switch {
    display: grid;
    width: 100%;
  }

  .platform-switch__button {
    min-width: 0;
    padding-inline: 10px;
  }

  .upload-panel,
  .setup-panel,
  .plan-panel,
  .brand-panel,
  .format-panel,
  .store-panel,
  .recovery-panel {
    padding: 18px;
  }

  .upload-zone {
    min-height: 235px;
    padding: 22px 14px;
  }

  .logo-control {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .logo-preview {
    width: 72px;
  }

  .logo-control > svg {
    display: none;
  }

  .logo-control--static .logo-settings-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .auth-proof,
  .auth-flow {
    grid-template-columns: 1fr;
  }

  .brand-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .brand-actions .button {
    justify-content: center;
  }

  .setup-actions,
  .result-actions,
  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }

  .result-actions .button {
    width: 100%;
  }

  .recovery-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .recovery-item__actions {
    width: 100%;
  }

  .recovery-item__actions .mini-button {
    flex: 1;
  }

  .pnl-upload {
    min-height: 210px;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 24px 18px;
    text-align: center;
  }

  .pnl-upload > .button {
    grid-column: auto;
    width: 100%;
  }

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

  .plan-stats {
    grid-template-columns: 1fr;
  }

  .processing-card {
    padding: 20px;
  }
}

@media (max-width: 420px) {
  .mobile-brand .brand-mark,
  .user-summary {
    display: none;
  }

  .mobile-brand strong {
    font-size: 0.98rem;
  }

  .icon-button {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
}

@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;
  }
}

.pwa-install-card {
  position: fixed;
  z-index: 1200;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: min(470px, calc(100vw - 28px));
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-lg);
  padding: 16px 48px 16px 16px;
  backdrop-filter: blur(18px);
}

.pwa-install-card.hidden { display: none; }
.pwa-install-card img { width: 54px; height: 54px; border-radius: 16px; box-shadow: 0 8px 24px rgba(232, 88, 12, .22); }
.pwa-install-card strong,
.pwa-install-card span { display: block; }
.pwa-install-card strong { color: var(--ink); font: 800 .95rem "Manrope", sans-serif; }
.pwa-install-card span { margin-top: 3px; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.pwa-install-card .button { min-height: 42px; padding: 0 16px; white-space: nowrap; }
.pwa-install-dismiss { position: absolute; top: 8px; right: 10px; border: 0; background: transparent; color: var(--muted); font-size: 1.35rem; cursor: pointer; }

@media (max-width: 620px) {
  .pwa-install-card {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    left: 14px;
    width: auto;
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 14px 44px 14px 14px;
  }
  .pwa-install-card img { width: 48px; height: 48px; border-radius: 14px; }
  .pwa-install-card .button { grid-column: 1 / -1; width: 100%; }
}

/* 2026 seller workspace expansion */
.sidebar {
  overflow-y: auto;
}

.sidebar-nav {
  margin-top: 28px;
}

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

.landing-view {
  width: 100%;
  padding: 0 28px 48px;
}

.landing-content {
  width: min(1180px, 100%);
  margin: 0 auto;
}

body:has(#authPanel:not(.hidden)) .topbar {
  position: absolute;
  right: 0;
  width: 74px;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

body:has(#authPanel:not(.hidden)) .topbar .mobile-brand {
  display: none;
}

.landing-nav {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.landing-wordmark,
.landing-wordmark > span:last-child {
  display: flex;
  align-items: center;
}

.landing-wordmark {
  gap: 12px;
}

.landing-wordmark > span:last-child {
  align-items: flex-start;
  flex-direction: column;
}

.landing-wordmark strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.landing-wordmark small {
  color: var(--muted);
  font-weight: 600;
}

.landing-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.landing-links > a:not(.button) {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.landing-links > a:hover {
  color: var(--brand);
}

.landing-hero {
  display: grid;
  min-height: 620px;
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.82fr);
  gap: clamp(48px, 8vw, 104px);
  padding: 76px 0 84px;
}

.landing-hero__copy h1 {
  max-width: 740px;
  margin: 20px 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.8rem, 5.4vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.landing-hero__copy h1 em {
  color: var(--brand);
  font-style: normal;
}

.landing-hero__copy > p:not(.auth-fineprint) {
  max-width: 680px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.14rem;
  line-height: 1.7;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button--ghost {
  border-color: transparent;
  background: transparent;
  color: var(--ink-soft);
  text-decoration: none;
}

.button--ghost:hover {
  border-color: var(--line);
  background: var(--surface-soft);
}

.landing-hero .auth-fineprint {
  max-width: 650px;
  margin: 18px 0 0;
}

.landing-hero .auth-proof {
  display: flex;
  flex-wrap: wrap;
  grid-column: auto;
  gap: 9px;
  margin-top: 24px;
}

.landing-hero .auth-proof span {
  width: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 8px 12px;
  font-size: 0.75rem;
}

.hero-console {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 26px;
  background: #111827;
  box-shadow: 0 32px 80px rgba(29, 41, 57, 0.22);
  color: #fff;
  padding: 20px;
  transform: rotate(1.5deg);
}

.hero-console::before {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: #ec4899;
  content: "";
  filter: blur(95px);
  opacity: 0.28;
}

.hero-console__top,
.hero-file,
.hero-steps {
  position: relative;
  z-index: 1;
}

.hero-console__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-console__top > span {
  display: flex;
  gap: 5px;
}

.hero-console__top i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #667085;
}

.hero-console__top i:first-child { background: #f97066; }
.hero-console__top i:nth-child(2) { background: #fdb022; }
.hero-console__top i:last-child { background: #32d583; }

.hero-console__top b {
  font-size: 0.86rem;
}

.hero-console__top small {
  border-radius: 999px;
  background: rgba(50, 213, 131, 0.14);
  color: #6ce9a6;
  padding: 5px 8px;
  font-size: 0.68rem;
  font-weight: 800;
}

.hero-stat {
  position: relative;
  z-index: 1;
  display: grid;
  padding: 38px 8px 18px;
}

.hero-stat span,
.hero-stat em {
  color: #98a2b3;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
}

.hero-stat strong {
  margin: 4px 0;
  font-family: "Manrope", sans-serif;
  font-size: 4.6rem;
  letter-spacing: -0.07em;
  line-height: 1;
}

.hero-progress {
  overflow: hidden;
  height: 7px;
  border-radius: 99px;
  background: rgba(255,255,255,.1);
}

.hero-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #818cf8, #ec4899);
}

.hero-progress .hero-progress--live {
  width: 100%;
  animation: livePulse 2.4s ease-in-out infinite alternate;
}

@keyframes livePulse {
  from { opacity: .55; transform: scaleX(.76); transform-origin: left; }
  to { opacity: 1; transform: scaleX(1); transform-origin: left; }
}

.hero-steps {
  display: grid;
  gap: 10px;
  padding: 26px 0;
}

.hero-steps span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #98a2b3;
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-steps b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 0.7rem;
}

.hero-steps .done b { background: #079455; }
.hero-steps .active { color: #fff; }
.hero-steps .active b { background: #6366f1; }

.hero-file {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.075);
  padding: 13px;
}

.hero-file > span {
  border-radius: 8px;
  background: #e11d48;
  padding: 8px 6px;
  font-size: 0.65rem;
  font-weight: 800;
}

.hero-file div { min-width: 0; flex: 1; }
.hero-file strong, .hero-file small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-file strong { font-size: 0.82rem; }
.hero-file small { margin-top: 2px; color: #98a2b3; font-size: 0.7rem; }
.hero-file > b { color: #a5b4fc; font-size: 0.72rem; }

.landing-section {
  padding: 96px 0;
}

.section-intro {
  display: grid;
  max-width: 760px;
  gap: 12px;
  margin-bottom: 42px;
}

.section-intro h2,
.security-band h2,
.landing-cta h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.section-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.feature-card {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.feature-card--wide {
  grid-column: span 2;
}

.feature-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.72rem;
  font-weight: 800;
}

.feature-card strong {
  display: block;
  margin-top: 28px;
  font-family: "Manrope", sans-serif;
  font-size: 1.15rem;
}

.feature-card p,
.feature-card li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.feature-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.feature-card li {
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

.marketplace-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--line);
}

.marketplace-band article {
  display: flex;
  gap: 22px;
  background: var(--surface);
  padding: 38px;
}

.market-logo {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.market-logo--fk { background: #1769aa; }
.market-logo--ms { background: #f43397; }
.marketplace-band small { font-size: .7rem; font-weight: 800; letter-spacing: .08em; }
.marketplace-band h3 { margin: 7px 0 8px; font: 800 1.15rem/1.3 "Manrope", sans-serif; }
.marketplace-band p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.6; }

.role-section {
  border-bottom: 1px solid var(--line);
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.role-grid article {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: 28px;
}

.role-grid article > span { color: var(--muted-2); font-weight: 800; }
.role-grid h3 { margin: 52px 0 10px; font: 800 1.25rem "Manrope", sans-serif; }
.role-grid p { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.role-grid small { position: absolute; bottom: 26px; color: var(--brand); font-size: .73rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.role-card--accent { border-color: rgba(99,102,241,.32) !important; background: linear-gradient(155deg, var(--surface), var(--brand-soft)) !important; }

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.workflow-grid article { display: flex; gap: 14px; }
.workflow-grid b { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: .76rem; }
.workflow-grid h3 { margin: 4px 0 8px; font-size: 1rem; }
.workflow-grid p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }

.security-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  border-radius: 26px;
  background: #101828;
  color: #fff;
  padding: 48px;
}

.security-band > div { display: flex; align-items: flex-start; gap: 18px; }
.security-band h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.security-band p { margin: 0; color: #d0d5dd; line-height: 1.7; }
.security-band .eyebrow { color: #a5b4fc; }
.security-icon { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border-radius: 14px; background: #079455; font-weight: 800; }

.landing-cta {
  display: grid;
  justify-items: center;
  padding: 108px 20px 84px;
  text-align: center;
}

.landing-cta p { max-width: 620px; color: var(--muted); }
.landing-cta .button { margin-top: 14px; text-decoration: none; }
.landing-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 24px 0 4px; color: var(--muted); font-size: .82rem; }
.landing-footer a { font-weight: 700; text-decoration: none; }

/* Meesho becomes visibly pink when selected without recoloring the whole app. */
#labelWorkspace[data-marketplace="meesho"] .workbench {
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(244, 51, 151, 0.09), rgba(244, 51, 151, 0.025));
  box-shadow: 0 0 0 1px rgba(244, 51, 151, 0.16);
  padding: 12px;
}

#labelWorkspace[data-marketplace="meesho"] .workbench .panel {
  border-color: rgba(244, 51, 151, 0.22);
}

#labelWorkspace[data-marketplace="meesho"] .step-number,
.pnl-upload--meesho .pnl-upload__icon {
  background: rgba(244, 51, 151, 0.12);
  color: #d61f7d;
}

#labelWorkspace[data-marketplace="meesho"] .button--primary {
  border-color: #d61f7d;
  background: #d61f7d;
}

.eyebrow--meesho { color: #d61f7d; }
.local-pill--meesho span { background: #f43397; }
.pnl-upload--meesho { border-color: rgba(244,51,151,.3); background: rgba(244,51,151,.035); }
.kpi-card--meesho { border-color: rgba(244,51,151,.32) !important; background: rgba(244,51,151,.07) !important; }

.sku-editor { margin-bottom: 18px; }
.sku-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 14px; }
.sku-form .button { min-height: 47px; }
.compact-search { width: min(300px, 100%); }
.table-actions { display: flex; justify-content: flex-end; gap: 7px; }

.margin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 18px;
}

.margin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field--full { grid-column: 1 / -1; }
.margin-result-card { display: flex; min-height: 100%; flex-direction: column; border-radius: 22px; background: #111827; color: #fff; padding: 34px; box-shadow: var(--shadow-lg); }
.margin-result-card > span { color: #98a2b3; font-size: .8rem; font-weight: 700; }
.margin-result-card > strong { margin: 14px 0 8px; font: 800 clamp(2.8rem, 5vw, 4.5rem)/1 "Manrope",sans-serif; letter-spacing: -.06em; }
.margin-result-card > strong.negative { color: #f97066; }
.margin-result-card > strong.positive { color: #6ce9a6; }
.margin-result-card > em { align-self: flex-start; border-radius: 999px; background: rgba(255,255,255,.1); padding: 6px 9px; font-size: .73rem; font-style: normal; font-weight: 800; }
.margin-breakdown { display: grid; gap: 0; margin-top: 36px; }
.margin-breakdown p { display: flex; justify-content: space-between; gap: 20px; margin: 0; border-bottom: 1px solid rgba(255,255,255,.1); padding: 13px 0; color: #d0d5dd; font-size: .82rem; }
.margin-breakdown b { color: #fff; }
.margin-meter { overflow: hidden; height: 8px; margin-top: auto; border-radius: 999px; background: rgba(255,255,255,.1); }
.margin-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#f97066,#fdb022,#32d583); transition: width .2s ease; }
.margin-result-card > small { margin-top: 12px; color: #98a2b3; line-height: 1.5; }

.cloud-upload-panel,
.invite-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.recent-output-panel {
  margin-bottom: 16px;
  padding: 22px;
}

.recent-output-heading,
.recent-output-heading > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.recent-output-heading {
  justify-content: space-between;
  margin-bottom: 18px;
}

.recent-output-heading h3,
.recent-output-heading p {
  margin: 0;
}

.recent-output-heading h3 {
  font: 800 1rem "Manrope", sans-serif;
}

.recent-output-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: .8rem;
}

.recent-output-list {
  display: grid;
  gap: 9px;
}

.recent-output-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
  padding: 12px;
}

.market-file-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font: 800 .85rem "Manrope", sans-serif;
}

.market-file-mark--flipkart { background: #2874f0; }
.market-file-mark--meesho { background: #f43397; }
.recent-output-copy { min-width: 0; }
.recent-output-copy strong,
.recent-output-copy small { display: block; }
.recent-output-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.recent-output-copy small { margin-top: 3px; color: var(--muted); font-size: .74rem; }
.recent-share-button { min-width: 154px; }

.cloud-upload-panel > div,
.invite-panel > div:first-child { display: flex; align-items: center; gap: 12px; }
.cloud-upload-panel h3, .cloud-upload-panel p, .invite-panel h3, .invite-panel p { margin: 0; }
.cloud-upload-panel p, .invite-panel p { color: var(--muted); font-size: .82rem; }
.cloud-upload-panel input[type="file"] { display: none; }
.cloud-policy { display: flex; align-items: center; gap: 16px; margin: 18px 0; border: 1px solid rgba(99,102,241,.22); border-radius: 16px; background: var(--brand-soft); padding: 18px; }
.cloud-policy > span { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 14px; background: var(--brand); color: #fff; font: 800 1rem "Manrope",sans-serif; }
.cloud-policy strong, .cloud-policy p { display: block; margin: 0; }
.cloud-policy p { margin-top: 3px; color: var(--muted); font-size: .82rem; }
.manager-pdf-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(7, 148, 85, .22);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--success-soft), var(--surface));
  padding: 18px 20px;
}
.manager-pdf-intro > span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--success);
  padding: 7px 10px;
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.manager-pdf-intro strong, .manager-pdf-intro p { display: block; margin: 0; }
.manager-pdf-intro p { margin-top: 3px; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.cloud-list { display: grid; gap: 0; }
.cloud-item { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding: 16px 0; }
.cloud-item:last-child { border-bottom: 0; }
.cloud-file-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-size: .66rem; font-weight: 800; }
.cloud-item__copy { min-width: 0; flex: 1; }
.cloud-item__copy strong, .cloud-item__copy small { display: block; }
.cloud-item__copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.cloud-item__copy small { margin-top: 4px; color: var(--muted); font-size: .74rem; }
.expiry-chip { border-radius: 999px; background: var(--warning-soft); color: var(--warning); padding: 6px 9px; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.cloud-item__actions { display: flex; gap: 7px; }
.invite-form { align-items: flex-end; }
.invite-form .field { min-width: 280px; }

.status-badge--pink { background: rgba(244,51,151,.1); color: #d61f7d; }

body.operation-manager-mode .content { width: min(100%, 1040px); }
body.operation-manager-mode .topbar { padding-inline: clamp(18px, 5vw, 70px); }
body.operation-manager-mode #cloudLibraryWorkspace { max-width: 960px; margin-inline: auto; }
body.platform-admin-mode .content { width: min(100%, 1180px); }
body.platform-admin-mode .topbar { padding-inline: clamp(18px, 5vw, 70px); }
body.platform-admin-mode #adminPanel { max-width: 1100px; margin-inline: auto; }

/* Private Seller dashboard */
.dashboard-heading { align-items: center; }

.private-account-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(7, 148, 85, .22);
  border-radius: 999px;
  background: var(--success-soft);
  padding: 9px 13px;
  color: var(--success);
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
}

.private-account-pill b {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: .7rem;
}

.dashboard-privacy {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(79, 70, 229, .18);
  border-radius: 16px;
  background: var(--brand-soft);
  padding: 15px 18px;
}

.dashboard-privacy > span {
  border-radius: 8px;
  background: var(--brand);
  padding: 6px 9px;
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-privacy p { margin: 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.55; }

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

.dashboard-kpi-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.dashboard-kpi-grid span,
.dashboard-kpi-grid strong,
.dashboard-kpi-grid small { display: block; }
.dashboard-kpi-grid span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.dashboard-kpi-grid strong { margin: 10px 0 4px; font: 800 clamp(2rem, 3.4vw, 3.1rem)/1 "Manrope", sans-serif; letter-spacing: -.055em; }
.dashboard-kpi-grid small { color: var(--muted); font-size: .76rem; }
.dashboard-kpi--accent { border-color: rgba(79, 70, 229, .25) !important; background: linear-gradient(145deg, var(--brand-soft), var(--surface)) !important; }
.dashboard-kpi--accent strong { color: var(--brand); }

.market-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.market-total {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

.market-total::after {
  position: absolute;
  right: -34px;
  bottom: -48px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: .045;
}

.market-total > div { display: flex; align-items: center; gap: 12px; }
.market-total small { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .07em; }
.market-total h3 { margin: 3px 0 0; font: 800 1rem "Manrope", sans-serif; }
.market-total > strong { display: block; margin-top: 24px; font: 800 clamp(2.7rem, 5vw, 4.5rem)/.95 "Manrope", sans-serif; letter-spacing: -.065em; }
.market-total > p { margin: 9px 0 0; color: var(--muted); font-size: .86rem; }
.market-total--flipkart { color: #2874f0; }
.market-total--meesho { color: #d61f7d; }
.market-total h3, .market-total p { color: var(--ink); }
.market-total p { color: var(--muted); }

.dashboard-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 16px;
}

.dashboard-recent { min-width: 0; }
.dashboard-actions { padding: 24px; }
.dashboard-actions h3 { margin: 8px 0 5px; font: 800 1.15rem "Manrope", sans-serif; }
.dashboard-actions > p { margin: 0 0 20px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.dashboard-action {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  padding: 15px 2px;
  color: var(--ink-soft);
  font-size: .87rem;
  font-weight: 700;
  cursor: pointer;
}

.dashboard-action:hover { color: var(--brand); }
.dashboard-action b { font-size: 1.1rem; }
.hero-privacy-list { padding-bottom: 22px; }
.hero-file--privacy > span { background: rgba(50, 213, 131, .15); color: #6ce9a6; }

/* Closed-period Meesho P&L */
.ms-disclaimer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(244, 51, 151, .24);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(244, 51, 151, .09), var(--surface));
  padding: 18px 20px;
}

.ms-disclaimer > span {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 15px;
  background: #f43397;
  color: #fff;
  font: 800 1.15rem "Manrope", sans-serif;
}

.ms-disclaimer strong,
.ms-disclaimer p { display: block; margin: 0; }
.ms-disclaimer p { margin-top: 3px; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.ms-report-panel { margin-bottom: 16px; padding: 22px; }
.ms-report-panel .panel-heading { margin-bottom: 16px; }

.date-range {
  display: grid;
  grid-template-columns: minmax(170px, 240px) minmax(170px, 240px) 1fr;
  align-items: end;
  gap: 14px;
}

.date-hint {
  min-height: 46px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 0 14px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}

.ms-ads-control {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  align-items: end;
  gap: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.ms-ads-control p {
  min-height: 46px;
  display: flex;
  align-items: center;
  margin: 0;
  border-radius: 12px;
  background: rgba(244, 51, 151, .07);
  padding: 10px 14px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.45;
}

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

.ms-report-grid .pnl-upload {
  min-height: 250px;
  grid-template-columns: 50px minmax(0, 1fr);
  align-content: center;
  padding: 22px;
}

.ms-report-grid .pnl-upload > .button { grid-column: 1 / -1; }
.ms-run-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 16px 0 4px; }
.ms-run-row p { margin: 0; color: var(--muted); font-size: .8rem; }

.period-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 16px;
  background: #111827;
  padding: 16px 20px;
  color: #fff;
}

.period-summary span { color: #d0d5dd; font-size: .8rem; }
.period-summary strong { font: 700 .92rem "Manrope", sans-serif; }

.order-state-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.order-state-grid article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 16px;
}

.order-state-grid span,
.order-state-grid strong { display: block; }
.order-state-grid span { color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.order-state-grid strong { margin-top: 7px; font: 800 1.55rem "Manrope", sans-serif; }
.order-state--pending { border-color: rgba(220, 104, 3, .3) !important; background: var(--warning-soft) !important; }
.order-state--locked { border-color: rgba(244, 51, 151, .3) !important; background: rgba(244, 51, 151, .07) !important; }
.order-state--missing { border-color: rgba(217, 45, 32, .28) !important; background: var(--danger-soft) !important; }
.ms-finance-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi-card--ads { border-color: rgba(244, 51, 151, .24) !important; background: linear-gradient(140deg, rgba(244, 51, 151, .08), var(--surface)) !important; }
.kpi-card--ads > strong { color: #d61f7d !important; }
.ms-profit-table { min-width: 1740px; }
.ms-rto-locked-table { min-width: 760px; }
.ms-missing-table { min-width: 1100px; }

/* Marketplace-specific master SKU editor */
.sku-example {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  border: 1px solid rgba(99, 102, 241, .2);
  border-radius: 15px;
  background: var(--brand-soft);
  padding: 13px 16px;
  font-size: .78rem;
}

.sku-example > span { color: var(--brand); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.sku-example > i { color: var(--muted); font-style: normal; }
.sku-example code,
.child-sku-list code { border-radius: 7px; background: var(--surface); padding: 5px 7px; color: var(--ink-soft); font-size: .72rem; }
.sku-master-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .45fr); gap: 16px; }
.field--children { grid-column: 1 / -1; }
.field--children > small { color: var(--muted); font-size: .7rem; }
.sku-cost-grid { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sku-save-row { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 20px; }
.sku-save-row p { margin: 0; }
.child-sku-list { display: flex; max-width: 430px; flex-wrap: wrap; gap: 5px; white-space: normal; }
.sku-total-cost { color: var(--ink) !important; font-weight: 800; }

@media (max-width: 1100px) {
  .landing-hero { grid-template-columns: 1fr; }
  .hero-console { width: min(560px, 100%); transform: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .role-grid { grid-template-columns: 1fr; }
  .role-grid article { min-height: 220px; }
  .workflow-grid { grid-template-columns: 1fr 1fr; }
  .sku-form { grid-template-columns: 1fr 1fr; }
  .ms-report-grid { grid-template-columns: 1fr 1fr; }
  .order-state-grid { grid-template-columns: repeat(3, 1fr); }
  .sku-cost-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-kpi-grid { grid-template-columns: 1fr 1fr; }
  .ms-finance-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .landing-view { padding: 0 18px 110px; }
  .landing-nav { padding-right: 52px; }
  .landing-links a:not(:last-child) { display: none; }
  .landing-hero { min-height: auto; padding: 54px 0 68px; }
  .landing-hero__copy h1 { font-size: clamp(2.55rem, 11vw, 4rem); }
  .feature-grid, .marketplace-band, .security-band, .margin-layout { grid-template-columns: 1fr; }
  .feature-card--wide { grid-column: auto; }
  .marketplace-band article { padding: 28px; }
  .security-band { gap: 26px; padding: 32px 24px; }
  .cloud-upload-panel, .invite-panel { align-items: stretch; flex-direction: column; }
  .recent-output-heading { align-items: stretch; flex-direction: column; }
  .recent-output-heading > div { align-items: flex-start; }
  .invite-form { width: 100%; align-items: stretch; flex-direction: column; }
  .invite-form .field { min-width: 0; }
  .date-range, .ms-report-grid, .sku-master-form, .ms-ads-control { grid-template-columns: 1fr; }
  .field--children, .sku-cost-grid, .sku-save-row { grid-column: auto; }
  .order-state-grid { grid-template-columns: 1fr 1fr; }
  .ms-finance-kpis { grid-template-columns: 1fr 1fr; }
  .ms-run-row, .period-summary { align-items: stretch; flex-direction: column; }
  .table-panel__heading--actions { align-items: stretch; flex-direction: column; }
  .market-totals, .dashboard-lower-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .landing-view { padding-inline: 14px; }
  .landing-wordmark small { font-size: .68rem; }
  .landing-nav .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .landing-actions { align-items: stretch; flex-direction: column; }
  .landing-actions .button { width: 100%; }
  .landing-hero .auth-proof { align-items: stretch; flex-direction: column; }
  .landing-hero .auth-proof span { text-align: left; }
  .ms-finance-kpis { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; padding: 24px; }
  .marketplace-band article { flex-direction: column; }
  .workflow-grid { grid-template-columns: 1fr; }
  .landing-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  .sku-form, .margin-form { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .cloud-item { align-items: flex-start; flex-wrap: wrap; }
  .cloud-item__copy { width: calc(100% - 60px); }
  .cloud-item__actions { width: 100%; }
  .recent-output-panel { padding: 16px; }
  .recent-output-item { grid-template-columns: 38px minmax(0, 1fr); }
  .market-file-mark { width: 38px; height: 38px; }
  .recent-share-button { grid-column: 1 / -1; width: 100%; min-width: 0; }
  .ms-disclaimer { align-items: flex-start; }
  .sku-cost-grid, .order-state-grid { grid-template-columns: 1fr; }
  .sku-save-row { align-items: stretch; flex-direction: column; }
  .dashboard-privacy { align-items: flex-start; flex-direction: column; }
  .dashboard-kpi-grid { grid-template-columns: 1fr; }
  .private-account-pill { white-space: normal; }
  .invitation-overlay { align-items: end; padding: 10px; }
  .invitation-card { border-radius: 22px; padding: 24px 20px; }
  .invitation-actions { align-items: stretch; flex-direction: column-reverse; }
  .invitation-actions .button { width: 100%; }
  .invitation-footnote { text-align: left; }
  .manager-pdf-intro { align-items: flex-start; flex-direction: column; }
}
