.nav-section {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  padding: 0 14px;
  border: 0;
  border-left: 3px solid transparent;
  background: rgba(53, 185, 200, 0.07);
  color: #3d4d61;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}

.nav-section:hover,
.nav-section.active {
  border-left-color: #55c4b5;
  background: rgba(85, 196, 181, 0.15);
  color: #176f67;
}

.nav-section-game {
  border-left-color: #477fc1;
  background: linear-gradient(90deg, rgba(71, 127, 193, 0.14), rgba(34, 151, 157, 0.07));
  color: #315f94;
}
.nav-section-game:hover,
.nav-section-game.active { border-left-color: #477fc1; background: linear-gradient(90deg, rgba(71, 127, 193, 0.22), rgba(34, 151, 157, 0.12)); color: #234f82; }
.nav-section-ecommerce {
  border-left-color: #d08132;
  background: linear-gradient(90deg, rgba(208, 129, 50, 0.16), rgba(22, 137, 123, 0.08));
  color: #8b5b25;
}
.nav-section-ecommerce:hover,
.nav-section-ecommerce.active { border-left-color: #d08132; background: linear-gradient(90deg, rgba(208, 129, 50, 0.24), rgba(22, 137, 123, 0.13)); color: #78501f; }
.nav-section-system {
  border-left-color: #6e67b8;
  background: linear-gradient(90deg, rgba(110, 103, 184, 0.13), rgba(92, 110, 129, 0.06));
  color: #57518f;
}
.nav-section-system:hover,
.nav-section-system.active { border-left-color: #6e67b8; background: linear-gradient(90deg, rgba(110, 103, 184, 0.21), rgba(92, 110, 129, 0.1)); color: #4b467e; }

.sidebar { overflow: hidden; }
.side-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 5px;
  scrollbar-width: thin;
  scrollbar-color: #b9c8d3 transparent;
}
.side-nav::-webkit-scrollbar { width: 5px; }
.side-nav::-webkit-scrollbar-thumb { border-radius: 5px; background: #b9c8d3; }
.side-nav .nav-level-2 { padding-left: 24px; }
.side-nav .nav-level-3 { padding-left: 40px; }

.business-page {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 24px 28px 36px;
  color: #243142;
}

.business-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dbe4ec;
}

.business-page-head.compact { align-items: center; }
.business-page-head > div:last-child { display: flex; gap: 10px; }
.business-page-head span { color: #178878; font-size: 12px; font-weight: 800; }
.business-page-head h2 { margin: 5px 0 4px; color: #182536; font-size: 24px; letter-spacing: 0; }
.business-page-head p { margin: 0; color: #647286; font-size: 14px; }

.business-page button:not(.soft-button):not(.icon-danger):not(.metric-remove):not(.business-ticket) {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #177f72;
  border-radius: 6px;
  background: #177f72;
  color: #fff;
  font-weight: 700;
}

.business-notice {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 3px solid #178878;
  background: #edf8f5;
  color: #17695f;
}

.business-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) minmax(240px, 1.7fr) auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #dce5ed;
  background: #f7f9fb;
}

.business-filters.daily-filters { grid-template-columns: repeat(4, minmax(135px, 1fr)) minmax(210px, 1.6fr) auto auto; }
.business-filters > button {
  min-width: 70px;
  white-space: nowrap;
}
.business-filters label,
.business-summary-form > label,
.daily-report-form > label,
.ecommerce-daily-metric-row label { display: grid; gap: 6px; min-width: 0; }
.business-filters label span,
.business-summary-form > label > span,
.daily-report-form > label > span,
.ecommerce-daily-metric-row label span { color: #526174; font-size: 12px; font-weight: 700; }
.business-filters input,
.business-filters select,
.business-summary-form input,
.business-summary-form textarea,
.daily-report-form input,
.daily-report-form textarea,
.ecommerce-daily-metric-row input,
.ecommerce-daily-metric-row select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #cbd7e2;
  border-radius: 5px;
  background: #fff;
  color: #1f2d3d;
  font: inherit;
}

.business-report-table {
  overflow: auto;
  border: 1px solid #d8e2eb;
  background: #fff;
  box-shadow: 0 7px 20px rgba(35, 54, 76, 0.07);
}

.business-report-table table { width: 100%; min-width: 1050px; border-collapse: collapse; }
.business-report-table th { padding: 11px 12px; background: #eaf0f5; color: #3c4b5e; text-align: left; font-size: 12px; white-space: nowrap; }
.business-report-table td { padding: 12px; border-top: 1px solid #e5ebf0; border-left: 3px solid transparent; color: #344255; vertical-align: middle; font-size: 13px; }
.business-report-table tbody tr td:first-child { border-left-color: var(--person-color, #178878); }
.business-report-table tbody tr:hover { background: #f6fafb; }
.business-report-table td > strong,
.business-report-table td > small { display: block; }
.business-report-table td > small { margin-top: 4px; color: #7a8796; }
.business-wide-cell { max-width: 260px; white-space: normal; line-height: 1.55; }
.business-wide-cell small { display: block; margin-top: 4px; color: #768496; }

.business-person { display: flex; align-items: center; gap: 8px; min-width: 100px; }
.business-person i,
.business-summary-profile > span {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--person-color) 18%, white);
  color: var(--person-color);
  font-style: normal;
  font-weight: 800;
}

.business-row-actions { display: flex; gap: 6px; white-space: nowrap; }
.business-row-actions button { min-height: 32px; padding: 0 9px; }
.business-ticket { padding: 0; border: 0; background: none; color: #147d72; font-weight: 800; text-decoration: underline; }
.platform-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.platform-tags span { padding: 3px 6px; border-radius: 4px; background: #edf4f8; color: #3d6680; font-size: 11px; }

.business-summary-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #e1e7ed;
}
.business-summary-profile > span { width: 44px; height: 44px; flex-basis: 44px; font-size: 18px; }
.business-summary-profile strong,
.business-summary-profile small { display: block; }
.business-summary-profile small { margin-top: 3px; color: #718093; }

.business-summary-detail { display: grid; gap: 0; border: 1px solid #dbe4eb; background: #fff; }
.business-summary-detail section,
.daily-detail-copy section { padding: 17px 18px; border-bottom: 1px solid #e4eaf0; }
.business-summary-detail section:last-child { border-bottom: 0; }
.business-summary-detail h3,
.daily-detail-copy h3,
.business-attachments h3 { margin: 0 0 8px; color: #276073; font-size: 15px; }
.business-summary-detail p,
.daily-detail-copy p { margin: 0; color: #344255; line-height: 1.75; white-space: pre-wrap; }

.business-summary-form,
.daily-report-form { display: grid; gap: 15px; max-width: 1120px; }
.business-summary-form textarea,
.daily-report-form textarea { resize: vertical; line-height: 1.6; }
.business-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 14px; border-top: 1px solid #dbe4ec; }
.business-form-actions .error { margin-right: auto; }

.business-file-list,
.business-attachments > div { display: flex; flex-wrap: wrap; gap: 9px; }
.business-attachments { margin-top: 18px; }
.business-file-item { display: flex; align-items: center; gap: 9px; min-width: 235px; padding: 8px; border: 1px solid #dce5ec; background: #f8fafb; }
.business-file-item img,
.business-file-icon { width: 46px; height: 40px; object-fit: cover; border-radius: 4px; }
.business-file-icon { display: grid; place-items: center; background: #e1ebf2; color: #3d6680; font-size: 11px; }
.business-file-item span { min-width: 0; flex: 1; }
.business-file-item strong,
.business-file-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.business-file-item small { margin-top: 3px; color: #7a8796; font-size: 11px; }
.icon-danger,
.metric-remove { width: 30px; height: 30px; padding: 0; border: 0; background: transparent; color: #b74444; font-size: 20px; }

.daily-metrics-editor { border: 1px solid #d8e3eb; background: #f6f9fb; }
.daily-metrics-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 14px; border-bottom: 1px solid #d8e3eb; }
.daily-metrics-editor h3 { margin: 0 0 3px; color: #27394b; font-size: 16px; }
.daily-metrics-editor p { margin: 0; color: #6e7c8d; font-size: 12px; }
.ecommerce-daily-metric-row { display: grid; grid-template-columns: 1.2fr 1.2fr repeat(4, minmax(105px, 1fr)) 34px; gap: 9px; align-items: end; padding: 12px 14px; border-bottom: 1px solid #dfe7ed; background: #fff; }
.ecommerce-daily-metric-row:last-child { border-bottom: 0; }
.custom-platform-field.hidden { display: none; }

.social-media-metric-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr repeat(2, minmax(140px, 1fr)) 34px;
  gap: 9px;
  align-items: end;
  padding: 12px 14px;
  border-bottom: 1px solid #dfe7ed;
  background: #fff;
}
.social-media-metric-row:last-child { border-bottom: 0; }
.custom-social-platform-field.hidden { display: none; }
.social-editor { border-top: 3px solid #d08132; }
.daily-live-totals {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  border: 1px solid #d7e2ea;
  background: #fff;
}
.daily-live-totals div { padding: 12px 14px; border-right: 1px solid #e0e7ed; }
.daily-live-totals div:last-child { border-right: 0; }
.daily-live-totals span,
.daily-live-totals strong { display: block; }
.daily-live-totals span { color: #6a7889; font-size: 12px; }
.daily-live-totals strong { margin-top: 4px; color: #176f67; font-size: 20px; }
.daily-detail-section { margin-top: 15px; }
.daily-detail-section > h3 { margin: 0 0 9px; color: #315d6e; }

.daily-total-strip { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); margin-bottom: 15px; border: 1px solid #d8e3eb; background: #fff; }
.daily-total-strip.six { grid-template-columns: repeat(6, minmax(130px, 1fr)); }
.daily-total-strip div { padding: 15px 17px; border-right: 1px solid #d8e3eb; }
.daily-total-strip div:last-child { border-right: 0; }
.daily-total-strip span,
.daily-total-strip strong { display: block; }
.daily-total-strip span { color: #667587; font-size: 12px; }
.daily-total-strip strong { margin-top: 4px; color: #176f67; font-size: 22px; }
.daily-detail-copy { display: grid; grid-template-columns: 1fr 1fr; margin-top: 15px; border: 1px solid #dbe4eb; background: #fff; }
.daily-detail-copy section { border-bottom: 0; border-right: 1px solid #e4eaf0; }
.daily-detail-copy section:last-child { border-right: 0; }

.permission-tree .permission-node { min-width: 0; }
.permission-tree .permission-node > label { display: flex; align-items: center; gap: 10px; padding: 9px 10px; }
.permission-tree .permission-node > label span { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.permission-tree .permission-node small { color: #83909f; font-weight: 400; }
.permission-tree .permission-node-children { margin-left: 21px; padding-left: 11px; border-left: 1px solid #d7e1e8; }
.permission-tree .permission-depth-0 > label { background: #edf4f7; }
.permission-tree .permission-depth-1 > label strong { color: #315d6e; }
.permission-tree .permission-depth-2 > label strong { font-weight: 500; }

.account-role-section {
  --role-color: #477fc1;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #dbe4eb;
  border-top: 3px solid var(--role-color);
  border-radius: 7px;
  background: #f9fbfc;
  box-shadow: 0 7px 20px rgba(35, 54, 76, 0.06);
}
.account-role-section.role-ecommerce { --role-color: #d08132; }
.account-role-section.role-group_leader { --role-color: #16897b; }
.account-role-section.role-teacher { --role-color: #6e67b8; }
.account-role-section.role-leader { --role-color: #b85d76; }
.account-role-section > header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #dfe7ed; background: color-mix(in srgb, var(--role-color) 9%, white); }
.account-role-section > header div { display: flex; align-items: center; gap: 8px; }
.account-role-section > header i { width: 9px; height: 9px; border-radius: 50%; background: var(--role-color); }
.account-role-section > header h3 { margin: 0; color: #27384a; font-size: 16px; }
.account-role-section > header span { color: var(--role-color); font-size: 12px; font-weight: 800; }
#accountView .account-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
#accountView .account-form {
  position: static;
  display: grid;
  grid-template-columns: auto repeat(3, minmax(150px, 1fr)) minmax(110px, auto);
  align-items: end;
  gap: 12px;
  padding: 16px 18px;
}
#accountView .account-form h2 { align-self: center; margin: 0 10px 0 0; font-size: 18px; white-space: nowrap; }
#accountView .account-form label { min-width: 0; }
#accountView .account-form input,
#accountView .account-form select { width: 100%; min-width: 0; }
#accountView .account-form > button { min-height: 42px; }
#accountView .account-form > .error,
#accountView .account-form > .success { grid-column: 2 / -1; margin: 0; }
#accountView .account-list > h2 { margin: 2px 0 12px; color: #26394b; font-size: 20px; }
#userList { display: block; }
.account-role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; padding: 14px; }
.account-role-grid .managed-user-card {
  width: 100%;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--role-color) 23%, #dce4eb);
  border-left: 4px solid var(--role-color);
  background: #fff;
  box-shadow: 0 5px 14px rgba(35, 54, 76, 0.06);
}
.account-role-grid .managed-user-card label,
.account-role-grid .managed-user-card input,
.account-role-grid .managed-user-card select { min-width: 0; width: 100%; }
.account-role-grid .managed-user-identity { min-width: 0; }
.account-role-grid .managed-user-identity div { min-width: 0; }
.account-role-grid .managed-user-identity strong { overflow-wrap: anywhere; }
.account-role-grid .managed-user-identity > span { flex: 0 0 38px; background: var(--role-color); }
.account-role-grid .managed-user-card > button { justify-self: stretch; }

@media (max-width: 700px) {
  #accountView .account-form { grid-template-columns: 1fr; }
  #accountView .account-form h2,
  #accountView .account-form > .error,
  #accountView .account-form > .success { grid-column: 1; }
  .account-role-grid { grid-template-columns: 1fr; padding: 10px; }
  .account-role-section > header { padding: 11px 12px; }
}

@media (min-width: 701px) and (max-width: 1180px) {
  #accountView .account-form { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  #accountView .account-form h2 { grid-column: 1 / -1; }
  #accountView .account-form > .error,
  #accountView .account-form > .success { grid-column: 1 / -1; }
}

.commerce-cockpit-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #cfdde4;
}
.ecommerce-cockpit {
  background: linear-gradient(135deg, rgba(231, 241, 244, 0.76), rgba(247, 239, 229, 0.64));
}
.commerce-cockpit-head span { color: #16897b; font-size: 11px; font-weight: 800; }
.commerce-cockpit-head h2 { margin: 5px 0; color: #1f3041; font-size: 25px; }
.commerce-cockpit-head p { margin: 0; color: #667587; }
.commerce-period-control { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.commerce-period-control button,
.commerce-period-control input { width: auto; min-height: 36px; }
.commerce-period-control button { padding: 0 11px; border: 1px solid #cbd9e1; border-radius: 5px; background: #fff; color: #526477; box-shadow: none; }
.commerce-period-control button.active { border-color: #16897b; background: #16897b; color: #fff; }
.commerce-kpi-strip { display: grid; grid-template-columns: repeat(5, minmax(105px, 1fr)); margin-bottom: 12px; border: 1px solid #d5e0e7; background: #fff; }
.commerce-kpi-strip.compact { grid-template-columns: repeat(6, minmax(120px, 1fr)); }
.commerce-kpi-strip article { min-width: 0; padding: 13px 12px; border-top: 3px solid var(--kpi-color, #16897b); border-right: 1px solid #e0e7ec; }
.commerce-kpi-strip article:last-child { border-right: 0; }
.commerce-kpi-strip span,
.commerce-kpi-strip strong { display: block; }
.commerce-kpi-strip span { color: #697789; font-size: 11px; }
.commerce-kpi-strip strong { margin-top: 5px; overflow-wrap: anywhere; color: var(--kpi-color, #1f3041); font-size: 20px; }
.commerce-cockpit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.commerce-panel { min-width: 0; padding: 14px; border: 1px solid #d7e2e9; background: rgba(255,255,255,0.88); box-shadow: 0 6px 17px rgba(36, 59, 78, 0.06); }
.commerce-panel > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.commerce-panel h3 { margin: 0; color: #294256; font-size: 15px; }
.commerce-panel > header span { color: #81909f; font-size: 11px; }
.commerce-bar-row { display: grid; grid-template-columns: 76px minmax(50px, 1fr) auto; gap: 8px; align-items: center; margin-top: 9px; }
.commerce-bar-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #526477; font-size: 12px; }
.commerce-bar-row i { height: 7px; overflow: hidden; border-radius: 4px; background: #e4ebf0; }
.commerce-bar-row i b { display: block; height: 100%; border-radius: inherit; background: var(--bar-color); }
.commerce-bar-row strong { color: #26394a; font-size: 11px; }
.commerce-people-rank,
.commerce-issue-list,
.commerce-recent-list { display: grid; gap: 7px; max-height: 275px; overflow-y: auto; }
.commerce-people-rank button,
.commerce-issue-list button,
.commerce-recent-list button { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 9px; border: 1px solid #e0e7ec; border-left: 3px solid var(--person-color, #d08132); border-radius: 5px; background: #fff; color: #34485a; box-shadow: none; text-align: left; }
.commerce-people-rank button > i { color: var(--person-color); font-style: normal; font-weight: 900; }
.commerce-people-rank button > span { min-width: 0; flex: 1; }
.commerce-people-rank button strong,
.commerce-people-rank button small { display: block; }
.commerce-people-rank button small { color: #7a8998; font-size: 10px; }
.commerce-people-rank button > b { color: #16897b; font-size: 11px; }
.commerce-issue-list button,
.commerce-recent-list button { display: grid; border-left-color: #d08132; }
.commerce-issue-list button span,
.commerce-recent-list button span { color: #82909e; font-size: 10px; }
.commerce-issue-list button strong,
.commerce-recent-list button strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.commerce-recent-list button { grid-template-columns: 78px 1fr auto; }
.commerce-recent-list button em { color: #16897b; font-size: 11px; font-style: normal; }

.personnel-filters { grid-template-columns: repeat(4, minmax(150px, 1fr)) auto auto; }
.commerce-personnel-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 12px; }
.commerce-person-list { min-width: 0; border: 1px solid #d8e2e9; background: #fff; }
.commerce-person-list > header { display: flex; justify-content: space-between; padding: 13px; border-bottom: 1px solid #e0e7ec; }
.commerce-person-list h3 { margin: 0; font-size: 15px; }
.commerce-person-list > header span { color: #788797; font-size: 11px; }
.commerce-person-list > button { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; padding: 11px; border: 0; border-bottom: 1px solid #e6ebef; border-left: 3px solid var(--person-color); border-radius: 0; background: #fff; color: #34485a; box-shadow: none; text-align: left; }
.commerce-person-list > button.active { background: color-mix(in srgb, var(--person-color) 10%, white); }
.commerce-person-list > button > i { color: var(--person-color); font-style: normal; font-weight: 900; }
.commerce-person-list > button span strong,
.commerce-person-list > button span small,
.commerce-person-list > button span em { display: block; }
.commerce-person-list > button span small { color: #7b8998; font-size: 10px; }
.commerce-person-list > button span em { height: 4px; margin-top: 5px; overflow: hidden; border-radius: 3px; background: #e4e9ed; }
.commerce-person-list > button span em b { display: block; height: 100%; background: var(--person-color); }
.commerce-person-list > button > b { color: var(--person-color); text-align: right; }
.commerce-person-list > button > b small { display: block; color: #84919f; font-size: 9px; }
.commerce-person-main { min-width: 0; }
.commerce-person-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 13px 15px; border: 1px solid #d8e2e9; border-left: 4px solid var(--person-color); background: #fff; }
.commerce-person-head > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--person-color) 15%, white); color: var(--person-color); font-weight: 900; }
.commerce-person-head > div { flex: 1; }
.commerce-person-head h3,
.commerce-person-head p { margin: 0; }
.commerce-person-head p { margin-top: 3px; color: #718092; font-size: 11px; }
.commerce-person-head > strong { color: #16897b; text-align: right; }
.commerce-person-head > strong small { display: block; color: #7b8997; font-size: 9px; }
.commerce-person-dimensions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 10px; }
.commerce-person-dimension { padding: 12px; border: 1px solid #d9e3ea; background: #fff; }
.commerce-person-dimension h3 { margin: 0 0 9px; color: #315d6e; font-size: 13px; }
.commerce-person-dimension > div { display: grid; grid-template-columns: 65px minmax(40px, 1fr) auto; gap: 6px; align-items: center; margin-top: 7px; font-size: 10px; }
.commerce-person-dimension i { height: 5px; overflow: hidden; border-radius: 3px; background: #e3e9ed; }
.commerce-person-dimension i b { display: block; height: 100%; background: #16897b; }
.commerce-person-dimension strong { color: #34485a; }
.personnel-detail-table table { min-width: 900px; }

/* Ecommerce analytics refinement */
.ecommerce-cockpit {
  background:
    linear-gradient(135deg, rgba(225, 239, 237, 0.92), rgba(242, 237, 228, 0.82)),
    #edf2ef;
}
.commerce-cockpit-head { align-items: center; }
.commerce-cockpit-head h2 { margin: 0; font-size: 27px; }
.commerce-kpi-strip { overflow: hidden; box-shadow: 0 9px 24px rgba(43, 70, 80, 0.08); }
.commerce-kpi-strip article {
  position: relative;
  min-height: 77px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--kpi-color) 7%, white), white 68%);
  animation: commerce-stat-enter 480ms both;
}
.commerce-kpi-strip article::after {
  position: absolute;
  right: 11px;
  bottom: 9px;
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--kpi-color);
  content: "";
  opacity: 0.65;
}
.commerce-kpi-strip article:nth-child(2n) { animation-delay: 45ms; }
.commerce-kpi-strip article:nth-child(3n) { animation-delay: 90ms; }
.commerce-cockpit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.commerce-panel {
  position: relative;
  overflow: hidden;
  border-color: #cfdee2;
  background: rgba(255, 255, 255, 0.91);
  box-shadow: 0 10px 25px rgba(43, 68, 78, 0.08);
  animation: commerce-panel-enter 520ms both;
}
.commerce-panel::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #16897b, #467bc2, #d08132, #b85d76);
  background-size: 180% 100%;
  content: "";
  animation: commerce-accent-flow 7s linear infinite;
}
.commerce-panel-wide { grid-column: 1 / -1; }
.trend-panel { grid-column: span 2; }
.recent-panel { grid-column: 1 / -1; }
.recent-panel .commerce-recent-list { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: none; }
.commerce-panel h3 { color: #245b67; font-size: 16px; }
.commerce-platform-overview,
.commerce-person-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 9px;
}
.commerce-platform-overview > article,
.commerce-person-platform-grid > article {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--platform-color) 24%, #d9e3e7);
  border-top: 3px solid var(--platform-color);
  background: linear-gradient(145deg, color-mix(in srgb, var(--platform-color) 9%, white), #fff 60%);
  box-shadow: 0 7px 17px color-mix(in srgb, var(--platform-color) 10%, transparent);
}
.commerce-platform-overview article > header,
.commerce-person-platform-grid article > header { display: flex; align-items: center; gap: 8px; padding: 10px 11px 7px; }
.commerce-platform-overview article > header > span,
.commerce-person-platform-grid article > header > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--platform-color);
  color: white;
  font-size: 10px;
  font-weight: 800;
}
.commerce-platform-overview h4,
.commerce-person-platform-grid h4 { margin: 0; color: #273d4c; font-size: 13px; }
.commerce-platform-overview article > div,
.commerce-person-platform-grid article > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #e1e8eb; }
.commerce-platform-overview article > div > span,
.commerce-person-platform-grid article > div > span { min-width: 0; padding: 8px 9px; border-right: 1px solid #e5ebee; border-bottom: 1px solid #e5ebee; color: #75838f; font-size: 10px; }
.commerce-platform-overview article > div > span:nth-child(3n),
.commerce-person-platform-grid article > div > span:nth-child(3n) { border-right: 0; }
.commerce-platform-overview article > div strong,
.commerce-person-platform-grid article > div strong { display: block; margin-top: 3px; overflow-wrap: anywhere; color: var(--platform-color); font-size: 15px; }
.commerce-daily-trend { display: grid; gap: 7px; max-height: 300px; overflow-y: auto; }
.commerce-daily-trend article { position: relative; display: grid; grid-template-columns: 48px repeat(4, minmax(0, 1fr)); gap: 8px; align-items: center; padding: 10px 10px 13px; border: 1px solid #dde6ea; background: #fbfcfc; }
.commerce-daily-trend time { color: #2d6670; font-size: 12px; font-weight: 800; }
.commerce-daily-trend span { color: #7b8994; font-size: 10px; }
.commerce-daily-trend strong { display: block; color: #304656; font-size: 12px; }
.commerce-daily-trend i { position: absolute; left: 0; bottom: 0; width: var(--trend-width); height: 3px; background: linear-gradient(90deg, #16897b, #467bc2, #d08132); transition: width 360ms ease; }
.commerce-people-rank button { background: linear-gradient(90deg, color-mix(in srgb, var(--person-color) 10%, white), #fff 58%); box-shadow: 0 4px 10px color-mix(in srgb, var(--person-color) 8%, transparent); transition: transform 160ms ease, box-shadow 160ms ease; }
.commerce-people-rank button:hover { transform: translateY(-1px); box-shadow: 0 7px 15px color-mix(in srgb, var(--person-color) 15%, transparent); }
.personnel-platform-summary { margin-bottom: 12px; }
.commerce-person-list { display: grid; align-content: start; gap: 8px; padding: 10px; border: 0; background: #edf2f3; }
.commerce-person-list > header { margin: -10px -10px 1px; background: white; }
.commerce-person-list > button {
  border: 1px solid color-mix(in srgb, var(--person-color) 22%, #dce4e8);
  border-left: 4px solid var(--person-color);
  border-radius: 6px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--person-color) 10%, white), white 65%);
  box-shadow: 0 5px 12px color-mix(in srgb, var(--person-color) 9%, transparent);
}
.commerce-person-list > button.active { outline: 2px solid color-mix(in srgb, var(--person-color) 35%, transparent); background: color-mix(in srgb, var(--person-color) 14%, white); }
.commerce-person-platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 10px; }

/* Ecommerce cockpit two-zone layout */
#ecommerceCockpitBoard .commerce-cockpit-grid {
  grid-template-columns: minmax(0, 2.35fr) minmax(310px, 0.8fr);
  grid-template-areas: "platform people" "trend people";
  align-items: start;
  gap: 14px;
}
#ecommerceCockpitBoard .platform-panel { grid-area: platform; }
#ecommerceCockpitBoard .trend-panel { grid-area: trend; }
#ecommerceCockpitBoard .people-panel { grid-area: people; }
#ecommerceCockpitBoard .commerce-focus-panel { padding: 17px 15px; }
#ecommerceCockpitBoard .commerce-focus-panel .commerce-people-rank { grid-template-columns: 1fr; max-height: none; gap: 8px; }
#ecommerceCockpitBoard .commerce-focus-panel .commerce-people-rank button { min-height: 58px; padding: 9px 10px; }
#ecommerceCockpitBoard .commerce-platform-overview { grid-template-columns: 1fr; gap: 13px; }
#ecommerceCockpitBoard .commerce-platform-overview > button {
  display: grid;
  grid-template-columns: minmax(170px, 0.55fr) minmax(0, 2.45fr);
  align-items: stretch;
  min-height: 112px;
}
#ecommerceCockpitBoard .commerce-platform-overview > button > header { padding: 16px; border-right: 1px solid #e1e8eb; }
#ecommerceCockpitBoard .commerce-platform-overview > button > header > span { width: 40px; height: 40px; font-size: 12px; }
#ecommerceCockpitBoard .commerce-platform-overview > button h4 { font-size: 17px; }
#ecommerceCockpitBoard .commerce-platform-overview > button > div { grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 0; }
#ecommerceCockpitBoard .commerce-platform-overview > button > div > span { display: grid; align-content: center; min-height: 108px; padding: 13px; border-bottom: 0; }
#ecommerceCockpitBoard .commerce-platform-overview > button > div > span:nth-child(3n) { border-right: 1px solid #e5ebee; }
#ecommerceCockpitBoard .commerce-platform-overview > button > div > span:last-child { border-right: 0; }
#ecommerceCockpitBoard .commerce-platform-overview > button > div strong { margin-top: 7px; font-size: 19px; }

#ecommercePersonnelReportBoard .commerce-person-list > button {
  border: 1px solid color-mix(in srgb, var(--person-color) 27%, #d8e2e7);
  border-left: 5px solid var(--person-color);
  background: linear-gradient(100deg, color-mix(in srgb, var(--person-color) 14%, white), #fff 72%);
  color: #304453;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--person-color) 12%, transparent);
}
#ecommercePersonnelReportBoard .commerce-person-list > button > i { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: var(--person-color); color: #fff; }
#ecommercePersonnelReportBoard .commerce-person-list > button.active { outline: 2px solid color-mix(in srgb, var(--person-color) 38%, transparent); background: color-mix(in srgb, var(--person-color) 17%, white); }

.daily-operations-summary {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 1.05fr) minmax(150px, 0.55fr);
  gap: 10px;
  margin-bottom: 14px;
}
.daily-operations-summary.compact { grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); }
.daily-operation-group,
.daily-operations-summary > aside { border: 1px solid #d6e1e5; background: #fff; box-shadow: 0 7px 18px rgba(39, 65, 78, 0.06); }
.daily-operation-group { border-top: 3px solid var(--summary-color); }
.daily-operation-group.commerce { --summary-color: #16897b; }
.daily-operation-group.media { --summary-color: #795fa3; }
.daily-operation-group > header { display: flex; align-items: center; justify-content: space-between; padding: 10px 13px; border-bottom: 1px solid #e2e8eb; background: color-mix(in srgb, var(--summary-color) 7%, white); }
.daily-operation-group > header span { color: var(--summary-color); font-size: 13px; font-weight: 800; }
.daily-operation-group > header small { color: #84909b; font-size: 10px; }
.daily-operation-group > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.daily-operation-group.media > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.daily-operation-group > div > span,
.daily-operations-summary > aside > span { min-width: 0; padding: 13px; color: #73818c; font-size: 10px; }
.daily-operation-group > div > span { border-right: 1px solid #e5ebee; }
.daily-operation-group > div > span:last-child { border-right: 0; }
.daily-operation-group strong,
.daily-operations-summary > aside strong { display: block; margin-top: 4px; overflow-wrap: anywhere; color: var(--summary-color, #31586b); font-size: 21px; }
.daily-operations-summary > aside { display: grid; grid-template-columns: 1fr 1fr; align-content: stretch; border-top: 3px solid #c4863c; }
.daily-operations-summary > aside > span { display: grid; align-content: center; border-right: 1px solid #e5ebee; }
.daily-operations-summary > aside > span:last-child { border-right: 0; }

.commerce-command-deck { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
#ecommerceCockpitBoard .commerce-command-deck > button {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  min-width: 0;
  min-height: 112px;
  overflow: hidden;
  padding: 16px 17px;
  border: 1px solid color-mix(in srgb, var(--command-color) 30%, #cbd9dd);
  border-left: 4px solid var(--command-color);
  border-radius: 6px;
  background: color-mix(in srgb, var(--command-color) 8%, #fdfefe);
  color: #263d4b;
  box-shadow: 0 9px 22px color-mix(in srgb, var(--command-color) 11%, transparent);
  text-align: left;
  animation: commerce-command-enter 520ms calc(var(--command-index) * 70ms) both;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
#ecommerceCockpitBoard .commerce-command-deck > button:hover { transform: translateY(-3px); box-shadow: 0 14px 28px color-mix(in srgb, var(--command-color) 18%, transparent); }
.commerce-command-deck span,
.commerce-command-deck strong,
.commerce-command-deck small { display: block; position: relative; z-index: 1; }
.commerce-command-deck span { color: var(--command-color); font-size: 11px; font-weight: 800; }
.commerce-command-deck strong { margin-top: 8px; font-size: 24px; }
.commerce-command-deck small { margin-top: 5px; color: #6e7c87; font-size: 11px; }
.commerce-command-deck i { position: absolute; right: -18px; bottom: -28px; width: 86px; height: 86px; border: 12px solid color-mix(in srgb, var(--command-color) 15%, transparent); border-radius: 50%; }
.commerce-command-deck i::after { position: absolute; top: -12px; left: -55px; width: 44px; height: 2px; background: var(--command-color); content: ""; animation: commerce-signal-pulse 2.8s ease-in-out infinite; }
.commerce-focus-panel { grid-column: span 2; padding: 17px; background: #fdfefe; }
.commerce-focus-panel > header > div small,
.platform-panel > header > div small { display: block; margin-bottom: 3px; color: #8a7680; font-size: 9px; font-weight: 800; }
#ecommerceCockpitBoard .commerce-focus-panel > header > button { min-height: 30px; padding: 0 10px; border: 1px solid #c8d8dd; border-radius: 4px; background: #eef5f5; color: #2f6970; box-shadow: none; font-size: 10px; }
.commerce-focus-panel .commerce-people-rank { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 330px; gap: 9px; }
#ecommerceCockpitBoard .commerce-focus-panel .commerce-people-rank button { min-height: 70px; padding: 12px; border-left-width: 5px; background: linear-gradient(90deg, color-mix(in srgb, var(--person-color) 11%, white), #fff 64%); color: #34485a; }
.commerce-focus-panel .commerce-people-rank button > i { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--person-color); color: #fff; font-size: 10px; }
.commerce-focus-panel .commerce-people-rank button strong { color: #263d4b; font-size: 13px; }
.commerce-focus-panel .commerce-people-rank button > b { color: var(--person-color); font-size: 17px; text-align: right; }
.commerce-focus-panel .commerce-people-rank button > b small { color: #84919a; font-size: 9px; font-weight: 500; }
#ecommerceCockpitBoard .commerce-platform-overview > button { width: 100%; padding: 0; border-radius: 5px; color: inherit; box-shadow: 0 7px 17px color-mix(in srgb, var(--platform-color) 10%, transparent); text-align: left; transition: transform 180ms ease, box-shadow 180ms ease; }
#ecommerceCockpitBoard .commerce-platform-overview > button:hover { transform: translateY(-2px); box-shadow: 0 12px 24px color-mix(in srgb, var(--platform-color) 17%, transparent); }
#ecommerceCockpitBoard .commerce-platform-overview > button,
.commerce-platform-overview > article { border: 1px solid color-mix(in srgb, var(--platform-color) 24%, #d9e3e7); border-top: 3px solid var(--platform-color); background: linear-gradient(145deg, color-mix(in srgb, var(--platform-color) 9%, white), #fff 60%); }
.commerce-platform-overview > button > header { display: flex; align-items: center; gap: 8px; padding: 10px 11px 7px; }
.commerce-platform-overview > button > header > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--platform-color); color: white; font-size: 10px; font-weight: 800; }
.commerce-platform-overview > button > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #e1e8eb; }
.commerce-platform-overview > button > div > span { min-width: 0; padding: 8px 9px; border-right: 1px solid #e5ebee; border-bottom: 1px solid #e5ebee; color: #75838f; font-size: 10px; }
.commerce-platform-overview > button > div > span:nth-child(3n) { border-right: 0; }
.commerce-platform-overview > button > div strong { display: block; margin-top: 3px; overflow-wrap: anywhere; color: var(--platform-color); font-size: 15px; }

@keyframes commerce-command-enter {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes commerce-signal-pulse {
  0%, 100% { opacity: 0.35; transform: scaleX(0.45); transform-origin: right; }
  50% { opacity: 0.9; transform: scaleX(1); transform-origin: right; }
}

@keyframes commerce-stat-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes commerce-panel-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes commerce-accent-flow {
  from { background-position: 0 0; }
  to { background-position: 180% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .commerce-kpi-strip article,
  .commerce-command-deck > button,
  .commerce-command-deck i::after,
  .commerce-panel,
  .commerce-panel::before { animation: none; }
  .commerce-people-rank button { transition: none; }
}

@media (max-width: 1400px) {
  .business-filters,
  .business-filters.daily-filters { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .ecommerce-daily-metric-row { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .social-media-metric-row { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .daily-live-totals,
  .daily-total-strip.six,
  .commerce-kpi-strip { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
  .daily-operations-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-operations-summary > aside { grid-column: 1 / -1; }
  .commerce-command-deck { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commerce-cockpit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #ecommerceCockpitBoard .commerce-cockpit-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  #ecommerceCockpitBoard .commerce-platform-overview > button { grid-template-columns: 150px minmax(0, 1fr); }
  #ecommerceCockpitBoard .commerce-platform-overview > button > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #ecommerceCockpitBoard .commerce-platform-overview > button > div > span { min-height: 72px; border-bottom: 1px solid #e5ebee; }
  .commerce-panel-wide { grid-column: 1 / -1; }
  .trend-panel { grid-column: span 1; }
  .recent-panel .commerce-recent-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-remove { align-self: center; }
}

@media (max-width: 760px) {
  .business-page { padding: 18px 14px 28px; }
  .business-page-head { align-items: stretch; flex-direction: column; }
  .business-filters,
  .business-filters.daily-filters,
  .ecommerce-daily-metric-row,
  .daily-total-strip,
  .daily-live-totals,
  .daily-total-strip.six,
  .commerce-kpi-strip,
  .daily-detail-copy { grid-template-columns: 1fr; }
  .commerce-cockpit-head,
  .commerce-person-head { align-items: stretch; flex-direction: column; }
  .commerce-cockpit-grid,
  .commerce-personnel-layout,
  .commerce-person-dimensions,
  .commerce-person-platform-grid { grid-template-columns: 1fr; }
  .daily-operations-summary,
  .daily-operations-summary.compact,
  .commerce-command-deck,
  .commerce-focus-panel .commerce-people-rank { grid-template-columns: 1fr; }
  .daily-operations-summary > aside { grid-column: auto; }
  .daily-operation-group > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commerce-focus-panel { grid-column: span 1; }
  #ecommerceCockpitBoard .commerce-cockpit-grid { grid-template-columns: 1fr; grid-template-areas: "platform" "trend" "people"; }
  #ecommerceCockpitBoard .commerce-platform-overview > button { grid-template-columns: 1fr; }
  #ecommerceCockpitBoard .commerce-platform-overview > button > header { border-right: 0; border-bottom: 1px solid #e1e8eb; }
  #ecommerceCockpitBoard .commerce-platform-overview > button > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recent-panel .commerce-recent-list { grid-template-columns: 1fr; }
  .daily-total-strip div,
  .daily-detail-copy section { border-right: 0; border-bottom: 1px solid #d8e3eb; }
  .business-form-actions { flex-wrap: wrap; }
}
