:root {
  --bg: #f3f6f5;
  --panel: #ffffff;
  --panel-soft: #edf3ef;
  --ink: #111827;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --line-strong: rgba(15, 23, 42, 0.18);
  --dark: #0d1316;
  --dark-panel: #131a1e;
  --dark-soft: #1b2428;
  --dark-line: rgba(255, 255, 255, 0.1);
  --green: #159764;
  --green-strong: #0f6f4c;
  --green-soft: #def3e9;
  --red: #e2473f;
  --red-soft: #fde9e7;
  --amber: #ef8d22;
  --amber-soft: #fff0db;
  --blue: #2563eb;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", "Noto Sans SC", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body[data-lang="zh"] {
  font-family: "Noto Sans SC", "Source Sans 3", "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--green-strong);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.boot-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--ink);
}

.boot-shell p,
.boot-shell strong,
.boot-shell span {
  display: block;
  margin: 0;
}

.boot-shell p {
  color: var(--green-strong);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.boot-shell strong {
  margin-top: 4px;
  font-size: 1.18rem;
}

.boot-mark,
.brand-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.boot-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
}

.side-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  padding: 22px 14px;
  background: #101923;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}

.brand-lockup,
.side-footer,
.topbar,
.page-title,
.top-actions,
.operator-chip,
.panel-head,
.store-card-head,
.action-buttons,
.safe-note,
.alert-strip,
.alert-strip article,
.assistant-name,
.citation-row,
.mobile-tabs {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 10px;
  padding: 0 8px 18px;
}

.brand-symbol {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #ffffff;
  background: var(--green);
}

.brand-symbol.is-small {
  width: 28px;
  height: 28px;
  border-radius: 10px;
}

.brand-lockup strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  color: #ffffff;
  font-size: 1.24rem;
  line-height: 1;
  letter-spacing: 0.08em;
}

.brand-lockup span:last-child,
.side-footer span {
  display: block;
  margin-top: 4px;
  color: #7dd3a3;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 5px;
}

.nav-item,
.pin-item,
.ghost-button,
.icon-button,
.back-button,
.new-chat-button,
.drawer-close-button,
.copilot-scrim,
.copilot-launcher,
.data-chip-row button,
.suggestion-list button,
  .panel-head button,
  .status-tabs button,
  .range-presets button,
  .link-button,
.row-actions button,
.risk-row,
.mobile-tabs button,
.outline-button,
.primary-button {
  border: 0;
  background: transparent;
}

.nav-item,
.pin-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.nav-item:hover,
.pin-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.nav-item.is-active {
  background: rgba(21, 151, 100, 0.22);
  color: #ffffff;
  font-weight: 800;
  box-shadow: inset 3px 0 0 #7dd3a3;
}

.nav-item em {
  margin-left: auto;
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-style: normal;
  text-align: center;
}

.pinned-block {
  align-self: start;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pinned-block p {
  margin: 0 0 8px 10px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.82rem;
}

.pin-item {
  padding-block: 8px;
  color: rgba(255, 255, 255, 0.62);
}

.side-footer {
  gap: 10px;
  padding: 12px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.side-footer strong {
  display: block;
  color: #ffffff;
  font-size: 0.9rem;
}

.main-shell {
  min-width: 0;
  max-width: 100vw;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px 20px 20px;
  transition: padding-right 220ms ease;
}

.main-shell.has-copilot {
  padding-right: 18px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 246, 245, 0.94);
  backdrop-filter: blur(12px);
}

.page-title {
  gap: 12px;
  min-width: 220px;
}

.back-button,
.icon-button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
}

.back-button svg {
  transform: rotate(180deg);
}

.page-title h1 {
  margin: 0;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1;
}

.page-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.sync-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef2f0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  vertical-align: 1px;
}

.sync-badge.is-live {
  background: var(--green-soft);
  color: var(--green-strong);
}

.sync-badge.is-stale {
  background: #fff5d9;
  color: #8a5a00;
}

.sync-badge.is-blocked {
  background: var(--red-soft);
  color: var(--red);
}

.search-box {
  flex: 1 1 440px;
  max-width: 520px;
  min-width: 220px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-box kbd {
  padding: 3px 7px;
  border-radius: 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.top-actions {
  justify-content: flex-end;
  gap: 8px;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}

.lang-switch button {
  min-width: 42px;
  padding: 7px 9px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 800;
}

.lang-switch button.is-active {
  background: var(--green-strong);
  color: #fff;
}

.ghost-button,
.sync-button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
}

.sync-button {
  background: var(--green-strong);
  border-color: var(--green-strong);
  color: #fff;
}

.sync-button svg {
  color: #fff;
}

.operator-chip {
  gap: 8px;
  padding-left: 9px;
  border-left: 1px solid var(--line);
}

.operator-chip span {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.operator-chip strong {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #111827;
  color: #fff;
}

.workspace-grid {
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.copilot-panel {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  width: min(560px, calc(100vw - 32px));
  min-height: 0;
  max-height: none;
  display: grid;
  grid-template-rows: auto auto minmax(180px, 1fr) auto auto;
  gap: 12px;
  padding: 24px 26px 18px;
  border-radius: 16px;
  background: var(--dark);
  color: #f4f7f3;
  box-shadow: 0 28px 80px rgba(7, 12, 16, 0.34);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(100% + 28px));
  transition: transform 220ms ease, opacity 180ms ease;
}

.copilot-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.copilot-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  background: rgba(13, 19, 22, 0.22);
  backdrop-filter: blur(3px);
  transition: opacity 180ms ease;
}

.copilot-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

.copilot-launcher {
  position: fixed;
  right: 22px;
  bottom: 86px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--dark);
  color: #f4f7f3;
  box-shadow: 0 18px 46px rgba(7, 12, 16, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: transform 180ms ease, opacity 180ms ease;
}

.copilot-launcher.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.copilot-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.copilot-star {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #51d69d;
}

.copilot-top h2 {
  margin: 6px 0 5px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.05;
}

.copilot-top p,
.starter-card p,
.copilot-disclaimer {
  margin: 0;
  color: rgba(244, 247, 243, 0.66);
}

.copilot-source-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(81, 214, 157, 0.2);
  border-radius: 11px;
  background: rgba(81, 214, 157, 0.08);
  color: rgba(244, 247, 243, 0.74);
  font-size: 0.82rem;
}

