:root {
  --ysj-bg: #eef7f6;
  --ysj-bg-deep: #e6f2f1;
  --ysj-surface: #ffffff;
  --ysj-surface-soft: #f8fbfb;
  --ysj-surface-tint: #e8f7f5;
  --ysj-line: #d6e8e5;
  --ysj-line-strong: #b9d8d3;
  --ysj-text: #10262b;
  --ysj-text-soft: #334b54;
  --ysj-muted: #647780;
  --ysj-brand: #008f84;
  --ysj-brand-strong: #006b63;
  --ysj-brand-soft: #e6f7f5;
  --ysj-gold: #f59e0b;
  --ysj-gold-soft: #fff7e5;
  --ysj-red: #b91c1c;
  --ysj-red-soft: #fff1f1;
  --ysj-blue: #075985;
  --ysj-blue-soft: #eef7ff;
  --ysj-radius: 8px;
  --ysj-radius-sm: 6px;
  --ysj-shadow: 0 16px 34px rgba(16, 63, 70, 0.08);
  --ysj-shadow-sm: 0 8px 20px rgba(16, 63, 70, 0.06);
  --ysj-shadow-flat: 0 1px 0 rgba(16, 63, 70, 0.05);
  --accent: #008f84;
  --accent-strong: #006b63;
  --accent-soft: #e6f7f5;
  --line: #d6e8e5;
}

html {
  background: var(--ysj-bg);
}

