:root {
  --ink: #16252c;
  --muted: #667781;
  --surface: #ffffff;
  --soft: #f4f7f8;
  --line: #dce6e9;
  --brand: #183a4a;
  --brand-2: #2f6f73;
  --green: #147b53;
  --amber: #a66400;
  --red: #b42318;
  --blue: #2665a8;
  --coral: #c85d4f;
  --shadow: 0 18px 45px rgba(21, 45, 54, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #eef3f4;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

input,
select,
textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  padding: 10px 11px;
}

textarea {
  min-height: 86px;
  resize: vertical;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.merchant-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
}

.merchant-shell.auth-mode,
.merchant-shell.signup-mode,
.merchant-shell.onboarding-mode {
  grid-template-columns: 1fr;
}

.merchant-shell.auth-mode .sidebar,
.merchant-shell.auth-mode .workspace,
.merchant-shell.signup-mode .sidebar,
.merchant-shell.signup-mode .workspace,
.merchant-shell.onboarding-mode .sidebar,
.merchant-shell.onboarding-mode .topbar {
  display: none;
}

.merchant-shell.onboarding-mode .workspace {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 32px;
}

.auth-screen {
  display: none;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 28px;
  align-items: center;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(24, 58, 74, 0.9), rgba(47, 111, 115, 0.82)),
    url("./assets/splash-local-vendor.png") center/cover;
}

.auth-screen.active {
  display: grid;
}

.merchant-signup-screen {
  display: none;
  min-height: 100vh;
  align-items: start;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(238, 243, 244, 0.96), rgba(226, 239, 255, 0.9)),
    url("./assets/splash-local-vendor.png") center/cover;
}

.merchant-signup-screen.active {
  display: grid;
}

.signup-card.panel {
  width: min(940px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.signup-card h1 {
  margin: 0;
  font-size: 34px;
}

.signup-intro {
  max-width: 760px;
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

.otp-panel,
.otp-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 14px;
}

.otp-panel h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.otp-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.otp-panel.sent {
  border-color: #b7d7c9;
  background: #dff5eb;
}

.otp-entry[hidden] {
  display: none;
}

.otp-entry label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.otp-success-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(12, 31, 39, 0.58);
  backdrop-filter: blur(10px);
}

.otp-success-modal[hidden] {
  display: none;
}

.otp-success-card {
  width: min(430px, 100%);
  display: grid;
  justify-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(8, 28, 36, 0.32);
  padding: 28px;
  text-align: center;
}

.success-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 30px;
  font-weight: 900;
}

.otp-success-card h2 {
  margin: 0;
  font-size: 28px;
}

.otp-success-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.otp-success-card .primary-btn {
  width: 100%;
  margin-top: 6px;
}

.auth-brand {
  position: absolute;
  top: 24px;
  left: 28px;
}

.auth-copy {
  max-width: 760px;
  color: #fff;
}

.auth-copy .eyebrow,
.auth-brand .brand b {
  color: #bfe8df;
}

.auth-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.auth-copy p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.65;
}

.auth-value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.auth-value-grid article {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 14px;
}

.auth-value-grid b,
.auth-value-grid span {
  display: block;
}

.auth-value-grid b {
  margin-bottom: 6px;
  color: #fff;
}

.auth-value-grid span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.45;
}

.auth-card {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(8, 28, 36, 0.28);
  padding: 22px;
}

.auth-card h2 {
  margin: 0;
  font-size: 28px;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px;
  background: var(--brand);
  color: #fff;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.15;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.brand b {
  color: #bfe8df;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-list button {
  width: 100%;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  padding: 11px 12px;
  text-align: left;
  font-weight: 700;
}