.copilot-source-bar span,
.copilot-source-bar button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.copilot-source-bar button {
  border: 0;
  background: transparent;
  color: #51d69d;
  font-weight: 800;
}

.new-chat-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #f4f7f3;
  white-space: nowrap;
}

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

.drawer-close-button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f4f7f3;
}

.starter-card {
  display: grid;
  gap: 13px;
  padding: 18px 0 4px;
}

.starter-card h3 {
  margin: 0;
  font-size: 1.18rem;
}

.suggestion-list {
  display: grid;
  gap: 10px;
  max-width: 620px;
}

.suggestion-list.is-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.suggestion-list button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #f4f7f3;
  text-align: left;
}

.suggestion-list button span {
  color: #51d69d;
}

.suggestion-list button strong {
  overflow-wrap: anywhere;
  font-weight: 700;
}

.suggestion-list.is-compact button {
  grid-template-columns: auto minmax(0, 1fr);
  padding: 9px 11px;
}

.suggestion-list.is-compact button strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-thread {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: end;
  gap: 12px;
  padding-right: 2px;
}

.chat-thread::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.chat-thread::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(120, 135, 145, 0.35);
  border-radius: 999px;
}

.chat-message {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 6px;
}

.chat-message.is-user {
  justify-items: end;
}

.chat-message.is-user div {
  max-width: min(520px, 88%);
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--dark-soft);
  color: #fff;
}

.chat-message time,
.assistant-name time {
  color: rgba(244, 247, 243, 0.46);
  font-size: 0.82rem;
}

.assistant-name {
  justify-content: flex-start;
  gap: 8px;
  color: #50d094;
  font-weight: 800;
}

.assistant-name time {
  margin-left: auto;
}

.answer-body {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.answer-body p {
  margin: 0;
  line-height: 1.52;
  overflow-wrap: anywhere;
}

.answer-body ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(244, 247, 243, 0.76);
}

.analytics-block {
  display: grid;
  gap: 10px;
}

.analytics-primary {
  padding: 13px;
  border-radius: 12px;
  background: rgba(81, 214, 157, 0.1);
  border: 1px solid rgba(81, 214, 157, 0.16);
}

.analytics-primary strong,
.analytics-primary span {
  display: block;
}

.analytics-primary strong {
  font-size: 1.35rem;
}

.analytics-primary span {
  color: rgba(244, 247, 243, 0.7);
}

.analytics-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.analytics-cards div {
  padding: 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.analytics-cards span {
  display: block;
  color: rgba(244, 247, 243, 0.58);
  font-size: 0.78rem;
}

.analytics-cards strong {
  display: block;
  margin-top: 5px;
}

.action-preview {
  border-radius: 12px;
  border: 1px solid rgba(81, 214, 157, 0.18);
  background: rgba(81, 214, 157, 0.08);
  overflow: hidden;
}

.action-preview summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  cursor: pointer;
  font-weight: 800;
}

.action-preview p,
.action-preview .param-list,
.action-preview button {
  margin: 0 13px 13px;
}

.param-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.param-list span,
.citation-row em {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(244, 247, 243, 0.78);
  font-size: 0.8rem;
  font-style: normal;
}

.param-list.is-missing span,
.action-blocker {
  background: rgba(226, 71, 63, 0.12);
  color: #ffc3bd;
}

.citation-row {
  flex-wrap: wrap;
  gap: 7px;
}

.citation-row span {
  color: rgba(244, 247, 243, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.data-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.data-chip-row button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(244, 247, 243, 0.84);
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: end;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(81, 214, 157, 0.7);
  background: rgba(255, 255, 255, 0.04);
}

.composer textarea {
  min-height: 118px;
  max-height: 220px;
  resize: vertical;
  border: 0;
  outline: 0;
  padding: 12px;
  background: transparent;
  color: #fff;
  line-height: 1.35;
}

.composer textarea::placeholder {
  color: rgba(244, 247, 243, 0.42);
}

.composer button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green), #6d5bd6);
  color: #fff;
}

.copilot-disclaimer {
  text-align: center;
  font-size: 0.78rem;
}

.ops-panel {
  min-width: 0;
  min-height: 0;
  max-height: calc(100vh - 138px);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding-right: 2px;
}

.workspace-page {
  align-content: start;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(360px, 1fr);
  gap: 12px;
  align-items: stretch;
}

.page-hero > div:first-child,
.summary-cards article {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: none;
}

.page-hero > div:first-child {
  padding: 14px 16px;
}

