@font-face {
  font-family: "Satoshi";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("satoshi-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Satoshi";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("satoshi-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Satoshi";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("satoshi-700-normal.woff2") format("woff2");
}

/*
 * MSJD global UI system v2.
 * Presentation-only layer loaded after every feature stylesheet.
 * Existing DOM identities, state, data contracts, and business actions remain intact.
 */

body.ui-system-v2 {
  --ui2-canvas: #f3f4ef;
  --ui2-canvas-deep: #e9ede7;
  --ui2-surface: #fffefa;
  --ui2-surface-raised: #ffffff;
  --ui2-surface-soft: #f7f8f3;
  --ui2-surface-tint: #edf4ef;
  --ui2-ink: #11211d;
  --ui2-ink-soft: #30413b;
  --ui2-muted: #68766f;
  --ui2-faint: #8c9892;
  --ui2-line: #d5ddd7;
  --ui2-line-soft: #e6ebe7;
  --ui2-accent: #147a68;
  --ui2-accent-strong: #0b5a4e;
  --ui2-accent-soft: #dcece6;
  --ui2-sidebar: #0c1916;
  --ui2-sidebar-soft: #14241f;
  --ui2-brass: #c99b3d;
  --ui2-danger: #c43d38;
  --ui2-success: #16794c;
  --ui2-warning: #a86518;
  --ui2-radius-xl: 18px;
  --ui2-radius-lg: 14px;
  --ui2-radius-md: 10px;
  --ui2-radius-sm: 7px;
  --ui2-shadow: 0 20px 55px rgba(17, 36, 30, 0.09);
  --ui2-shadow-soft: 0 8px 24px rgba(17, 36, 30, 0.055);
  --bg: var(--ui2-canvas);
  --surface: var(--ui2-surface);
  --surface-soft: var(--ui2-surface-soft);
  --surface-tint: var(--ui2-surface-tint);
  --ink: var(--ui2-ink);
  --muted: var(--ui2-muted);
  --line: var(--ui2-line);
  --line-soft: var(--ui2-line-soft);
  --accent: var(--ui2-accent);
  --accent-strong: var(--ui2-accent-strong);
  --radius-card: var(--ui2-radius-lg);
  --radius-control: var(--ui2-radius-sm);
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ui2-ink);
  background: var(--ui2-canvas);
  font-family: "Satoshi", "Outfit", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.ui-system-v2 *,
body.ui-system-v2 *::before,
body.ui-system-v2 *::after {
  box-sizing: border-box;
}

body.ui-system-v2 ::selection {
  color: #ffffff;
  background: var(--ui2-accent);
}

body.ui-system-v2 :is(button, input, select, textarea) {
  font: inherit;
}

body.ui-system-v2 :is(button, [role="button"], a, input, select, textarea, summary):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ui2-accent) 34%, transparent);
  outline-offset: 2px;
}

body.ui-system-v2 .skip-link {
  top: 12px;
  left: 14px;
  z-index: 400;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--ui2-radius-sm);
  padding: 10px 14px;
  color: #ffffff;
  background: var(--ui2-sidebar);
  box-shadow: var(--ui2-shadow);
  font-weight: 700;
}

/* Authentication */
body.ui-system-v2 .auth-screen {
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 22%, rgba(41, 133, 107, 0.2), transparent 34%),
    linear-gradient(118deg, rgba(9, 26, 21, 0.98) 0 44%, rgba(9, 26, 21, 0.83) 44.2% 52%, transparent 52.2%),
    linear-gradient(145deg, #dbe8df, #f3f4ee 58%, #e4e9e3);
}

body.ui-system-v2 .auth-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

body.ui-system-v2 .login-card {
  width: min(92vw, 430px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 255, 252, 0.95);
  box-shadow: 0 38px 110px rgba(6, 24, 18, 0.24);
  backdrop-filter: blur(22px) saturate(125%);
}

body.ui-system-v2 .login-card .login-brand {
  margin-bottom: 22px;
}

body.ui-system-v2 .login-card :is(input, button) {
  min-height: 48px;
  border-radius: var(--ui2-radius-md);
}

body.ui-system-v2 .login-card > button {
  border-color: var(--ui2-accent-strong);
  color: #ffffff;
  background: var(--ui2-accent-strong);
  box-shadow: 0 10px 22px rgba(11, 90, 78, 0.18);
}

/* Artistic asymmetric application shell */
body.ui-system-v2 .shell,
body.ui-system-v2 .shell.sidebar-collapsed {
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100dvh;
  height: 100dvh;
  background: var(--ui2-canvas);
}

body.ui-system-v2 .sidebar {
  position: relative;
  isolation: isolate;
  gap: 12px;
  overflow: hidden;
  padding: 18px 14px 14px;
  border: 0;
  background:
    radial-gradient(circle at 100% 0, rgba(46, 150, 122, 0.18), transparent 30%),
    linear-gradient(180deg, var(--ui2-sidebar-soft), var(--ui2-sidebar) 42%);
  box-shadow: 16px 0 42px rgba(7, 23, 18, 0.13);
}

body.ui-system-v2 .sidebar::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -150px;
  right: -176px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(111, 213, 182, 0.13);
  border-radius: 38% 62% 52% 48%;
  background: linear-gradient(145deg, rgba(36, 143, 116, 0.2), transparent 64%);
  transform: rotate(17deg);
}

body.ui-system-v2 .sidebar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 72%;
  background: linear-gradient(transparent, rgba(106, 203, 176, 0.2), transparent);
}

