﻿:root {
  --pink: #EC347E;
  --pink-dark: #8a164b;
  --pink-soft: #fdeaf2;
  --teal: #0f766e;
  --nav: #172033;
  --text: #102033;
  --muted: #64748b;
  --border: #dbe3ef;
  --bg: #e8edf5;
  --card: #fff;
  --danger: #dc2626;
  --field-bg: #fff;
  --field-border: #d9dee7;
  --label: #4b5563;
  --helper: #6b7280;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

button, input, textarea, select { font: inherit; }
button {
  border: 0;
  border-radius: 8px;
  background: var(--pink);
  color: white;
  cursor: pointer;
  font-weight: 800;
  min-height: 40px;
  padding: 0 16px;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 120ms ease;
}
button.secondary { background: white; border: 1px solid var(--border); color: var(--text); }
button.danger { background: var(--danger); }
button:disabled { cursor: not-allowed; opacity: .55; }
button.is-loading { position: relative; }
button:not(:disabled):active { transform: translateY(1px); }

.shell { margin: 0 auto; max-width: 1280px; padding: 28px; }
body:not(.logged-in) .shell {
  align-items: center;
  display: grid;
  min-height: 100vh;
  max-width: none;
  padding: 24px;
}
body.logged-in .shell {
  max-width: none;
  padding: 0;
}
.hero {
  align-items: flex-end;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  border-radius: 18px;
  color: white;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 28px;
}
body.logged-in .hero,
body:not(.logged-in) .hero { display: none; }
.hero h1 { font-size: 34px; margin: 4px 0 8px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; margin: 0; text-transform: uppercase; }
.subcopy { color: rgba(255,255,255,.84); margin: 0; max-width: 680px; }
.status-card {
  align-items: center;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  white-space: nowrap;
}
.status-dot { background: #16a34a; border-radius: 50%; display: inline-block; height: 9px; width: 9px; }

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .045);
  padding: 16px;
}
.hidden,
.module-panel.hidden { display: none !important; }
.muted { color: var(--muted); }
.login-panel {
  border-top: 6px solid var(--teal);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .11);
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 430px;
  padding: 24px;
  width: 100%;
}
.login-brand {
  display: grid;
  gap: 10px;
  margin-bottom: 2px;
}
.login-brand img {
  height: 74px;
  object-fit: contain;
  object-position: left center;
  width: 180px;
}
.login-brand div {
  display: grid;
  gap: 6px;
}
.login-brand h2 {
  font-size: 24px;
  font-weight: 900;
  margin: 0;
}
.login-brand p {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
}
.login-panel .compact {
  gap: 10px;
  grid-template-columns: 1fr;
}
.login-panel label {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  gap: 6px;
}
.login-panel button {
  background: var(--teal);
  width: 100%;
}
.login-footnote {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
}
.form-grid { display: grid; gap: 14px; }
.compact { grid-template-columns: 1fr 1fr auto; align-items: end; }
label,
.edit-form > div:not(.form-section) {
  align-self: start;
  color: var(--label);
  display: grid;
  font-size: 12px;
  gap: 7px;
  font-weight: 800;
}
input, textarea {
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  min-height: 40px;
  padding: 10px 12px;
  width: 100%;
}
input:disabled,
textarea:disabled,
select:disabled,
.readonly-state {
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
}
input::placeholder,
textarea::placeholder {
  color: #9ca3af;
  opacity: 1;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,138,122,.12);
  outline: none;
}
textarea {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  min-height: 92px;
  resize: vertical;
}
select {
  background: white;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  min-height: 40px;
  padding: 10px 12px;
  width: 100%;
}
.multi-select { min-height: 112px; }
.multi-select option { padding: 7px 8px; }