.page-hero span {
  color: var(--green-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.page-hero h2 {
  margin: 5px 0;
  font-size: clamp(1.18rem, 1.55vw, 1.55rem);
  line-height: 1.1;
}

.page-hero p,
.panel-note {
  margin: 0;
  color: var(--muted);
}

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

.summary-cards article {
  min-width: 0;
  padding: 12px;
}

.summary-cards strong {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 1.18rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.panel-note {
  padding: 0 18px 10px;
  font-size: 0.9rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-pill.is-muted {
  background: #f0f2f1;
  color: var(--muted);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(130px, 1fr)) minmax(96px, 0.75fr) repeat(2, minmax(126px, 0.9fr)) auto;
  gap: 9px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: none;
}

.filter-bar label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.filter-bar label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-bar input,
.filter-bar select {
  min-width: 0;
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
}

.filter-actions {
  display: flex;
  gap: 8px;
}

.range-presets {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.range-presets button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
  color: var(--ink-soft);
  font-weight: 800;
}

.range-presets button small {
  margin-left: 5px;
  color: inherit;
  font-size: 0.72rem;
  opacity: 0.72;
}

.range-presets button.is-active {
  background: var(--green-strong);
  border-color: var(--green-strong);
  color: #fff;
}

.filter-bar > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.table-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  color: var(--green-strong);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.link-stack {
  min-width: 150px;
}

.link-stack .table-link {
  margin: 2px 8px 2px 0;
}

.merchant-source-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 10px;
}

.merchant-source-legend span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
  color: var(--muted);
  font-size: 0.78rem;
}

.merchant-directory-table {
  min-width: 1540px;
}

.merchant-directory-table th,
.merchant-directory-table td {
  vertical-align: top;
}

.merchant-directory-table td,
.merchant-directory-table .wrap-cell {
  white-space: normal;
}

.merchant-main-cell {
  min-width: 190px;
}

.date-cell {
  min-width: 92px;
  line-height: 1.2;
}

.date-cell small {
  color: var(--muted);
  font-size: 0.78rem;
}

.related-store-list,
.completeness-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 280px;
  white-space: normal;
}

.store-chip,
.completeness-chips span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 240px;
  overflow-wrap: anywhere;
  border-radius: 7px;
  text-decoration: none;
}

