/*
 * 六米云枢运营工具型主题
 * 登录后主中台清爽浅色主题的最终视觉权威。
 */

html[data-theme="simple-light"] {
  --operating-side-width: 256px;
  --operating-header-height: 72px;
  --operating-page-gap: 24px;
  --operating-card-gap: 12px;
  --operating-card-padding: 16px;
  --operating-surface-radius: 10px;
  --operating-control-radius: 8px;
  --operating-page-bg: #f4f6f5;
  --operating-surface: #ffffff;
  --operating-surface-muted: #eef2f0;
  --operating-text: #17211d;
  --operating-muted: #65716c;
  --operating-border: #d9e1dd;
  --operating-primary: #11785b;
  --operating-info: #34738b;
  --operating-warning: #b7791f;
  --operating-danger: #c34b40;
}

html[data-theme="simple-light"] body:has(.app-shell:not(.hidden)) {
  background: var(--operating-page-bg) !important;
}

html[data-theme="simple-light"] .app-shell {
  background: var(--operating-page-bg) !important;
  color: var(--operating-text) !important;
}

html[data-theme="simple-light"] .app-shell::after {
  display: none !important;
}

html[data-theme="simple-light"] .app-shell .main {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: var(--operating-page-gap) !important;
  overflow-y: auto !important;
  background: var(--operating-page-bg) !important;
  color: var(--operating-text) !important;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-variant-numeric: tabular-nums;
}