body {
  background:
    linear-gradient(180deg, rgba(248, 253, 252, 0.98) 0%, var(--ysj-bg) 280px, var(--ysj-bg-deep) 100%);
  color: var(--ysj-text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

.main-shell {
  background:
    radial-gradient(circle at 34% -160px, rgba(46, 199, 184, 0.16), transparent 440px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0) 360px);
}

.content {
  padding-top: 24px;
}

.main-shell > .topbar {
  min-height: 70px;
  background: rgba(249, 254, 253, 0.92);
  border-bottom: 1px solid rgba(201, 226, 222, 0.86);
  box-shadow: 0 8px 22px rgba(16, 63, 70, 0.045);
  backdrop-filter: blur(14px);
}

.main-shell > .topbar h1 {
  color: var(--ysj-text);
  font-size: 21px;
  font-weight: 950;
  line-height: 1.2;
}

.main-shell > .topbar p,
.small,
.muted,
.data-table-wrapper-meta {
  color: var(--ysj-muted);
}

.sidebar {
  background:
    linear-gradient(180deg, #003f43 0%, #004f4d 48%, #02323a 100%);
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.095), 12px 0 30px rgba(0, 61, 66, 0.18);
}

.brand-mark {
  border-radius: 10px;
  background: linear-gradient(135deg, #33d6c2 0%, #0f9a8e 100%);
  color: #ffffff;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.42), 0 10px 24px rgba(0, 143, 132, 0.28);
}

.side-nav a,
.sidebar details.side-subsection > summary {
  border-radius: 8px;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

.side-nav a:hover,
.sidebar details.side-subsection > summary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}

.side-nav a.primary-link {
  background: rgba(34, 211, 197, 0.16);
  border-color: rgba(127, 235, 225, 0.42);
  color: #ffffff;
  box-shadow: inset 3px 0 #32d6c2, 0 10px 22px rgba(0, 75, 79, 0.2);
}

.button,
a.button,
button[type="submit"],
.filter-bar button,
.pc-toolbar button,
.tc-filter-bar button,
.stc-filter-bar button,
.manual-upload-actions button {
  min-height: 38px;
  padding: 8px 15px;
  border-radius: var(--ysj-radius);
  border: 1px solid #00766d;
  background: linear-gradient(180deg, #0aa99b 0%, #007a72 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.24), 0 10px 20px rgba(0, 143, 132, 0.18);
  text-decoration: none;
}

.button:hover,
a.button:hover,
button[type="submit"]:hover,
.filter-bar button:hover,
.pc-toolbar button:hover,
.tc-filter-bar button:hover,
.stc-filter-bar button:hover,
.manual-upload-actions button:hover {
  border-color: #005e58;
  background: linear-gradient(180deg, #009a8e 0%, #006b63 100%);
  filter: none;
}

.button.ghost,
a.button.ghost,
.button.secondary.ghost {
  border-color: #b9d2cc;
  background: #ffffff;
  color: var(--ysj-brand-strong);
  box-shadow: var(--ysj-shadow-flat);
}

.button.secondary,
button.secondary {
  border-color: #49646a;
  background: linear-gradient(180deg, #5b7680 0%, #405a63 100%);
  color: #ffffff;
}

.button.disabled,
.button[disabled],
button[disabled] {
  border-color: #cbd8d5;
  background: #e6ecea;
  color: #7a8a85;
  box-shadow: none;
  cursor: default;
}

input,
select,
textarea {
  min-height: 38px;
  border: 1px solid var(--ysj-line-strong);
  border-radius: var(--ysj-radius);
  background: #ffffff;
  color: var(--ysj-text);
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.02);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
.button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(8, 125, 112, 0.22);
  outline-offset: 2px;
  border-color: #61cfc4;
}

.page-header,
.card,
.card-link,
.home-panel,
.home-module-card,
.home-source-card,
.home-status-card,
.table-panel,
.data-table-wrapper,
.store-history-panel,
.drawer-panel,
.manual-data-hero,
.manual-status-card,
.manual-action-card,
.manual-info-card,
.pc-command,
.pc-readiness,
.pc-summary,
.pc-toolbar,
.pc-main,
.pc-detail,
.pc-card,
.pc-panel,
.pc-dish-card,
.pc-sop-sheet,
.pc-sop-document-head,
.tc-command,
.tc-filter-bar,
.tc-panel,
.tc-detail-card,
.tc-summary-card,
.stc-command,
.stc-panel,
.stc-filter-bar,
.stc-summary-card,
.occ-card,
.occ-panel,
.oc-card,
.store-home-hero,
.store-home-field {
  border: 1px solid var(--ysj-line);
  border-radius: var(--ysj-radius);
  background: #ffffff;
  box-shadow: var(--ysj-shadow-sm);
}

.card-link:hover,
.home-module-card:hover,
.manual-action-card:hover,
.pc-card:hover,
.pc-dish-card:hover {
  border-color: #9fdad3;
  background: #fbfffe;
  box-shadow: 0 12px 26px rgba(0, 143, 132, 0.085);
  transform: translateY(-1px);
}

.page-header h2,
.manual-data-hero h2,
.pc-command h2,
.tc-command h2,
.stc-command h2,
h2 {
  color: var(--ysj-text);
  font-weight: 950;
  letter-spacing: 0;
}

.pc-command h2,
.manual-data-hero h2 {
  font-size: 26px;
}

.pc-eyebrow,
.tc-eyebrow,
.stc-eyebrow,
.manual-status-card span,
.card .label,
.card-link .label {
  color: var(--ysj-brand-strong);
  font-weight: 900;
}

.pc-lede,
.tc-lede,
.stc-lede,
.manual-data-hero p,
.manual-action-card small,
.manual-status-card small {
  color: var(--ysj-muted);
  line-height: 1.6;
}

.filter-bar,
.filter-bar.executive-filter,
.pc-toolbar,
.tc-filter-bar,
.stc-filter-bar {
  padding: 14px;
  border-color: var(--ysj-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 253, 252, 0.99) 100%);
  box-shadow: var(--ysj-shadow-sm);
}

.filter-control,
.pc-toolbar label,
.tc-filter-bar label,
.stc-filter-bar label {
  color: var(--ysj-muted);
  font-size: 12px;
  font-weight: 900;
}

.data-table-wrapper,
.table-panel,
.pc-table-wrap,
.tc-table-wrap,
.stc-table-wrap {
  overflow: hidden;
}

.data-table-wrapper-head,
.table-panel-head,
.pc-panel-head,
.tc-panel-head,
.stc-panel-head {
  border-bottom-color: var(--ysj-line);
  background: linear-gradient(180deg, #ffffff 0%, #f3fbfa 100%);
}

table,
.data-table,
.executive-period-table,
.pc-table,
.tc-table,
.stc-table {
  border-color: var(--ysj-line);
}

th,
.data-table th,
.executive-period-table th,
.pc-table th,
.tc-table th,
.stc-table th {
  background: #f3f0e8;
  color: #23424a;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

td,
.data-table td,
.executive-period-table td,
.pc-table td,
.tc-table td,
.stc-table td {
  color: var(--ysj-text-soft);
  font-size: 13px;
}

tr:hover td {
  background: #f7fcfb;
}

.badge,
.status-pill,
.pc-badge,
.tc-badge,
.stc-badge,
.manual-status-badge,
.pc-health,
.tc-health,
.stc-health {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--ysj-line-strong);
  background: #f6faf9;
  color: var(--ysj-text-soft);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.good,
.badge.good,
.pc-health[data-state="ok"],
.tc-health[data-state="ok"],
.stc-health[data-state="ok"],
.manual-status-badge.good {
  border-color: #a7e4d4;
  background: var(--ysj-brand-soft);
  color: var(--ysj-brand-strong);
}

.status-pill.warn,
.badge.warn,
.manual-status-badge.warn {
  border-color: #f4d58b;
  background: var(--ysj-gold-soft);
  color: var(--ysj-gold);
}

.status-pill.bad,
.badge.bad,
.pc-health[data-state="error"],
.tc-health[data-state="error"],
.stc-health[data-state="error"],
.manual-status-badge.bad {
  border-color: #fecaca;
  background: var(--ysj-red-soft);
  color: var(--ysj-red);
}

.level-tag,
.ed-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 62px;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.7), 0 4px 10px rgba(15, 23, 42, 0.045);
}

.level-tag.s,
.ed-grade-s {
  border-color: #b91c1c;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff !important;
}

.level-tag.a,
.ed-grade-a {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffdf2 0%, #fef3c7 100%);
  color: #92400e !important;
}

.level-tag.b,
.ed-grade-b {
  border-color: #0369a1;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  color: #ffffff !important;
}

.level-tag.c,
.level-tag.unrated,
.ed-grade-pending {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #64748b;
}

.notice,
.pc-alert,
.tc-alert,
.stc-alert {
  border-radius: var(--ysj-radius);
  border-color: var(--ysj-line);
  background: #ffffff;
  box-shadow: var(--ysj-shadow-sm);
}

.notice.good,
.tc-alert[data-kind="success"],
.stc-alert[data-kind="success"] {
  border-color: #a7e4d4;
  background: #effbf7;
  color: var(--ysj-brand-strong);
}

.notice.bad {
  border-color: #fecaca;
  background: #fff5f5;
  color: var(--ysj-red);
}

.ed-empty,
.pc-empty,
.tc-empty,
.stc-empty,
.empty {
  border: 1px dashed #bddbd6;
  border-radius: var(--ysj-radius);
  background: linear-gradient(180deg, #fbfffe 0%, #eef7f6 100%);
  color: var(--ysj-muted);
  font-weight: 800;
}

.pagination,
.pc-pagination,
.tc-pagination,
.stc-pagination {
  gap: 8px;
}

.login-card {
  border-color: var(--ysj-line);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 61, 66, 0.12);
}

@media (max-width: 900px) {
  .content {
    padding: 16px;
  }

  .main-shell > .topbar {
    min-height: auto;
    padding: 16px;
  }

  .pc-command,
  .tc-command,
  .stc-command,
  .manual-data-hero {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

/* Page-family visual standardization. These rules intentionally target the
   existing module prefixes so the system reads as one product, not a set of
   unrelated prototypes. */
.executive-dashboard,
.pc-shell,
.tc-shell,
.stc-shell,
.oc-shell,
.occ-shell,
.manual-data-center,
.import-center-simple {
  color: var(--ysj-text) !important;
  gap: 16px !important;
}

.ed-page-header,
.executive-data-page-head,
.pc-command,
.tc-command,
.stc-command,
.oc-hero,
.occ-hero,
.manual-data-hero {
  position: relative;
  min-height: 104px !important;
  padding: 20px 22px !important;
  border: 1px solid #c9e2de !important;
  border-left: 5px solid var(--ysj-brand) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(135deg, rgba(231, 248, 246, 0.9) 0%, rgba(255, 255, 255, 0.98) 52%, rgba(248, 253, 252, 0.96) 100%) !important;
  box-shadow: 0 14px 34px rgba(16, 63, 70, 0.078) !important;
}

.ed-page-header h1,
.executive-data-page-title,
.pc-command h2,
.tc-command h2,
.stc-command h2,
.oc-title,
.manual-data-hero h2 {
  margin: 2px 0 6px !important;
  color: #10262b !important;
  font-size: 27px !important;
  line-height: 1.16 !important;
  font-weight: 950 !important;
}

.ed-eyebrow,
.executive-data-page-note,
.pc-eyebrow,
.tc-eyebrow,
.stc-eyebrow,
.occ-eyebrow {
  color: var(--ysj-brand-strong) !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
}

.ed-page-header p,
.executive-data-page-note,
.pc-lede,
.tc-lede,
.stc-lede,
.oc-subtitle,
.manual-data-hero p {
  max-width: 860px;
  color: var(--ysj-muted) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

.ed-header-actions,
.pc-command-actions,
.tc-command-actions,
.stc-command-actions,
.manual-data-hero-actions {
  gap: 10px !important;
}

.ed-filter-pill,
.ed-icon-button,
.ed-link-button,
.ed-range-switch button,
.pc-segment,
.pc-tab-button,
.oc-tabs a,
.executive-data-tabs .button,
.tc-command-actions .button,
.stc-command-actions .button {
  min-height: 36px !important;
  border-radius: 8px !important;
  border: 1px solid #b9d8d3 !important;
  background: #ffffff !important;
  color: #006b63 !important;
  box-shadow: 0 2px 0 rgba(16, 63, 70, 0.035) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.ed-range-switch button.active,
.pc-segment.is-active,
.pc-tab-button.is-active,
.oc-tabs a.active,
.executive-data-tabs .button:not(.ghost) {
  border-color: var(--ysj-brand) !important;
  background: linear-gradient(180deg, #0aa99b 0%, #007a72 100%) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.24), 0 8px 18px rgba(0, 143, 132, 0.16) !important;
}

.ed-kpi-grid,
.pc-card-grid,
.pc-card-grid.v15,
.tc-summary-grid,
.stc-summary-grid,
.manual-status-grid,
.oc-status-grid,
.oc-kpi-grid,
.occ-summary-grid,
.quality-summary-grid {
  gap: 12px !important;
}

.ed-kpi-card,
.ed-board-card,
.ed-ai-strip,
.ed-store-info-card,
.pc-card,
.pc-panel,
.pc-dish-card,
.pc-step-card,
.pc-ingredient-card,
.tc-summary-card,
.tc-panel,
.tc-detail-card,
.stc-summary-card,
.stc-panel,
.stc-detail-card,
.manual-status-card,
.manual-action-card,
.manual-info-card,
.quality-summary-card,
.oc-card,
.oc-kpi,
.occ-card-link,
.occ-item,
.occ-workflow-card,
.store-home-field,
.store-home-hero {
  border: 1px solid #d6e8e5 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 26px rgba(16, 63, 70, 0.062) !important;
}

.ed-kpi-card,
.tc-summary-card,
.stc-summary-card,
.manual-status-card,
.quality-summary-card,
.oc-kpi {
  min-height: 108px !important;
  padding: 16px !important;
}

.ed-kpi-card strong,
.card .value,
.card-link .value,
.tc-summary-card strong,
.stc-summary-card strong,
.manual-status-card strong,
.quality-summary-card strong,
.oc-kpi strong,
.pc-card strong {
  color: #0d2521 !important;
  font-size: 26px !important;
  font-weight: 950 !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

.ed-kpi-card span:not(.ed-kpi-icon),
.tc-summary-card span,
.tc-summary-card small,
.stc-summary-card span,
.stc-summary-card small,
.manual-status-card span,
.manual-status-card small,
.quality-summary-card span,
.oc-kpi span,
.pc-card small {
  color: var(--ysj-muted) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.ed-kpi-icon {
  width: 46px !important;
  height: 46px !important;
  border: 1px solid #bfe7e1 !important;
  background: #e6f7f5 !important;
  color: var(--ysj-brand-strong) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.8) !important;
}

.ed-board-head,
.pc-panel-head,
.tc-panel-head,
.stc-panel-head,
.oc-card-head,
.data-table-wrapper-head,
.table-panel-head {
  min-height: 58px !important;
  padding: 14px 16px !important;
  border-bottom: 1px solid #d6e8e5 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f3fbfa 100%) !important;
}

.ed-board-head h2,
.pc-panel-head h3,
.tc-panel-head h3,
.stc-panel-head h3,
.oc-card-head h2,
.data-table-wrapper-title,
.table-panel-title {
  margin: 0 !important;
  color: #10262b !important;
  font-size: 17px !important;
  line-height: 1.25 !important;
  font-weight: 950 !important;
}

.filter-bar,
.filter-bar.executive-filter,
.pc-toolbar,
.tc-filter-bar,
.stc-filter-bar,
.occ-filter-bar {
  gap: 12px !important;
  padding: 16px !important;
  border: 1px solid #d6e8e5 !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%) !important;
  box-shadow: 0 8px 22px rgba(16, 63, 70, 0.052) !important;
}

.filter-control span,
.pc-filter-label,
.pc-toolbar-head span,
.tc-filter-bar label,
.stc-filter-bar label,
.occ-filter-bar label {
  color: #607780 !important;
  font-size: 12px !important;
  font-weight: 950 !important;
}

.filter-bar input,
.filter-bar select,
.pc-filter-field input,
.pc-filter-field select,
.tc-filter-bar input,
.tc-filter-bar select,
.stc-filter-bar input,
.stc-filter-bar select,
.occ-filter-bar select {
  height: 40px !important;
  border-color: #b9d8d3 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #10262b !important;
  font-weight: 800 !important;
}

.data-table-wrapper,
.table-panel,
.pc-table-wrap,
.tc-table-wrap,
.stc-table-wrap,
.oc-table-wrap {
  border: 1px solid #d6e8e5 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 26px rgba(16, 63, 70, 0.055) !important;
}

.data-table th,
.executive-period-table th,
.pc-table th,
.tc-table th,
.stc-table th,
.oc-table th {
  height: 42px !important;
  background: #edf8f6 !important;
  color: #23424a !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  border-bottom: 1px solid #d6e8e5 !important;
}

.data-table td,
.executive-period-table td,
.pc-table td,
.tc-table td,
.stc-table td,
.oc-table td {
  height: 42px !important;
  color: #334b54 !important;
  font-size: 13px !important;
  border-bottom: 1px solid #e4f0ee !important;
}

.pc-health,
.tc-health,
.stc-health,
.status-pill,
.badge,
.pc-badge,
.tc-badge,
.stc-badge,
.occ-badge {
  min-height: 28px !important;
  border-radius: 999px !important;
  padding: 4px 11px !important;
  font-size: 12px !important;
  font-weight: 950 !important;
}

.pc-empty,
.tc-empty-state,
.stc-empty-state,
.oc-empty,
.ed-empty,
.pc-empty-rich {
  min-height: 116px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px dashed #bddbd6 !important;
  border-radius: 8px !important;
  background: #fbfffe !important;
  color: #647780 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
}

.pc-tabs,
.executive-data-tabs,
.oc-tabs,
.ed-legacy-nav {
  gap: 8px !important;
  padding: 10px !important;
  border: 1px solid #d6e8e5 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 6px 18px rgba(16, 63, 70, 0.045) !important;
}

.oc-hero .oc-status-grid,
.occ-hero .oc-status-grid,
.oc-hero .oc-kpi-grid,
.occ-hero .oc-kpi-grid {
  min-width: 0 !important;
}

.oc-hero .oc-kpi,
.occ-hero .oc-kpi {
  min-width: 0 !important;
  overflow: hidden !important;
}

.oc-hero .oc-kpi strong,
.occ-hero .oc-kpi strong {
  display: -webkit-box !important;
  overflow: hidden !important;
  color: #10262b !important;
  font-size: clamp(18px, 1.55vw, 23px) !important;
  line-height: 1.12 !important;
  overflow-wrap: anywhere !important;
  text-overflow: ellipsis !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.manual-data-center > section:first-child,
.import-center-simple > section:first-child,
.quality-issue-details > section:first-child {
  border-left: 5px solid var(--ysj-brand) !important;
}

/* Shared visual token for circular illustration/icon chips. Keep this in the
   global layer so existing pages inherit the same decoration without HTML churn. */
:where(
  .ed-kpi-icon,
  .pc-kpi-icon,
  .pc-brand-category-icon,
  .manual-status-icon,
  .manual-action-icon,
  .home-status-icon,
  .home-module-icon,
  .tc-summary-icon,
  .stc-summary-icon,
  .oc-stat-icon,
  .occ-icon,
  .quality-summary-icon
) {
  box-sizing: border-box !important;
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  line-height: 0 !important;
  text-align: center !important;
}

:where(
  .ed-kpi-icon,
  .manual-status-icon,
  .manual-action-icon,
  .home-status-icon,
  .home-module-icon,
  .tc-summary-icon,
  .stc-summary-icon,
  .oc-stat-icon,
  .occ-icon,
  .quality-summary-icon
) {
  min-width: 42px !important;
  width: 42px !important;
  height: 42px !important;
  border: 1px solid #bfe7e1 !important;
  background: #e6f7f5 !important;
  color: var(--ysj-brand-strong) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.78), 0 5px 12px rgba(0, 143, 132, 0.08) !important;
}

:where(
  .ed-kpi-icon,
  .pc-kpi-icon,
  .pc-brand-category-icon,
  .manual-status-icon,
  .manual-action-icon,
  .home-status-icon,
  .home-module-icon,
  .tc-summary-icon,
  .stc-summary-icon,
  .oc-stat-icon,
  .occ-icon,
  .quality-summary-icon
) :where(svg, i[data-lucide], img) {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  transform: none !important;
  object-fit: contain !important;
  line-height: 1 !important;
}

/* Compatibility pass for legacy modules that still use early inline class
   names. The goal is visual unification without changing business markup. */
:where(
  .metric-bar-fill,
  .mini-bar,
  .finance-waterfall-fill,
  .store-history-chip.active,
  .finance-tab.active,
  .finance-month-pill.active,
  .mobile-bottom-nav a.active
) {
  background: #008f84 !important;
  border-color: #006b63 !important;
  color: #ffffff !important;
}

.task-flow-step::before,
.store-insight-block-title::before {
  background: #008f84 !important;
}

:where(
  .enterprise-lane .lane-kicker,
  .operations-entry-kicker,
  .mobile-top-kicker,
  .office-copy-status,
  summary,
  a
) {
  color: #006b63;
}

:where(
  .home-hero-main,
  .operations-entry-card.primary,
  .mobile-hero,
  .area-command-card.primary,
  .area-focus-card.low,
  .task-card.low,
  .task-command-card.primary,
  .task-status-card.good,
  .risk-card.low,
  .data-command-card.good,
  .finance-command-card.primary,
  .finance-source-card.good,
  .finance-waterfall-item.income,
  .hr-command-card.primary,
  .data-control-card.primary,
  .diagnosis-issue-card.good,
  .qa-answer-card,
  .weekly-ai-card,
  .weekly-ai-card.good,
  .notice
) {
  border-left-color: #008f84 !important;
}

:where(
  .operations-entry-card.primary,
  .mobile-hero,
  .area-command-card.primary,
  .task-command-card.primary,
  .finance-command-card.primary,
  .hr-command-card.primary,
  .data-control-card.primary
) {
  background: #fbfffe !important;
}

:where(.finance-spark-line, .spark-line-weekday) {
  stroke: #008f84 !important;
}

:where(.web-bar-fill) {
  background: linear-gradient(90deg, #008f84, #6ee7dc) !important;
}

#product-center-app.pc-shell {
  background: #eef7f6 !important;
}

#product-center-app .pc-command {
  min-height: 92px !important;
  padding: 16px 20px !important;
  border: 1px solid #d6e8e5 !important;
  border-left: 5px solid #008f84 !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(16, 63, 70, 0.07) !important;
}

#product-center-app .pc-command h2 {
  color: #10262b !important;
  font-size: 28px !important;
}

#product-center-app .pc-kpi-card,
#product-center-app .pc-brand-categories,
#product-center-app .pc-brand-category-card,
#product-center-app .pc-workbench-table,
#product-center-app .pc-workbench-side > section,
#product-center-app .pc-panel,
#product-center-app .pc-card,
#product-center-app .pc-dish-card {
  border-color: #d6e8e5 !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(16, 63, 70, 0.07) !important;
}

#product-center-app .pc-kpi-card:hover,
#product-center-app .pc-brand-category-card:hover,
#product-center-app .pc-brand-category-card.is-active,
#product-center-app .pc-dish-card:hover {
  border-color: #9fdad3 !important;
  background: #fbfffe !important;
  box-shadow: 0 16px 32px rgba(0, 143, 132, 0.1) !important;
}

#product-center-app .pc-toolbar,
#product-center-app .pc-dashboard-filter {
  border-color: #d6e8e5 !important;
  background: #ffffff !important;
  box-shadow: 0 8px 22px rgba(16, 63, 70, 0.052) !important;
}

#product-center-app .pc-button-solid,
#product-center-app .button:not(.ghost),
#product-center-app button.button:not(.ghost),
#product-center-app a.button:not(.ghost) {
  border-color: #006b63 !important;
  background: #008f84 !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.24), 0 10px 20px rgba(0, 143, 132, 0.16) !important;
}

#product-center-app .button.pc-button-copper,
#product-center-app button.pc-button-copper,
#product-center-app a.pc-button-copper {
  border-color: #006b63 !important;
  background: #008f84 !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.22), 0 10px 20px rgba(0, 143, 132, 0.18) !important;
}

#product-center-app .button.ghost,
#product-center-app a.button.ghost,
#product-center-app button.button.ghost,
#product-center-app .pc-button-outline {
  border-color: #b9d8d3 !important;
  background: #ffffff !important;
  color: #006b63 !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.75), 0 4px 10px rgba(16, 63, 70, 0.06) !important;
}

#product-center-app .pc-kpi-icon,
#product-center-app .pc-brand-category-icon {
  box-sizing: border-box !important;
  width: 40px !important;
  height: 40px !important;
  display: inline-grid !important;
  place-items: center !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  line-height: 0 !important;
  border-color: #bfe7e1 !important;
  background: #e6f7f5 !important;
  color: #006b63 !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.72), 0 4px 10px rgba(0, 143, 132, 0.08) !important;
}