.admin-shell {
  display: grid;
  gap: 0;
  grid-template-columns: 260px minmax(0, 1fr);
  margin: -28px;
  min-height: 100vh;
}
body.logged-in .admin-shell {
  margin: 0;
}
.admin-shell.hidden { display: none; }
.admin-sidebar {
  background: var(--nav);
  color: white;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  padding: 22px 18px;
}
.brand-lockup {
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
  padding-bottom: 20px;
}
.brand-lockup img {
  background: transparent;
  height: 74px;
  object-fit: contain;
  object-position: left center;
  width: 180px;
}
.brand-lockup b,
.brand-lockup span {
  display: block;
}
.brand-lockup b {
  color: #ffffff;
  font-size: 20px;
}
.brand-lockup span {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}
.tenant-card {
  border-top: 1px solid rgba(255,255,255,.14);
  display: grid;
  gap: 7px;
  padding-top: 18px;
}
.tenant-card span,
.tenant-card small {
  color: #cbd5e1;
}
.tenant-card strong {
  background: white;
  border-radius: 8px;
  color: var(--text);
  padding: 12px;
}
.admin-main {
  background: #eef3f8;
  min-width: 0;
  padding: 22px;
}
.toolbar {
  align-items: center;
  border-left: 2px solid var(--pink);
  border-top: 4px solid var(--teal);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 14px 18px;
}
.toolbar h2, .panel h3 { margin: 0; }
.panel h3 { font-size: 16px; }
.toolbar h2 {
  font-size: 24px;
  margin: 0 0 4px;
}
.eyebrow.dark {
  color: var(--teal);
  letter-spacing: 0;
  margin-bottom: 4px;
}
.toolbar-actions, .editor-actions { align-items: center; display: flex; gap: 10px; }
.staff-name { color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.status-text {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}
.status-text.info { background: #eef2f7; color: var(--muted); }
.status-text.success { background: #ecfdf5; color: #047857; }
.status-text.error { background: #fef2f2; color: var(--danger); }
.tabs { align-content: start; display: grid; gap: 16px; margin: 0; overflow: auto; padding-right: 2px; }
.nav-group {
  display: grid;
  gap: 7px;
}
.nav-group-title {
  color: #93a4b8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 0 4px;
  text-transform: uppercase;
}
.tab {
  background: transparent;
  border: 0;
  border-left: 4px solid transparent;
  border-radius: 0;
  color: #cbd5e1;
  justify-content: flex-start;
  padding: 12px 14px;
  text-align: left;
}
.tab.active,
.tab:hover { background: rgba(15, 118, 110, 0.9); border-left-color: var(--teal); color: white; }
.grid { display: grid; gap: 16px; grid-template-columns: minmax(320px, 420px) 1fr; }
.panel-header { align-items: center; display: flex; justify-content: space-between; margin-bottom: 12px; }
.pill { background: var(--pink-soft); border-radius: 999px; color: var(--pink); font-size: 12px; font-weight: 800; padding: 6px 10px; }
.record-list { display: grid; gap: 10px; max-height: 680px; overflow: auto; }
.record {
  background: #fbfdff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  min-height: auto;
  padding: 11px 12px;
  text-align: left;
}
.record.active { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,138,122,.12); }
.record strong { display: block; font-size: 13px; margin-bottom: 5px; }
.record small { color: var(--muted); display: block; line-height: 1.4; }
.editor { display: grid; gap: 12px; }
.edit-form {
  display: grid;
  column-gap: 14px;
  row-gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.span-2 { grid-column: 1 / -1; }
.form-section {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  margin-top: 4px;
  padding: 12px;
}
.form-section:first-child {
  margin-top: 0;
}
.form-section strong {
  color: var(--text);
  font-size: 14px;
}
.form-section small {
  color: var(--helper);
  font-size: 12px;
  font-weight: 600;
}
.checkbox-label {
  align-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  grid-template-columns: 1fr auto;
  min-height: 40px;
  padding: 10px 12px;
}
.checkbox-label input { min-height: auto; width: 18px; }
.checkbox-control {
  align-items: center;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 8px;
  color: var(--text);
  display: flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: space-between;
  min-height: 40px;
  padding: 10px 12px;
  width: 100%;
}
.checkbox-control input {
  min-height: auto;
  width: 18px;
}
.field-link {
  align-self: flex-start;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.field-link:hover {
  text-decoration: underline;
}
.time-range {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.time-range label {
  color: var(--label);
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
}
.time-range span {
  color: var(--label);
}
label small,
.edit-form > div:not(.form-section) > small {
  color: var(--helper);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}
.check-list {
  border: 1px solid var(--field-border);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 236px;
  overflow: auto;
  padding: 10px;
}
.option-check-list {
  max-height: none;
}
.check-list-toolbar {
  align-items: center;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  margin: -10px -10px 2px;
  padding: 10px;
  position: sticky;
  top: -10px;
  z-index: 1;
}
.check-list-toolbar div {
  display: flex;
  gap: 6px;
}
.check-list-toolbar button {
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  min-height: 30px;
  padding: 0 10px;
}
.selection-count {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}
.check-item {
  align-items: center;
  background: #fbfdff;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr;
  min-height: 48px;
  padding: 8px 10px;
}
.check-item input {
  min-height: auto;
  width: 16px;
}
.check-item span {
  display: grid;
  gap: 2px;
}
.check-item strong {
  color: var(--text);
  font-size: 13px;
}
.check-item small,
.empty-inline {
  color: var(--helper);
  font-size: 12px;
  font-weight: 600;
}
.empty-inline {
  grid-column: 1 / -1;
  margin: 0;
}
.image-thumb {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  gap: 8px;
  margin-top: 8px;
  min-height: 52px;
  padding: 6px;
}
.image-thumb img {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: block;
  object-fit: contain;
}
.image-thumb span {
  color: var(--helper);
  font-size: 12px;
  font-weight: 700;
}
.banner-thumb img {
  aspect-ratio: 2.65;
  width: 168px;
}
.product-thumb {
  align-self: flex-start;
  min-height: 52px;
  padding-right: 12px;
  width: auto;
}
.product-thumb img {
  height: 48px;
  width: 48px;
}
.raw-preview {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.raw-preview summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}
pre {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  margin: 10px 0 0;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
}
.asset-box { background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; display: grid; font-size: 13px; gap: 10px; padding: 14px; }
.asset-box h4 { margin: 0; }
.asset-box p { margin: 0; }
.result-panel.compact {
  max-height: 360px;
  overflow: auto;
}
.pos-promo-list {
  display: grid;
  gap: 10px;
}
.pos-promo-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  font-size: 13px;
  gap: 8px;
  padding: 12px;
  text-align: left;
  width: 100%;
}
.pos-promo-card strong { color: var(--text); }
.pos-promo-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}
.pos-promo-card:hover { border-color: var(--teal); }
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.inline-actions button {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  min-height: 32px;
  padding: 0 10px;
}
.test-summary {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 12px;
}
.test-summary strong { color: var(--text); }
.test-summary span { color: var(--pink); font-size: 18px; font-weight: 900; }
.test-summary small { color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.45; }
.asset-preview-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}
.asset-preview-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.asset-preview-header div {
  display: grid;
  gap: 3px;
}
.asset-preview-header strong {
  font-size: 13px;
}
.asset-preview-header span,
.ratio-pill {
  color: var(--helper);
  font-size: 12px;
  font-weight: 700;
}
.ratio-pill {
  background: var(--pink-soft);
  border-radius: 999px;
  color: var(--pink);
  padding: 5px 8px;
  white-space: nowrap;
}
.asset-preview-frame {
  aspect-ratio: 2.65;
  background: #eef2f7;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.asset-preview-box.product-mode .asset-preview-frame {
  aspect-ratio: 1;
  max-width: 460px;
}
.asset-preview-box.original-mode .ratio-pill,
.asset-preview-box.original-mode .crop-controls {
  display: none;
}
.toast {
  background: var(--text);
  border-radius: 10px;
  bottom: 22px;
  box-shadow: 0 18px 36px rgba(17,24,39,.18);
  color: white;
  font-size: 14px;
  font-weight: 800;
  max-width: 420px;
  padding: 13px 16px;
  position: fixed;
  right: 22px;
  z-index: 20;
}
.toast.success { background: #047857; }
.toast.error { background: var(--danger); }
.toast.info { background: var(--text); }
.asset-preview-frame img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform .15s ease;
  width: 100%;
}
.crop-controls {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.crop-controls label {
  font-size: 12px;
}
.crop-controls input {
  min-height: 30px;
  padding: 0;
}
.dashboard-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}
.dashboard-grid.wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.metric-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .045);
  display: grid;
  gap: 12px;
  padding: 16px;
}
.metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.metric-card strong {
  color: var(--teal);
  font-size: 30px;
  line-height: 1;
}
.readiness-card .panel-header strong {
  color: var(--teal);
  font-size: 28px;
}
.progress {
  background: #dbe4ea;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}
.progress span {
  background: var(--teal);
  display: block;
  height: 100%;
}
.action-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.action-list button,
.action-list .anchor-link,
.action-list .static-link {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  display: grid;
  gap: 4px;
  justify-items: start;
  min-height: 64px;
  padding: 10px 12px;
  text-align: left;
  text-decoration: none;
}
.action-list button strong,
.action-list .anchor-link strong,
.action-list .static-link strong {
  color: var(--teal);
}
.action-list button span,
.action-list .anchor-link span,
.action-list .static-link span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.metric-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.metric-list div {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 11px 12px;
}
.metric-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.metric-list b {
  color: var(--text);
  font-size: 16px;
}
.compact-table {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.compact-report-row {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 2fr repeat(4, minmax(80px, 1fr));
  padding: 10px 12px;
}
.compact-report-row span {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.compact-report-row small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}
.inline-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ownership-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}
.ownership-grid article {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 12px;
}
.ownership-grid strong {
  color: var(--text);
  font-size: 14px;
}
.ownership-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}
.guardrail-panel {
  margin-top: 0;
}
.guardrail-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.guardrail-list span,
.safe-note {
  background: #eafaf3;
  border: 1px solid #a9ead1;
  border-radius: 8px;
  color: #006b5f;
  display: block;
  font-weight: 800;
  padding: 12px 14px;
}
.status-pill {
  background: #eafaf3;
  border-radius: 999px;
  color: var(--teal);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  text-transform: uppercase;
}
.error-text {
  color: var(--danger);
  font-weight: 800;
}
.inventory-sync {
  align-items: flex-start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: space-between;
  margin-top: 0;
}
.tool-copy {
  min-width: 0;
}
.module-panel {
  margin-top: 0;
}
.inventory-sync h3,
.inventory-sync p {
  margin: 0;
}
.inventory-sync p {
  margin-top: 5px;
}
.inventory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.inventory-diagnostic {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: none;
  margin-top: 10px;
  max-height: 220px;
  max-width: 720px;
  overflow: auto;
  padding: 10px;
}
.inventory-diagnostic.visible {
  display: block;
}
.tool-layout,
.diagnostics-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
}
.lookup-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  margin-top: 16px;
}
.result-panel {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  min-height: 260px;
  padding: 18px;
}
.customer-strip {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  margin: 14px 0;
  padding: 12px;
}
.customer-strip span,
.followup-card small {
  color: var(--muted);
}
.mini-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.mini-metrics span {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  padding: 10px 12px;
}
.mini-metrics strong {
  color: var(--teal);
}
.followup-list {
  display: grid;
  gap: 10px;
}
.followup-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}
.followup-card p {
  margin: 0;
}
.diagnostic-cards {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.diagnostic-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  font-size: 13px;
  gap: 10px;
  padding: 14px;
}
.diagnostic-card h4,
.diagnostic-card p {
  margin: 0;
}
.diagnostic-card p {
  color: var(--muted);
}
.diagnostic-response {
  background: #0f172a;
  border-radius: 10px;
  color: #e2e8f0;
  display: none;
  max-height: 720px;
  padding: 14px;
}
.diagnostic-response.visible {
  display: block;
}
.safety { margin-top: 0; }
.safety li { margin: 8px 0; }
.compliance-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}
.compliance-grid article {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.compliance-grid h4 {
  margin: 0 0 8px;
}
.compliance-grid ul {
  margin: 0;
  padding-left: 18px;
}
code { background: var(--pink-soft); border-radius: 6px; color: var(--pink-dark); padding: 2px 5px; }
.empty,
.empty-state {
  align-items: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  min-height: 76px;
  padding: 18px;
  text-align: center;
}



.finance-layout {
  display: grid;
  gap: 16px;
}
.finance-control-panel {
  display: grid;
  gap: 14px;
}
.finance-upload-grid {
  align-items: end;
  grid-template-columns: minmax(220px, 0.8fr) minmax(160px, 0.4fr) minmax(280px, 1fr);
}
.finance-upload-grid .wide-field {
  grid-column: span 2;
}
.finance-action-row {
  grid-column: 1 / -1;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.autocount-layout {
  display: grid;
  gap: 16px;
}
.autocount-control-panel {
  display: grid;
  gap: 14px;
}
.autocount-filters {
  align-items: end;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
}

.autocount-upload-grid {
  align-items: end;
  grid-template-columns: minmax(260px, 1fr) auto;
}
.compact-header {
  margin-top: 8px;
}
.autocount-actions {
  display: flex;
  gap: 8px;
}
.autocount-metrics {
  margin-bottom: 0;
}
.autocount-table {
  display: grid;
  gap: 8px;
  margin: 10px 0 16px;
  min-width: 720px;
}
.autocount-table-row {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  padding: 10px 12px;
}
.autocount-table-head {
  background: #eef7f6;
  border-color: #bfe6df;
}
.autocount-table-row span {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.autocount-table-head span {
  color: var(--teal);
  font-weight: 900;
}
.autocount-layout h4 {
  margin: 12px 0 6px;
}

@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; margin: 0; }
  .admin-sidebar { min-height: auto; }
  .admin-main { padding: 18px; }
  .hero, .toolbar { align-items: flex-start; flex-direction: column; gap: 16px; }
  .compact, .grid, .edit-form, .compliance-grid, .dashboard-grid, .dashboard-grid.wide, .tool-layout, .diagnostics-layout, .lookup-grid, .ownership-grid, .inline-actions, .compact-report-row, .autocount-filters, .autocount-upload-grid, .finance-upload-grid { grid-template-columns: 1fr; } .finance-upload-grid .wide-field, .finance-action-row { grid-column: auto; } .qr-outlet-card summary { grid-template-columns: 1fr; }
  .inventory-sync { align-items: stretch; grid-template-columns: 1fr; }
  .toolbar-actions { align-items: stretch; flex-wrap: wrap; }
  .staff-name { flex-basis: 100%; }
}





/* Registration steps stay hidden even when the shared label styles set display. */
#memberRegistrationForm [hidden] { display: none !important; }
