/* Administration only. Never load this stylesheet on a merchant product page.
   Shared by the prepared Vue UI and the styling-only legacy test build. */
:root {
  --wl-canvas: #f6f7f8;
  --wl-surface: #ffffff;
  --wl-ink: #2b2f33;
  --wl-muted: #727d86;
  --wl-line: #e8eaeb;
  --wl-accent: #025ca1;
  --wl-accent-dark: #044b87;
  --wl-accent-soft: #e9f0f5;
  --wl-nav: #00355e;
  --wl-nav-active: #002745;
  --wl-radius: 11px;
}

html, body {
  background: var(--wl-canvas);
  color: var(--wl-ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html body #app {
  min-height: 100vh;
  padding: 0;
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif !important;
  background: var(--wl-canvas);
  color: var(--wl-ink);
  line-height: 1.6;
  scrollbar-gutter: stable;
}

#app > .waitlist-shell { max-width: none; margin: 0; }
#app .menu-tab { box-shadow: none; }
#app .upperBar { margin-bottom: 16px; }
#app .upperBar .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
}
#app .upperBar img { width: 34px; height: 34px; border-radius: 9px; }
#app .upperBar h4 { font-size: 18px; font-weight: 700; color: var(--wl-ink); }
#app .upperBar .left-space { margin-left: auto; }
#app nav.menu {
  height: 56px;
  padding: 0 14px;
  border: 1px solid var(--wl-line);
  border-radius: var(--wl-radius);
  box-shadow: none;
  margin-bottom: 24px;
}
#app .menu ul { border: 0; gap: 16px; }
#app .menu li { border: 0; }
#app .menu li a {
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  border: 0;
  border-radius: 8px;
  color: var(--wl-muted);
}
#app .menu li span { margin: 0; }
#app .menu li a:hover { background: var(--wl-canvas); color: var(--wl-ink); }
#app .menu li a.active-tab { background: var(--wl-accent-soft); color: var(--wl-accent); }
#app .menu a.active-tab svg, #app .menu a.active-tab path { fill: var(--wl-accent); }
#app nav.hamburger-menu {
  margin-bottom: 18px;
  border-color: var(--wl-line);
  box-shadow: none;
}
#app .waitlist-search-bar { margin: 0 0 18px; padding: 0; }
#app .waitlist-left { color: var(--wl-ink); font-size: 20px; font-weight: 700; }
#app .main {
  padding: 24px;
  border: 1px solid var(--wl-line);
  border-radius: var(--wl-radius);
  background: var(--wl-surface);
  box-shadow: none;
}

/* Existing dashboard: remove the pastel fills and ornamental card footers. */
#app .stats-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
#app .stats-card {
  min-width: 0;
  height: auto;
  min-height: 130px;
  padding: 20px;
  gap: 14px;
  background: var(--wl-surface);
  border: 1px solid var(--wl-line);
  border-radius: var(--wl-radius);
  box-shadow: none;
  grid-area: auto;
}
#app .stats-card-title { padding: 0; font-size: 12px; font-weight: 600; color: var(--wl-muted); }
#app .stats-card-body { padding: 0; gap: 12px; }
#app .stats-card-body p { font-size: 32px; font-weight: 700; color: var(--wl-ink); letter-spacing: -1px; }
#app .stats-card-body img { width: 28px; height: 28px; filter: grayscale(1); opacity: .4; }
#app .stats-card.amount .stats-card-body p { font-size: 28px; }
#app .stats-card.amount .stats-card-body img { display: none; }
#app .stats-card .stats-card-footer { display: none; }
#app .getting-started { padding-bottom: 0; border: 1px solid var(--wl-line); border-radius: var(--wl-radius); box-shadow: none; overflow: hidden; }
#app .getting-started .title { padding: 16px 20px; }
#app .getting-started h4 { font-size: 16px; line-height: 1.5; }
#app .getting-started nav { border-color: var(--wl-line); }
#app .getting-started nav button { height: 42px; font-size: 12px; border-color: var(--wl-line); }
#app .getting-started nav button.active { background: var(--wl-accent-soft); box-shadow: inset 3px 0 var(--wl-accent); }
#app .getting-started .tab-content { padding: 18px 22px; border-color: var(--wl-line); }
#app .getting-started .tab-content h6 { font-size: 16px; line-height: 1.5; }
#app section.tables { margin-top: 28px; gap: 20px; }
#app .dashboard-table-container { min-width: 0; }
#app .dashboard-title { margin-bottom: 12px; font-size: 14px; font-weight: 600; }