body.ui-system-v2 .sidebar .brand {
  min-height: 66px;
  gap: 11px;
  margin: 0 2px;
  padding: 1px 6px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

body.ui-system-v2 .sidebar .brand-logo {
  width: 45px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 11px 26px rgba(0, 0, 0, 0.28);
}

body.ui-system-v2 .sidebar .brand strong {
  color: #f7faf8;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

body.ui-system-v2 .sidebar .brand small {
  color: #8fa29a;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

body.ui-system-v2 .sidebar nav {
  gap: 2px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1px 2px 8px;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
  scrollbar-width: thin;
}

body.ui-system-v2 .sidebar nav::-webkit-scrollbar {
  width: 5px;
}

body.ui-system-v2 .sidebar nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

body.ui-system-v2 .nav-group-label {
  margin: 14px 11px 5px;
  color: #6f837b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

body.ui-system-v2 .sidebar .nav {
  position: relative;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: var(--ui2-radius-sm);
  padding: 9px 11px 9px 28px;
  overflow: hidden;
  color: #b9c6c1;
  background: transparent;
  box-shadow: none;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-align: left;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

body.ui-system-v2 .sidebar .nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 12px;
  width: 6px;
  height: 6px;
  border: 1px solid #63776f;
  border-radius: 50%;
  background: transparent;
  transform: translateY(-50%);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.ui-system-v2 .sidebar .nav:hover {
  border-color: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.055);
  transform: translateX(2px);
}

body.ui-system-v2 .sidebar .nav.active,
body.ui-system-v2 .sidebar .nav[aria-current="page"] {
  border-color: rgba(111, 213, 182, 0.2);
  color: #ffffff;
  background: linear-gradient(90deg, rgba(31, 135, 111, 0.58), rgba(31, 135, 111, 0.18));
  box-shadow: inset 3px 0 0 #69d0b3;
  font-weight: 700;
}

body.ui-system-v2 .sidebar .nav.active::before,
body.ui-system-v2 .sidebar .nav[aria-current="page"]::before {
  border-color: #7ddbc1;
  background: #7ddbc1;
  box-shadow: 0 0 0 4px rgba(125, 219, 193, 0.1);
  transform: translateY(-50%) scale(1.04);
}

body.ui-system-v2 .sidebar-toggle {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ui2-radius-sm);
  color: #aabbb4;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

body.ui-system-v2 .sidebar-toggle:hover {
  border-color: rgba(125, 219, 193, 0.24);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.075);
}

body.ui-system-v2 .shell.sidebar-collapsed {
  grid-template-columns: 76px minmax(0, 1fr);
}

body.ui-system-v2 .shell.sidebar-collapsed .sidebar {
  padding-inline: 10px;
}

body.ui-system-v2 .shell.sidebar-collapsed .sidebar .nav {
  min-width: 44px;
  padding-inline: 10px;
}

body.ui-system-v2 .shell.sidebar-collapsed .sidebar .nav::before,
body.ui-system-v2 .shell.sidebar-collapsed .nav-group-label {
  display: none;
}

/* Workspace and compact attention header */
body.ui-system-v2 .main {
  min-width: 0;
  padding: 0 24px 42px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(49, 130, 105, 0.07), transparent 28%),
    radial-gradient(circle at 12% 88%, rgba(197, 155, 64, 0.055), transparent 30%),
    var(--ui2-canvas);
  scrollbar-color: #b9c5bf transparent;
  scrollbar-width: thin;
}

body.ui-system-v2 .topbar {
  position: sticky;
  top: 10px;
  z-index: 38;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  min-height: 76px;
  margin: 10px 0 18px;
  padding: 13px 16px 12px 18px;
  align-items: center;
  border: 1px solid rgba(205, 216, 210, 0.9);
  border-radius: var(--ui2-radius-xl);
  background: rgba(255, 255, 252, 0.9);
  box-shadow: 0 13px 34px rgba(19, 39, 32, 0.07);
  backdrop-filter: blur(20px) saturate(128%);
}

body.ui-system-v2 .topbar::before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: -1px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(var(--ui2-accent), color-mix(in srgb, var(--ui2-accent) 28%, transparent));
}

body.ui-system-v2 .topbar > div:first-child {
  min-width: 0;
  max-width: 72rem;
  padding-left: 2px;
}

body.ui-system-v2 #view-title,
body.ui-system-v2 #view-title.ui-title-max-w-6xl {
  display: inline-flex;
  max-width: 72rem;
  align-items: center;
  gap: 10px;
  margin: 0;
  overflow-wrap: normal;
  color: var(--ui2-ink);
  font-size: clamp(24px, 1.9vw, 31px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
  white-space: normal;
}

body.ui-system-v2 #view-title::after {
  content: "";
  flex: 0 0 auto;
  width: 34px;
  height: 24px;
  border: 1px solid rgba(17, 86, 73, 0.18);
  border-radius: 6px;
  background: url("/assets/logo.jpg") center / cover no-repeat;
  box-shadow: 0 6px 15px rgba(17, 45, 36, 0.12);
  opacity: 0.9;
  transform: translateY(1px) rotate(-2deg);
}