html[data-theme="simple-light"] .app-shell .main > :where(section, div):not(.hub-pane-hidden) {
  width: min(100%, 1520px) !important;
  max-width: 1520px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

html[data-theme="simple-light"] .app-shell .main > :where(section, div),
html[data-theme="simple-light"] .app-shell .main :where(.command-cockpit, .pk-rank-panel) {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme="simple-light"] .app-shell .main :where(
  section,
  article,
  .panel,
  .detail,
  .metric,
  .store-card,
  .recent-card,
  .playbook,
  .pk-rank-card,
  .cockpit-panel
) {
  border-color: var(--operating-border) !important;
  background-color: var(--operating-surface) !important;
  background-image: none !important;
  color: var(--operating-text) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html[data-theme="simple-light"] .app-shell .main :where(h1, h2, h3, h4, strong, b) {
  color: var(--operating-text) !important;
  font-family: inherit !important;
  text-shadow: none !important;
}

html[data-theme="simple-light"] .app-shell .main :where(p, small, span, label) {
  color: var(--operating-muted) !important;
  text-shadow: none !important;
}

html[data-theme="simple-light"] .app-shell .main .eyebrow {
  margin: 0 0 6px !important;
  color: var(--operating-primary) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.06em !important;
}

html[data-theme="simple-light"] .app-shell .command-cockpit {
  display: grid !important;
  gap: var(--operating-card-gap) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme="simple-light"] .app-shell .cockpit-hero {
  min-height: 0 !important;
  padding: 20px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 24px !important;
  border: 1px solid var(--operating-border) !important;
  border-radius: var(--operating-surface-radius) !important;
  background: var(--operating-surface) !important;
  box-shadow: none !important;
}

html[data-theme="simple-light"] .app-shell .cockpit-hero::before {
  display: none !important;
}

html[data-theme="simple-light"] .app-shell .cockpit-hero h3 {
  margin: 0 !important;
  color: var(--operating-text) !important;
  font-size: 26px !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
}

html[data-theme="simple-light"] .app-shell .cockpit-hero h3 + p {
  max-width: 920px !important;
  margin: 8px 0 0 !important;
  color: var(--operating-muted) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

html[data-theme="simple-light"] .app-shell .cockpit-cycle {
  min-width: 520px !important;
  padding: 4px !important;
  display: grid !important;
  grid-template-columns: repeat(6, minmax(72px, 1fr)) !important;
  gap: 2px !important;
  border: 1px solid var(--operating-border) !important;
  border-radius: var(--operating-control-radius) !important;
  background: var(--operating-surface-muted) !important;
  box-shadow: none !important;
}

html[data-theme="simple-light"] .app-shell .cockpit-cycle span {
  min-height: 36px !important;
  padding: 0 10px !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: var(--operating-muted) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

html[data-theme="simple-light"] .app-shell .cockpit-cycle span.active {
  background: var(--operating-primary) !important;
  color: #ffffff !important;
}

html[data-theme="simple-light"] .app-shell .cockpit-kpis {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: var(--operating-card-gap) !important;
}

html[data-theme="simple-light"] .app-shell .cockpit-kpis article {
  min-height: 104px !important;
  padding: var(--operating-card-padding) !important;
  display: grid !important;
  align-content: center !important;
  gap: 5px !important;
  border: 1px solid var(--operating-border) !important;
  border-radius: var(--operating-surface-radius) !important;
  background: var(--operating-surface) !important;
  box-shadow: none !important;
}

html[data-theme="simple-light"] .app-shell .cockpit-kpis article > span {
  color: var(--operating-muted) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

html[data-theme="simple-light"] .app-shell .cockpit-kpis article > strong {
  color: var(--operating-text) !important;
  font-size: 30px !important;
  font-weight: 750 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em !important;
}

html[data-theme="simple-light"] .app-shell .cockpit-kpis article > small {
  color: var(--operating-muted) !important;
  font-size: 12px !important;
}

html[data-theme="simple-light"] .app-shell .operation-daily-board {
  padding: 20px !important;
  border: 1px solid var(--operating-border) !important;
  border-radius: var(--operating-surface-radius) !important;
  background: var(--operating-surface) !important;
  box-shadow: none !important;
}

html[data-theme="simple-light"] .app-shell .operation-daily-board > header {
  margin: 0 0 18px !important;
  padding: 0 0 16px !important;
  display: flex !important;
  align-items: end !important;
  justify-content: space-between !important;
  gap: 20px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--operating-border) !important;
  background: transparent !important;
}

html[data-theme="simple-light"] .app-shell .operation-daily-board h4 {
  margin: 0 0 6px !important;
  color: var(--operating-text) !important;
  font-size: 24px !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
}

html[data-theme="simple-light"] .app-shell .operation-daily-board header span {
  color: var(--operating-muted) !important;
  font-size: 13px !important;
}

html[data-theme="simple-light"] .app-shell .daily-export-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
}

html[data-theme="simple-light"] .app-shell .daily-export-actions button {
  width: auto !important;
  min-width: 0 !important;
}

html[data-theme="simple-light"] .app-shell .daily-board-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: var(--operating-card-gap) !important;
}

html[data-theme="simple-light"] .app-shell .daily-board-card {
  min-width: 0 !important;
  padding: 16px !important;
  border: 1px solid var(--operating-border) !important;
  border-radius: var(--operating-surface-radius) !important;
  background: #f9fbfa !important;
  box-shadow: none !important;
}

html[data-theme="simple-light"] .app-shell .daily-card-title {
  margin: 0 0 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

html[data-theme="simple-light"] .app-shell .daily-card-title > span {
  color: var(--operating-text) !important;
  font-size: 15px !important;
  font-weight: 750 !important;
}

html[data-theme="simple-light"] .app-shell .daily-card-title > b {
  padding: 3px 8px !important;
  border-radius: 999px !important;
  background: var(--operating-surface-muted) !important;
  color: var(--operating-muted) !important;
  font-size: 11px !important;
  white-space: nowrap !important;
}

html[data-theme="simple-light"] .app-shell .daily-mini-row {
  padding: 12px !important;
  border: 1px solid var(--operating-border) !important;
  border-radius: var(--operating-control-radius) !important;
  background: var(--operating-surface) !important;
  box-shadow: none !important;
}

html[data-theme="simple-light"] .app-shell .daily-empty {
  min-height: 116px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px dashed var(--operating-border) !important;
  border-radius: var(--operating-control-radius) !important;
  background: transparent !important;
  color: var(--operating-muted) !important;
  font-size: 13px !important;
}

html[data-theme="simple-light"] .app-shell .main :where(button, .ghost, .secondary) {
  min-height: 38px !important;
  padding: 0 14px !important;
  border: 1px solid var(--operating-border) !important;
  border-radius: var(--operating-control-radius) !important;
  background: var(--operating-surface) !important;
  color: var(--operating-text) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html[data-theme="simple-light"] .app-shell .main :where(button:hover, .ghost:hover, .secondary:hover) {
  border-color: #aebbb5 !important;
  background: var(--operating-surface-muted) !important;
}

html[data-theme="simple-light"] .app-shell .main :where(button.primary, .primary),
html[data-theme="simple-light"] .app-shell .daily-export-actions button:first-child {
  border-color: var(--operating-primary) !important;
  background: var(--operating-primary) !important;
  color: #ffffff !important;
}

html[data-theme="simple-light"] .app-shell .main :where(input, select, textarea) {
  border-color: var(--operating-border) !important;
  border-radius: var(--operating-control-radius) !important;
  background: var(--operating-surface) !important;
  color: var(--operating-text) !important;
  box-shadow: none !important;
}

html[data-theme="simple-light"] .app-shell .main :where(.status.success, .badge.success, .pill.success, .is-success) {
  color: var(--operating-primary) !important;
}

html[data-theme="simple-light"] .app-shell .main :where(.status.warning, .badge.warning, .pill.warning, .is-warning),
html[data-theme="simple-light"] .app-shell .daily-mini-row :where(.flat, .follow) {
  color: var(--operating-warning) !important;
}

html[data-theme="simple-light"] .app-shell .main :where(.status.error, .badge.error, .pill.error, .is-error),
html[data-theme="simple-light"] .app-shell .daily-mini-row :where(.bad, .alert) {
  color: var(--operating-danger) !important;
}

@media (min-width: 1181px) {
  html[data-theme="simple-light"] .app-shell:not(.hidden) {
    grid-template-columns: var(--operating-side-width) minmax(0, 1fr) !important;
    grid-template-rows: var(--operating-header-height) minmax(0, 1fr) !important;
    height: 100vh !important;
    overflow: hidden !important;
  }

  html[data-theme="simple-light"] .global-command-header {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    height: var(--operating-header-height) !important;
    min-height: var(--operating-header-height) !important;
    max-height: var(--operating-header-height) !important;
    display: grid !important;
    grid-template-columns: var(--operating-side-width) minmax(0, 1fr) !important;
    overflow: hidden !important;
  }

  html[data-theme="simple-light"] .global-command-header .brand {
    width: var(--operating-side-width) !important;
    height: var(--operating-header-height) !important;
    min-height: var(--operating-header-height) !important;
    max-height: var(--operating-header-height) !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    border: 0 !important;
    border-right: 1px solid #24463d !important;
    background: #102c25 !important;
    color: #f5fbf8 !important;
  }

  html[data-theme="simple-light"] .global-command-header .brand .mark {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
  }

  html[data-theme="simple-light"] .global-command-header .brand h1 {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 20px !important;
    line-height: 1.1 !important;
  }

  html[data-theme="simple-light"] .global-command-header .brand p {
    display: none !important;
  }

  html[data-theme="simple-light"] .global-command-header .topbar {
    width: 100% !important;
    height: var(--operating-header-height) !important;
    min-height: var(--operating-header-height) !important;
    max-height: var(--operating-header-height) !important;
    margin: 0 !important;
    padding: 0 16px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
    border: 0 !important;
    border-bottom: 1px solid #d9e1dd !important;
    background: #ffffff !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    overflow: hidden !important;
  }

  html[data-theme="simple-light"] .global-command-header .title-block {
    display: none !important;
  }

  html[data-theme="simple-light"] .global-command-header .top-actions {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: 40px !important;
    max-height: 40px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    grid-template-rows: 40px !important;
    align-items: center !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  html[data-theme="simple-light"] .global-command-header .sync-status-strip {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 40px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
  }

  html[data-theme="simple-light"] .global-command-header .sync-status-strip::before {
    display: none !important;
  }

  html[data-theme="simple-light"] .global-command-header .sync-status-strip::-webkit-scrollbar {
    display: none !important;
  }

  html[data-theme="simple-light"] .global-command-header .sync-status-strip .sync-store-count,
  html[data-theme="simple-light"] .global-command-header .sync-time-pill {
    width: auto !important;
    min-width: 96px !important;
    max-width: 128px !important;
    height: 36px !important;
    min-height: 36px !important;
    flex: 0 0 auto !important;
    padding: 4px 10px !important;
    display: inline-grid !important;
    align-content: center !important;
    border: 1px solid #d9e1dd !important;
    border-radius: var(--operating-control-radius) !important;
    background: #f6f8f7 !important;
    color: #17211d !important;
    box-shadow: none !important;
  }

  html[data-theme="simple-light"] .global-command-header .sync-time-pill small {
    color: #65716c !important;
    font-size: 10px !important;
    line-height: 1 !important;
  }

  html[data-theme="simple-light"] .global-command-header .sync-time-pill strong {
    color: #17211d !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
  }

  html[data-theme="simple-light"] .global-command-header #productSyncPill {
    border-color: var(--operating-border) !important;
    background: #f6f8f7 !important;
  }

  html[data-theme="simple-light"] .global-command-header .sync-time-pill.stale {
    border-color: #dfc391 !important;
    background: #fff9ed !important;
  }

  html[data-theme="simple-light"] .global-command-header .sync-time-pill.stale strong {
    color: var(--operating-warning) !important;
  }

  html[data-theme="simple-light"] .global-command-header :where(.action-buttons, .session-strip) {
    grid-row: 1 !important;
    height: 40px !important;
    min-width: 0 !important;
    max-width: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    overflow: visible !important;
  }

  html[data-theme="simple-light"] .global-command-header .action-buttons {
    grid-column: 2 !important;
  }

  html[data-theme="simple-light"] .global-command-header .session-strip {
    grid-column: 3 !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  html[data-theme="simple-light"] .global-command-header .action-buttons .top-link {
    display: none !important;
  }

  html[data-theme="simple-light"] .global-command-header :where(.action-buttons button, .session-strip button) {
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 12px !important;
    border: 1px solid #d9e1dd !important;
    border-radius: var(--operating-control-radius) !important;
    background: #ffffff !important;
    color: #25332d !important;
    box-shadow: none !important;
  }

  html[data-theme="simple-light"] .global-command-header .action-buttons #topReloadBtn {
    order: 2 !important;
    border-color: #11785b !important;
    background: #11785b !important;
    color: #ffffff !important;
  }

  html[data-theme="simple-light"] .global-command-header .action-buttons #shareBtn {
    order: 1 !important;
    border-color: var(--operating-border) !important;
    border-radius: var(--operating-control-radius) !important;
    background: #ffffff !important;
    color: var(--operating-text) !important;
  }

  html[data-theme="simple-light"] .global-command-header .session-strip span {
    min-width: 0 !important;
    max-width: 132px !important;
    height: 36px !important;
    padding: 5px 8px !important;
    display: grid !important;
    align-content: center !important;
    border: 1px solid #d9e1dd !important;
    border-radius: var(--operating-control-radius) !important;
    background: #f6f8f7 !important;
    color: #17211d !important;
  }

  html[data-theme="simple-light"] .global-command-header .session-strip small {
    display: none !important;
  }

  html[data-theme="simple-light"] .global-command-header .session-strip strong {
    color: #17211d !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
  }

  html[data-theme="simple-light"] .global-command-header .session-strip :where(
    .theme-toggle,
    #topChangePasswordBtn,
    #topLogoutBtn
  ) {
    border-color: var(--operating-border) !important;
    border-radius: var(--operating-control-radius) !important;
    background: #ffffff !important;
    color: var(--operating-text) !important;
  }

  html[data-theme="simple-light"] .app-shell .side {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: var(--operating-side-width) !important;
    height: calc(100vh - var(--operating-header-height)) !important;
    max-height: calc(100vh - var(--operating-header-height)) !important;
    padding: 16px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    border: 0 !important;
    border-right: 1px solid #24463d !important;
    background: #102c25 !important;
    color: #f5fbf8 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  html[data-theme="simple-light"] .app-shell .side-brief {
    flex: 0 0 auto !important;
    padding: 12px !important;
    border: 0 !important;
    border-radius: var(--operating-surface-radius) !important;
    background: #17362e !important;
    box-shadow: none !important;
  }

  html[data-theme="simple-light"] .app-shell .side-brief::before,
  html[data-theme="simple-light"] .app-shell .side-brief p {
    display: none !important;
  }

  html[data-theme="simple-light"] .app-shell .side-brief > span {
    color: #a9c3ba !important;
    font-size: 11px !important;
  }

  html[data-theme="simple-light"] .app-shell .side-brief > strong {
    display: block !important;
    margin: 4px 0 10px !important;
    color: #ffffff !important;
    font-size: 17px !important;
  }

  html[data-theme="simple-light"] .app-shell .system-rail {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-auto-rows: minmax(48px, auto) !important;
    align-content: start !important;
    gap: 2px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: thin !important;
  }

  html[data-theme="simple-light"] .app-shell .system-rail button {
    min-height: 48px !important;
    padding: 0 12px !important;
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    border: 0 !important;
    border-left: 3px solid transparent !important;
    border-radius: var(--operating-control-radius) !important;
    background: transparent !important;
    color: #c4d4ce !important;
    box-shadow: none !important;
  }

  html[data-theme="simple-light"] .app-shell .system-rail button b {
    width: 32px !important;
    height: 32px !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid #31564b !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #8fb5a8 !important;
  }

  html[data-theme="simple-light"] .app-shell .system-rail button span {
    color: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
  }

  html[data-theme="simple-light"] .app-shell .system-rail button small {
    color: #78998e !important;
    font-size: 10px !important;
  }

  html[data-theme="simple-light"] .app-shell .system-rail button:hover {
    background: #17362e !important;
    color: #ffffff !important;
  }

  html[data-theme="simple-light"] .app-shell .system-rail button.active {
    border-left: 3px solid #67c7a6 !important;
    background: #1b463a !important;
    color: #ffffff !important;
  }

  html[data-theme="simple-light"] .app-shell .system-rail button.active b {
    border-color: #67c7a6 !important;
    background: #245c4c !important;
    color: #c9f2e4 !important;
  }

  html[data-theme="simple-light"] .app-shell .side > :not(.side-brief, .system-rail) {
    display: none !important;
  }

  html[data-theme="simple-light"] .app-shell .system-rail .side-supply-nav {
    display: none !important;
  }

  html[data-theme="simple-light"] .app-shell .main {
    grid-column: 2 !important;
    grid-row: 2 !important;
    height: calc(100vh - var(--operating-header-height)) !important;
    max-height: calc(100vh - var(--operating-header-height)) !important;
  }
}

html[data-theme="simple-light"] .session-strip strong,
html[data-theme="simple-light"] .sync-time-pill :where(small, strong) {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html[data-theme="simple-light"] .global-command-header .sync-status-strip {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme="simple-light"] .global-command-header .sync-status-strip .sync-store-count {
  color: var(--operating-text) !important;
}

html[data-theme="simple-light"] .global-command-header .sync-time-pill small {
  color: var(--operating-muted) !important;
}

html[data-theme="simple-light"] .global-command-header .sync-time-pill strong {
  color: var(--operating-text) !important;
}

html[data-theme="simple-light"] .global-command-header #productSyncPill {
  border-color: var(--operating-border) !important;
  background: #f6f8f7 !important;
}

html[data-theme="simple-light"] .global-command-header .sync-time-pill.stale {
  border-color: #dfc391 !important;
  background: #fff9ed !important;
}

html[data-theme="simple-light"] .global-command-header .sync-time-pill.stale strong {
  color: var(--operating-warning) !important;
}

html[data-theme="simple-light"] .global-command-header .action-buttons #topReloadBtn {
  border-color: var(--operating-primary) !important;
  border-radius: var(--operating-control-radius) !important;
  background: var(--operating-primary) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

html[data-theme="simple-light"] .app-shell .main :where(p, td, .daily-mini-row span) {
  overflow-wrap: anywhere;
}

html[data-theme="simple-light"] .global-command-header .session-strip #topChangePasswordBtn,
html[data-theme="simple-light"] .global-command-header .session-strip #topLogoutBtn {
  border-color: var(--operating-border) !important;
  border-radius: var(--operating-control-radius) !important;
  background: #ffffff !important;
  color: var(--operating-text) !important;
  box-shadow: none !important;
}

html[data-theme="simple-light"] :where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--operating-primary) 38%, transparent) !important;
  outline-offset: 2px !important;
}