/* Product placement: neutral canvas and a compact count, without yellow panels. */
#app:has(.wdgt), #app:has(.product-widget) { min-height: 0; padding: 16px; background: var(--wl-surface); }
#app section.wdgt, #app .product-widget {
  padding: 8px;
  background: var(--wl-surface);
  border: 0;
  border-radius: 0;
  color: var(--wl-ink);
  gap: 20px;
}
#app .tabs-panel { display: flex; flex-direction: column; gap: 20px; }
#app .row-boxs .box { border: 1px solid var(--wl-line); border-radius: var(--wl-radius); box-shadow: none; overflow: hidden; }
#app .main-box {
  min-height: 0;
  padding: 22px;
  background: var(--wl-surface);
  gap: 18px;
  justify-content: flex-start;
  text-align: left;
}
#app .main-box > svg { width: 42px; height: 42px; flex-shrink: 0; }
#app .main-box .details { gap: 4px; }
#app .main-box h2 { font-size: 36px; line-height: 1.2; font-weight: 700; color: var(--wl-ink); }
#app .main-box p { font-size: 12px; color: var(--wl-muted); }
#app .bottom-title { padding: 9px 22px; background: var(--wl-canvas); border-top: 1px solid var(--wl-line); border-radius: 0; font-size: 11px; color: var(--wl-muted); text-align: left; }
#app .tabs-panel h3 { font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--wl-ink); }
#app .variant_id, #app .product-id { color: var(--wl-muted); font-size: 11px; overflow-wrap: anywhere; }
#app .customer-section { border-color: var(--wl-line); border-radius: var(--wl-radius); padding: 20px; }

/* Prepared analytics UI uses the same palette, spacing and card hierarchy. */
#app .analytics-dashboard { padding: 0; border: 0; background: transparent; }
#app .dashboard-header { align-items: flex-start; margin-bottom: 24px; }
#app .dashboard-header h1 { font-size: 26px; letter-spacing: -.65px; line-height: 1.35; }
#app .eyebrow { color: var(--wl-accent); font-size: 10px; letter-spacing: 1.2px; }
#app .metric-card, #app .chart-card, #app .table-card,
#app .summary-grid article, #app .charts article, #app .stock-table,
#app .activity-grid article, #app .monitoring-strip {
  background: var(--wl-surface);
  border: 1px solid var(--wl-line);
  border-radius: var(--wl-radius);
  box-shadow: none;
}
#app .metric-card strong, #app .summary-grid strong { color: var(--wl-ink); letter-spacing: -.8px; }
#app .activity-grid article { padding: 18px; }
#app .activity-grid i { font-size: 16px; color: var(--wl-accent); }
#app .activity-grid .has-failures i { color: #b4533c; }
#app .section-heading h2, #app .product-insights h3 { font-size: 15px; color: var(--wl-ink); }
#app .monitoring-strip { padding: 16px 20px; }
#app .monitoring-strip a, #app .section-heading a { color: var(--wl-accent); }

/* PrimeVue tables and controls stay consistent inside the isolated app frame. */
#app .p-component { font-family: inherit; }
#app .p-datatable-wrapper, #app .dashboard-table { border: 1px solid var(--wl-line); border-radius: 10px; }
#app .p-datatable .p-datatable-thead > tr > th {
  padding: 12px 16px;
  background: var(--wl-canvas);
  border-color: var(--wl-line);
  color: var(--wl-muted);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
}
#app .p-datatable .p-datatable-thead > tr > th:hover { background: #edf2f7; color: var(--wl-ink); }
#app .p-datatable .p-datatable-tbody > tr > td { padding: 14px 16px; border-color: var(--wl-line); font-size: 13px; color: var(--wl-ink); overflow-wrap: anywhere; }
#app .p-datatable .p-column-title { color: inherit; font-size: 12px; font-weight: 600; }
#app .p-datatable .p-datatable-tbody > tr.p-highlight { background: var(--wl-accent-soft); color: var(--wl-ink); }
#app .p-checkbox .p-checkbox-box.p-highlight { background: var(--wl-accent); border-color: var(--wl-accent); }
#app .p-paginator { padding: 12px 0; background: transparent; border: 0; gap: 4px; }
#app .p-paginator .p-paginator-current { font-size: 12px; color: var(--wl-muted); }
#app .p-paginator button { border-radius: 7px; min-width: 32px; height: 32px; color: var(--wl-muted); }
#app .p-tabview-nav-link { font-size: 12px; border-color: var(--wl-line); }
#app .p-tabview .p-tabview-nav li.p-highlight .p-tabview-nav-link { border-color: var(--wl-accent); color: var(--wl-accent); }
#app .p-dropdown { border-color: var(--wl-line); border-radius: 8px; }
#app button:not(.p-paginator-element):not(.p-checkbox-box) { font-family: inherit; }
#app .delete-btn, #app .refresh-btn, #app button.flat {
  height: 38px;
  padding: 0 14px;
  background: var(--wl-surface);
  border: 1px solid var(--wl-line);
  border-radius: 8px;
  color: var(--wl-ink);
  font-size: 12px;
  font-weight: 600;
}
#app .delete-btn:not(:disabled) { color: #b42335; border-color: #e7cbd0; }
#app .refresh-btn:hover, #app button.flat:hover { background: var(--wl-canvas); }
#app .getting-started .tab-content button:not(.three-dots) { background: var(--wl-accent); color: white; height: 38px; font-size: 12px; }