body.ui-system-v2 .topbar p {
  max-width: 72ch;
  margin: 5px 0 0;
  color: var(--ui2-muted);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

body.ui-system-v2 .topbar .actions {
  display: flex;
  gap: 7px;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
}

body.ui-system-v2 .topbar-date {
  color: var(--ui2-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body.ui-system-v2 :is(.pill, .refresh-status) {
  min-height: 36px;
  border: 1px solid var(--ui2-line);
  border-radius: 999px;
  color: var(--ui2-ink-soft);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: none;
  font-size: 11px;
}

body.ui-system-v2 #health-pill {
  position: relative;
  padding-left: 26px;
}

body.ui-system-v2 #health-pill::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2d9275;
  box-shadow: 0 0 0 4px rgba(45, 146, 117, 0.1);
  transform: translateY(-50%);
}

body.ui-system-v2 :is(.icon-button, .secondary-button, .table-action, .collapse-toggle, form button, .date-presets button, .metric-toggle) {
  min-height: 38px;
  border: 1px solid var(--ui2-line);
  border-radius: var(--ui2-radius-sm);
  color: var(--ui2-ink-soft);
  background: var(--ui2-surface-raised);
  box-shadow: none;
  font-weight: 700;
  transition: border-color 170ms ease, color 170ms ease, background-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

body.ui-system-v2 :is(.icon-button, .secondary-button, .table-action, .collapse-toggle, form button, .date-presets button, .metric-toggle):hover:not(:disabled) {
  border-color: #9fb8ae;
  color: var(--ui2-accent-strong);
  background: var(--ui2-surface-soft);
  box-shadow: 0 7px 16px rgba(17, 45, 36, 0.07);
  transform: translateY(-1px);
}

body.ui-system-v2 :is(.icon-button, .secondary-button, .table-action, .collapse-toggle, form button, .date-presets button, .metric-toggle):active:not(:disabled) {
  box-shadow: none;
  transform: translateY(0);
}

/* Dense chapter rhythm */
body.ui-system-v2 .view.active,
body.ui-system-v2 .main.view-switching .view.active {
  display: grid;
  grid-auto-flow: dense;
  gap: 16px;
  width: min(100%, 1840px);
  min-width: 0;
  margin-inline: auto;
  align-content: start;
}

body.ui-system-v2 .view.active > * {
  min-width: 0;
  max-width: 100%;
  grid-column: 1 / -1;
}

body.ui-system-v2 :is(
  .operation-modules,
  .filter-grid,
  .form-grid,
  .detail-grid,
  .workflow-category-grid,
  .ai-center-metrics,
  .ai-center-split,
  .sgb-auto-grid,
  .sgb-auto-metrics,
  .sdo-filter-grid,
  .tdm-summary-grid,
  .tdm-filter-grid
) {
  grid-auto-flow: dense;
}

body.ui-system-v2 :is(.panel, .task-hub-chapter, .store-analysis-section, .operation-ui-section) {
  min-width: 0;
  border: 1px solid var(--ui2-line);
  border-radius: var(--ui2-radius-lg);
  background: var(--ui2-surface);
  box-shadow: var(--ui2-shadow-soft);
}

body.ui-system-v2 .panel {
  padding: 17px;
}

body.ui-system-v2 .panel > .panel-title:first-child {
  min-height: 50px;
  margin: -17px -17px 15px;
  padding: 11px 16px;
  align-items: center;
  border-bottom: 1px solid var(--ui2-line-soft);
  border-radius: var(--ui2-radius-lg) var(--ui2-radius-lg) 0 0;
  background: linear-gradient(100deg, var(--ui2-surface-tint), rgba(251, 252, 248, 0.68) 68%);
}

body.ui-system-v2 .panel > .panel-title:first-child :is(h2, h3) {
  position: relative;
  padding-left: 13px;
  color: var(--ui2-ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.3;
}

body.ui-system-v2 .panel > .panel-title:first-child :is(h2, h3)::before {
  content: "";
  position: absolute;
  top: 0.15em;
  bottom: 0.15em;
  left: 0;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(var(--ui2-accent), #59ad94);
}

body.ui-system-v2 :is(.panel-title span, .panel-title p, .muted, small) {
  color: var(--ui2-muted);
}

body.ui-system-v2 :is(.panel-title span, .panel-title p) {
  font-size: 11.5px;
  line-height: 1.45;
}

/* Gapless bento metrics */
body.ui-system-v2 :is(.module-command-strip, .op-command-strip, .marketing-command-strip) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
  grid-auto-flow: dense;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ui2-line);
  border-radius: var(--ui2-radius-lg);
  background: var(--ui2-line-soft);
  box-shadow: var(--ui2-shadow-soft);
}

body.ui-system-v2 :is(.module-command-card, .op-command-card, .marketing-command-card) {
  min-width: 0;
  min-height: 92px;
  border: 0;
  border-radius: 0;
  padding: 14px 15px;
  color: var(--ui2-ink-soft);
  background: var(--ui2-surface);
  box-shadow: none;
  transform: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

body.ui-system-v2 :is(.module-command-card, .op-command-card, .marketing-command-card):nth-child(even) {
  background: var(--ui2-surface-soft);
}

body.ui-system-v2 :is(.module-command-card, .op-command-card, .marketing-command-card):hover {
  color: var(--ui2-accent-strong);
  background: var(--ui2-accent-soft);
  transform: translateY(-1px);
}

body.ui-system-v2 :is(.module-command-card, .op-command-card, .marketing-command-card) strong {
  color: var(--ui2-ink);
  font-size: clamp(18px, 1.55vw, 23px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
}

body.ui-system-v2 :is(.module-command-card, .op-command-card, .marketing-command-card) :is(span, p) {
  color: var(--ui2-muted);
  font-size: 11px;
  line-height: 1.42;
}

body.ui-system-v2 :is(.metrics, .live-metrics, .marketing-summary-row) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  grid-auto-flow: dense;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ui2-line);
  border-radius: var(--ui2-radius-lg);
  background: var(--ui2-line-soft);
  box-shadow: var(--ui2-shadow-soft);
}

body.ui-system-v2 :is(.metrics, .live-metrics, .marketing-summary-row)[data-ui2-count="4"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.ui-system-v2 :is(.metrics, .live-metrics, .marketing-summary-row)[data-ui2-count="3"] {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

body.ui-system-v2 :is(.metrics, .live-metrics, .marketing-summary-row)[data-ui2-count="3"] > :first-child {
  grid-column: span 6;
}

body.ui-system-v2 :is(.metrics, .live-metrics, .marketing-summary-row)[data-ui2-count="3"] > :not(:first-child) {
  grid-column: span 3;
}

body.ui-system-v2 :is(.metrics, .live-metrics, .marketing-summary-row)[data-ui2-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.ui-system-v2 :is(.metric, .live-metric, .marketing-summary-card) {
  min-width: 0;
  min-height: 88px;
  border: 0;
  border-radius: 0;
  padding: 13px 15px;
  background: var(--ui2-surface);
  box-shadow: none;
}

body.ui-system-v2 :is(.metric, .live-metric, .marketing-summary-card):nth-child(even) {
  background: var(--ui2-surface-soft);
}

body.ui-system-v2 :is(.metric, .live-metric, .marketing-summary-card) strong {
  color: var(--ui2-ink);
  font-size: clamp(19px, 1.8vw, 25px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

/* Horizontal accordion architecture for every page tab row */
body.ui-system-v2 :is(
  .module-subnav,
  .product-center-subnav,
  .product-image-helper-subnav,
  .task-perspective-tabs,
  .task-personal-tabs,
  .database-subnav,
  .marketing-subnav,
  .operation-ui-tabs,
  [role="tablist"]
) {
  display: flex;
  gap: 3px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid var(--ui2-line);
  border-radius: var(--ui2-radius-md);
  background: #e9eeea;
  scrollbar-width: none;
}

body.ui-system-v2 :is(
  .module-subnav,
  .product-center-subnav,
  .product-image-helper-subnav,
  .task-perspective-tabs,
  .task-personal-tabs,
  .database-subnav,
  .marketing-subnav,
  .operation-ui-tabs,
  [role="tablist"]
)::-webkit-scrollbar {
  display: none;
}

body.ui-system-v2 :is(
  .module-subnav,
  .product-center-subnav,
  .product-image-helper-subnav,
  .task-perspective-tabs,
  .task-personal-tabs,
  .database-subnav,
  .marketing-subnav,
  .operation-ui-tabs,
  [role="tablist"]
) > button {
  flex: 1 1 128px;
  min-width: max-content;
  min-height: 38px;
  border: 0;
  border-radius: var(--ui2-radius-sm);
  padding-inline: 14px;
  color: var(--ui2-muted);
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  transition: flex-grow 300ms cubic-bezier(0.22, 1, 0.36, 1), color 170ms ease, background-color 170ms ease, box-shadow 170ms ease;
}

body.ui-system-v2 :is(
  .module-subnav,
  .product-center-subnav,
  .product-image-helper-subnav,
  .task-perspective-tabs,
  .task-personal-tabs,
  .database-subnav,
  .marketing-subnav,
  .operation-ui-tabs,
  [role="tablist"]
) > button:hover {
  flex-grow: 1.15;
  color: var(--ui2-accent-strong);
  background: rgba(255, 255, 255, 0.55);
}

body.ui-system-v2 :is(
  .module-subnav,
  .product-center-subnav,
  .product-image-helper-subnav,
  .task-perspective-tabs,
  .task-personal-tabs,
  .database-subnav,
  .marketing-subnav,
  .operation-ui-tabs,
  [role="tablist"]
) > button.active,
body.ui-system-v2 :is(
  .module-subnav,
  .product-center-subnav,
  .product-image-helper-subnav,
  .task-perspective-tabs,
  .task-personal-tabs,
  .database-subnav,
  .marketing-subnav,
  .operation-ui-tabs,
  [role="tablist"]
) > button[aria-selected="true"] {
  color: var(--ui2-accent-strong);
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(19, 45, 37, 0.09);
}

/* Forms and controls */
body.ui-system-v2 :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border-color: #cbd5cf;
  border-radius: var(--ui2-radius-sm);
  color: var(--ui2-ink);
  background: var(--ui2-surface-raised);
  box-shadow: inset 0 1px 0 rgba(19, 36, 30, 0.025);
}

body.ui-system-v2 :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):hover:not(:disabled) {
  border-color: #adbbb4;
}

body.ui-system-v2 :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus {
  border-color: var(--ui2-accent);
  box-shadow: 0 0 0 3px rgba(20, 122, 104, 0.1);
}

body.ui-system-v2 :is(button, input, select, textarea):disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

body.ui-system-v2 :is(.primary-button, form button[type="submit"], form button:not([type]):not(.secondary-button)) {
  color: #ffffff;
  background-color: var(--ui2-accent);
}

body.ui-system-v2 :is(.primary-button, form button[type="submit"], form button:not([type]):not(.secondary-button)):hover:not(:disabled) {
  color: #ffffff;
  background-color: var(--ui2-accent-strong);
}

body.ui-system-v2 :is(.danger, .danger-button, button[data-tone="danger"]) {
  border-color: var(--ui2-danger);
  color: #ffffff;
  background: var(--ui2-danger);
}

/* Data tables */
body.ui-system-v2 .table,
body.ui-system-v2 :is(.sdo-table-wrap, .tdm-table-scroll) {
  position: relative;
  max-width: 100%;
  overscroll-behavior: contain;
  scrollbar-color: #aab8b1 #edf1ee;
  scrollbar-width: thin;
}

body.ui-system-v2 .table.ui-wide-data-table,
body.ui-system-v2 .ui2-scroll-surface {
  overflow: auto;
  border: 1px solid var(--ui2-line);
  border-radius: var(--ui2-radius-md);
  background: var(--ui2-surface-raised);
  scrollbar-gutter: stable;
}

body.ui-system-v2 .ui2-scroll-surface.ui2-is-scrollable {
  box-shadow: inset -18px 0 18px -20px rgba(14, 41, 32, 0.52);
}

body.ui-system-v2 table {
  color: var(--ui2-ink-soft);
  font-variant-numeric: tabular-nums;
}

body.ui-system-v2 table thead th {
  color: #405049;
  background: #eef3ef;
  font-weight: 700;
}

body.ui-system-v2 table tbody tr:nth-child(even) td {
  background-color: color-mix(in srgb, var(--ui2-surface-soft) 72%, transparent);
}

body.ui-system-v2 table tbody tr:hover td {
  background-color: #edf5f0;
}

body.ui-system-v2 .site-footer {
  padding: 20px 12px 0;
  color: var(--ui2-faint);
  font-size: 11px;
  text-align: center;
}

body.ui-system-v2 .site-footer a {
  color: inherit;
}

/* Newer module normalization */
body.ui-system-v2 #operation-view > :is(.panel, .op-command-strip, .operation-modules, [class*="period-"], [class*="subsidy-"]) {
  grid-column: 1 / -1;
  min-width: 0;
  max-width: 100%;
  writing-mode: horizontal-tb;
}

body.ui-system-v2 #operation-view.operation-ui-v1 > .operation-ui-hero {
  display: none;
}

body.ui-system-v2 #aiCenter-view .ai-center-shell {
  gap: 16px;
  max-width: 1840px;
}

body.ui-system-v2 #aiCenter-view :is(.ai-center-command, .ai-center-section, .ai-center-boundary) {
  border-color: var(--ui2-line);
  border-radius: var(--ui2-radius-lg);
  background: var(--ui2-surface);
  box-shadow: var(--ui2-shadow-soft);
}

body.ui-system-v2 #aiCenter-view .ai-center-command {
  border-left: 0;
  padding: 19px 21px;
  background:
    linear-gradient(92deg, rgba(220, 236, 230, 0.72), rgba(255, 254, 250, 0.94) 44%),
    var(--ui2-surface);
}