@media (min-width: 1181px) and (max-width: 1440px) {
  html[data-theme="simple-light"] .global-command-header .sync-status-strip {
    gap: 4px !important;
  }

  html[data-theme="simple-light"] .global-command-header .sync-time-pill {
    flex-basis: 96px !important;
    width: 96px !important;
  }

  html[data-theme="simple-light"] .global-command-header .session-strip span:nth-child(2),
  html[data-theme="simple-light"] .global-command-header .session-strip #topChangePasswordBtn {
    display: none !important;
  }

  html[data-theme="simple-light"] .app-shell .main {
    padding: 20px !important;
  }

  html[data-theme="simple-light"] .app-shell .cockpit-cycle {
    min-width: 460px !important;
    grid-template-columns: repeat(6, minmax(64px, 1fr)) !important;
  }
}

@media (max-width: 1180px) {
  html[data-theme="simple-light"] body:has(.app-shell:not(.hidden)) {
    overflow: auto !important;
  }

  html[data-theme="simple-light"] .app-shell:not(.hidden) {
    width: 100% !important;
    min-height: 100vh !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto 1fr !important;
    overflow: visible !important;
  }

  html[data-theme="simple-light"] .global-command-header {
    grid-column: 1 !important;
    grid-row: 1 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 80 !important;
    width: 100% !important;
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) !important;
    gap: 0 !important;
    border: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  html[data-theme="simple-light"] .global-command-header .brand {
    width: 220px !important;
    height: 72px !important;
    min-height: 72px !important;
    padding: 0 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border: 0 !important;
    border-right: 1px solid #24463d !important;
    background: #102c25 !important;
  }

  html[data-theme="simple-light"] .global-command-header .brand .mark {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
  }

  html[data-theme="simple-light"] .global-command-header .brand h1 {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 18px !important;
  }

  html[data-theme="simple-light"] .global-command-header .brand p,
  html[data-theme="simple-light"] .global-command-header .title-block {
    display: none !important;
  }

  html[data-theme="simple-light"] .global-command-header .topbar {
    width: 100% !important;
    height: 72px !important;
    min-height: 72px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    border: 0 !important;
    border-bottom: 1px solid var(--operating-border) !important;
    background: #ffffff !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  html[data-theme="simple-light"] .global-command-header .top-actions {
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    grid-template-rows: 40px !important;
    align-items: center !important;
    gap: 6px !important;
    overflow: visible !important;
  }

  html[data-theme="simple-light"] .global-command-header .sync-status-strip {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 40px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
  }

  html[data-theme="simple-light"] .global-command-header .sync-status-strip::before,
  html[data-theme="simple-light"] .global-command-header .sync-status-strip::-webkit-scrollbar {
    display: none !important;
  }

  html[data-theme="simple-light"] .global-command-header .sync-status-strip .sync-store-count,
  html[data-theme="simple-light"] .global-command-header .sync-time-pill {
    width: auto !important;
    min-width: 92px !important;
    max-width: 112px !important;
    height: 36px !important;
    min-height: 36px !important;
    flex: 0 0 auto !important;
    padding: 4px 8px !important;
    display: inline-grid !important;
    align-content: center !important;
    border: 1px solid var(--operating-border) !important;
    border-radius: var(--operating-control-radius) !important;
    background: #f6f8f7 !important;
    color: var(--operating-text) !important;
  }

  html[data-theme="simple-light"] .global-command-header :where(.action-buttons, .session-strip) {
    grid-row: 1 !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
  }

  html[data-theme="simple-light"] .global-command-header .action-buttons {
    grid-column: 2 !important;
  }

  html[data-theme="simple-light"] .global-command-header .session-strip {
    grid-column: 3 !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  html[data-theme="simple-light"] .global-command-header .action-buttons :where(.top-link, #shareBtn),
  html[data-theme="simple-light"] .global-command-header .session-strip span,
  html[data-theme="simple-light"] .global-command-header .session-strip #topChangePasswordBtn {
    display: none !important;
  }

  html[data-theme="simple-light"] .global-command-header :where(
    #topReloadBtn,
    .theme-toggle,
    #topLogoutBtn
  ) {
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 10px !important;
    border-radius: var(--operating-control-radius) !important;
    font-size: 12px !important;
  }

  html[data-theme="simple-light"] .app-shell .side {
    grid-column: 1 !important;
    grid-row: 2 !important;
    position: sticky !important;
    top: 72px !important;
    z-index: 70 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    padding: 6px 12px !important;
    display: block !important;
    border: 0 !important;
    border-bottom: 1px solid #24463d !important;
    background: #102c25 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  html[data-theme="simple-light"] .app-shell .side > :not(.system-rail) {
    display: none !important;
  }

  html[data-theme="simple-light"] .app-shell .system-rail {
    width: 100% !important;
    height: 48px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
  }

  html[data-theme="simple-light"] .app-shell .system-rail::-webkit-scrollbar,
  html[data-theme="simple-light"] .app-shell .system-rail .side-supply-nav {
    display: none !important;
  }

  html[data-theme="simple-light"] .app-shell .system-rail > button {
    width: auto !important;
    min-width: 128px !important;
    height: 48px !important;
    min-height: 48px !important;
    flex: 0 0 auto !important;
    padding: 0 10px !important;
    display: grid !important;
    grid-template-columns: 30px auto !important;
    align-items: center !important;
    gap: 8px !important;
    border: 0 !important;
    border-bottom: 3px solid transparent !important;
    border-left: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #c4d4ce !important;
  }

  html[data-theme="simple-light"] .app-shell .system-rail > button small {
    display: none !important;
  }

  html[data-theme="simple-light"] .app-shell .system-rail > button.active {
    border-bottom-color: #67c7a6 !important;
    border-left: 0 !important;
    background: #1b463a !important;
    color: #ffffff !important;
  }

  html[data-theme="simple-light"] .app-shell .main {
    grid-column: 1 !important;
    grid-row: 3 !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    padding: 20px !important;
    overflow: visible !important;
  }

  html[data-theme="simple-light"] .app-shell .cockpit-hero {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  html[data-theme="simple-light"] .app-shell .cockpit-cycle {
    width: 100% !important;
    min-width: 0 !important;
  }

  html[data-theme="simple-light"] .app-shell .cockpit-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 420px) {
  html[data-theme="simple-light"] .app-shell:not(.hidden) {
    min-height: 100svh !important;
  }

  html[data-theme="simple-light"] .global-command-header {
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 52px 88px !important;
    overflow: visible !important;
  }

  html[data-theme="simple-light"] .global-command-header .brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 12px !important;
    border-right: 0 !important;
    border-bottom: 1px solid #24463d !important;
  }

  html[data-theme="simple-light"] .global-command-header .brand .mark {
    width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
  }

  html[data-theme="simple-light"] .global-command-header .topbar {
    grid-column: 1 !important;
    grid-row: 2 !important;
    height: 88px !important;
    min-height: 88px !important;
    max-height: 88px !important;
    padding: 6px 10px !important;
    overflow: hidden !important;
  }

  html[data-theme="simple-light"] .global-command-header .top-actions {
    height: 76px !important;
    max-height: 76px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: 36px 36px !important;
    gap: 4px 6px !important;
  }

  html[data-theme="simple-light"] .global-command-header .sync-status-strip {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    height: 36px !important;
  }

  html[data-theme="simple-light"] .global-command-header .sync-status-strip .sync-store-count,
  html[data-theme="simple-light"] .global-command-header .sync-time-pill {
    height: 34px !important;
    min-height: 34px !important;
    min-width: 88px !important;
  }

  html[data-theme="simple-light"] .global-command-header .action-buttons {
    grid-column: 1 !important;
    grid-row: 2 !important;
    height: 36px !important;
  }

  html[data-theme="simple-light"] .global-command-header .session-strip {
    grid-column: 2 !important;
    grid-row: 2 !important;
    height: 36px !important;
  }

  html[data-theme="simple-light"] .global-command-header .theme-toggle {
    max-width: 86px !important;
  }

  html[data-theme="simple-light"] .app-shell .side {
    position: sticky !important;
    top: 0 !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    padding: 4px 8px !important;
  }

  html[data-theme="simple-light"] .app-shell .system-rail,
  html[data-theme="simple-light"] .app-shell .system-rail > button {
    height: 48px !important;
  }

  html[data-theme="simple-light"] .app-shell .system-rail > button {
    min-width: 112px !important;
  }

  html[data-theme="simple-light"] .app-shell .main {
    padding: 12px !important;
  }

  html[data-theme="simple-light"] .app-shell .command-cockpit {
    gap: 10px !important;
  }

  html[data-theme="simple-light"] .app-shell .cockpit-hero,
  html[data-theme="simple-light"] .app-shell .operation-daily-board {
    padding: 16px !important;
  }

  html[data-theme="simple-light"] .app-shell .cockpit-hero h3 {
    font-size: 22px !important;
  }

  html[data-theme="simple-light"] .app-shell .cockpit-cycle {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  html[data-theme="simple-light"] .app-shell .cockpit-cycle::-webkit-scrollbar {
    display: none !important;
  }

  html[data-theme="simple-light"] .app-shell .cockpit-cycle span {
    min-width: 76px !important;
    flex: 0 0 auto !important;
  }

  html[data-theme="simple-light"] .cockpit-kpis,
  html[data-theme="simple-light"] .daily-board-grid {
    grid-template-columns: 1fr !important;
  }

  html[data-theme="simple-light"] .app-shell .operation-daily-board > header {
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  html[data-theme="simple-light"] .daily-export-actions {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }

  html[data-theme="simple-light"] .app-shell .daily-export-actions button {
    width: 100% !important;
    padding: 0 8px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="simple-light"] .app-shell *,
  html[data-theme="simple-light"] .app-shell *::before,
  html[data-theme="simple-light"] .app-shell *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