.store-chip {
  padding: 4px 8px;
  background: #eff7f2;
  color: var(--green-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.store-chip.is-muted {
  background: #f3f4f3;
  color: var(--muted);
}

.related-separator {
  align-self: center;
  color: var(--muted);
}

.completeness-chips {
  margin-top: 7px;
}

.completeness-chips span {
  padding: 3px 7px;
  background: var(--amber-soft);
  color: #a45108;
  font-size: 0.72rem;
  font-weight: 800;
}

.completeness-chips.is-complete span {
  background: var(--green-soft);
  color: var(--green-strong);
}

.muted-cell {
  color: var(--muted);
}

.platform-badge-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 25px;
  padding: 3px 8px;
  border-radius: 7px;
  background: #f0f4f2;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.platform-badge svg {
  flex: 0 0 auto;
}

.platform-badge strong {
  font: inherit;
}

.platform-badge.is-shopify {
  background: #e7f6ed;
  color: #087a4d;
}

.platform-badge.is-woo {
  background: #f1ecff;
  color: #5e35b1;
}

.platform-badge.is-dropship {
  background: #eaf2ff;
  color: #1d5fa7;
}

.platform-badge.is-offline {
  background: #fff1e0;
  color: #a45108;
}

.store-id-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

button:disabled {
  cursor: progress;
  opacity: 0.62;
}

.kpi-grid {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
}

.kpi-card {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 14px 14px 9px;
  border-right: 1px solid var(--line);
}

.kpi-card:last-child {
  border-right: 0;
}

.unpaid-panel .kpi-grid {
  position: static;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  box-shadow: none;
}

.kpi-card span,
.data-panel span,
.store-meta-grid span,
.risk-summary span {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.kpi-card strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(1.02rem, 1.22vw, 1.24rem);
  line-height: 1.05;
  white-space: nowrap;
}

.kpi-card p,
.risk-summary p {
  margin: 0;
  font-size: 0.83rem;
}

.is-good {
  color: var(--green-strong) !important;
}

.is-warn {
  color: var(--red) !important;
}

.sparkline {
  width: 100%;
  height: 26px;
}

.sparkline polyline {
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
}

.daily-chart-panel,
.merchant-trend-panel {
  overflow: visible;
}

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

.daily-chart-summary article {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
}

.daily-chart-summary span,
.daily-chart-summary small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-chart-summary span {
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.daily-chart-summary strong {
  display: block;
  margin: 5px 0 3px;
  overflow: hidden;
  color: var(--ink);
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 1.18rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-chart-summary small {
  font-size: 0.78rem;
}

.daily-chart-scroll {
  overflow-x: auto;
  padding: 4px 16px 0;
}

.daily-order-chart {
  min-width: 100%;
  height: 190px;
}

.merchant-activity-chart {
  min-width: 100%;
  height: 188px;
}

.daily-axis {
  stroke: var(--line-strong);
  stroke-width: 1;
}

.daily-bar-total {
  fill: rgba(21, 107, 80, 0.16);
}

.daily-bar-shipped {
  fill: var(--green);
}

.daily-bar-unpaid {
  fill: var(--red);
}

.merchant-bar-joined {
  fill: var(--green);
}

.merchant-bar-login {
  fill: #4f79b8;
}

.daily-bar.is-selected .daily-bar-total {
  stroke: var(--ink);
  stroke-width: 2;
}

.daily-order-chart text,
.merchant-activity-chart text {
  fill: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.daily-order-chart .daily-bar-label,
.merchant-activity-chart .daily-bar-label {
  fill: var(--ink);
  font-size: 0.7rem;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0 16px 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 999px;
}

.legend-dot.is-join {
  background: var(--green);
}

.legend-dot.is-login {
  background: #4f79b8;
}

.merchant-trend-table table {
  min-width: 620px;
}

.daily-total-strip {
  margin: 0;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.daily-total-strip strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.daily-total-strip span {
  margin-left: 10px;
  color: var(--muted);
}

.empty-chart {
  margin: 4px 18px 0;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
}

.data-panel {
  min-width: 0;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: none;
}

.panel-head {
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px 8px;
}

.panel-head h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.98rem;
}

.panel-head h3 span {
  padding: 2px 8px;
  border-radius: 999px;
  background: #e65342;
  color: #fff;
  font-size: 0.74rem;
}

.panel-head button,
.link-button {
  color: var(--green-strong);
  font-weight: 800;
}

.sort-header {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.sort-header span {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 0.72rem;
}

.status-tabs {
  display: flex;
  gap: 20px;
  padding: 0 18px 8px;
  border-bottom: 1px solid var(--line);
}

.status-tabs button {
  padding: 7px 0;
  color: var(--muted);
  font-weight: 700;
}

.status-tabs button.is-active {
  color: var(--green-strong);
  border-bottom: 2px solid var(--green);
}

.table-wrap {
  position: relative;
  overflow: auto;
}

table {
  width: 100%;
  min-width: 760px;
  font-variant-numeric: tabular-nums;
  border-collapse: collapse;
}

th,
td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.86rem;
  text-align: left;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8faf9;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

th:first-child,
td:first-child {
  position: sticky;
  left: 0;
  background: inherit;
}

th:first-child {
  z-index: 3;
}

td:first-child {
  z-index: 1;
  box-shadow: 1px 0 0 var(--line);
}

tbody tr {
  background: var(--panel);
}

tbody tr:hover {
  background: #f8fbf9;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.money {
  color: var(--red);
  font-weight: 800;
}

.overdue-chip,
.risk-badge,
.selected-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-weight: 800;
}

.overdue-chip {
  padding: 3px 9px;
  background: var(--red-soft);
  color: var(--red);
}

.row-actions {
  display: flex;
  gap: 8px;
}

.row-actions button {
  color: var(--ink-soft);
}

.ops-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 14px;
}

.risk-table {
  display: grid;
  padding: 6px 18px 18px;
}

.risk-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 92px 100px 54px;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  text-align: left;
}

.risk-row:last-child {
  border-bottom: 0;
}

.risk-row.is-head {
  color: var(--muted);
  font-size: 0.78rem;
  pointer-events: none;
}

.risk-badge {
  min-width: 58px;
  padding: 4px 8px;
  font-size: 0.78rem;
  font-style: normal;
}

.risk-badge.high,
.risk-score.high {
  background: var(--red-soft);
  color: var(--red);
}

.risk-badge.medium,
.risk-score.medium {
  background: var(--amber-soft);
  color: #d66a00;
}

.risk-badge.low,
.risk-score.low {
  background: var(--green-soft);
  color: var(--green-strong);
}

.risk-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px 10px;
}

.risk-summary div:first-child {
  border-right: 1px solid var(--line);
}

.risk-summary strong {
  display: block;
  margin-top: 5px;
  font-size: 1.45rem;
}

.donut-wrap {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 8px 22px 22px;
}

.donut {
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--red) calc(var(--high) * 1%), #f7c85f 0 calc((var(--high) + var(--medium)) * 1%), #5abf91 0);
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 27px;
  border-radius: 50%;
  background: var(--panel);
}

.donut span {
  position: relative;
  z-index: 1;
  color: var(--muted);
  text-align: center;
  line-height: 1.1;
}

.donut strong {
  color: var(--ink);
}

.donut-wrap ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
}

.donut-wrap li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.donut-wrap i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.donut-wrap i.high {
  background: var(--red);
}

.donut-wrap i.medium {
  background: #f7c85f;
}

.donut-wrap i.low {
  background: #5abf91;
}

.store-detail-panel {
  padding: 18px;
}

.store-card-head {
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.store-avatar {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.selected-pill {
  width: fit-content;
  margin-bottom: 7px;
  padding: 3px 8px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 0.76rem;
}

.store-card-head h3 {
  margin: 0;
  font-size: 1.28rem;
}

.store-card-head p {
  margin: 5px 0 0;
  color: var(--muted);
}

.risk-score {
  margin-left: auto;
  width: 72px;
  height: 72px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 5px solid currentColor;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}

.risk-score small {
  margin-top: 4px;
  font-size: 0.62rem;
}

.store-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 16px;
}

.store-meta-grid div {
  min-width: 0;
  padding-right: 12px;
  border-right: 1px solid var(--line);
}

.store-meta-grid div:last-child {
  border-right: 0;
}

.store-meta-grid strong,
.store-meta-grid a,
.store-meta-grid small {
  display: block;
  margin-top: 6px;
}

.store-meta-grid strong {
  color: var(--ink);
}

.store-meta-grid small {
  color: var(--muted);
}

.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 14px;
  margin-top: 14px;
}

.mini-timeline,
.ship-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.mini-timeline h4,
.ship-card h4 {
  margin: 0 0 12px;
}

.mini-timeline p,
.ship-card p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.mini-timeline p:last-child,
.ship-card p:last-child {
  border-bottom: 0;
}

.mini-timeline strong {
  color: var(--red);
}