body.ui-system-v2 #aiCenter-view .ai-center-command::before {
  content: "";
  align-self: stretch;
  width: 3px;
  border-radius: 3px;
  background: var(--ui2-accent);
}

body.ui-system-v2 #aiCenter-view .ai-center-command > div:first-of-type {
  margin-right: auto;
}

body.ui-system-v2 #aiCenter-view .ai-center-metrics {
  grid-auto-flow: dense;
  border-color: var(--ui2-line);
  border-radius: var(--ui2-radius-md);
  background: var(--ui2-line-soft);
}

body.ui-system-v2 #automationTasks-view .sgb-hero {
  display: none;
}

body.ui-system-v2 #automationTasks-view :is(.sgb-module-switch, .sgb-auto-grid, .sgb-auto-run-meta, .sgb-auto-metrics) {
  grid-auto-flow: dense;
}

body.ui-system-v2 #automationTasks-view .sgb-module-switch > button {
  border-color: var(--ui2-line);
  border-radius: var(--ui2-radius-md);
  color: var(--ui2-ink-soft);
  background: var(--ui2-surface-soft);
  box-shadow: none;
}

body.ui-system-v2 #automationTasks-view .sgb-module-switch > button.active {
  border-color: #79a99d;
  color: var(--ui2-accent-strong);
  background: #ffffff;
  box-shadow: inset 0 -3px 0 var(--ui2-accent);
}