.nav-list button:hover,
.nav-list button.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.signout-btn {
  width: 100%;
  min-height: 40px;
  margin-top: auto;
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 900;
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.topbar,
.section-head,
.panel-head,
.top-actions,
.button-row,
.order-detail {
  display: flex;
  align-items: center;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  justify-content: space-between;
  gap: 18px;
  margin: -24px -24px 24px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(238, 243, 244, 0.92);
  backdrop-filter: blur(14px);
}

.topbar h1,
.section-head h2,
.panel h3 {
  margin: 0;
}

.topbar h1 {
  font-size: 24px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.top-actions {
  justify-content: flex-end;
  gap: 10px;
}

.search {
  position: relative;
  display: grid;
  gap: 5px;
  width: min(360px, 34vw);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.search input {
  height: 38px;
}

.dashboard-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: min(460px, 88vw);
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(8, 28, 36, 0.2);
  padding: 8px;
}

.dashboard-search-results[hidden] {
  display: none;
}

.dashboard-search-results button,
.dashboard-search-empty {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--soft);
  padding: 9px 10px;
  color: var(--ink);
  text-align: left;
}

.dashboard-search-results button:hover,
.dashboard-search-results button:focus {
  border-color: var(--brand-2);
  background: #e6f3f2;
}

.dashboard-search-results span,
.dashboard-search-results small,
.dashboard-search-empty {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.dashboard-search-results b {
  font-size: 13px;
}

.primary-btn,
.ghost-btn,
.icon-btn,
.help-grid button {
  min-height: 38px;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.primary-btn {
  color: #fff;
  background: var(--brand-2);
  padding: 0 15px;
}

.ghost-btn {
  color: var(--brand);
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 13px;
}

.full-width {
  width: 100%;
}

.icon-btn {
  min-width: 42px;
  color: #fff;
  background: var(--coral);
}

.dashboard-section {
  display: none;
}

.dashboard-section.active {
  display: grid;
  gap: 18px;
}

.section-head {
  justify-content: space-between;
  gap: 16px;
}

.section-head h2 {
  font-size: 28px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.status-pill.success {
  color: var(--green);
  background: #dff5eb;
}

.status-pill.warning {
  color: var(--amber);
  background: #fff1d7;
}

.status-pill.neutral {
  color: var(--blue);
  background: #e2efff;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric {
  display: grid;
  gap: 7px;
  padding: 18px;
}

.metric span,
.metric small,
.muted {
  color: var(--muted);
}

.metric strong {
  font-size: 28px;
}

.panel {
  min-width: 0;
  padding: 18px;
}

.panel-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.three-column {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.task-list,
.settings-list,
.document-list,
.message-list {
  display: grid;
  gap: 10px;
}

.task-list label,
.settings-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  color: var(--ink);
}

.task-list input,
.settings-list input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-2);
}

.policy-grid,
.catalog-tools,
.fx-tool,
.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.catalog-tools {
  grid-template-columns: auto repeat(5, minmax(130px, 1fr));
  align-items: end;
}

.policy-grid span,
.document-list article,
.message-list article,
.order-stream article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.policy-grid span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  color: var(--muted);
}

.policy-grid b {
  color: var(--ink);
}

.order-stream {
  display: grid;
  gap: 8px;
}

.order-stream article {
  display: grid;
  grid-template-columns: 110px 1fr 150px 90px;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.order-stream em {
  color: var(--blue);
  font-style: normal;
  font-weight: 800;
}

.progress-track {
  height: 12px;
  border-radius: 999px;
  background: #dce6e9;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-2);
  transition: width 180ms ease;
}

.onboarding-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.workflow-panel {
  display: grid;
  gap: 16px;
}

.workflow-tracker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.workflow-tracker article {
  display: grid;
  gap: 8px;
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
  cursor: pointer;
}

.workflow-tracker b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--brand);
  background: #fff;
}

.workflow-tracker span {
  font-weight: 900;
}