.mini-donut {
  width: 112px;
  height: 112px;
  margin: 4px auto 10px;
  border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--complete) * 1%), #65a6e8 0 78%, #f1bf4d 0);
  mask: radial-gradient(circle, transparent 0 48%, #000 49%);
}

.actions-panel {
  padding-bottom: 14px;
}

.action-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px 12px;
}

.action-card {
  display: grid;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.action-card > span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--green-soft);
  color: var(--green-strong);
}

.action-card h4,
.action-card p {
  margin: 0;
}

.action-card p {
  color: var(--ink-soft);
  line-height: 1.38;
}

.impact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-strong);
}

.impact-row span {
  color: inherit;
}

.primary-button {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--green-strong);
  color: #fff;
  font-weight: 800;
}

.outline-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink-soft);
  font-weight: 800;
}

.action-buttons {
  gap: 9px;
}

.action-buttons button {
  flex: 1 1 0;
}

.safe-note {
  gap: 8px;
  margin: 0;
  padding: 0 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.alert-strip {
  min-width: 0;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #eef7f2;
  border: 1px solid rgba(12, 116, 74, 0.08);
  overflow: hidden;
}

.alert-strip button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--green-strong);
  font-weight: 800;
}

.alert-strip button:first-child svg {
  transform: rotate(180deg);
}

.alert-strip article {
  min-width: 0;
  flex: 1 1 0;
  gap: 9px;
  padding-inline: 12px;
  border-left: 1px solid rgba(12, 116, 74, 0.12);
  cursor: pointer;
}

.alert-strip strong,
.alert-strip p,
.alert-strip time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-strip p {
  margin: 0;
  color: var(--ink-soft);
}

.alert-strip time {
  margin-left: auto;
  color: var(--muted);
}

.alert-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--red);
}

.settings-key-panel {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(220px, 1fr);
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.settings-key-panel label,
.settings-form label,
.provider-card label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-key-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.settings-key-panel input,
.settings-form input,
.provider-card input {
  min-width: 0;
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: none;
}

.settings-mode-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-mode-panel article {
  display: grid;
  gap: 7px;
  align-content: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.settings-mode-panel span {
  color: var(--green-strong);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-mode-panel strong {
  font-size: 1rem;
}

.settings-mode-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.settings-mode-panel .outline-button {
  justify-self: start;
  margin-top: 2px;
}

.settings-notice {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #c8e0d1;
  border-radius: 10px;
  background: #f0faf3;
  color: var(--green-strong);
  font-weight: 800;
}

.workflow-map-panel {
  display: grid;
  align-content: start;
  overflow: visible;
}

.workflow-platform-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px 14px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.workflow-platform-strip > div {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.workflow-lanes {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.85fr) minmax(260px, 0.85fr);
  gap: 12px;
  padding: 0 16px 16px;
}

.workflow-lane {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfb;
}

.workflow-lane.is-gated {
  background: #fffbf1;
}

.workflow-lane.is-blocked {
  background: #f7f8fb;
}

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

.workflow-lane header span,
.workflow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: var(--green-strong);
  background: var(--green-soft);
}

.workflow-lane header span {
  width: 32px;
  height: 32px;
}

.workflow-lane.is-gated header span,
.workflow-lane.is-gated .workflow-icon {
  color: #9a6200;
  background: #fff1cb;
}

.workflow-lane.is-blocked header span,
.workflow-lane.is-blocked .workflow-icon {
  color: #59616c;
  background: #eceff4;
}

.workflow-lane h3,
.workflow-card h4,
.workflow-card p {
  margin: 0;
}

.workflow-lane h3 {
  font-size: 0.98rem;
}

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

.workflow-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(33, 50, 45, 0.08);
  border-radius: 10px;
  background: #fff;
}

.workflow-icon {
  width: 38px;
  height: 38px;
}

.workflow-card h4 {
  font-size: 0.92rem;
}

.workflow-card p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.32;
}

.workflow-card button {
  align-self: center;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--green-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.workflow-status-panel td:first-child {
  min-width: 220px;
}

.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quote-actions .primary-button,
.quote-actions .outline-button {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 0.82rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(520px, 1.18fr);
  gap: 14px;
  align-items: start;
}

.settings-panel {
  align-self: start;
}

.settings-panel.is-wide {
  min-width: 0;
}

.settings-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 10px;
}

.settings-form {
  display: grid;
  gap: 12px;
  padding: 12px 16px 16px;
}

.settings-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 10px;
}

.settings-form-row.is-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inline-check {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft) !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  text-transform: none !important;
}

.inline-check input,
.settings-checkbox-row input {
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--green-strong);
}

.settings-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.settings-checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  padding: 0 16px 16px;
}

.provider-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfb;
}

.provider-card.is-active {
  border-color: #97cdae;
  box-shadow: inset 3px 0 0 var(--green-strong);
}

.provider-card header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.provider-card header > span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green-strong);
}

.provider-card h4,
.provider-card p {
  margin: 0;
}

.provider-card h4 {
  color: var(--ink);
  font-size: 0.96rem;
}

.provider-card p {
  color: var(--muted);
  font-size: 0.8rem;
}

.provider-card em {
  padding: 4px 8px;
  border-radius: 8px;
  background: #f0f2f1;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.quotation-builder-panel {
  align-self: start;
}

.quotation-form {
  display: grid;
  gap: 12px;
  padding: 12px 16px 16px;
}

.quotation-form label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quotation-form input {
  min-width: 0;
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: none;
}

.quotation-draft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  padding: 0 16px 16px;
}