/* Carry the Insights palette through settings, email tools and legacy editors. */
#app :is(.smtp-settings, .signing-setup, .store-link, .mailbox, .email-editor, .container-template) {
  background: var(--wl-surface);
  border: 1px solid var(--wl-line);
  border-radius: var(--wl-radius);
  color: var(--wl-ink);
  box-shadow: none;
  padding: 24px;
}
#app :is(.smtp-settings, .signing-setup, .store-link, .mailbox, .email-editor) { margin-bottom: 24px; }
#app :is(.smtp-settings, .signing-setup, .store-link, .mailbox, .email-editor) h2 { font-size: 22px; font-weight: 700; letter-spacing: -.4px; }
#app :is(.smtp-settings, .signing-setup, .store-link, .mailbox, .email-editor) header > div > p:last-child { color: var(--wl-muted); }
#app :is(.notice, .rotation, .replace-draft, .mode) {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid var(--wl-line);
  border-radius: 8px;
}
#app :is(.notice.active, .notice.success) { background: var(--wl-accent-soft); border-color: #cce7e1; color: var(--wl-accent); }
#app :is(.notice.error, .notice.failure, .notice[role=alert]) { background: #fff5f5; border-color: #f2d5d8; color: #a52c3e; }
#app .smtp-settings .badge { background: #f1f5f9; color: #475569; border: 1px solid var(--wl-line); }
#app .smtp-settings .badge.ready { background: var(--wl-accent-soft); color: var(--wl-accent); border-color: #cce7e1; }
#app :is(.mailbox, .product-insights, .analytics-dashboard) :is(.review, .retry, .pending, .waiting) { background: #f1f5f9; color: #475569; }
#app .composer { background: var(--wl-canvas); border-color: var(--wl-line); border-radius: 10px; }
#app .composer .styles .selected { background: var(--wl-accent-soft); border-color: var(--wl-accent); box-shadow: inset 0 0 0 1px var(--wl-accent); }
#app :is(.smtp-settings, .signing-setup, .store-link, .mailbox, .email-editor, .composer) :is(input, select, textarea) { border-color: var(--wl-line); border-radius: 8px; color: var(--wl-ink); accent-color: var(--wl-accent); }
#app :is(.smtp-settings, .signing-setup, .store-link, .mailbox, .email-editor) button { border-color: var(--wl-line); border-radius: 8px; font-weight: 600; }
#app :is(button.primary, .wl-button:not(.flat), .small:not(.flat):not(.red-text), .search-btn, .btn-send, .btn-export),
#app .waitlist-right > button:not(.flat),
#app .actions > button:not(.flat):not([type=button]) { background: var(--wl-accent); color: white; border-color: var(--wl-accent); }
#app :is(button.primary, .wl-button:not(.flat)):hover:not(:disabled) { background: var(--wl-accent-dark); }
#app .wl-button.flat { background: white; color: var(--wl-ink); border-color: var(--wl-line); }
#app .wl-button.red-text { color: #b42335; }
#app :is(.tabs-nav .active, .nav-container .active) { box-shadow: 0 3px 0 var(--wl-accent); color: var(--wl-accent); }
#app .tabs-nav { border-color: var(--wl-line); }
#app section > nav button.active { box-shadow: 0 3px 0 var(--wl-accent); color: var(--wl-accent); }
#app .tabs-nav .tab-btn.active { border-color: var(--wl-accent); box-shadow: none; }
#app .tab-container { min-height: 0; padding: 24px; }
#app .add-customer-form { border: 1px solid var(--wl-line); box-shadow: 0 20px 60px #17223524; border-radius: var(--wl-radius); max-width: calc(100vw - 32px); }
#app .upload-input { background: var(--wl-accent); color: white; }
#app svg [fill="#FFB154"] { fill: #14b8a6; }
#app svg [fill="#FD9C2A"] { fill: var(--wl-accent); }
#app .main > p[style*="lightcoral"] { color: #475569 !important; background: #f1f5f9; padding: 12px 14px; border: 1px solid var(--wl-line); border-radius: 8px; font-size: 12px; }
#app .main > p[style*="lightcoral"] button { color: var(--wl-accent); }
#app .status-dot:not(.healthy) { background: #64748b; }
#app :is(input, textarea, select):focus-visible { outline: 2px solid var(--wl-accent); outline-offset: 2px; }
#app button:disabled { cursor: not-allowed; opacity: .5; }
#app :is(button, a, select, summary, input):focus-visible { outline: 2px solid var(--wl-accent); outline-offset: 3px; }

