.role-switch {
  height: 34px;
  padding: 0 12px;
  border: 1px solid #d8def0;
  border-radius: 8px;
  background: #f8f9ff;
  color: #4658bd;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

.role-switch:hover { border-color: #b8c3e8; background: #f0f3ff; }
.topbar-right .product-link[hidden], .topbar-right .trial-pill[hidden], .topbar-right #guideButton[hidden], .topbar-right #taskCenterButton[hidden] { display: none; }
.ops-system-nav { margin-top: 0; }
.ops-scope-line { display: flex; align-items: center; gap: 8px; color: #78869a; font-size: 13px; }
.ops-scope-line b { color: #334155; }
.ops-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.ops-summary-card { min-height: 126px; padding: 22px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(37, 51, 86, .04); }
.ops-summary-card span { display: block; color: #718096; font-size: 13px; }
.ops-summary-card strong { display: block; margin-top: 14px; color: #172033; font-size: 28px; }
.ops-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.ops-dashboard-controls { display: flex; align-items: flex-end; gap: 12px; }
.ops-dashboard-controls .period-tabs { margin: 0 0 1px; }
.ops-dashboard-controls .compact-field { min-width: 210px; }
.ops-kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.ops-kpi { min-width: 0; padding: 16px; border: 1px solid var(--line-strong); border-radius: 11px; background: linear-gradient(145deg, #fff, #fafbff); box-shadow: 0 8px 22px rgba(37, 51, 86, .035); }
.ops-kpi span, .ops-kpi b, .ops-kpi small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-kpi span { color: #8793a4; font-size: 10px; }
.ops-kpi b { margin-top: 8px; color: #667386; font-size: 12px; font-weight: 600; }
.ops-kpi strong { display: block; margin-top: 7px; color: #172033; font-size: 25px; }
.ops-kpi small { margin-top: 6px; color: #5967c8; font-size: 10px; }
.ops-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.ops-panel { min-width: 0; padding: 18px; border: 1px solid var(--line-strong); border-radius: 11px; background: #fff; box-shadow: 0 8px 24px rgba(37, 51, 86, .035); }
.ops-trend-panel { grid-column: span 2; }
.ops-panel-head, .ops-detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ops-panel-head h3, .ops-detail-section h4 { margin: 0; color: #273244; font-size: 14px; }
.ops-panel-head p { margin: 5px 0 0; color: #8995a5; font-size: 11px; }
.ops-trend { width: 100%; height: 210px; margin-top: 10px; overflow: visible; }
.ops-grid-lines { fill: none; stroke: #edf0f5; stroke-width: 1; }
.ops-trend-line { fill: none; stroke: #596fe5; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; filter: drop-shadow(0 7px 7px rgba(89, 111, 229, .2)); }
.ops-chart-legend { display: flex; align-items: center; justify-content: space-between; color: #7b8798; font-size: 11px; }
.ops-chart-legend span { display: flex; align-items: center; gap: 7px; }
.ops-chart-legend i { width: 18px; height: 3px; border-radius: 999px; background: #596fe5; }
.ops-chart-legend b { color: #4d5dc4; }
.ops-mini-tabs { display: flex; gap: 3px; padding: 3px; border-radius: 7px; background: #f1f4f8; }
.ops-mini-tabs button { height: 27px; padding: 0 9px; border: 0; border-radius: 5px; background: transparent; color: #788496; cursor: pointer; font-size: 11px; }
.ops-mini-tabs button.active { background: #fff; color: #4f5dca; box-shadow: 0 2px 5px rgba(15, 23, 42, .08); }
.ops-todo-list, .ops-priority-list, .ops-recent { display: grid; gap: 7px; }
.ops-todo-list { margin-top: 14px; }
.ops-todo-list button, .ops-priority-list button, .ops-recent > button { display: flex; align-items: center; width: 100%; min-height: 51px; gap: 10px; padding: 10px 11px; border: 1px solid #edf0f4; border-radius: 8px; background: #fbfcfe; color: #536174; cursor: pointer; text-align: left; }
.ops-todo-list button:hover, .ops-priority-list button:hover, .ops-recent > button:hover { border-color: #cbd3ef; background: #f8f9ff; }
.ops-todo-list button span { flex: 1; }
.ops-todo-list strong { color: #273244; font-size: 18px; }
.ops-todo-list em { color: #5967c8; font-size: 10px; font-style: normal; }
.ops-done-state { display: grid; min-height: 185px; margin-top: 14px; place-items: center; border: 1px dashed #cadfd4; border-radius: 9px; background: #f7fcf9; color: #398265; font-size: 13px; }
.ops-distribution { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.ops-distribution button { display: flex; min-height: 92px; padding: 12px; border: 1px solid #edf0f4; border-radius: 9px; background: #fbfcfe; cursor: pointer; flex-direction: column; text-align: left; }
.ops-distribution b { margin: 8px 0 4px; color: #273244; font-size: 22px; }
.ops-distribution em { color: #8995a5; font-size: 10px; font-style: normal; }
.ops-level { display: inline-grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; font-size: 11px; }
.level-0 { background: #ffe8e8; color: #c7424a; }.level-1 { background: #fff3d9; color: #a5670d; }.level-2 { background: #e9efff; color: #4265d6; }
.ops-priority-list, .ops-recent { margin-top: 14px; }
.ops-priority-list button > span:first-child, .ops-recent > button > span:first-child { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.ops-priority-list b, .ops-recent b { overflow: hidden; color: #344054; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ops-priority-list small, .ops-recent small { margin-top: 4px; color: #8995a5; font-size: 10px; }
.ops-customer-filters { margin-top: 12px; }
.ops-customer-filters .search-field { min-width: 240px; }
.ops-customer-table { min-width: 1050px; }
.ops-customer-link { display: flex; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; flex-direction: column; text-align: left; }
.ops-customer-link b { color: #273244; font-size: 13px; }
.ops-customer-link small { margin-top: 5px; color: #8894a4; font-size: 11px; }
.ops-customer-profile { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.ops-customer-profile > div { display: flex; align-items: center; min-width: 0; gap: 11px; }
.ops-customer-profile > div > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.ops-customer-profile b { color: #263144; }
.ops-customer-profile small { margin-top: 5px; color: #7e8a9a; font-size: 11px; }
.ops-customer-avatar { display: grid; width: 45px; height: 45px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: linear-gradient(145deg, #7988e8, #4e5bc1); color: #fff; font-weight: 700; }
.ops-detail-grid, .ops-detail-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 13px; }
.ops-detail-section { margin-top: 13px; padding: 13px; border: 1px solid #e8ebf1; border-radius: 9px; background: #fbfcfe; }
.ops-detail-grid .ops-detail-section, .ops-detail-columns .ops-detail-section { margin-top: 0; }
.ops-detail-section h4 span { margin-left: 6px; color: #8995a5; font-size: 10px; font-weight: 500; }
.ops-detail-section > p { margin: 8px 0 0; color: #788496; font-size: 11px; }
.ops-detail-section dl { display: grid; gap: 7px; margin: 11px 0 0; }
.ops-detail-section dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }
.ops-detail-section dt { color: #8995a5; }.ops-detail-section dd { margin: 0; color: #465264; text-align: right; }
.ops-quota-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 11px; }
.ops-quota-grid > div { padding: 10px; border-radius: 8px; background: #fff; }
.ops-quota-grid span, .ops-quota-grid b, .ops-quota-grid small { display: block; }
.ops-quota-grid span { color: #8995a5; font-size: 10px; }.ops-quota-grid b { margin-top: 5px; color: #344054; font-size: 11px; }.ops-quota-grid small { margin-top: 4px; color: #5967c8; font-size: 9px; }
.ops-detail-list { display: grid; gap: 6px; margin-top: 10px; }
.ops-detail-list p { display: flex; margin: 0; padding: 8px; border-radius: 6px; background: #fff; flex-direction: column; }
.ops-detail-list b { color: #465264; font-size: 11px; }.ops-detail-list span { margin-top: 3px; color: #8995a5; font-size: 9px; }
.ops-detail-empty { min-height: 38px; color: #98a2b3 !important; }
.ops-entitlement-modal-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.ops-entitlement-modal-summary > div { padding: 12px; border: 1px solid #e8ebf1; border-radius: 8px; background: #fbfcfe; }
.ops-entitlement-modal-summary span, .ops-entitlement-modal-summary b { display: block; }
.ops-entitlement-modal-summary span { color: #8995a5; font-size: 10px; }
.ops-entitlement-modal-summary b { margin-top: 5px; color: #344054; font-size: 12px; }
.ops-entitlement-quota label { display: flex; margin-top: 9px; gap: 5px; color: #8995a5; font-size: 9px; flex-direction: column; }
.ops-entitlement-quota input { width: 100%; height: 32px; padding: 0 8px; border: 1px solid #e1e5ec; border-radius: 6px; background: #f5f7fa; color: #667386; }
.ops-entitlement-lock { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; padding: 18px; border: 1px solid #cbd4f2; border-radius: 11px; background: linear-gradient(135deg, #f8f9ff, #fff); }
.ops-entitlement-lock > div { min-width: 0; flex: 1; }
.ops-entitlement-lock span { color: #5967c8; font-size: 10px; }
.ops-entitlement-lock h3 { margin: 5px 0 0; color: #273244; font-size: 17px; }
.ops-entitlement-lock p { margin: 5px 0 0; color: #7e8a9a; font-size: 11px; }
.ops-entitlement-table { min-width: 1280px; }
.ops-commerce-table { min-width: 1080px; }
.ops-usage { min-width: 108px; }
.ops-usage > span { display: block; color: #7c8898; font-size: 9px; }
.ops-usage > span b { color: #344054; font-size: 10px; }
.ops-usage-bar { display: block; width: 100%; height: 5px; margin-top: 6px; overflow: hidden; border-radius: 999px; background: #e8ebf1; }
.ops-usage-bar em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6173df, #8995ee); }
.ops-history-list { display: grid; gap: 9px; }
.ops-history-list article { display: flex; padding: 13px; border: 1px solid #e7eaf0; border-radius: 8px; background: #fbfcfe; flex-direction: column; }
.ops-history-list b { color: #344054; font-size: 12px; }
.ops-history-list span { margin-top: 5px; color: #8290a1; font-size: 10px; }
.ops-commerce-detail-head { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.ops-commerce-detail-head > div { padding: 11px; border: 1px solid #e8ebf1; border-radius: 8px; background: #fbfcfe; }
.ops-commerce-detail-head > div > span:first-child { display: block; margin-bottom: 7px; color: #8995a5; font-size: 10px; }
.ops-commerce-detail-head b { color: #344054; font-size: 11px; }
.ops-detail-list p .link-button { align-self: flex-start; margin-top: 6px; }
.ops-business-tabs { display: flex; gap: 4px; margin: 14px 0; padding: 4px; border-radius: 9px; background: #f1f4f8; }
.ops-business-tabs button { height: 34px; padding: 0 18px; border: 0; border-radius: 7px; background: transparent; color: #738095; cursor: pointer; font-weight: 600; }
.ops-business-tabs button.active { background: #fff; color: #4f5dca; box-shadow: 0 2px 7px rgba(15, 23, 42, .08); }
.ops-business-filters .compact-field { min-width: 165px; }
.ops-business-table { min-width: 1020px; }
.ops-business-detail-head { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.ops-business-detail-head > div { padding: 12px; border: 1px solid #e8ebf1; border-radius: 8px; background: #fbfcfe; }
.ops-business-detail-head span, .ops-business-detail-head b { display: block; }
.ops-business-detail-head > div > span:first-child { margin-bottom: 7px; color: #8995a5; font-size: 10px; }
.ops-business-detail-head b { color: #344054; font-size: 14px; }
.ops-business-error { border-color: #f2c9c9; background: #fff8f8; }
.ops-business-error p { color: #b0444c; }
.ops-governance-filters .compact-field { min-width: 150px; }
.ops-governance-table { min-width: 1050px; }
.ops-governance-detail-head { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.ops-governance-detail-head > div { padding: 12px; border: 1px solid #e8ebf1; border-radius: 8px; background: #fbfcfe; }
.ops-governance-detail-head > div > span:first-child { display: block; margin-bottom: 7px; color: #8995a5; font-size: 10px; }
.ops-governance-detail-head b { color: #344054; font-size: 13px; }
.ops-ticket-summary { margin-top: 14px; }
.app-shell[data-mode="ops"] .shop-switch { cursor: default; }
.app-shell[data-mode="ops"] .shop-switch svg { visibility: hidden; }

@media (max-width: 850px) {
  .role-switch { max-width: 116px; overflow: hidden; text-overflow: ellipsis; }
  .ops-summary-grid { grid-template-columns: 1fr; }
  .ops-heading-row, .ops-dashboard-controls { align-items: stretch; flex-direction: column; }
  .ops-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-dashboard-grid { grid-template-columns: 1fr; }
  .ops-trend-panel { grid-column: span 1; }
  .ops-detail-grid, .ops-detail-columns, .ops-quota-grid { grid-template-columns: 1fr; }
  .ops-entitlement-modal-summary { grid-template-columns: 1fr; }
  .ops-entitlement-lock { align-items: stretch; flex-direction: column; }
  .ops-commerce-detail-head { grid-template-columns: 1fr; }
  .ops-business-tabs { overflow-x: auto; }
  .ops-business-tabs button { flex: 0 0 auto; }
  .ops-business-detail-head { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-governance-detail-head { grid-template-columns: 1fr; }
}