#product-center-app .pc-kpi-card:nth-child(3) .pc-kpi-icon,
#product-center-app .pc-kpi-card:nth-child(6) .pc-kpi-icon,
#product-center-app .pc-brand-category-icon[data-brand="YINGLUGU"] {
  border-color: #bfe7e1 !important;
  background: #e6f7f5 !important;
  color: #006b63 !important;
}

#product-center-app .pc-brand-category-icon[data-brand="TAKEAWAY"] {
  border-color: #c6d2df !important;
  background: #eef4f8 !important;
  color: #355b74 !important;
}

#product-center-app .pc-kpi-card:nth-child(1) .pc-kpi-icon {
  border-color: #a8ded8 !important;
  background: #e6f7f5 !important;
  color: #006b63 !important;
}

#product-center-app .pc-kpi-card:nth-child(2) .pc-kpi-icon {
  border-color: #b8d4ff !important;
  background: #eef6ff !important;
  color: #2563eb !important;
}

#product-center-app .pc-kpi-card:nth-child(3) .pc-kpi-icon {
  border-color: #ffd49c !important;
  background: #fff3e4 !important;
  color: #c25a12 !important;
}

#product-center-app .pc-kpi-card:nth-child(4) .pc-kpi-icon {
  border-color: #a9dfc7 !important;
  background: #ebf9f2 !important;
  color: #138a5b !important;
}