.workflow-tracker em {
  align-self: end;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.workflow-tracker article.completed {
  border-color: #b7d7c9;
  background: #dff5eb;
}

.workflow-tracker article.locked {
  cursor: not-allowed;
  opacity: 0.62;
}

.workflow-tracker article.completed b,
.workflow-tracker article.current b {
  color: #fff;
  background: var(--brand-2);
}

.workflow-tracker article.current {
  border-color: var(--brand-2);
  background: #e6f3f2;
  box-shadow: 0 0 0 2px rgba(47, 111, 115, 0.14);
}

.next-step-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-color: var(--brand-2);
  background: linear-gradient(135deg, #ffffff, #e6f3f2);
}

.next-step-panel h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.next-step-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.workflow-detail {
  opacity: 0.68;
}

.workflow-detail[hidden] {
  display: none;
}

.workflow-detail.current,
.workflow-detail.completed {
  opacity: 1;
}

.workflow-detail.current {
  border-color: var(--brand-2);
}

.workflow-detail.completed {
  border-color: #b7d7c9;
}

.workflow-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.onboarding-column-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.onboarding-workflow-columns {
  grid-template-columns: 1fr;
}

.panel-copy {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.global-visibility-panel {
  border-color: #d7e7ee;
}

.global-visibility-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.visibility-country-grid {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.payout-country-field {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.payout-method-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}

.payout-form-list {
  display: grid;
  gap: 12px;
}

.payout-method-form {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
}

.payout-method-form[hidden] {
  display: none;
}

.payout-method-form h4 {
  margin: 0;
  font-size: 16px;
}

.payout-currency-note,
.payout-provider-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.payout-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.review-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.review-summary-grid article,
.review-readiness-list article,
.review-timeline article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
}

.review-summary-grid article {
  display: grid;
  gap: 5px;
}

.review-summary-grid span,
.review-timeline b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.review-summary-grid b {
  overflow-wrap: anywhere;
}

.review-readiness-list,
.review-timeline {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.review-readiness-list article,
.review-timeline article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-readiness-list article div {
  display: grid;
  gap: 4px;
}

.review-readiness-list small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.compact-btn {
  white-space: normal;
}

.review-timeline article.completed {
  border-color: #b7d7c9;
  background: #f2fbf7;
}

.review-timeline article.completed b {
  color: var(--green);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.policy-terms-modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(12, 31, 39, 0.58);
  backdrop-filter: blur(10px);
}

.staff-invite-modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(12, 31, 39, 0.58);
  backdrop-filter: blur(10px);
}

.policy-terms-modal[hidden],
.staff-invite-modal[hidden] {
  display: none;
}

.policy-terms-card {
  width: min(720px, 100%);
  max-height: min(86vh, 760px);
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(8, 28, 36, 0.32);
  padding: 24px;
}

.staff-invite-card {
  width: min(620px, 100%);
  max-height: min(86vh, 720px);
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(8, 28, 36, 0.32);
  padding: 24px;
}

.policy-terms-card h2,
.staff-invite-card h2 {
  margin: 0;
  font-size: 28px;
}

.policy-terms-body {
  max-height: 430px;
  display: grid;
  gap: 12px;
  overflow: auto;
  padding-right: 6px;
}

.policy-terms-body section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
}

.policy-terms-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.policy-terms-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.policy-terms-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.staff-invite-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.account-setup-panel {
  border-color: #b7d7c9;
}

.account-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.account-summary-grid article {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
}

.account-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.account-summary-grid b {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.enrollment-panel {
  border-color: #d7e7ee;
}

.enrollment-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.enrollment-agent-field[hidden],
.enrollment-self-field[hidden] {
  display: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid.single {
  grid-template-columns: 1fr;
}

.form-grid label,
.catalog-tools label,
.media-upload-grid label,
.fx-tool label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.pricing-currency-note {
  margin: 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.delivery-method-panel {
  display: grid;
  gap: 8px;
}

.timing-type-panel[hidden] {
  display: none;
}

.delivery-method-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.delivery-method-grid {
  grid-template-columns: 1fr;
}

.timing-type-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pickup-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  padding: 12px;
}

.pickup-panel[hidden] {
  display: none;
}

.checkbox-field {
  display: grid;
  gap: 8px;
}

.checkbox-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.checkbox-field-head b {
  color: var(--brand-2);
}

.checkbox-field p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#business-product-category {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 9px 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.checkbox-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-2);
}

.checkbox-option:has(input:checked) {
  border-color: var(--brand-2);
  background: #e6f3f2;
}

.checkbox-option:has(input:disabled) {
  opacity: 0.5;
}

.document-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.document-list span {
  color: var(--muted);
  text-align: right;
}

.document-card-list {
  display: grid;
  gap: 12px;
}

.document-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
}

.document-card.saved {
  border-color: #b7d7c9;
  background: #f2fbf7;
}

.document-card-head,
.document-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.document-card-head div {
  display: grid;
  gap: 4px;
}

.document-card-head b {
  font-size: 16px;
}

.document-card-head span:not(.status-pill),
.document-card-actions span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.document-card-actions span.error {
  color: #b42318;
  font-weight: 800;
}

.document-card-actions span.success {
  color: #1d6b45;
  font-weight: 800;
}

.document-card input[type="file"] {
  background: #fff;
}

.store-preview {
  display: grid;
  gap: 10px;
}

.store-cover {
  min-height: 130px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(24, 58, 74, 0.72), rgba(47, 111, 115, 0.72)),
    url("./assets/splash-local-vendor.png") center/cover;
}