body.ui-system-v2 #storeDataOverview-view .sdo-shell {
  max-width: 100%;
  border-color: var(--ui2-line);
  border-radius: var(--ui2-radius-lg);
  background: var(--ui2-surface);
  box-shadow: var(--ui2-shadow-soft);
}

body.ui-system-v2 #storeDataOverview-view .sdo-toolbar {
  padding: 18px 20px 16px;
  background: linear-gradient(110deg, var(--ui2-surface-tint), var(--ui2-surface) 44%);
}

body.ui-system-v2 #storeDataOverview-view .sdo-summary {
  border-color: var(--ui2-line-soft);
  background: var(--ui2-surface-soft);
}

body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-shell {
  gap: 16px;
}

body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-command {
  min-height: 152px;
  border-color: #18352d;
  border-radius: var(--ui2-radius-xl);
  padding: 26px 28px;
  background:
    radial-gradient(circle at 90% 10%, rgba(87, 176, 144, 0.16), transparent 28%),
    #102a22;
  box-shadow: 0 20px 46px rgba(12, 42, 32, 0.16);
}

body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-command::after {
  color: rgba(255, 255, 255, 0.045);
}

body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-kicker {
  color: #9dd3bd;
}

body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-command h2 {
  max-width: 72rem;
  color: #ffffff;
  font-size: clamp(26px, 2.7vw, 39px);
  text-wrap: balance;
}

body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--ui2-line);
  border-radius: var(--ui2-radius-lg);
  background: var(--ui2-line-soft);
  box-shadow: var(--ui2-shadow-soft);
}

body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-summary-card {
  border: 0;
  border-radius: 0;
  padding: 16px 17px;
  background: var(--ui2-surface);
}

body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-summary-card.base,
body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-summary-card.advanced {
  border-top: 3px solid transparent;
}

body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-summary-card.base {
  border-top-color: #63a984;
}

body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-summary-card.advanced {
  border-top-color: #d1a34c;
}

body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-filter-panel {
  border-radius: var(--ui2-radius-lg);
}

body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-table-panel {
  border-radius: var(--ui2-radius-lg);
  box-shadow: var(--ui2-shadow-soft);
}