#product-center-app .pc-kpi-card:nth-child(5) .pc-kpi-icon {
  border-color: #c9d2ff !important;
  background: #f1f3ff !important;
  color: #4f46e5 !important;
}

#product-center-app .pc-kpi-card:nth-child(6) .pc-kpi-icon {
  border-color: #b8ddc3 !important;
  background: #eef8ef !important;
  color: #2f7d3f !important;
}

.app-shell > .sidebar,
body .app-shell > aside.sidebar {
  background: linear-gradient(180deg, #003f43 0%, #004f4d 48%, #02323a 100%) !important;
  border-right: 1px solid rgba(127, 235, 225, 0.16) !important;
  color: #ecfffd !important;
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.095), 12px 0 30px rgba(0, 61, 66, 0.18) !important;
}

.app-shell .brand {
  border-bottom-color: rgba(127, 235, 225, 0.16) !important;
}

.app-shell .brand-mark {
  background: linear-gradient(135deg, #33d6c2 0%, #0f9a8e 100%) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.42), 0 10px 24px rgba(0, 143, 132, 0.28) !important;
}

.app-shell .brand-title {
  color: #f8fffe !important;
}

.app-shell .brand-subtitle,
.sidebar .side-section-title,
.sidebar details.side-section > summary {
  color: #a7eee5 !important;
}

.sidebar .side-nav a,
.sidebar .nav-link {
  color: #dffaf6 !important;
}

.sidebar details.side-subsection > summary {
  background: rgba(255, 255, 255, 0.075) !important;
  border-color: rgba(127, 235, 225, 0.16) !important;
  color: #ecfffd !important;
}

.sidebar .side-subnav {
  border-left-color: rgba(127, 235, 225, 0.2) !important;
}

.sidebar .side-nav a.primary-link,
.sidebar .side-nav a.active,
.sidebar .nav-link.active {
  background: rgba(34, 211, 197, 0.16) !important;
  border-color: rgba(127, 235, 225, 0.42) !important;
  color: #ffffff !important;
  box-shadow: inset 3px 0 #32d6c2, 0 10px 22px rgba(0, 75, 79, 0.2) !important;
}

.sidebar .side-nav a:not(.primary-link):hover,
.sidebar .nav-link:not(.active):hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(127, 235, 225, 0.22) !important;
  color: #ffffff !important;
}

.main-shell > .topbar,
body .main-shell > .topbar {
  background: rgba(249, 254, 253, 0.92) !important;
  border-bottom: 1px solid rgba(201, 226, 222, 0.86) !important;
  box-shadow: 0 8px 22px rgba(16, 63, 70, 0.045) !important;
}

.main-shell > .topbar .top-actions .button.ghost,
body .main-shell > .topbar .top-actions .button.ghost {
  border-color: #7bcfc7 !important;
  background: #ffffff !important;
  color: #006b63 !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.75), 0 4px 10px rgba(16, 63, 70, 0.055) !important;
}

.main-shell > .topbar .top-actions .button:not(.ghost),
body .main-shell > .topbar .top-actions .button:not(.ghost) {
  border-color: #006b63 !important;
  background: #008f84 !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.24), 0 10px 20px rgba(0, 143, 132, 0.16) !important;
}

.main-shell > .topbar .top-actions .badge.good,
body .main-shell > .topbar .top-actions .badge.good {
  border-color: #a7e4d4 !important;
  background: #e6f7f5 !important;
  color: #006b63 !important;
}
