:root {
  color-scheme: light;
  --ink: #20242c;
  --muted: #717887;
  --line: #e5e8ef;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --accent: #c84f72;
  --accent-soft: #fff0f4;
  --coral: #e57a8e;
  --orange: #d9a441;
  --blue: #397cae;
  --purple: #7b67b0;
  --green: #248864;
  --dark: #252b35;
  --shadow: 0 18px 44px rgba(36, 41, 52, .08);
  --shadow-soft: 0 10px 24px rgba(36, 41, 52, .06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  background:
    linear-gradient(135deg, rgba(200, 79, 114, .06), transparent 28%),
    linear-gradient(225deg, rgba(57, 124, 174, .08), transparent 32%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42;
}

.app-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 14px 16px 24px;
}

.app-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.store-indicator {
  min-width: 0;
  max-width: 300px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 11px;
  border: 1px solid rgba(36, 136, 100, .22);
  border-radius: 999px;
  background: #eef8f4;
  color: #1f7658;
  box-shadow: var(--shadow-soft);
}

.store-indicator span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(36, 136, 100, .13);
}

.store-indicator strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(145deg, #bc4668, #d9a441);
  box-shadow: 0 12px 24px rgba(200, 79, 114, .18);
}

.brand-avatar {
  overflow: hidden;
  background: transparent;
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  display: block;
}

h1, h2, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}

#userLine {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.login-screen {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
}

.phone-card {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(229, 232, 239, .95);
  border-radius: 10px;
  padding: 15px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.login-card {
  width: min(450px, 100%);
}

.hero-mark {
  min-height: 72px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  margin-bottom: 8px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #b94968, #397cae 58%, #d9a441);
}

.hero-mark span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .24);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .18);
}

.brand-hero {
  min-height: 112px;
  grid-template-columns: 72px minmax(0, 1fr);
  justify-items: start;
  padding: 18px;
  text-align: left;
}

.brand-hero img {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 12px 22px rgba(37, 43, 53, .18));
}

.brand-hero strong,
.brand-hero span {
  display: block;
}

.brand-hero strong {
  margin-top: 8px;
  font-size: 21px;
  font-weight: 800;
}

.brand-hero span {
  width: auto;
  height: auto;
  margin-top: 3px;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, .78);
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.server-settings-toggle {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #f7f9fc;
  box-shadow: none;
}

.server-settings-toggle span,
.server-settings-toggle strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-settings-toggle span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.server-settings-toggle strong {
  font-size: 12px;
  font-weight: 800;
}

.server-settings-panel {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(57, 124, 174, .18);
  border-radius: 10px;
  background: #f7fbff;
}

.server-settings-panel label {
  margin: 0;
}

.server-actions {
  display: grid;
  grid-template-columns: .7fr 1fr;
  gap: 8px;
}

.server-actions .primary {
  margin-top: 0;
}

label {
  display: block;
  margin: 11px 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

input, select, textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 430;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(217, 90, 130, .48);
  box-shadow: 0 0 0 4px rgba(217, 90, 130, .09);
}

textarea {
  resize: vertical;
}

button {
  border: 0;
  border-radius: 8px;
  min-height: 40px;
  padding: 0 14px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  letter-spacing: 0;
  white-space: nowrap;
}

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