/* GSAP text reveal and pinned chapter rail */
body.ui-system-v2 .ui2-scrub-copy {
  --ui2-reveal: 100%;
  color: transparent;
  background: linear-gradient(
    90deg,
    var(--ui2-muted) 0,
    var(--ui2-muted) var(--ui2-reveal),
    rgba(104, 118, 111, 0.2) var(--ui2-reveal),
    rgba(104, 118, 111, 0.2) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.ui-system-v2 .tdm-command .ui2-scrub-copy {
  background: linear-gradient(
    90deg,
    #bed3ca 0,
    #bed3ca var(--ui2-reveal),
    rgba(190, 211, 202, 0.22) var(--ui2-reveal),
    rgba(190, 211, 202, 0.22) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
}

body.ui-system-v2 .ui-context-rail {
  right: 22px;
  width: 104px;
  border: 1px solid rgba(205, 216, 210, 0.88);
  border-radius: var(--ui2-radius-md);
  padding: 10px 9px;
  background: rgba(255, 255, 252, 0.88);
  box-shadow: var(--ui2-shadow-soft);
  backdrop-filter: blur(15px);
}

body.ui-system-v2 .ui-context-rail strong {
  color: var(--ui2-faint);
  font-size: 9px;
  letter-spacing: 0.12em;
}

body.ui-system-v2 .ui-context-rail button {
  border-left-color: var(--ui2-line);
  color: var(--ui2-muted);
  font-size: 10.5px;
}

body.ui-system-v2 .ui-context-rail button:hover,
body.ui-system-v2 .ui-context-rail button.is-current {
  border-left-color: var(--ui2-accent);
  color: var(--ui2-accent-strong);
  background: var(--ui2-surface-tint);
}

@media (min-width: 1540px) {
  body.ui-system-v2.ui-has-context-rail .main {
    padding-right: 144px;
  }

  body.ui-system-v2.ui-has-context-rail .ui-context-rail {
    display: block;
  }
}

@media (min-width: 921px) and (max-width: 1279px) {
  body.ui-system-v2 .shell,
  body.ui-system-v2 .shell.sidebar-collapsed {
    grid-template-columns: 188px minmax(0, 1fr);
  }

  body.ui-system-v2 .shell.sidebar-collapsed {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  body.ui-system-v2 .sidebar {
    padding-inline: 10px;
  }

  body.ui-system-v2 .sidebar .nav {
    min-height: 39px;
    padding-right: 8px;
    padding-left: 25px;
    font-size: 11.5px;
  }

  body.ui-system-v2 .main {
    padding-inline: 16px;
  }

  body.ui-system-v2 .topbar {
    margin-top: 8px;
  }

  body.ui-system-v2 .main :is(button, input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    min-height: 42px;
  }

  body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-filter-grid > :last-child {
    grid-column: span 2;
  }
}

/* Mobile and portrait tablet */
@media (max-width: 920px) {
  body.ui-system-v2,
  body.ui-system-v2.apple-mobile-enabled {
    --ui2-radius-lg: 14px;
    --ui2-radius-xl: 18px;
    min-width: 320px;
    color: var(--ui2-ink);
    background: #eef1ec;
  }

  body.ui-system-v2.mobile-workbench-enabled.ui-layered .main,
  body.ui-system-v2.apple-mobile-enabled.mobile-workbench-enabled.ui-layered .main {
    min-width: 0;
    padding: 0 10px calc(102px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    background:
      radial-gradient(circle at 90% 4%, rgba(52, 132, 107, 0.07), transparent 26%),
      transparent;
  }

  body.ui-system-v2.mobile-workbench-enabled.ui-layered .topbar,
  body.ui-system-v2.apple-mobile-enabled.mobile-workbench-enabled.ui-layered .topbar {
    top: 7px;
    z-index: 42;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 72px;
    margin: 7px 0 11px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 10px 9px 13px;
    align-items: center;
    border: 1px solid rgba(202, 214, 207, 0.88);
    border-radius: 16px;
    background: rgba(255, 255, 252, 0.9);
    box-shadow: 0 10px 28px rgba(22, 43, 36, 0.08);
    backdrop-filter: blur(18px) saturate(128%);
  }

  body.ui-system-v2.mobile-workbench-enabled.ui-layered .topbar::before {
    top: 13px;
    bottom: 13px;
  }

  body.ui-system-v2.mobile-workbench-enabled.ui-layered .topbar > div:first-child {
    min-width: 0;
  }

  body.ui-system-v2.mobile-workbench-enabled.ui-layered #view-title,
  body.ui-system-v2.apple-mobile-enabled.mobile-workbench-enabled.ui-layered #view-title {
    display: -webkit-box;
    max-width: 72rem;
    overflow: hidden;
    color: var(--ui2-ink);
    font-size: clamp(20px, 6vw, 25px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.ui-system-v2 #view-title::after {
    display: none;
  }

  body.ui-system-v2.mobile-workbench-enabled.ui-layered .topbar p,
  body.ui-system-v2.apple-mobile-enabled.mobile-workbench-enabled.ui-layered .topbar p {
    display: -webkit-box;
    max-width: min(64vw, 34ch);
    margin-top: 4px;
    overflow: hidden;
    color: var(--ui2-muted);
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.ui-system-v2.mobile-workbench-enabled.ui-layered .topbar .actions {
    display: flex;
    gap: 6px;
    max-width: 126px;
    overflow-x: auto;
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  body.ui-system-v2.mobile-workbench-enabled.ui-layered .topbar .actions::-webkit-scrollbar {
    display: none;
  }

  body.ui-system-v2.mobile-workbench-enabled.ui-layered .topbar .actions > * {
    flex: 0 0 auto;
    scroll-snap-align: end;
  }

  body.ui-system-v2 :is(#refresh-btn, #health-pill) {
    min-height: 44px;
    border-color: #cad7d0;
    border-radius: var(--ui2-radius-md);
    background: rgba(255, 255, 255, 0.9);
  }

  body.ui-system-v2 #refresh-btn {
    width: 44px;
    min-width: 44px;
    color: var(--ui2-accent-strong);
  }

  body.ui-system-v2 #health-pill {
    width: auto;
    min-width: 70px;
    max-width: 88px;
    height: 44px;
    overflow: hidden;
    padding: 0 9px 0 23px;
    font-size: 10px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.ui-system-v2 .view.active,
  body.ui-system-v2 .main.view-switching .view.active {
    gap: 11px;
    width: 100%;
  }

  body.ui-system-v2.mobile-workbench-enabled.ui-layered .panel,
  body.ui-system-v2.apple-mobile-enabled.mobile-workbench-enabled.ui-layered .panel {
    margin-bottom: 0;
    border-color: #d1dbd5;
    border-radius: var(--ui2-radius-lg);
    padding: 13px;
    background: rgba(255, 255, 252, 0.97);
    box-shadow: 0 7px 20px rgba(24, 46, 38, 0.05);
    backdrop-filter: none;
  }

  body.ui-system-v2.mobile-workbench-enabled.ui-layered .panel > .panel-title:first-child,
  body.ui-system-v2.apple-mobile-enabled.mobile-workbench-enabled.ui-layered .panel > .panel-title:first-child {
    min-height: 47px;
    margin: -13px -13px 12px;
    padding: 10px 13px;
    border-color: var(--ui2-line-soft);
    border-radius: var(--ui2-radius-lg) var(--ui2-radius-lg) 0 0;
    background: linear-gradient(100deg, var(--ui2-surface-tint), var(--ui2-surface-soft));
  }

  body.ui-system-v2 .panel > .panel-title:first-child :is(h2, h3) {
    font-size: 15px;
  }

  body.ui-system-v2 :is(.panel-title span, .panel-title p, .muted, small) {
    font-size: max(11px, 0.7rem);
    line-height: 1.45;
  }

  body.ui-system-v2 :is(.module-command-strip, .op-command-strip, .marketing-command-strip) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border-radius: var(--ui2-radius-lg);
  }

  body.ui-system-v2 :is(.module-command-card, .op-command-card, .marketing-command-card) {
    min-height: 84px;
    padding: 11px 12px;
  }

  /* Feedback and status carousel using existing data cards only. */
  body.ui-system-v2 :is(.metrics, .live-metrics, .marketing-summary-row),
  body.ui-system-v2 #aiCenter-view .ai-center-metrics,
  body.ui-system-v2 #automationTasks-view .sgb-auto-metrics,
  body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-summary-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(164px, 72vw);
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0;
    border-radius: 0;
    padding: 1px 1px 8px;
    background: transparent;
    box-shadow: none;
    scroll-padding-inline: 1px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  body.ui-system-v2 :is(.metrics, .live-metrics, .marketing-summary-row)::-webkit-scrollbar,
  body.ui-system-v2 #aiCenter-view .ai-center-metrics::-webkit-scrollbar,
  body.ui-system-v2 #automationTasks-view .sgb-auto-metrics::-webkit-scrollbar,
  body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-summary-grid::-webkit-scrollbar {
    display: none;
  }

  body.ui-system-v2 :is(.metrics, .live-metrics, .marketing-summary-row) > *,
  body.ui-system-v2 #aiCenter-view .ai-center-metrics > *,
  body.ui-system-v2 #automationTasks-view .sgb-auto-metrics > *,
  body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-summary-grid > * {
    grid-column: auto;
    min-width: 0;
    min-height: 88px;
    border: 1px solid var(--ui2-line);
    border-radius: var(--ui2-radius-lg);
    background: var(--ui2-surface);
    box-shadow: 0 5px 14px rgba(23, 44, 36, 0.045);
    scroll-snap-align: start;
  }

  body.ui-system-v2 :is(.metric, .live-metric, .marketing-summary-card) {
    padding: 12px 13px;
  }

  body.ui-system-v2 :is(
    .module-subnav,
    .product-center-subnav,
    .product-image-helper-subnav,
    .task-perspective-tabs,
    .task-personal-tabs,
    .database-subnav,
    .marketing-subnav,
    .operation-ui-tabs,
    [role="tablist"]
  ) {
    width: 100%;
    gap: 3px;
    padding: 4px;
    scroll-snap-type: x proximity;
  }

  body.ui-system-v2 :is(
    .module-subnav,
    .product-center-subnav,
    .product-image-helper-subnav,
    .task-perspective-tabs,
    .task-personal-tabs,
    .database-subnav,
    .marketing-subnav,
    .operation-ui-tabs,
    [role="tablist"]
  ) > button {
    flex: 0 0 auto;
    min-height: 44px;
    padding-inline: 14px;
    scroll-snap-align: start;
  }

  body.ui-system-v2 .main :is(button, input:not([type="checkbox"]):not([type="radio"]), select, textarea, summary) {
    min-height: 44px;
  }

  body.ui-system-v2 #aiCenter-view :is(button, [role="button"]) {
    min-height: 44px;
  }

  body.ui-system-v2 :is(.filter-grid, .form-grid, .detail-grid, .form-row) {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body.ui-system-v2 .table.ui-mobile-card-table tbody tr:not(.ui-colspan-row) {
    border-color: var(--ui2-line);
    border-radius: var(--ui2-radius-md);
    background: var(--ui2-surface);
    box-shadow: 0 4px 12px rgba(18, 39, 32, 0.04);
  }

  body.ui-system-v2 .table.ui-mobile-card-table tbody tr:not(.ui-colspan-row) > td {
    grid-template-columns: minmax(88px, 34%) minmax(0, 1fr);
    gap: 10px;
  }

  body.ui-system-v2 .mobile-bottom-nav,
  body.ui-system-v2.apple-mobile-enabled .mobile-bottom-nav {
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    left: 8px;
    z-index: 80;
    min-height: 66px;
    border: 1px solid rgba(196, 210, 202, 0.92);
    border-radius: 18px;
    padding: 5px;
    background: rgba(255, 255, 252, 0.92);
    box-shadow: 0 18px 42px rgba(18, 40, 32, 0.15);
    backdrop-filter: blur(22px) saturate(132%);
  }

  body.ui-system-v2 .mobile-bottom-item,
  body.ui-system-v2.apple-mobile-enabled .mobile-bottom-item {
    min-width: 44px;
    min-height: 54px;
    border-radius: 13px;
    color: #64736d;
    background: transparent;
    font-size: 10px;
  }

  body.ui-system-v2 .mobile-bottom-item.active,
  body.ui-system-v2.apple-mobile-enabled .mobile-bottom-item.active {
    color: var(--ui2-accent-strong);
    background: var(--ui2-accent-soft);
  }

  body.ui-system-v2 .mobile-bottom-item.active::before,
  body.ui-system-v2.apple-mobile-enabled .mobile-bottom-item.active::before {
    background: var(--ui2-accent);
  }

  body.ui-system-v2 .mobile-module-sheet,
  body.ui-system-v2.apple-mobile-enabled .mobile-module-sheet,
  body.ui-system-v2.apple-mobile-enabled .mobile-module-layer.is-open .mobile-module-sheet {
    max-height: min(86dvh, 760px);
    border: 1px solid rgba(201, 213, 207, 0.92);
    border-radius: 24px 24px 0 0;
    background: #fbfcf8;
    box-shadow: 0 -24px 68px rgba(10, 29, 22, 0.22);
  }

  body.ui-system-v2 .mobile-module-item,
  body.ui-system-v2.apple-mobile-enabled .mobile-module-item {
    min-height: 52px;
    border-color: var(--ui2-line);
    border-radius: var(--ui2-radius-md);
    color: var(--ui2-ink-soft);
    background: var(--ui2-surface);
  }

  body.ui-system-v2 .mobile-module-item.active,
  body.ui-system-v2.apple-mobile-enabled .mobile-module-item.active {
    border-color: #8bb7a8;
    color: var(--ui2-accent-strong);
    background: var(--ui2-accent-soft);
  }

  body.ui-system-v2 .site-footer a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  body.ui-system-v2 .ui-context-rail {
    display: none;
  }

  body.ui-system-v2 #aiCenter-view .ai-center-command {
    display: grid;
    grid-template-columns: 3px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 15px;
  }

  body.ui-system-v2 #aiCenter-view .ai-center-command-actions {
    grid-column: 2;
    width: 100%;
    justify-content: space-between;
  }

  body.ui-system-v2 #aiCenter-view .ai-center-split {
    grid-template-columns: minmax(0, 1fr);
  }

  body.ui-system-v2 #automationTasks-view .sgb-module-switch,
  body.ui-system-v2 #automationTasks-view .sgb-auto-grid,
  body.ui-system-v2 #automationTasks-view .sgb-auto-run-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  body.ui-system-v2 #storeDataOverview-view .sdo-shell {
    border-radius: var(--ui2-radius-lg);
  }

  body.ui-system-v2 #storeDataOverview-view .sdo-toolbar {
    padding: 14px 13px;
  }

  body.ui-system-v2 #storeDataOverview-view .sdo-toolbar-heading {
    display: grid;
    gap: 10px;
  }

  body.ui-system-v2 #storeDataOverview-view .sdo-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.ui-system-v2 #storeDataOverview-view .sdo-summary {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  body.ui-system-v2 #storeDataOverview-view .sdo-summary::-webkit-scrollbar {
    display: none;
  }

  body.ui-system-v2 #storeDataOverview-view .sdo-summary span {
    flex: 0 0 auto;
    min-height: 34px;
    scroll-snap-align: start;
  }

  body.ui-system-v2 #storeDataOverview-view .sdo-table-wrap {
    max-height: calc(100dvh - 210px);
    min-height: 360px;
  }

  body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-command {
    display: grid;
    min-height: 0;
    gap: 20px;
    padding: 22px 20px;
    border-radius: var(--ui2-radius-xl);
  }

  body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-command h2 {
    font-size: clamp(25px, 8vw, 34px);
    line-height: 1.08;
  }

  body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-command p {
    font-size: 13px;
    line-height: 1.55;
  }

  body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-command-actions {
    justify-content: flex-start;
    max-width: none;
  }

  body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-command-actions > span {
    text-align: left;
  }

  body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-source-strip {
    border-radius: var(--ui2-radius-md);
    scroll-snap-type: x proximity;
  }

  body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-source-strip span {
    min-height: 42px;
    scroll-snap-align: start;
  }

  body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-table {
    min-width: 1370px;
  }

  body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-store-id {
    width: 86px;
    min-width: 86px;
  }

  body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-store-name {
    left: 86px;
    width: 154px;
    min-width: 154px;
  }
}

