:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #18212f;
  background: #f6f7f9;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  background: #f6f7f9;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: #162033;
  color: #f7fafc;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: grid;
  gap: 4px;
}

.brand strong {
  font-size: 18px;
  line-height: 1.25;
}

.brand span {
  color: #aab7c8;
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav a {
  color: #cfdae8;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
}

.nav a[aria-current="page"] {
  background: #263650;
  color: #ffffff;
}

.nav a[aria-current="false"] {
  background: transparent;
  color: #cfdae8;
}

.main {
  min-width: 0;
  padding: 28px;
  display: grid;
  gap: 22px;
  align-content: start;
}

.admin-footer {
  padding: 16px 0 4px;
  display: flex;
  gap: 10px 16px;
  flex-wrap: wrap;
  align-items: center;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.admin-footer strong {
  color: #344054;
  font-size: 12px;
}

.admin-footer a {
  color: #2364aa;
  text-decoration: none;
}

.admin-footer a:hover {
  text-decoration: underline;
}

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

.title-block {
  display: grid;
  gap: 4px;
}

.title-block h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.title-block p {
  margin: 0;
  color: #667085;
  font-size: 14px;
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.select,
.button {
  height: 36px;
  border-radius: 6px;
  border: 1px solid #d0d5dd;
  background: #ffffff;
  color: #1d2939;
  padding: 0 12px;
}

.button.primary {
  border-color: #2364aa;
  background: #2364aa;
  color: #ffffff;
}

.button.compact {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 14px;
}

.metric,
.panel {
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
}

.metric {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.metric span {
  color: #667085;
  font-size: 13px;
}

.metric strong {
  font-size: 26px;
  line-height: 1.1;
}

.metric small {
  color: #98a2b3;
  font-size: 12px;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
}

[data-page-view],
.workspace-panel {
  display: none;
}

.shell[data-active-view="dashboard"] [data-page-view="dashboard"] {
  display: grid;
}

.shell[data-active-view="dashboard"] .table-panel[data-page-view="dashboard"],
.shell[data-active-view="dashboard"] .business-status-panel[data-page-view="dashboard"],
.shell[data-active-view="dashboard"] .panel[data-page-view="dashboard"] {
  display: block;
}

.shell[data-active-view="asset-manager"] .workspace-panel,
.shell[data-active-view="store-management"] .workspace-panel,
.shell[data-active-view="content-account"] .workspace-panel,
.shell[data-active-view="goods-shelf"] [data-page-view="goods-shelf"],
.shell[data-active-view="orders-leads"] [data-page-view="orders-leads"],
.shell[data-active-view="business-growth"] [data-page-view="business-growth"],
.shell[data-active-view="content-account"] [data-page-view="content-account"] {
  display: block;
}

.shell[data-active-view="asset-manager"] [data-workspace-module]:not([data-workspace-module~="asset-manager"]),
.shell[data-active-view="store-management"] [data-workspace-module]:not([data-workspace-module~="store-management"]),
.shell[data-active-view="content-account"] [data-workspace-module]:not([data-workspace-module~="content-account"]) {
  display: none;
}

.module-page-panel {
  grid-column: 1 / -1;
}

.module-page-body {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.module-page-body p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.6;
}

.panel {
  overflow: hidden;
}

.panel header {
  min-height: 54px;
  padding: 14px 16px;
  border-bottom: 1px solid #e4e7ec;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.business-status-panel {
  grid-column: 1 / -1;
}

.local-life-store-panel {
  grid-column: 1 / -1;
}

.panel-note {
  color: #667085;
  font-size: 12px;
  white-space: nowrap;
}

.store-dashboard {
  padding: 16px;
  display: grid;
  gap: 16px;
}

.store-kpi-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(96px, 1fr));
  gap: 10px;
}

.store-kpi {
  min-height: 86px;
  padding: 12px;
  display: grid;
  gap: 6px;
  align-content: center;
  background: #fbfcfd;
  border: 1px solid #eef1f5;
  border-radius: 8px;
}

.store-kpi span,
.store-kpi small {
  color: #667085;
  font-size: 12px;
}

.store-kpi strong {
  color: #18212f;
  font-size: 22px;
  line-height: 1.1;
}

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

.store-card {
  min-height: 230px;
  padding: 14px;
  display: grid;
  gap: 12px;
  align-content: start;
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
}

.store-card header {
  min-height: auto;
  padding: 0;
  border: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.store-card header div {
  display: grid;
  gap: 4px;
}

.store-card strong {
  color: #18212f;
  font-size: 16px;
  line-height: 1.35;
}

.store-card header span,
.store-card header small,
.store-card footer {
  color: #667085;
  font-size: 12px;
}

.store-card header small {
  padding: 4px 8px;
  color: #475467;
  background: #f2f4f7;
  border-radius: 999px;
  white-space: nowrap;
}

.store-card p {
  margin: 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.5;
}

.store-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.store-card dl div {
  min-height: 58px;
  padding: 8px;
  display: grid;
  gap: 5px;
  align-content: center;
  background: #f8fafc;
  border: 1px solid #eef1f5;
  border-radius: 7px;
}

.store-card dt,
.store-card dd {
  margin: 0;
}

.store-card dt {
  color: #667085;
  font-size: 12px;
}

.store-card dd {
  color: #1d2939;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.store-card.empty {
  min-height: 120px;
  color: #667085;
  place-items: center;
}

.status-grid {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 12px;
}

.status-item {
  min-height: 72px;
  padding: 12px;
  display: grid;
  gap: 8px;
  align-content: center;
  background: #fbfcfd;
  border: 1px solid #eef1f5;
  border-radius: 8px;
}

.status-item span {
  color: #667085;
  font-size: 12px;
}

.status-item strong {
  color: #1d2939;
  font-size: 15px;
  line-height: 1.35;
}

.status-item.warning {
  border-color: #fedf89;
  background: #fffbeb;
}

.status-item.warning strong {
  color: #b54708;
}

.status-item.muted strong {
  color: #667085;
}

.business-modules {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.business-module {
  display: grid;
  gap: 10px;
}

.business-module strong {
  font-size: 14px;
}

.business-module div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.business-module span,
.feature-chip,
.module-title-button {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  color: #344054;
  background: #f2f4f7;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  font-size: 12px;
}

.feature-chip,
.module-title-button {
  cursor: pointer;
}

.feature-chip:hover,
.module-title-button:hover {
  border-color: #2364aa;
  color: #184f86;
  background: #eaf2fb;
}

.module-title-button {
  width: fit-content;
  min-height: 30px;
  font-weight: 700;
  background: #ffffff;
}

.module-feedback {
  min-height: 38px;
  padding: 10px 12px;
  color: #475467;
  background: #fbfcfd;
  border: 1px solid #e4e7ec;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.45;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 13px 16px;
  border-bottom: 1px solid #eef1f5;
  text-align: left;
  font-size: 14px;
  vertical-align: middle;
}

.table th {
  color: #667085;
  font-weight: 600;
  background: #fbfcfd;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status.rendering {
  color: #8a5200;
  background: #fff4d8;
}

.status.ready {
  color: #05603a;
  background: #dff8ea;
}

.status.draft {
  color: #344054;
  background: #eef1f5;
}

.status.available {
  color: #05603a;
  background: #dff8ea;
}

.status.used {
  color: #7a271a;
  background: #fde5df;
}

.steps {
  display: grid;
}

.auth-panel {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.auth-panel.authenticated {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.auth-panel strong,
.auth-panel small,
.eyebrow {
  display: block;
}

.auth-panel strong {
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.auth-panel small,
.eyebrow {
  color: #667085;
  font-size: 12px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  background: #eef1f5;
  border-radius: 7px;
}

.auth-tab {
  min-height: 32px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #475467;
  cursor: pointer;
}

.auth-tab.active {
  background: #ffffff;
  color: #1d2939;
  box-shadow: 0 1px 2px rgb(16 24 40 / 10%);
}

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

.auth-form label {
  display: grid;
  gap: 5px;
  color: #344054;
  font-size: 13px;
}

.auth-form input {
  width: 100%;
  height: 36px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 0 10px;
  color: #1d2939;
  background: #ffffff;
}

.auth-message {
  min-height: 18px;
  margin: 0;
  color: #b42318;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.workspace-panel {
  grid-column: 1 / -1;
}

.workspace-body {
  padding: 16px;
  display: grid;
  gap: 16px;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.inline-form:first-child {
  grid-template-columns: minmax(0, 1fr) auto;
}

.inline-form.matrix-form {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.inline-form label {
  display: grid;
  gap: 5px;
  color: #344054;
  font-size: 13px;
}

.inline-form input,
.inline-form select {
  width: 100%;
  height: 36px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 0 10px;
  color: #1d2939;
  background: #ffffff;
}

.inline-form input[type="file"] {
  padding: 6px 10px;
}

.inline-form input:disabled,
.inline-form select:disabled,
.button:disabled {
  cursor: not-allowed;
  color: #98a2b3;
  background: #f2f4f7;
}

.workspace-message {
  min-height: 18px;
  margin: 0;
  color: #667085;
  font-size: 13px;
}

.qr-form {
  grid-template-columns: minmax(0, 1fr) auto minmax(220px, 1fr);
}

.qr-output {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #344054;
  background: #fbfcfd;
  border: 1px solid #eef1f5;
  border-radius: 6px;
  font-size: 13px;
  overflow-wrap: anywhere;
}


.asset-manager {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #f8fafc;
}

.subpanel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.subpanel-header h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.35;
}

.subpanel-header p {
  margin: 0;
  max-width: 780px;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.asset-upload-form {
  grid-template-columns: minmax(160px, 0.5fr) minmax(240px, 1fr) auto;
}

.asset-slot-form,
.asset-used-form {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.asset-ai-form {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.35fr) auto;
}

.asset-table-wrap {
  overflow-x: auto;
  border: 1px solid #e4e7ec;
  border-radius: 7px;
  background: #ffffff;
}

.asset-table {
  min-width: 760px;
}

.asset-table td:first-child {
  display: grid;
  gap: 3px;
}

.summary-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #fbfcfd;
  border: 1px solid #eef1f5;
  border-radius: 7px;
}

.summary-list strong {
  font-size: 13px;
  color: #344054;
}

.summary-list span {
  display: grid;
  gap: 3px;
  font-size: 14px;
  color: #1d2939;
  overflow-wrap: anywhere;
}

.summary-list small {
  color: #667085;
  font-size: 12px;
}

.assignment-details {
  border: 1px solid #e4e7ec;
  background: #ffffff;
  border-radius: 6px;
  padding: 8px 10px;
}

.assignment-details summary {
  font-size: 13px;
  color: #344054;
  cursor: pointer;
}

.assignment-row {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.assignment-row span {
  color: #1d2939;
  font-size: 13px;
  display: grid;
  gap: 4px;
}

.assignment-controls {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto auto;
  gap: 8px;
}

.matrix-list span small {
  color: #475467;
}

.step {
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid #eef1f5;
}

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

.step-index {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eaf2fb;
  color: #2364aa;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.step strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.step span {
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.public-page {
  min-height: 100vh;
  background: #f6f7f9;
  color: #18212f;
}

.public-nav {
  max-width: 1120px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.public-nav strong {
  font-size: 17px;
}

.public-nav a {
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #ffffff;
  color: #1d2939;
  text-decoration: none;
  font-size: 14px;
}

.public-hero {
  min-height: 440px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgb(22 32 51 / 92%), rgb(22 32 51 / 68%)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80")
      center / cover;
}

.public-hero-content {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 72px 24px 96px;
  color: #ffffff;
}

.public-hero h1 {
  max-width: 760px;
  margin: 10px 0 16px;
  font-size: 48px;
  line-height: 1.12;
}

.public-hero p {
  max-width: 760px;
  margin: 0;
  color: #d8e1ee;
  font-size: 17px;
  line-height: 1.75;
}

.public-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.public-actions .button {
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.public-live-metrics {
  max-width: 820px;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.public-live-metrics section {
  min-height: 118px;
  padding: 16px;
  display: grid;
  gap: 8px;
  align-content: center;
  background: rgb(255 255 255 / 92%);
  border: 1px solid rgb(228 231 236 / 80%);
  border-radius: 8px;
  color: #18212f;
}

.public-live-metrics span,
.public-live-metrics small {
  color: #667085;
  font-size: 12px;
}

.public-live-metrics strong {
  font-size: 26px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.public-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px;
}

.public-section header {
  max-width: 760px;
  margin-bottom: 24px;
}

.public-section h2 {
  margin: 6px 0 0;
  font-size: 28px;
  line-height: 1.25;
}

.public-section p {
  color: #475467;
  font-size: 15px;
  line-height: 1.75;
}

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

.public-feature {
  min-height: 160px;
  padding: 18px;
  display: grid;
  gap: 10px;
  align-content: start;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
}

.public-feature strong {
  font-size: 16px;
}

.public-feature span {
  color: #667085;
  font-size: 14px;
  line-height: 1.65;
}

.public-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  border-top: 1px solid #e4e7ec;
}

.public-footer {
  max-width: 1120px;
  margin: 0 auto 24px;
  padding: 18px 24px 24px;
  border-top: 1px solid #d8dde6;
  color: #667085;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
}

.public-footer strong {
  color: #344054;
  font-size: 13px;
}

.public-footer a {
  color: #2364aa;
  text-decoration: none;
}

.public-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    height: auto;
    overflow-y: visible;
    padding: 18px;
  }

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

  .metrics,
  .grid,
  .public-features,
  .public-live-metrics,
  .public-split,
  .status-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .main {
    padding: 18px;
  }

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

  .toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .inline-form,
  .inline-form.matrix-form,
  .qr-form,
  .asset-upload-form,
  .asset-slot-form,
  .asset-ai-form,
  .asset-used-form,
  .inline-form:first-child {
    grid-template-columns: 1fr;
  }

  .select,
  .button {
    width: 100%;
  }

  .table {
    min-width: 620px;
  }

  .panel.table-panel {
    overflow-x: auto;
  }

  .public-nav {
    padding: 0 18px;
  }

  .public-hero {
    min-height: 520px;
  }

  .public-hero-content,
  .public-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .public-footer {
    align-items: center;
    flex-direction: column;
    gap: 6px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .public-hero h1 {
    font-size: 36px;
  }

  .public-hero p {
    font-size: 15px;
  }

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