.quotation-draft-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.quotation-draft-card header,
.quote-links {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.quotation-draft-card header span {
  color: var(--green-strong);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quotation-draft-card h4,
.quotation-draft-card p {
  margin: 0;
}

.quotation-draft-card h4 {
  font-size: 1rem;
  line-height: 1.25;
}

.quotation-draft-card p,
.quotation-draft-card small {
  color: var(--muted);
}

.quotation-draft-card em {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.quotation-draft-card em.is-muted {
  background: #f0f2f1;
  color: var(--muted);
}

.quote-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.quote-facts span {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 8px;
  background: #f8faf9;
  overflow-wrap: anywhere;
}

.quote-facts strong {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.settings-notice.is-error {
  border-color: rgba(226, 71, 63, 0.2);
  background: var(--red-soft);
  color: var(--red);
}

.live-body {
  min-height: 100vh;
  background: #eef3f1;
  color: var(--ink);
}

.live-shell {
  width: min(1280px, calc(100vw - 32px));
  min-height: 100vh;
  display: grid;
  align-content: start;
  gap: 14px;
  margin: 0 auto;
  padding: 24px 0 42px;
}

.live-loading,
.live-hero,
.live-actions,
.live-card header,
.live-status-stack {
  display: flex;
  align-items: center;
}

.live-loading {
  min-height: 70vh;
  justify-content: center;
  gap: 12px;
}

.live-pulse,
.live-status i {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(21, 151, 100, 0.42);
  animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(21, 151, 100, 0.42); }
  70% { box-shadow: 0 0 0 12px rgba(21, 151, 100, 0); }
  100% { box-shadow: 0 0 0 0 rgba(21, 151, 100, 0); }
}

.live-hero {
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.live-eyebrow,
.live-card header span {
  color: var(--green-strong);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.live-hero h1 {
  max-width: 700px;
  margin: 6px 0 8px;
  font-family: "Space Grotesk", "Source Sans 3", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.live-hero p,
.live-muted {
  margin: 0;
  color: var(--muted);
}

.live-status-stack {
  flex: 0 0 auto;
  align-items: flex-end;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-strong);
  text-transform: capitalize;
}

.live-status.is-running {
  background: var(--amber-soft);
  color: #8d5200;
}

.live-status.is-stale,
.live-status.is-blocked {
  background: var(--red-soft);
  color: var(--red);
}

.live-status.is-stale i,
.live-status.is-blocked i {
  background: var(--red);
  animation: none;
  box-shadow: none;
}

.live-actions {
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.live-actions span {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.live-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.live-metric,
.live-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.055);
}

.live-metric {
  display: grid;
  gap: 6px;
  min-height: 106px;
  padding: 14px;
}

.live-metric span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.live-metric strong {
  font-size: 1.45rem;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.live-metric small {
  color: var(--muted);
  font-weight: 750;
}

.live-card {
  overflow: hidden;
}

.live-card header {
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.live-card h2 {
  margin: 2px 0 0;
  font-size: 1.18rem;
}

.live-card header em {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.live-bars {
  display: grid;
  grid-template-columns: repeat(14, minmax(28px, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 190px;
  padding: 18px 16px 16px;
  overflow-x: auto;
}

.live-bar {
  min-width: 42px;
  display: grid;
  justify-items: center;
  align-items: end;
  gap: 6px;
}

.live-bar strong {
  font-size: 0.78rem;
}

.live-bar span {
  width: 100%;
  max-width: 34px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #159764, #0f6f4c);
  border-top: 4px solid var(--red);
}

.live-bar em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
}

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

.live-list {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
}

.live-list article {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfa;
}

.live-list article span {
  color: var(--muted);
  font-size: 0.88rem;
}

.live-table-card .table-wrap {
  max-height: none;
}

.customer-body {
  min-height: 100vh;
  background: #f4f2ee;
  color: var(--ink);
}

.customer-shell {
  width: min(1180px, calc(100vw - 32px));
  min-height: 100vh;
  display: grid;
  gap: 18px;
  align-content: start;
  margin: 0 auto;
  padding: 24px 0 40px;
}

.customer-loading,
.customer-hero,
.customer-status,
.customer-section-head {
  display: flex;
  align-items: center;
}

.customer-loading {
  min-height: 70vh;
  justify-content: center;
  gap: 12px;
}

.customer-hero {
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.customer-status {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.customer-connect-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.customer-eyebrow {
  color: var(--green-strong);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-connect-card h1 {
  max-width: 520px;
  margin: 8px 0 10px;
  font-family: "Space Grotesk", "Source Sans 3", sans-serif;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.customer-connect-card p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.customer-guardrails {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.customer-guardrails span {
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid #c9e7d5;
  border-radius: 999px;
  background: #eefaf2;
  color: var(--green-strong);
  font-size: 0.82rem;
  font-weight: 850;
}

.customer-connect-form {
  display: grid;
  gap: 12px;
}

.customer-connect-form label,
.customer-ai-details label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.customer-connect-form label span,
.customer-ai-details label span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-connect-form input,
.customer-connect-form select {
  min-width: 0;
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  padding: 0 11px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
}

.customer-connect-form .inline-check input {
  width: 16px;
  height: 16px;
  min-width: 16px;
  padding: 0;
}

.customer-ai-details {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fbfcfb;
}

.customer-ai-details summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.customer-ai-details[open] summary {
  margin-bottom: 10px;
}

.customer-summary {
  display: grid;
  gap: 14px;
}

.customer-section-head {
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.customer-section-head span {
  color: var(--green-strong);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-section-head h2 {
  margin: 2px 0 0;
  font-family: "Space Grotesk", "Source Sans 3", sans-serif;
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.customer-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
}

.customer-metrics article {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.customer-metrics article span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-metrics article strong {
  min-width: 0;
  font-size: 1.38rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.customer-metrics article small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.customer-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mobile-tabs {
  display: none;
}

@media (max-width: 1180px) {
  .settings-grid,
  .settings-key-panel,
  .settings-mode-panel,
  .workflow-lanes,
  .live-metrics,
  .live-grid,
  .customer-connect-card,
  .customer-data-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-metrics {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .live-metrics {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }
}

@media (max-width: 1380px) {
  .app-shell {
    grid-template-columns: 204px minmax(0, 1fr);
  }

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

  .kpi-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .kpi-card {
    border-bottom: 1px solid var(--line);
  }

}

@media (max-width: 1600px) {
  .filter-bar {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  }

  .filter-bar label:first-child {
    grid-column: span 2;
  }
}

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

  .side-nav {
    display: none;
  }

  .main-shell {
    padding-bottom: 88px;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .search-box {
    order: 3;
    max-width: none;
    flex-basis: 100%;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .ops-panel {
    max-height: none;
  }

  .mobile-tabs {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 10;
    display: grid;
    grid-template-columns: 0.8fr minmax(128px, 1.65fr) 0.8fr 0.8fr;
    align-items: center;
    gap: 6px;
    padding: 7px;
    border-radius: 22px;
    background: rgba(255, 253, 250, 0.96);
    border: 1px solid var(--line);
    box-shadow: 0 14px 40px rgba(12, 18, 24, 0.18);
    backdrop-filter: blur(16px);
  }

  .mobile-tabs button {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 7px 4px;
    color: var(--muted);
  }

  .mobile-tabs button.is-active {
    color: var(--green-strong);
  }

  .mobile-nav-picker {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .mobile-nav-picker span {
    display: none;
  }

  .mobile-nav-picker select {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
  }

  .mobile-tabs span {
    font-size: 0.75rem;
  }

  .mobile-tabs em {
    position: absolute;
    top: 2px;
    right: 23%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-size: 0.68rem;
    font-style: normal;
  }
}

@media (max-width: 760px) {
  html,
  body,
  #app-root,
  .app-shell,
  .main-shell,
  .workspace-grid {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  body {
    background: var(--bg);
  }

  .customer-body {
    background: #f4f2ee;
  }

  .customer-shell {
    width: min(100%, calc(100vw - 20px));
    padding: 14px 0 28px;
  }

  .live-shell {
    width: min(100%, calc(100vw - 20px));
    padding: 14px 0 28px;
  }

  .customer-hero,
  .live-hero,
  .customer-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-status {
    justify-content: flex-start;
  }

  .live-status-stack {
    align-items: flex-start;
  }

  .live-actions span {
    width: 100%;
    margin-left: 0;
  }

  .customer-connect-card {
    padding: 16px;
  }

  .customer-connect-card h1 {
    font-size: 2rem;
  }

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

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

  .live-bars {
    grid-template-columns: repeat(14, minmax(34px, 1fr));
  }

  .main-shell {
    gap: 10px;
    padding: 14px 10px 88px;
  }

  .main-shell.has-copilot {
    padding-right: 10px;
  }

  .topbar {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    min-height: 56px;
    padding: 12px 150px 12px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    background: #ffffff;
  }

  .page-title {
    min-width: 0;
  }

  .page-title h1 {
    color: var(--ink);
    font-size: 1.08rem;
  }

  .page-title p {
    color: var(--muted);
  }

  .back-button,
  .icon-button,
  .ghost-button,
  .search-box,
  .operator-chip {
    display: none;
  }

  .top-actions {
    position: fixed;
    top: 14px;
    right: 10px;
    margin-left: auto;
    width: auto;
    max-width: calc(100vw - 144px);
    overflow: visible;
    z-index: 20;
    gap: 6px;
  }

  .lang-switch {
    width: 108px;
    justify-content: space-between;
    background: #ffffff;
    border-color: var(--line);
  }

  .sync-button {
    width: 40px;
    min-width: 40px;
    padding: 0;
    justify-content: center;
  }

  .sync-button span {
    display: none;
  }

  .lang-switch button {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 0;
    color: var(--ink-soft);
  }

  .filter-bar {
    grid-template-columns: minmax(0, 1fr) minmax(128px, 0.72fr) minmax(128px, 0.72fr);
    align-items: end;
  }

  .filter-bar > label:first-child {
    grid-column: 1 / -1;
  }

  .filter-bar .advanced-filter,
  .filter-bar .filter-actions {
    display: none;
  }

  .filter-bar .date-filter {
    min-width: 0;
  }

  .settings-key-panel,
  .settings-form,
  .provider-card {
    padding: 10px;
  }

  .settings-form-row,
  .settings-form-row.is-compact,
  .provider-grid,
  .quote-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .provider-grid {
    padding: 0 10px 10px;
  }

  .workspace-grid {
    gap: 10px;
  }

  .ops-panel {
    display: grid;
  }

  .copilot-panel {
    top: 76px;
    right: 10px;
    bottom: 86px;
    left: 10px;
    width: auto;
    min-height: 0;
    max-width: 100%;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    gap: 10px;
    padding: 0 0 12px;
    border-radius: 22px;
    background: #f8f5ef;
    color: var(--ink);
    box-shadow: 0 24px 70px rgba(7, 12, 16, 0.34);
    overflow: hidden;
    transform: translateY(18px);
  }

  .copilot-panel.is-open {
    transform: translateY(0);
  }

  .copilot-top {
    min-width: 0;
    padding: 18px 18px 14px;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(135deg, #2b3338, #1d2529);
    color: #fff;
  }

  .copilot-top h2 {
    font-size: 1.4rem;
  }

  .copilot-top p {
    color: rgba(255,255,255,0.7);
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .new-chat-button span {
    display: none;
  }

  .new-chat-button,
  .drawer-close-button {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
  }

  .starter-card {
    margin: 0 10px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, #2c3338, #20272c);
    color: #fff;
    overflow: hidden;
  }

  .starter-card p {
    color: rgba(255,255,255,0.66);
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .copilot-source-bar {
    margin: 0 10px;
    border-color: rgba(23, 153, 102, 0.2);
    background: #eaf6ef;
    color: var(--ink-soft);
  }

  .copilot-source-bar span {
    min-width: 0;
  }

  .copilot-source-bar svg,
  .copilot-source-bar button {
    color: var(--green-strong);
  }

  .suggestion-list {
    display: flex;
    max-width: 100%;
    margin: 0 10px;
    overflow: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .suggestion-list.is-compact {
    display: flex;
    gap: 8px;
  }

  .suggestion-list::-webkit-scrollbar,
  .data-chip-row::-webkit-scrollbar {
    display: none;
  }

  .suggestion-list button {
    flex: 0 0 auto;
    max-width: 264px;
    grid-template-columns: auto minmax(0, auto);
    border-color: rgba(81, 214, 157, 0.7);
    border-radius: 999px;
    background: transparent;
    color: var(--ink-soft);
    padding: 7px 12px;
  }

  .suggestion-list button span {
    color: var(--green-strong);
  }

  .suggestion-list button strong {
    max-width: 204px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .suggestion-list button svg:last-child {
    display: none;
  }

  .chat-thread {
    padding: 0 10px;
    align-content: start;
    max-height: none;
    min-height: 0;
    overflow: auto;
  }

  .chat-message.is-user div,
  .answer-body {
    background: #fff;
    color: var(--ink);
    border-color: var(--line);
  }

  .assistant-name {
    color: var(--green-strong);
  }

  .assistant-name time,
  .chat-message time {
    color: var(--muted);
  }

  .answer-body ul,
  .answer-body p {
    color: var(--ink-soft);
  }

  .data-chip-row {
    display: flex;
    max-width: 100%;
    overflow: auto;
    margin: 0 10px;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .data-chip-row button {
    flex: 0 0 auto;
    background: #fff;
    color: var(--green-strong);
    border-color: var(--line);
    white-space: nowrap;
  }

  .composer {
    margin: 0 10px;
    position: relative;
    bottom: auto;
    z-index: 3;
    background: rgba(255, 253, 250, 0.98);
    border-color: var(--line);
    box-shadow: 0 10px 26px rgba(12,18,24,0.12);
  }

  .composer textarea {
    color: var(--ink);
    min-height: 64px;
    max-height: 120px;
  }

  .composer textarea::placeholder {
    color: var(--muted);
  }

  .copilot-disclaimer {
    display: none;
  }

  .copilot-scrim {
    background: rgba(13, 19, 22, 0.32);
  }

  .copilot-scrim.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .copilot-launcher {
    right: 12px;
    bottom: 88px;
    min-height: 42px;
    padding-inline: 14px;
  }

  .ops-panel {
    overflow: visible;
  }

  .kpi-grid,
  .ops-split,
  .page-hero,
  .filter-bar,
  .daily-chart-summary,
  .store-meta-grid,
  .timeline-grid,
  .action-card-grid,
  .risk-summary,
  .donut-wrap {
    grid-template-columns: 1fr;
  }

  .kpi-grid {
    border-radius: 18px;
  }

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

  .daily-total-strip span {
    display: block;
    margin: 4px 0 0;
  }

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

  .workflow-platform-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .workflow-platform-strip > div {
    justify-content: flex-start;
  }

  .workflow-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .workflow-card button {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .filter-bar {
    max-height: none;
    overflow-y: visible;
    align-content: start;
  }

  .filter-bar label:first-child,
  .filter-bar > p,
  .range-presets,
  .filter-actions {
    grid-column: 1 / -1;
  }

  .filter-actions {
    position: static;
    padding-top: 8px;
    background: var(--panel);
  }

  .kpi-card {
    border-right: 0;
  }

  .store-meta-grid div,
  .risk-summary div:first-child {
    border-right: 0;
  }

  .store-card-head {
    align-items: flex-start;
  }

  .risk-score {
    width: 58px;
    height: 58px;
    font-size: 1.1rem;
  }

  .alert-strip {
    display: none;
  }

  .panel-head,
  th,
  td {
    padding-inline: 13px;
  }

  .page-hero {
    gap: 8px;
  }

  .page-hero > div:first-child {
    padding: 12px;
  }

  .page-hero p {
    display: none;
  }

  .summary-cards {
    gap: 6px;
  }

  .summary-cards article {
    padding: 9px;
  }

  .summary-cards strong {
    font-size: 1rem;
  }

  .filter-bar {
    grid-template-columns: minmax(0, 1fr) minmax(104px, 0.56fr) minmax(104px, 0.56fr);
    gap: 7px;
    padding: 8px;
  }

  .filter-bar .advanced-filter,
  .filter-bar .filter-actions {
    display: none;
  }

  .filter-bar .date-filter {
    min-width: 0;
  }

  .range-presets {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .range-presets::-webkit-scrollbar {
    display: none;
  }

  .range-presets button {
    flex: 0 0 auto;
  }
}