@media (max-width: 900px) {
  html body #app { padding: 18px; }
  #app .stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #app .stats-card.amount { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  html body #app { padding: 12px; }
  #app .main { padding: 16px; }
  #app .stats-bar { grid-template-columns: 1fr; }
  #app .stats-card.amount { grid-column: auto; }
  #app .stats-card { min-height: 112px; padding: 18px; }
  #app .getting-started section { flex-direction: column; }
  #app .getting-started nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; }
  #app .getting-started nav button { width: 100%; max-width: none; padding: 0 12px; gap: 8px; }
  #app .main-box { padding: 18px; }
  #app .dashboard-header h1 { font-size: 22px; }
  #app .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #app .customer-section { padding: 14px; }
  #app :is(.smtp-settings, .signing-setup, .store-link, .mailbox, .email-editor, .container-template, .tab-container) { padding: 16px; }
  #app .tabs-panel .delete-btn, #app .tabs-panel .refresh-btn { padding: 0 10px; font-size: 11px; }
  #app .p-datatable .p-datatable-tbody > tr > td { padding: 12px 10px; }
}

/* Shared Lexmodo app appearance: Recover Cart's blue navigation and card rhythm. */
html body #app { padding: 0; }
#app .waitlist-shell { display: flex; min-height: 100vh; }
#app .waitlist-sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 30;
  width: 224px; padding: 28px 16px 18px;
  display: flex; flex-direction: column; overflow-y: auto;
  background: var(--wl-nav); color: #d6e4ef;
}
#app .waitlist-brand { display: flex; align-items: center; gap: 11px; padding: 0 6px 28px; text-decoration: none; color: white; font: 700 19px/1.4 "Manrope", system-ui, sans-serif; letter-spacing: -.5px; }
#app .waitlist-brand small { display: block; margin-top: 5px; color: #a8c2d8; font: 500 9px/1.6 "DM Sans", system-ui, sans-serif; letter-spacing: .7px; }
#app .waitlist-brand-mark { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--wl-accent); }
#app #app .waitlist-nav-group { margin-bottom: 18px; }
#app .waitlist-nav-label { padding: 10px 12px; font-size: 9px; font-weight: 600; letter-spacing: 1.5px; color: #a8c2d8; }
#app .waitlist-nav-link { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 11px 12px; margin-bottom: 4px; border-radius: 8px; color: #d6e4ef; text-decoration: none; font-size: 12px; font-weight: 500; }
#app .waitlist-nav-link i { font-size: 15px; width: 17px; color: #a8c2d8; }
#app .waitlist-nav-link:hover { background: #ffffff0d; color: white; }
#app .waitlist-nav-link.active-tab { background: var(--wl-nav-active); color: white; }
#app .waitlist-nav-link.active-tab i { color: #8cc8f5; }
#app .waitlist-sidebar-note { margin-top: auto; padding: 17px 14px; border: 1px solid #ffffff18; border-radius: 10px; background: #ffffff06; }
#app .waitlist-sidebar-note > i { margin-bottom: 12px; color: #8cc8f5; }
#app .waitlist-sidebar-note strong { display: block; font-size: 12px; font-weight: 600; }
#app .waitlist-sidebar-note p { font-size: 11px; color: #a8c2d8; margin: 7px 0 14px; line-height: 1.7; }
#app .waitlist-sidebar-note a { display: flex; align-items: center; justify-content: space-between; color: #d6e4ef; text-decoration: none; font-size: 11px; font-weight: 600; min-height: 30px; }
#app .waitlist-sidebar-footer { display: flex; justify-content: space-between; border-top: 1px solid #ffffff18; margin-top: 20px; padding-top: 16px; color: #a8c2d8; font-size: 10px; }
#app .waitlist-sidebar :is(a, button):focus-visible { outline-color: #fff; }
#app .waitlist-workspace { flex: 1; min-width: 0; margin-left: 224px; padding: 0 30px 30px; }
#app .waitlist-workspace > .menu-tab { max-width: 1400px; margin: 0 auto; }
#app .waitlist-workspace a { color: var(--wl-accent); }
#app .waitlist-search-bar { height: auto; min-height: 72px; gap: 16px; margin: 0 -30px 30px; padding: 15px 30px; background: #ffffffb0; border-bottom: 1px solid var(--wl-line); flex-wrap: wrap; }
#app .waitlist-search-bar .waitlist-left { font-size: 13px; font-weight: 500; color: #596269; }
#app .waitlist-search-bar :is(.waitlist-right, .waitlist-right-email-template) { flex-wrap: wrap; }
#app :is(h1,h2,h3,h4,.metric-card strong,.value-note strong,.summary-grid strong) { font-family: "Manrope", "DM Sans", system-ui, sans-serif; letter-spacing: -.035em; }
#app .analytics-dashboard { border: 0; background: transparent; padding: 0; }
#app .dashboard-header h1 { font-size: 28px; line-height: 1.3; }
#app .dashboard-header .eyebrow { color: #727d86; letter-spacing: 1.8px; font-size: 10px; }
#app .analytics-dashboard :is(.chart-card, .table-card) { padding: 22px; }
#app .metric-card { padding: 21px; box-shadow: 0 3px 16px #1d2f3d04; }
#app .metric-card strong { font-size: 30px; }
#app .analytics-dashboard :is(.directory-link a, .monitoring-strip a, .section-heading a, .notice a) { color: var(--wl-accent); }
#app .analytics-dashboard .directory-link { margin-bottom: 24px; }
#app .analytics-dashboard .status-dot.healthy { background: var(--wl-accent); }
#app .analytics-dashboard .stock-badge.healthy { color: var(--wl-accent); background: var(--wl-accent-soft); }
#app .product-insights :is(a, .insights-toolbar button) { color: var(--wl-accent); }
#app .ui-map { background: transparent; border: 0; padding: 0; }
#app .ui-map .eyebrow { color: var(--wl-muted); }
#app .ui-map .map-root { background: var(--wl-accent); }
#app .ui-map .screen-tree section { border-color: var(--wl-line); border-top-color: var(--wl-accent); }
#app .product-placement .waitlist-workspace { margin-left: 0; padding: 20px; }
#app :is(.wl-button:not(.flat), button.primary) svg path { fill: currentColor; }
@media (max-width: 760px) {
  #app .waitlist-shell { flex-direction: column; }
  #app .waitlist-sidebar { position: relative; inset: auto; width: 100%; padding: 16px; overflow: visible; }
  #app .waitlist-brand { padding-bottom: 16px; }
  #app .waitlist-sidebar nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  #app .waitlist-nav-group { display: contents; }
  #app .waitlist-nav-label, #app .waitlist-sidebar-note, #app .waitlist-sidebar-footer { display: none; }
  #app .waitlist-nav-link { white-space: nowrap; margin: 0; }
  #app .waitlist-workspace { margin-left: 0; padding: 0 18px 24px; }
  #app .waitlist-search-bar { margin: 0 -18px 22px; padding: 12px 18px; min-height: 58px; flex-direction: row; }
  #app .dashboard-header h1 { font-size: 24px; }
}
@media (max-width: 480px) {
  #app .waitlist-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #app .waitlist-workspace { padding: 0 12px 20px; }
  #app .waitlist-search-bar { margin-inline: -12px; padding-inline: 12px; }
  #app .analytics-dashboard :is(.chart-card, .table-card) { padding: 16px; }
  #app .metric-card { padding: 16px; }
  #app .dashboard-header h1 { font-size: 22px; }
  #app :is(.smtp-settings, .signing-setup, .mailbox, .composer) :is(input, textarea, select) { font-size: 16px; }
}