@media (max-width: 430px) {
  body.ui-system-v2.mobile-workbench-enabled.ui-layered .main,
  body.ui-system-v2.apple-mobile-enabled.mobile-workbench-enabled.ui-layered .main {
    padding-inline: 8px;
  }

  body.ui-system-v2.mobile-workbench-enabled.ui-layered .topbar,
  body.ui-system-v2.apple-mobile-enabled.mobile-workbench-enabled.ui-layered .topbar {
    padding-inline: 10px 8px;
  }

  body.ui-system-v2.mobile-workbench-enabled.ui-layered .topbar .actions {
    max-width: 118px;
  }

  body.ui-system-v2 :is(.module-command-strip, .op-command-strip, .marketing-command-strip) {
    grid-template-columns: minmax(0, 1fr);
  }

  body.ui-system-v2 :is(.module-command-card, .op-command-card, .marketing-command-card) {
    min-height: 74px;
  }

  body.ui-system-v2 .mobile-module-grid,
  body.ui-system-v2.apple-mobile-enabled .mobile-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 370px) {
  body.ui-system-v2.mobile-workbench-enabled.ui-layered .topbar .actions {
    max-width: 108px;
  }

  body.ui-system-v2 #view-title {
    font-size: 20px;
  }

  body.ui-system-v2 :is(.metrics, .live-metrics, .marketing-summary-row),
  body.ui-system-v2 #aiCenter-view .ai-center-metrics,
  body.ui-system-v2 #automationTasks-view .sgb-auto-metrics,
  body.ui-system-v2 #storeTrendyDrinkMonitor-view .tdm-summary-grid {
    grid-auto-columns: minmax(156px, 78vw);
  }
}