.primary {
  width: 100%;
  margin-top: 12px;
  color: #fff;
  background: linear-gradient(135deg, #b94364, #d95f7d);
  box-shadow: 0 12px 24px rgba(200, 79, 114, .16);
}

.danger {
  width: 100%;
  margin-top: 10px;
  color: #fff;
  background: linear-gradient(135deg, #b84c59, #d35d70);
}

.pill {
  min-height: 36px;
  padding: 0 13px;
}

.big {
  min-height: 50px;
  font-size: 15px;
}

.ghost {
  color: var(--ink);
  background: #f0f3f8;
}

.blue {
  color: #fff;
  background: linear-gradient(135deg, #397cae, #62a1ca);
}

.dark {
  color: #fff;
  background: var(--dark);
}

.full {
  width: 100%;
  margin-top: 12px;
}

.round-btn {
  min-width: 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #fff;
  background: var(--dark);
}

.danger-icon {
  background: linear-gradient(135deg, #b84c59, #d35d70);
}

.icon {
  width: 20px;
  height: 20px;
  display: block;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-logins,
.split-actions,
.coords {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.helper-line,
.gps-status {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.gps-status {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfafc;
}

.gps-status.ready {
  color: #33765f;
  border-color: rgba(95, 175, 145, .28);
  background: #eef8f4;
}

#magasinSearch {
  margin-bottom: 8px;
}

.scan-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
}

.scanner-box {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(37, 43, 53, .12);
  border-radius: 12px;
  background: #101722;
}

.qr-reader {
  width: 100%;
  min-height: 260px;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: #111722;
}

.qr-reader {
  overflow: hidden;
}

.qr-reader video,
.qr-reader canvas {
  border-radius: 8px;
}

.selected-product {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(217, 90, 130, .16);
  border-radius: 10px;
  background: var(--accent-soft);
}

.selected-product strong,
.selected-product span,
.selected-product small {
  display: block;
}

.selected-product span,
.selected-product small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.qcm-row,
.qcm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice,
.tag-choice {
  min-height: 36px;
  padding: 0 13px;
  color: var(--ink);
  background: #f4f6fa;
  border: 1px solid var(--line);
  box-shadow: none;
}

.choice.active,
.tag-choice.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.role-tabs,
.mode-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 12px;
  scrollbar-width: none;
}

.role-tabs::-webkit-scrollbar,
.mode-tabs::-webkit-scrollbar {
  display: none;
}

.role-tab,
.mode-tab {
  min-width: max-content;
  color: #727987;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.role-tab.active,
.mode-tab.active {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
}

.panel-page {
  display: none;
}

.panel-page.active {
  display: block;
}

.status-hero {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 12px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(37, 43, 53, .98), rgba(57, 124, 174, .92)),
    linear-gradient(90deg, rgba(255,255,255,.12), transparent);
  box-shadow: 0 18px 36px rgba(37, 43, 53, .14);
}

.status-hero p {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.status-hero small {
  display: block;
  margin-top: 5px;
  opacity: .82;
  font-weight: 500;
}

.status-hero strong {
  font-size: 30px;
  font-weight: 600;
}

.status-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  margin-right: 8px;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .18);
}

.status-dot.on {
  background: #69ffc6;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.metric {
  min-height: 118px;
  padding: 14px;
  border-radius: 10px;
  color: #343744;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.metric:after {
  content: "";
  position: absolute;
  inset: auto -24px -28px auto;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .44);
}

.metric span,
.metric small {
  display: block;
  font-weight: 500;
  opacity: .78;
}

.metric strong {
  display: block;
  margin-top: 14px;
  font-size: 28px;
  font-weight: 600;
}

.metric.blue { background: linear-gradient(135deg, #e8f2f8, #c9dfed); }
.metric.coral { background: linear-gradient(135deg, #fff0f4, #f0c7d1); }
.metric.purple { background: linear-gradient(135deg, #f0edf7, #d8d0ea); }
.metric.orange { background: linear-gradient(135deg, #fbf1df, #ecd29a); }

.score-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.score-dial {
  width: 108px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 10px solid #eef2f6;
  border-top-color: var(--accent);
  border-right-color: var(--orange);
  border-bottom-color: var(--purple);
  border-radius: 50%;
}

.score-dial span {
  font-size: 30px;
  font-weight: 600;
}

.mini-bars {
  height: 58px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 10px;
}

.mini-bars i {
  display: block;
  min-height: 8px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--blue), var(--accent));
}

.mission-grid,
.admin-forms,
.admin-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-insights {
  grid-template-columns: 1.4fr 1fr;
  margin: 12px 0;
}

.admin-accordion {
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
}

.admin-accordion summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.admin-accordion summary::-webkit-details-marker {
  display: none;
}

.admin-accordion summary span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.admin-accordion summary strong {
  min-width: 0;
  max-width: 62%;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-accordion summary:after {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.admin-accordion[open] summary:after {
  transform: rotate(225deg);
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  padding: 0 14px 10px;
}

.admin-filter-grid label {
  margin: 0;
  align-self: center;
}

.admin-filter-actions {
  display: grid;
  grid-template-columns: .7fr 1fr;
  gap: 8px;
  padding: 0 14px 14px;
}

.admin-filter-actions .primary {
  margin-top: 0;
}

.ref-tracking-accordion {
  margin: 4px 0 12px;
  border: 1px solid rgba(229, 232, 239, .95);
  box-shadow: none;
}

.coverage-list {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.field-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 10px;
}

.field-summary div {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcff;
}

.field-summary span,
.field-summary strong {
  display: block;
}

.field-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.field-summary strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
}

.field-history-list {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}

.field-card {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(229, 232, 239, .95);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.field-card.live {
  border-color: rgba(36, 136, 100, .22);
  background: linear-gradient(180deg, #fff, #f4fbf8);
}

.field-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.field-card-head strong,
.field-card-head span {
  display: block;
}

.field-card-head strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.field-card-head span {
  color: var(--muted);
  font-size: 12px;
}

.field-route-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.field-route-grid > div {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcff;
}

.field-route-grid span,
.field-route-grid strong,
.field-route-grid small {
  display: block;
}

.field-route-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.field-route-grid strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.field-route-grid small {
  margin: 3px 0 7px;
  color: var(--muted);
  font-size: 11px;
}

.route-link,
.route-disabled {
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-decoration: none;
}

.route-link {
  color: #fff;
  background: var(--blue);
}

.route-disabled {
  color: var(--muted);
  background: #eef1f5;
}

.field-card-foot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.field-card-foot span {
  min-width: 0;
  padding: 6px;
  border-radius: 8px;
  color: var(--muted);
  background: #f7f9fc;
  font-size: 10px;
  font-weight: 750;
  text-align: center;
}

.compact-heading {
  margin: 10px 0 8px;
  font-size: 14px;
}

.ref-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 8px;
  margin: 8px 0 10px;
}

.ref-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.ref-store-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.ref-store-card.unvisited {
  border-color: rgba(200, 79, 114, .22);
  background: linear-gradient(180deg, #fff, #fff7f9);
}

.ref-store-card.visited {
  border-color: rgba(36, 136, 100, .2);
  background: linear-gradient(180deg, #fff, #f4fbf8);
}

.ref-store-card strong,
.ref-store-card span,
.ref-store-card small {
  display: block;
}

.ref-store-card strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.ref-store-card span,
.ref-store-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.ref-store-card .badge {
  min-width: 84px;
  padding: 6px 8px;
  font-size: 11px;
}

.ref-store-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.ref-store-metrics span {
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(229, 232, 239, .9);
  border-radius: 8px;
  background: #fbfcff;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.ref-store-metrics b {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.ref-store-card small {
  grid-column: 1 / -1;
}

.chart-card {
  min-height: 300px;
}

.combo-chart {
  min-height: 220px;
}

.chart-stage {
  position: relative;
  min-height: 188px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  align-items: end;
  gap: 12px;
  padding: 18px 4px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(57, 124, 174, .06), transparent),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(32, 36, 44, .05) 40px);
  overflow: hidden;
}

.chart-line {
  position: absolute;
  inset: 16px 14px 48px;
  width: calc(100% - 28px);
  height: calc(100% - 64px);
  pointer-events: none;
}

.chart-line polyline {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-person {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 5px;
  min-width: 0;
}

.chart-bar-wrap {
  height: 126px;
  display: grid;
  align-items: end;
  padding: 0 12px;
}

.chart-bar {
  display: block;
  min-height: 8px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--blue), #84b9d6);
  box-shadow: 0 10px 20px rgba(57, 124, 174, .18);
}

.chart-person strong,
.chart-person span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  white-space: nowrap;
}

.chart-person strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.chart-person span,
.chart-legend {
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
}

.chart-legend {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
}

.objective-list {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.objective-title {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.objective-grid {
  display: grid;
  gap: 8px;
}

.objective-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px 46px;
  align-items: center;
  gap: 8px;
}

.objective-row span {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.objective-input {
  min-height: 36px;
  padding: 7px 9px;
  text-align: center;
}

.objective-save {
  min-height: 36px;
  padding: 0 10px;
}

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

.planning-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .65fr);
  gap: 10px;
  align-items: center;
  margin: 4px 0 12px;
}

.planning-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.planning-view-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 12px;
}

.planning-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
}

.planning-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}

.planning-summary strong {
  font-size: 13px;
  font-weight: 650;
}

.planning-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, #fbfcff);
}

.planning-main {
  min-width: 0;
}

.planning-main strong,
.planning-main span,
.planning-main small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planning-main strong {
  font-size: 14px;
  font-weight: 650;
}

.planning-main span,
.planning-main small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.planning-actions {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.planning-actions .pill {
  min-height: 34px;
}

.calendar-view {
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  align-items: stretch;
}

.calendar-day {
  min-height: 154px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.calendar-day.has-plans {
  border-color: rgba(57, 124, 174, .28);
  background: linear-gradient(180deg, #fff, #f8fbfe);
}

.calendar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.calendar-head strong {
  font-size: 14px;
  font-weight: 650;
  text-transform: capitalize;
}

.calendar-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.calendar-plans {
  display: grid;
  align-content: start;
  gap: 7px;
}

.calendar-plans em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.calendar-plan {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 6px 8px;
  padding: 8px;
  border-radius: 8px;
  background: #f4f7fb;
}

.calendar-plan.confirmed {
  background: #eef8f4;
}

.calendar-plan span {
  grid-row: span 2;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.calendar-plan strong,
.calendar-plan small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-plan strong {
  font-size: 12px;
  font-weight: 650;
}

.calendar-plan small {
  color: var(--muted);
  font-size: 11px;
}

.field-planning-card {
  margin-top: 12px;
}

.chart-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: #fbfcff;
}

.mission-card {
  min-height: 370px;
}

.pointage-card.compact {
  min-height: auto;
  padding: 12px;
}

.pointage-card.compact h2 {
  margin-bottom: 8px;
}

.active-mission-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(36, 136, 100, .18);
  border-radius: 10px;
  background: #eef8f4;
}

.active-mission-strip strong,
.active-mission-strip small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-mission-strip strong {
  font-size: 14px;
  font-weight: 650;
}

.active-mission-strip small {
  color: var(--muted);
  font-size: 12px;
}

.session-active .mission-grid {
  grid-template-columns: minmax(340px, 1.25fr) minmax(260px, .75fr);
}

.stepper {
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.stepper strong {
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 28px;
  font-weight: 600;
}

.check-list {
  display: grid;
  gap: 8px;
}

.check-list label {
  min-height: 42px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbff;
  text-transform: none;
}

.check-list input {
  width: 20px;
  min-height: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tiny-badge,
.badge {
  min-width: 72px;
  text-align: center;
  padding: 7px 9px;
  border-radius: 8px;
  color: #fff;
  background: var(--purple);
  font-size: 12px;
  font-style: normal;
  font-weight: 550;
}

.badge.on { background: var(--green); }
.badge.off { background: var(--accent); }

.list {
  display: grid;
  gap: 9px;
}

.row-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 68px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.row-card strong,
.row-card span {
  display: block;
}

.row-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.soft .row-card {
  background: linear-gradient(180deg, #fff, #fbfbff);
}

.spark-bars {
  height: 178px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 12px;
  padding-top: 16px;
}

.spark-bar {
  min-height: 16px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--accent), var(--orange));
  position: relative;
}

.spark-bar span {
  position: absolute;
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.spark-item {
  height: 100%;
  display: grid;
  align-items: end;
  justify-items: center;
  gap: 8px;
}

.spark-item i {
  width: 100%;
  min-height: 16px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #d87994, #e5bd78);
}

.spark-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 13px;
  align-items: stretch;
}

.catalog-search-card {
  position: sticky;
  top: 10px;
  z-index: 18;
  padding: 10px 12px;
}

.catalog-title-actions,
.catalog-view-switch,
.catalog-scan-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-scan-toolbar {
  width: min(760px, 100%);
  justify-content: flex-end;
}

.catalog-scan-toolbar .scan-row {
  min-width: 240px;
  flex: 1 1 360px;
  margin: 0;
}

.catalog-scan-toolbar .primary,
.catalog-scan-toolbar .pill {
  min-height: 42px;
  white-space: nowrap;
}

.catalog-filter-summary {
  margin: 2px 0 0;
  max-width: 520px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-view-switch {
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f6f8fb;
}

.icon-choice {
  width: 36px;
  min-width: 36px;
  min-height: 32px;
  padding: 0;
}

.icon-choice .icon {
  width: 17px;
  height: 17px;
}

.product-tile {
  position: relative;
  min-height: 244px;
  display: grid;
  grid-template-rows: 142px 1fr;
  gap: 11px;
  padding: 11px;
  border: 1px solid rgba(229, 232, 239, .92);
  border-radius: 10px;
  color: #333642;
  background: #fff;
  box-shadow: var(--shadow-soft);
  cursor: default;
}

.product-tile:nth-child(2n) {
  background: #fff;
}

.product-tile:nth-child(3n) {
  background: #fff;
}

.product-tile strong,
.product-tile span {
  display: block;
}

.product-photo,
.mini-product-photo {
  --photo-pad: 8px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.84), rgba(255,255,255,.46)),
    linear-gradient(135deg, #eef4f8, #f8edf2);
}

.mission-qty {
  position: absolute;
  top: 146px;
  right: 16px;
  min-width: 34px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 6px;
  color: transparent;
  background: transparent;
  border: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
}

.mission-qty.has-sales {
  color: #167b54;
  background: rgba(232, 248, 241, .96);
  border: 1px solid rgba(22, 123, 84, .22);
  font-weight: 900;
}

.product-photo img,
.mini-product-photo img {
  position: absolute;
  inset: var(--photo-pad);
  width: calc(100% - (var(--photo-pad) * 2));
  height: calc(100% - (var(--photo-pad) * 2));
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}

.product-photo b,
.mini-product-photo b {
  color: rgba(63, 67, 82, .62);
  font-size: 28px;
  font-weight: 600;
}

.mini-product-photo {
  --photo-pad: 5px;
  width: 64px;
  height: 64px;
}

.product-info {
  min-width: 0;
}

.product-tile span {
  margin-top: 4px;
  opacity: .86;
  font-size: 12px;
  font-weight: 600;
}

.product-tile strong {
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.25;
}

.product-tile small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.3;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  min-height: 18px;
}

.product-rating b {
  color: #d9a441;
  font-size: 14px;
  letter-spacing: 0;
}

.product-rating em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.product-actions .pill {
  min-height: 34px;
  padding: 0 10px;
}

.catalog-grid.catalog-list-view {
  grid-template-columns: 1fr;
}

.catalog-list-view .product-tile {
  min-height: 0;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: stretch;
  gap: 14px;
}

.catalog-list-view .product-photo {
  --photo-pad: 7px;
  min-height: 116px;
  height: 100%;
}

.catalog-list-view .mission-qty {
  top: 12px;
  right: 12px;
}

.catalog-list-view .product-info {
  display: grid;
  align-content: center;
}

.catalog-list-view .product-actions {
  grid-template-columns: repeat(2, minmax(96px, 130px));
  justify-content: start;
}

.product-sale {
  color: #fff;
  background: linear-gradient(135deg, #b94364, #d95f7d);
}

.product-mission {
  color: var(--ink);
  background: #eef4f8;
  border: 1px solid #dbe5ee;
}

.catalog-summary-footer {
  position: fixed;
  left: max(12px, calc((100vw - 1180px) / 2 + 16px));
  right: max(12px, calc((100vw - 1180px) / 2 + 16px));
  bottom: 10px;
  z-index: 28;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(78px, .5fr) minmax(92px, .6fr) 42px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(229, 232, 239, .95);
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 44px rgba(36, 41, 52, .16);
  backdrop-filter: blur(14px);
  transform: translateY(120%);
  pointer-events: none;
  transition: transform .2s ease;
}

.catalog-workspace .catalog-summary-footer {
  transform: translateY(0);
  pointer-events: auto;
}

.catalog-summary-footer div {
  min-width: 0;
}

.catalog-summary-footer span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.catalog-summary-footer strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-summary-footer.is-live {
  border-color: rgba(36, 136, 100, .25);
}

.catalog-workspace .app-shell {
  padding-bottom: 92px;
}

.message {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--accent);
  font-weight: 500;
}

.toast {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--dark);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 18px 38px rgba(0,0,0,.18);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(25, 30, 38, .42);
  backdrop-filter: blur(8px);
}

.modal-card {
  width: min(460px, 100%);
}

.mission-score-card {
  display: grid;
  gap: 10px;
  margin: 10px 0 14px;
  padding: 12px;
  border: 1px solid rgba(217, 164, 65, .28);
  border-radius: 10px;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.mission-score-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mission-score-head strong,
.mission-score-head span {
  display: block;
}

.mission-score-head strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.mission-score-head span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.mission-score-stars {
  display: flex;
  gap: 2px;
  color: #d2d7df;
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
}

.mission-score-stars .active {
  color: #d9a441;
}

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

.mission-score-grid div {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(229, 232, 239, .92);
  border-radius: 8px;
  background: #fbfcff;
}

.mission-score-grid span,
.mission-score-grid strong {
  display: block;
}

.mission-score-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.mission-score-grid strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
}

.mission-score-card p {
  margin: 0;
  color: #5d6472;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.eval-modal-card {
  width: min(520px, 100%);
}

.eval-modal-card .selected-product {
  margin: 4px 0 12px;
}

.eval-stars {
  display: flex;
  gap: 6px;
  margin: 2px 0 10px;
}

.eval-stars button {
  width: 42px;
  min-height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  color: #c5cad3;
  background: #f7f9fc;
  font-size: 24px;
  line-height: 1;
  box-shadow: none;
}

.eval-stars button.active {
  color: #d9a441;
  background: #fff8e8;
  border-color: rgba(217, 164, 65, .38);
}

.eval-note-row,
.eval-tag-row {
  margin-bottom: 8px;
}

.modal-actions {
  display: grid;
  grid-template-columns: .7fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.modal-card .section-title {
  margin-bottom: 8px;
}

.modal-card .round-btn.ghost {
  color: var(--ink);
  background: #f1f4f8;
}

.hidden {
  display: none !important;
}

@media (max-width: 1060px) {
  .app-shell {
    padding-top: 0;
  }

  .app-header {
    position: sticky;
    top: 0;
    z-index: 30;
    margin: 0 -16px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(229, 232, 239, .9);
    background: rgba(251, 252, 255, .94);
    backdrop-filter: blur(14px);
  }

  .mode-tabs {
    position: sticky;
    top: 75px;
    z-index: 24;
    margin: 0 -16px 12px;
    padding: 8px 16px 10px;
    background: rgba(245, 247, 251, .92);
    backdrop-filter: blur(14px);
  }

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

  .mission-grid,
  .admin-forms,
  .admin-insights,
  .catalog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-search-card {
    top: 132px;
  }

  .session-active .mission-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 0 12px 12px;
  }

  .app-header {
    min-height: 70px;
    margin: 0 -12px;
    padding: 9px 12px;
  }

  .mode-tabs {
    top: 70px;
    margin: 0 -12px 8px;
    padding: 6px 12px 8px;
  }

  .avatar {
    width: 38px;
    height: 38px;
  }

  h1 {
    font-size: 18px;
  }

  #userLine {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .store-indicator {
    max-width: 132px;
    padding: 8px 9px;
  }

  .store-indicator strong {
    font-size: 11px;
  }

  .status-hero {
    align-items: flex-start;
    flex-direction: column;
    min-height: 136px;
  }

  .metric-grid,
  .mission-grid,
  .session-active .mission-grid,
  .admin-forms,
  .admin-insights,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .admin-accordion {
    margin-bottom: 8px;
  }

  .admin-accordion summary {
    min-height: 42px;
    padding: 10px 12px;
  }

  .admin-filter-grid {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 7px;
    padding: 0 12px 8px;
  }

  .admin-filter-grid input,
  .admin-filter-grid select {
    min-height: 38px;
    padding: 0 9px;
    font-size: 12px;
  }

  .admin-filter-actions {
    padding: 0 12px 12px;
  }

  .ref-toolbar {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .ref-card-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ref-store-card {
    padding: 10px;
  }

  .field-summary,
  .field-card-foot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-route-grid {
    grid-template-columns: 1fr;
  }

  .catalog-search-card {
    top: 124px;
    margin-bottom: 4px;
    padding: 6px;
  }

  .catalog-search-card .section-title {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: flex-start;
  }

  .catalog-search-card .section-title > div:first-child {
    display: none;
  }

  .catalog-scan-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px 58px;
    align-items: stretch;
    gap: 5px;
    width: 100%;
  }

  .catalog-scan-toolbar .scan-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 5px;
    min-width: 0;
  }

  .catalog-scan-toolbar input {
    height: 42px;
    min-height: 42px;
    padding: 0 9px;
    font-size: 12px;
  }

  .catalog-scan-toolbar .round-btn {
    width: 40px;
    min-width: 40px;
    height: 42px;
    min-height: 42px;
  }

  .catalog-scan-toolbar .primary,
  .catalog-scan-toolbar .pill {
    height: 42px;
    min-height: 42px;
    min-width: 0;
    margin-top: 0;
    padding: 0 7px;
    font-size: 11px;
  }

  .catalog-title-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  #promoStats > .phone-card:not(.catalog-search-card) {
    padding: 7px;
  }

  #promoStats > .phone-card:not(.catalog-search-card) > .section-title {
    min-height: 0;
    margin-bottom: 5px;
  }

  #promoStats > .phone-card:not(.catalog-search-card) > .section-title h2 {
    display: none;
  }

  #promoStats > .phone-card:not(.catalog-search-card) > .section-title .catalog-title-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .catalog-grid {
    gap: 7px;
  }

  .catalog-workspace .mode-tabs {
    margin-bottom: 5px;
    padding-top: 4px;
    padding-bottom: 6px;
  }

  .catalog-workspace .mode-tab {
    min-height: 34px;
    padding: 0 12px;
  }

  .catalog-workspace .panel-page.active {
    margin-top: 0;
  }

  .catalog-workspace .app-shell {
    padding-bottom: 96px;
  }

  .catalog-summary-footer {
    left: 10px;
    right: 10px;
    bottom: 8px;
    grid-template-columns: minmax(0, 1fr) 58px 78px 38px;
    gap: 7px;
  }

  .catalog-summary-footer strong {
    font-size: 13px;
  }

  .session-active .mission-card:nth-child(2) {
    order: -1;
  }

  .session-active .mission-card:nth-child(3) {
    order: 0;
  }

  .score-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

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

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

  .planning-toolbar,
  .planning-summary {
    grid-template-columns: 1fr;
  }

  .planning-toolbar {
    align-items: stretch;
  }

  .planning-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .planning-actions {
    grid-template-columns: auto 1fr;
    justify-items: stretch;
  }
}