.store-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-top: -35px;
  border: 3px solid #fff;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
}

.store-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

#staff-table-body td b,
#staff-table-body td small {
  display: block;
}

#staff-table-body td small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.staff-actions {
  min-width: 130px;
}

.staff-message {
  margin-top: 12px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-row span {
  border-radius: 999px;
  background: #dff5eb;
  color: var(--green);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.catalog-summary {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.view-toggle {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.view-toggle button {
  min-height: 34px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  padding: 0 12px;
  font-weight: 900;
}

.view-toggle button.active {
  color: #fff;
  background: var(--brand-2);
}

.listing-grid.list-view,
.dashboard-section.active .listing-grid.list-view {
  grid-template-columns: 1fr;
}

.listing-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
}

.listing-thumb {
  display: grid;
  place-items: end start;
  height: 92px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e4f2f3, #f7e6dd);
  padding: 10px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.listing-card-body {
  display: grid;
  gap: 9px;
}

.listing-card strong {
  display: block;
  font-size: 16px;
}

.listing-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.listing-card > span,
.listing-card-body > div > span,
.listing-row-main span {
  color: var(--brand);
  font-weight: 800;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.listing-meta span {
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 800;
}

.listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

.listing-actions button {
  flex: 1;
}

.editor-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.editor-media-panel,
.target-audience-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  padding: 12px;
}

.timing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.timing-grid label[hidden] {
  display: none;
}

.timing-grid:has(label[hidden]) label:not([hidden]) {
  grid-column: 1 / -1;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.target-audience-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.target-audience-groups {
  display: grid;
  gap: 10px;
}

.target-audience-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.target-audience-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
  color: var(--ink);
  padding: 10px 12px;
  font-weight: 900;
}

.target-audience-group summary b {
  color: var(--muted);
  font-size: 12px;
}

.target-audience-category {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 12px;
}

.target-audience-category h4 {
  margin: 0;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.target-audience-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.target-audience-chip span {
  min-height: 36px;
  align-items: flex-start;
}

.target-audience-chip em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.target-audience-chip.disabled {
  opacity: 0.58;
}

.target-audience-chip.disabled span {
  cursor: not-allowed;
  background: #eef3f5;
}

.listing-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.listing-row .listing-thumb {
  width: 104px;
  height: 78px;
}

.listing-row-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  color: var(--muted);
  font-weight: 800;
}

.empty-state b {
  color: var(--ink);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 14px;
}

.product-media-panel,
.product-detail-panel {
  align-content: start;
}

.detail-hero {
  min-height: 270px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand);
  background: linear-gradient(135deg, #e4f2f3, #f7e6dd);
  background-position: center;
  background-size: cover;
  font-weight: 900;
}

.detail-hero.has-media {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.media-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.media-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.media-preview-grid article {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  min-width: 0;
}

.media-preview-grid span {
  overflow-wrap: anywhere;
}

.media-preview-grid img,
.media-preview-grid video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.detail-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.detail-stat-grid article,
.detail-info-list article {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.detail-stat-grid span,
.detail-info-list span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-info-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.detail-tags {
  margin-top: 12px;
}

.fx-tool output {
  display: grid;
  align-content: center;
  min-height: 70px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  padding: 14px;
  font-size: 24px;
  font-weight: 900;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
}

.kanban-column {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 10px;
}

.kanban-column h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.order-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px;
  margin-bottom: 9px;
}

.order-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.order-card .button-row {
  gap: 7px;
}

.order-card button {
  min-height: 30px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand-2);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
}

.order-card button.reject {
  background: var(--coral);
}

.order-card button:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: #d9dee7;
}

.ngo-support-order-card {
  border-color: #9aa6b5;
  background: linear-gradient(180deg, #fff, #f4f8fb);
  box-shadow: 0 10px 22px rgba(21, 31, 49, 0.12);
}

.ngo-order-meta {
  display: grid;
  gap: 4px;
  border-left: 3px solid var(--gold);
  background: rgba(225, 145, 30, 0.08);
  padding: 8px 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.proof-note-field {
  display: grid;
  gap: 5px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.proof-note-field input {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
  font: inherit;
  background: #fff;
}

.order-detail {
  justify-content: space-between;
  gap: 12px;
}

.order-detail p {
  margin: 7px 0 0;
  color: var(--muted);
}

.inline-alert {
  border-radius: 8px;
  color: var(--blue);
  background: #e2efff;
  padding: 11px;
  font-size: 13px;
  font-weight: 800;
}

.inline-alert.error {
  color: var(--red);
  background: #ffe4e0;
}

.inline-alert.success {
  color: var(--green);
  background: #dff5eb;
}

.large-number {
  margin: 10px 0 2px;
  font-size: 32px;
  font-weight: 900;
}

.message-list article {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.message-list p {
  margin: 0;
  color: var(--muted);
}

.review-score {
  margin: 10px 0 18px;
  font-size: 54px;
  font-weight: 900;
}

.review-score span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.bar-chart {
  display: grid;
  gap: 12px;
}

.bar-chart span {
  display: grid;
  grid-template-columns: 180px 1fr 90px;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.bar-chart span::after {
  content: "";
  grid-column: 2;
  height: 14px;
  width: calc(var(--value) * 1%);
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-2), #d79757);
}

.bar-chart b {
  grid-column: 3;
  color: var(--ink);
}

.help-grid button {
  border: 1px solid var(--line);
  color: var(--brand);
  background: var(--soft);
  padding: 12px;
  text-align: left;
}

@media (max-width: 1180px) {
  .metric-grid,
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-tools,
  .detail-layout,
  .target-audience-grid {
    grid-template-columns: 1fr 1fr;
  }

  .listing-row {
    grid-template-columns: 1fr;
  }

  .three-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .merchant-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar,
  .section-head,
  .two-column,
  .order-detail {
    display: grid;
    grid-template-columns: 1fr;
  }

  .top-actions {
    justify-content: stretch;
  }

  .search {
    width: 100%;
  }

  .policy-grid,
  .onboarding-actions,
  .enrollment-actions,
  .global-visibility-actions,
  .payout-method-head,
  .payout-actions,
  .policy-terms-actions,
  .review-summary-grid,
  .account-summary-grid,
  .catalog-tools,
  .fx-tool,
  .form-grid,
  .pickup-panel,
  #business-product-category,
  .checkbox-grid,
  .help-grid {
    grid-template-columns: 1fr;
  }

  .order-stream article,
  .message-list article,
  .document-card-head,
  .document-card-actions,
  .review-readiness-list article,
  .review-timeline article {
    grid-template-columns: 1fr;
    display: grid;
  }

  .auth-screen {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 96px;
  }

  .merchant-signup-screen {
    padding: 18px;
  }

  .otp-panel,
  .otp-entry {
    grid-template-columns: 1fr;
  }

  .auth-value-grid {
    grid-template-columns: 1fr;
  }

  .workflow-tracker {
    grid-template-columns: 1fr;
  }

  .next-step-panel {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .workspace {
    padding: 16px;
  }

  .topbar {
    margin: -16px -16px 18px;
    padding: 16px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .listing-grid {
    grid-template-columns: 1fr;
  }

  .catalog-tools,
  .detail-layout,
  .detail-stat-grid,
  .media-upload-grid,
  .target-audience-grid,
  .timing-grid,
  .editor-actions {
    grid-template-columns: 1fr;
  }

  .media-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listing-row-main {
    grid-template-columns: 1fr;
  }

  .listing-row .listing-thumb {
    width: 100%;
  }

  .nav-list {
    grid-template-columns: 1fr;
  }

  .section-head h2 {
    font-size: 24px;
  }
}