@media (max-width: 920px) and (orientation: landscape) {
  body.ui-system-v2.mobile-workbench-enabled.ui-layered .topbar,
  body.ui-system-v2.apple-mobile-enabled.mobile-workbench-enabled.ui-layered .topbar {
    position: relative;
    top: 0;
  }

  body.ui-system-v2 .mobile-module-sheet,
  body.ui-system-v2.apple-mobile-enabled .mobile-module-sheet {
    max-height: 92dvh;
  }
}

@media (prefers-reduced-transparency: reduce) {
  body.ui-system-v2 :is(.topbar, .mobile-bottom-nav, .mobile-module-sheet, .login-card, .ui-context-rail) {
    background: var(--ui2-surface);
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  body.ui-system-v2 {
    --ui2-line: #7c8b84;
    --ui2-line-soft: #a8b3ae;
    --ui2-muted: #3d4a45;
  }

  body.ui-system-v2 :is(button, input, select, textarea, .panel, .table, .mobile-bottom-nav, .mobile-module-sheet) {
    border-width: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ui-system-v2 *,
  body.ui-system-v2 *::before,
  body.ui-system-v2 *::after {
    scroll-behavior: auto;
    animation-duration: 0.001ms;
    animation-iteration-count: 1;
    transition-duration: 0.001ms;
  }

  body.ui-system-v2 .ui2-scrub-copy {
    --ui2-reveal: 100%;
  }

  body.ui-system-v2 .ui-context-rail {
    display: none;
  }
}

@media print {
  body.ui-system-v2 {
    color: #000000;
    background: #ffffff;
  }

  body.ui-system-v2 :is(.sidebar, .topbar .actions, .mobile-bottom-nav, .mobile-module-layer, .ui-context-rail) {
    display: none;
  }

  body.ui-system-v2 .shell,
  body.ui-system-v2 .shell.sidebar-collapsed {
    display: block;
  }

  body.ui-system-v2 .main {
    padding: 0;
    overflow: visible;
    background: #ffffff;
  }

  body.ui-system-v2 .topbar {
    position: static;
    margin: 0 0 16px;
    box-shadow: none;
  }
}