/* SMART LOADER (Auto Live Server Loader) */
.smart-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #1b2030 0%, #293047 100%);
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.smart-loader-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  color: #212529;
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  animation: smartLoaderFadeIn 0.3s ease;
}

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

.smart-loader-logo img {
  width: 68px;
  height: 68px;
  margin-bottom: 14px;
}

.smart-loader-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1f36;
  margin: 0 0 8px 0;
}

.smart-loader-card p {
  font-size: 14px;
  color: #697386;
  margin: 0 0 20px 0;
  line-height: 1.4;
}

.smart-loader-spinner {
  width: 42px;
  height: 42px;
  margin: 12px auto;
  border: 4px solid #f0edf8;
  border-top-color: #c94f72;
  border-radius: 50%;
  animation: smartLoaderSpin 0.9s linear infinite;
}

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

.smart-loader-config {
  margin-top: 15px;
  text-align: left;
}

.smart-loader-error {
  background: #fff2f4;
  color: #b92b47 !important;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px !important;
  font-weight: 600;
  margin-bottom: 14px !important;
  border: 1px solid #f9d3db;
}

.smart-loader-config label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #697386;
  margin-bottom: 6px;
}

.smart-loader-config input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 2px solid #e3e8ee;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.smart-loader-config input:focus {
  border-color: #c94f72;
}

.smart-loader-actions {
  display: grid;
  gap: 10px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: #e6f7ec;
  color: #1e7e34;
}
.live-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28a745;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

