/* Canonical shell frame file.
   Live owner-visible shell surface must be loaded from this file:
   header, sidebar, workspace frame, typography, colors, spacing, and responsive behavior. */

:root {
  --mm-font-ui: "Plus Jakarta Sans", Manrope, "Segoe UI", "Noto Sans", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Tahoma, Arial, sans-serif;
  --mm-font-display: "Space Grotesk", "Plus Jakarta Sans", "Noto Sans", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Tahoma, Arial, sans-serif;
  --mm-office-bg: #f4f6f8;
  --mm-office-bg-soft: #eef2f5;
  --mm-office-panel: rgba(255, 255, 255, 0.84);
  --mm-office-panel-strong: rgba(255, 255, 255, 0.92);
  --mm-office-border: rgba(15, 23, 42, 0.08);
  --mm-office-border-strong: rgba(15, 23, 42, 0.14);
  --mm-office-text: #182132;
  --mm-office-muted: #667085;
  --mm-office-muted-2: #8b97a8;
  --mm-office-accent: #2563eb;
  --mm-office-accent-2: #0f766e;
  --mm-office-sidebar-top: #182233;
  --mm-office-sidebar-bottom: #0f1726;
  --mm-office-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

/* Owner live audit cleanup 2026-05-08: keep long demo names and compact actions inside cards/breadcrumbs. */
html[data-shell-frame="foundation"] .mm-entry-card,
html[data-shell-frame="foundation"] .mm-company-canon-card,
html[data-shell-frame="foundation"] .mm-owner-shell-card {
  min-width: 0;
  overflow: hidden;
}

html[data-shell-frame="foundation"] .mm-entry-card *,
html[data-shell-frame="foundation"] .mm-company-canon-card *,
html[data-shell-frame="foundation"] .mm-owner-shell-card *,
html[data-shell-frame="foundation"] .mm-shell-breadcrumb * {
  min-width: 0;
}

html[data-shell-frame="foundation"] .mm-entry-card strong,
html[data-shell-frame="foundation"] .mm-entry-card__title,
html[data-shell-frame="foundation"] .mm-entry-card__subtitle,
html[data-shell-frame="foundation"] .mm-entry-card__meta,
html[data-shell-frame="foundation"] .mm-company-canon-card strong,
html[data-shell-frame="foundation"] .mm-owner-shell-card strong,
html[data-shell-frame="foundation"] .mm-shell-breadcrumb__label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

html[data-shell-frame="foundation"] .mm-entry-card__aside {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  overflow: hidden;
}

html[data-shell-frame="foundation"] .mm-entry-card__aside > *,
html[data-shell-frame="foundation"] .mm-entity-manage-toggle.is-compact {
  flex: 0 1 auto;
  max-width: 100%;
  white-space: normal;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-root-btn-active,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-root-btn-active *,
html[data-theme="dark"] .mm-xfm-root-btn-active,
html[data-theme="dark"] .mm-xfm-root-btn-active * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-root-btn-active {
  background: #2563eb !important;
  border-color: rgba(147, 197, 253, 0.72) !important;
}

/* Owner live audit cleanup 2026-05-08 exchange dark crumb final override. */
html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-crumb-active,
html[data-theme="dark"] .mm-screen-exchange .mm-xfm-crumb-active {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  background: #e2e8f0 !important;
}

html[data-shell-frame="foundation"].is-real-device-compact #shell-context-label,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] #shell-context-label {
  display: none !important;
}

/* Final mobile header cleanup 2026-05-08: keep compact owner header single-line. */
html[data-shell-frame="foundation"].is-real-device-compact #shell-context-label,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] #shell-context-label {
  display: none !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-upload-target,
html[data-theme="dark"] .mm-screen-exchange .mm-xfm-upload-target {
  color: #e2e8f0 !important;
  -webkit-text-fill-color: #e2e8f0 !important;
  background: #111827 !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  border-radius: 8px !important;
  padding: 4px 8px !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-upload-target,
html[data-theme="dark"] .mm-screen-exchange .mm-xfm-upload-target {
  color: #e2e8f0 !important;
  -webkit-text-fill-color: #e2e8f0 !important;
  background: #111827 !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  border-radius: 8px !important;
  padding: 4px 8px !important;
}

html[data-shell-frame="foundation"] .mm-header-brand {
  box-sizing: border-box !important;
  max-height: var(--mm-frame-header-height, 56px) !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-crumb-active,
html[data-theme="dark"] .mm-xfm-crumb-active {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  background: #e2e8f0 !important;
}

/* Owner live audit cleanup 2026-05-08 exchange dark crumb final override. */
html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-crumb-active,
html[data-theme="dark"] .mm-screen-exchange .mm-xfm-crumb-active {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  background: #e2e8f0 !important;
}

body {
  margin: 0;
  font-family: var(--mm-font-ui);
  background: var(--mm-page-bg);
  color: var(--mm-text);
  text-rendering: optimizeLegibility;
}

.tenant-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(61, 142, 255, 0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(0, 196, 180, 0.16), transparent 32%),
    var(--mm-page-bg);
}

.tenant-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--mm-border);
}

.tenant-header-left {
  display: flex;
  gap: 14px;
  align-items: center;
}

.tenant-logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--mm-border);
  background: var(--mm-surface);
  color: var(--mm-text);
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
}

.tenant-header-title {
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
}

.tenant-header-subtitle {
  font-size: 12px;
  color: var(--mm-text-muted);
}

.gate-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 196, 180, 0.12);
  color: #89fff2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.gate-meta {
  font-size: 13px;
  color: var(--mm-text-muted);
}

.gate-actions,
.tenant-card-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tenant-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #00c4b4;
}

.tenant-grid {
  display: grid;
  gap: 16px;
  padding: 20px;
  padding-bottom: 90px;
}

.tenant-context-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: var(--mm-surface-strong);
  border: 1px solid var(--mm-border);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--mm-shadow);
}

.tenant-context-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mm-text-muted);
  margin-bottom: 8px;
}

.tenant-context-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.tenant-card {
  background: var(--mm-surface-strong);
  border: 1px solid var(--mm-border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--mm-shadow);
}

.tenant-card.hidden {
  display: none;
}

.tenant-card h2 {
  margin-top: 0;
  margin-bottom: 14px;
}

.tenant-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tenant-form {
  display: grid;
  gap: 12px;
}

.tenant-form label {
  display: grid;
  gap: 6px;
}

.tenant-form span {
  font-size: 14px;
  color: var(--mm-text-muted);
}

.tenant-form input {
  padding: 13px 14px;
  border-radius: 16px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--mm-text);
}

.tenant-form select {
  padding: 13px 14px;
  border-radius: 16px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--mm-text);
}

.tenant-form textarea {
  padding: 13px 14px;
  border-radius: 16px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--mm-text);
  resize: vertical;
}

.tenant-checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
}

.tenant-checkbox span {
  font-size: 14px;
  color: var(--mm-text-muted);
}

.tenant-form button,
.ghost {
  padding: 10px 14px;
  border: none;
  border-radius: 14px;
  background: #00c4b4;
  color: #07262b;
  font-weight: 700;
  cursor: pointer;
}

.backup {
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  background: #f0b429;
  color: #2f2200;
  font-weight: 700;
  cursor: pointer;
}

.ghost {
  background: var(--mm-surface);
  color: var(--mm-text);
}

.tenant-status {
  margin-top: 12px;
  min-height: 20px;
  font-size: 14px;
  color: var(--mm-text-muted);
}

.tenant-status.error {
  color: #ff9d9d;
}

.mm-theme-reset {
  position: fixed;
  right: 16px;
  bottom: 104px;
  z-index: 5000;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 14, 22, 0.94);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  backdrop-filter: blur(18px);
}

.mm-theme-reset:hover {
  transform: translateY(-1px);
}

.mm-theme-reset[hidden] {
  display: none !important;
}

.division-list {
  display: grid;
  gap: 10px;
}

.division-card {
  padding: 14px;
  border-radius: 12px;
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
}

.marketplace-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.marketplace-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(0, 196, 180, 0.16);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #00c4b4;
}

.marketplace-status {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.marketplace-status.trial {
  color: #00c4b4;
  border: 1px solid rgba(0, 196, 180, 0.35);
}

.marketplace-status.active {
  color: #8fffb5;
  border: 1px solid rgba(143, 255, 181, 0.35);
}

.marketplace-status.expired {
  color: #ffb454;
  border: 1px solid rgba(255, 180, 84, 0.35);
}

.marketplace-status.disabled {
  color: #ff8f8f;
  border: 1px solid rgba(255, 143, 143, 0.35);
}

.marketplace-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 6px;
}

.division-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.division-meta {
  font-size: 13px;
  color: var(--mm-text-muted);
}

.division-actions,
.tenant-form-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.mm-door-grid,
.mm-action-grid {
  display: grid;
  gap: 12px;
}

.mm-door-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.mm-action-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: 6px;
}

.mm-door-card,
.mm-action-card {
  width: 100%;
  appearance: none;
  border: 1px solid var(--mm-border);
  color: var(--mm-text);
  text-align: left;
  position: relative;
  cursor: pointer;
  padding: 18px;
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 8px;
  background:
    radial-gradient(circle at top right, rgba(0, 196, 180, 0.10), transparent 42%),
    var(--mm-surface);
}

.mm-door-card {
  border-radius: 18px;
}

.mm-action-card {
  border-radius: 18px;
}

.mm-door-card:hover,
.mm-action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 196, 180, 0.22);
}

.mm-door-badge,
.mm-action-label {
  display: inline-flex;
  align-self: start;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 196, 180, 0.14);
  color: #00c4b4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.mm-action-card h3,
.mm-door-card h3 {
  margin: 0;
  font-size: 18px;
}

.mm-action-card p,
.mm-door-card p {
  margin: 0;
  color: var(--mm-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.mm-door-arrow {
  margin-top: auto;
  font-size: 24px;
  font-weight: 800;
  color: var(--mm-accent);
  justify-self: end;
}

.mm-actions-head {
  align-items: flex-start;
}

.mm-actions-head p {
  margin: 4px 0 0;
}

.mm-action-empty {
  border: 1px dashed var(--mm-border);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.mm-action-empty h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.mm-action-empty p {
  margin: 0;
  color: var(--mm-text-muted);
}

.marketplace-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.marketplace-filters input,
.marketplace-filters select {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--mm-border);
  background: var(--mm-surface);
  color: var(--mm-text);
}

.marketplace-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mm-text-muted);
  margin-bottom: 12px;
}

.marketplace-section.hidden {
  display: none;
}

.mm-process-block {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.mm-process-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.mm-process-workspace__list {
  display: grid;
  gap: 10px;
  min-width: 0;
  align-content: start;
}

.mm-process-workspace__intro {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(19, 32, 51, 0.04);
  border: 1px solid rgba(19, 32, 51, 0.06);
}

.mm-process-workspace__intro strong {
  color: #17233c;
  font-size: 14px;
  line-height: 1.25;
}

.mm-process-workspace__intro span {
  color: #6a7890;
  font-size: 12px;
  line-height: 1.45;
}

.mm-process-workspace__list .mm-card-grid {
  display: grid;
  gap: 10px;
  align-content: start;
}

.mm-process-workspace__list label {
  display: grid;
  gap: 6px;
}

.mm-process-workspace__list label span {
  color: #51617d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.mm-process-workspace__list input,
.mm-process-workspace__list select,
.mm-process-workspace__list textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(19, 32, 51, 0.12);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.98));
  color: #17233c;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.mm-process-workspace__list input:focus,
.mm-process-workspace__list select:focus,
.mm-process-workspace__list textarea:focus {
  outline: none;
  border-color: rgba(77, 124, 255, 0.34);
  box-shadow: 0 0 0 3px rgba(77, 124, 255, 0.08);
}

.mm-process-workspace__list textarea {
  min-height: 100px;
  resize: vertical;
}

.mm-process-workspace__list .mm-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.mm-process-workspace__list .mm-card-item {
  align-content: start;
  gap: 8px;
  padding: 14px;
}

.mm-card-item--compact {
  gap: 8px;
  min-height: 0;
}

.mm-card-item--compact h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.mm-card-item--compact p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.mm-order-compact-lines {
  display: grid;
  gap: 6px;
  padding-top: 2px;
}

.mm-order-compact-lines__row,
.mm-order-compact-lines__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #51617d;
  font-size: 12px;
}

.mm-order-draft {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  background: rgba(248, 250, 254, 0.92);
}

.mm-order-draft__head,
.mm-order-draft__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mm-order-draft__list {
  display: grid;
  gap: 8px;
}

.mm-order-draft__row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 92px 86px 96px auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(19, 32, 51, 0.08);
}

.mm-order-draft__title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mm-order-draft__title strong,
.mm-order-draft__title span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-order-draft__title span {
  color: #667085;
  font-size: 11px;
}

.mm-order-draft__qty {
  display: grid;
  gap: 4px;
}

.mm-order-draft__qty span {
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}

.mm-order-draft__price,
.mm-order-draft__total {
  font-size: 12px;
  font-weight: 800;
  color: #17233c;
}

.mm-order-draft-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px auto;
  gap: 10px;
  align-items: end;
}

.mm-order-draft-builder__meta {
  display: grid;
  gap: 8px;
}

.mm-inline-picker {
  display: grid;
  gap: 10px;
}

.mm-inline-picker__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #31415d;
}

.mm-inline-picker__meta {
  color: #667085;
  font-size: 11px;
  font-weight: 600;
}

.mm-inline-picker__search {
  width: 100%;
}

.mm-inline-picker__selected {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  background: rgba(248, 250, 254, 0.92);
}

.mm-inline-picker__selected span,
.mm-inline-picker__hint {
  color: #667085;
  font-size: 12px;
}

.mm-inline-picker__results {
  display: grid;
  gap: 8px;
}

.mm-inline-picker__item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  color: #17233c;
  text-align: left;
}

.mm-inline-picker__item--wide {
  grid-template-columns: minmax(0, 1fr);
}

.mm-inline-picker__item strong,
.mm-inline-picker__item span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-inline-picker__item span {
  color: #667085;
  font-size: 12px;
}

.mm-inline-picker__create,
.mm-inline-picker__clear {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  background: rgba(245, 107, 61, 0.08);
  color: #c65126;
  font-weight: 700;
}

.mm-inline-picker__toolbar,
.mm-inline-picker__quick-create-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(110px, 140px));
  gap: 10px;
  align-items: end;
}

.mm-inline-picker__compact-field {
  display: grid;
  gap: 4px;
}

.mm-inline-picker__compact-field span,
.mm-inline-picker__quick-create-title {
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}

.mm-inline-picker__quick-create {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(19, 32, 51, 0.16);
  background: rgba(248, 250, 254, 0.92);
}

.mm-card-item--flash {
  border-color: rgba(245, 107, 61, 0.35);
  box-shadow: 0 0 0 2px rgba(245, 107, 61, 0.14);
}

.mm-card-item--primary {
  cursor: pointer;
}

.mm-card-item--primary:hover,
.mm-card-item--primary:focus-visible {
  border-color: rgba(245, 107, 61, 0.34);
  box-shadow: 0 12px 30px rgba(19, 32, 51, 0.08);
  outline: none;
}

.mm-marketplace-install-target {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(19, 32, 51, 0.1);
  border-radius: 18px;
  background: rgba(248, 250, 254, 0.96);
}

.mm-marketplace-install-target__hint,
.mm-marketplace-install-target__mode {
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.mm-marketplace-install-target__summary {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(19, 32, 51, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.mm-marketplace-install-target__summary-label {
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mm-marketplace-install-target__summary strong {
  color: #132033;
  font-size: 14px;
  line-height: 1.35;
}

.mm-marketplace-install-target__summary-note {
  color: #667085;
  font-size: 12px;
  line-height: 1.4;
}

.mm-marketplace-install-target__toggle {
  justify-self: start;
}

.mm-marketplace-install-target__advanced {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(19, 32, 51, 0.16);
}

.mm-marketplace-install-target__mode {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.08);
  color: #234a9d;
  font-weight: 800;
}

.mm-marketplace-install-sheet,
.mm-install-module-form {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mm-sales-order-detail {
  display: grid;
  gap: 14px;
  padding: 16px;
  margin-bottom: 14px;
  border-radius: 18px;
  border: 1px solid rgba(19, 32, 51, 0.1);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(19, 32, 51, 0.08);
}

.mm-sales-order-detail__head,
.mm-sales-order-detail__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mm-sales-order-detail__head h3,
.mm-sales-order-detail__head p {
  margin: 0;
}

.mm-sales-order-detail__items {
  padding: 10px;
}

.mm-sales-order-detail__actions label {
  display: grid;
  gap: 5px;
  min-width: min(260px, 100%);
}

.mm-sales-order-detail__actions label span {
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}

.mm-master-data-workspace {
  display: grid;
  gap: 12px;
}

.mm-master-data-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  background: rgba(248, 250, 254, 0.92);
}

.mm-master-data-toolbar__left,
.mm-master-data-toolbar__right {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.mm-master-data-search {
  display: grid;
  gap: 6px;
  min-width: min(320px, 100%);
}

.mm-master-data-search span {
  color: #51617d;
  font-size: 12px;
  font-weight: 700;
}

.mm-master-data-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(77, 124, 255, 0.1);
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.mm-master-data-detail {
  display: grid;
  gap: 12px;
  padding: 16px;
  scroll-margin-block: 120px;
}

.mm-master-data-detail form {
  display: grid;
  gap: 10px;
}

.mm-master-data-detail label {
  display: grid;
  gap: 6px;
}

.mm-master-data-detail__related {
  display: grid;
  gap: 10px;
}

.mm-form-advanced {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(19, 32, 51, 0.18);
  background: rgba(248, 250, 254, 0.9);
}

.mm-form-advanced summary {
  cursor: pointer;
  color: #1f3558;
  font-size: 13px;
  font-weight: 800;
}

.mm-form-advanced__body {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.mm-shoppro-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.mm-shoppro-checkbox input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}

.mm-shoppro-checkbox span {
  color: #243556;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.mm-inventory-session-form {
  display: grid;
  gap: 10px;
}

.mm-card-item.is-active {
  border-color: rgba(77, 124, 255, 0.32);
  box-shadow: 0 0 0 2px rgba(77, 124, 255, 0.1);
}

.mm-shoppro-process-layout__template {
  display: none;
}

.mm-shoppro-process-hero {
  display: grid;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 252, 0.94));
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.mm-shoppro-process-hero--sales {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.94));
}

.mm-shoppro-process-hero--procurement {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 239, 0.94));
}

.mm-shoppro-process-hero--catalog {
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 250, 247, 0.94));
}

.mm-shoppro-process-hero--finance {
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 244, 255, 0.94));
}

.mm-shoppro-process-hero--warehouse {
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 249, 255, 0.94));
}

.mm-shoppro-process-hero--quality {
  background:
    radial-gradient(circle at top right, rgba(244, 63, 94, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 246, 0.94));
}

.mm-shoppro-process-hero--service {
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 250, 248, 0.94));
}

.mm-shoppro-process-hero__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.mm-shoppro-process-hero__copy {
  display: grid;
  gap: 8px;
}

.mm-shoppro-process-hero__eyebrow {
  color: #72819a;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.mm-shoppro-process-hero h3 {
  margin: 0;
  color: #182132;
  font-family: var(--mm-font-display);
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.mm-shoppro-process-hero p {
  margin: 0;
  max-width: 760px;
  color: #5d6b84;
  font-size: 14px;
  line-height: 1.55;
}

.mm-shoppro-process-hero__summary {
  display: grid;
  gap: 2px;
  min-width: 140px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.84);
  text-align: right;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.mm-shoppro-process-hero__summary-label,
.mm-shoppro-process-hero__summary small {
  color: #72819a;
  font-size: 11px;
  line-height: 1.4;
}

.mm-shoppro-process-hero__summary strong {
  color: #182132;
  font-family: var(--mm-font-display);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.mm-shoppro-process-hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mm-shoppro-process-hero__metric {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.mm-shoppro-process-hero__metric span {
  color: #72819a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mm-shoppro-process-hero__metric strong {
  color: #182132;
  font-family: var(--mm-font-display);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.mm-shoppro-process-hero__bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mm-shoppro-process-hero__bullet {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: #314056;
  font-size: 12px;
  font-weight: 700;
}

.mm-process-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mm-text-muted);
  font-weight: 700;
}

.mm-process-list {
  margin: 0;
  padding-left: 18px;
  color: var(--mm-text-muted);
  font-size: 14px;
}

.mm-process-list li + li {
  margin-top: 4px;
}

.danger {
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  background: #d64545;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 720px) {
  .tenant-topbar {
    flex-direction: column;
  }

  .tenant-context-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .tenant-context-actions {
    justify-items: start;
  }

  .mm-door-grid,
  .mm-action-grid {
    grid-template-columns: 1fr;
  }

  .mm-card-grid.columns-2 {
    grid-template-columns: 1fr;
  }

  .mm-process-workspace {
    grid-template-columns: 1fr;
  }
}

/* ── Digital Office ── */

.mm-digital-office {
  position: relative;
  min-height: calc(100vh - 80px);
  padding: 24px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08), transparent 45%),
    linear-gradient(135deg, rgba(18, 22, 30, 0.92), rgba(10, 12, 18, 0.98));
  overflow: hidden;
}

.mm-digital-office::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--digital-office-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  z-index: 0;
}

.mm-digital-office::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.45), rgba(8, 10, 16, 0.78));
  z-index: 1;
}

.mm-digital-office__overlay {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
  display: grid;
  gap: 24px;
  justify-items: center;
}

.mm-digital-office__board {
  width: min(620px, 100%);
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 8px;
}

.mm-digital-office__board-title {
  font-size: 18px;
  font-weight: 700;
}

.mm-digital-office__board-body {
  font-size: 14px;
  color: #1f2937;
  line-height: 1.5;
}

.mm-digital-office__doors {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.mm-digital-office__door {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 16px;
  text-align: left;
  color: #f4f7fb;
  background: rgba(15, 18, 24, 0.75);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  display: grid;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.mm-digital-office__door:hover {
  transform: translateY(-2px);
  background: rgba(18, 22, 30, 0.9);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
}

.mm-digital-office__door-title {
  font-size: 16px;
  font-weight: 700;
}

.mm-digital-office__door-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 720px) {
  .mm-digital-office {
    padding: 16px;
  }

  .mm-digital-office__overlay {
    gap: 16px;
  }

  .mm-digital-office__board {
    padding: 16px;
  }

  .mm-digital-office__doors {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   COMMAND CENTER — Superadmin Platform Home
   ================================================================ */

.mm-cc-shell {
  flex: 1;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

/* ── Hero: приветствие ── */
.mm-cc-hero {
  padding: 20px 24px 16px;
}

.mm-cc-greeting {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.mm-cc-name {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}

.mm-cc-pulse {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mm-cc-pulse-item {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.01em;
}

.mm-cc-pulse-item.alert {
  background: rgba(255, 69, 58, 0.18);
  color: #ff6b6b;
}

.mm-cc-pulse-item.ok {
  background: rgba(48, 209, 88, 0.12);
  color: #34c759;
}

/* ── Section ── */
.mm-cc-section {
  padding: 0 0 16px;
}

.mm-cc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 14px;
}

.mm-cc-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(19, 32, 51, 0.5);
}

.mm-cc-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 24px;
}

.mm-cc-summary-card {
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  background: linear-gradient(180deg, #ffffff, #f8faff);
  display: grid;
  gap: 8px;
  min-height: 92px;
  box-shadow: 0 8px 20px rgba(37, 55, 88, 0.05);
}

.mm-cc-summary-card--blue { border-top: 2px solid #3d8eff; }
.mm-cc-summary-card--teal { border-top: 2px solid #00c4b4; }
.mm-cc-summary-card--purple { border-top: 2px solid #9b59b6; }
.mm-cc-summary-card--gold { border-top: 2px solid #c9971a; }
.mm-cc-summary-card--red { border-top: 2px solid #e74c3c; }

.mm-cc-summary-label {
  font-size: 12px;
  color: rgba(19, 32, 51, 0.52);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mm-cc-summary-value {
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  color: #132033;
}

.mm-cc-summary-domains {
  display: grid;
  gap: 10px;
  padding: 0;
}

.mm-cc-summary-domain {
  display: grid;
  gap: 6px;
  justify-content: stretch;
  align-items: start;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mm-cc-summary-domain strong {
  font-size: 13px;
  color: #132033;
}

.mm-cc-summary-domain span {
  font-size: 12px;
  color: rgba(19, 32, 51, 0.6);
  text-align: left;
}

.mm-cc-add-btn {
  appearance: none;
  border: 0;
  background: rgba(61, 142, 255, 0.2);
  color: #3d8eff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
}

/* ── Tenant scroll row ── */
.mm-cc-tenant-scroll {
  display: flex;
  gap: 14px;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mm-cc-tenant-scroll::-webkit-scrollbar { display: none; }

.mm-cc-tenant-card {
  flex-shrink: 0;
  width: 200px;
  border-radius: 18px;
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  cursor: pointer;
}

.mm-cc-tenant-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  margin-top: 0;
}

.mm-cc-tenant-card:hover,
.mm-cc-tenant-card:focus-visible {
  border-color: rgba(61, 142, 255, 0.36);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
  outline: none;
}

.mm-cc-tenant-card.is-editing {
  border-color: rgba(245, 158, 11, 0.48);
}

.mm-cc-tenant-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

/* Акцентный градиент по верху карточки */
.mm-cc-accent-blue  { border-top: 2px solid #3d8eff; }
.mm-cc-accent-teal  { border-top: 2px solid #00c4b4; }
.mm-cc-accent-purple{ border-top: 2px solid #9b59b6; }
.mm-cc-accent-gold  { border-top: 2px solid #c9971a; }
.mm-cc-accent-red   { border-top: 2px solid #e74c3c; }

.mm-cc-tenant-initial {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.mm-cc-tenant-info {
  display: grid;
  gap: 4px;
}

.mm-cc-tenant-name {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.mm-cc-tenant-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 2px;
}

.mm-cc-tenant-note {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.56);
}

.mm-cc-tenant-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  margin-top: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.mm-cc-tenant-enter {
  appearance: none;
  border: 0;
  width: 100%;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.mm-cc-tenant-open-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(61, 142, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.mm-cc-tenant-del {
  position: static;
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mm-admin-edit-form-wrap {
  padding: 0 24px 14px;
}

.mm-admin-edit-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(61, 142, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.mm-admin-edit-form__title {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.mm-admin-edit-form label {
  display: grid;
  gap: 6px;
}

.mm-admin-edit-form label span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
}

.mm-admin-edit-form input {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.mm-entry-card[role="button"] {
  cursor: pointer;
}

.mm-entry-card[role="button"]:focus-visible,
.mm-app-icon-hit:focus-visible,
.mm-cc-tile:focus-visible,
.mm-marketplace-card:focus-visible,
.mm-platform-docs-tree__item:focus-visible,
.mm-office-tools-item[role="button"]:focus-visible,
.mm-xfm-row[role="button"]:focus-visible,
.mm-xfm-row-main:focus-visible {
  outline: 3px solid rgba(77, 124, 255, 0.42);
  outline-offset: 3px;
}

.mm-entry-card.is-editing {
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.1);
}

.mm-entry-card__actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mm-entry-card__actions .mm-mini-action {
  position: relative;
  z-index: 2;
}

.mm-card-actions-menu,
.mm-xfm-row-menu {
  position: relative;
  z-index: 6;
}

.mm-card-actions-menu summary,
.mm-xfm-row-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(19, 32, 51, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #17233c;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.mm-card-actions-menu summary::-webkit-details-marker,
.mm-xfm-row-menu summary::-webkit-details-marker {
  display: none;
}

.mm-card-actions-menu__body,
.mm-xfm-row-menu__body {
  display: none;
  position: absolute;
  top: 42px;
  right: 0;
  min-width: 190px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(19, 32, 51, 0.12);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 36px rgba(37, 55, 88, 0.16);
}

.mm-card-actions-menu[open] .mm-card-actions-menu__body,
.mm-xfm-row-menu[open] .mm-xfm-row-menu__body {
  display: grid;
}

.mm-card-actions-menu__body button,
.mm-xfm-row-menu__body button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #17233c;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.mm-card-actions-menu__body button:hover,
.mm-xfm-row-menu__body button:hover {
  background: rgba(19, 32, 51, 0.06);
}

.mm-card-actions-menu__body button.danger,
.mm-xfm-row-menu__body button.danger {
  color: #c53030;
}

.mm-entity-manage-toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(19, 32, 51, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #17233c;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.mm-entity-manage-toggle.is-compact {
  width: 34px;
  height: 34px;
}

.mm-entity-manage-toggle__dots {
  display: inline-grid;
  gap: 3px;
  justify-items: center;
}

.mm-entity-manage-toggle__dots i {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  display: block;
}

.mm-entry-card.is-managing,
.mm-pr-tenant-card.is-managing {
  cursor: default;
  border-color: rgba(59, 130, 246, 0.24);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.08);
}

.mm-entry-grid > .mm-entry-card.is-managing,
.mm-pr-tenant-list > .mm-pr-tenant-card.is-managing {
  grid-column: 1 / -1;
}

.mm-entity-manage-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(19, 32, 51, 0.1);
  background: linear-gradient(180deg, rgba(249, 251, 255, 0.98), rgba(243, 247, 253, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.mm-entity-manage-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.mm-entity-manage-panel__headline {
  display: grid;
  gap: 4px;
}

.mm-entity-manage-panel__headline strong {
  color: #17233c;
  font-size: 14px;
  font-weight: 800;
}

.mm-entity-manage-panel__headline span {
  color: #5b6b84;
  font-size: 12px;
  font-weight: 600;
}

.mm-entity-manage-panel__status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.mm-entity-manage-panel__grid {
  display: grid;
  gap: 14px;
}

.mm-entity-manage-panel__section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.84);
}

.mm-entity-manage-panel__section--danger {
  border-color: rgba(181, 31, 71, 0.14);
  background: linear-gradient(180deg, rgba(255, 249, 250, 0.94), rgba(255, 244, 246, 0.94));
}

.mm-entity-manage-panel__section-head {
  display: grid;
  gap: 4px;
}

.mm-entity-manage-panel__section-head strong {
  color: #17233c;
  font-size: 13px;
  font-weight: 800;
}

.mm-entity-manage-panel__section-head span {
  color: #5b6b84;
  font-size: 12px;
  line-height: 1.45;
}

.mm-entity-manage-panel__form {
  display: grid;
  gap: 10px;
}

.mm-entity-manage-panel__form label {
  display: grid;
  gap: 6px;
  color: #374151;
  font-weight: 700;
}

.mm-entity-manage-panel__form input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(19, 32, 51, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font: inherit;
}

.mm-entity-manage-panel__form textarea {
  min-height: 84px;
  padding: 10px 12px;
  border: 1px solid rgba(19, 32, 51, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font: inherit;
  resize: vertical;
}

.mm-entity-manage-panel__field-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.mm-entity-manage-panel__field-wide {
  grid-column: 1 / -1;
}

.mm-entity-manage-panel__details {
  display: grid;
  gap: 10px;
}

.mm-entity-manage-panel__details-summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  gap: 3px;
  color: #17233c;
}

.mm-entity-manage-panel__details-summary::-webkit-details-marker {
  display: none;
}

.mm-entity-manage-panel__details-summary strong {
  font-size: 13px;
  font-weight: 800;
}

.mm-entity-manage-panel__details-summary span {
  color: #5b6b84;
  font-size: 12px;
  line-height: 1.4;
}

.mm-entity-manage-panel__toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.mm-entity-manage-panel__toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.mm-entity-manage-panel__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mm-entity-manage-panel__section--password {
  align-content: start;
}

.mm-entity-manage-panel__section--password .mm-entity-manage-panel__form {
  gap: 12px;
}

.mm-entity-manage-panel__section--password .mm-entity-manage-panel__actions {
  display: grid;
  grid-template-columns: 1fr;
}

.mm-entity-manage-panel__section--password .mm-button-secondary {
  width: 100%;
  justify-content: center;
}

.mm-entity-manage-panel__section--availability {
  align-content: start;
}

@media (min-width: 1100px) {
  .mm-entity-manage-panel__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .mm-entity-manage-panel__section:first-child {
    grid-column: span 2;
  }

  .mm-entity-manage-panel__section--danger {
    grid-column: 1 / -1;
  }

  .mm-entity-manage-panel__section--password {
    min-width: 280px;
  }
}

.mm-pr-tenant-card__aside {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mm-screen .mm-admin-edit-form {
  border-color: rgba(19, 32, 51, 0.1);
  background: rgba(248, 250, 254, 0.96);
}

.mm-screen .mm-admin-edit-form__title {
  color: #17233c;
}

.mm-screen .mm-admin-edit-form label span {
  color: #51617d;
}

.mm-screen .mm-admin-edit-form input {
  border-color: rgba(19, 32, 51, 0.12);
  background: #fff;
  color: #17233c;
}

@media (max-width: 720px) {
  .mm-entity-manage-panel {
    padding: 14px;
    gap: 14px;
  }

  .mm-entity-manage-panel__section {
    padding: 12px;
  }
}

/* ── Форма создания тенанта ── */
.mm-cc-form-wrap {
  margin: 0;
}

.mm-cc-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mm-cc-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
}

.mm-cc-input::placeholder { color: rgba(255,255,255,0.3); }
.mm-cc-input:focus { border-color: rgba(61, 142, 255, 0.6); }

.mm-cc-form-row {
  display: flex;
  gap: 10px;
}

.mm-cc-form-submit {
  flex: 1;
  appearance: none;
  border: 0;
  background: #3d8eff;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
}

.mm-cc-form-cancel {
  appearance: none;
  border: 0;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
}

/* ── Empty state ── */
.mm-cc-empty {
  margin: 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
  text-align: center;
}

/* ── 2×2 action tiles ── */
.mm-cc-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0;
  margin-top: 0;
}

html.is-superadmin-platform .mm-main {
  padding-left: 0 !important;
  padding-bottom: 24px !important;
}

html.is-superadmin-platform .mm-cc-shell {
  padding-inline: clamp(12px, 2vw, 24px);
}

html.is-superadmin-platform .mm-cc-hero,
html.is-superadmin-platform .mm-cc-section-head,
html.is-superadmin-platform .mm-cc-summary-grid,
html.is-superadmin-platform .mm-cc-summary-domains,
html.is-superadmin-platform .mm-cc-tenant-scroll,
html.is-superadmin-platform .mm-cc-empty,
html.is-superadmin-platform .mm-cc-form-wrap,
html.is-superadmin-platform .mm-cc-tiles,
html.is-superadmin-platform .mm-cc-support-actions {
  padding-left: 0;
  padding-right: 0;
}

html[data-shell="adaptive"] .mm-cc-hero,
html[data-shell="adaptive"] .mm-cc-section-head,
html[data-shell="adaptive"] .mm-cc-summary-grid,
html[data-shell="adaptive"] .mm-cc-summary-domains,
html[data-shell="adaptive"] .mm-cc-tenant-scroll,
html[data-shell="adaptive"] .mm-cc-empty,
html[data-shell="adaptive"] .mm-cc-form-wrap,
html[data-shell="adaptive"] .mm-cc-tiles,
html[data-shell="adaptive"] .mm-cc-support-actions {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 14px;
  color: #132033;
}

html[data-shell="adaptive"] .mm-screen-platform-admin {
  padding: 16px;
}

html[data-shell="adaptive"] .mm-cc-shell,
html[data-shell="adaptive"] .mm-cc-section {
  background: transparent;
}

html[data-shell="adaptive"] .mm-cc-hero {
  padding: 12px 16px;
}

html[data-shell="adaptive"] .mm-cc-name {
  font-size: 22px;
}

html[data-shell="adaptive"] .mm-cc-greeting {
  color: rgba(19, 32, 51, 0.55);
}

html[data-shell="adaptive"] .mm-cc-summary-label {
  color: rgba(19, 32, 51, 0.55);
}

html[data-shell="adaptive"] .mm-cc-summary-value {
  color: #132033;
}

html[data-shell="adaptive"] .mm-cc-summary-card {
  background: #ffffff;
  border: 1px solid rgba(19, 32, 51, 0.08);
}

html[data-shell="adaptive"] .mm-cc-summary-domain {
  background: rgba(19, 32, 51, 0.04);
  border: 1px solid rgba(19, 32, 51, 0.08);
  color: #132033;
}

html[data-shell="adaptive"] .mm-cc-summary-domain strong,
html[data-shell="adaptive"] .mm-cc-summary-domain span {
  color: rgba(19, 32, 51, 0.7);
}

html[data-shell="adaptive"] .mm-cc-tile {
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(19, 32, 51, 0.08);
  color: #132033;
  min-height: 104px;
  padding: 16px 18px;
}

html[data-shell="adaptive"] .mm-cc-tile-icon {
  color: #132033;
}

html[data-shell="adaptive"] .mm-cc-tile-count {
  color: #132033;
}

html[data-shell="adaptive"] .mm-cc-tile-label {
  color: rgba(19, 32, 51, 0.72);
}

html[data-shell="adaptive"] .mm-cc-tenant-card {
  background: #ffffff;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(37, 55, 88, 0.05);
}

html[data-shell="adaptive"] .mm-cc-tenant-name,
html[data-shell="adaptive"] .mm-cc-tenant-sub,
html[data-shell="adaptive"] .mm-cc-tenant-note {
  color: rgba(19, 32, 51, 0.72);
}

html[data-shell="adaptive"] .mm-cc-tenant-enter {
  background: linear-gradient(135deg, #18c6d9, #4d7cff);
  color: #ffffff;
}

html[data-shell="adaptive"] .mm-cc-tenant-del {
  background: rgba(19, 32, 51, 0.06);
  color: rgba(19, 32, 51, 0.55);
}

html[data-shell="adaptive"] .mm-cc-section-title {
  color: rgba(19, 32, 51, 0.5);
}

html[data-shell="adaptive"] .mm-cc-add-btn {
  background: linear-gradient(135deg, #18c6d9, #4d7cff);
  color: #ffffff;
}

html[data-shell="adaptive"] .mm-platform-admin-section,
html[data-shell="adaptive"] .mm-platform-admin-topbar {
  box-shadow: 0 12px 28px rgba(37, 55, 88, 0.08);
}

html[data-shell="adaptive"] .mm-platform-admin-content {
  grid-template-columns: minmax(0, 1.9fr) minmax(300px, 0.85fr);
}

html[data-shell="adaptive"] .mm-platform-admin-overview {
  grid-template-columns: minmax(0, 1.9fr) minmax(300px, 0.85fr);
}

html[data-shell="adaptive"] .mm-platform-admin-section .mm-cc-summary-grid,
html[data-shell="adaptive"] .mm-platform-admin-section .mm-cc-summary-domains,
html[data-shell="adaptive"] .mm-platform-admin-section .mm-cc-tenant-scroll,
html[data-shell="adaptive"] .mm-platform-admin-section .mm-cc-form-wrap,
html[data-shell="adaptive"] .mm-platform-admin-section .mm-cc-tiles {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

html[data-shell="adaptive"] .mm-platform-admin-section .mm-cc-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

html[data-shell="adaptive"] .mm-platform-admin-section .mm-cc-tenant-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  overflow: visible;
}

html[data-shell="adaptive"] .mm-platform-admin-section .mm-cc-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (max-width: 900px) {
  html[data-shell="adaptive"] .mm-platform-admin-overview,
  html[data-shell="adaptive"] .mm-platform-admin-content {
    grid-template-columns: 1fr;
  }

  html[data-shell="adaptive"] .mm-platform-admin-topbar {
    display: grid;
  }

  html[data-shell="adaptive"] .mm-platform-admin-section .mm-cc-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

html.is-superadmin-platform .mm-cc-tenant-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  overflow: visible;
}

html.is-superadmin-platform .mm-cc-tenant-card {
  width: auto;
  min-height: 210px;
}

@media (min-width: 900px) {
  html.is-superadmin-platform .mm-cc-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  html.is-superadmin-platform .mm-cc-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-shell {
    grid-template-columns: 1fr;
  }

  html.is-superadmin-platform .mm-cc-hero {
    padding: 14px 18px 10px;
  }

  html.is-superadmin-platform .mm-cc-name {
    font-size: 28px;
    margin-bottom: 8px;
  }

  html.is-superadmin-platform .mm-cc-section-head {
    padding: 0 18px 10px;
  }

  html.is-superadmin-platform .mm-cc-tenant-scroll {
    padding: 0 18px;
  }
}

@media (max-width: 640px) {
  html.is-superadmin-platform .mm-cc-hero {
    padding: 10px 14px 8px;
  }

  html.is-superadmin-platform .mm-cc-name {
    font-size: 24px;
    margin-bottom: 8px;
  }

  html.is-superadmin-platform .mm-cc-greeting {
    font-size: 12px;
    margin-bottom: 2px;
  }

  html.is-superadmin-platform .mm-cc-pulse-item {
    padding: 4px 9px;
    font-size: 11px;
  }

  html.is-superadmin-platform .mm-cc-section-head {
    padding: 0 14px 10px;
  }

  html.is-superadmin-platform .mm-cc-tenant-scroll {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 14px;
    overflow-x: visible;
  }

  html.is-superadmin-platform .mm-cc-tenant-card {
    width: auto;
    min-height: 96px;
    padding: 14px;
  }

  html.is-superadmin-platform .mm-cc-summary-grid,
  html.is-superadmin-platform .mm-cc-tiles {
    grid-template-columns: 1fr;
  }

  html.is-superadmin-platform .mm-cc-tenant-scroll {
    grid-template-columns: 1fr;
  }

  html.is-superadmin-platform .mm-cc-summary-domain {
    flex-direction: column;
    align-items: flex-start;
  }

  html.is-superadmin-platform .mm-cc-summary-domain span {
    text-align: left;
  }
}

/* Product QA blocker follow-up: Shop Pro launch install and mobile navigation. */
html[data-shell-frame="foundation"] .mm-marketplace-installed-units {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 14px;
  background: rgba(239, 246, 255, 0.9);
}

html[data-shell-frame="foundation"] .mm-marketplace-installed-units strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  font-weight: 850;
}

html[data-shell-frame="foundation"] .mm-marketplace-installed-units span {
  color: #475569;
  font-size: 14px;
}

html[data-shell-frame="foundation"] .mm-marketplace-installed-units__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

html[data-shell-frame="foundation"] .mm-marketplace-installed-unit {
  appearance: none;
  display: grid;
  gap: 2px;
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
}

html[data-shell-frame="foundation"] .mm-marketplace-installed-unit span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 850;
}

html[data-shell-frame="foundation"] .mm-marketplace-canon-layout.has-detail {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr) !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet--inline {
  top: calc(var(--mm-hibrid-top) + 12px) !important;
  max-height: calc(100vh - var(--mm-hibrid-top) - 28px) !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-chip-row,
html[data-shell-frame="foundation"] .mm-marketplace-sheet-actions {
  margin-top: 8px !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-marketplace-visibility {
  margin-top: 8px;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet .tenant-form.mm-install-module-form,
html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form {
  display: grid !important;
  gap: 10px !important;
  margin-top: 10px !important;
  padding: 12px !important;
  border-radius: 14px !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet .marketplace-title {
  font-size: 15px !important;
  line-height: 1.2 !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-install-target {
  display: grid !important;
  gap: 8px !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-install-target__hint,
html[data-shell-frame="foundation"] .mm-marketplace-install-target__mode {
  font-size: 13px !important;
  line-height: 1.35 !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form label {
  display: grid !important;
  gap: 5px !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form input,
html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form select {
  min-height: 40px !important;
  font-size: 15px !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form input[aria-invalid="true"] {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-error {
  padding: 9px 10px;
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: 10px;
  background: rgba(254, 226, 226, 0.92);
  color: #991b1b;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form .mm-card-actions {
  position: sticky !important;
  bottom: -12px !important;
  z-index: 4 !important;
  display: flex !important;
  gap: 8px !important;
  margin: 2px -12px -12px !important;
  padding: 10px 12px !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: rgba(255, 255, 255, 0.98) !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form .mm-card-actions .mm-button {
  min-height: 42px !important;
  flex: 1 1 160px !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form .mm-card-actions .mm-button-secondary {
  min-height: 42px !important;
}

@media (max-width: 1100px) {
  html[data-shell-frame="foundation"] .mm-marketplace-canon-layout.has-detail {
    grid-template-columns: 1fr !important;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-sheet--inline {
    position: relative !important;
    top: auto !important;
    max-height: none !important;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-installed-units {
    grid-template-columns: 1fr !important;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-installed-units__list {
    justify-content: stretch;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-installed-unit {
    width: 100%;
  }

  html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-mobile-section-nav {
    display: grid !important;
    gap: 8px !important;
    margin: 0 0 12px !important;
  }

  html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-mobile-section-nav__list {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(88px, 1fr)) !important;
    gap: 8px !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-mobile-section-nav__item {
    min-width: 0 !important;
    min-height: 44px !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

@media (max-width: 640px) {
  html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-mobile-section-nav__list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-mobile-section-nav__list--views {
    grid-template-columns: 1fr !important;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form .mm-card-actions {
    position: static !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    margin: 0 !important;
    padding: 8px 0 0 !important;
    background: transparent !important;
  }
}

html[data-shell-frame="foundation"] body[data-sidebar="expanded"][data-mobile-shell="active"] .mm-shell-sidebar-backdrop,
html[data-shell-frame="foundation"] .mm-company-shell-drawer.is-open .mm-company-shell-drawer__backdrop,
html[data-shell-frame="foundation"] .mm-stage1-mobile-drawer.is-open .mm-stage1-mobile-drawer__backdrop {
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html[data-shell-frame="foundation"] body[data-mobile-shell="active"]:not([data-sidebar="expanded"]) .mm-shell-sidebar-backdrop {
  pointer-events: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.mm-cc-tile {
  appearance: none;
  border: 0;
  border-radius: 24px;
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  cursor: pointer;
  text-align: left;
  min-height: 120px;
  position: relative;
  transition: transform 0.12s, opacity 0.12s;
}

.mm-cc-tile:active {
  transform: scale(0.96);
  opacity: 0.85;
}

.mm-cc-tile-red    { background: linear-gradient(145deg, #4a1414, #c0392b); }
.mm-cc-tile-gold   { background: linear-gradient(145deg, #3a2800, #b8860b); }
.mm-cc-tile-blue   { background: linear-gradient(145deg, #0a1f4a, #2563eb); }
.mm-cc-tile-teal   { background: linear-gradient(145deg, #002e2e, #0891b2); }
.mm-cc-tile-purple { background: linear-gradient(145deg, #2d0c3e, #8b5cf6); }
.mm-cc-tile-dark   { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255,255,255,0.1); }

.mm-cc-tile-icon {
  font-size: 28px;
  line-height: 1;
}

.mm-cc-tile-count {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
}

.mm-cc-tile-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  margin-top: auto;
}

.mm-cc-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin-top: 0;
}

.mm-cc-support-action {
  appearance: none;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(19, 32, 51, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.mm-cc-support-action:hover,
.mm-cc-support-action:focus-visible {
  border-color: rgba(77, 124, 255, 0.28);
  background: rgba(238, 244, 255, 0.9);
  outline: none;
}

.mm-cc-support-action.is-alert {
  color: #8a2c2c;
  border-color: rgba(199, 56, 56, 0.22);
  background: rgba(255, 244, 244, 0.9);
}

.mm-cc-support-action--mobile-only {
  display: none;
}

@media (max-width: 899px) {
  .mm-cc-support-action--mobile-only {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ── Exchange File Manager ── */

.mm-xfm-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.mm-xfm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

.mm-xfm-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.mm-xfm-topbar-main {
  display: grid;
  gap: 4px;
  min-width: min(100%, 420px);
}

.mm-xfm-topbar-copy {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.45;
  max-width: 520px;
}

.mm-xfm-root-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mm-xfm-root-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.mm-xfm-root-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.mm-xfm-root-btn-active {
  color: #05121c;
  background: linear-gradient(135deg, #74d5ff, #c6f27e);
}

.mm-xfm-topbar-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mm-xfm-mkdir-form {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.mm-xfm-mkdir-input {
  width: 132px;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 12px;
  outline: none;
}

.mm-xfm-mkdir-input:focus {
  border-color: rgba(78, 199, 255, 0.56);
}

.mm-xfm-root-path {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.45);
  word-break: break-all;
}

.mm-xfm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.mm-xfm-breadcrumb::-webkit-scrollbar { display: none; }

.mm-xfm-crumb {
  appearance: none;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.mm-xfm-crumb:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.mm-xfm-crumb-active { color: #fff !important; }

.mm-xfm-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 11px;
}

.mm-xfm-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 0;
  position: relative;
  z-index: 1;
}

.mm-xfm-bulkbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(78, 199, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.mm-xfm-list[data-view="grid"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  padding: 12px;
  align-content: start;
}

.mm-xfm-empty {
  padding: 20px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

@media (max-width: 640px) {
  .mm-xfm-topbar {
    align-items: stretch;
  }

  .mm-xfm-root-switcher,
  .mm-xfm-topbar-actions {
    width: 100%;
  }

  .mm-xfm-root-switcher {
    justify-content: space-between;
  }

  .mm-xfm-root-btn {
    flex: 1;
    text-align: center;
  }

  .mm-xfm-topbar-actions {
    justify-content: flex-end;
  }
}

.mm-xfm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  margin: 1px 6px;
  transition: background 0.12s;
}
.mm-xfm-row[role="button"] { cursor: pointer; }
.mm-xfm-row:hover { background: rgba(255, 255, 255, 0.05); }

.mm-xfm-select,
.mm-xfm-select-spacer {
  width: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mm-xfm-select input {
  width: 16px;
  height: 16px;
  accent-color: #4ec7ff;
}

.mm-xfm-row-main,
.mm-xfm-card-open {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  width: 100%;
}

.mm-xfm-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.mm-xfm-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  min-height: 128px;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.mm-xfm-card:hover {
  transform: translateY(-1px);
  border-color: rgba(78, 199, 255, 0.22);
  background: linear-gradient(180deg, rgba(78, 199, 255, 0.09), rgba(255, 255, 255, 0.03));
}

.mm-xfm-card-open {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.mm-xfm-card-body {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mm-xfm-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.mm-xfm-info {
  flex: 1;
  min-width: 0;
}
.mm-xfm-info-dir {
  cursor: pointer;
}
.mm-xfm-info-dir:hover .mm-xfm-name {
  color: #4ec7ff;
}
.mm-xfm-info-file {
  cursor: pointer;
}
.mm-xfm-info-file:hover .mm-xfm-name {
  color: #fff;
}
.mm-xfm-row-main:hover .mm-xfm-name,
.mm-xfm-card-open:hover .mm-xfm-name {
  color: #fff;
}
.mm-xfm-row-main:hover .mm-xfm-meta,
.mm-xfm-card-open:hover .mm-xfm-meta {
  color: rgba(255, 255, 255, 0.55);
}

.mm-xfm-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.12s;
}

.mm-xfm-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 1px;
}

.mm-xfm-preview {
  margin: 10px 10px 4px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(78, 199, 255, 0.28);
  background: linear-gradient(180deg, rgba(78, 199, 255, 0.12), rgba(255, 255, 255, 0.04));
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.mm-xfm-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.mm-xfm-preview-head-main {
  min-width: 0;
}

.mm-xfm-preview-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-xfm-preview-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.48);
  margin-top: 2px;
}

.mm-xfm-preview-body {
  display: grid;
  gap: 10px;
}

.mm-xfm-preview-media {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
}

.mm-xfm-preview-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: #4ec7ff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}
.mm-xfm-preview-link:hover {
  text-decoration: underline;
}

.mm-xfm-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  opacity: 1;
  transition: opacity 0.15s;
}
.mm-xfm-row:hover .mm-xfm-actions { opacity: 1; }
.mm-xfm-card .mm-xfm-actions {
  opacity: 1;
  flex-wrap: wrap;
}

.mm-xfm-actions-static {
  opacity: 1;
}

.mm-xfm-row-menu summary {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  box-shadow: none;
}

.mm-xfm-row-menu__body {
  background: rgba(22, 28, 38, 0.98);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.32);
}

.mm-xfm-row-menu__body button {
  color: rgba(255, 255, 255, 0.88);
}

.mm-xfm-row-menu__body button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mm-xfm-rename-form-card {
  margin-top: auto;
}

.mm-xfm-btn {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.mm-xfm-btn:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.mm-xfm-btn-ok { background: rgba(92, 242, 214, 0.15); color: #5cf2d6; }
.mm-xfm-btn-ok:hover { background: rgba(92, 242, 214, 0.25); }
.mm-xfm-btn-del:hover { background: rgba(231, 76, 60, 0.25); color: #ff6b6b; }

.mm-xfm-btn-sm {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.mm-xfm-btn-sm:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.mm-xfm-btn-primary { background: rgba(78, 199, 255, 0.18); color: #4ec7ff; }
.mm-xfm-btn-primary:hover { background: rgba(78, 199, 255, 0.28); }

.mm-xfm-rename-form {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mm-xfm-rename-input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(78, 199, 255, 0.4);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  outline: none;
}
.mm-xfm-rename-input:focus { border-color: rgba(78, 199, 255, 0.7); }

.mm-xfm-editor-textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border: 1px solid rgba(78, 199, 255, 0.28);
  border-radius: 14px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.22);
  color: #f8fbff;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  outline: none;
}

.mm-xfm-editor-textarea:focus {
  border-color: rgba(78, 199, 255, 0.68);
}

.mm-xfm-upload {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(78, 199, 255, 0.06);
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

.mm-xfm-upload-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mm-xfm-upload-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.mm-xfm-upload-target {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.46);
  word-break: break-all;
}

.mm-xfm-upload-count {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.mm-xfm-upload-queue {
  display: grid;
  gap: 6px;
  max-height: 116px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.mm-xfm-upload-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
}

.mm-xfm-upload-file.is-error {
  background: rgba(231, 76, 60, 0.14);
}

.mm-xfm-upload-file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
}

.mm-xfm-upload-file-meta,
.mm-xfm-upload-empty {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  line-height: 1.35;
}

.mm-xfm-upload-status {
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(92, 242, 214, 0.13);
  color: #5cf2d6;
  font-size: 12px;
  font-weight: 800;
}

.mm-xfm-upload-status.is-loading {
  background: rgba(78, 199, 255, 0.14);
  color: #4ec7ff;
}

.mm-xfm-upload-status.is-error {
  background: rgba(231, 76, 60, 0.14);
  color: #ff6b6b;
}

.mm-xfm-upload-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mm-xfm-file-label {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.mm-xfm-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.mm-xfm-file-text {
  display: block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.15s, color 0.15s;
}
.mm-xfm-file-label:hover .mm-xfm-file-text {
  border-color: rgba(78, 199, 255, 0.4);
  color: rgba(255, 255, 255, 0.7);
}

.mm-xfm-btn-sm:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

html[data-shell="adaptive"] .mm-xfm-shell,
html.is-superadmin-platform .mm-xfm-shell {
  background: #ffffff;
  border: 1px solid rgba(19, 32, 51, 0.08);
  box-shadow: 0 18px 42px rgba(37, 55, 88, 0.08);
}

html[data-shell="adaptive"] .mm-xfm-topbar,
html[data-shell="adaptive"] .mm-xfm-breadcrumb,
html[data-shell="adaptive"] .mm-xfm-bulkbar,
html[data-shell="adaptive"] .mm-xfm-upload,
html.is-superadmin-platform .mm-xfm-topbar,
html.is-superadmin-platform .mm-xfm-breadcrumb,
html.is-superadmin-platform .mm-xfm-bulkbar,
html.is-superadmin-platform .mm-xfm-upload {
  border-color: rgba(19, 32, 51, 0.08);
}

html[data-shell="adaptive"] .mm-xfm-topbar,
html.is-superadmin-platform .mm-xfm-topbar {
  background: linear-gradient(180deg, rgba(244, 248, 255, 0.96), rgba(255, 255, 255, 0.98));
}

html[data-shell="adaptive"] .mm-xfm-breadcrumb,
html.is-superadmin-platform .mm-xfm-breadcrumb {
  background: rgba(244, 248, 255, 0.84);
}

html[data-shell="adaptive"] .mm-xfm-title,
html[data-shell="adaptive"] .mm-xfm-upload-title,
html[data-shell="adaptive"] .mm-xfm-preview-title,
html[data-shell="adaptive"] .mm-xfm-name,
html[data-shell="adaptive"] .mm-xfm-root-path,
html[data-shell="adaptive"] .mm-xfm-topbar-copy,
html.is-superadmin-platform .mm-xfm-title,
html.is-superadmin-platform .mm-xfm-upload-title,
html.is-superadmin-platform .mm-xfm-preview-title,
html.is-superadmin-platform .mm-xfm-name,
html.is-superadmin-platform .mm-xfm-root-path,
html.is-superadmin-platform .mm-xfm-topbar-copy {
  color: #132033;
}

html[data-shell="adaptive"] .mm-xfm-meta,
html[data-shell="adaptive"] .mm-xfm-preview-meta,
html[data-shell="adaptive"] .mm-xfm-empty,
html[data-shell="adaptive"] .mm-xfm-sep,
html[data-shell="adaptive"] .mm-xfm-crumb,
html[data-shell="adaptive"] .mm-xfm-file-text,
html[data-shell="adaptive"] .mm-xfm-upload-target,
html[data-shell="adaptive"] .mm-xfm-upload-count,
html[data-shell="adaptive"] .mm-xfm-upload-file-meta,
html[data-shell="adaptive"] .mm-xfm-upload-empty,
html[data-shell="adaptive"] .mm-xfm-bulkbar,
html.is-superadmin-platform .mm-xfm-meta,
html.is-superadmin-platform .mm-xfm-preview-meta,
html.is-superadmin-platform .mm-xfm-empty,
html.is-superadmin-platform .mm-xfm-sep,
html.is-superadmin-platform .mm-xfm-crumb,
html.is-superadmin-platform .mm-xfm-file-text,
html.is-superadmin-platform .mm-xfm-upload-target,
html.is-superadmin-platform .mm-xfm-upload-count,
html.is-superadmin-platform .mm-xfm-upload-file-meta,
html.is-superadmin-platform .mm-xfm-upload-empty,
html.is-superadmin-platform .mm-xfm-bulkbar {
  color: rgba(19, 32, 51, 0.62);
}

html[data-shell="adaptive"] .mm-xfm-bulkbar,
html.is-superadmin-platform .mm-xfm-bulkbar {
  background: rgba(77, 124, 255, 0.08);
}

html[data-shell="adaptive"] .mm-xfm-upload,
html.is-superadmin-platform .mm-xfm-upload {
  background: rgba(77, 124, 255, 0.06);
}

html[data-shell="adaptive"] .mm-xfm-upload-count,
html[data-shell="adaptive"] .mm-xfm-upload-file,
html.is-superadmin-platform .mm-xfm-upload-count,
html.is-superadmin-platform .mm-xfm-upload-file {
  background: rgba(19, 32, 51, 0.05);
}

html[data-shell="adaptive"] .mm-xfm-upload-file.is-error,
html.is-superadmin-platform .mm-xfm-upload-file.is-error {
  background: rgba(221, 69, 69, 0.12);
}

html[data-shell="adaptive"] .mm-xfm-upload-file-name,
html.is-superadmin-platform .mm-xfm-upload-file-name {
  color: #132033;
}

html[data-shell="adaptive"] .mm-xfm-upload-status,
html.is-superadmin-platform .mm-xfm-upload-status {
  background: rgba(19, 180, 150, 0.12);
  color: #087f68;
}

html[data-shell="adaptive"] .mm-xfm-upload-status.is-loading,
html.is-superadmin-platform .mm-xfm-upload-status.is-loading {
  background: rgba(77, 124, 255, 0.12);
  color: #2553c7;
}

html[data-shell="adaptive"] .mm-xfm-upload-status.is-error,
html.is-superadmin-platform .mm-xfm-upload-status.is-error {
  background: rgba(221, 69, 69, 0.12);
  color: #b42318;
}

html[data-shell="adaptive"] .mm-xfm-root-switcher,
html.is-superadmin-platform .mm-xfm-root-switcher {
  background: rgba(19, 32, 51, 0.04);
  border-color: rgba(19, 32, 51, 0.08);
}

html[data-shell="adaptive"] .mm-xfm-root-btn,
html.is-superadmin-platform .mm-xfm-root-btn {
  color: rgba(19, 32, 51, 0.68);
}

html[data-shell="adaptive"] .mm-xfm-root-btn:hover,
html[data-shell="adaptive"] .mm-xfm-crumb:hover,
html[data-shell="adaptive"] .mm-xfm-row:hover,
html.is-superadmin-platform .mm-xfm-root-btn:hover,
html.is-superadmin-platform .mm-xfm-crumb:hover,
html.is-superadmin-platform .mm-xfm-row:hover {
  color: #132033;
  background: rgba(19, 32, 51, 0.05);
}

html[data-shell="adaptive"] .mm-xfm-crumb-active,
html[data-shell="adaptive"] .mm-xfm-row-main:hover .mm-xfm-name,
html[data-shell="adaptive"] .mm-xfm-card-open:hover .mm-xfm-name,
html[data-shell="adaptive"] .mm-xfm-info-file:hover .mm-xfm-name,
html.is-superadmin-platform .mm-xfm-crumb-active,
html.is-superadmin-platform .mm-xfm-row-main:hover .mm-xfm-name,
html.is-superadmin-platform .mm-xfm-card-open:hover .mm-xfm-name,
html.is-superadmin-platform .mm-xfm-info-file:hover .mm-xfm-name {
  color: #132033 !important;
}

html[data-shell="adaptive"] .mm-xfm-row-main:hover .mm-xfm-meta,
html[data-shell="adaptive"] .mm-xfm-card-open:hover .mm-xfm-meta,
html.is-superadmin-platform .mm-xfm-row-main:hover .mm-xfm-meta,
html.is-superadmin-platform .mm-xfm-card-open:hover .mm-xfm-meta {
  color: rgba(19, 32, 51, 0.74);
}

html[data-shell="adaptive"] .mm-xfm-card,
html.is-superadmin-platform .mm-xfm-card {
  border-color: rgba(19, 32, 51, 0.08);
  background: linear-gradient(180deg, #ffffff, #f7faff);
}

html[data-shell="adaptive"] .mm-xfm-card:hover,
html.is-superadmin-platform .mm-xfm-card:hover {
  border-color: rgba(77, 124, 255, 0.24);
  background: linear-gradient(180deg, #f8fcff, #eef5ff);
}

html[data-shell="adaptive"] .mm-xfm-preview,
html.is-superadmin-platform .mm-xfm-preview {
  border-color: rgba(77, 124, 255, 0.18);
  background: linear-gradient(180deg, rgba(77, 124, 255, 0.08), rgba(24, 198, 217, 0.04));
}

html[data-shell="adaptive"] .mm-xfm-preview-media,
html[data-shell="adaptive"] .mm-xfm-editor-textarea,
html.is-superadmin-platform .mm-xfm-preview-media,
html.is-superadmin-platform .mm-xfm-editor-textarea {
  background: #f7faff;
}

html[data-shell="adaptive"] .mm-xfm-editor-textarea,
html[data-shell="adaptive"] .mm-xfm-rename-input,
html[data-shell="adaptive"] .mm-xfm-mkdir-input,
html.is-superadmin-platform .mm-xfm-editor-textarea,
html.is-superadmin-platform .mm-xfm-rename-input,
html.is-superadmin-platform .mm-xfm-mkdir-input {
  border-color: rgba(19, 32, 51, 0.12);
  color: #132033;
}

html[data-shell="adaptive"] .mm-xfm-mkdir-input,
html.is-superadmin-platform .mm-xfm-mkdir-input {
  background: rgba(244, 248, 255, 0.96);
}

html[data-shell="adaptive"] .mm-xfm-btn,
html[data-shell="adaptive"] .mm-xfm-btn-sm,
html.is-superadmin-platform .mm-xfm-btn,
html.is-superadmin-platform .mm-xfm-btn-sm {
  background: rgba(19, 32, 51, 0.06);
  color: #132033;
}

html[data-shell="adaptive"] .mm-xfm-btn:hover,
html[data-shell="adaptive"] .mm-xfm-btn-sm:hover,
html.is-superadmin-platform .mm-xfm-btn:hover,
html.is-superadmin-platform .mm-xfm-btn-sm:hover {
  background: rgba(19, 32, 51, 0.11);
  color: #132033;
}

html[data-shell="adaptive"] .mm-xfm-file-text,
html.is-superadmin-platform .mm-xfm-file-text {
  background: rgba(244, 248, 255, 0.96);
  border-color: rgba(19, 32, 51, 0.14);
}

@media (max-width: 900px) {
  .mm-xfm-topbar,
  .mm-xfm-upload {
    flex-wrap: wrap;
  }

  .mm-xfm-topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .mm-xfm-list[data-view="grid"] {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 640px) {
  .mm-xfm-shell {
    border-radius: 16px;
  }

  .mm-xfm-row {
    align-items: flex-start;
    gap: 8px;
    padding: 10px 10px;
  }

  .mm-xfm-actions {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 112px;
  }

  .mm-xfm-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .mm-xfm-btn-sm {
    min-height: 36px;
    padding: 8px 11px;
  }

  .mm-xfm-upload {
    position: sticky;
    bottom: 0;
    max-height: min(46vh, 360px);
    padding: 14px;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -18px 36px rgba(8, 19, 32, 0.14);
  }

  .mm-xfm-upload-head,
  .mm-xfm-upload-actions {
    display: grid;
    gap: 8px;
  }

  .mm-xfm-upload-count {
    justify-self: start;
  }

  .mm-xfm-upload-queue {
    max-height: 132px;
  }

  .mm-xfm-upload-file {
    align-items: flex-start;
    display: grid;
  }

  .mm-xfm-upload-file-name {
    white-space: normal;
    word-break: break-word;
  }

  .mm-xfm-file-label,
  .mm-xfm-upload .mm-xfm-btn-sm,
  .mm-xfm-mkdir-form,
  .mm-xfm-mkdir-input {
    width: 100%;
  }

  .mm-xfm-upload .mm-xfm-btn-sm,
  .mm-xfm-file-text {
    min-height: 44px;
  }

  .mm-xfm-mkdir-form {
    align-items: stretch;
  }

  .mm-xfm-file-text {
    padding: 10px 12px;
  }

  .mm-xfm-bulkbar {
    align-items: stretch;
  }

  .mm-xfm-bulkbar .mm-xfm-btn-sm {
    flex: 1 1 45%;
  }
}

body.mm-supplier-portal .mm-main {
  max-width: 1080px;
  margin: 0 auto;
}

body.mm-client-portal .mm-main {
  max-width: 1080px;
  margin: 0 auto;
}

.mm-client-shell {
  display: grid;
  gap: 16px;
  padding: 8px 0 24px;
}

.mm-client-hero {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(78, 199, 255, 0.16);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(16, 24, 40, 0.98), rgba(11, 64, 74, 0.92));
  color: #f8fbff;
}

.mm-client-hero h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.mm-client-hero p {
  margin: 4px 0 0;
  color: rgba(248, 251, 255, 0.78);
}

.mm-client-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 251, 255, 0.72);
}

.mm-client-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mm-client-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fbff;
  font-size: 13px;
}

.mm-client-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mm-client-stat {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--mm-border);
  background: var(--mm-surface);
}

.mm-client-stat span,
.mm-client-section-head p,
.mm-client-order-meta,
.mm-client-order-item__name span {
  color: var(--mm-text-muted);
  font-size: 13px;
}

.mm-client-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  line-height: 1.05;
}

.mm-client-orders {
  display: grid;
  gap: 12px;
}

.mm-client-section-head h2 {
  margin: 0;
  font-size: 22px;
}

.mm-client-section-head p {
  margin: 4px 0 0;
}

.mm-client-order-card {
  border: 1px solid var(--mm-border);
  border-radius: 20px;
  background: var(--mm-surface);
  overflow: hidden;
  box-shadow: var(--mm-shadow);
}

.mm-client-order-head {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.mm-client-order-head-main {
  min-width: 0;
}

.mm-client-order-id {
  font-size: 13px;
  font-weight: 800;
  word-break: break-all;
}

.mm-client-order-head-aside {
  text-align: right;
}

.mm-client-order-head-aside strong {
  display: block;
  font-size: 20px;
}

.mm-client-order-head-aside span {
  color: var(--mm-text-muted);
  font-size: 12px;
}

.mm-client-order-toggle {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--mm-border);
  background: var(--mm-surface-strong);
  color: var(--mm-text);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.mm-client-order-body {
  display: none;
  padding: 0 18px 18px;
  border-top: 1px solid var(--mm-border);
}

.mm-client-order-card.is-open .mm-client-order-body {
  display: block;
}

.mm-client-order-items {
  display: grid;
  gap: 10px;
  padding-top: 16px;
}

.mm-client-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.mm-client-order-item__name {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mm-client-order-item__name strong {
  font-size: 14px;
}

.mm-client-order-item__total {
  font-weight: 800;
  color: var(--mm-text);
  white-space: nowrap;
}

.mm-supplier-shell {
  display: grid;
  gap: 16px;
  padding: 8px 0 24px;
}

.mm-supplier-hero {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(58, 117, 255, 0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(22, 34, 58, 0.96), rgba(14, 77, 92, 0.88));
  color: #f8fbff;
}

.mm-supplier-hero-copy {
  display: grid;
  gap: 6px;
}

.mm-supplier-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mm-supplier-hero h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.mm-supplier-hero p {
  margin: 4px 0 0;
  color: rgba(248, 251, 255, 0.78);
}

.mm-supplier-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 251, 255, 0.72);
}

.mm-supplier-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mm-supplier-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fbff;
  font-size: 13px;
}

.mm-supplier-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mm-supplier-stat,
.mm-supplier-order-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--mm-border);
  background: var(--mm-surface);
}

.mm-supplier-stat span,
.mm-supplier-order-meta,
.mm-supplier-section-head p,
.mm-supplier-order-done {
  color: var(--mm-text-muted);
  font-size: 13px;
}

.mm-supplier-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  line-height: 1;
}

.mm-supplier-orders {
  display: grid;
  gap: 12px;
}

.mm-supplier-section-head h2 {
  margin: 0;
  font-size: 22px;
}

.mm-supplier-section-head p {
  margin: 4px 0 0;
}

.mm-supplier-order-top,
.mm-supplier-order-head,
.mm-supplier-order-item,
.mm-supplier-order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mm-supplier-order-head {
  align-items: flex-start;
}

.mm-supplier-order-id {
  font-size: 13px;
  font-weight: 700;
  word-break: break-all;
}

.mm-supplier-order-amount {
  text-align: right;
}

.mm-supplier-order-balance {
  text-align: right;
}

.mm-supplier-order-amount strong {
  display: block;
  font-size: 20px;
}

.mm-supplier-order-balance strong {
  display: block;
  font-size: 20px;
}

.mm-supplier-order-amount span {
  color: var(--mm-text-muted);
  font-size: 12px;
}

.mm-supplier-order-balance span {
  color: var(--mm-text-muted);
  font-size: 12px;
}

.mm-supplier-order-items {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--mm-border);
}

.mm-supplier-order-item {
  font-size: 14px;
}

.mm-supplier-order-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--mm-border);
}

@media (max-width: 900px) {
  .mm-client-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mm-client-order-head {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .mm-client-order-head-aside {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .mm-client-stats {
    grid-template-columns: 1fr;
  }

  .mm-client-order-head {
    padding: 14px 16px;
  }

  .mm-client-order-body {
    padding: 0 16px 16px;
  }
}

.mm-shoppro-workspace-overview {
  display: grid;
  gap: 16px;
}

.mm-shoppro-workspace-overview__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.mm-shoppro-workspace-overview__stat {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.mm-shoppro-workspace-overview__stat span {
  display: block;
  color: var(--mm-text-muted);
  font-size: 12px;
}

.mm-shoppro-workspace-overview__stat strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  line-height: 1;
}

.mm-shoppro-workspace-overview__hint {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(78, 199, 255, 0.08);
  color: #51617d;
  font-size: 14px;
  line-height: 1.45;
}

.mm-shoppro-sections-overview {
  display: grid;
  gap: 16px;
}

.mm-shoppro-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.mm-shoppro-section-card {
  appearance: none;
  display: grid;
  gap: 10px;
  text-align: left;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,255,0.96));
  color: #17233c;
  box-shadow: 0 18px 38px rgba(37, 55, 88, 0.08);
  cursor: pointer;
}

.mm-shoppro-section-card.is-active {
  border-color: rgba(77, 124, 255, 0.32);
  background:
    radial-gradient(circle at top right, rgba(24, 198, 217, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,1), rgba(237,246,255,0.98));
  box-shadow: 0 18px 38px rgba(77, 124, 255, 0.14);
}

.mm-shoppro-section-card__eyebrow {
  color: #7d8aa5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mm-shoppro-section-card strong {
  font-size: 22px;
  line-height: 1.05;
}

.mm-shoppro-section-card__note {
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
}

.mm-shoppro-section-card__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 44px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #18c6d9, #4d7cff);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.mm-shoppro-section-shell {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 26px rgba(37, 55, 88, 0.06);
}

.mm-shoppro-section-shell__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mm-shoppro-section-shell__breadcrumb {
  color: #7d8aa5;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.mm-shoppro-section-shell__eyebrow {
  color: #7d8aa5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mm-shoppro-section-shell__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mm-shoppro-section-shell__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mm-shoppro-section-shell__title {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.mm-shoppro-section-shell__title h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.05;
}

.mm-shoppro-section-shell__title p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.35;
}

.mm-shoppro-section-shell__primary {
  display: flex;
  justify-content: flex-start;
}

.mm-shoppro-section-shell__primary-button {
  min-height: 38px;
  padding-inline: 14px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.14);
}

.mm-shoppro-section-shell__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mm-shoppro-section-shell__stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  background: rgba(245, 248, 255, 0.92);
  white-space: nowrap;
}

.mm-shoppro-section-shell__stat span:last-child {
  color: #667085;
  font-size: 11px;
}

.mm-shoppro-section-shell__stat strong {
  color: #17233c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.mm-shoppro-section-shell__stat.is-active {
  border-color: rgba(77, 124, 255, 0.24);
  background: rgba(77, 124, 255, 0.1);
}

.mm-shoppro-section-shell__views {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mm-shoppro-section-shell__view {
  appearance: none;
  border: 1px solid rgba(19, 32, 51, 0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #243556;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mm-shoppro-section-shell__view span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
}

.mm-shoppro-section-shell__view.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #18c6d9, #4d7cff);
  color: #fff;
  box-shadow: 0 12px 24px rgba(77, 124, 255, 0.18);
}

.mm-shoppro-section-shell__view.is-active span {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

.mm-shoppro-section-shell .mm-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  align-content: start;
}

.mm-shoppro-section-shell .mm-card-item {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.mm-shoppro-section-shell .mm-card-item h3,
.mm-shoppro-section-shell .mm-card-item p {
  margin: 0;
}

.mm-shoppro-create-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 24px;
}

.mm-shoppro-create-overlay__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
}

.mm-shoppro-create-overlay__panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(88dvh, 920px);
  overflow: auto;
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(246,249,255,0.98));
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.mm-shoppro-create-overlay__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mm-shoppro-create-overlay__eyebrow {
  color: #7d8aa5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.mm-shoppro-create-overlay__head h2 {
  margin: 0;
  color: #17233c;
  font-size: 24px;
  line-height: 1.08;
}

.mm-shoppro-create-overlay__head p {
  margin: 8px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
}

.mm-shoppro-create-overlay__body {
  display: grid;
  gap: 12px;
}

.mm-shoppro-create-overlay__body form,
.mm-shoppro-create-overlay__body .mm-process-workspace__intro {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.mm-shoppro-create-overlay__body label {
  display: grid;
  gap: 6px;
}

.mm-shoppro-create-overlay__body label span {
  color: #51617d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.mm-shoppro-create-overlay__body input,
.mm-shoppro-create-overlay__body select,
.mm-shoppro-create-overlay__body textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(19, 32, 51, 0.12);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.98));
  color: #17233c;
  font-size: 14px;
  line-height: 1.35;
}

.mm-shoppro-create-overlay__body textarea {
  min-height: 100px;
  resize: vertical;
}

.mm-unit-shell {
  display: grid;
  gap: 12px;
  align-content: start;
}

.mm-unit-shell__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
  box-shadow: 0 18px 38px rgba(37, 55, 88, 0.08);
}

.mm-unit-shell__hero--compact {
  align-items: center;
}

.mm-unit-shell__hero-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.mm-unit-shell-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.mm-unit-shell-badge--shop {
  background: #e8f7ff;
  color: #075985;
}

.mm-unit-shell-badge--intake {
  background: #eafaf1;
  color: #166534;
}

.mm-unit-shell-badge--logistics {
  background: #fff4df;
  color: #92400e;
}

.mm-unit-shell-badge--neutral {
  background: #eef2f7;
  color: #51617d;
}

.mm-unit-shell__hero-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mm-unit-shell__eyebrow,
.mm-unit-module-shell__eyebrow,
.mm-unit-safe-state__eyebrow {
  margin: 0;
  color: #5c6d89;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mm-unit-shell__hero-copy h2,
.mm-unit-module-shell__head h3,
.mm-unit-safe-state h3 {
  margin: 0;
  color: #17233c;
  line-height: 1.06;
}

.mm-unit-shell__hero-copy h2 {
  font-size: clamp(22px, 2vw, 30px);
}

.mm-unit-shell__hero-copy p:last-child,
.mm-unit-module-shell__head p,
.mm-unit-safe-state p {
  margin: 0;
  color: #4f5f79;
  font-size: 14px;
  line-height: 1.45;
}

.mm-unit-shell__hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.mm-unit-shell__layout {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.mm-unit-shell__nav,
.mm-unit-module-shell,
.mm-unit-safe-state {
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 38px rgba(37, 55, 88, 0.08);
}

.mm-unit-shell__nav {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
}

.mm-unit-shell__nav-title {
  color: #17233c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mm-unit-shell__nav-list {
  display: grid;
  gap: 8px;
}

.mm-unit-shell__nav-item {
  appearance: none;
  width: 100%;
  display: grid;
  gap: 4px;
  text-align: left;
  min-height: 60px;
  padding: 11px 13px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: #17233c;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.mm-unit-shell__nav-item:hover {
  transform: translateY(-1px);
  border-color: rgba(77, 124, 255, 0.24);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.08);
}

.mm-unit-shell__nav-item strong {
  font-size: 14px;
  line-height: 1.25;
}

.mm-unit-shell__nav-item span {
  color: #52637f;
  font-size: 12px;
  line-height: 1.45;
}

.mm-unit-shell__nav-item.is-active {
  border-color: rgba(77, 124, 255, 0.24);
  background: #edf3ff;
}

.mm-unit-shell__nav-item.is-disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

.mm-unit-shell__content {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.mm-unit-module-shell {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.mm-unit-module-shell__head {
  display: grid;
  gap: 6px;
}

.mm-unit-module-shell__head-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mm-unit-module-shell__views {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mm-unit-module-shell__views[data-single-view="true"] {
  display: none;
}

.mm-unit-module-shell__view {
  appearance: none;
  border: 1px solid rgba(19, 32, 51, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #243556;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mm-unit-module-shell__view span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
}

.mm-unit-module-shell__view.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #18c6d9, #4d7cff);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(77, 124, 255, 0.18);
}

.mm-unit-module-shell__view.is-active span {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

.mm-unit-module-shell__body {
  display: grid;
  gap: 12px;
}

.mm-shoppro-section-shell {
  display: grid;
  gap: 14px;
}

.mm-shoppro-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.mm-shoppro-toolbar__filters,
.mm-shoppro-toolbar__actions {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}

.mm-shoppro-toolbar__search,
.mm-shoppro-toolbar__select {
  display: grid;
  gap: 6px;
}

.mm-shoppro-toolbar__search {
  min-width: min(320px, 100%);
  flex: 1 1 260px;
}

.mm-shoppro-toolbar__search span,
.mm-shoppro-toolbar__select span {
  color: #445672;
  font-size: 12px;
  font-weight: 800;
}

.mm-shoppro-toolbar__search input,
.mm-shoppro-toolbar__select select {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid rgba(19, 32, 51, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  color: #17233c;
  font: inherit;
}

.mm-shoppro-toolbar__metric {
  display: inline-grid;
  gap: 2px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.mm-shoppro-toolbar__metric strong {
  color: #17233c;
  font-size: 13px;
  font-weight: 800;
}

.mm-shoppro-toolbar__metric span {
  color: #5b6d89;
  font-size: 11px;
  font-weight: 700;
}

.mm-shoppro-toolbar__metric--alert {
  border-color: rgba(245, 107, 61, 0.24);
  background: rgba(255, 244, 238, 0.98);
}

.mm-shoppro-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  gap: 14px;
  align-items: start;
}

.mm-shoppro-workspace-grid__list,
.mm-shoppro-workspace-grid__detail {
  min-width: 0;
}

.mm-business-point-shell {
  display: grid;
  gap: 14px;
}

.mm-business-point-shell__layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.mm-business-point-shell__nav {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.mm-business-point-shell__nav-item {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 12px;
  border: 1px solid rgba(19, 32, 51, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #22314f;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.mm-business-point-shell__nav-item.is-active {
  border-color: rgba(37, 99, 235, 0.48);
  background: rgba(219, 234, 254, 0.86);
  color: #0f172a;
}

.mm-business-point-shell__content {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.mm-business-point-shell__meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mm-business-point-shell__section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
}

.mm-business-point-shell__section p {
  margin: 0;
  color: #4d5f7c;
}

.mm-business-point-shell__section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mm-business-point-shell__section-head h3 {
  margin: 4px 0 0;
  color: #17233c;
  font-size: 22px;
  line-height: 1.15;
}

.mm-business-point-shell__note {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px dashed rgba(19, 32, 51, 0.16);
  border-radius: 14px;
  background: rgba(248, 250, 255, 0.92);
}

.mm-business-point-shell__note strong {
  color: #17233c;
  font-size: 13px;
}

.mm-business-point-shell__note span {
  color: #5c6d87;
  font-size: 13px;
}

.mm-business-point-shell__footnote {
  color: #62728c;
  font-size: 12px;
}

.mm-bp-operations-shell {
  display: grid;
  gap: 12px;
}

.mm-bp-operations-shell--employees .mm-company-employees-panel {
  margin: 0;
}

.mm-bp-operations-view-switch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.mm-bp-operations-view-switch__item {
  min-height: 54px;
  display: grid;
  gap: 2px;
  align-content: center;
  justify-items: start;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid rgba(19, 32, 51, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #22314f;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.mm-bp-operations-view-switch__item strong {
  font-size: 13px;
  line-height: 1.2;
}

.mm-bp-operations-view-switch__item span {
  color: #5d6f8b;
  font-size: 12px;
  font-weight: 700;
}

.mm-bp-operations-view-switch__item.is-active {
  border-color: rgba(37, 99, 235, 0.44);
  background: rgba(219, 234, 254, 0.86);
  color: #0f172a;
}

.mm-bp-catalog-shell {
  display: grid;
  gap: 12px;
}

.mm-bp-catalog-toolbar {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.mm-bp-catalog-toolbar__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mm-bp-catalog-toolbar__head h4 {
  margin: 4px 0 0;
  color: #17233c;
  font-size: 21px;
  line-height: 1.15;
}

.mm-bp-catalog-toolbar__head p {
  margin: 6px 0 0;
  color: #51627f;
  font-size: 13px;
}

.mm-bp-catalog-toolbar__actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.mm-bp-catalog-toolbar__metrics {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.mm-bp-catalog-toolbar__filters {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}

.mm-bp-catalog-toolbar__field {
  display: grid;
  gap: 6px;
}

.mm-bp-catalog-toolbar__field span {
  color: #445672;
  font-size: 12px;
  font-weight: 800;
}

.mm-bp-catalog-toolbar__field input,
.mm-bp-catalog-toolbar__field select {
  min-height: 42px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(19, 32, 51, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  color: #17233c;
  font: inherit;
}

.mm-bp-catalog-toolbar__field--search {
  min-width: min(360px, 100%);
  flex: 1 1 280px;
}

.mm-bp-catalog-layout {
  display: grid;
  grid-template-columns: minmax(220px, 250px) minmax(0, 1fr) minmax(280px, 340px);
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.mm-bp-catalog-tree,
.mm-bp-catalog-list,
.mm-bp-catalog-detail {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(19, 32, 51, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
}

.mm-bp-catalog-tree {
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.mm-bp-catalog-tree__head,
.mm-bp-catalog-list__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mm-bp-catalog-tree__head strong,
.mm-bp-catalog-list__head strong {
  color: #17233c;
  font-size: 14px;
}

.mm-bp-catalog-tree__head span,
.mm-bp-catalog-list__head span {
  color: #677991;
  font-size: 12px;
  font-weight: 700;
}

.mm-bp-catalog-tree__list,
.mm-bp-catalog-list__rows {
  display: grid;
  gap: 8px;
}

.mm-bp-catalog-tree__node {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 10px 8px calc(10px + (var(--mm-bp-tree-level, 0) * 16px));
  border: 1px solid rgba(19, 32, 51, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #25344e;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.mm-bp-catalog-tree__node strong {
  color: inherit;
  font-size: 13px;
}

.mm-bp-catalog-tree__node span {
  color: #687a92;
  font-size: 12px;
  font-weight: 700;
}

.mm-bp-catalog-tree__node:hover,
.mm-bp-catalog-tree__node:focus-visible {
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(239, 246, 255, 0.86);
  outline: none;
}

.mm-bp-catalog-tree__node.is-active {
  border-color: rgba(37, 99, 235, 0.46);
  background: rgba(219, 234, 254, 0.82);
  color: #0f172a;
}

.mm-bp-catalog-list {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 249, 255, 0.95));
}

.mm-bp-catalog-list__row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(19, 32, 51, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.mm-bp-catalog-list__row:hover,
.mm-bp-catalog-list__row:focus-visible {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12);
  outline: none;
}

.mm-bp-catalog-list__row.is-active {
  border-color: rgba(37, 99, 235, 0.46);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.14);
}

.mm-bp-catalog-list__main {
  display: grid;
  gap: 2px;
}

.mm-bp-catalog-list__main strong {
  color: #17233c;
  font-size: 14px;
}

.mm-bp-catalog-list__main span {
  color: #667085;
  font-size: 12px;
}

.mm-bp-catalog-list__chips {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.mm-bp-catalog-list__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #4f5f79;
  font-size: 12px;
}

.mm-bp-catalog-list__empty,
.mm-bp-catalog-detail__empty {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px dashed rgba(19, 32, 51, 0.2);
  border-radius: 14px;
  color: #667085;
  font-size: 13px;
}

.mm-bp-catalog-detail {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 248, 255, 0.98));
}

.mm-bp-catalog-detail__head h4 {
  margin: 4px 0 0;
  color: #17233c;
  font-size: 20px;
  line-height: 1.12;
}

.mm-bp-catalog-detail__head p {
  margin: 6px 0 0;
  color: #51627f;
  font-size: 13px;
}

.mm-bp-catalog-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mm-bp-catalog-detail__fact {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(19, 32, 51, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
}

.mm-bp-catalog-detail__fact strong {
  color: #17233c;
  font-size: 12px;
}

.mm-bp-catalog-detail__fact span {
  color: #51627f;
  font-size: 13px;
}

.mm-bp-catalog-detail__tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 1240px) {
  .mm-bp-catalog-layout {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  }

  .mm-bp-catalog-detail {
    grid-column: 1 / -1;
  }
}

.mm-bp-wave2-shell {
  position: relative;
  overflow: hidden;
}

.mm-bp-wave2-toolbar {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.mm-bp-wave2-toolbar__row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.mm-bp-wave2-toolbar__views {
  display: inline-flex;
  gap: 8px;
}

.mm-bp-wave2-toolbar__views .mm-button-secondary.is-active {
  border-color: rgba(36, 99, 235, 0.38);
  background: rgba(219, 234, 254, 0.72);
}

.mm-bp-wave2-toolbar__metrics {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mm-bp-wave2-toolbar__controls {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  flex: 1 1 auto;
}

.mm-bp-wave2-toolbar__field {
  display: grid;
  gap: 6px;
}

.mm-bp-wave2-toolbar__field span {
  color: #445672;
  font-size: 12px;
  font-weight: 800;
}

.mm-bp-wave2-toolbar__field input,
.mm-bp-wave2-toolbar__field select {
  min-height: 42px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(19, 32, 51, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  color: #17233c;
  font: inherit;
}

.mm-bp-wave2-toolbar__field--search {
  min-width: min(320px, 100%);
  flex: 1 1 260px;
}

.mm-bp-wave2-toolbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mm-bp-wave2-toolbar__actions .mm-button-secondary[disabled] {
  opacity: 0.55;
  cursor: default;
}

.mm-bp-wave2-toolbar__hint {
  color: #667085;
  font-size: 12px;
}

.mm-bp-wave2-workspace {
  min-width: 0;
}

.mm-bp-wave2-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 4px;
}

.mm-bp-wave2-column {
  display: grid;
  gap: 10px;
  min-height: 260px;
  padding: 12px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.94));
}

.mm-bp-wave2-column__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mm-bp-wave2-column__head strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #17233c;
  font-size: 14px;
}

.mm-bp-wave2-column__swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(19, 32, 51, 0.2);
}

.mm-bp-wave2-column__head span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.mm-bp-wave2-column__body {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 180px;
  padding: 6px;
  border-radius: 14px;
  border: 1px dashed rgba(103, 120, 147, 0.2);
  background: rgba(255, 255, 255, 0.58);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.mm-bp-wave2-column__body.is-active {
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(219, 234, 254, 0.52);
}

.mm-bp-wave2-column__empty {
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(19, 32, 51, 0.18);
  color: #667085;
  font-size: 12px;
}

.mm-bp-wave2-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(19, 32, 51, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  cursor: grab;
  user-select: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.mm-bp-wave2-card:hover,
.mm-bp-wave2-card:focus-visible {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);
  transform: translateY(-1px);
  outline: none;
}

.mm-bp-wave2-card.is-active {
  border-color: rgba(37, 99, 235, 0.48);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.14);
}

.mm-bp-wave2-card.is-dragging {
  opacity: 0.56;
}

.mm-bp-wave2-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mm-bp-wave2-card__head h4 {
  margin: 0;
  color: #17233c;
  font-size: 14px;
  line-height: 1.3;
}

.mm-bp-wave2-card p {
  margin: 0;
  color: #51627f;
  font-size: 13px;
}

.mm-bp-wave2-card__meta {
  color: #667085;
  font-size: 12px;
}

.mm-bp-wave2-list {
  display: grid;
  gap: 10px;
}

.mm-bp-wave2-list__empty {
  padding: 16px;
  border: 1px dashed rgba(19, 32, 51, 0.2);
  border-radius: 14px;
  color: #667085;
  font-size: 13px;
}

.mm-bp-wave2-list__row {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(19, 32, 51, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.mm-bp-wave2-list__row:hover,
.mm-bp-wave2-list__row:focus-visible {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
  outline: none;
}

.mm-bp-wave2-list__row.is-active {
  border-color: rgba(37, 99, 235, 0.46);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.14);
}

.mm-bp-wave2-list__row-main {
  display: grid;
  gap: 2px;
}

.mm-bp-wave2-list__row-main strong {
  color: #17233c;
  font-size: 14px;
}

.mm-bp-wave2-list__row-main span,
.mm-bp-wave2-list__row-date {
  color: #667085;
  font-size: 12px;
}

.mm-bp-wave2-list__row-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #4f5f79;
  font-size: 12px;
}

.mm-bp-wave2-chip {
  border-color: color-mix(in srgb, var(--mm-bp-stage-color, #64748b) 42%, rgba(19, 32, 51, 0.24));
  background: color-mix(in srgb, var(--mm-bp-stage-color, #64748b) 16%, white);
}

.mm-bp-wave2-board.is-compact .mm-bp-wave2-column {
  padding: 10px;
  gap: 8px;
}

.mm-bp-wave2-board.is-compact .mm-bp-wave2-card {
  padding: 10px;
  gap: 6px;
}

.mm-bp-wave2-board.is-compact .mm-bp-wave2-card__head h4,
.mm-bp-wave2-list.is-compact .mm-bp-wave2-list__row-main strong {
  font-size: 13px;
}

.mm-bp-wave2-list.is-compact .mm-bp-wave2-list__row {
  padding: 10px;
  gap: 4px;
}

.mm-bp-wave2-panel-shell {
  position: fixed;
  inset: 0;
  z-index: 240;
  pointer-events: none;
}

.mm-bp-wave2-panel-shell.is-open {
  pointer-events: auto;
}

.mm-bp-wave2-panel-shell__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.38);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mm-bp-wave2-panel-shell.is-open .mm-bp-wave2-panel-shell__backdrop {
  opacity: 1;
}

.mm-bp-wave2-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(560px, 96vw);
  height: 100dvh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  padding: 16px;
  box-sizing: border-box;
  border-left: 1px solid rgba(19, 32, 51, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 255, 0.98));
  box-shadow: -24px 0 48px rgba(15, 23, 42, 0.24);
  transform: translateX(104%);
  transition: transform 0.22s ease;
}

.mm-bp-wave2-panel-shell.is-open .mm-bp-wave2-panel {
  transform: translateX(0);
}

.mm-bp-wave2-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mm-bp-wave2-panel__head h3 {
  margin: 2px 0 0;
  color: #17233c;
  font-size: 22px;
  line-height: 1.1;
}

.mm-bp-wave2-panel__head p {
  margin: 6px 0 0;
  color: #51627f;
  font-size: 13px;
}

.mm-bp-wave2-panel__tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.mm-bp-wave2-panel__tabs::-webkit-scrollbar {
  display: none;
}

.mm-bp-wave2-panel__tab {
  border: 1px solid rgba(19, 32, 51, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #445672;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.mm-bp-wave2-panel__tab.is-active {
  border-color: rgba(37, 99, 235, 0.46);
  background: rgba(219, 234, 254, 0.82);
  color: #0f172a;
}

.mm-bp-wave2-panel__body {
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.mm-bp-wave2-panel__stack {
  display: grid;
  gap: 10px;
}

.mm-bp-wave2-panel__card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(19, 32, 51, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
}

.mm-bp-wave2-panel__card strong {
  color: #17233c;
  font-size: 14px;
}

.mm-bp-wave2-panel__card span {
  color: #51627f;
  font-size: 13px;
}

.mm-bp-wave2-panel__empty {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px dashed rgba(19, 32, 51, 0.2);
  border-radius: 14px;
  color: #667085;
  font-size: 13px;
}

.mm-bp-stage-settings {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
}

.mm-bp-stage-settings__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mm-bp-stage-settings__head h4 {
  margin: 4px 0 0;
  color: #17233c;
  font-size: 20px;
  line-height: 1.2;
}

.mm-bp-stage-settings__meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mm-bp-stage-settings__meta {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(19, 32, 51, 0.1);
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.95);
}

.mm-bp-stage-settings__meta strong {
  color: #17233c;
  font-size: 12px;
}

.mm-bp-stage-settings__meta span {
  color: #50617b;
  font-size: 13px;
}

.mm-bp-stage-settings__create {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}

.mm-bp-stage-settings__create-field {
  min-width: min(360px, 100%);
  flex: 1 1 240px;
  display: grid;
  gap: 6px;
}

.mm-bp-stage-settings__create-field span {
  color: #445672;
  font-size: 12px;
  font-weight: 800;
}

.mm-bp-stage-settings__create-field input {
  min-height: 42px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(19, 32, 51, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  color: #17233c;
  font: inherit;
}

.mm-bp-stage-settings__list {
  display: grid;
  gap: 10px;
}

.mm-bp-stage-settings__stage {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(19, 32, 51, 0.1);
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.95);
}

.mm-bp-stage-settings__stage-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(120px, 148px);
  gap: 10px;
  align-items: end;
}

.mm-bp-stage-settings__swatch {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(19, 32, 51, 0.22);
}

.mm-bp-stage-settings__stage-main .mm-bp-stage-settings__swatch {
  margin-bottom: 12px;
}

.mm-bp-stage-settings__name,
.mm-bp-stage-settings__color {
  display: grid;
  gap: 6px;
}

.mm-bp-stage-settings__name span,
.mm-bp-stage-settings__color span {
  color: #445672;
  font-size: 12px;
  font-weight: 700;
}

.mm-bp-stage-settings__name input,
.mm-bp-stage-settings__color input {
  min-height: 40px;
  border: 1px solid rgba(19, 32, 51, 0.12);
  border-radius: 12px;
  box-sizing: border-box;
  padding: 8px 10px;
  background: #fff;
  color: #17233c;
  font: inherit;
}

.mm-bp-stage-settings__color input {
  padding: 4px 6px;
}

.mm-bp-stage-settings__stage-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mm-bp-stage-settings__required {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mm-bp-stage-settings__required-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(19, 32, 51, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #314159;
  font-size: 12px;
  font-weight: 700;
}

.mm-bp-stage-settings__required-item input {
  margin: 0;
}

.mm-bp-stage-settings__archived {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px dashed rgba(19, 32, 51, 0.2);
  border-radius: 14px;
}

.mm-bp-stage-settings__archived-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mm-bp-stage-settings__archived-head strong {
  color: #17233c;
  font-size: 13px;
}

.mm-bp-stage-settings__archived-head span {
  color: #6a7a93;
  font-size: 12px;
}

.mm-bp-stage-settings__archived-list {
  display: grid;
  gap: 8px;
}

.mm-bp-stage-settings__archived-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(19, 32, 51, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
}

.mm-bp-stage-settings__archived-row strong {
  color: #17233c;
  font-size: 13px;
}

.mm-bp-stage-settings__archived-row span {
  color: #60708a;
  font-size: 12px;
}

.mm-bp-stage-settings__hint {
  color: #60708a;
  font-size: 12px;
}

.mm-shoppro-surface,
.mm-shoppro-detail-empty {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(37, 55, 88, 0.08);
}

.mm-shoppro-surface__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mm-shoppro-surface__head h3,
.mm-shoppro-detail-empty h3 {
  margin: 0;
  color: #17233c;
  font-size: 24px;
  line-height: 1.08;
}

.mm-shoppro-surface__head p,
.mm-shoppro-detail-empty p {
  margin: 4px 0 0;
  color: #4f5f79;
  font-size: 14px;
  line-height: 1.55;
}

.mm-shoppro-record-list {
  display: grid;
  gap: 12px;
}

.mm-shoppro-record-card {
  display: grid;
  gap: 12px;
}

.mm-shoppro-record-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mm-shoppro-record-card__head h3 {
  margin: 0;
}

.mm-shoppro-record-card__head p {
  margin: 4px 0 0;
  color: #51627f;
  font-size: 13px;
  line-height: 1.45;
}

.mm-shoppro-record-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.mm-shoppro-inline-note {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(245, 107, 61, 0.16);
  background: rgba(255, 246, 240, 0.94);
}

.mm-shoppro-inline-note strong {
  color: #9a3412;
  font-size: 13px;
}

.mm-shoppro-inline-note span {
  color: #7c2d12;
  font-size: 13px;
  line-height: 1.5;
}

.mm-shoppro-summary-card {
  display: grid;
  gap: 8px;
}

.mm-shoppro-summary-card h3 {
  margin: 0;
}

.mm-shoppro-summary-card p {
  margin: 0;
  color: #17233c;
  font-size: 24px;
  font-weight: 800;
}

.mm-shoppro-summary-card span {
  color: #60708a;
  font-size: 13px;
  line-height: 1.45;
}

.mm-product-surface-note {
  padding: 14px 16px;
  border: 1px solid rgba(77, 124, 255, 0.12);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 255, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.mm-product-surface-note__head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.9fr);
  gap: 14px;
  align-items: start;
}

.mm-product-surface-note__copy {
  display: grid;
  gap: 6px;
}

.mm-product-surface-note__copy h3 {
  margin: 0;
  color: #17233c;
  font-size: 20px;
  line-height: 1.12;
}

.mm-product-surface-note__copy p:last-child {
  margin: 0;
  color: #50617d;
  font-size: 14px;
  line-height: 1.52;
}

.mm-product-surface-note__eyebrow {
  margin: 0;
  color: #4966c8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mm-product-surface-note__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mm-product-surface-note__stat {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.mm-product-surface-note__stat span {
  color: #52637f;
  font-size: 12px;
}

.mm-product-surface-note__stat strong {
  color: #17233c;
  font-size: 15px;
  font-weight: 800;
}

.mm-card-actions__hint {
  flex: 1 1 220px;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.mm-unit-flow-strip {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(19, 32, 51, 0.08);
}

.mm-shoppro-returns {
  gap: 16px;
}

.mm-shoppro-returns__section,
.mm-logistics-form__section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 255, 0.92));
}

.mm-shoppro-returns__section-head,
.mm-logistics-form__section-head {
  display: grid;
  gap: 4px;
}

.mm-shoppro-returns__section-head strong,
.mm-logistics-form__section-head strong {
  color: #17233c;
  font-size: 14px;
}

.mm-shoppro-returns__section-head span,
.mm-logistics-form__section-head span {
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.mm-shoppro-returns label,
.mm-logistics-form label,
.mm-pickup-scan-form label,
.mm-pickup-form-section label {
  display: grid;
  gap: 6px;
  align-content: start;
}

.mm-shoppro-returns label > span:first-child,
.mm-logistics-form label > span:first-child,
.mm-pickup-scan-form label > span:first-child,
.mm-pickup-form-section label > span:first-child {
  color: #243556;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.mm-shoppro-returns__form,
.mm-logistics-form {
  display: grid;
  gap: 14px;
}

.mm-shoppro-returns__grid,
.mm-logistics-form__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mm-shoppro-returns__grid--secondary,
.mm-logistics-form__grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mm-shoppro-returns__wide {
  grid-column: 1 / -1;
}

.mm-logistics-field--wide {
  grid-column: 1 / -1;
}

.mm-shoppro-returns textarea,
.mm-logistics-form textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  box-sizing: border-box;
}

.mm-shoppro-returns input,
.mm-shoppro-returns select,
.mm-shoppro-returns textarea,
.mm-logistics-form input,
.mm-logistics-form select,
.mm-logistics-form textarea,
.mm-pickup-scan-form input,
.mm-pickup-form-section input,
.mm-pickup-form-section select,
.mm-pickup-form-section textarea {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid rgba(19, 32, 51, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  color: #17233c;
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.mm-shoppro-returns textarea,
.mm-logistics-form textarea,
.mm-pickup-form-section textarea {
  min-height: 110px;
}

.mm-shoppro-returns input:focus,
.mm-shoppro-returns select:focus,
.mm-shoppro-returns textarea:focus,
.mm-logistics-form input:focus,
.mm-logistics-form select:focus,
.mm-logistics-form textarea:focus,
.mm-pickup-scan-form input:focus,
.mm-pickup-form-section input:focus,
.mm-pickup-form-section select:focus,
.mm-pickup-form-section textarea:focus {
  outline: none;
  border-color: rgba(77, 124, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(77, 124, 255, 0.12);
  background: #ffffff;
}

.mm-shoppro-returns__guide {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(77, 124, 255, 0.2);
  background: rgba(240, 246, 255, 0.84);
}

.mm-shoppro-returns__guide strong {
  color: #17233c;
}

.mm-shoppro-returns__guide p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.mm-shoppro-returns__list-head {
  display: grid;
  gap: 4px;
}

.mm-shoppro-returns__list-head strong {
  color: #17233c;
  font-size: 16px;
}

.mm-shoppro-returns__list-head span {
  color: #667085;
  font-size: 13px;
}

.mm-shoppro-returns__card {
  display: grid;
  gap: 12px;
}

.mm-shoppro-returns__card-head,
.mm-logistics-shipment-card__head,
.mm-pickup-state-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mm-shoppro-returns__card-head h3,
.mm-logistics-shipment-card__head h3 {
  margin: 0;
}

.mm-shoppro-returns__card-head p,
.mm-logistics-shipment-card__head p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.mm-shoppro-returns__card-note,
.mm-logistics-shipment-card__note {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.04);
  color: #51627f;
  font-size: 13px;
  line-height: 1.55;
}

.mm-shoppro-returns__card,
.mm-shoppro-kanban-summary__card,
.mm-logistics-panel,
.mm-logistics-shipment-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
}

.mm-shoppro-kanban-board .mm-kanban-card {
  cursor: pointer;
}

.mm-kanban-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mm-kanban-card__meta {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.mm-shoppro-kanban-summary__rows {
  margin-top: 10px;
}

.mm-logistics-workspace-grid {
  align-items: start;
}

.mm-logistics-panel {
  display: grid;
  gap: 14px;
}

.mm-logistics-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.86);
}

.mm-logistics-checkbox input {
  margin-top: 3px;
}

.mm-logistics-checkbox span {
  display: grid;
  gap: 2px;
}

.mm-logistics-checkbox strong {
  color: #17233c;
  font-size: 14px;
}

.mm-logistics-checkbox small {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.mm-logistics-result {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(24, 198, 217, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(240, 252, 255, 0.9), rgba(247, 250, 255, 0.96));
}

.mm-logistics-result__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mm-logistics-result__note {
  margin: 0;
  color: #51627f;
  font-size: 13px;
  line-height: 1.55;
}

.mm-logistics-panel__chips {
  margin-top: 4px;
}

.mm-logistics-packaging-grid {
  margin-top: 4px;
}

.mm-pickup-state-card {
  display: grid;
  gap: 16px;
}

.mm-pickup-state-card__actions {
  justify-content: flex-end;
}

.mm-pickup-inline-hint {
  color: #51627f;
  font-size: 13px;
  line-height: 1.5;
}

.mm-pickup-recent-grid,
.mm-pickup-list-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.mm-pickup-form-layout {
  align-items: start;
}

.mm-pickup-form-card,
.mm-pickup-summary-card {
  display: grid;
  gap: 14px;
}

.mm-pickup-form-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.92));
}

.mm-pickup-form-section__head {
  display: grid;
  gap: 4px;
}

.mm-pickup-form-section__head strong {
  color: #17233c;
  font-size: 14px;
}

.mm-pickup-form-section__head span {
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.mm-pickup-form-section .tenant-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.mm-pickup-form-section .tenant-checkbox input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.mm-pickup-form-section .tenant-checkbox span {
  color: #243556;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.mm-pickup-summary-card__note {
  margin: 0;
  color: #51627f;
  font-size: 13px;
  line-height: 1.55;
}

.mm-unit-safe-state {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.mm-unit-safe-state--neutral {
  background: rgba(255, 255, 255, 0.96);
}

.mm-unit-safe-state--muted {
  background: #f8fafc;
}

.mm-unit-safe-state--error {
  background: #fff0ee;
  border-color: #fac5be;
}

.mm-unit-safe-state__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .mm-shoppro-returns__grid,
  .mm-logistics-form__grid,
  .mm-shoppro-returns__grid--secondary,
  .mm-logistics-form__grid--compact,
  .mm-product-surface-note__stats,
  .mm-logistics-result__grid {
    grid-template-columns: 1fr;
  }

  .mm-shoppro-sections-grid,
  .mm-shoppro-section-shell__summary {
    grid-template-columns: 1fr;
  }

  .mm-product-surface-note__head,
  .mm-shoppro-returns__card-head,
  .mm-logistics-shipment-card__head,
  .mm-pickup-state-card__head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .mm-shoppro-section-shell__topline,
  .mm-shoppro-section-shell__bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mm-shoppro-toolbar,
  .mm-shoppro-workspace-grid,
  .mm-shoppro-surface__head,
  .mm-business-point-shell__layout,
  .mm-business-point-shell__meta-grid,
  .mm-business-point-shell__section-head,
  .mm-master-data-toolbar,
  .mm-master-data-toolbar__left,
  .mm-master-data-toolbar__right {
    grid-template-columns: 1fr;
    display: grid;
  }

  .mm-business-point-shell__nav {
    grid-template-columns: 1fr;
  }

  .mm-shoppro-toolbar__filters,
  .mm-shoppro-toolbar__actions,
  .mm-shoppro-record-card__head,
  .mm-shoppro-record-card__meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mm-bp-wave2-toolbar,
  .mm-bp-wave2-toolbar__row,
  .mm-bp-wave2-toolbar__controls,
  .mm-bp-wave2-toolbar__actions,
  .mm-bp-wave2-toolbar__views,
  .mm-bp-wave2-toolbar__metrics,
  .mm-bp-operations-view-switch,
  .mm-bp-catalog-toolbar__head,
  .mm-bp-catalog-toolbar__actions,
  .mm-bp-catalog-toolbar__filters,
  .mm-bp-catalog-layout,
  .mm-bp-catalog-list__row,
  .mm-bp-catalog-list__meta,
  .mm-bp-catalog-detail__grid,
  .mm-bp-stage-settings__meta-grid,
  .mm-bp-stage-settings__create,
  .mm-bp-stage-settings__stage-main,
  .mm-bp-stage-settings__archived-row,
  .mm-bp-wave2-list__row-meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mm-bp-wave2-toolbar__field--search {
    min-width: 0;
  }

  .mm-bp-catalog-toolbar__field--search {
    min-width: 0;
  }

  .mm-bp-wave2-board {
    grid-template-columns: 1fr;
  }

  .mm-bp-wave2-panel {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .mm-shoppro-section-shell__primary {
    display: grid;
  }

  .mm-shoppro-section-shell__actions,
  .mm-shoppro-section-shell__views {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mm-shoppro-create-overlay {
    padding: 0;
    align-items: stretch;
  }

  .mm-shoppro-create-overlay__panel {
    width: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    padding: 16px 16px 24px;
    border-radius: 0;
  }

  .mm-unit-shell__hero,
  .mm-unit-shell__layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .mm-unit-shell--shop .mm-unit-shell__hero {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    gap: 8px;
  }

  .mm-unit-shell--shop .mm-unit-shell__hero-main {
    grid-template-columns: auto minmax(0, 1fr);
    display: grid;
    align-items: center;
    gap: 8px;
  }

  .mm-unit-shell__hero-actions,
  .mm-unit-module-shell__views {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .mm-unit-module-shell__views::-webkit-scrollbar,
  .mm-unit-module-shell__summary::-webkit-scrollbar {
    display: none;
  }

  .mm-unit-module-shell__head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .mm-unit-module-shell__summary {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }

  .mm-unit-shell__hero-actions {
    flex-wrap: wrap;
    overflow: visible;
  }

  .mm-unit-shell--shop .mm-unit-shell__hero-copy {
    gap: 2px;
  }

  .mm-unit-shell--shop .mm-unit-shell__eyebrow {
    display: none;
  }

  .mm-unit-shell--shop .mm-unit-shell__hero-copy h2 {
    font-size: 18px;
    line-height: 1.12;
  }

  .mm-unit-shell--shop .mm-unit-shell__hero-copy p:last-child {
    display: none;
  }

  .mm-unit-shell--shop .mm-unit-shell-badge {
    min-width: auto;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 10px;
  }

  .mm-unit-shell--shop .mm-unit-shell__hero-actions .mm-button-secondary {
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 12px;
  }

  .mm-unit-module-shell,
  .mm-unit-module-shell__head,
  .mm-unit-module-shell__head-main,
  .mm-unit-module-shell__views,
  .mm-unit-module-shell__body,
  .mm-product-surface-note,
  .mm-product-surface-note__head,
  .mm-product-surface-note__stats {
    min-width: 0;
  }

  .mm-unit-shell__nav,
  .mm-unit-module-shell,
  .mm-unit-safe-state {
    padding: 14px;
    border-radius: 18px;
  }

  .mm-unit-shell__nav {
    padding: 10px 12px;
  }

  .mm-unit-shell__nav-title {
    display: none;
  }

  .mm-unit-shell--shop .mm-unit-shell__nav-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .mm-unit-shell--shop .mm-unit-shell__nav-list::-webkit-scrollbar {
    display: none;
  }

  .mm-unit-shell--shop .mm-unit-shell__nav-item {
    flex: 0 0 auto;
    width: auto;
    min-width: 132px;
    min-height: 0;
    padding: 10px 12px;
    border-radius: 14px;
    gap: 2px;
  }

  .mm-unit-shell--shop .mm-unit-shell__nav-item span {
    display: none;
  }

  .mm-unit-shell__nav-item {
    min-height: 54px;
  }

  .mm-shoppro-create-overlay__head {
    display: grid;
  }

  .mm-order-draft-builder,
  .mm-order-draft__row,
  .mm-inline-picker__toolbar,
  .mm-inline-picker__quick-create-fields,
  .mm-master-data-toolbar {
    grid-template-columns: 1fr;
  }

  .mm-inline-picker__label-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .mm-supplier-hero {
    gap: 12px;
  }

  .mm-supplier-hero-actions {
    justify-content: flex-start;
  }

  .mm-supplier-stats {
    grid-template-columns: 1fr;
  }

  .mm-supplier-hero h1 {
    font-size: 24px;
  }

  .mm-supplier-order-top,
  .mm-supplier-order-item,
  .mm-supplier-order-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .mm-supplier-order-amount {
    text-align: left;
  }
}

.mm-client-shell {
  display: grid;
  gap: 16px;
  padding: 8px 0 24px;
}

.mm-client-hero {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(58, 117, 255, 0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(23, 36, 58, 0.96), rgba(50, 77, 86, 0.88));
  color: #f8fbff;
}

.mm-client-hero h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.mm-client-hero p {
  margin: 4px 0 0;
  color: rgba(248, 251, 255, 0.78);
}

.mm-client-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 251, 255, 0.72);
}

.mm-client-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mm-client-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fbff;
  font-size: 13px;
}

.mm-client-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mm-client-stat,
.mm-client-order-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--mm-border);
  background: var(--mm-surface);
}

.mm-client-stat span,
.mm-client-order-meta,
.mm-client-section-head p {
  color: var(--mm-text-muted);
  font-size: 13px;
}

.mm-client-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  line-height: 1;
}

.mm-client-orders {
  display: grid;
  gap: 12px;
}

.mm-client-section-head h2 {
  margin: 0;
  font-size: 22px;
}

.mm-client-section-head p {
  margin: 4px 0 0;
}

.mm-client-order-top,
.mm-client-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mm-client-order-id {
  font-size: 13px;
  font-weight: 700;
  word-break: break-all;
}

.mm-client-order-amount {
  text-align: right;
}

.mm-client-order-amount strong {
  display: block;
  font-size: 20px;
}

.mm-client-order-amount span {
  color: var(--mm-text-muted);
  font-size: 12px;
}

.mm-client-order-items {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--mm-border);
}

.mm-client-order-item {
  font-size: 14px;
}

@media (max-width: 720px) {
  .mm-client-stats {
    grid-template-columns: 1fr;
  }

  .mm-client-hero h1 {
    font-size: 24px;
  }

  .mm-client-order-top,
  .mm-client-order-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .mm-client-order-amount {
    text-align: left;
  }
}

/* ============================================================
   Platform / Super Admin rebuild
   ============================================================ */

.mm-platform-screen {
  padding: 24px;
  box-sizing: border-box;
  max-width: 100%;
}

.mm-platform-shell {
  display: grid;
  gap: 24px;
  min-width: 0;
  max-width: 1280px;
  margin: 0 auto;
}

.mm-platform-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(37, 55, 88, 0.08);
}

.mm-platform-page-header__meta {
  display: grid;
  gap: 10px;
}

.mm-platform-page-header__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(19, 32, 51, 0.48);
}

.mm-platform-page-header h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #132033;
}

.mm-platform-page-header p {
  margin: 0;
  max-width: 760px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(19, 32, 51, 0.62);
}

.mm-platform-primary-action,
.mm-platform-submit {
  appearance: none;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #18c6d9, #4d7cff);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(77, 124, 255, 0.24);
}

.mm-platform-secondary-action {
  appearance: none;
  border: 1px solid rgba(19, 32, 51, 0.12);
  border-radius: 14px;
  background: #ffffff;
  color: #132033;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 18px;
  cursor: pointer;
}

.mm-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mm-inline-status {
  padding: 14px 16px;
  border: 1px solid rgba(19, 32, 51, 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff, #f2f7ff);
  color: rgba(19, 32, 51, 0.72);
  font-size: 14px;
  line-height: 1.45;
}

.mm-inline-status.is-error {
  border-color: rgba(220, 38, 38, 0.18);
  background: linear-gradient(180deg, #fff7f7, #fff1f1);
  color: #991b1b;
}

.mm-platform-interface-upload {
  display: grid;
  gap: 14px;
}

.mm-platform-interface-upload__picker {
  display: grid;
  gap: 10px;
}

.mm-platform-interface-upload__picker span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(19, 32, 51, 0.58);
}

.mm-platform-interface-upload__picker input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px dashed rgba(19, 32, 51, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff, #f6faff);
  color: #132033;
  font-size: 14px;
}

.mm-card-item.is-selected {
  border-color: rgba(77, 124, 255, 0.36);
  box-shadow: 0 14px 32px rgba(77, 124, 255, 0.14);
}

.mm-platform-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.mm-platform-tenants-panel,
.mm-platform-tools-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(37, 55, 88, 0.08);
}

.mm-platform-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.mm-platform-panel-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(19, 32, 51, 0.48);
}

.mm-platform-panel-note {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(19, 32, 51, 0.58);
}

.mm-platform-tenant-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff, #f6f9ff);
}

.mm-platform-field {
  display: grid;
  gap: 8px;
}

.mm-platform-field span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(19, 32, 51, 0.58);
}

.mm-platform-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(19, 32, 51, 0.16);
  background: #ffffff;
  color: #132033;
  font-size: 16px;
  outline: none;
}

.mm-platform-input::placeholder {
  color: rgba(19, 32, 51, 0.42);
}

.mm-platform-input:focus {
  border-color: rgba(77, 124, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(77, 124, 255, 0.12);
}

.mm-platform-tenant-form__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mm-platform-empty-state {
  display: grid;
  gap: 6px;
  padding: 24px;
  border: 1px dashed rgba(19, 32, 51, 0.18);
  border-radius: 18px;
  background: #fafcff;
}

.mm-platform-empty-state strong {
  font-size: 18px;
  color: #132033;
}

.mm-platform-empty-state span {
  color: rgba(19, 32, 51, 0.58);
  line-height: 1.45;
}

.mm-platform-tenant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mm-platform-tenant-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  box-shadow: 0 14px 34px rgba(37, 55, 88, 0.06);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.mm-platform-tenant-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(37, 55, 88, 0.1);
  border-color: rgba(77, 124, 255, 0.24);
}

.mm-platform-tenant-card:focus-visible {
  outline: 3px solid rgba(77, 124, 255, 0.2);
  outline-offset: 2px;
}

.mm-platform-tenant-card.is-stateful {
  border-color: rgba(245, 158, 11, 0.2);
}

.mm-platform-tenant-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.mm-platform-tenant-card__title-wrap {
  display: grid;
  gap: 8px;
}

.mm-platform-tenant-card h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #132033;
  word-break: break-word;
}

.mm-platform-tenant-card__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(19, 32, 51, 0.56);
}

.mm-platform-tenant-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  font-weight: 700;
}

.mm-platform-tenant-menu {
  position: relative;
}

.mm-platform-tenant-menu summary {
  list-style: none;
}

.mm-platform-tenant-menu summary::-webkit-details-marker {
  display: none;
}

.mm-platform-tenant-menu__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(19, 32, 51, 0.1);
  background: #ffffff;
  color: #132033;
  font-size: 20px;
  cursor: pointer;
}

.mm-platform-tenant-menu[open] .mm-platform-tenant-menu__body {
  display: grid;
}

.mm-platform-tenant-menu__body {
  display: none;
  position: absolute;
  top: 44px;
  right: 0;
  z-index: 8;
  min-width: 220px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(37, 55, 88, 0.16);
}

.mm-platform-tenant-menu__body button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #132033;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
}

.mm-platform-tenant-menu__body button:hover {
  background: rgba(19, 32, 51, 0.05);
}

.mm-platform-tenant-menu__body button.danger {
  color: #c53030;
}

.mm-platform-tenant-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mm-platform-tenant-stat {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(19, 32, 51, 0.08);
}

.mm-platform-tenant-stat span {
  font-size: 12px;
  color: rgba(19, 32, 51, 0.54);
}

.mm-platform-tenant-stat strong {
  font-size: 26px;
  line-height: 1;
  color: #132033;
}

.mm-platform-tools-list {
  display: grid;
  gap: 14px;
}

.mm-platform-tool-card {
  appearance: none;
  border: 1px solid rgba(19, 32, 51, 0.08);
  background: linear-gradient(180deg, #ffffff, #f8faff);
  border-radius: 18px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 6px;
  box-shadow: 0 12px 28px rgba(37, 55, 88, 0.05);
}

.mm-platform-tool-card strong {
  font-size: 18px;
  color: #132033;
}

.mm-platform-tool-card span {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(19, 32, 51, 0.58);
}

.mm-platform-tool-card--blue {
  border-top: 3px solid #4d7cff;
}

.mm-platform-tool-card--teal {
  border-top: 3px solid #18c6d9;
}

.mm-platform-tool-card--purple {
  border-top: 3px solid #8b5cf6;
}

.mm-platform-docs-screen {
  flex: 1;
  min-height: 100%;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: auto;
}

.mm-platform-docs-shell {
  display: grid;
  gap: 18px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  max-width: 1280px;
  margin: 0 auto;
}

.mm-platform-docs-header,
.mm-platform-docs-reader,
.mm-platform-docs-tree {
  background: #ffffff;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(37, 55, 88, 0.08);
}

.mm-platform-docs-header {
  padding: 22px 24px;
}

.mm-platform-docs-header h1 {
  margin: 8px 0;
  color: #132033;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.mm-platform-docs-header p {
  margin: 0;
  color: rgba(19, 32, 51, 0.62);
  line-height: 1.55;
}

.mm-platform-docs-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.mm-platform-docs-tree {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.mm-platform-docs-tree__title {
  color: rgba(19, 32, 51, 0.5);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mm-platform-docs-tree__item {
  appearance: none;
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 14px;
  background: #f8faff;
  color: #132033;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.mm-platform-docs-tree__item.is-active {
  border-color: rgba(77, 124, 255, 0.42);
  background: linear-gradient(180deg, #eef4ff, #ffffff);
}

.mm-platform-docs-tree__item:hover {
  border-color: rgba(77, 124, 255, 0.26);
  background: linear-gradient(180deg, #f2f6ff, #ffffff);
}

.mm-platform-docs-tree__item span {
  font-weight: 800;
}

.mm-platform-docs-tree__item small {
  color: rgba(19, 32, 51, 0.55);
  line-height: 1.35;
}

.mm-platform-docs-reader {
  display: grid;
  gap: 20px;
  padding: 22px;
  min-width: 0;
}

.mm-platform-docs-meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 16px;
  background: #f8faff;
}

.mm-platform-docs-meta div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mm-platform-docs-meta span {
  color: rgba(19, 32, 51, 0.52);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mm-platform-docs-meta strong {
  color: #132033;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.mm-platform-docs-content {
  min-width: 0;
  max-width: 860px;
  color: #17243a;
  overflow-wrap: anywhere;
}

.mm-platform-docs-content h2 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.mm-platform-docs-section {
  padding: 18px 0;
  border-top: 1px solid rgba(19, 32, 51, 0.08);
}

.mm-platform-docs-section h3 {
  margin: 0 0 10px;
  color: #132033;
  font-size: 19px;
}

.mm-platform-docs-section p {
  margin: 8px 0 0;
  color: rgba(19, 32, 51, 0.78);
  font-size: 16px;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

@media (max-width: 1279px) {
  .mm-platform-screen {
    padding: 20px;
  }

  .mm-platform-main {
    grid-template-columns: 1fr;
  }

  .mm-platform-docs-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .mm-platform-docs-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .mm-platform-screen {
    padding: 14px;
  }

  .mm-platform-page-header,
  .mm-platform-tenants-panel,
  .mm-platform-tools-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .mm-platform-page-header {
    grid-template-columns: 1fr;
    display: grid;
  }

  .mm-platform-page-header h1 {
    font-size: 28px;
  }

  .mm-platform-tenant-grid,
  .mm-platform-tenant-card__stats {
    grid-template-columns: 1fr;
  }

  .mm-platform-tenant-card h2 {
    font-size: 24px;
  }

  .mm-platform-docs-header,
  .mm-platform-docs-reader,
  .mm-platform-docs-tree {
    border-radius: 18px;
  }

  .mm-platform-docs-header {
    padding: 18px;
  }

  .mm-platform-docs-header h1 {
    font-size: 26px;
  }

  .mm-platform-docs-layout {
    grid-template-columns: 1fr;
  }

  .mm-platform-docs-tree {
    position: static;
  }

  .mm-platform-docs-meta {
    grid-template-columns: 1fr;
  }

  .mm-platform-docs-reader {
    padding: 18px;
  }

  .mm-platform-docs-content h2 {
    font-size: 24px;
  }

  .mm-platform-docs-section p {
    font-size: 15px;
  }
}

@media (min-width: 768px) {
  html[data-shell-frame="foundation"] .mm-shell-breadcrumb__button,
  html[data-shell-frame="foundation"] .mm-shell-breadcrumb__label {
    max-width: none !important;
  }
}

.mm-company-admin-shell {
  gap: 8px;
  min-height: calc(100vh - 84px);
}

.mm-company-admin-layout {
  position: relative;
  display: grid;
  grid-template-columns: var(--mm-company-sidebar-width, 232px) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: calc(100vh - 128px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(244, 248, 255, 0.72));
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 54px rgba(37, 55, 88, 0.1);
}

.mm-company-admin-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(25, 46, 90, 0.98), rgba(18, 34, 69, 0.98)),
    linear-gradient(135deg, rgba(56, 115, 255, 0.18), rgba(24, 198, 217, 0.08));
  position: sticky;
  top: 0;
  width: 100%;
  min-height: calc(100vh - 116px);
  z-index: 2;
  transition: width 0.18s ease, padding 0.18s ease, border-radius 0.18s ease;
  overflow-y: auto;
}

.mm-company-admin-sidebar__section {
  display: grid;
  gap: 10px;
}

.mm-company-admin-sidebar__label {
  color: rgba(196, 215, 244, 0.78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mm-company-admin-sidebar__list {
  display: grid;
  gap: 8px;
}

.mm-company-admin-sidebar__group {
  display: grid;
  gap: 8px;
}

.mm-company-admin-sidebar__group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px;
  color: rgba(196, 215, 244, 0.82);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mm-company-admin-sidebar__group-title span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.mm-company-admin-sidebar__empty {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(227, 236, 250, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.mm-stage1-mobile-drawer,
.mm-company-shell-drawer,
.mm-stage1-mobile-tools {
  display: none;
}

html[data-mobile-overlay="open"],
body[data-mobile-overlay="open"] {
  overflow: hidden;
}

.mm-company-admin-navitem {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.mm-company-admin-navitem__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.mm-company-admin-navitem__content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mm-company-admin-navitem strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.mm-company-admin-navitem span {
  color: rgba(213, 227, 250, 0.72);
  font-size: 12px;
  line-height: 1.45;
}

.mm-company-admin-navitem:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 187, 255, 0.32);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.mm-company-admin-navitem.is-active {
  border-color: rgba(100, 182, 255, 0.5);
  background: linear-gradient(180deg, rgba(87, 164, 255, 0.24), rgba(80, 117, 255, 0.18));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 14px 28px rgba(9, 16, 31, 0.22);
}

.mm-company-admin-navitem--department {
  margin-left: 0;
  min-height: 60px;
  border-radius: 18px;
  background: rgba(16, 24, 42, 0.54);
}

.mm-company-admin-navitem--department .mm-company-admin-navitem__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.mm-company-admin-main {
  min-width: 0;
  display: grid;
  align-content: start;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(141, 211, 255, 0.22), transparent 24%),
    linear-gradient(180deg, rgba(242, 247, 255, 0.96), rgba(233, 240, 249, 0.92));
}

.mm-company-object-shell__main {
  gap: 12px;
}

.mm-company-object-nav-group {
  display: grid;
  gap: 8px;
}

.mm-company-object-nav-group.is-active {
  padding: 6px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
}

.mm-company-object-subnav {
  display: grid;
  gap: 6px;
  margin-left: 16px;
  padding: 4px 0 2px 10px;
  border-left: 1px solid rgba(141, 173, 225, 0.22);
}

.mm-company-object-subnav__item {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(115, 141, 189, 0.12);
  border-radius: 16px;
  background: rgba(17, 26, 46, 0.42);
  color: rgba(225, 235, 251, 0.82);
  min-height: 42px;
  padding: 0 14px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.mm-company-object-subnav__item:hover {
  transform: translateY(-1px);
  border-color: rgba(100, 182, 255, 0.28);
  background: rgba(31, 44, 74, 0.56);
}

.mm-company-object-subnav__item.is-active {
  border-color: rgba(100, 182, 255, 0.36);
  background: linear-gradient(180deg, rgba(72, 132, 225, 0.26), rgba(50, 88, 169, 0.22));
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.mm-company-object-subnav__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(145, 189, 255, 0.7);
  flex: 0 0 auto;
}

.mm-company-object-overview,
.mm-company-object-workspace {
  display: grid;
  gap: 10px;
  min-height: calc(100dvh - 170px);
  align-content: start;
}

.mm-company-object-workspace {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.mm-company-object-workspace__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.mm-company-object-workspace__head h2 {
  margin: 0;
  color: #17233c;
  font-size: clamp(18px, 1.9vw, 24px);
  line-height: 1.08;
}

.mm-company-object-toolbar {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
  box-shadow: 0 12px 24px rgba(37, 55, 88, 0.06);
}

.mm-company-object-toolbar__meta {
  display: grid;
  gap: 3px;
}

.mm-company-object-toolbar__eyebrow {
  color: #7d8aa5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mm-company-object-toolbar__title {
  color: #17233c;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
}

.mm-company-object-toolbar__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mm-company-object-chip {
  appearance: none;
  border: 1px solid rgba(19, 32, 51, 0.1);
  background: rgba(255, 255, 255, 0.92);
  color: #243556;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.14s ease;
}

.mm-company-object-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(77, 124, 255, 0.24);
  background: rgba(244, 248, 255, 1);
}

.mm-company-object-chip.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #18c6d9, #4d7cff);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(77, 124, 255, 0.18);
}

.mm-company-object-workspace .mm-card-grid.columns-2 {
  grid-template-columns: 1fr;
  align-content: start;
}

.mm-company-object-workspace [data-process-section] {
  min-height: min(520px, calc(100dvh - 250px));
  align-content: start;
}

.mm-company-object-workspace .mm-form-card {
  gap: 12px;
  padding: 16px 18px;
}

.mm-company-object-workspace .mm-card-grid:not(.columns-2) {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.mm-company-admin-overview {
  display: grid;
  gap: 14px;
  min-height: calc(100dvh - 170px);
  align-content: start;
}

.mm-company-admin-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 38px rgba(37, 55, 88, 0.08);
}

.mm-company-admin-panel--workspace {
  gap: 12px;
  min-height: min(520px, calc(100dvh - 320px));
}

.mm-company-admin-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.mm-company-admin-panel__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.mm-company-admin-panel__titleline {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mm-company-admin-panel__title-kicker {
  color: #7d8aa5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mm-company-admin-panel__head h2 {
  margin: 2px 0 0;
  color: #17233c;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.mm-company-admin-panel__eyebrow {
  color: #6f7e99;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mm-company-admin-panel__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.mm-company-admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mm-company-admin-stat {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(19, 32, 51, 0.1);
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.mm-company-admin-stat span {
  display: block;
  color: #596883;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.mm-company-admin-stat strong {
  display: block;
  margin-top: 8px;
  color: #17233c;
  font-size: clamp(28px, 2.4vw, 40px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.mm-company-admin-stat small {
  display: block;
  margin-top: 8px;
  color: #7a879d;
  font-size: 12px;
  line-height: 1.35;
}

.mm-company-admin-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mm-company-admin-section-note {
  margin: 0;
  color: #5f6d86;
  font-size: 14px;
  line-height: 1.55;
  max-width: 760px;
}

.mm-company-admin-overview-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.mm-company-admin-overview-workspace__list {
  min-width: 0;
}

.mm-company-admin-overview-brief {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.mm-company-admin-overview-brief__eyebrow {
  color: #7d8aa5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mm-company-admin-overview-brief h3 {
  margin: 0;
  color: #17233c;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.mm-company-admin-overview-brief p {
  margin: 0;
  color: #5f6d86;
  font-size: 14px;
  line-height: 1.55;
}

.mm-company-admin-overview-brief__points {
  display: grid;
  gap: 10px;
}

.mm-company-admin-overview-brief__point {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid rgba(19, 32, 51, 0.06);
}

.mm-company-admin-overview-brief__point strong {
  color: #4d7cff;
  font-size: 15px;
  line-height: 1.2;
}

.mm-company-admin-overview-brief__point span {
  color: #33425f;
  font-size: 13px;
  line-height: 1.5;
}

.mm-company-admin-section-groups {
  display: grid;
  gap: 12px;
}

.mm-company-admin-section-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8faff);
}

.mm-company-admin-section-group__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mm-company-admin-section-group__head h3 {
  margin: 0;
  color: #17233c;
  font-size: 16px;
  line-height: 1.2;
}

.mm-company-admin-section-group__head p {
  margin: 4px 0 0;
  color: #6a7890;
  font-size: 12px;
  line-height: 1.45;
}

.mm-company-admin-section-group__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mm-company-admin-module {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #ffffff, #f8faff);
  cursor: pointer;
  display: grid;
  gap: 4px;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.mm-company-admin-module__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mm-company-admin-module strong {
  color: #17233c;
  font-size: 14px;
  line-height: 1.25;
}

.mm-company-admin-module em {
  color: #4d7cff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mm-company-admin-module span {
  color: #6a7890;
  font-size: 12px;
  line-height: 1.45;
}

.mm-company-admin-module:hover {
  transform: translateY(-1px);
  border-color: rgba(66, 130, 247, 0.28);
  box-shadow: 0 12px 28px rgba(66, 130, 247, 0.08);
}

.mm-company-structure-schema {
  display: grid;
  gap: 18px;
}

.mm-company-structure-root {
  justify-self: center;
  width: min(360px, 100%);
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(55, 111, 235, 0.18);
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  box-shadow: 0 16px 34px rgba(37, 55, 88, 0.08);
  text-align: center;
}

.mm-company-structure-root__eyebrow {
  color: #6f7e99;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mm-company-structure-root h3 {
  margin: 0;
  color: #17233c;
  font-size: 28px;
  line-height: 1.05;
}

.mm-company-structure-root p {
  margin: 0;
  color: #66758f;
  font-size: 13px;
  line-height: 1.5;
}

.mm-company-structure-lane {
  position: relative;
  display: grid;
  gap: 12px;
  padding-top: 22px;
}

.mm-company-structure-lane::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 18px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(77, 124, 255, 0.55), rgba(24, 198, 217, 0.3));
}

.mm-company-structure-lane__header {
  justify-self: center;
  padding: 6px 12px;
  border-radius: 999px;
  color: #243556;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(19, 32, 51, 0.08);
  font-size: 12px;
  font-weight: 700;
}

.mm-company-structure-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.mm-company-structure-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 10px 24px rgba(37, 55, 88, 0.06);
  cursor: pointer;
}

.mm-company-structure-card--core {
  border-color: rgba(77, 124, 255, 0.24);
}

.mm-company-structure-card--support {
  border-color: rgba(19, 32, 51, 0.08);
}

.mm-company-structure-card--objects {
  border-color: rgba(24, 198, 217, 0.24);
}

.mm-company-structure-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mm-company-structure-card__title {
  color: #17233c;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.mm-company-structure-card__actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mm-company-structure-card__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #6a7890;
  font-size: 12px;
  line-height: 1.4;
}

.mm-company-structure-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 360px;
  gap: 16px;
  align-items: start;
}

.mm-company-structure-canvas {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.mm-company-structure-detail {
  position: sticky;
  top: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.96));
  box-shadow: 0 16px 34px rgba(37, 55, 88, 0.08);
}

.mm-company-structure-detail__head {
  display: grid;
  gap: 4px;
}

.mm-company-structure-detail__eyebrow {
  color: #7d8aa5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mm-company-structure-detail__head h3 {
  margin: 0;
  color: #17233c;
  font-size: 24px;
  line-height: 1.08;
}

.mm-company-structure-detail__head p {
  margin: 0;
  color: #6a7890;
  font-size: 13px;
  line-height: 1.45;
}

.mm-company-structure-detail__tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mm-company-structure-detail__list {
  display: grid;
  gap: 10px;
}

.mm-company-structure-detail__item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.mm-company-structure-detail__item strong {
  display: block;
  color: #17233c;
  font-size: 14px;
  line-height: 1.25;
}

.mm-company-structure-detail__item span {
  color: #6a7890;
  font-size: 12px;
  line-height: 1.45;
}

.mm-company-structure-detail__actions,
.mm-company-structure-detail__actions-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mm-company-structure-detail__empty {
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(19, 32, 51, 0.12);
  background: rgba(245, 248, 253, 0.92);
  color: #6a7890;
  font-size: 13px;
  line-height: 1.55;
}

.mm-company-admin-main .mm-card,
.mm-company-admin-main .mm-form-card {
  border: 1px solid rgba(19, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(37, 55, 88, 0.07);
}

.mm-company-admin-main .mm-section-head h2,
.mm-company-admin-main .mm-card h2,
.mm-company-admin-main .mm-card h3,
.mm-company-admin-main .mm-form-card h2,
.mm-company-admin-main .mm-form-card h3 {
  color: #17233c;
}

.mm-company-admin-main .mm-card p,
.mm-company-admin-main .mm-form-card p,
.mm-company-admin-main .mm-card label span,
.mm-company-admin-main .mm-form-card label span,
.mm-company-admin-main .mm-chip,
.mm-company-admin-main .mm-empty,
.mm-company-admin-main .mm-card .meta,
.mm-company-admin-main .mm-form-card .meta {
  color: #6a7890;
}

.mm-company-admin-main .mm-inline-input,
.mm-company-admin-main input,
.mm-company-admin-main select,
.mm-company-admin-main textarea {
  color: #17233c;
  background: #fff;
  border-color: rgba(19, 32, 51, 0.12);
}

.mm-company-admin-main .mm-entry-card,
.mm-company-admin-main .mm-card-item {
  background: linear-gradient(180deg, #ffffff, #f7faff);
  border-color: rgba(19, 32, 51, 0.1);
  box-shadow: 0 14px 28px rgba(37, 55, 88, 0.08);
}

.mm-company-admin-main .mm-entry-card:hover {
  border-color: rgba(77, 124, 255, 0.2);
  box-shadow: 0 18px 34px rgba(37, 55, 88, 0.1);
}

.mm-company-admin-main .mm-entry-card__title,
.mm-company-admin-main .mm-card-item h3 {
  color: #17233c;
}

.mm-company-admin-main .mm-entry-card__subtitle,
.mm-company-admin-main .mm-entry-card__meta {
  color: #6a7890;
}

.mm-company-admin-main .mm-entry-card__menu summary {
  background: rgba(19, 32, 51, 0.05);
  color: #17233c;
}

.mm-company-admin-main .mm-entry-card__menu-sheet {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(19, 32, 51, 0.12);
  box-shadow: 0 20px 36px rgba(37, 55, 88, 0.16);
}

.mm-company-admin-main .mm-entry-card__menu-sheet button {
  color: #17233c;
}

.mm-company-admin-main .mm-entry-card__menu-sheet button:hover {
  background: rgba(19, 32, 51, 0.05);
}

.mm-company-admin-search {
  width: min(320px, 100%);
}

.mm-company-admin-card-grid {
  margin-top: 2px;
}

.mm-company-admin-main .mm-empty {
  background: #f5f7fb;
  border-color: rgba(19, 32, 51, 0.08);
}

@media (max-width: 1100px) {
  .mm-company-admin-layout {
    grid-template-columns: 1fr;
  }

  .mm-company-admin-sidebar {
    position: relative;
    top: 0;
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .mm-company-admin-panel,
  .mm-company-admin-sidebar {
    padding: 16px;
    border-radius: 20px;
  }

  .mm-company-admin-panel__head {
    flex-direction: column;
  }

  .mm-company-admin-panel__toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .mm-company-admin-section-group__head {
    flex-direction: column;
  }

  .mm-company-admin-panel__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .mm-company-admin-stats,
  .mm-company-admin-module-grid,
  .mm-company-admin-section-group__list {
    grid-template-columns: 1fr;
  }

  .mm-company-admin-overview-workspace {
    grid-template-columns: 1fr;
  }

  .mm-company-structure-workspace {
    grid-template-columns: 1fr;
  }

  .mm-company-structure-detail {
    position: relative;
    top: 0;
  }
}

@media (max-width: 1023px) {
  .mm-marketplace-install-sheet {
    display: grid;
    gap: 10px;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mm-marketplace-install-sheet select,
  .mm-marketplace-install-sheet input {
    min-height: 44px;
  }

  body[data-mobile-shell="active"] .mm-company-admin-shell {
    padding-bottom: 92px;
  }

  body[data-mobile-shell="active"] .mm-company-shell {
    padding-bottom: 92px;
  }

  body[data-mobile-shell="active"] .mm-company-admin-shell .mm-company-admin-sidebar {
    display: none;
  }

  body[data-mobile-shell="active"] .mm-company-shell .mm-company-shell-sidebar {
    display: none;
  }

  body[data-mobile-shell="active"] .mm-stage1-mobile-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1200;
    pointer-events: none;
  }

  body[data-mobile-shell="active"] .mm-stage1-mobile-drawer.is-open {
    pointer-events: auto;
  }

  body[data-mobile-shell="active"] .mm-company-shell-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1200;
    pointer-events: none;
  }

  body[data-mobile-shell="active"] .mm-company-shell-drawer.is-open {
    pointer-events: auto;
  }

  .mm-stage1-mobile-drawer__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    transition: opacity 0.18s ease;
  }

  .mm-stage1-mobile-drawer.is-open .mm-stage1-mobile-drawer__backdrop {
    opacity: 1;
  }

  .mm-company-shell-drawer__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    transition: opacity 0.18s ease;
  }

  .mm-company-shell-drawer.is-open .mm-company-shell-drawer__backdrop {
    opacity: 1;
  }

  .mm-stage1-mobile-drawer__panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 360px);
    padding: 12px 12px 20px;
    max-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-104%);
    transition: transform 0.18s ease;
  }

  .mm-stage1-mobile-drawer.is-open .mm-stage1-mobile-drawer__panel {
    transform: translateX(0);
  }

  .mm-company-shell-drawer__panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 360px);
    padding: 12px 12px 20px;
    max-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-104%);
    transition: transform 0.18s ease;
  }

  .mm-company-shell-drawer.is-open .mm-company-shell-drawer__panel {
    transform: translateX(0);
  }

  body[data-mobile-shell="active"] .mm-stage1-mobile-tools {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1190;
    pointer-events: none;
  }

  body[data-mobile-shell="active"] .mm-stage1-mobile-tools.is-open {
    pointer-events: auto;
  }

  .mm-stage1-mobile-tools__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    transition: opacity 0.18s ease;
  }

  .mm-stage1-mobile-tools.is-open .mm-stage1-mobile-tools__backdrop {
    opacity: 1;
  }

  .mm-stage1-mobile-tools__sheet {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: calc(max(10px, env(safe-area-inset-bottom, 0px)) + 74px);
    padding: 14px;
    border-radius: 24px;
    background: rgba(12, 20, 34, 0.98);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.28);
    transform: translateY(120%);
    transition: transform 0.18s ease;
  }

  .mm-stage1-mobile-tools.is-open .mm-stage1-mobile-tools__sheet {
    transform: translateY(0);
  }

  .mm-stage1-mobile-tools__title {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .mm-stage1-mobile-tools__list {
    display: grid;
    gap: 10px;
  }

  .mm-stage1-mobile-tools__item {
    appearance: none;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    padding: 14px;
    color: #f8fafc;
    text-align: left;
    display: grid;
    gap: 6px;
    cursor: pointer;
  }

  .mm-stage1-mobile-tools__item strong {
    font-size: 15px;
    font-weight: 800;
  }

  .mm-stage1-mobile-tools__item span {
    color: rgba(226, 232, 240, 0.78);
    font-size: 13px;
    line-height: 1.4;
  }

  .mm-stage1-mobile-drawer__head {
    display: grid;
    gap: 4px;
    margin-bottom: 10px;
    padding: 2px 4px 0;
  }

  .mm-stage1-mobile-drawer__title {
    color: rgba(19, 32, 51, 0.64);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .mm-stage1-mobile-drawer__context {
    color: #132033;
    font-size: 16px;
    font-weight: 700;
  }

  .mm-company-shell-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding: 2px 4px 0;
  }

  .mm-company-shell-drawer__title {
    color: rgba(19, 32, 51, 0.64);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .mm-company-shell-drawer__context {
    color: #132033;
    font-size: 16px;
    font-weight: 700;
  }

  .mm-company-shell-drawer__close {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    color: #132033;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  }

  .mm-company-shell-drawer__close:active {
    transform: translateY(1px);
  }

  .mm-shoppro-mobile-section-nav {
    display: grid;
    gap: 6px;
    margin-bottom: 8px;
    padding: 8px 0 2px;
    background: transparent;
    box-shadow: none;
  }

  .mm-shoppro-mobile-section-nav__title {
    padding: 0 2px;
    color: #5c6d89;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .mm-shoppro-mobile-section-nav__list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 2px 2px;
    scrollbar-width: none;
  }

  .mm-shoppro-mobile-section-nav__list::-webkit-scrollbar {
    display: none;
  }

  .mm-shoppro-mobile-section-nav__item {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex: 0 0 auto;
    min-width: max-content;
    padding: 10px 12px;
    border: 1px solid rgba(19, 32, 51, 0.1);
    border-radius: 12px;
    background: rgba(245, 248, 255, 0.96);
    color: #17233c;
    text-align: left;
    cursor: pointer;
  }

  .mm-shoppro-mobile-section-nav__item strong {
    font-size: 15px;
    line-height: 1.2;
  }

  .mm-shoppro-mobile-section-nav__item span {
    display: inline-flex;
    min-width: 24px;
    justify-content: center;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
  }

  .mm-shoppro-mobile-section-nav__item--view strong {
    font-size: 14px;
  }

  .mm-shoppro-mobile-section-nav__item.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #18c6d9, #4d7cff);
    color: #fff;
  }

  .mm-shoppro-mobile-section-nav__item.is-active span {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
  }

  .mm-stage1-mobile-drawer .mm-company-admin-sidebar {
    display: grid;
    position: relative;
    top: 0;
    min-height: auto;
    border-right: 0;
    border-radius: 24px;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.22);
  }

  body[data-mobile-shell="active"] .mm-company-admin-shell .mm-stage1-mobile-drawer .mm-company-admin-sidebar {
    display: grid;
  }

  .mm-company-shell-drawer .mm-company-shell-sidebar {
    display: grid;
    position: relative;
    top: 0;
    min-height: auto;
    border-right: 0;
    border-radius: 24px;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.22);
  }

  body[data-mobile-shell="active"] .mm-company-shell .mm-company-shell-drawer .mm-company-shell-sidebar {
    display: grid;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-canon-layout.has-detail {
    grid-template-columns: 1fr;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-card-grid {
    grid-template-columns: 1fr;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-sheet--inline {
    position: relative;
    top: auto;
    z-index: 0;
  }

}

.mm-screen-exchange .mm-xfm-shell {
  min-height: 100%;
}

.mm-screen-office-tools .mm-office-tools-shell {
  min-height: 100%;
}

.mm-office-tools-shell {
  display: grid;
  gap: 14px;
}

.mm-office-tools-shell__top,
.mm-office-tools-shell__summary,
.mm-office-tools-panel,
.mm-office-tools-empty {
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.94));
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.mm-office-tools-shell__top {
  display: grid;
  gap: 16px;
  padding: 20px 22px;
}

.mm-office-tools-shell__title-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 16px;
  align-items: start;
}

.mm-office-tools-shell__eyebrow {
  margin: 0 0 8px;
  color: #5f6f86;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mm-office-tools-shell__title-wrap h2 {
  margin: 0;
  color: #152033;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.mm-office-tools-shell__title-wrap p {
  margin: 10px 0 0;
  max-width: 760px;
  color: #667184;
  font-size: 14px;
  line-height: 1.6;
}

.mm-office-tools-shell__scope {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 8px;
  min-width: 180px;
}

.mm-office-tools-shell__scope strong {
  color: #152033;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mm-office-tools-shell__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mm-development-action-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.mm-office-tools-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mm-office-tools-tab {
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 999px;
  background: rgba(245, 248, 255, 0.96);
  color: #516074;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.mm-office-tools-tab.is-active {
  border-color: rgba(37, 99, 235, 0.22);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(15, 118, 110, 0.14));
  color: #152033;
}

.mm-office-tools-shell__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.mm-office-tools-shell__stat {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(19, 32, 51, 0.06);
  background: rgba(15, 23, 42, 0.03);
}

.mm-office-tools-shell__stat strong {
  color: #152033;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

.mm-office-tools-shell__stat span {
  color: #667184;
  font-size: 13px;
}

.mm-office-tools-shell__stat.is-active {
  border-color: rgba(37, 99, 235, 0.16);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 118, 110, 0.08));
}

.mm-office-tools-shell__body {
  display: grid;
}

.mm-cwb-shell .mm-office-tools-shell__body {
  gap: 14px;
}

.mm-cwb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 1.12fr);
  gap: 14px;
  align-items: start;
}

.mm-cwb-list,
.mm-cwb-detail,
.mm-cwb-sections,
.mm-cwb-relations-grid,
.mm-cwb-timeline__list {
  display: grid;
  gap: 12px;
}

.mm-cwb-sections,
.mm-cwb-relations-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mm-cwb-detail {
  gap: 14px;
}

.mm-cwb-item {
  display: grid;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.mm-cwb-item.is-selected {
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.12);
}

.mm-cwb-item__top,
.mm-cwb-detail__hero-top {
  display: grid;
  gap: 10px;
}

.mm-cwb-item__top h3,
.mm-cwb-detail__hero h3,
.mm-cwb-relations h3,
.mm-cwb-timeline h3 {
  margin: 0;
  color: #152033;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
}

.mm-cwb-item__top p,
.mm-cwb-detail__hero p,
.mm-cwb-relations p,
.mm-cwb-timeline p,
.mm-cwb-section p {
  margin: 0;
  color: #667184;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.mm-cwb-detail__hero {
  display: grid;
  gap: 12px;
}

.mm-cwb-relations__list {
  display: grid;
  gap: 8px;
}

.mm-cwb-relation {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(245, 248, 255, 0.96);
}

.mm-cwb-relation.is-active {
  border-color: rgba(37, 99, 235, 0.22);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(15, 118, 110, 0.10));
}

.mm-cwb-timeline__item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
}

.mm-cwb-timeline__item strong {
  color: #152033;
  font-size: 13px;
  font-weight: 800;
}

.mm-cwb-timeline__item span {
  color: #667184;
  font-size: 12px;
}

.mm-development-priority-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mm-development-summary-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.mm-development-summary-band__card {
  display: grid;
  gap: 6px;
  min-height: 108px;
  padding: 14px 16px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.mm-development-summary-band__card.is-action {
  align-content: start;
}

.mm-development-summary-band__card.is-text {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 118, 110, 0.08));
}

.mm-development-summary-band__card span {
  color: #5b6678;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mm-development-summary-band__card strong {
  color: #132033;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.mm-development-summary-band__card small {
  color: #667184;
  font-size: 13px;
  line-height: 1.45;
}

.mm-development-summary-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 2px;
}

.mm-development-source-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mm-development-source-strip__card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 18px;
  background: rgba(252, 253, 255, 0.9);
}

.mm-development-source-strip__card.is-muted {
  background: rgba(247, 249, 252, 0.92);
}

.mm-development-source-strip__card span {
  color: #5b6678;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mm-development-source-strip__card strong {
  color: #132033;
  font-size: 18px;
  line-height: 1.15;
}

.mm-development-source-strip__card small {
  color: #667184;
  font-size: 13px;
  line-height: 1.45;
}

.mm-development-priority-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.06), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.94));
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.mm-development-priority-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.mm-development-priority-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mm-development-decision-list {
  display: grid;
  gap: 10px;
}

.mm-development-decision-item {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: #152033;
}

.mm-development-decision-item strong {
  font-size: 14px;
}

.mm-office-tools-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.mm-office-tools-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.mm-office-tools-panel__head .mm-process-title {
  color: #152033;
  font-size: 18px;
  font-weight: 800;
}

.mm-office-tools-communication {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(260px, 0.9fr);
  gap: 14px;
}

.mm-office-tools-scroll,
.mm-office-tools-dock,
.mm-office-tools-list,
.mm-office-tools-empty {
  border: 1px solid rgba(19, 32, 51, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.mm-office-tools-scroll,
.mm-office-tools-dock,
.mm-office-tools-empty {
  padding: 16px;
}

.mm-office-tools-thread-list,
.mm-office-tools-composer-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.mm-messenger-neo__empty {
  display: grid;
  justify-items: start;
  gap: 12px;
  min-height: 180px;
  align-content: center;
  padding: 12px;
}

.mm-messenger-neo__empty-orb {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(15, 118, 110, 0.14));
  color: #17233c;
  font-size: 14px;
  font-weight: 800;
}

.mm-messenger-neo__empty p {
  margin: 0;
  color: #516074;
  font-size: 14px;
  line-height: 1.55;
}

.mm-messenger-neo__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(37, 55, 88, 0.06);
}

.mm-messenger-neo__row + .mm-messenger-neo__row {
  margin-top: 10px;
}

.mm-messenger-neo__avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #17233c;
  background: linear-gradient(135deg, rgba(77, 124, 255, 0.18), rgba(24, 198, 217, 0.16));
}

.mm-messenger-neo__avatar--teal {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(20, 184, 166, 0.16));
}

.mm-messenger-neo__avatar--amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.16));
}

.mm-messenger-neo__avatar--red {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.2), rgba(239, 68, 68, 0.16));
}

.mm-messenger-neo__content {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.mm-messenger-neo__row-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.mm-messenger-neo__title {
  color: #17233c;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.mm-messenger-neo__time,
.mm-messenger-neo__preview,
.mm-messenger-neo__meta {
  color: #667184;
  font-size: 13px;
  line-height: 1.45;
}

.mm-messenger-neo__preview {
  overflow-wrap: anywhere;
}

.mm-messenger-neo__meta-row,
.mm-messenger-neo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mm-messenger-neo__badge,
.mm-messenger-neo__counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(77, 124, 255, 0.1);
  color: #2852b8;
  font-size: 12px;
  font-weight: 800;
}

.mm-messenger-neo__counter {
  min-width: 26px;
  padding: 0 8px;
}

.mm-messenger-neo__details {
  display: none;
  gap: 10px;
  padding-top: 6px;
}

.mm-messenger-neo__details.is-open {
  display: grid;
}

.mm-messenger-neo__detail-grid {
  display: grid;
  gap: 10px;
}

.mm-messenger-neo__detail-block,
.mm-messenger-neo__note-block {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  background: rgba(245, 248, 255, 0.88);
}

.mm-messenger-neo__note-block textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
}

.mm-messenger-neo__composer {
  display: grid;
  gap: 12px;
}

.mm-messenger-neo__composer-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.mm-messenger-neo__composer-head strong {
  display: block;
  color: #17233c;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.mm-messenger-neo__composer-head p {
  margin: 6px 0 0;
  color: #667184;
  font-size: 13px;
  line-height: 1.5;
}

.mm-messenger-neo__composer-context {
  color: #33425f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.mm-messenger-neo__composer textarea {
  width: 100%;
  min-height: 124px;
  padding: 12px 14px;
  border: 1px solid rgba(19, 32, 51, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  color: #17233c;
  font: inherit;
  line-height: 1.55;
  resize: vertical;
  box-sizing: border-box;
}

.mm-messenger-neo__composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.mm-messenger-neo__composer-note {
  color: #667184;
  font-size: 12px;
  line-height: 1.45;
}

.mm-messenger-neo__submit {
  min-width: 132px;
}

.mm-messenger-neo__composer--disabled {
  min-height: 220px;
  align-content: center;
}

.mm-office-tools-list {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.mm-office-tools-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.mm-office-tools-item__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.mm-office-tools-item__title-row strong {
  color: #152033;
  font-size: 15px;
  font-weight: 800;
}

.mm-office-tools-item__meta,
.mm-office-tools-item__description {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #667184;
  font-size: 13px;
  line-height: 1.45;
}

.mm-office-tools-item__meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mm-office-tools-item__description {
  white-space: pre-wrap;
}

.mm-office-tools-item[role="button"] {
  cursor: pointer;
}

.mm-office-tools-item[role="button"]:hover,
.mm-office-tools-item.is-selected {
  border-color: rgba(77, 124, 255, 0.28);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.mm-office-tools-create-form,
.mm-office-tools-task-governance-form,
.mm-office-tools-task-edit {
  display: grid;
  gap: 10px;
}

.mm-office-tools-create-form input,
.mm-office-tools-create-form select,
.mm-office-tools-create-form textarea,
.mm-office-tools-task-governance-form input,
.mm-office-tools-task-governance-form select,
.mm-office-tools-task-governance-form textarea,
.mm-office-tools-task-edit input,
.mm-office-tools-task-edit select,
.mm-office-tools-task-edit textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(19, 32, 51, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #152033;
  padding: 10px 12px;
  font: inherit;
  box-sizing: border-box;
}

.mm-office-tools-create-form textarea,
.mm-office-tools-task-governance-form textarea {
  min-height: 96px;
  resize: vertical;
}

.mm-office-tools-create-form label {
  display: grid;
  gap: 6px;
}

.mm-office-tools-task-edit {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mm-office-tools-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.mm-office-tools-empty__orb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(15, 118, 110, 0.16));
  color: #152033;
  font-weight: 800;
}

.mm-office-tools-empty__title {
  color: #152033;
  font-size: 16px;
  font-weight: 800;
}

.mm-office-tools-task-governance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(19, 32, 51, 0.1);
  border-radius: 16px;
  background: #f8faff;
}

.mm-office-tools-task-governance div {
  display: grid;
  gap: 4px;
}

.mm-office-tools-task-governance strong {
  color: #132033;
  font-size: 14px;
}

.mm-office-tools-task-governance span {
  color: rgba(19, 32, 51, 0.62);
  font-size: 13px;
  line-height: 1.4;
}

.mm-office-tools-item__description {
  white-space: pre-wrap;
}

.mm-office-tools-create-form__grid,
.mm-office-tools-task-governance-form__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mm-office-tools-create-form__wide {
  grid-column: span 3;
}

.mm-office-tools-task-detail {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.mm-office-tools-task-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 800;
}

.mm-office-tools-task-detail__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.mm-office-tools-task-detail__grid section {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.12);
}

.mm-office-tools-task-detail__grid h4 {
  margin: 0 0 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mm-office-tools-task-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mm-office-tools-task-field span,
.mm-office-tools-create-form label span,
.mm-office-tools-task-governance-form label span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mm-development-task-note,
.mm-development-task-result {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid #dde2ea;
  border-radius: 16px;
  background: #f8fbff;
}

.mm-development-task-note strong,
.mm-development-task-result strong {
  color: #111827;
  font-size: 14px;
}

.mm-development-task-note p,
.mm-development-task-result p {
  margin: 0;
  color: #516074;
  font-size: 13px;
  line-height: 1.5;
}

.mm-development-task-result__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mm-development-task-result__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mm-development-task-result__grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mm-development-task-result__card {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.mm-development-task-result__card span {
  color: #667184;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mm-development-task-result__card strong {
  color: #132033;
  font-size: 14px;
  line-height: 1.45;
}

.mm-development-task-result__card code,
.mm-development-task-result code {
  display: block;
  overflow-wrap: anywhere;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f9fc;
  color: #2158d6;
  font: 600 12px/1.45 "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.mm-development-task-note--warning {
  border-color: rgba(191, 143, 47, 0.28);
  background: #fff8eb;
}

.mm-development-task-result.is-manual {
  border-color: rgba(191, 143, 47, 0.28);
  background: #fffdf7;
}

.mm-development-task-result.is-saved {
  border-color: rgba(33, 88, 214, 0.16);
}

.mm-office-tools-task-field strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.mm-office-tools-create-form label span {
  color: rgba(19, 32, 51, 0.62);
}

.mm-office-tools-task-field.is-important strong {
  color: #ffffff;
}

.mm-office-tools-task-governance-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.mm-office-tools-task-governance-form label {
  display: grid;
  gap: 6px;
}

.mm-office-tools-task-governance-form__wide {
  grid-column: span 3;
}

.mm-office-tools-owner-ok {
  display: flex !important;
  align-items: center;
  grid-template-columns: none !important;
  gap: 8px !important;
}

.mm-chip.is-ok {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

.mm-chip.is-pending {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
}

@media (max-width: 767px) {
  .mm-office-tools-shell__top,
  .mm-office-tools-panel {
    padding: 16px;
  }

  .mm-office-tools-shell__title-wrap,
  .mm-office-tools-shell__actions,
  .mm-office-tools-panel__head,
  .mm-office-tools-communication,
  .mm-office-tools-task-edit,
  .mm-office-tools-shell__summary,
  .mm-development-priority-grid,
  .mm-cwb-layout,
  .mm-cwb-sections,
  .mm-cwb-relations-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .mm-development-action-row {
    flex-direction: column;
  }

  .mm-office-tools-shell__scope {
    justify-items: start;
  }

  .mm-messenger-neo__composer-head,
  .mm-messenger-neo__composer-actions,
  .mm-messenger-neo__row-head {
    flex-direction: column;
    align-items: stretch;
  }

  .mm-office-tools-task-governance {
    align-items: stretch;
    flex-direction: column;
  }

  .mm-office-tools-create-form__grid,
  .mm-office-tools-task-governance-form__grid,
  .mm-office-tools-task-detail__grid {
    grid-template-columns: 1fr;
  }

  .mm-development-note-grid,
  .mm-development-sources {
    grid-template-columns: 1fr;
  }

  .mm-office-tools-task-governance-form__wide {
    grid-column: auto;
  }

  .mm-office-tools-create-form__wide {
    grid-column: auto;
  }
}

body[data-office-focus="department"] .mm-brand-level,
body[data-office-focus="department"] .mm-brand-title {
  opacity: 0.78;
}

body[data-office-focus="department"] .mm-header {
  min-height: 48px;
  padding-block: 3px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 14px rgba(37, 55, 88, 0.03);
}

body[data-office-focus="department"] .mm-header-nav__btn {
  padding: 4px 8px;
  font-size: 10px;
}

body[data-office-focus="department"] .mm-brand-section {
  max-width: 320px;
  font-size: 10px;
  padding: 6px 10px;
  background: rgba(19, 32, 51, 0.035);
}

body[data-office-focus="department"] #mm-gate-root .mm-gate-button {
  padding: 4px 7px;
  font-size: 10px;
}

body:has(.mm-company-admin-shell) .mm-main {
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.09), transparent 34%),
    linear-gradient(180deg, #f7f8fa 0%, #eff2f5 220px, #eef1f4 100%);
}

body:has(.mm-company-admin-shell) .mm-header {
  background: rgba(247, 248, 250, 0.78);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.035);
  min-height: 56px;
  padding: 6px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}

body:has(.mm-company-admin-shell) .mm-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body:has(.mm-company-admin-shell) .mm-brand-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body:has(.mm-company-admin-shell) .mm-header-context {
  min-width: 0;
  display: flex;
  justify-content: flex-start;
}

body:has(.mm-company-admin-shell) .mm-header-menu {
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.94);
  color: var(--mm-office-text);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  position: relative;
}

.mm-header-menu__bars,
.mm-header-menu__bars::before,
.mm-header-menu__bars::after {
  content: '';
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.mm-header-menu__bars {
  top: 50%;
  margin-top: -1px;
}

.mm-header-menu__bars::before {
  top: -5px;
}

.mm-header-menu__bars::after {
  top: 5px;
}

body:has(.mm-company-admin-shell) .mm-logo {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.24), transparent 26%),
    linear-gradient(145deg, #1f2a3d, #2f4f93);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--mm-font-display);
  font-size: 15px;
  letter-spacing: -0.04em;
  box-shadow: 0 12px 28px rgba(31, 42, 61, 0.22);
}

body:has(.mm-company-admin-shell) .mm-brand-level {
  color: var(--mm-office-muted-2);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 10px;
}

body:has(.mm-company-admin-shell) .mm-brand-title,
body:has(.mm-company-admin-shell) .mm-brand-user {
  color: var(--mm-office-text);
}

body:has(.mm-company-admin-shell) .mm-brand-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:has(.mm-company-admin-shell) .mm-brand-section {
  color: #3d4a60;
  font-weight: 700;
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  font-size: 11px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:has(.mm-company-admin-shell) .mm-header-nav__btn,
body:has(.mm-company-admin-shell) #mm-gate-root .mm-gate-button {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: var(--mm-office-text);
  font-weight: 800;
}

body:has(.mm-company-admin-shell) .mm-header-nav__btn {
  min-width: 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

body:has(.mm-company-admin-shell) .mm-header-nav__btn--inline {
  flex: 0 0 auto;
}

body:has(.mm-company-admin-shell) .mm-header-nav {
  display: none;
}

body:has(.mm-company-admin-shell) .mm-brand-user {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

body:has(.mm-company-admin-shell) #mm-gate-root .mm-gate-button.primary {
  background: linear-gradient(135deg, #2f5bea, #0f766e);
  color: #fff;
}

body[data-office-focus="department"] .mm-header {
  min-height: 52px;
  padding: 6px 12px;
  background: rgba(247, 248, 250, 0.82);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.03);
}

body[data-office-focus="department"] .mm-brand-section {
  background: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  min-height: 28px;
  padding-inline: 10px;
}

body[data-office-focus="department"] .mm-brand-level {
  display: none;
}

body[data-office-focus="department"] .mm-brand-title {
  font-size: 15px;
  font-weight: 800;
}

body[data-office-focus="department"] .mm-header-context {
  justify-self: stretch;
}

body[data-office-focus="department"] .mm-brand-user {
  font-size: 11px;
}

body[data-office-focus="department"] .mm-header-nav__btn {
  min-width: 30px;
  width: 30px;
  height: 30px;
  font-size: 16px;
}

body:has(.mm-company-admin-shell) .mm-company-admin-layout {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(244, 246, 248, 0.72));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.08);
}

body:has(.mm-company-admin-shell) .mm-company-admin-sidebar {
  padding: 12px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at top, rgba(84, 114, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #162132, #111a28);
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.03);
}


body:has(.mm-company-admin-shell) .mm-company-admin-sidebar__label {
  color: rgba(197, 206, 224, 0.64);
  font-size: 10px;
  letter-spacing: 0.18em;
}

body:has(.mm-company-admin-shell) .mm-company-admin-navitem {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  grid-template-columns: 40px minmax(0, 1fr);
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease, background 0.14s ease;
}

body:has(.mm-company-admin-shell) .mm-company-admin-navitem__icon {
  width: 36px;
  height: 36px;
  color: rgba(240, 244, 255, 0.92);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

body:has(.mm-company-admin-shell) .mm-company-admin-navitem__icon svg {
  width: 16px;
  height: 16px;
}

body:has(.mm-company-admin-shell) .mm-company-admin-navitem strong {
  font-size: 13px;
}

body:has(.mm-company-admin-shell) .mm-company-admin-navitem span {
  color: rgba(194, 205, 224, 0.66);
  font-size: 11px;
  line-height: 1.32;
}

body:has(.mm-company-admin-shell) .mm-company-admin-navitem:hover {
  border-color: rgba(92, 126, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

body:has(.mm-company-admin-shell) .mm-company-admin-navitem.is-active {
  border-color: rgba(101, 128, 255, 0.24);
  background: rgba(87, 164, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 24px rgba(6, 11, 23, 0.18);
}

body:has(.mm-company-admin-shell) .mm-company-admin-navitem.is-active .mm-company-admin-navitem__icon {
  background: linear-gradient(135deg, rgba(47, 91, 234, 0.34), rgba(15, 118, 110, 0.22));
  border-color: rgba(125, 174, 255, 0.24);
}

body:has(.mm-company-admin-shell) .mm-company-admin-main {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 24%),
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(248, 249, 251, 0.98), rgba(238, 242, 246, 0.94));
}

body:has(.mm-company-admin-shell) .mm-company-admin-panel,
body:has(.mm-company-admin-shell) .mm-company-admin-main .mm-card,
body:has(.mm-company-admin-shell) .mm-company-admin-main .mm-form-card {
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--mm-office-shadow);
  backdrop-filter: blur(16px);
}

body:has(.mm-company-admin-shell) .mm-company-admin-panel__head h2,
body:has(.mm-company-admin-shell) .mm-company-object-workspace__head h2,
body:has(.mm-company-admin-shell) .mm-company-object-toolbar__title,
body:has(.mm-company-admin-shell) .mm-company-admin-stat strong {
  font-family: var(--mm-font-display);
  letter-spacing: -0.04em;
  color: var(--mm-office-text);
}

body:has(.mm-company-admin-shell) .mm-company-admin-panel__eyebrow,
body:has(.mm-company-admin-shell) .mm-company-object-toolbar__eyebrow {
  color: var(--mm-office-muted-2);
  font-size: 10px;
}

body:has(.mm-company-admin-shell) .mm-company-admin-section-note,
body:has(.mm-company-admin-shell) .mm-company-admin-main .mm-card p,
body:has(.mm-company-admin-shell) .mm-company-admin-main .mm-form-card p,
body:has(.mm-company-admin-shell) .mm-company-admin-main .mm-card label span,
body:has(.mm-company-admin-shell) .mm-company-admin-main .mm-form-card label span,
body:has(.mm-company-admin-shell) .mm-company-admin-main .mm-chip,
body:has(.mm-company-admin-shell) .mm-company-admin-main .mm-empty,
body:has(.mm-company-admin-shell) .mm-company-admin-main .meta {
  color: var(--mm-office-muted);
}

body:has(.mm-company-admin-shell) .mm-company-admin-main input,
body:has(.mm-company-admin-shell) .mm-company-admin-main select,
body:has(.mm-company-admin-shell) .mm-company-admin-main textarea {
  color: var(--mm-office-text);
  background: rgba(255,255,255,0.9);
  border-color: rgba(15, 23, 42, 0.1);
}

body:has(.mm-company-admin-shell) .mm-process-workspace__intro {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(242, 246, 251, 0.92));
  border: 1px solid rgba(15, 23, 42, 0.08);
}

body:has(.mm-company-admin-shell) .mm-process-workspace__intro strong {
  color: var(--mm-office-text);
  font-size: 15px;
}

body:has(.mm-company-admin-shell) .mm-process-workspace__intro span {
  color: var(--mm-office-muted);
}

body:has(.mm-company-admin-shell) .mm-company-object-workspace .mm-form-card {
  border-radius: 24px;
  padding: 18px;
}

body:has(.mm-company-admin-shell) .mm-company-object-workspace .mm-section-head {
  margin-bottom: 2px;
}

body:has(.mm-company-admin-shell) .mm-company-object-workspace .mm-section-head h2 {
  font-size: 22px;
}

body:has(.mm-company-admin-shell) .mm-company-object-workspace .mm-card-actions {
  gap: 10px;
}

body:has(.mm-company-admin-shell) .mm-company-object-workspace .mm-card-item {
  min-height: 140px;
}

body:has(.mm-company-admin-shell) .mm-company-object-workspace [data-process-section] {
  min-height: auto;
}

body:has(.mm-company-admin-shell) .mm-company-object-toolbar {
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(250, 251, 252, 0.94));
  box-shadow: var(--mm-office-shadow);
  backdrop-filter: blur(18px);
}

body:has(.mm-company-admin-shell) .mm-company-object-chip {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.84);
  color: #314056;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

body:has(.mm-company-admin-shell) .mm-company-object-chip.is-active {
  background: linear-gradient(135deg, #2f5bea, #0f766e);
  box-shadow: 0 12px 26px rgba(47, 91, 234, 0.22);
}

body:has(.mm-company-admin-shell) .mm-company-admin-stat,
body:has(.mm-company-admin-shell) .mm-company-admin-overview-brief,
body:has(.mm-company-admin-shell) .mm-company-admin-main .mm-entry-card,
body:has(.mm-company-admin-shell) .mm-company-admin-main .mm-card-item {
  border-color: rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,249,252,0.92));
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

body:has(.mm-company-admin-shell) .mm-company-admin-overview {
  gap: 12px;
}

body:has(.mm-company-admin-shell) .mm-company-admin-panel--hero {
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 14px;
}

body:has(.mm-company-admin-shell) .mm-company-admin-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body:has(.mm-company-admin-shell) .mm-company-admin-stat {
  min-height: 78px;
  padding: 12px 14px;
  align-content: start;
  border-radius: 18px;
}

body:has(.mm-company-admin-shell) .mm-company-admin-stat span {
  font-size: 12px;
  line-height: 1.2;
}

body:has(.mm-company-admin-shell) .mm-company-admin-stat strong {
  font-size: 34px;
  line-height: 0.95;
}

body:has(.mm-company-admin-shell) .mm-company-admin-stat small {
  font-size: 11px;
  line-height: 1.2;
}

body:has(.mm-company-admin-shell) .mm-company-admin-panel__head {
  align-items: center;
}

body:has(.mm-company-admin-shell) .mm-company-admin-overview-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body:has(.mm-company-admin-shell) .mm-company-admin-overview-action {
  appearance: none;
  width: 100%;
  text-align: left;
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,248,252,0.92));
  color: var(--mm-office-text);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

body:has(.mm-company-admin-shell) .mm-company-admin-overview-action:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

body:has(.mm-company-admin-shell) .mm-company-admin-overview-action__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

body:has(.mm-company-admin-shell) .mm-company-admin-overview-action__title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

body:has(.mm-company-admin-shell) .mm-company-admin-overview-action__value {
  font-family: var(--mm-font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

body:has(.mm-company-admin-shell) .mm-company-admin-overview-action__note {
  color: var(--mm-office-muted);
  font-size: 10px;
  line-height: 1.25;
}

body:has(.mm-company-admin-shell) .mm-company-admin-panel--workspace {
  min-height: 0;
}

body:has(.mm-company-admin-shell) .mm-company-admin-overview-workspace {
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.85fr);
  gap: 14px;
  align-items: start;
}

body:has(.mm-company-admin-shell) .mm-company-admin-overview-workspace__list .mm-entry-grid {
  gap: 12px;
}

body:has(.mm-company-admin-shell) .mm-company-admin-overview-workspace__list .mm-entry-card {
  min-height: 128px;
  border-radius: 24px;
  align-items: center;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 14px;
}

body:has(.mm-company-admin-shell) .mm-company-admin-overview-workspace__list .mm-entry-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  font-family: var(--mm-font-display);
  font-size: 22px;
}

body:has(.mm-company-admin-shell) .mm-company-admin-overview-workspace__list .mm-entry-card__title {
  font-size: 18px;
}

body:has(.mm-company-admin-shell) .mm-company-admin-overview-workspace__list .mm-entry-card__meta {
  font-size: 14px;
}

body:has(.mm-company-admin-shell) .mm-entry-card--department .mm-entry-card__body {
  display: grid;
  gap: 6px;
  align-content: center;
}

body:has(.mm-company-admin-shell) .mm-entry-card--department .mm-entry-card__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

body:has(.mm-company-admin-shell) .mm-entry-card--department .mm-entry-card__chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #355079;
  font-size: 11px;
  font-weight: 800;
}

body:has(.mm-company-admin-shell) .mm-entry-card--department .mm-entry-card__aside {
  display: grid;
  align-items: center;
  justify-items: end;
  gap: 6px;
  min-width: 120px;
}

body:has(.mm-company-admin-shell) .mm-entry-card--department .mm-entry-card__open {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--mm-office-text);
  font-size: 12px;
  font-weight: 800;
}

body:has(.mm-company-admin-shell) .mm-company-admin-sidebar__list {
  gap: 7px;
}

body[data-company-sidebar="open"] {
  --mm-company-sidebar-width: 232px;
}

body[data-office-focus="department"] {
  --mm-company-sidebar-width: 224px;
}

body[data-office-focus="department"] .mm-company-admin-navitem:not(.mm-company-admin-navitem--department) {
  min-height: 48px;
  padding: 9px 10px;
  align-items: center;
}

body[data-office-focus="department"] .mm-company-admin-navitem:not(.mm-company-admin-navitem--department) .mm-company-admin-navitem__content {
  gap: 0;
}

body[data-office-focus="department"] .mm-company-admin-navitem:not(.mm-company-admin-navitem--department) .mm-company-admin-navitem__content span {
  display: none;
}

body[data-office-focus="department"] .mm-company-admin-navitem:not(.mm-company-admin-navitem--department) .mm-company-admin-navitem__icon {
  width: 32px;
  height: 32px;
}

body[data-office-focus="department"] .mm-company-admin-navitem--department {
  margin-left: 0;
  min-height: 56px;
}

body[data-office-focus="department"] .mm-company-object-nav-group.is-active {
  padding: 4px;
  border-radius: 18px;
}

body[data-office-focus="department"] .mm-company-object-subnav {
  margin-left: 10px;
  padding-left: 8px;
  gap: 5px;
}

body[data-office-focus="department"] .mm-company-object-subnav__item {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 14px;
  font-size: 13px;
}

body[data-company-sidebar="closed"] .mm-company-admin-navitem {
  min-height: 46px;
  padding: 8px 6px;
}

body[data-company-sidebar="closed"] .mm-company-admin-sidebar {
  padding-inline: 6px;
}

body[data-company-sidebar="closed"] {
  --mm-company-sidebar-width: 82px;
}

body[data-company-sidebar="closed"] .mm-company-admin-sidebar__label {
  display: none;
}

body[data-company-sidebar="closed"] .mm-company-admin-navitem,
body[data-company-sidebar="closed"] .mm-company-admin-navitem--department {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0;
  padding: 8px 4px;
  min-height: 48px;
}

body[data-company-sidebar="closed"] .mm-company-admin-navitem__content,
body[data-company-sidebar="closed"] .mm-company-admin-navitem strong,
body[data-company-sidebar="closed"] .mm-company-admin-navitem span,
body[data-company-sidebar="closed"] .mm-company-admin-navitem--department .mm-company-admin-navitem__content {
  display: none;
}

body[data-company-sidebar="closed"] .mm-company-admin-navitem__icon {
  width: 34px;
  height: 34px;
}

body[data-company-sidebar="closed"] .mm-company-admin-navitem--department {
  margin-left: 0;
  border-radius: 16px;
}

body[data-company-sidebar="closed"] .mm-company-object-nav-group.is-active {
  padding: 0;
  background: transparent;
}

body[data-company-sidebar="closed"] .mm-company-object-subnav {
  display: none;
}

body[data-company-sidebar="closed"] .mm-company-admin-navitem__icon {
  width: 30px;
  height: 30px;
}

/* Desktop Shell Foundation */
.mm-shell-sidebar {
  display: none;
}

@media (min-width: 1101px) {
  body[data-ui-ready="true"] {
    --mm-shell-sidebar-width: 264px;
    --mm-shell-sidebar-left: 16px;
    --mm-shell-sidebar-top: 72px;
  }

  body[data-sidebar="collapsed"] {
    --mm-shell-sidebar-width: 82px;
  }

  body[data-ui-ready="true"] .mm-header {
    justify-content: space-between;
    min-height: 56px;
    padding: 8px 18px 8px calc(var(--mm-shell-sidebar-left) + var(--mm-shell-sidebar-width) + 18px);
    background: rgba(248, 250, 252, 0.78);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
    pointer-events: auto;
  }

  body[data-ui-ready="true"] .mm-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  body[data-ui-ready="true"] .mm-header-context,
  body[data-ui-ready="true"] .mm-brand-user {
    display: flex;
  }

  body[data-ui-ready="true"] .mm-header-menu,
  body[data-ui-ready="true"] .mm-header-nav__btn {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.86);
    color: #132033;
    cursor: pointer;
  }

  body[data-ui-ready="true"] .mm-header-menu[hidden],
  body[data-ui-ready="true"] .mm-header-nav__btn[hidden] {
    display: none;
  }

  body[data-ui-ready="true"] .mm-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #132033, #2f5bea);
  }

  body[data-ui-ready="true"] .mm-brand-title,
  body[data-ui-ready="true"] .mm-brand-user {
    color: #132033;
  }

  body[data-ui-ready="true"] .mm-brand-level,
  body[data-ui-ready="true"] .mm-brand-section {
    color: rgba(19, 32, 51, 0.58);
  }

  body[data-ui-ready="true"] .mm-shell-sidebar {
    position: fixed;
    z-index: 19;
    left: var(--mm-shell-sidebar-left);
    top: var(--mm-shell-sidebar-top);
    bottom: 16px;
    width: var(--mm-shell-sidebar-width);
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 14px;
    padding: 14px 10px;
    overflow: hidden auto;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
      radial-gradient(circle at top, rgba(84, 114, 255, 0.14), transparent 30%),
      linear-gradient(180deg, #162132, #111a28);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18), inset -1px 0 0 rgba(255, 255, 255, 0.03);
    transition: width 0.18s ease, padding 0.18s ease;
  }

  body[data-ui-ready="true"] .mm-main {
    padding-top: 86px !important;
    padding-left: calc(var(--mm-shell-sidebar-left) + var(--mm-shell-sidebar-width) + 18px) !important;
    padding-right: 18px !important;
    transition: padding-left 0.18s ease;
  }

  .mm-shell-sidebar__brand {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 48px;
  }

  .mm-shell-sidebar__mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #2f5bea, #0f766e);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
  }

  .mm-shell-sidebar__brand-text {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .mm-shell-sidebar__brand-text strong,
  .mm-shell-sidebar__brand-text span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mm-shell-sidebar__brand-text strong {
    color: rgba(255, 255, 255, 0.96);
    font-size: 14px;
    line-height: 1.15;
  }

  .mm-shell-sidebar__brand-text span,
  .mm-shell-sidebar__empty {
    color: rgba(197, 206, 224, 0.66);
    font-size: 11px;
    line-height: 1.3;
  }

  .mm-shell-sidebar__nav,
  .mm-shell-sidebar__section {
    display: grid;
    gap: 12px;
    align-content: start;
  }

  .mm-shell-sidebar .mm-company-shell-sidebar__list {
    gap: 7px;
  }

  .mm-shell-sidebar .mm-company-shell-sidebar__group {
    gap: 7px;
  }

  .mm-shell-sidebar .mm-company-shell-sidebar__group-title {
    padding-inline: 4px;
  }

  .mm-shell-sidebar .mm-company-shell-sidebar__empty {
    padding: 10px;
    font-size: 11px;
  }

  .mm-shell-sidebar .mm-company-shell-navitem {
    appearance: none;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    padding: 12px;
    text-align: left;
    cursor: pointer;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
  }

  .mm-shell-sidebar .mm-company-shell-navitem:hover,
  .mm-shell-sidebar .mm-company-shell-navitem:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(125, 187, 255, 0.32);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    outline: none;
  }

  .mm-shell-sidebar .mm-company-shell-navitem.is-active {
    border-color: rgba(100, 182, 255, 0.5);
    background: linear-gradient(180deg, rgba(87, 164, 255, 0.24), rgba(80, 117, 255, 0.18));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 14px 28px rgba(9, 16, 31, 0.22);
  }

  .mm-shell-sidebar .mm-company-shell-navitem--department {
    min-height: 60px;
    border-radius: 18px;
    background: rgba(16, 24, 42, 0.54);
  }

  .mm-shell-sidebar .mm-company-shell-navitem__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
  }

  .mm-shell-sidebar .mm-company-shell-navitem__content {
    min-width: 0;
    display: grid;
    gap: 4px;
  }

  .mm-shell-sidebar .mm-company-shell-navitem__content strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
  }

  .mm-shell-sidebar .mm-company-shell-navitem__content span {
    color: rgba(213, 227, 250, 0.72);
    font-size: 12px;
    line-height: 1.45;
  }

  body[data-sidebar="collapsed"] .mm-shell-sidebar {
    padding-inline: 8px;
  }

  body[data-sidebar="collapsed"] .mm-shell-sidebar__brand {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  body[data-sidebar="collapsed"] .mm-shell-sidebar__brand-text,
  body[data-sidebar="collapsed"] .mm-shell-sidebar .mm-company-shell-sidebar__label,
  body[data-sidebar="collapsed"] .mm-shell-sidebar .mm-company-shell-sidebar__group-title,
  body[data-sidebar="collapsed"] .mm-shell-sidebar .mm-company-shell-sidebar__empty,
  body[data-sidebar="collapsed"] .mm-shell-sidebar .mm-company-shell-navitem__content,
  body[data-sidebar="collapsed"] .mm-shell-sidebar .mm-company-shell-navitem__content strong,
  body[data-sidebar="collapsed"] .mm-shell-sidebar .mm-company-shell-navitem__content span {
    display: none;
  }

  body[data-sidebar="collapsed"] .mm-shell-sidebar .mm-company-shell-navitem,
  body[data-sidebar="collapsed"] .mm-shell-sidebar .mm-company-shell-navitem--department {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 48px;
    padding: 8px 4px;
  }

  body[data-sidebar="collapsed"] .mm-shell-sidebar .mm-company-shell-navitem__icon {
    width: 34px;
    height: 34px;
  }

  body:has(.mm-company-admin-shell) .mm-company-admin-layout > .mm-company-admin-sidebar {
    display: none;
  }

  body:has(.mm-company-admin-shell) .mm-company-admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body:has(.mm-company-admin-shell) .mm-shoppro-sections-overview {
    display: none;
  }
}

@media (max-width: 1180px) {
  body:has(.mm-company-admin-shell) .mm-company-admin-overview-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:has(.mm-company-admin-shell) .mm-company-admin-overview-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body:has(.mm-company-admin-shell) .mm-company-admin-shell {
    gap: 10px;
  }

  body:has(.mm-company-admin-shell) .mm-company-admin-main,
  body:has(.mm-company-admin-shell) .mm-company-admin-panel {
    gap: 10px;
  }

  body:has(.mm-company-admin-shell) .mm-company-admin-panel,
  body:has(.mm-company-admin-shell) .mm-company-object-toolbar,
  body:has(.mm-company-admin-shell) .mm-shoppro-section-shell {
    padding: 10px;
    border-radius: 16px;
  }

  body:has(.mm-company-admin-shell) .mm-shoppro-sections-overview {
    display: none;
  }

  body:has(.mm-company-admin-shell) .mm-company-admin-stats,
  body:has(.mm-company-admin-shell) .mm-company-admin-overview-actions {
    grid-template-columns: 1fr;
  }

  body:has(.mm-company-admin-shell) .mm-company-admin-stat {
    min-height: 70px;
  }

  body:has(.mm-company-admin-shell) .mm-company-admin-overview-action {
    min-height: 58px;
  }

  body:has(.mm-company-admin-shell) .mm-company-admin-overview-workspace__list .mm-entry-card {
    min-height: 108px;
    grid-template-columns: 52px minmax(0, 1fr);
  }

  body:has(.mm-company-admin-shell) .mm-entry-card--department .mm-entry-card__aside {
    grid-column: 1 / -1;
    justify-items: start;
    min-width: 0;
  }

  .mm-shoppro-process-hero {
    padding: 12px;
    border-radius: 16px;
  }

  .mm-shoppro-process-hero__head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mm-shoppro-process-hero__summary {
    text-align: left;
    min-width: 0;
  }

  .mm-shoppro-process-hero__metrics {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mm-shoppro-process-hero h3 {
    font-size: 18px;
  }

  .mm-shoppro-process-hero p,
  .mm-shoppro-process-hero__bullet {
    font-size: 12px;
    line-height: 1.35;
  }

  .mm-shoppro-section-shell__bar,
  .mm-shoppro-section-shell__topline {
    gap: 8px;
  }

  .mm-shoppro-section-shell__title {
    gap: 4px;
  }

  .mm-shoppro-section-shell__title h2 {
    font-size: 18px;
  }

  .mm-shoppro-section-shell__title p {
    font-size: 12px;
    line-height: 1.32;
  }

  .mm-shoppro-section-shell__summary,
  .mm-shoppro-section-shell__views {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .mm-shoppro-section-shell__summary::-webkit-scrollbar,
  .mm-shoppro-section-shell__views::-webkit-scrollbar {
    display: none;
  }

  .mm-shoppro-section-shell__stat,
  .mm-shoppro-section-shell__view {
    flex: 0 0 auto;
    min-height: 34px;
  }

  .mm-shoppro-section-shell .mm-card-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mm-shoppro-section-shell .mm-card-item {
    gap: 6px;
    padding: 10px;
    border-radius: 14px;
  }
}

@media (min-width: 700px) and (max-width: 960px) {
  body:has(.mm-company-admin-shell) .mm-company-admin-panel,
  body:has(.mm-company-admin-shell) .mm-shoppro-section-shell {
    padding: 12px;
    border-radius: 18px;
  }

  body:has(.mm-company-admin-shell) .mm-shoppro-sections-overview {
    display: none;
  }

  .mm-shoppro-process-hero__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body:has(.mm-company-admin-shell) .mm-process-workspace {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 820px) and (max-width: 980px) {
  body:has(.mm-company-admin-shell) .mm-company-admin-overview-workspace__list .mm-entry-card {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  body:has(.mm-company-admin-shell) .mm-entry-card--department .mm-entry-card__aside {
    grid-column: 1 / -1;
    justify-items: start;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  body:has(.mm-company-admin-shell) .mm-header {
    gap: 6px;
    padding: 8px 10px;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  body:has(.mm-company-admin-shell) .mm-header-context {
    display: none;
  }

  body:has(.mm-company-admin-shell) .mm-header-brand,
  body:has(.mm-company-admin-shell) .mm-header-nav,
  body:has(.mm-company-admin-shell) #mm-gate-root {
    flex: 0 0 auto;
  }

  body:has(.mm-company-admin-shell) .mm-header-nav {
    gap: 6px;
  }

  body:has(.mm-company-admin-shell) .mm-header-nav__btn,
  body:has(.mm-company-admin-shell) #mm-gate-root .mm-gate-button {
    min-height: 30px;
    padding: 0 10px;
    font-size: 10px;
  }

  body:has(.mm-company-admin-shell) .mm-brand-level {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  body:has(.mm-company-admin-shell) .mm-brand-title {
    font-size: 12px;
    line-height: 1;
  }

  body:has(.mm-company-admin-shell) .mm-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 15px;
  }

  body:has(.mm-company-admin-shell) .mm-company-object-toolbar {
    gap: 8px;
    padding: 12px;
    border-radius: 20px;
  }

  body:has(.mm-company-admin-shell) .mm-company-object-toolbar__meta {
    gap: 4px;
  }

  body:has(.mm-company-admin-shell) .mm-company-object-toolbar__title {
    font-size: 16px;
  }

  body:has(.mm-company-admin-shell) .mm-company-object-chip {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  body:has(.mm-company-admin-shell) .mm-company-object-workspace [data-process-section] {
    min-height: auto;
  }
}
:root {
  --mm-canvas-bg: linear-gradient(180deg, #f4f7fb 0%, #e9eef6 100%);
}

html[data-theme="dark"] {
  --mm-canvas-bg: linear-gradient(180deg, #0f1724 0%, #131c2c 100%);
}

.mm-admin-scope-panel {
  display: grid;
  gap: 20px;
}

.mm-admin-scope-panel__head {
  padding-bottom: 4px;
}

.mm-admin-scope-panel__title {
  margin: 6px 0 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  color: var(--mm-text, #162033);
}

.mm-admin-scope-panel__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.mm-admin-scope-panel__main {
  display: grid;
  gap: 16px;
}

.mm-admin-scope-panel__utilities {
  margin-top: 4px;
}

.mm-entry-card--utility {
  width: 100%;
  text-align: left;
  border: 0;
  cursor: pointer;
}

.mm-ui-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 14, 24, 0.52);
  backdrop-filter: blur(12px);
}

.mm-ui-dialog {
  width: min(100%, 560px);
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(109, 131, 166, 0.22);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 80px rgba(15, 23, 35, 0.18);
  color: #152033;
}

html[data-theme="dark"] .mm-ui-dialog {
  background: rgba(20, 28, 44, 0.96);
  color: #f5f8ff;
  border-color: rgba(120, 147, 190, 0.28);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}

.mm-ui-dialog__head {
  display: grid;
  gap: 10px;
}

.mm-ui-dialog__head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
}

.mm-ui-dialog__head p {
  margin: 0;
  color: rgba(68, 86, 118, 0.9);
  line-height: 1.5;
}

html[data-theme="dark"] .mm-ui-dialog__head p {
  color: rgba(201, 213, 236, 0.82);
}

.mm-ui-dialog__eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6a7b97;
}

.mm-ui-dialog__form {
  display: grid;
  gap: 14px;
}

.mm-ui-dialog__field {
  display: grid;
  gap: 8px;
}

.mm-ui-dialog__field span {
  font-size: 13px;
  font-weight: 700;
  color: #5f718f;
}

.mm-ui-dialog__field input,
.mm-ui-dialog__field select,
.mm-ui-dialog__field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(124, 146, 177, 0.28);
  background: rgba(245, 248, 253, 0.96);
  color: inherit;
  font: inherit;
  box-sizing: border-box;
}

html[data-theme="dark"] .mm-ui-dialog__field input,
html[data-theme="dark"] .mm-ui-dialog__field select,
html[data-theme="dark"] .mm-ui-dialog__field textarea {
  background: rgba(12, 18, 30, 0.78);
  border-color: rgba(122, 148, 187, 0.22);
}

.mm-ui-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.mm-ui-dialog__action-danger {
  border-color: rgba(199, 56, 56, 0.28);
  color: #b92828;
}

@media (max-width: 640px) {
  .mm-ui-dialog-backdrop {
    padding: 16px;
  }

  .mm-ui-dialog {
    padding: 18px;
    border-radius: 20px;
  }

  .mm-ui-dialog__actions {
    flex-direction: column-reverse;
  }

  .mm-ui-dialog__actions > * {
    width: 100%;
  }
}

.mm-counterparty-edit-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.mm-counterparty-edit-form label {
  display: grid;
  gap: 6px;
}

.mm-counterparty-edit-form input {
  width: 100%;
}

.mm-kanban-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mm-kanban-column {
  display: grid;
  gap: 12px;
  min-height: 420px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(242, 246, 252, 0.92));
}

.mm-kanban-column__head h3 {
  margin: 0;
}

.mm-kanban-column__head p {
  margin: 4px 0 0;
}

.mm-kanban-column__body {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 280px;
  padding: 6px;
  border-radius: 18px;
  border: 1px dashed rgba(99, 116, 145, 0.22);
  background: rgba(255, 255, 255, 0.58);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.mm-kanban-column__body.is-active {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(219, 234, 254, 0.45);
}

.mm-kanban-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  cursor: grab;
}

.mm-kanban-card.is-dragging {
  opacity: 0.55;
}

.mm-kanban-card__actions {
  flex-wrap: wrap;
}

.mm-kanban-card__actions .mm-button-secondary {
  min-height: 36px;
}

.mm-kanban-empty {
  padding: 18px 14px;
  border-radius: 16px;
  color: #72819a;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.mm-invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.96);
}

.mm-invoice-table th,
.mm-invoice-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  text-align: left;
}

.mm-invoice-table th {
  color: #5f718f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .mm-kanban-board {
    grid-template-columns: 1fr;
  }

  .mm-kanban-column {
    min-height: auto;
    padding: 12px;
  }

  .mm-kanban-column__body {
    min-height: auto;
  }

  .mm-kanban-card {
    cursor: default;
  }
}

.mm-pickup-shell {
  display: grid;
  gap: 16px;
}

@media (max-width: 760px) {
  body[data-mobile-shell="active"] .mm-pickup-shell {
    padding-bottom: 116px;
  }

}

.mm-pickup-flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 8px;
  padding: 4px 0;
}

.mm-pickup-flow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.92));
  color: #405271;
}

.mm-pickup-flow-step__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(19, 32, 51, 0.08);
  color: #17233c;
  font-size: 11px;
  font-weight: 900;
}

.mm-pickup-flow-step__label {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.mm-pickup-flow-step.is-complete {
  border-color: rgba(9, 112, 102, 0.22);
  background: linear-gradient(180deg, rgba(238, 250, 246, 0.98), rgba(244, 252, 248, 0.94));
  color: #166534;
}

.mm-pickup-flow-step.is-complete .mm-pickup-flow-step__index {
  background: rgba(22, 101, 52, 0.12);
  color: #166534;
}

.mm-pickup-flow-step.is-current {
  border-color: rgba(77, 124, 255, 0.24);
  background: linear-gradient(135deg, rgba(240, 247, 255, 0.98), rgba(234, 242, 255, 0.96));
  box-shadow: 0 12px 24px rgba(77, 124, 255, 0.12);
  color: #17233c;
}

.mm-pickup-flow-step.is-current .mm-pickup-flow-step__index {
  background: #4d7cff;
  color: #ffffff;
}

.mm-pickup-empty-state {
  display: grid;
  gap: 10px;
  place-items: center;
  padding: 28px 20px;
  border: 1px dashed rgba(9, 112, 102, 0.32);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(242, 252, 249, 0.92), rgba(248, 250, 252, 0.98));
}

.mm-pickup-empty-state__title {
  font-size: 24px;
  font-weight: 800;
  color: #122033;
  text-align: center;
}

.mm-pickup-empty-state__count {
  font-size: 18px;
  font-weight: 700;
  color: #097066;
}

.mm-pickup-scan-form,
.mm-pickup-summary__rows {
  display: grid;
  gap: 12px;
}

.mm-pickup-scan-form {
  gap: 14px;
}

.mm-pickup-summary__rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.04);
}

.mm-pickup-summary__rows span {
  color: #5f718f;
  font-size: 13px;
}

.mm-pickup-summary__rows strong {
  color: #122033;
  text-align: right;
}

.mm-pickup-list-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.mm-pickup-list-item:hover {
  border-color: rgba(9, 112, 102, 0.4);
  transform: translateY(-1px);
}

.mm-pickup-list-item span {
  color: #5f718f;
  font-size: 13px;
}

.mm-pickup-preview {
  overflow: hidden;
}

.mm-pickup-preview__body {
  max-height: 720px;
  overflow: auto;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(239, 244, 248, 0.94));
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.mm-pickup-preview__body .meta {
  color: #5f718f;
}

.mm-pickup-preview__body .block {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
}

.mm-pickup-preview__body table {
  width: 100%;
  border-collapse: collapse;
}

.mm-pickup-preview__body th,
.mm-pickup-preview__body td {
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-align: left;
}

@media (max-width: 960px) {
  .mm-pickup-summary__rows > div {
    grid-template-columns: 1fr;
    display: grid;
  }

  .mm-pickup-preview__body {
    max-height: none;
  }
}

/* ============================================================
   Shell Frame / Visual Foundation
   Scope: tenant shell frame only. Business modules keep their own layout.
   ============================================================ */

html[data-shell-frame="foundation"] {
  --mm-frame-header-height: 72px;
  --mm-frame-dock-height: 82px;
  --mm-frame-gutter: clamp(14px, 2.2vw, 28px);
  --mm-frame-content-max: 1480px;
  --mm-frame-bg:
    radial-gradient(circle at 12% -8%, rgba(37, 99, 235, 0.08), transparent 30%),
    radial-gradient(circle at 94% 8%, rgba(15, 118, 110, 0.08), transparent 32%),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f6 100%);
  --mm-frame-panel: rgba(255, 255, 255, 0.86);
  --mm-frame-line: rgba(15, 23, 42, 0.08);
  --mm-frame-text: #172033;
  --mm-frame-muted: #6a7588;
  --mm-frame-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

html[data-shell-frame="foundation"],
html[data-shell-frame="foundation"] body {
  min-height: 100%;
}

html[data-shell-frame="foundation"] body {
  background: var(--mm-frame-bg);
  color: var(--mm-frame-text);
}

html[data-shell-frame="foundation"] .mm-shell {
  isolation: isolate;
  position: relative;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  background: var(--mm-frame-bg);
}

html[data-shell-frame="foundation"] .mm-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 24;
  opacity: 0;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.42);
  transition: opacity 0.18s ease;
}

html[data-shell-frame="foundation"] body[data-ui-ready="false"][data-boot-stage="booting"] .mm-shell {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

html[data-shell-frame="foundation"] body[data-ui-ready="true"] .mm-shell {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

html[data-shell-frame="foundation"] .mm-header {
  min-height: var(--mm-frame-header-height);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(160px, 0.8fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: calc(10px + env(safe-area-inset-top)) var(--mm-frame-gutter) 10px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--mm-frame-line);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.045);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  pointer-events: auto;
}

html[data-shell-frame="foundation"] .mm-header-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

html[data-shell-frame="foundation"] .mm-header-context {
  min-width: 0;
  display: flex;
  justify-content: flex-start;
}

html[data-shell-frame="foundation"] .mm-logo {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.28), transparent 30%),
    linear-gradient(145deg, #102033, #2863d9 58%, #0f766e);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.2);
}

html[data-shell-frame="foundation"] .mm-brand-level {
  color: var(--mm-frame-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

html[data-shell-frame="foundation"] .mm-brand-title {
  color: var(--mm-frame-text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

html[data-shell-frame="foundation"] .mm-brand-section {
  min-width: 0;
  max-width: min(44vw, 520px);
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.035);
  color: #344258;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-shell-frame="foundation"] .mm-brand-user {
  color: var(--mm-frame-muted);
  font-size: 11px;
  font-weight: 800;
}

html[data-shell-frame="foundation"] .mm-header-nav__btn,
html[data-shell-frame="foundation"] .mm-header-menu,
html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-button {
  min-height: 36px;
  border: 1px solid var(--mm-frame-line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--mm-frame-text);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
}

html[data-shell-frame="foundation"] .mm-header-menu {
  position: relative;
  inline-size: 38px;
  block-size: 38px;
  padding: 0;
  border-radius: 13px;
}

html[data-shell-frame="foundation"] .mm-header-menu__bars,
html[data-shell-frame="foundation"] .mm-header-menu__bars::before,
html[data-shell-frame="foundation"] .mm-header-menu__bars::after {
  position: absolute;
  left: 50%;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
}

html[data-shell-frame="foundation"] .mm-header-menu__bars {
  top: 50%;
  margin-top: -1px;
}

html[data-shell-frame="foundation"] .mm-header-menu__bars::before {
  top: -5px;
}

html[data-shell-frame="foundation"] .mm-header-menu__bars::after {
  top: 5px;
}

html[data-shell-frame="foundation"].is-superadmin-platform #mm-gate-root .mm-gate-button,
html[data-shell-frame="foundation"].is-superadmin-platform #mm-gate-root .mm-gate-group:first-child .mm-gate-button,
html[data-shell-frame="foundation"].is-superadmin-platform #mm-gate-root .mm-gate-button.primary {
  width: auto;
  min-width: 44px;
  height: 38px;
  padding: 0 12px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  overflow: visible;
  text-indent: 0;
  white-space: nowrap;
  word-spacing: normal;
}

html[data-shell-frame="foundation"] .mm-header-nav__btn[hidden],
html[data-shell-frame="foundation"] .mm-header-menu[hidden] {
  display: none !important;
}

html[data-shell-frame="foundation"] .mm-main {
  box-sizing: border-box;
  height: calc(100dvh - var(--mm-frame-header-height));
  min-height: calc(100dvh - var(--mm-frame-header-height));
  margin-top: var(--mm-frame-header-height);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--mm-frame-gutter);
  padding-bottom: calc(var(--mm-frame-dock-height) + var(--mm-frame-gutter) + env(safe-area-inset-bottom));
  scrollbar-gutter: stable both-edges;
  background: transparent;
}

html[data-shell-frame="foundation"] .mm-main > * {
  width: 100%;
  max-width: var(--mm-frame-content-max);
  margin-inline: auto;
}

html[data-shell-frame="foundation"].is-superadmin-platform .mm-main {
  padding-left: var(--mm-frame-gutter) !important;
}

html[data-shell-frame="foundation"] body:has(.mm-company-admin-shell) .mm-main {
  padding: 12px;
  padding-bottom: 12px;
}

html[data-shell-frame="foundation"] body:has(.mm-company-admin-shell) .mm-main > * {
  max-width: none;
}

html[data-shell-frame="foundation"] body:has(.mm-company-admin-shell) .mm-company-admin-shell {
  min-height: calc(100dvh - var(--mm-frame-header-height) - 24px);
}


html[data-shell-frame="foundation"] body[data-ui-ready="false"][data-boot-stage="booting"] .mm-boot-loader {
  display: grid;
}

html[data-shell-frame="foundation"] body[data-ui-ready="true"] .mm-boot-loader,
html[data-shell-frame="foundation"] body[data-boot-stage="ready"] .mm-boot-loader {
  opacity: 0;
  pointer-events: none;
}

html[data-shell-frame="foundation"] .mm-boot-loader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 14%, rgba(37, 99, 235, 0.10), transparent 28%),
    radial-gradient(circle at 84% 10%, rgba(15, 118, 110, 0.10), transparent 30%),
    linear-gradient(180deg, #f4f7fb 0%, #e9eef5 100%);
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-boot-loader {
  background:
    radial-gradient(circle at 18% 14%, rgba(37, 99, 235, 0.20), transparent 28%),
    radial-gradient(circle at 84% 10%, rgba(15, 118, 110, 0.18), transparent 30%),
    linear-gradient(180deg, #0b1220 0%, #0f1726 100%);
}

html[data-shell-frame="foundation"] .mm-boot-loader__box {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-width: min(100%, 320px);
  padding: 26px 24px;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  text-align: center;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-boot-loader__box {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(17, 25, 40, 0.92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

html[data-shell-frame="foundation"] .mm-boot-loader__brand {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #102033, #2863d9 58%, #0f766e);
  color: #fff;
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: 24px;
  font-weight: 700;
}

html[data-shell-frame="foundation"] .mm-boot-loader__text {
  color: #172033;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-boot-loader__text {
  color: #f8fafc;
}

@media (max-width: 1100px) {
  html[data-shell-frame="foundation"] {
    --mm-frame-header-height: 66px;
    --mm-frame-gutter: clamp(10px, 3.6vw, 18px);
  }

  html[data-shell-frame="foundation"] .mm-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
  }

  html[data-shell-frame="foundation"] .mm-header-context,
  html[data-shell-frame="foundation"] .mm-brand-user {
    display: none;
  }

  html[data-shell-frame="foundation"] .mm-brand-title {
    font-size: 13px;
  }
}

@media (max-width: 760px) {
  html[data-shell-frame="foundation"] {
    --mm-frame-header-height: 62px;
    --mm-frame-dock-height: 0px;
  }

  html[data-shell-frame="foundation"] .mm-header {
    padding: calc(8px + env(safe-area-inset-top)) 10px 8px;
  }

  html[data-shell-frame="foundation"] .mm-logo {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 13px;
  }

  html[data-shell-frame="foundation"] .mm-brand-level {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  html[data-shell-frame="foundation"] .mm-main {
    padding-bottom: calc(var(--mm-frame-gutter) + env(safe-area-inset-bottom));
  }

  html[data-shell-frame="foundation"] body[data-mobile-shell="active"] .mm-main {
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 420px) {
  html[data-shell-frame="foundation"] .mm-screen .mm-entry-grid {
    gap: 10px;
  }

  html[data-shell-frame="foundation"] .mm-screen .mm-entry-card {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 14px;
    border-radius: 20px;
  }

  html[data-shell-frame="foundation"] .mm-screen .mm-entry-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 18px;
    grid-row: 1 / span 2;
  }

  html[data-shell-frame="foundation"] .mm-screen .mm-entry-card__body {
    min-width: 0;
  }

  html[data-shell-frame="foundation"] .mm-screen .mm-entry-card__title {
    overflow-wrap: normal;
    word-break: normal;
    font-size: 15px;
  }

  html[data-shell-frame="foundation"] .mm-screen .mm-entry-card__aside {
    grid-column: 2;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  html[data-shell-frame="foundation"] .mm-screen .mm-entry-card__open {
    font-size: 12px;
    font-weight: 800;
  }

  html[data-shell-frame="foundation"] .mm-screen .mm-entry-card__actions {
    justify-content: flex-start;
  }

  html[data-shell-frame="foundation"] .mm-screen .mm-entry-card__actions .mm-mini-action {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 11px;
  }

  html[data-shell-frame="foundation"].is-superadmin-platform #mm-gate-root .mm-gate-button.primary {
    width: 42px;
    min-width: 42px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

html[data-shell-frame="foundation"].is-superadmin-platform #mm-gate-root .mm-gate-button.primary::before {
    content: "P";
    font-size: 15px;
    line-height: 1;
  }
}

/* ============================================================
   Reference Pack Core
   Canonical visual baseline for platform root, guest shell,
   header, desktop sidebar and tenant cards.
   ============================================================ */

html[data-shell-frame="foundation"] {
  --mm-frame-header-height: 64px;
  --mm-frame-gutter: clamp(12px, 1.7vw, 22px);
  --mm-frame-content-max: 1320px;
  --mm-reference-ink: #152033;
  --mm-reference-muted: #667184;
  --mm-reference-line: rgba(21, 32, 51, 0.1);
  --mm-reference-panel: rgba(255, 255, 255, 0.9);
  --mm-reference-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

html[data-shell-frame="foundation"],
html[data-shell-frame="foundation"] body,
html[data-shell-frame="foundation"] .mm-shell {
  overflow-x: hidden;
}

/* Owner audit cleanup 2026-05-08: platform shell readability and mobile fit. */
html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem__icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 12px;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem__content strong,
html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem__content span {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem__content strong {
  line-height: 1.22;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-owner-shell-form,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-admin-edit-form,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-canon-empty {
  background: rgba(15, 23, 42, 0.86);
  border-color: rgba(148, 163, 184, 0.24);
  color: #f8fafc;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-owner-shell-form label span,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-admin-edit-form label span,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-canon-empty strong {
  color: #f8fafc;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-owner-shell-form input,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-admin-edit-form input,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-owner-shell-form select,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-admin-edit-form select {
  background: rgba(2, 6, 23, 0.72);
  border-color: rgba(148, 163, 184, 0.34);
  color: #f8fafc;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-owner-shell-form input::placeholder,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-admin-edit-form input::placeholder {
  color: rgba(203, 213, 225, 0.72);
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs article,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs .mm-card {
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.24);
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs p,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs li,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs span {
  color: rgba(226, 232, 240, 0.9);
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-root-btn-active,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-root-btn-active:hover {
  color: #ffffff;
  background: #2563eb;
}

@media (max-width: 760px) {
  html[data-shell-frame="foundation"] .mm-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  html[data-shell-frame="foundation"] .mm-header-brand {
    min-width: 0;
    gap: 8px;
  }

  html[data-shell-frame="foundation"] .mm-logo,
  html[data-shell-frame="foundation"] .mm-brand-level {
    display: none;
  }

  html[data-shell-frame="foundation"] .mm-brand-title {
    max-width: min(34vw, 150px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
    letter-spacing: 0;
  }

  html[data-shell-frame="foundation"] #mm-gate-root .mm-gate {
    gap: 6px;
  }

  html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-button {
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border-radius: 14px;
  }

  html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-group:nth-child(n+4) {
    display: none;
  }

  html[data-shell-frame="foundation"].is-superadmin-platform #mm-gate-root .mm-gate-button.primary {
    width: 42px;
    min-width: 42px;
    padding: 0;
    font-size: 0;
  }

  html[data-shell-frame="foundation"].is-superadmin-platform #mm-gate-root .mm-gate-button.primary::before {
    content: "P";
    font-size: 15px;
  }
}

html[data-shell-frame="foundation"] .mm-header {
  min-height: var(--mm-frame-header-height);
  grid-template-columns: minmax(210px, 1fr) minmax(120px, auto) auto auto;
  gap: 10px;
  padding-top: calc(8px + env(safe-area-inset-top));
  padding-bottom: 8px;
}

html[data-shell-frame="foundation"] .mm-header-brand {
  overflow: hidden;
}

html[data-shell-frame="foundation"] .mm-header-context {
  justify-content: flex-end;
}

html[data-shell-frame="foundation"] .mm-logo {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  flex: 0 0 auto;
}

html[data-shell-frame="foundation"] .mm-brand-title {
  max-width: 44vw;
}

html[data-shell-frame="foundation"] .mm-brand-user {
  max-width: 180px;
  min-width: 0;
}

html[data-shell-frame="foundation"] #mm-gate-root {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-button {
  min-height: 34px;
  border-radius: 13px;
  white-space: nowrap;
}

@media (min-width: 1101px) {
  html[data-shell-frame="foundation"] body[data-ui-ready="true"] {
    --mm-shell-sidebar-width: 248px;
    --mm-shell-sidebar-left: 14px;
    --mm-shell-sidebar-top: 70px;
  }

  html[data-shell-frame="foundation"] body[data-ui-ready="true"][data-sidebar="collapsed"] {
    --mm-shell-sidebar-width: 76px;
  }

  html[data-shell-frame="foundation"].is-superadmin-platform body[data-ui-ready="true"] .mm-header,
  html[data-shell-frame="foundation"] body[data-ui-ready="true"] .mm-header {
    padding-left: calc(var(--mm-shell-sidebar-left) + var(--mm-shell-sidebar-width) + 16px);
  }

  html[data-shell-frame="foundation"].is-superadmin-platform body[data-ui-ready="true"] .mm-main,
  html[data-shell-frame="foundation"] body[data-ui-ready="true"] .mm-main {
    padding-top: 78px !important;
    padding-left: calc(var(--mm-shell-sidebar-left) + var(--mm-shell-sidebar-width) + 16px) !important;
    padding-right: 16px !important;
  }

  html[data-shell-frame="foundation"] body[data-ui-ready="true"] .mm-shell-sidebar {
    top: var(--mm-shell-sidebar-top);
    bottom: 12px;
    border-radius: 22px;
    padding: 12px 9px;
  }
}

html[data-shell-frame="foundation"].is-superadmin-platform .mm-main {
  padding-bottom: var(--mm-frame-gutter) !important;
}

.mm-reference-guest-card {
  width: min(760px, 100%);
  margin: clamp(14px, 5vh, 42px) auto 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(247,250,255,0.92));
  border: 1px solid var(--mm-reference-line);
  box-shadow: var(--mm-reference-shadow);
}

.mm-reference-guest-card__mark {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(145deg, #102033, #2863d9 58%, #0f766e);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.22);
}

.mm-reference-guest-card__body {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.mm-reference-guest-card__body h2 {
  margin: 0;
  color: var(--mm-reference-ink);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.mm-reference-guest-card__body p {
  margin: 0;
  max-width: 560px;
  color: var(--mm-reference-muted);
  font-size: 15px;
  line-height: 1.5;
}

.mm-reference-guest-card__actions {
  grid-column: 2;
  margin-top: 0;
  justify-content: flex-start;
}

html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.65fr);
  align-items: start;
  gap: 16px;
  overflow: visible;
  padding: 0 0 4px;
}

html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-hero,
html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-section {
  border: 1px solid var(--mm-reference-line);
  background: var(--mm-reference-panel);
  box-shadow: var(--mm-reference-shadow);
  border-radius: 24px;
}

html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-hero {
  min-height: 214px;
  padding: 18px 20px;
  display: grid;
  gap: 8px;
  align-content: start;
  background:
    radial-gradient(circle at 90% 0%, rgba(15,118,110,0.12), transparent 35%),
    linear-gradient(135deg, #ffffff, #f5f8ff);
}

html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-greeting {
  margin: 0;
  color: var(--mm-reference-muted);
  font-size: 13px;
  font-weight: 800;
}

html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-name {
  margin: 0;
  color: var(--mm-reference-ink);
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 0.95;
}

html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-pulse-item {
  background: rgba(15, 23, 42, 0.055);
  color: #435169;
}

html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-pulse-item.ok {
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
}

html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-section {
  padding: 16px;
}

html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 12px;
}

html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-section-title {
  color: #536074;
}

html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-section-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-add-btn {
  background: #152033;
  color: #ffffff;
  border: 0;
  border-radius: 14px;
  min-height: 36px;
  padding: 0 14px;
  box-shadow: 0 10px 22px rgba(21, 32, 51, 0.12);
}

html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-support-action {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(21, 32, 51, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: #334155;
  box-shadow: none;
}

html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-tenant-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(236px, 1fr));
  gap: 12px;
  padding: 0;
  overflow: visible;
}

html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-tenant-card {
  width: auto;
  min-height: 138px;
  padding: 16px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(21, 32, 51, 0.09);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-tenant-initial {
  width: 42px;
  height: 42px;
  margin: 0;
  color: #ffffff;
  background: linear-gradient(145deg, #152033, #2863d9);
}

html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-tenant-info {
  padding-right: 38px;
}

html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-tenant-name {
  color: var(--mm-reference-ink);
  font-size: 22px;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-tenant-sub,
html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-tenant-note {
  color: var(--mm-reference-muted);
}

html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-tenant-enter,
html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-tenant-del,
html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-tenant-open-label {
  display: none !important;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem__icon {
  color: #ffffff;
  font-weight: 900;
}

html[data-shell-frame="foundation"] body[data-sidebar="collapsed"] .mm-shell-sidebar {
  display: grid;
  width: var(--mm-shell-sidebar-width);
}

html[data-shell-frame="foundation"] body[data-sidebar="collapsed"] .mm-shell-sidebar .mm-company-shell-navitem__icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
}

@media (max-width: 1100px) {
  html[data-shell-frame="foundation"] .mm-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-group {
    gap: 4px;
  }

  html[data-shell-frame="foundation"] .mm-brand-title {
    max-width: 58vw;
  }
}

@media (max-width: 760px) {
  .mm-reference-guest-card {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    margin-top: 10px;
    padding: 16px;
    border-radius: 22px;
  }

  .mm-reference-guest-card__mark {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    font-size: 18px;
  }

  .mm-reference-guest-card__body h2 {
    font-size: 25px;
  }

  .mm-reference-guest-card__actions {
    grid-column: 1 / -1;
  }

  html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-shell {
    gap: 10px;
  }

  html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-hero,
  html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-section {
    border-radius: 20px;
  }

  html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-tenant-scroll {
    grid-template-columns: 1fr;
  }

  html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-tenant-card {
    min-height: 104px;
  }
}

/* ============================================================
   Reference Pack Core / Guest Auth Shell Blocker Fix
   Guest/login is a compact tenant-shell state, not a separate
   legacy office shell with sidebar or dock controls.
   ============================================================ */

html[data-shell-frame="foundation"].is-guest-auth-shell {
  --mm-frame-header-height: 58px;
  --mm-frame-gutter: clamp(12px, 2vw, 24px);
}

html[data-shell-frame="foundation"].is-guest-auth-shell body,
html[data-shell-frame="foundation"].is-guest-auth-shell .mm-shell {
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 6%, rgba(37, 99, 235, 0.14), transparent 26%),
    radial-gradient(circle at 84% 16%, rgba(15, 118, 110, 0.13), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #edf3f8 100%);
}

html[data-shell-frame="foundation"].is-guest-auth-shell .mm-header {
  min-height: var(--mm-frame-header-height);
  grid-template-columns: minmax(0, 1fr);
  padding: calc(8px + env(safe-area-inset-top)) var(--mm-frame-gutter) 8px !important;
  gap: 0;
  background: rgba(255, 255, 255, 0.82);
}

html[data-shell-frame="foundation"].is-guest-auth-shell .mm-header-brand {
  width: min(1120px, 100%);
  margin-inline: auto;
  gap: 10px;
}

html[data-shell-frame="foundation"].is-guest-auth-shell .mm-logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

html[data-shell-frame="foundation"].is-guest-auth-shell .mm-brand-level {
  color: #68758a;
  font-size: 9px;
  letter-spacing: 0.14em;
}

html[data-shell-frame="foundation"].is-guest-auth-shell .mm-brand-title {
  color: #152033;
  font-size: 14px;
}

html[data-shell-frame="foundation"].is-guest-auth-shell .mm-header-context,
html[data-shell-frame="foundation"].is-guest-auth-shell .mm-header-nav,
html[data-shell-frame="foundation"].is-guest-auth-shell .mm-brand-user,
html[data-shell-frame="foundation"].is-guest-auth-shell #mm-gate-root,
html[data-shell-frame="foundation"].is-guest-auth-shell #mm-sidebar-toggle,
html[data-shell-frame="foundation"].is-guest-auth-shell #mm-nav-up,
html[data-shell-frame="foundation"].is-guest-auth-shell .mm-shell-sidebar,
html[data-shell-frame="foundation"].is-guest-auth-shell .mm-stage1-mobile-drawer,
html[data-shell-frame="foundation"].is-guest-auth-shell .mm-stage1-mobile-tools {
  display: none !important;
}

html[data-shell-frame="foundation"].is-guest-auth-shell .mm-main {
  min-height: calc(100dvh - var(--mm-frame-header-height));
  height: auto;
  margin-top: var(--mm-frame-header-height);
  padding: clamp(20px, 6vh, 56px) var(--mm-frame-gutter) var(--mm-frame-gutter) !important;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: auto;
}

html[data-shell-frame="foundation"].is-guest-auth-shell .mm-main > * {
  width: min(1120px, 100%);
  max-width: 1120px;
}

html[data-shell-frame="foundation"].is-guest-auth-shell .mm-screen {
  min-height: calc(100dvh - var(--mm-frame-header-height) - clamp(40px, 12vh, 112px));
  display: grid;
  align-items: center;
}

html[data-shell-frame="foundation"].is-guest-auth-shell .mm-reference-guest-card {
  position: relative;
  width: min(700px, 100%);
  max-width: calc(100vw - (var(--mm-frame-gutter) * 2));
  box-sizing: border-box;
  margin: 0 auto;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.13), transparent 34%),
    radial-gradient(circle at 100% 20%, rgba(15, 118, 110, 0.11), transparent 32%),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.12);
}

html[data-shell-frame="foundation"].is-guest-auth-shell .mm-reference-guest-card::after {
  content: "";
  position: absolute;
  inset: auto 22px 18px auto;
  width: 112px;
  height: 112px;
  border-radius: 36px;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.08), rgba(15, 118, 110, 0.08));
  pointer-events: none;
}

html[data-shell-frame="foundation"].is-guest-auth-shell .mm-reference-guest-card__mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 22px;
}

html[data-shell-frame="foundation"].is-guest-auth-shell .mm-reference-guest-card__body,
html[data-shell-frame="foundation"].is-guest-auth-shell .mm-reference-guest-card__actions {
  position: relative;
  z-index: 1;
}

html[data-shell-frame="foundation"].is-guest-auth-shell .mm-reference-guest-card__body h2 {
  font-size: clamp(28px, 4vw, 44px);
}

html[data-shell-frame="foundation"].is-guest-auth-shell .mm-reference-guest-card__body p {
  max-width: 520px;
  color: #59677c;
  font-size: 15px;
}

html[data-shell-frame="foundation"].is-guest-auth-shell .mm-reference-guest-card__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 2px;
}

html[data-shell-frame="foundation"].is-guest-auth-shell .mm-reference-guest-card__actions .mm-button,
html[data-shell-frame="foundation"].is-guest-auth-shell .mm-reference-guest-card__actions .mm-button-secondary {
  min-height: 42px;
  border-radius: 14px;
  font-weight: 900;
  opacity: 1;
}

html[data-shell-frame="foundation"].is-guest-auth-shell .mm-reference-guest-card__actions .mm-button {
  background: #152033;
  color: #ffffff;
  border-color: #152033;
}

html[data-shell-frame="foundation"].is-guest-auth-shell .mm-reference-guest-card__actions .mm-button-secondary {
  background: rgba(255, 255, 255, 0.86);
  color: #152033;
  border: 1px solid rgba(21, 32, 51, 0.14);
}

@media (max-width: 760px) {
  html[data-shell-frame="foundation"].is-guest-auth-shell {
    --mm-frame-header-height: 54px;
  }

  html[data-shell-frame="foundation"].is-guest-auth-shell .mm-header {
    padding-top: calc(7px + env(safe-area-inset-top));
    padding-bottom: 7px;
  }

  html[data-shell-frame="foundation"].is-guest-auth-shell .mm-main {
    padding-top: 14px !important;
  }

  html[data-shell-frame="foundation"].is-guest-auth-shell .mm-screen {
    min-height: calc(100dvh - var(--mm-frame-header-height) - 28px);
    align-items: start;
  }

  html[data-shell-frame="foundation"].is-guest-auth-shell .mm-reference-guest-card {
    grid-template-columns: 46px minmax(0, 1fr);
    width: min(100%, calc(100vw - 56px));
    max-width: calc(100vw - 56px);
    gap: 12px;
    padding: 17px;
    border-radius: 22px;
  }

  html[data-shell-frame="foundation"].is-guest-auth-shell .mm-reference-guest-card__mark {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    font-size: 18px;
  }

  html[data-shell-frame="foundation"].is-guest-auth-shell .mm-reference-guest-card__body h2 {
    font-size: clamp(24px, 9vw, 34px);
    line-height: 1;
  }

  html[data-shell-frame="foundation"].is-guest-auth-shell .mm-reference-guest-card__body p {
    font-size: 13px;
    line-height: 1.42;
  }

  html[data-shell-frame="foundation"].is-guest-auth-shell .mm-reference-guest-card__actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  html[data-shell-frame="foundation"].is-guest-auth-shell .mm-reference-guest-card__actions .mm-button,
  html[data-shell-frame="foundation"].is-guest-auth-shell .mm-reference-guest-card__actions .mm-button-secondary {
    width: 100%;
    min-height: 40px;
  }
}

/* ============================================================
   Platform / Tenant / Company Alignment
   Extends Reference Pack Core to tenant, company and unit levels.
   ============================================================ */

html[data-shell-frame="foundation"] .mm-screen > .mm-card:has(.mm-entry-grid),
html[data-shell-frame="foundation"] .mm-company-admin-panel,
html[data-shell-frame="foundation"] .mm-shoppro-section-shell {
  border: 1px solid var(--mm-reference-line, rgba(21, 32, 51, 0.1));
  background: var(--mm-reference-panel, rgba(255, 255, 255, 0.9));
  box-shadow: var(--mm-reference-shadow, 0 18px 42px rgba(15, 23, 42, 0.08));
  border-radius: 24px;
}

html[data-shell-frame="foundation"] .mm-screen > .mm-card:has(.mm-entry-grid) {
  padding: clamp(16px, 2.4vw, 24px);
  background:
    radial-gradient(circle at 92% 0%, rgba(15, 118, 110, 0.11), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.92));
}

html[data-shell-frame="foundation"] [data-superadmin-tenant-landing="true"] > .mm-card {
  border: 1px solid var(--mm-reference-line, rgba(21, 32, 51, 0.1));
  background:
    radial-gradient(circle at 92% 0%, rgba(15, 118, 110, 0.11), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.92));
  box-shadow: var(--mm-reference-shadow, 0 18px 42px rgba(15, 23, 42, 0.08));
  border-radius: 24px;
}

html[data-shell-frame="foundation"] .mm-screen > .mm-card:has(.mm-entry-grid) .mm-section-head {
  margin-bottom: 14px;
  align-items: center;
}

html[data-shell-frame="foundation"] [data-superadmin-tenant-landing="true"] .mm-section-head {
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

html[data-shell-frame="foundation"] [data-superadmin-tenant-landing="true"] .mm-card-actions,
html[data-shell-frame="foundation"] .mm-tenant-company-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

html[data-shell-frame="foundation"] .mm-tenant-company-empty {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px dashed rgba(21, 32, 51, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: #152033;
}

html[data-shell-frame="foundation"] .mm-tenant-company-empty strong {
  color: #152033;
  font-size: 15px;
}

html[data-shell-frame="foundation"] .mm-tenant-company-empty span {
  color: #667184;
}

html[data-shell-frame="foundation"] .mm-screen > .mm-card:has(.mm-entry-grid) .tenant-eyebrow,
html[data-shell-frame="foundation"] .mm-company-admin-panel__title-kicker,
html[data-shell-frame="foundation"] .mm-company-admin-panel__eyebrow {
  color: #667184;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

html[data-shell-frame="foundation"] .mm-screen > .mm-card:has(.mm-entry-grid) h2,
html[data-shell-frame="foundation"] .mm-company-admin-panel h2 {
  color: #152033;
  letter-spacing: -0.035em;
}

html[data-shell-frame="foundation"] .mm-entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(236px, 1fr));
  gap: 12px;
}

html[data-shell-frame="foundation"] .mm-entry-card {
  min-height: 112px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(21, 32, 51, 0.1);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.9));
  color: #152033;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.055);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

html[data-shell-frame="foundation"] .mm-entry-card:hover,
html[data-shell-frame="foundation"] .mm-entry-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.085);
  outline: none;
}

html[data-shell-frame="foundation"] .mm-entry-card__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #102033, #2863d9 58%, #0f766e);
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: -0.04em;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

html[data-shell-frame="foundation"] .mm-entry-card__body {
  min-width: 0;
  display: grid;
  gap: 5px;
}

html[data-shell-frame="foundation"] .mm-entry-card__title {
  overflow: hidden;
  color: #152033;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-shell-frame="foundation"] .mm-entry-card__meta {
  overflow: hidden;
  color: #667184;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-shell-frame="foundation"] .mm-entry-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

html[data-shell-frame="foundation"] .mm-entry-card__chip {
  border: 1px solid rgba(21, 32, 51, 0.08);
  background: rgba(15, 23, 42, 0.045);
  color: #536074;
  font-size: 10px;
  font-weight: 800;
}

html[data-shell-frame="foundation"] .mm-entry-card__aside {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 34px;
}

html[data-shell-frame="foundation"] .mm-entry-card__open-button {
  border: 1px solid rgba(21, 32, 51, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #152033;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 8px 10px;
  cursor: pointer;
}

html[data-shell-frame="foundation"] .mm-entry-card__open {
  display: none !important;
}

html[data-shell-frame="foundation"] .mm-card-actions-menu summary {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(21, 32, 51, 0.1);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.86);
  color: #152033;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

html[data-shell-frame="foundation"] .mm-card-actions-menu__body {
  border: 1px solid rgba(21, 32, 51, 0.1);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

html[data-shell-frame="foundation"] .mm-card-actions-menu__body button {
  color: #152033;
  font-weight: 800;
}

html[data-shell-frame="foundation"] .mm-card-actions-menu__body button.danger {
  color: #b42318;
}

html[data-shell-frame="foundation"] body:has(.mm-company-admin-shell) .mm-main {
  background:
    radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.08), transparent 25%),
    radial-gradient(circle at 95% 12%, rgba(15, 118, 110, 0.08), transparent 28%);
}

html[data-shell-frame="foundation"] .mm-owner-shell {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: var(--mm-frame-content-max);
  margin-inline: auto;
}

html[data-shell-frame="foundation"] .mm-owner-shell-card {
  border: 1px solid rgba(21, 32, 51, 0.09);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.1), transparent 36%),
    linear-gradient(135deg, #ffffff, #f6f9ff);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.075);
  padding: 18px;
}

html[data-shell-frame="foundation"] .mm-owner-shell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

html[data-shell-frame="foundation"] .mm-owner-shell-head h2 {
  margin: 2px 0 0;
  color: #152033;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

html[data-shell-frame="foundation"] .mm-owner-shell-actions,
html[data-shell-frame="foundation"] .mm-tenant-company-empty-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

html[data-shell-frame="foundation"] .mm-owner-shell button,
html[data-shell-frame="foundation"] .mm-marketplace-root button,
html[data-shell-frame="foundation"] .mm-current-company-shell button {
  appearance: none;
  font-family: inherit;
}

html[data-shell-frame="foundation"] .mm-owner-shell .mm-button,
html[data-shell-frame="foundation"] .mm-owner-shell .mm-button-secondary,
html[data-shell-frame="foundation"] .mm-marketplace-root .mm-button,
html[data-shell-frame="foundation"] .mm-marketplace-root .mm-button-secondary,
html[data-shell-frame="foundation"] .mm-current-company-shell .mm-button,
html[data-shell-frame="foundation"] .mm-current-company-shell .mm-button-secondary {
  border-radius: 14px;
  min-height: 40px;
  padding: 9px 14px;
  font-weight: 850;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
}

html[data-shell-frame="foundation"] .mm-owner-shell .mm-button-secondary,
html[data-shell-frame="foundation"] .mm-marketplace-root .mm-button-secondary,
html[data-shell-frame="foundation"] .mm-current-company-shell .mm-button-secondary {
  border: 1px solid rgba(21, 32, 51, 0.1);
  background: rgba(255, 255, 255, 0.88);
  color: #152033;
}

html[data-shell-frame="foundation"] .mm-owner-shell .mm-entry-grid {
  gap: 12px;
}

html[data-shell-frame="foundation"] .mm-owner-shell .mm-entry-card {
  border: 1px solid rgba(21, 32, 51, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

html[data-shell-frame="foundation"] .mm-owner-shell-form {
  border: 1px solid rgba(21, 32, 51, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  padding: 14px;
}

html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-header {
  min-height: 64px;
  height: 64px;
  padding: 8px 14px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr) auto auto;
}

html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-logo {
  width: 38px;
  height: 38px;
}

html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-brand-meta,
html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-header-context {
  min-width: 0;
}

html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-brand-level {
  font-size: 10px;
  line-height: 1;
}

html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-brand-title {
  font-size: 13px;
  line-height: 1.05;
}

html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-brand-section {
  max-width: 420px;
  font-size: 11px;
  line-height: 1.15;
}

html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) #mm-gate-root .mm-gate-button {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 12px;
}

html[data-shell-frame="foundation"] body:has(.mm-company-admin-shell) .mm-company-admin-shell {
  color: #152033;
}

html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-company-admin-shell {
  width: 100%;
}

html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-company-admin-layout {
  gap: 14px;
}

html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-company-admin-layout > .mm-company-admin-sidebar {
  border: 1px solid rgba(21, 32, 51, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 255, 0.9));
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-company-admin-sidebar__label,
html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-company-admin-sidebar__group-title {
  color: #667184;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-company-admin-navitem {
  border: 1px solid rgba(21, 32, 51, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: #152033;
}

html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-company-admin-navitem.is-active,
html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-company-admin-navitem:hover,
html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-company-admin-navitem:focus-visible {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-company-admin-navitem__icon {
  background: linear-gradient(145deg, #102033, #2863d9 58%, #0f766e);
  color: #ffffff;
}

html[data-shell-frame="foundation"] body:has(.mm-company-admin-shell) .mm-company-admin-overview {
  display: grid;
  gap: 12px;
}

html[data-shell-frame="foundation"] body:has(.mm-company-admin-shell) .mm-company-admin-panel {
  padding: 16px;
}

html[data-shell-frame="foundation"] body:has(.mm-company-admin-shell) .mm-company-admin-panel--hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.12), transparent 35%),
    linear-gradient(135deg, #ffffff, #f5f8ff);
}

html[data-shell-frame="foundation"] body:has(.mm-company-admin-shell) .mm-company-admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

html[data-shell-frame="foundation"] body:has(.mm-company-admin-shell) .mm-company-admin-stat {
  border: 1px solid rgba(21, 32, 51, 0.08);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.035);
}

html[data-shell-frame="foundation"] body:has(.mm-company-admin-shell) .mm-company-admin-overview-workspace {
  margin-top: 0;
}

html[data-shell-frame="foundation"] body:has(.mm-company-admin-shell) .mm-shoppro-sections-overview {
  display: none !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-root {
  display: grid;
  gap: 14px;
  width: 100%;
}

html[data-shell-frame="foundation"] .mm-marketplace-panel-head {
  border: 1px solid rgba(21, 32, 51, 0.09);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.1), transparent 35%),
    linear-gradient(135deg, #ffffff, #f6f9ff);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.075);
}

html[data-shell-frame="foundation"] .mm-marketplace-scope-note {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(21, 32, 51, 0.08);
  background: linear-gradient(180deg, #ffffff, #f8faff);
}

html[data-shell-frame="foundation"] .mm-marketplace-scope-note strong {
  color: #152033;
  font-size: 13px;
  font-weight: 800;
}

html[data-shell-frame="foundation"] .mm-marketplace-scope-note span {
  color: #667184;
  font-size: 13px;
  line-height: 1.5;
}

html[data-shell-frame="foundation"] .mm-marketplace-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

html[data-shell-frame="foundation"] .mm-marketplace-card {
  min-height: 208px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(21, 32, 51, 0.09);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.08), transparent 35%),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.065);
  text-align: left;
}

html[data-shell-frame="foundation"] .mm-marketplace-card:hover,
html[data-shell-frame="foundation"] .mm-marketplace-card:focus-visible {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.095);
  outline: none;
}

html[data-shell-frame="foundation"] .mm-marketplace-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  align-self: start;
  font-size: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

html[data-shell-frame="foundation"] .mm-marketplace-card__body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

html[data-shell-frame="foundation"] .mm-marketplace-card__topline {
  display: grid;
  gap: 8px;
}

html[data-shell-frame="foundation"] .mm-marketplace-card__title {
  color: #152033;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

html[data-shell-frame="foundation"] .mm-marketplace-card__action-tag,
html[data-shell-frame="foundation"] .mm-marketplace-card__state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  width: fit-content;
  max-width: 100%;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #2251b4;
  font-size: 12px;
  font-weight: 800;
}

html[data-shell-frame="foundation"] .mm-marketplace-card__meta {
  color: #445268;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

html[data-shell-frame="foundation"] .mm-marketplace-card__description {
  color: #667184;
  font-size: 13px;
  line-height: 1.55;
}

html[data-shell-frame="foundation"] .mm-marketplace-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 6px;
}

html[data-shell-frame="foundation"] .mm-marketplace-card__action {
  color: #152033;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet {
  position: fixed;
  z-index: 72;
  top: 50%;
  left: 50vw;
  width: min(720px, calc(100vw - 48px));
  max-height: min(78vh, 760px);
  transform: translate(-50%, -50%);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(21, 32, 51, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.1), transparent 35%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.98));
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
  padding: 18px;
}

html[data-shell-frame="foundation"] body[data-sidebar="collapsed"] .mm-marketplace-sheet {
  left: 50vw;
  width: min(720px, calc(100vw - 48px));
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet-grabber {
  display: none;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 900;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet-meta h3 {
  margin: 0 0 5px;
  color: #152033;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet-meta p {
  margin: 0;
  color: #667184;
  font-size: 13px;
  line-height: 1.45;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-chip-row {
  margin-top: 14px;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet .tenant-form,
html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form {
  margin-top: 14px;
  border: 1px solid rgba(21, 32, 51, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: none;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-mini-action,
html[data-shell-frame="foundation"] .mm-marketplace-root .mm-mini-action,
html[data-shell-frame="foundation"] .mm-current-company-shell .mm-mini-action,
html[data-shell-frame="foundation"] .mm-owner-shell .mm-mini-action {
  appearance: none;
  min-height: 38px;
  border-radius: 13px;
  border: 1px solid rgba(21, 32, 51, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: #152033;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.055);
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-mini-action-primary,
html[data-shell-frame="foundation"] .mm-marketplace-root .mm-mini-action-primary,
html[data-shell-frame="foundation"] .mm-current-company-shell .mm-mini-action-primary,
html[data-shell-frame="foundation"] .mm-owner-shell .mm-mini-action-primary {
  border-color: rgba(37, 99, 235, 0.16);
  background: linear-gradient(135deg, #1f4fd6, #0f766e);
  color: #ffffff;
}

html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-shell {
  color: #152033;
  width: 100%;
}

html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-shell__layout {
  display: grid;
  grid-template-columns: var(--mm-company-sidebar-width, 232px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-shell-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(21, 32, 51, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 255, 0.9));
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-shell-sidebar__section,
html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-shell-sidebar__list,
html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-shell-sidebar__group {
  display: grid;
  gap: 8px;
}

html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-shell-sidebar__label,
html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-shell-sidebar__group-title {
  color: #667184;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-shell-sidebar__group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-shell-sidebar__group-title span {
  color: #7d8aa5;
  font-size: 11px;
  letter-spacing: 0.02em;
}

html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-shell-sidebar__empty {
  padding: 12px 14px;
  border: 1px solid rgba(21, 32, 51, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: #667184;
  font-size: 13px;
  line-height: 1.45;
}

html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-shell-navitem {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(21, 32, 51, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: #152033;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-shell-navitem:hover,
html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-shell-navitem:focus-visible,
html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-shell-navitem.is-active {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  outline: none;
}

html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-shell-navitem__icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #102033, #2863d9 58%, #0f766e);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-shell-navitem__content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-shell-navitem__content strong {
  color: #152033;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-shell-navitem__content span {
  color: #667184;
  font-size: 12px;
  line-height: 1.45;
}

html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-shell__main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
}

html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-canon-overview {
  display: grid;
  gap: 14px;
}

html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-canon-card {
  padding: 16px;
  border: 1px solid rgba(21, 32, 51, 0.09);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.08), transparent 34%),
    linear-gradient(135deg, #ffffff, #f6f9ff);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.075);
}

html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-canon-card__copy {
  margin: 8px 0 0;
  color: #667184;
  font-size: 13px;
  line-height: 1.5;
  max-width: 720px;
}

html[data-shell-frame="foundation"] .mm-settings-scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}

html[data-shell-frame="foundation"] .mm-settings-scope-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

html[data-shell-frame="foundation"] .mm-settings-scope-note-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(21, 32, 51, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8faff);
}

html[data-shell-frame="foundation"] .mm-settings-scope-note-card strong {
  color: #152033;
  font-size: 14px;
  font-weight: 800;
}

html[data-shell-frame="foundation"] .mm-settings-scope-note-card span {
  color: #667184;
  font-size: 13px;
  line-height: 1.5;
}

html[data-shell-frame="foundation"] .mm-settings-scope-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(21, 32, 51, 0.08);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.035);
}

html[data-shell-frame="foundation"] .mm-settings-scope-card strong {
  color: #152033;
  font-size: 14px;
  font-weight: 800;
}

html[data-shell-frame="foundation"] .mm-settings-scope-card span,
html[data-shell-frame="foundation"] .mm-settings-canon-empty span {
  color: #667184;
  font-size: 13px;
  line-height: 1.5;
}

html[data-shell-frame="foundation"] .mm-settings-canon-empty {
  margin-top: 12px;
}

html[data-shell-frame="foundation"] .mm-settings-actions-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(21, 32, 51, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.94));
}

html[data-shell-frame="foundation"] .mm-settings-actions-panel__head {
  margin-bottom: 0;
}

html[data-shell-frame="foundation"] .mm-settings-actions-panel__head h3 {
  margin: 0;
  color: #152033;
  font-size: 20px;
  font-weight: 850;
}

html[data-shell-frame="foundation"] .mm-settings-actions-panel__head p {
  margin: 8px 0 0;
  color: #667184;
  font-size: 13px;
  line-height: 1.55;
  max-width: 720px;
}

html[data-shell-frame="foundation"] .mm-settings-actions-grid {
  display: grid;
  gap: 10px;
}

html[data-shell-frame="foundation"] .mm-settings-action-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(21, 32, 51, 0.08);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.035);
}

html[data-shell-frame="foundation"] .mm-settings-action-card__body {
  display: grid;
  gap: 6px;
}

html[data-shell-frame="foundation"] .mm-settings-action-card__body strong {
  color: #152033;
  font-size: 14px;
  font-weight: 800;
}

html[data-shell-frame="foundation"] .mm-settings-action-card__body span {
  color: #667184;
  font-size: 13px;
  line-height: 1.5;
}

html[data-shell-frame="foundation"] .mm-settings-action-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-canon-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-canon-stat {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(21, 32, 51, 0.08);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.035);
}

html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-canon-stat--accent {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(15, 118, 110, 0.08));
}

html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-canon-stat span,
html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-canon-stat small {
  color: #667184;
}

html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-canon-stat strong {
  color: #152033;
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
}

html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-canon-empty,
html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-canon-unavailable {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(21, 32, 51, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

html[data-shell-frame="foundation"] .mm-company-employees-panel {
  display: grid;
  gap: 14px;
}

html[data-shell-frame="foundation"] .mm-company-employees-panel__form {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(21, 32, 51, 0.08);
  background: linear-gradient(180deg, #ffffff, #f8faff);
}

html[data-shell-frame="foundation"] .mm-inline-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

html[data-shell-frame="foundation"] .mm-company-employees-panel__lead {
  margin: 8px 0 0;
  max-width: 760px;
  color: #667184;
  font-size: 13px;
  line-height: 1.5;
}

html[data-shell-frame="foundation"] .mm-company-employees-panel__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

html[data-shell-frame="foundation"] .mm-company-employees-panel__list {
  align-items: start;
}

html[data-shell-frame="foundation"] .mm-company-employees-panel__card {
  gap: 10px;
}

html[data-shell-frame="foundation"] .mm-employee-extra-assignments {
  border-top: 1px solid rgba(134, 146, 166, 0.18);
  padding-top: 10px;
}

html[data-shell-frame="foundation"] .mm-employee-extra-assignments summary {
  color: #667184;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

html[data-shell-frame="foundation"] .mm-employee-extra-assignments__grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 8px;
}

html[data-shell-frame="foundation"] .mm-employee-extra-assignments__grid label {
  align-items: center;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(134, 146, 166, 0.18);
  border-radius: 10px;
  display: flex;
  font-size: 12px;
  gap: 7px;
  min-height: 32px;
  padding: 7px 9px;
}

html[data-shell-frame="foundation"] .mm-employee-extra-assignments__grid label.is-disabled {
  opacity: 0.48;
}

html[data-shell-frame="foundation"] .mm-company-employees-panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

html[data-shell-frame="foundation"] .mm-company-employees-panel__stat {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(21, 32, 51, 0.08);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.035);
}

html[data-shell-frame="foundation"] .mm-company-employees-panel__stat strong {
  color: #152033;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

html[data-shell-frame="foundation"] .mm-company-employees-panel__stat span {
  color: #667184;
  font-size: 13px;
}

html[data-shell-frame="foundation"] .mm-company-employees-panel__empty {
  margin-top: 2px;
}

html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-canon-module__body {
  display: grid;
  gap: 12px;
}

body:has(.mm-company-shell) .mm-main {
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.09), transparent 34%),
    linear-gradient(180deg, #f7f8fa 0%, #eff2f5 220px, #eef1f4 100%);
}

body:has(.mm-company-shell) .mm-header {
  background: rgba(247, 248, 250, 0.78);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.035);
  min-height: 56px;
  padding: 6px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}

body:has(.mm-company-shell) .mm-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body:has(.mm-company-shell) .mm-brand-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body:has(.mm-company-shell) .mm-header-context {
  min-width: 0;
  display: flex;
  justify-content: flex-start;
}

body:has(.mm-company-shell) .mm-header-menu,
body:has(.mm-company-shell) .mm-header-nav__btn,
body:has(.mm-company-shell) #mm-gate-root .mm-gate-button {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: var(--mm-office-text);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

body:has(.mm-company-shell) .mm-logo {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.24), transparent 26%),
    linear-gradient(145deg, #1f2a3d, #2f4f93);
}

body:has(.mm-company-shell) .mm-brand-level {
  color: var(--mm-office-muted-2);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 10px;
}

body:has(.mm-company-shell) .mm-brand-title,
body:has(.mm-company-shell) .mm-brand-user {
  color: var(--mm-office-text);
}

body:has(.mm-company-shell) #mm-gate-root .mm-gate-button.primary {
  background: linear-gradient(135deg, #2f5bea, #0f766e);
  color: #fff;
}

html[data-shell-frame="foundation"] .mm-marketplace-canon-layout {
  display: grid;
  gap: 14px;
}

html[data-shell-frame="foundation"] .mm-marketplace-canon-layout.has-detail {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.88fr);
  align-items: start;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet--inline {
  position: sticky;
  top: 12px;
  z-index: 1;
  inset: auto;
  left: auto;
  width: auto;
  max-height: none;
  transform: none;
  overflow: visible;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
}

html[data-shell-frame="foundation"] body[data-runtime-level="division"]:not(:has(.mm-current-company-shell)) .mm-header {
  min-height: 64px;
  height: 64px;
  grid-template-columns: minmax(280px, 1fr) minmax(120px, auto) minmax(120px, auto) auto;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}

html[data-shell-frame="foundation"] body[data-runtime-level="division"]:not(:has(.mm-current-company-shell)) .mm-header-nav {
  display: none;
}

html[data-shell-frame="foundation"] body[data-runtime-level="division"]:not(:has(.mm-current-company-shell)) .mm-logo {
  width: 38px;
  height: 38px;
}

html[data-shell-frame="foundation"] body[data-runtime-level="division"]:not(:has(.mm-current-company-shell)) .mm-brand-section {
  min-height: 34px;
  font-size: 11px;
  line-height: 1.15;
}

html[data-shell-frame="foundation"] body[data-runtime-level="division"]:not(:has(.mm-current-company-shell)) #mm-gate-root {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

html[data-shell-frame="foundation"] body[data-runtime-level="division"]:not(:has(.mm-current-company-shell)) #mm-gate-root .mm-gate-button {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 12px;
}

html[data-shell-frame="foundation"] #mm-gate-root .mm-gate {
  position: relative;
}

html[data-shell-frame="foundation"] button {
  appearance: none;
  -webkit-appearance: none;
}

html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-group {
  position: relative;
}

html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-menu {
  top: calc(100% + 10px);
  right: 0;
  min-width: 246px;
  max-width: min(320px, calc(100vw - 32px));
  border: 1px solid rgba(21, 32, 51, 0.1);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.96);
  color: #152033;
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.14);
  padding: 8px;
  z-index: 80;
  backdrop-filter: blur(18px) saturate(1.06);
  -webkit-backdrop-filter: blur(18px) saturate(1.06);
}

@media (max-width: 640px) {
  html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-menu {
    position: fixed;
    top: calc(var(--mm-frame-header-height) + 8px);
    left: 12px;
    right: 12px;
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: min(54vh, 420px);
    overflow: auto;
    border-radius: 20px;
    padding: 10px;
  }

  html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-group[data-menu-kind="language"] .mm-gate-menu,
  html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-group[data-menu-kind="profile"] .mm-gate-menu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-group[data-menu-kind="language"] .mm-gate-menu-title,
  html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-group[data-menu-kind="profile"] .mm-gate-menu-title--profile {
    padding: 8px 10px;
    margin-bottom: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(21, 32, 51, 0.08);
  }

  html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-group[data-menu-kind="language"] .mm-gate-menu-item,
  html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-group[data-menu-kind="profile"] .mm-gate-menu-item {
    min-height: 44px;
    justify-content: flex-start;
    text-align: left;
    padding: 10px 12px;
    font-size: 14px;
  }
}

html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-menu-title {
  color: #667184;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-menu-title--profile {
  border-bottom: 1px solid rgba(21, 32, 51, 0.08);
  margin-bottom: 6px;
  padding: 10px 10px 12px;
}

html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-menu-title--profile strong {
  color: #152033;
  font-size: 14px;
  font-weight: 850;
}

html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-menu-title--profile span,
html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-menu-title--profile small {
  color: #667184;
  font-size: 11px;
}

html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-menu-item {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #152033;
  font-size: 13px;
  font-weight: 800;
  background: transparent;
}

html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-menu-item:hover,
html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-menu-item:focus-visible {
  opacity: 1;
  border-color: rgba(37, 99, 235, 0.14);
  background: rgba(37, 99, 235, 0.07);
  outline: none;
}

html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-menu-item.danger {
  color: #b42318;
}

html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-menu-item.danger:hover,
html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-menu-item.danger:focus-visible {
  border-color: rgba(180, 35, 24, 0.16);
  background: rgba(180, 35, 24, 0.07);
}

@media (min-width: 641px) {
  html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-group[data-menu-kind="language"] .mm-gate-menu {
    width: min(420px, calc(100vw - 32px));
    min-width: min(420px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: minmax(88px, 0.95fr) repeat(5, minmax(46px, 1fr));
    align-items: stretch;
    gap: 6px;
  }

  html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-group[data-menu-kind="language"] .mm-gate-menu.hidden {
    display: none !important;
  }

  html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-group[data-menu-kind="language"] .mm-gate-menu-title {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 6px 8px;
  }

  html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-group[data-menu-kind="language"] .mm-gate-menu-item {
    min-height: 38px;
    padding: 6px 6px;
    justify-content: center;
    text-align: center;
    font-size: 12px;
  }

  html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-group[data-menu-kind="profile"] .mm-gate-menu {
    width: min(400px, calc(100vw - 32px));
    min-width: min(400px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: minmax(160px, 1.15fr) repeat(3, minmax(60px, 0.72fr));
    align-items: stretch;
    gap: 6px;
  }

  html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-group[data-menu-kind="profile"] .mm-gate-menu.hidden {
    display: none !important;
  }

  html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-group[data-menu-kind="profile"] .mm-gate-menu-title--profile {
    grid-column: auto;
    min-height: 0;
    padding: 7px 10px;
    margin-bottom: 0;
    border-bottom: 0;
    border-right: 1px solid rgba(21, 32, 51, 0.08);
  }

  html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-group[data-menu-kind="profile"] .mm-gate-menu-item {
    min-height: 42px;
    padding: 6px 7px;
    justify-content: center;
    text-align: center;
    font-size: 12px;
  }
}

html[data-shell-frame="foundation"].is-superadmin-platform body[data-ui-ready="true"] .mm-main {
  margin-top: 0 !important;
  padding-top: 16px !important;
}

@media (max-width: 900px) {
  html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-shell {
    grid-template-columns: 1fr;
  }

  html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-hero {
    min-height: 0;
  }

  html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-section-head {
    align-items: flex-start;
  }

  html[data-shell-frame="foundation"].is-superadmin-platform .mm-cc-section-tools {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 1100px) {
  html[data-shell-frame="foundation"] body[data-mobile-shell="active"] .mm-shell::before {
    opacity: 0;
  }

  html[data-shell-frame="foundation"] body[data-mobile-shell="active"][data-sidebar="expanded"] .mm-shell::before {
    opacity: 1;
  }

  html[data-shell-frame="foundation"] body[data-mobile-shell="active"] .mm-shell-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 595;
    border: 0;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  html[data-shell-frame="foundation"] body[data-mobile-shell="active"] .mm-shell-sidebar {
    position: fixed;
    z-index: 600;
    left: 10px;
    top: calc(var(--mm-frame-header-height) + 10px);
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: min(86vw, 360px);
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 14px;
    padding: 14px 10px;
    overflow: hidden auto;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
      radial-gradient(circle at top, rgba(84, 114, 255, 0.14), transparent 30%),
      linear-gradient(180deg, #162132, #111a28);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.22), inset -1px 0 0 rgba(255, 255, 255, 0.03);
    transform: translateX(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  html[data-shell-frame="foundation"] body[data-mobile-shell="active"][data-sidebar="expanded"] .mm-shell-sidebar {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  html[data-shell-frame="foundation"] body[data-mobile-shell="active"] .mm-main {
    padding-left: var(--mm-frame-gutter) !important;
    padding-right: var(--mm-frame-gutter) !important;
  }

  html[data-shell-frame="foundation"] body[data-mobile-shell="active"] .mm-shell-sidebar__brand,
  html[data-shell-frame="foundation"] body[data-mobile-shell="active"] .mm-shell-sidebar__nav,
  html[data-shell-frame="foundation"] body[data-mobile-shell="active"] .mm-shell-sidebar__section {
    display: grid;
    gap: 12px;
  }

  html[data-shell-frame="foundation"] body[data-mobile-shell="active"] .mm-shell-sidebar__brand {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
  }

  html[data-shell-frame="foundation"] body[data-mobile-shell="active"] .mm-shell-sidebar__mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #2f5bea, #0f766e);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  html[data-shell-frame="foundation"] body[data-mobile-shell="active"] .mm-shell-sidebar__brand-text {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  html[data-shell-frame="foundation"] body[data-mobile-shell="active"] .mm-shell-sidebar__brand-text strong {
    color: rgba(255, 255, 255, 0.96);
    font-size: 14px;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html[data-shell-frame="foundation"] body[data-mobile-shell="active"] .mm-shell-sidebar .mm-company-shell-navitem {
    appearance: none;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    padding: 12px;
    text-align: left;
    cursor: pointer;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  html[data-shell-frame="foundation"] body[data-mobile-shell="active"] .mm-shell-sidebar .mm-company-shell-navitem__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
  }

  html[data-shell-frame="foundation"] body[data-mobile-shell="active"] .mm-shell-sidebar .mm-company-shell-navitem__content {
    min-width: 0;
    display: grid;
    gap: 4px;
  }

  html[data-shell-frame="foundation"] body[data-mobile-shell="active"] .mm-shell-sidebar .mm-company-shell-navitem__content strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
  }

  html[data-shell-frame="foundation"] body[data-mobile-shell="active"] .mm-shell-sidebar .mm-company-shell-navitem__content span,
  html[data-shell-frame="foundation"] body[data-mobile-shell="active"] .mm-shell-sidebar .mm-company-shell-sidebar__empty,
  html[data-shell-frame="foundation"] body[data-mobile-shell="active"] .mm-shell-sidebar__brand-text span {
    color: rgba(213, 227, 250, 0.72);
    font-size: 12px;
    line-height: 1.4;
  }

  html[data-shell-frame="foundation"] .mm-entry-grid {
    grid-template-columns: 1fr;
  }

  html[data-shell-frame="foundation"] .mm-entry-card {
    min-height: 100px;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    padding: 12px;
  }

  html[data-shell-frame="foundation"] [data-superadmin-tenant-landing="true"] .mm-section-head {
    align-items: stretch;
  }

  html[data-shell-frame="foundation"] [data-superadmin-tenant-landing="true"] .mm-card-actions,
  html[data-shell-frame="foundation"] .mm-tenant-company-empty-actions {
    justify-content: stretch;
  }

  html[data-shell-frame="foundation"] [data-superadmin-tenant-landing="true"] .mm-card-actions button,
  html[data-shell-frame="foundation"] .mm-tenant-company-empty-actions button {
    flex: 1 1 150px;
    min-height: 42px;
  }

  html[data-shell-frame="foundation"] .mm-settings-scope-note-grid,
  html[data-shell-frame="foundation"] .mm-company-employees-panel__summary {
    grid-template-columns: 1fr;
  }

  html[data-shell-frame="foundation"] .mm-entry-card__icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
  }

  html[data-shell-frame="foundation"] body:has(.mm-company-admin-shell) .mm-company-admin-stats {
    grid-template-columns: 1fr;
  }

  html[data-shell-frame="foundation"] body:has(.mm-company-admin-shell) .mm-shoppro-sections-overview {
    display: none !important;
  }
}

@media (max-width: 760px) {
  html[data-shell-frame="foundation"] .mm-marketplace-sheet {
    inset: auto 12px 12px;
    left: 12px;
    top: auto;
    width: auto;
    max-height: min(82vh, 720px);
    transform: none;
    border-radius: 24px;
    padding: 14px;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-sheet-head {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  html[data-shell-frame="foundation"] .mm-marketplace-sheet-head > .mm-mini-action {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-sheet-icon {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-sheet--inline {
    inset: auto;
    left: auto;
    width: auto;
    max-height: none;
    border-radius: 24px;
    padding: 14px;
  }

  html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-shell__layout {
    grid-template-columns: 1fr;
  }

  html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-canon-stats {
    grid-template-columns: 1fr;
  }

  html[data-shell-frame="foundation"] .mm-settings-scope-grid,
  html[data-shell-frame="foundation"] .mm-company-employees-panel__summary {
    grid-template-columns: 1fr;
  }
}

/* Platform Root Canon Swap: scoped to SUPER_ADMIN platform root only. */
@media (min-width: 1101px) {
  html[data-shell-frame="foundation"].is-superadmin-platform body[data-ui-ready="true"] .mm-shell-sidebar {
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  }

  html[data-shell-frame="foundation"].is-superadmin-platform .mm-shell-sidebar__mark,
  html[data-shell-frame="foundation"].is-superadmin-platform .mm-shell-sidebar .mm-company-shell-navitem__icon {
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #fff;
    background: #2158d6;
    font-size: 10px;
    letter-spacing: 0.02em;
    overflow: hidden;
  }

  html[data-shell-frame="foundation"].is-superadmin-platform .mm-shell-sidebar__brand-text strong,
  html[data-shell-frame="foundation"].is-superadmin-platform .mm-shell-sidebar .mm-company-shell-navitem__content strong {
    color: #111827;
  }

  html[data-shell-frame="foundation"].is-superadmin-platform .mm-shell-sidebar__brand-text span,
  html[data-shell-frame="foundation"].is-superadmin-platform .mm-shell-sidebar .mm-company-shell-sidebar__label,
  html[data-shell-frame="foundation"].is-superadmin-platform .mm-shell-sidebar .mm-company-shell-navitem__content span {
    color: #6b7280;
  }

  html[data-shell-frame="foundation"].is-superadmin-platform .mm-shell-sidebar .mm-company-shell-navitem {
    border: 1px solid #dde2ea;
    background: #fff;
  }

  html[data-shell-frame="foundation"].is-superadmin-platform .mm-shell-sidebar .mm-company-shell-navitem.is-active {
    border-color: #b7ccff;
    background: #edf3ff;
  }
}

.mm-pr-root {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  min-height: calc(100vh - 96px);
  padding: 18px;
  color: #111827;
}

.mm-pr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

.mm-pr-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mm-pr-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 13px;
  background: #2158d6;
  color: #fff;
  font: 800 13px/1 "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
}

.mm-pr-eyebrow,
.mm-pr-section-kicker,
.mm-pr-support-title {
  color: #6b7280;
  font: 700 11px/1.1 "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mm-pr-head h1,
.mm-pr-section-head h2 {
  margin: 0;
  color: #111827;
  letter-spacing: -0.04em;
}

.mm-pr-head h1 {
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1;
}

.mm-pr-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.mm-pr-workspace {
  display: grid;
  grid-template-columns: minmax(218px, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.mm-pr-support,
.mm-pr-main {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

.mm-pr-support {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.mm-pr-support-title {
  padding: 4px 4px 2px;
}

.mm-pr-support-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  padding: 10px;
  border: 1px solid #dde2ea;
  border-radius: 16px;
  background: #fff;
  color: #111827;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.mm-pr-support-item:hover,
.mm-pr-support-item:focus-visible {
  border-color: #b7ccff;
  box-shadow: 0 12px 26px rgba(33, 88, 214, 0.12);
  outline: none;
  transform: translateY(-1px);
}

button.mm-pr-support-item {
  font: inherit;
}

.mm-pr-support-item strong,
.mm-pr-tenant-info strong {
  display: block;
  color: #111827;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mm-pr-support-item small,
.mm-pr-tenant-info span,
.mm-pr-section-head p,
.mm-pr-empty span {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.35;
}

.mm-pr-support-icon,
.mm-pr-token {
  display: grid;
  place-items: center;
  border-radius: 13px;
  font: 800 11px/1 "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.mm-pr-support-icon {
  width: 42px;
  height: 42px;
  background: #edf3ff;
  color: #2158d6;
}

.mm-pr-main {
  min-height: 420px;
  padding: 16px;
}

.mm-pr-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 2px 2px 12px;
  border-bottom: 1px solid #dde2ea;
}

.mm-pr-section-head h2 {
  margin-top: 5px;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1;
}

.mm-pr-section-head p {
  margin: 7px 0 0;
}

.mm-pr-count,
.mm-pr-chip,
.mm-pr-primary,
.mm-pr-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.mm-pr-count,
.mm-pr-chip,
.mm-pr-secondary {
  border: 1px solid #dde2ea;
  background: #fff;
  color: #374151;
}

.mm-pr-primary {
  border: 1px solid #2158d6;
  background: #2158d6;
  color: #fff;
  cursor: pointer;
}

.mm-pr-secondary,
.mm-pr-chip {
  cursor: pointer;
}

.mm-pr-chip-alert {
  border-color: rgba(207, 46, 46, 0.24);
  background: #fff1f1;
  color: #b42323;
}

.mm-pr-tenant-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mm-pr-tenant-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 122px;
  padding: 16px;
  border: 1px solid #dde2ea;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.mm-pr-tenant-card:hover,
.mm-pr-tenant-card:focus-visible {
  border-color: #b7ccff;
  box-shadow: 0 16px 34px rgba(33, 88, 214, 0.14);
  outline: none;
  transform: translateY(-2px);
}

.mm-pr-token {
  width: 48px;
  height: 48px;
  background: #edf3ff;
  color: #2158d6;
}

.mm-pr-accent-logistics .mm-pr-token {
  background: #eef9f2;
  color: #157347;
}

.mm-pr-accent-test .mm-pr-token {
  background: #fff7ea;
  color: #c56a00;
}

.mm-pr-accent-neutral .mm-pr-token {
  background: #f2edff;
  color: #6f3bf0;
}

.mm-pr-tenant-info {
  min-width: 0;
}

.mm-pr-tenant-info strong {
  overflow-wrap: anywhere;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.04;
}

.mm-pr-arrow {
  color: #9ca3af;
  font-size: 28px;
  line-height: 1;
}

.mm-pr-empty,
.mm-pr-form-wrap {
  border: 1px dashed #cfd6e2;
  border-radius: 18px;
  background: #fbfcff;
}

.mm-pr-empty {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
}

.mm-pr-form-wrap {
  margin-top: 14px;
  padding: 14px;
}

.mm-pr-form {
  display: grid;
  gap: 12px;
  max-width: 560px;
}

.mm-pr-form label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-weight: 700;
}

.mm-pr-form input {
  min-height: 42px;
  border: 1px solid #dde2ea;
  border-radius: 13px;
  padding: 0 12px;
  background: #fff;
  color: #111827;
  font: inherit;
}

.mm-pr-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.mm-development-shell .mm-office-tools-shell__scope strong {
  max-width: 220px;
}

.mm-development-shell .mm-office-tools-shell__top {
  gap: 14px;
}

.mm-development-shell .mm-office-tools-shell__summary {
  display: none;
}

.mm-development-inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #516074;
  font-size: 13px;
  font-weight: 700;
}

.mm-development-decision-item span,
.mm-development-empty-inline p,
.mm-development-shell__scope-note {
  color: #667184;
  font-size: 13px;
  line-height: 1.5;
}

.mm-development-empty-inline {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px dashed rgba(19, 32, 51, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.mm-development-panel {
  gap: 16px;
}

.mm-development-compact-block {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 20px;
  background: rgba(252, 253, 255, 0.72);
}

.mm-development-compact-block--muted {
  background: rgba(247, 249, 252, 0.78);
}

.mm-development-compact-block__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.mm-development-performer-board {
  gap: 14px;
}

.mm-development-performer-board.is-primary {
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.92));
}

.mm-development-performer-board__head {
  align-items: flex-start;
}

.mm-development-performer-board__layout {
  display: grid;
  gap: 12px;
}

.mm-development-performer-card-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mm-development-performer-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dde3eb;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.mm-development-performer-card:hover,
.mm-development-performer-card:focus-visible,
.mm-development-performer-card.is-active {
  border-color: rgba(33, 88, 214, 0.28);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
  outline: none;
}

.mm-development-performer-card.is-active {
  transform: translateY(-1px);
}

.mm-development-performer-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mm-development-performer-card__title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.mm-development-performer-card__title > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mm-development-performer-card__title strong {
  color: #132033;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.mm-development-performer-card__title span {
  color: #5f6d80;
  font-size: 12px;
  font-weight: 700;
}

.mm-development-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.mm-development-status-pill.is-muted {
  background: rgba(100, 116, 139, 0.12);
  color: #526170;
}

.mm-development-status-pill.is-ok {
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
}

.mm-development-status-pill.is-active,
.mm-development-status-pill.is-info {
  background: rgba(33, 88, 214, 0.12);
  color: #2158d6;
}

.mm-development-status-pill.is-warning {
  background: rgba(217, 119, 6, 0.14);
  color: #b45309;
}

.mm-development-status-pill.is-danger {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

.mm-development-performer-card__stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mm-development-performer-card__stats span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f5f8fc;
  color: #516074;
  font-size: 12px;
  font-weight: 700;
}

.mm-development-performer-card__stats strong {
  color: #111827;
  font-size: 14px;
}

.mm-development-performer-card__actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mm-development-performer-card__actions .mm-mini-action,
.mm-development-performer-detail__actions .mm-mini-action {
  width: 100%;
  justify-content: center;
}

.mm-development-performer-detail {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(21, 32, 51, 0.08);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.95));
}

.mm-development-performer-detail__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mm-development-performer-detail__title {
  display: grid;
  gap: 4px;
}

.mm-development-performer-detail__title strong {
  color: #132033;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.mm-development-performer-detail__title p {
  margin: 0;
  color: #5f6d80;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.mm-development-performer-detail__metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mm-development-performer-metric {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 14px;
  border: 1px solid rgba(21, 32, 51, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.mm-development-performer-metric span {
  color: #5f6d80;
  font-size: 12px;
  font-weight: 800;
}

.mm-development-performer-metric strong {
  color: #132033;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.mm-development-performer-metric small {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
}

.mm-development-performer-detail__actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mm-development-performer-detail__notes {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mm-development-compact-performers {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mm-development-create-shell {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #dce3ec;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
}

.mm-development-create-shell__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mm-development-create-shell__head strong {
  display: block;
  color: #132033;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.mm-development-create-shell__head span {
  color: #566579;
  font-size: 14px;
  line-height: 1.5;
}

.mm-development-create-steps {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mm-development-create-steps__item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(33, 88, 214, 0.12);
  border-radius: 16px;
  background: rgba(238, 244, 255, 0.7);
}

.mm-development-create-steps__item span {
  color: #2158d6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mm-development-create-steps__item strong {
  color: #132033;
  font-size: 14px;
}

.mm-development-create-form,
.mm-development-create-step,
.mm-development-short-grid {
  display: grid;
  gap: 12px;
}

.mm-development-choice-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mm-development-choice-card {
  display: block;
  cursor: pointer;
  position: relative;
}

.mm-development-choice-card__control {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mm-development-choice-card__body {
  display: grid;
  gap: 8px;
  min-height: 108px;
  padding: 14px 16px;
  border: 1px solid #dce3ec;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.mm-development-choice-card__body strong {
  color: #132033;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.mm-development-choice-card__body span {
  color: #596678;
  font-size: 13px;
  line-height: 1.5;
}

.mm-development-choice-card__control:checked + .mm-development-choice-card__body {
  border-color: rgba(33, 88, 214, 0.5);
  box-shadow: 0 0 0 3px rgba(33, 88, 214, 0.08);
  transform: translateY(-1px);
}

.mm-development-choice-card__control:focus-visible + .mm-development-choice-card__body {
  border-color: rgba(33, 88, 214, 0.7);
  box-shadow: 0 0 0 3px rgba(33, 88, 214, 0.12);
}

.mm-development-short-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mm-development-short-grid label,
.mm-development-create-step label {
  display: grid;
  gap: 6px;
}

.mm-development-short-grid textarea,
.mm-development-create-step textarea {
  min-height: 116px;
  resize: vertical;
}

.mm-development-short-grid__wide {
  grid-column: 1 / -1;
}

.mm-development-create-step--submit {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding-top: 4px;
}

.mm-development-compact-performer {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dde3eb;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.mm-development-compact-performer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mm-development-compact-performer__title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mm-development-compact-performer__title strong {
  color: #132033;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.mm-development-compact-performer__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mm-development-compact-performer__stats span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f5f8fc;
  color: #516074;
  font-size: 12px;
  font-weight: 700;
}

.mm-development-compact-performer__stats strong {
  color: #111827;
  font-size: 14px;
}

.mm-development-compact-performer__note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: #667184;
  font-size: 12px;
  font-weight: 700;
}

.mm-development-compact-performer__note strong {
  color: #132033;
}

.mm-development-queue-overview {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mm-development-queue-overview__lane {
  display: grid;
  gap: 8px;
  min-height: 110px;
  padding: 14px;
  border: 1px solid #dde3eb;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.mm-development-queue-overview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mm-development-queue-overview__head strong {
  color: #132033;
  font-size: 14px;
}

.mm-development-queue-overview__head span {
  min-width: 28px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2158d6;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.mm-development-queue-overview__lane p,
.mm-development-compact-status__item p {
  margin: 0;
  color: #5a6576;
  font-size: 13px;
  line-height: 1.5;
}

.mm-development-compact-status {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mm-development-compact-status__item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #dde3eb;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
}

.mm-development-compact-status__item strong {
  color: #132033;
  font-size: 14px;
}

.mm-development-note-grid,
.mm-development-sources {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mm-development-note-card,
.mm-development-source-card {
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 16px;
  border: 1px solid #dde2ea;
  border-radius: 18px;
  background: #fff;
}

.mm-development-detail-block {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px dashed rgba(19, 32, 51, 0.14);
  border-radius: 18px;
  background: rgba(248, 250, 253, 0.92);
}

.mm-development-detail-block summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 800;
  color: #152033;
}

.mm-development-detail-block__note {
  margin: 0;
  color: #667184;
  font-size: 13px;
  line-height: 1.5;
}

.mm-development-note-card strong,
.mm-development-source-card strong {
  color: #111827;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.mm-development-note-card p,
.mm-development-source-card p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

.mm-development-note-card {
  align-content: start;
}

.mm-development-source-card .mm-chip,
.mm-development-note-card .mm-chip {
  justify-self: flex-start;
}

.mm-development-source-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mm-development-note-card__meta {
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
}

.mm-development-source-card code,
.mm-development-note-card code {
  display: block;
  overflow-wrap: anywhere;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f7f9fc;
  color: #2158d6;
  font: 600 12px/1.45 "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.mm-development-panel .mm-office-tools-empty {
  min-height: 188px;
  border-style: solid;
}

.mm-development-agent-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mm-development-agent-card,
.mm-development-agent-detail,
.mm-development-agent-queue-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #dde2ea;
  border-radius: 18px;
  background: #fff;
}

.mm-development-agent-card {
  text-align: left;
  cursor: pointer;
}

.mm-development-agent-card.is-active {
  border-color: rgba(33, 88, 214, 0.45);
  box-shadow: 0 0 0 3px rgba(33, 88, 214, 0.08);
}

.mm-development-agent-card__head,
.mm-development-agent-detail__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mm-development-agent-card p,
.mm-development-agent-detail p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

.mm-development-agent-card code,
.mm-development-agent-queue-card code,
.mm-development-agent-detail code {
  display: block;
  overflow-wrap: anywhere;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f7f9fc;
  color: #2158d6;
  font: 600 12px/1.45 "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.mm-development-agent-layout,
.mm-development-agent-detail__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mm-development-agent-queue-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mm-development-agent-queue-card strong {
  font-size: 20px;
  color: #111827;
}

.mm-development-agent-queue-card span {
  color: #516074;
  font-size: 13px;
  font-weight: 700;
}

.mm-development-agent-queue-card small {
  color: #667184;
  font-size: 12px;
  line-height: 1.45;
}

.mm-development-agent-queue-card p {
  margin: 0;
  color: #667184;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .mm-development-action-row,
  .mm-development-summary-band,
  .mm-development-source-strip,
  .mm-development-performer-card-grid,
  .mm-development-compact-performers,
  .mm-development-queue-overview,
  .mm-development-compact-status,
  .mm-development-create-steps,
  .mm-development-short-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mm-development-performer-detail__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mm-development-performer-detail__actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mm-pr-workspace {
    grid-template-columns: 1fr;
  }

  .mm-pr-support {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mm-pr-support-title {
    grid-column: 1 / -1;
  }

  .mm-pr-tenant-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .mm-pr-root {
    padding: 12px;
    gap: 12px;
  }

  .mm-pr-head,
  .mm-pr-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .mm-pr-head-actions {
    justify-content: flex-start;
  }

  .mm-pr-support,
  .mm-pr-tenant-list {
    grid-template-columns: 1fr;
  }

  .mm-development-action-row,
  .mm-development-summary-band,
  .mm-development-source-strip,
  .mm-development-compact-status,
  .mm-development-agent-grid,
  .mm-development-agent-layout,
  .mm-development-agent-detail__grid,
  .mm-development-agent-queue-grid,
  .mm-development-note-grid,
  .mm-development-sources,
  .mm-development-create-steps,
  .mm-development-choice-grid,
  .mm-development-short-grid,
  .mm-development-performer-detail__actions,
  .mm-development-performer-detail__notes,
  .mm-development-task-result__grid {
    grid-template-columns: 1fr;
  }

  .mm-development-performer-card-grid,
  .mm-development-compact-performers,
  .mm-development-performer-detail__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mm-development-queue-overview {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .mm-development-queue-overview__lane {
    scroll-snap-align: start;
  }

  .mm-development-create-shell__head,
  .mm-development-task-result__head {
    flex-direction: column;
    align-items: stretch;
  }

  .mm-development-create-step--submit {
    grid-template-columns: 1fr;
  }

  .mm-development-compact-performer__stats,
  .mm-development-performer-card__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mm-development-performer-card__top {
    display: grid;
    align-items: start;
  }

  .mm-development-performer-card__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mm-pr-main,
  .mm-pr-support,
  .mm-pr-head {
    border-radius: 18px;
  }

  .mm-pr-tenant-card {
    min-height: 92px;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    padding: 12px;
  }

  .mm-pr-token {
    width: 44px;
    height: 44px;
  }

  .mm-pr-count,
  .mm-pr-primary,
  .mm-pr-secondary,
  .mm-pr-chip {
    width: 100%;
  }
}

/* Owner-facing internal shell dark theme. The toggle must change the whole shell, not only the header. */
html[data-shell-frame="foundation"][data-theme="dark"] {
  --mm-page-bg: #0b1220;
  --mm-surface: rgba(17, 25, 40, 0.94);
  --mm-surface-strong: rgba(21, 31, 49, 0.96);
  --mm-border: rgba(148, 163, 184, 0.20);
  --mm-text: #f8fafc;
  --mm-text-muted: #aab7cb;
  --mm-reference-ink: #f8fafc;
  --mm-reference-muted: #aab7cb;
  --mm-reference-panel: rgba(17, 25, 40, 0.94);
  --mm-reference-line: rgba(148, 163, 184, 0.20);
  --mm-reference-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

html[data-shell-frame="foundation"][data-theme="dark"] body,
html[data-shell-frame="foundation"][data-theme="dark"] .tenant-shell,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell {
  background:
    radial-gradient(circle at 82% 0%, rgba(37, 99, 235, 0.22), transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(15, 118, 110, 0.18), transparent 36%),
    #0b1220;
  color: #f8fafc;
}

html[data-shell-frame="foundation"][data-theme="dark"] body[data-ui-ready="true"] .mm-header {
  background: rgba(11, 18, 32, 0.86);
  border-bottom-color: rgba(148, 163, 184, 0.18);
}

html[data-shell-frame="foundation"][data-theme="dark"] body[data-ui-ready="true"] .mm-header-menu,
html[data-shell-frame="foundation"][data-theme="dark"] body[data-ui-ready="true"] .mm-header-nav__btn,
html[data-shell-frame="foundation"][data-theme="dark"] #mm-gate-root .mm-gate-button {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(17, 25, 40, 0.92);
  color: #f8fafc;
}

html[data-shell-frame="foundation"][data-theme="dark"] body[data-ui-ready="true"] .mm-brand-title,
html[data-shell-frame="foundation"][data-theme="dark"] body[data-ui-ready="true"] .mm-brand-user {
  color: #f8fafc;
}

html[data-shell-frame="foundation"][data-theme="dark"] body[data-ui-ready="true"] .mm-brand-level,
html[data-shell-frame="foundation"][data-theme="dark"] body[data-ui-ready="true"] .mm-brand-section {
  color: #aab7cb;
}

@media (min-width: 1101px) {
  html[data-shell-frame="foundation"][data-theme="dark"] body[data-ui-ready="true"] .mm-shell-sidebar,
  html[data-shell-frame="foundation"][data-theme="dark"].is-superadmin-platform body[data-ui-ready="true"] .mm-shell-sidebar {
    border-color: rgba(148, 163, 184, 0.20);
    background: rgba(13, 20, 34, 0.94);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  }

  html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-sidebar__brand-text strong,
  html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-sidebar .mm-company-shell-navitem__content strong,
  html[data-shell-frame="foundation"][data-theme="dark"].is-superadmin-platform .mm-shell-sidebar__brand-text strong,
  html[data-shell-frame="foundation"][data-theme="dark"].is-superadmin-platform .mm-shell-sidebar .mm-company-shell-navitem__content strong {
    color: #f8fafc;
  }

  html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-sidebar__brand-text span,
  html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-sidebar .mm-company-shell-sidebar__label,
  html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-sidebar .mm-company-shell-navitem__content span,
  html[data-shell-frame="foundation"][data-theme="dark"].is-superadmin-platform .mm-shell-sidebar__brand-text span,
  html[data-shell-frame="foundation"][data-theme="dark"].is-superadmin-platform .mm-shell-sidebar .mm-company-shell-sidebar__label,
  html[data-shell-frame="foundation"][data-theme="dark"].is-superadmin-platform .mm-shell-sidebar .mm-company-shell-navitem__content span {
    color: #aab7cb;
  }

  html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-sidebar .mm-company-shell-navitem,
  html[data-shell-frame="foundation"][data-theme="dark"].is-superadmin-platform .mm-shell-sidebar .mm-company-shell-navitem {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(21, 31, 49, 0.78);
  }

  html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-sidebar .mm-company-shell-navitem.is-active,
  html[data-shell-frame="foundation"][data-theme="dark"].is-superadmin-platform .mm-shell-sidebar .mm-company-shell-navitem.is-active {
    border-color: rgba(96, 165, 250, 0.48);
    background: rgba(37, 99, 235, 0.20);
  }
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-pr-head,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-pr-support,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-pr-main,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-pr-support-item,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-pr-tenant-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-pr-empty,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-pr-form-wrap {
  border-color: rgba(148, 163, 184, 0.20);
  background: rgba(17, 25, 40, 0.94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-pr-head h1,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-pr-section-head h2,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-pr-support-item strong,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-pr-tenant-info strong,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-pr-empty strong {
  color: #f8fafc;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-pr-eyebrow,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-pr-section-kicker,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-pr-support-title,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-pr-support-item small,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-pr-tenant-info span,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-pr-section-head p,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-pr-empty span {
  color: #aab7cb;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-pr-section-head {
  border-bottom-color: rgba(148, 163, 184, 0.18);
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-pr-count,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-pr-chip,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-pr-secondary,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-pr-form input {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(13, 20, 34, 0.88);
  color: #f8fafc;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-form-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-card-item,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-entry-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-empty,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-owner-shell-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-shell,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-shell__main,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-shell-sidebar,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-shell,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-main,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-sidebar,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-panel,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-current-company-shell,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-root,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-shell-head,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-market-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-sheet,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-install-sheet,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs-shell,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs-tree,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs-reader,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs-header,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs-meta,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs-tree__item,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-shell,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-topbar,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-breadcrumb,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-root-path,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-bulkbar,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-list,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-row,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-preview,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-shoppro-shell,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-shoppro-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-shoppro-panel,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-app-section,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen {
  border-color: rgba(148, 163, 184, 0.20);
  background: rgba(17, 25, 40, 0.92);
  color: #f8fafc;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.30);
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs-header,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs-meta,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs-tree__item,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs-tree__item.is-active {
  border-color: rgba(148, 163, 184, 0.22) !important;
  background: rgba(21, 31, 49, 0.92) !important;
  background-image: none !important;
  color: #f8fafc !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-owner-shell-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-owner-shell .mm-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-tenant-company-empty,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-canon-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-canon-empty,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-canon-unavailable,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-shell__layout,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-hero,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-stat,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-empty,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-workspace,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-object-workspace,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-layout,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-panel,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-panel--hero,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-panel--workspace,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-main .mm-entry-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-main .mm-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-main .mm-form-card {
  border-color: rgba(148, 163, 184, 0.22) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.12), transparent 34%),
    rgba(17, 25, 40, 0.94) !important;
  color: #f8fafc !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34) !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-stat,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-main .mm-entry-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-canon-stat,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-shell-navitem {
  background: rgba(21, 31, 49, 0.90) !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-entry-card__title,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-card h2,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-card h3,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-section-head h2,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-title,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-panel__title,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-panel__titleline,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-panel__head h2,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-stat strong,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-stat-value,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-navitem strong,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-shell-navitem strong,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-canon-stat strong,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-shell-title,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-market-card__title,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-card__title,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs-title,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs-content h2,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs-content h3,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs-content,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs-section,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs-meta strong,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs-tree__item strong,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-title,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-name,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-shoppro-title {
  color: #f8fafc !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-muted,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-entry-card__meta,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-entry-card__subtitle,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-subtitle,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-panel__eyebrow,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-stat span,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-stat-label,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-navitem span,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-shell-navitem span,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-canon-card__copy,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-canon-stat span,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-canon-stat small,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-shell-subtitle,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-market-card__meta,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-market-card__desc,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs-meta,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs-section p,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs-header p,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs-meta span,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs-tree__item span,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-meta,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-root-path,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-crumb,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-sep,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-empty {
  color: #aab7cb !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-button-secondary,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-mini-action,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-btn,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-card-actions-menu summary,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-row-menu summary {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(13, 20, 34, 0.88);
  color: #f8fafc;
}

html[data-shell-frame="foundation"][data-theme="dark"] input,
html[data-shell-frame="foundation"][data-theme="dark"] select,
html[data-shell-frame="foundation"][data-theme="dark"] textarea {
  border-color: rgba(148, 163, 184, 0.24);
  background-color: rgba(11, 18, 32, 0.92);
  color: #f8fafc;
}

html[data-shell-frame="foundation"][data-theme="dark"] input::placeholder,
html[data-shell-frame="foundation"][data-theme="dark"] textarea::placeholder {
  color: #7f8da3;
}

html[data-shell-frame="foundation"][data-theme="dark"] #mm-gate-root .mm-gate-menu,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-card-actions-menu__body,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-row-menu__body,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-entry-card__menu-sheet {
  border-color: rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.14), transparent 34%),
    rgba(17, 25, 40, 0.98);
  color: #f8fafc;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
}

html[data-shell-frame="foundation"][data-theme="dark"] #mm-gate-root .mm-gate-menu-title,
html[data-shell-frame="foundation"][data-theme="dark"] #mm-gate-root .mm-gate-menu-title--profile span,
html[data-shell-frame="foundation"][data-theme="dark"] #mm-gate-root .mm-gate-menu-title--profile small {
  color: #aab7cb;
}

html[data-shell-frame="foundation"][data-theme="dark"] #mm-gate-root .mm-gate-menu-title--profile strong,
html[data-shell-frame="foundation"][data-theme="dark"] #mm-gate-root .mm-gate-menu-item,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-card-actions-menu__body button,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-row-menu__body button,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-entry-card__menu-sheet button {
  color: #f8fafc;
}

html[data-shell-frame="foundation"][data-theme="dark"] #mm-gate-root .mm-gate-menu-item:hover,
html[data-shell-frame="foundation"][data-theme="dark"] #mm-gate-root .mm-gate-menu-item:focus-visible,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-card-actions-menu__body button:hover,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-row-menu__body button:hover,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-entry-card__menu-sheet button:hover {
  border-color: rgba(96, 165, 250, 0.30);
  background: rgba(37, 99, 235, 0.18);
}

.mm-owner-proof-marker {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  padding: 8px 10px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #132033;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  font: 800 11px/1.2 "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.02em;
  pointer-events: none;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-owner-proof-marker {
  border-color: rgba(96, 165, 250, 0.34);
  background: rgba(17, 25, 40, 0.92);
  color: #f8fafc;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html[data-shell-frame="foundation"] .mm-header {
  grid-template-columns: minmax(280px, 1.25fr) minmax(110px, auto) auto auto auto;
}

html[data-shell-frame="foundation"] .mm-header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

html[data-shell-frame="foundation"] .mm-header-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

html[data-shell-frame="foundation"] .mm-header-nav__icon {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__node {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__label,
html[data-shell-frame="foundation"] .mm-shell-breadcrumb__button {
  min-width: 0;
  max-width: min(28vw, 280px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: inherit;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #365072;
  cursor: pointer;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__button:hover,
html[data-shell-frame="foundation"] .mm-shell-breadcrumb__button:focus-visible {
  color: #0f4ec8;
  outline: none;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__node.is-current .mm-shell-breadcrumb__label {
  color: #152033;
  font-weight: 800;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__sep {
  color: #94a3b8;
  font-size: 11px;
}

html[data-shell-frame="foundation"] .mm-shell-tree__filter {
  display: block;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar__group-action {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(21, 32, 51, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
  color: #152033;
  font-size: 17px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar__group-action:hover,
html[data-shell-frame="foundation"] .mm-shell-sidebar__group-action:focus-visible {
  border-color: rgba(37, 99, 235, 0.26);
  background: rgba(37, 99, 235, 0.08);
  outline: none;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar__empty {
  padding: 12px;
  border: 1px dashed rgba(21, 32, 51, 0.14);
  border-radius: 14px;
  color: #667184;
  background: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  line-height: 1.4;
}

html[data-shell-frame="foundation"] .mm-digital-department-draft {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(21, 32, 51, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

html[data-shell-frame="foundation"] .mm-digital-department-draft__head,
html[data-shell-frame="foundation"] .mm-digital-department-draft__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

html[data-shell-frame="foundation"] .mm-digital-department-draft__head strong {
  color: #152033;
  font-size: 14px;
  font-weight: 850;
}

html[data-shell-frame="foundation"] .mm-digital-department-draft__form {
  display: grid;
  gap: 10px;
}

html[data-shell-frame="foundation"] .mm-digital-department-draft__form label {
  display: grid;
  gap: 6px;
}

html[data-shell-frame="foundation"] .mm-digital-department-draft__form label span,
html[data-shell-frame="foundation"] .mm-digital-department-draft__form p {
  margin: 0;
  color: #667184;
  font-size: 12px;
  line-height: 1.4;
}

html[data-shell-frame="foundation"] .mm-digital-department-draft__form input,
html[data-shell-frame="foundation"] .mm-digital-department-draft__form select {
  width: 100%;
  min-height: 38px;
  box-sizing: border-box;
  border: 1px solid rgba(21, 32, 51, 0.1);
  border-radius: 12px;
  background: rgba(247, 250, 255, 0.94);
  color: #152033;
  padding: 0 10px;
}

html[data-shell-frame="foundation"] .mm-shell-tree__filter-input {
  width: 100%;
  min-height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(21, 32, 51, 0.10);
  background: rgba(255, 255, 255, 0.94);
  color: #152033;
  padding: 8px 12px;
}

html[data-shell-frame="foundation"] .mm-shell-tree__children {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding-left: 14px;
  border-left: 1px solid rgba(148, 163, 184, 0.18);
}

html[data-shell-frame="foundation"] .mm-shell-tree__item.is-child {
  min-height: 44px;
  border-radius: 14px;
}

html[data-shell-frame="foundation"] .mm-shell-tree__item-wrap[hidden] {
  display: none !important;
}

html[data-shell-frame="foundation"] .mm-shell-command[hidden] {
  display: none !important;
}

html[data-shell-frame="foundation"] .mm-shell-command {
  position: fixed;
  inset: 0;
  z-index: 70;
}

html[data-shell-frame="foundation"] .mm-shell-command__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.44);
}

html[data-shell-frame="foundation"] .mm-shell-command__panel {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 28px));
  max-height: min(70vh, 720px);
  margin: calc(var(--mm-frame-header-height) + 18px) auto 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(21, 32, 51, 0.10);
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.10), transparent 30%),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.22);
}

html[data-shell-frame="foundation"] .mm-shell-command__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

html[data-shell-frame="foundation"] .mm-shell-command__search input {
  width: 100%;
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(21, 32, 51, 0.12);
  background: rgba(244, 247, 251, 0.96);
  color: #152033;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
}

html[data-shell-frame="foundation"] .mm-shell-command__list {
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}

html[data-shell-frame="foundation"] .mm-shell-command__item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(21, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: #152033;
  text-align: left;
}

html[data-shell-frame="foundation"] .mm-shell-command__item:hover,
html[data-shell-frame="foundation"] .mm-shell-command__item:focus-visible {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.08);
  outline: none;
}

html[data-shell-frame="foundation"] .mm-shell-command__scope {
  color: #516176;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[data-shell-frame="foundation"] .mm-shell-command__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

html[data-shell-frame="foundation"] .mm-shell-command__body strong {
  color: #152033;
  font-size: 14px;
  line-height: 1.2;
}

html[data-shell-frame="foundation"] .mm-shell-command__body span {
  color: #667184;
  font-size: 12px;
  line-height: 1.4;
}

html[data-shell-frame="foundation"] .mm-unit-workspace {
  display: grid;
  gap: 16px;
}

html[data-shell-frame="foundation"] .mm-unit-workspace__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

html[data-shell-frame="foundation"] .mm-unit-workspace__body {
  min-width: 0;
}

html[data-shell-frame="foundation"] .mm-company-canon-card--compact {
  display: grid;
  gap: 18px;
}

html[data-shell-frame="foundation"] .mm-company-canon-grid {
  display: grid;
  gap: 16px;
}

html[data-shell-frame="foundation"] .mm-company-canon-group {
  display: grid;
  gap: 12px;
}

html[data-shell-frame="foundation"] .mm-company-canon-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

html[data-shell-frame="foundation"] .mm-company-canon-group__head strong {
  color: #152033;
  font-size: 15px;
}

html[data-shell-frame="foundation"] .mm-company-canon-group__head span {
  color: #667184;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 1100px) {
  html[data-shell-frame="foundation"] .mm-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "brand nav gate"
      "context context context";
    align-items: start;
  }

  html[data-shell-frame="foundation"] .mm-header-brand {
    grid-area: brand;
  }

  html[data-shell-frame="foundation"] .mm-header-context {
    grid-area: context;
  }

  html[data-shell-frame="foundation"] .mm-header-nav {
    grid-area: nav;
    justify-content: flex-end;
    overflow: auto hidden;
    padding-bottom: 2px;
  }

  html[data-shell-frame="foundation"] #mm-gate-root {
    grid-area: gate;
  }

  html[data-shell-frame="foundation"] .mm-brand-section {
    max-width: none;
  }

  html[data-shell-frame="foundation"] .mm-header-nav__text {
    display: none;
  }
}

@media (max-width: 720px) {
  html[data-shell-frame="foundation"] .mm-brand-level {
    font-size: 9px;
  }

  html[data-shell-frame="foundation"] .mm-brand-title {
    font-size: 13px;
  }

  html[data-shell-frame="foundation"] .mm-shell-breadcrumb__label,
  html[data-shell-frame="foundation"] .mm-shell-breadcrumb__button {
    max-width: 34vw;
  }

  html[data-shell-frame="foundation"] .mm-shell-command__panel {
    width: calc(100vw - 18px);
    margin-top: calc(var(--mm-frame-header-height) + 10px);
    padding: 14px;
    border-radius: 18px;
  }

  html[data-shell-frame="foundation"] .mm-shell-command__item {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 11px 12px;
  }
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-breadcrumb__button,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-breadcrumb__node.is-current .mm-shell-breadcrumb__label,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-nav__btn,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-nav__text,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-canon-group__head strong {
  color: #f8fafc;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-breadcrumb__sep,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-command__scope,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-canon-group__head span {
  color: #aab7cb;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-tree__filter-input,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-command__search input,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-command__item {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(13, 20, 34, 0.92);
  color: #f8fafc;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-command__panel {
  border-color: rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.16), transparent 30%),
    rgba(17, 25, 40, 0.98);
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-command__body strong {
  color: #f8fafc;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-command__body span,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-nav__icon {
  color: #aab7cb;
}

html[data-shell-frame="foundation"].is-superadmin-platform .mm-header-context,
html[data-shell-frame="foundation"].is-superadmin-platform .mm-header-nav,
html[data-shell-frame="foundation"] body[data-runtime-level="division"]:not(:has(.mm-current-company-shell)) .mm-header-nav {
  display: flex !important;
}

html[data-shell-frame="foundation"] .mm-header,
html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-header,
html[data-shell-frame="foundation"] body[data-runtime-level="division"]:not(:has(.mm-current-company-shell)) .mm-header {
  grid-template-columns: minmax(240px, 1.1fr) minmax(90px, auto) minmax(0, 1fr) auto auto;
  gap: 10px;
}

html[data-shell-frame="foundation"] .mm-header-context,
html[data-shell-frame="foundation"] .mm-header-nav,
html[data-shell-frame="foundation"] #shell-user,
html[data-shell-frame="foundation"] #mm-gate-root {
  min-width: 0;
}

html[data-shell-frame="foundation"] .mm-header-nav {
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

html[data-shell-frame="foundation"] .mm-header-nav::-webkit-scrollbar {
  display: none;
}

html[data-shell-frame="foundation"] .mm-header-nav__btn {
  min-width: 38px;
  justify-content: center;
  flex: 0 0 auto;
}

html[data-shell-frame="foundation"] #shell-user,
html[data-shell-frame="foundation"] #mm-gate-root {
  justify-self: end;
}

html[data-shell-frame="foundation"] .mm-platform-canon-overview .mm-company-canon-card,
html[data-shell-frame="foundation"] [data-superadmin-tenant-landing="true"] .mm-company-canon-card,
html[data-shell-frame="foundation"] .mm-company-canon-overview .mm-company-canon-card {
  max-width: none;
}

html[data-shell-frame="foundation"] .mm-platform-canon-overview .mm-entry-card__icon {
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 1560px) {
  html[data-shell-frame="foundation"] .mm-header-nav__text {
    display: none;
  }

  html[data-shell-frame="foundation"] .mm-header,
  html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-header,
  html[data-shell-frame="foundation"] body[data-runtime-level="division"]:not(:has(.mm-current-company-shell)) .mm-header {
    grid-template-columns: minmax(220px, 1fr) minmax(80px, auto) minmax(0, 1fr) auto auto;
  }
}

/* ============================================================
   Header v2 Density and Hierarchy
   ============================================================ */

html[data-shell-frame="foundation"] .mm-header,
html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-header,
html[data-shell-frame="foundation"] body[data-runtime-level="division"]:not(:has(.mm-current-company-shell)) .mm-header {
  grid-template-columns: minmax(320px, 1fr) minmax(180px, 248px) auto;
  gap: 12px;
  align-items: center;
}

html[data-shell-frame="foundation"] .mm-header-brand,
html[data-shell-frame="foundation"] .mm-header-context,
html[data-shell-frame="foundation"] .mm-header-tools,
html[data-shell-frame="foundation"] .mm-brand-meta,
html[data-shell-frame="foundation"] #shell-breadcrumb,
html[data-shell-frame="foundation"] #mm-shell-global-nav,
html[data-shell-frame="foundation"] #mm-gate-root {
  min-width: 0;
}

html[data-shell-frame="foundation"] .mm-header-brand {
  gap: 12px;
}

html[data-shell-frame="foundation"] .mm-brand-meta {
  display: grid;
  gap: 4px;
}

html[data-shell-frame="foundation"] .mm-brand-level {
  color: #7a8799;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

html[data-shell-frame="foundation"] .mm-brand-title {
  max-width: none;
  color: #152033;
}

html[data-shell-frame="foundation"] .mm-header-context {
  display: flex;
  justify-content: center;
}

html[data-shell-frame="foundation"] #shell-context-label {
  display: block;
  width: 100%;
  max-width: 248px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 0;
}

html[data-shell-frame="foundation"] .mm-header-search {
  width: 100%;
  justify-content: flex-start;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 14px;
}

html[data-shell-frame="foundation"] .mm-header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

html[data-shell-frame="foundation"] .mm-header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  overflow: visible;
}

html[data-shell-frame="foundation"] .mm-header-nav__btn {
  min-width: 38px;
  min-height: 38px;
  justify-content: center;
  padding: 0 11px;
  border-radius: 14px;
  flex: 0 0 auto;
}

html[data-shell-frame="foundation"] .mm-header-nav__btn.is-icon-only {
  inline-size: 38px;
  padding: 0;
}

html[data-shell-frame="foundation"] .mm-header-nav__btn.has-text {
  inline-size: auto;
}

html[data-shell-frame="foundation"] .mm-header-nav__btn.has-text .mm-header-nav__text {
  display: inline;
}

html[data-shell-frame="foundation"] .mm-header-nav__btn.is-icon-only .mm-header-nav__text {
  display: none;
}

html[data-shell-frame="foundation"] .mm-header-nav__icon {
  font-size: 13px;
  line-height: 1;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__node {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 0 1 auto;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__button,
html[data-shell-frame="foundation"] .mm-shell-breadcrumb__label {
  max-width: min(28vw, 260px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__button {
  color: #607086;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__button:hover,
html[data-shell-frame="foundation"] .mm-shell-breadcrumb__button:focus-visible {
  color: #2158c5;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__node.is-current .mm-shell-breadcrumb__label {
  color: #152033;
  font-weight: 850;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__ellipsis {
  color: #8a99ab;
  font-size: 15px;
  font-weight: 900;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb--mobile {
  position: relative;
  overflow: visible;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(21, 32, 51, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: #152033;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__toggle-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__toggle-icon {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 11px;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__panel,
html[data-shell-frame="foundation"] .mm-header-overflow__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 90;
  display: grid;
  gap: 8px;
  min-width: 220px;
  max-width: min(360px, calc(100vw - 28px));
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(21, 32, 51, 0.1);
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(18px) saturate(1.06);
  -webkit-backdrop-filter: blur(18px) saturate(1.06);
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__panel {
  left: 0;
  right: auto;
  min-width: min(420px, calc(100vw - 28px));
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__panel .mm-shell-breadcrumb {
  flex-wrap: wrap;
}

html[data-shell-frame="foundation"] .mm-header-overflow {
  position: relative;
}

html[data-shell-frame="foundation"] .mm-header-overflow__panel {
  min-width: 188px;
}

html[data-shell-frame="foundation"] .mm-header-overflow__panel.hidden {
  display: none !important;
}

html[data-shell-frame="foundation"] .mm-header-overflow__panel .mm-header-nav__btn {
  inline-size: auto;
  width: 100%;
  justify-content: flex-start;
  padding: 0 12px;
}

@media (max-width: 1100px) {
  html[data-shell-frame="foundation"]:has(.mm-header-overflow__panel:not(.hidden)) #mm-shell-sidebar {
    display: none !important;
  }

  html[data-shell-frame="foundation"] .mm-header-overflow__panel:not(.hidden) {
    position: fixed !important;
    top: calc(var(--mm-frame-header-height, 56px) + 8px) !important;
    left: max(12px, env(safe-area-inset-left)) !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: min(62vh, 520px);
    overflow: auto;
    z-index: 1800 !important;
  }
}

html[data-shell-frame="foundation"] #shell-user {
  display: none !important;
}

html[data-shell-frame="foundation"] #mm-gate-root {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

html[data-shell-frame="foundation"] #mm-gate-root .mm-gate {
  display: flex;
  align-items: center;
  gap: 8px;
}

html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-button {
  min-height: 38px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 1439px) {
  html[data-shell-frame="foundation"] .mm-header,
  html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-header,
  html[data-shell-frame="foundation"] body[data-runtime-level="division"]:not(:has(.mm-current-company-shell)) .mm-header {
    grid-template-columns: minmax(260px, 1fr) minmax(160px, 220px) auto;
  }
}

@media (max-width: 1199px) {
  html[data-shell-frame="foundation"] .mm-header,
  html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-header,
  html[data-shell-frame="foundation"] body[data-runtime-level="division"]:not(:has(.mm-current-company-shell)) .mm-header {
    grid-template-columns: minmax(220px, 1fr) auto auto;
    grid-template-areas: none;
    gap: 10px;
  }

  html[data-shell-frame="foundation"] .mm-header-brand,
  html[data-shell-frame="foundation"] .mm-header-context,
  html[data-shell-frame="foundation"] .mm-header-tools,
  html[data-shell-frame="foundation"] #mm-shell-global-nav,
  html[data-shell-frame="foundation"] #mm-gate-root {
    grid-area: auto;
  }

  html[data-shell-frame="foundation"] .mm-header-context {
    justify-content: flex-start;
  }

  html[data-shell-frame="foundation"] #shell-context-label {
    max-width: 40px;
  }

  html[data-shell-frame="foundation"] .mm-header-search--compact {
    inline-size: 38px;
    min-width: 38px;
    padding: 0;
    justify-content: center;
  }

  html[data-shell-frame="foundation"] .mm-header-search--compact .mm-header-nav__text {
    display: none !important;
  }

  html[data-shell-frame="foundation"] .mm-shell-breadcrumb__button,
  html[data-shell-frame="foundation"] .mm-shell-breadcrumb__label {
    max-width: 18vw;
  }
}

@media (max-width: 767px) {
  html[data-shell-frame="foundation"] .mm-header,
  html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-header,
  html[data-shell-frame="foundation"] body[data-runtime-level="division"]:not(:has(.mm-current-company-shell)) .mm-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: none;
    gap: 8px;
    padding-top: calc(8px + env(safe-area-inset-top));
    padding-bottom: 8px;
  }

  html[data-shell-frame="foundation"] .mm-header-context {
    justify-content: flex-start;
  }

  html[data-shell-frame="foundation"] #shell-context-label {
    max-width: 40px;
  }

  html[data-shell-frame="foundation"] .mm-header-search {
    inline-size: 38px;
    min-width: 38px;
    padding: 0;
    justify-content: center;
  }

  html[data-shell-frame="foundation"] .mm-header-search .mm-header-nav__text {
    display: none !important;
  }

  html[data-shell-frame="foundation"] .mm-header-nav {
    gap: 6px;
  }

  html[data-shell-frame="foundation"] .mm-shell-breadcrumb__panel,
  html[data-shell-frame="foundation"] .mm-header-overflow__panel {
    position: fixed;
    top: calc(var(--mm-frame-header-height) + 8px);
    left: 12px;
    right: 12px;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  html[data-shell-frame="foundation"] .mm-header-overflow__panel .mm-header-nav__btn {
    min-height: 42px;
  }

  html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-button {
    min-width: 38px;
    padding-inline: 12px;
  }
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-breadcrumb__button,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-breadcrumb__node.is-current .mm-shell-breadcrumb__label,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-breadcrumb__toggle,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-nav__btn {
  color: #f8fafc;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-search,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-breadcrumb__toggle,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-breadcrumb__panel,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-overflow__panel {
  border-color: rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.14), transparent 32%),
    rgba(17, 25, 40, 0.98);
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-breadcrumb__sep,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-breadcrumb__toggle-icon,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-breadcrumb__ellipsis,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-brand-level,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-nav__icon {
  color: #aab7cb;
}

/* ============================================================
   Hibrid Live Shell
   Visual layer for the real /tenant workspace.
   Keeps current data, routes and permissions; changes only appearance.
   ============================================================ */

html[data-shell-frame="foundation"] {
  --mm-frame-header-height: 58px;
  --mm-frame-gutter: clamp(14px, 1.8vw, 24px);
  --mm-frame-content-max: 1440px;
  --mm-hl-accent: #4f6ef7;
  --mm-hl-accent-2: #14b8a6;
  --mm-hl-bg: #f6f8fc;
  --mm-hl-panel: rgba(255, 255, 255, 0.94);
  --mm-hl-panel-strong: #ffffff;
  --mm-hl-line: rgba(101, 116, 139, 0.18);
  --mm-hl-text: #101827;
  --mm-hl-muted: #64748b;
  --mm-hl-soft: #eef3ff;
  --mm-hl-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

html[data-shell-frame="foundation"],
html[data-shell-frame="foundation"] body {
  background:
    radial-gradient(circle at 10% -8%, rgba(79, 110, 247, 0.10), transparent 28%),
    radial-gradient(circle at 92% 4%, rgba(20, 184, 166, 0.10), transparent 30%),
    linear-gradient(180deg, #f8faff 0%, var(--mm-hl-bg) 44%, #eef3f9 100%);
  color: var(--mm-hl-text);
}

html[data-shell-frame="foundation"] .mm-shell {
  background: transparent;
}

html[data-shell-frame="foundation"] .mm-header,
html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-header,
html[data-shell-frame="foundation"] body[data-runtime-level="division"]:not(:has(.mm-current-company-shell)) .mm-header {
  min-height: var(--mm-frame-header-height);
  height: var(--mm-frame-header-height);
  grid-template-columns: minmax(280px, 1fr) minmax(220px, 0.85fr) auto;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--mm-hl-line);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.055);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

html[data-shell-frame="foundation"] .mm-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--mm-hl-accent), #7c3aed);
  box-shadow: 0 12px 22px rgba(79, 110, 247, 0.20);
}

html[data-shell-frame="foundation"] .mm-brand-level {
  color: var(--mm-hl-muted);
  font-size: 9px;
  letter-spacing: 0.14em;
}

html[data-shell-frame="foundation"] .mm-brand-title,
html[data-shell-frame="foundation"] .mm-shell-breadcrumb__node.is-current .mm-shell-breadcrumb__label {
  color: var(--mm-hl-text);
  font-weight: 850;
  letter-spacing: -0.02em;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__button,
html[data-shell-frame="foundation"] .mm-shell-breadcrumb__sep,
html[data-shell-frame="foundation"] .mm-brand-section {
  color: var(--mm-hl-muted);
}

html[data-shell-frame="foundation"] .mm-header-tools,
html[data-shell-frame="foundation"] .mm-header-nav,
html[data-shell-frame="foundation"] #mm-gate-root .mm-gate {
  gap: 7px;
}

html[data-shell-frame="foundation"] .mm-header-nav__btn,
html[data-shell-frame="foundation"] .mm-header-menu,
html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-button,
html[data-shell-frame="foundation"] .mm-shell-breadcrumb__toggle {
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid var(--mm-hl-line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--mm-hl-text);
  box-shadow: none;
}

html[data-shell-frame="foundation"] .mm-header-nav__btn:hover,
html[data-shell-frame="foundation"] .mm-header-menu:hover,
html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-button:hover,
html[data-shell-frame="foundation"] .mm-shell-breadcrumb__button:hover {
  border-color: rgba(79, 110, 247, 0.36);
  background: #ffffff;
  color: var(--mm-hl-accent);
}

html[data-shell-frame="foundation"] .mm-header-search {
  background: #eef2f8;
  border-color: transparent;
}

html[data-shell-frame="foundation"] .mm-main {
  background: transparent;
  padding-top: calc(var(--mm-frame-header-height) + 22px) !important;
}

@media (min-width: 1101px) {
  html[data-shell-frame="foundation"] body[data-ui-ready="true"] {
    --mm-shell-sidebar-width: 252px;
    --mm-shell-sidebar-left: 14px;
    --mm-shell-sidebar-top: 70px;
  }

  html[data-shell-frame="foundation"] body[data-ui-ready="true"][data-sidebar="collapsed"] {
    --mm-shell-sidebar-width: 72px;
  }

  html[data-shell-frame="foundation"] body[data-ui-ready="true"] .mm-shell-sidebar {
    top: var(--mm-shell-sidebar-top);
    bottom: 14px;
    width: var(--mm-shell-sidebar-width);
    padding: 12px 9px;
    border-radius: 18px;
    border: 1px solid var(--mm-hl-line);
    background:
      radial-gradient(circle at 0% 0%, rgba(79, 110, 247, 0.08), transparent 34%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92));
    box-shadow: var(--mm-hl-shadow);
  }

  html[data-shell-frame="foundation"] body[data-ui-ready="true"] .mm-main,
  html[data-shell-frame="foundation"].is-superadmin-platform body[data-ui-ready="true"] .mm-main {
    padding-left: calc(var(--mm-shell-sidebar-left) + var(--mm-shell-sidebar-width) + 18px) !important;
    padding-right: 18px !important;
  }
}

html[data-shell-frame="foundation"] .mm-shell-sidebar__mark {
  border-radius: 12px;
  background: linear-gradient(135deg, var(--mm-hl-accent), #7c3aed);
  box-shadow: 0 12px 24px rgba(79, 110, 247, 0.18);
}

html[data-shell-frame="foundation"] .mm-shell-sidebar__brand-text strong {
  color: var(--mm-hl-text);
  font-weight: 850;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar__brand-text span,
html[data-shell-frame="foundation"] .mm-shell-sidebar__empty,
html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-sidebar__label,
html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-sidebar__group-title {
  color: var(--mm-hl-muted);
}

html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-sidebar__label,
html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-sidebar__group-title {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem,
html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem--department {
  min-height: 50px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  padding: 9px 10px;
  box-shadow: none;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem:hover,
html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem:focus-visible {
  transform: none;
  border-color: var(--mm-hl-line);
  background: rgba(238, 243, 255, 0.72);
  box-shadow: none;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem.is-active {
  border-color: rgba(79, 110, 247, 0.20);
  background: #eef1fe;
  box-shadow: inset 3px 0 0 var(--mm-hl-accent);
}

html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem__icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(79, 110, 247, 0.10);
  color: var(--mm-hl-accent);
}

html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem__content strong {
  color: var(--mm-hl-text);
  font-size: 13px;
  font-weight: 760;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem__content span {
  color: var(--mm-hl-muted);
  font-size: 11.5px;
}

html[data-shell-frame="foundation"] .mm-shell-tree__children {
  border-left: 1px solid rgba(79, 110, 247, 0.18);
}

html[data-shell-frame="foundation"] .mm-screen,
html[data-shell-frame="foundation"] .mm-owner-shell,
html[data-shell-frame="foundation"] .mm-marketplace-root,
html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-shell,
html[data-shell-frame="foundation"] body:has(.mm-company-admin-shell) .mm-company-admin-shell {
  color: var(--mm-hl-text);
}

html[data-shell-frame="foundation"] .mm-card,
html[data-shell-frame="foundation"] .mm-card-item,
html[data-shell-frame="foundation"] .mm-owner-shell-card,
html[data-shell-frame="foundation"] .mm-company-admin-panel,
html[data-shell-frame="foundation"] .mm-company-admin-main .mm-card,
html[data-shell-frame="foundation"] .mm-marketplace-card,
html[data-shell-frame="foundation"] .mm-marketplace-panel-head,
html[data-shell-frame="foundation"] .mm-screen > .mm-card:has(.mm-entry-grid),
html[data-shell-frame="foundation"] [data-superadmin-tenant-landing="true"] > .mm-card,
html[data-shell-frame="foundation"] .mm-company-shell-sidebar,
html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-company-admin-layout > .mm-company-admin-sidebar,
html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-shell-sidebar {
  border-color: var(--mm-hl-line);
  border-radius: 16px;
  background: var(--mm-hl-panel);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.065);
}

html[data-shell-frame="foundation"] .mm-owner-shell-card,
html[data-shell-frame="foundation"] .mm-marketplace-panel-head,
html[data-shell-frame="foundation"] .mm-company-admin-panel--hero,
html[data-shell-frame="foundation"] .mm-screen > .mm-card:has(.mm-entry-grid),
html[data-shell-frame="foundation"] [data-superadmin-tenant-landing="true"] > .mm-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.10), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.94));
}

html[data-shell-frame="foundation"] .mm-entry-card,
html[data-shell-frame="foundation"] .mm-owner-shell .mm-entry-card,
html[data-shell-frame="foundation"] .mm-company-admin-navitem,
html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-company-admin-navitem,
html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-shell-navitem {
  border-radius: 14px;
  border-color: var(--mm-hl-line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}

html[data-shell-frame="foundation"] .mm-entry-card:hover,
html[data-shell-frame="foundation"] .mm-card-item:hover,
html[data-shell-frame="foundation"] .mm-marketplace-card:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 110, 247, 0.28);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.085);
}

html[data-shell-frame="foundation"] .mm-entry-card__icon,
html[data-shell-frame="foundation"] .mm-company-admin-navitem__icon,
html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-company-admin-navitem__icon {
  border-radius: 13px;
  background: linear-gradient(135deg, var(--mm-hl-accent), #7c3aed);
}

html[data-shell-frame="foundation"] .mm-button,
html[data-shell-frame="foundation"] .mm-button-secondary,
html[data-shell-frame="foundation"] .mm-mini-action,
html[data-shell-frame="foundation"] .mm-card-actions-menu summary,
html[data-shell-frame="foundation"] button {
  border-radius: 10px;
}

html[data-shell-frame="foundation"] .mm-button,
html[data-shell-frame="foundation"] .mm-mini-action-primary,
html[data-shell-frame="foundation"] .mm-marketplace-root .mm-mini-action-primary,
html[data-shell-frame="foundation"] .mm-owner-shell .mm-mini-action-primary {
  border-color: rgba(79, 110, 247, 0.16);
  background: linear-gradient(135deg, var(--mm-hl-accent), #3a55d4);
  color: #ffffff;
}

html[data-shell-frame="foundation"] .mm-button-secondary,
html[data-shell-frame="foundation"] .mm-mini-action,
html[data-shell-frame="foundation"] .mm-owner-shell .mm-button-secondary,
html[data-shell-frame="foundation"] .mm-marketplace-root .mm-button-secondary,
html[data-shell-frame="foundation"] .mm-current-company-shell .mm-button-secondary {
  border-color: var(--mm-hl-line);
  background: rgba(255, 255, 255, 0.84);
  color: var(--mm-hl-text);
}

html[data-shell-frame="foundation"] input,
html[data-shell-frame="foundation"] select,
html[data-shell-frame="foundation"] textarea,
html[data-shell-frame="foundation"] .tenant-form input,
html[data-shell-frame="foundation"] .tenant-form select,
html[data-shell-frame="foundation"] .tenant-form textarea {
  border-color: var(--mm-hl-line);
  border-radius: 10px;
  background: #f2f5fa;
  color: var(--mm-hl-text);
}

html[data-shell-frame="foundation"] table,
html[data-shell-frame="foundation"] .mm-table,
html[data-shell-frame="foundation"] .mm-table-wrap {
  border-color: var(--mm-hl-line);
}

html[data-shell-frame="foundation"] th {
  background: #eef2f8;
  color: var(--mm-hl-muted);
}

html[data-shell-frame="foundation"] td {
  border-color: rgba(101, 116, 139, 0.12);
}

html[data-shell-frame="foundation"] .tenant-shell,
html[data-shell-frame="foundation"] .tenant-card,
html[data-shell-frame="foundation"] .tenant-form,
html[data-shell-frame="foundation"] .mm-cc-hero,
html[data-shell-frame="foundation"] .mm-cc-section,
html[data-shell-frame="foundation"] .mm-cc-summary-card,
html[data-shell-frame="foundation"] .mm-cc-summary-domain,
html[data-shell-frame="foundation"] .mm-cc-tenant-card,
html[data-shell-frame="foundation"] .mm-cc-form-wrap,
html[data-shell-frame="foundation"] .mm-cc-empty,
html[data-shell-frame="foundation"] .mm-cc-tile,
html[data-shell-frame="foundation"] .mm-office-tools-shell,
html[data-shell-frame="foundation"] .mm-office-tools-item,
html[data-shell-frame="foundation"] .mm-office-tools-panel,
html[data-shell-frame="foundation"] .mm-development-panel,
html[data-shell-frame="foundation"] .mm-development-agent-card,
html[data-shell-frame="foundation"] .mm-development-agent-detail,
html[data-shell-frame="foundation"] .mm-development-agent-queue-card,
html[data-shell-frame="foundation"] .mm-platform-docs-tree,
html[data-shell-frame="foundation"] .mm-platform-docs-content,
html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-shell {
  border-color: var(--mm-hl-line) !important;
  border-radius: 16px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.94) !important;
  color: var(--mm-hl-text) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.065) !important;
}

html[data-shell-frame="foundation"] .mm-cc-shell,
html[data-shell-frame="foundation"] .mm-office-tools-shell,
html[data-shell-frame="foundation"] .mm-screen-exchange,
html[data-shell-frame="foundation"] .mm-platform-docs-shell {
  gap: 14px;
}

html[data-shell-frame="foundation"] .mm-cc-name,
html[data-shell-frame="foundation"] .mm-cc-summary-value,
html[data-shell-frame="foundation"] .mm-cc-tenant-name,
html[data-shell-frame="foundation"] .tenant-card h2,
html[data-shell-frame="foundation"] .mm-office-tools-shell h2,
html[data-shell-frame="foundation"] .mm-development-panel h2,
html[data-shell-frame="foundation"] .mm-platform-docs-content h2 {
  color: var(--mm-hl-text) !important;
  letter-spacing: -0.03em;
}

html[data-shell-frame="foundation"] .mm-cc-greeting,
html[data-shell-frame="foundation"] .mm-cc-summary-label,
html[data-shell-frame="foundation"] .mm-cc-tenant-sub,
html[data-shell-frame="foundation"] .mm-cc-tenant-note,
html[data-shell-frame="foundation"] .tenant-form span,
html[data-shell-frame="foundation"] .tenant-card p,
html[data-shell-frame="foundation"] .mm-office-tools-shell p,
html[data-shell-frame="foundation"] .mm-development-panel p,
html[data-shell-frame="foundation"] .mm-platform-docs-content p {
  color: var(--mm-hl-muted) !important;
}

html[data-shell-frame="foundation"] .mm-cc-add-btn,
html[data-shell-frame="foundation"] .mm-cc-form-submit,
html[data-shell-frame="foundation"] .mm-cc-tenant-enter,
html[data-shell-frame="foundation"] .tenant-form button {
  border-color: rgba(79, 110, 247, 0.16) !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, var(--mm-hl-accent), #3a55d4) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(79, 110, 247, 0.16) !important;
}

html[data-shell-frame="foundation"] .mm-cc-tile-red,
html[data-shell-frame="foundation"] .mm-cc-tile-gold,
html[data-shell-frame="foundation"] .mm-cc-tile-blue,
html[data-shell-frame="foundation"] .mm-cc-tile-teal,
html[data-shell-frame="foundation"] .mm-cc-tile-purple,
html[data-shell-frame="foundation"] .mm-cc-tile-dark {
  background:
    radial-gradient(circle at 100% 0%, rgba(79, 110, 247, 0.10), transparent 34%),
    #ffffff !important;
  color: var(--mm-hl-text) !important;
}

html[data-shell-frame="foundation"] .mm-structure-board {
  overflow: hidden;
}

html[data-shell-frame="foundation"] .mm-structure-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

html[data-shell-frame="foundation"] .mm-structure-chart {
  min-height: 360px;
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--mm-hl-line);
  border-radius: 16px;
  background:
    linear-gradient(rgba(79, 110, 247, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 110, 247, 0.045) 1px, transparent 1px),
    rgba(248, 251, 255, 0.82);
  background-size: 24px 24px;
}

html[data-shell-frame="foundation"] .mm-structure-root,
html[data-shell-frame="foundation"] .mm-structure-child {
  display: grid;
  justify-items: center;
  gap: 14px;
}

html[data-shell-frame="foundation"] .mm-structure-branch {
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 100%;
  min-width: 0;
  padding-top: 24px;
}

html[data-shell-frame="foundation"] .mm-structure-branch::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: rgba(79, 110, 247, 0.22);
}

html[data-shell-frame="foundation"] .mm-structure-child::before {
  content: '';
  width: 1px;
  height: 14px;
  margin-bottom: -14px;
  background: rgba(79, 110, 247, 0.22);
}

html[data-shell-frame="foundation"] .mm-structure-branch > .mm-structure-child {
  flex: 0 1 190px;
  min-width: 190px;
}

html[data-shell-frame="foundation"] .mm-structure-node {
  width: 190px;
  min-height: 84px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--mm-hl-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--mm-hl-text);
  text-align: center;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

html[data-shell-frame="foundation"] .mm-structure-node.is-root {
  width: 240px;
  border-color: rgba(79, 110, 247, 0.22);
  background: linear-gradient(135deg, #ffffff, #eef3ff);
}

html[data-shell-frame="foundation"] .mm-structure-node strong {
  color: var(--mm-hl-text);
  font-size: 13px;
  font-weight: 850;
}

html[data-shell-frame="foundation"] .mm-structure-node span,
html[data-shell-frame="foundation"] .mm-structure-node em {
  color: var(--mm-hl-muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

html[data-shell-frame="foundation"] .mm-structure-detail {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--mm-hl-line);
  border-radius: 16px;
  background: var(--mm-hl-panel);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}

html[data-shell-frame="foundation"] .mm-structure-detail strong {
  color: var(--mm-hl-text);
  font-size: 14px;
  font-weight: 850;
}

html[data-shell-frame="foundation"] .mm-structure-detail span {
  color: var(--mm-hl-muted);
  font-size: 12px;
  line-height: 1.5;
}

html[data-shell-frame="foundation"][data-theme="dark"] {
  --mm-hl-bg: #0c111c;
  --mm-hl-panel: rgba(18, 24, 39, 0.94);
  --mm-hl-panel-strong: #151c2e;
  --mm-hl-line: rgba(148, 163, 184, 0.18);
  --mm-hl-text: #eef2ff;
  --mm-hl-muted: #9aa6bd;
  --mm-hl-soft: #1b2542;
}

html[data-shell-frame="foundation"][data-theme="dark"],
html[data-shell-frame="foundation"][data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% -8%, rgba(79, 110, 247, 0.18), transparent 30%),
    radial-gradient(circle at 92% 4%, rgba(20, 184, 166, 0.14), transparent 32%),
    linear-gradient(180deg, #0b1020 0%, #0c111c 100%);
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-header,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-sidebar,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-card-item,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-owner-shell-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-panel,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-panel-head {
  background: var(--mm-hl-panel);
  border-color: var(--mm-hl-line);
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-structure-chart,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-structure-node,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-structure-detail,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-cc-tile-red,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-cc-tile-gold,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-cc-tile-blue,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-cc-tile-teal,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-cc-tile-purple,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-cc-tile-dark {
  background: rgba(18, 24, 39, 0.94) !important;
  border-color: var(--mm-hl-line) !important;
}

@media (max-width: 767px) {
  html[data-shell-frame="foundation"] .mm-header,
  html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-header,
  html[data-shell-frame="foundation"] body[data-runtime-level="division"]:not(:has(.mm-current-company-shell)) .mm-header {
    height: 60px;
    min-height: 60px;
    padding-inline: 10px;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  html[data-shell-frame="foundation"] .mm-logo {
    width: 34px;
    height: 34px;
  }

  html[data-shell-frame="foundation"] .mm-brand-title {
    font-size: 13px;
  }

  html[data-shell-frame="foundation"] .mm-main {
    padding: 76px 12px 16px !important;
  }

  html[data-shell-frame="foundation"] .mm-card,
  html[data-shell-frame="foundation"] .mm-card-item,
  html[data-shell-frame="foundation"] .mm-owner-shell-card,
  html[data-shell-frame="foundation"] .mm-marketplace-card {
    border-radius: 14px;
  }

  html[data-shell-frame="foundation"] .mm-structure-layout {
    grid-template-columns: 1fr;
  }

  html[data-shell-frame="foundation"] .mm-structure-chart {
    min-height: 260px;
    padding: 12px;
  }

  html[data-shell-frame="foundation"] .mm-structure-branch {
    justify-content: flex-start;
  }
}

/* ============================================================
   Hibrid Live Shell final alignment
   Mirrors the prototype visual language on the real shell only.
   ============================================================ */

html[data-shell-frame="foundation"] {
  --mm-hibrid-side: 248px;
  --mm-hibrid-top: 56px;
  --mm-hibrid-radius: 12px;
  --mm-hibrid-radius-sm: 8px;
  --mm-hibrid-bg: #f6f8fc;
  --mm-hibrid-panel: #ffffff;
  --mm-hibrid-panel-soft: #eef3fb;
  --mm-hibrid-line: #dfe7f2;
  --mm-hibrid-text: #101828;
  --mm-hibrid-muted: #667085;
  --mm-hibrid-soft: #98a2b3;
  --mm-hibrid-blue: #3f6ff6;
  --mm-hibrid-blue-2: #254edb;
  --mm-hibrid-blue-soft: #edf2ff;
  --mm-hibrid-green: #16a37a;
  --mm-hibrid-green-soft: #dff8ee;
  --mm-hibrid-amber: #b7791f;
  --mm-hibrid-amber-soft: #fff3d6;
  --mm-hibrid-red: #d64545;
  --mm-hibrid-red-soft: #ffe4e4;
  --mm-hibrid-shadow: 0 14px 36px rgba(16, 24, 40, 0.08);
  --mm-frame-header-height: var(--mm-hibrid-top);
  --mm-frame-content-max: 1440px;
  --mm-page-bg: var(--mm-hibrid-bg);
  --mm-surface: var(--mm-hibrid-panel);
  --mm-surface-strong: var(--mm-hibrid-panel);
  --mm-border: var(--mm-hibrid-line);
  --mm-text: var(--mm-hibrid-text);
  --mm-text-muted: var(--mm-hibrid-muted);
}

html[data-shell-frame="foundation"],
html[data-shell-frame="foundation"] body {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(63, 111, 246, 0.12), transparent 32%),
    radial-gradient(circle at bottom right, rgba(22, 163, 122, 0.10), transparent 28%),
    var(--mm-hibrid-bg) !important;
  color: var(--mm-hibrid-text);
}

html[data-shell-frame="foundation"] body {
  font-size: 14px;
  letter-spacing: 0;
}

html[data-shell-frame="foundation"] .mm-shell {
  min-height: 100vh;
  background: transparent !important;
}

html[data-shell-frame="foundation"] .mm-header,
html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-header,
html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-header,
html[data-shell-frame="foundation"] body:has(.mm-company-admin-shell) .mm-header,
html[data-shell-frame="foundation"] body[data-runtime-level="division"]:not(:has(.mm-current-company-shell)) .mm-header,
html[data-shell-frame="foundation"] body[data-ui-ready="true"] .mm-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: grid;
  grid-template-columns: var(--mm-hibrid-side) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: var(--mm-hibrid-top);
  height: var(--mm-hibrid-top);
  padding: 0 12px 0 0;
  border: 0;
  border-bottom: 1px solid var(--mm-hibrid-line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(1.06);
  -webkit-backdrop-filter: blur(18px) saturate(1.06);
}

html[data-shell-frame="foundation"] .mm-header-brand,
html[data-shell-frame="foundation"] body[data-ui-ready="true"] .mm-header-brand,
html[data-shell-frame="foundation"] body:has(.mm-company-admin-shell) .mm-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 100%;
  padding: 0 16px;
}

html[data-shell-frame="foundation"] .mm-header-menu,
html[data-shell-frame="foundation"] .mm-header-nav__btn--inline {
  flex: 0 0 auto;
}

html[data-shell-frame="foundation"] .mm-logo,
html[data-shell-frame="foundation"] body[data-ui-ready="true"] .mm-logo,
html[data-shell-frame="foundation"] body:has(.mm-company-admin-shell) .mm-logo,
html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-logo {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--mm-hibrid-blue), #7c3aed);
  color: #fff;
  font-family: var(--mm-font-ui);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: none;
}

html[data-shell-frame="foundation"] .mm-brand-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

html[data-shell-frame="foundation"] .mm-brand-level,
html[data-shell-frame="foundation"] body[data-office-focus="department"] .mm-brand-level,
html[data-shell-frame="foundation"] body:has(.mm-company-admin-shell) .mm-brand-level {
  display: block;
  color: var(--mm-hibrid-blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: none;
}

html[data-shell-frame="foundation"] .mm-brand-title,
html[data-shell-frame="foundation"] body[data-office-focus="department"] .mm-brand-title,
html[data-shell-frame="foundation"] body:has(.mm-company-admin-shell) .mm-brand-title,
html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-brand-title {
  color: var(--mm-hibrid-text);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: 0;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb {
  color: var(--mm-hibrid-muted);
  font-size: 13px;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__button,
html[data-shell-frame="foundation"] .mm-shell-breadcrumb__sep {
  color: var(--mm-hibrid-muted);
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__node.is-current .mm-shell-breadcrumb__label {
  color: var(--mm-hibrid-text);
  font-weight: 850;
  letter-spacing: 0;
}

html[data-shell-frame="foundation"] .mm-header-context {
  justify-content: flex-start;
}

html[data-shell-frame="foundation"] #shell-context-label {
  max-width: min(330px, 28vw);
}

html[data-shell-frame="foundation"] .mm-header-search {
  width: min(330px, 28vw);
  min-width: 180px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--mm-hibrid-line);
  border-radius: var(--mm-hibrid-radius-sm);
  background: var(--mm-hibrid-panel-soft);
  color: var(--mm-hibrid-soft);
  box-shadow: none;
}

html[data-shell-frame="foundation"] .mm-header-tools {
  gap: 4px;
  justify-content: flex-end;
}

html[data-shell-frame="foundation"] .mm-header-nav {
  display: flex !important;
  gap: 4px;
  justify-content: flex-end;
}

html[data-shell-frame="foundation"] .mm-header-nav__btn,
html[data-shell-frame="foundation"] .mm-header-menu,
html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-button,
html[data-shell-frame="foundation"] .mm-shell-breadcrumb__toggle {
  min-width: 34px;
  width: auto;
  min-height: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--mm-hibrid-radius-sm);
  background: transparent;
  color: var(--mm-hibrid-muted);
  box-shadow: none;
  font-size: 12px;
  font-weight: 800;
}

html[data-shell-frame="foundation"] .mm-header-nav__btn.is-icon-only {
  width: 36px;
  min-width: 36px;
  padding: 0;
}

html[data-shell-frame="foundation"] .mm-header-nav__btn.has-text {
  border-color: var(--mm-hibrid-blue);
  background: var(--mm-hibrid-blue);
  color: #fff;
  padding-inline: 14px;
}

html[data-shell-frame="foundation"] .mm-header-nav__btn:hover,
html[data-shell-frame="foundation"] .mm-header-menu:hover,
html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-button:hover {
  border-color: transparent;
  background: var(--mm-hibrid-panel-soft);
  color: var(--mm-hibrid-text);
  transform: none;
}

html[data-shell-frame="foundation"] .mm-header-nav__btn.has-text:hover {
  border-color: var(--mm-hibrid-blue-2);
  background: var(--mm-hibrid-blue-2);
  color: #fff;
}

html[data-shell-frame="foundation"] .mm-header-nav__icon {
  color: currentColor;
  font-size: 12px;
  line-height: 1;
}

html[data-shell-frame="foundation"] #mm-gate-root .mm-gate {
  gap: 4px;
}

html[data-shell-frame="foundation"] .mm-main,
html[data-shell-frame="foundation"] body[data-ui-ready="true"] .mm-main,
html[data-shell-frame="foundation"].is-superadmin-platform body[data-ui-ready="true"] .mm-main {
  min-width: 0;
  min-height: 100vh;
  padding-top: calc(var(--mm-hibrid-top) + 22px) !important;
  background: transparent !important;
}

@media (min-width: 1101px) {
  html[data-shell-frame="foundation"] body[data-ui-ready="true"] {
    --mm-shell-sidebar-width: var(--mm-hibrid-side);
    --mm-shell-sidebar-left: 0px;
    --mm-shell-sidebar-top: var(--mm-hibrid-top);
  }

  html[data-shell-frame="foundation"] body[data-ui-ready="true"][data-sidebar="collapsed"] {
    --mm-shell-sidebar-width: 72px;
  }

  html[data-shell-frame="foundation"] body[data-ui-ready="true"] .mm-shell-sidebar {
    left: 0;
    top: var(--mm-hibrid-top);
    bottom: 0;
    width: var(--mm-shell-sidebar-width);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
    padding: 12px 10px;
    overflow: hidden auto;
    border: 0;
    border-right: 1px solid var(--mm-hibrid-line);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: none;
    backdrop-filter: blur(16px) saturate(1.04);
    -webkit-backdrop-filter: blur(16px) saturate(1.04);
  }

  html[data-shell-frame="foundation"] body[data-ui-ready="true"] .mm-main,
  html[data-shell-frame="foundation"].is-superadmin-platform body[data-ui-ready="true"] .mm-main {
    padding-left: calc(var(--mm-shell-sidebar-width) + 22px) !important;
    padding-right: 22px !important;
  }
}

html[data-shell-frame="foundation"] .mm-shell-sidebar__brand {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  min-height: auto;
  margin-bottom: 0;
  padding: 12px;
  border: 1px solid var(--mm-hibrid-line);
  border-radius: var(--mm-hibrid-radius);
  background: linear-gradient(135deg, var(--mm-hibrid-panel), var(--mm-hibrid-blue-soft));
}

html[data-shell-frame="foundation"] .mm-shell-sidebar__close {
  display: none;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar-backdrop {
  display: none;
}

html[data-shell-frame="foundation"] body[data-mobile-shell="active"][data-sidebar="expanded"] .mm-shell-sidebar-backdrop {
  display: block !important;
}

html[data-shell-frame="foundation"] body[data-mobile-shell="active"]:not([data-sidebar="expanded"]) .mm-shell-sidebar-backdrop {
  display: none !important;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar__mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mm-hibrid-blue-soft);
  color: var(--mm-hibrid-blue);
  box-shadow: none;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar__brand-text strong {
  color: var(--mm-hibrid-text);
  font-size: 17px;
  font-weight: 850;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar__brand-text span,
html[data-shell-frame="foundation"] .mm-shell-sidebar__empty {
  color: var(--mm-hibrid-muted);
  font-size: 12px;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar__nav,
html[data-shell-frame="foundation"] .mm-shell-sidebar__section {
  display: grid;
  gap: 8px;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar__section {
  margin: 0;
  padding: 8px;
  border-radius: var(--mm-hibrid-radius);
  background: rgba(255, 255, 255, 0.55);
}

html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-sidebar__label,
html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-sidebar__group-title,
html[data-shell-frame="foundation"] .mm-shell-sidebar__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px;
  color: var(--mm-hibrid-soft);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar__group-action {
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  border: 1px solid var(--mm-hibrid-line);
  border-radius: 7px;
  background: var(--mm-hibrid-panel);
  color: var(--mm-hibrid-blue);
  font-weight: 900;
}

html[data-shell-frame="foundation"] .mm-shell-tree__filter-input {
  min-height: 32px;
  border: 1px solid var(--mm-hibrid-line);
  border-radius: var(--mm-hibrid-radius-sm);
  background: var(--mm-hibrid-panel-soft);
}

html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem,
html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem--department {
  min-height: 38px;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  margin: 3px 0;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--mm-hibrid-muted);
  box-shadow: none;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem:hover,
html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem:focus-visible {
  border-color: transparent;
  background: var(--mm-hibrid-panel-soft);
  color: var(--mm-hibrid-text);
  transform: none;
  box-shadow: none;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem.is-active {
  border-color: rgba(63, 111, 246, 0.22);
  background: var(--mm-hibrid-blue-soft);
  color: var(--mm-hibrid-blue);
  box-shadow: none;
  font-weight: 800;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem__icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 0;
  border-radius: 7px;
  background: var(--mm-hibrid-panel-soft);
  color: currentColor;
  font-size: 10px;
  font-weight: 900;
  box-shadow: none;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem__content {
  gap: 1px;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem__content strong {
  color: currentColor;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.15;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem__content span {
  color: var(--mm-hibrid-muted);
  font-size: 11px;
  line-height: 1.25;
}

html[data-shell-frame="foundation"] body[data-sidebar="collapsed"] .mm-shell-sidebar__brand {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 10px 6px;
}

html[data-shell-frame="foundation"] body[data-sidebar="collapsed"] .mm-shell-sidebar__section {
  padding: 6px;
}

html[data-shell-frame="foundation"] body[data-sidebar="collapsed"] .mm-shell-sidebar .mm-company-shell-navitem,
html[data-shell-frame="foundation"] body[data-sidebar="collapsed"] .mm-shell-sidebar .mm-company-shell-navitem--department {
  min-height: 42px;
  padding: 7px 4px;
}

html[data-shell-frame="foundation"] .mm-screen,
html[data-shell-frame="foundation"] .mm-owner-shell,
html[data-shell-frame="foundation"] .mm-platform-shell,
html[data-shell-frame="foundation"] .mm-marketplace-root,
html[data-shell-frame="foundation"] .mm-office-tools-shell {
  max-width: var(--mm-frame-content-max);
  margin-inline: auto;
}

html[data-shell-frame="foundation"] .mm-screen,
html[data-shell-frame="foundation"] .mm-owner-shell,
html[data-shell-frame="foundation"] .mm-company-admin-shell,
html[data-shell-frame="foundation"] .mm-office-tools-shell,
html[data-shell-frame="foundation"] .mm-platform-docs-shell {
  gap: 16px;
}

html[data-shell-frame="foundation"] .mm-section-head,
html[data-shell-frame="foundation"] .mm-owner-shell-head,
html[data-shell-frame="foundation"] .mm-company-admin-panel__head,
html[data-shell-frame="foundation"] .mm-office-tools-panel__head,
html[data-shell-frame="foundation"] .mm-marketplace-panel-head__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

html[data-shell-frame="foundation"] h1,
html[data-shell-frame="foundation"] h2,
html[data-shell-frame="foundation"] h3,
html[data-shell-frame="foundation"] .mm-owner-shell-head h2,
html[data-shell-frame="foundation"] .mm-office-tools-shell__title-wrap h2,
html[data-shell-frame="foundation"] .mm-company-admin-panel__head h2,
html[data-shell-frame="foundation"] .mm-platform-docs-header h1,
html[data-shell-frame="foundation"] .mm-platform-page-header h1 {
  color: var(--mm-hibrid-text);
  font-family: var(--mm-font-ui);
  letter-spacing: 0;
}

html[data-shell-frame="foundation"] .mm-owner-shell-head h2,
html[data-shell-frame="foundation"] .mm-office-tools-shell__title-wrap h2,
html[data-shell-frame="foundation"] .mm-company-admin-panel__head h2,
html[data-shell-frame="foundation"] .mm-platform-docs-header h1,
html[data-shell-frame="foundation"] .mm-platform-page-header h1,
html[data-shell-frame="foundation"] .mm-marketplace-panel-head h2 {
  margin: 0 0 4px;
  font-size: 24px;
  line-height: 1.16;
  font-weight: 850;
}

html[data-shell-frame="foundation"] p,
html[data-shell-frame="foundation"] .mm-muted,
html[data-shell-frame="foundation"] .mm-company-canon-card__copy,
html[data-shell-frame="foundation"] .mm-office-tools-shell__title-wrap p,
html[data-shell-frame="foundation"] .mm-platform-docs-header p,
html[data-shell-frame="foundation"] .mm-marketplace-panel-head p {
  color: var(--mm-hibrid-muted);
  letter-spacing: 0;
}

html[data-shell-frame="foundation"] .tenant-eyebrow,
html[data-shell-frame="foundation"] .mm-office-tools-shell__eyebrow,
html[data-shell-frame="foundation"] .mm-marketplace-panel-head__eyebrow,
html[data-shell-frame="foundation"] .mm-platform-panel-title,
html[data-shell-frame="foundation"] .mm-platform-docs-tree__title,
html[data-shell-frame="foundation"] .mm-company-admin-panel__eyebrow,
html[data-shell-frame="foundation"] .mm-company-admin-panel__title-kicker {
  color: var(--mm-hibrid-soft);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

html[data-shell-frame="foundation"] .mm-card,
html[data-shell-frame="foundation"] .mm-card-item,
html[data-shell-frame="foundation"] .mm-entry-card,
html[data-shell-frame="foundation"] .mm-owner-shell-card,
html[data-shell-frame="foundation"] .mm-company-admin-panel,
html[data-shell-frame="foundation"] .mm-company-admin-stat,
html[data-shell-frame="foundation"] .mm-company-admin-overview-brief,
html[data-shell-frame="foundation"] .mm-company-structure-root,
html[data-shell-frame="foundation"] .mm-company-structure-card,
html[data-shell-frame="foundation"] .mm-company-structure-detail,
html[data-shell-frame="foundation"] .mm-platform-page-header,
html[data-shell-frame="foundation"] .mm-platform-tenants-panel,
html[data-shell-frame="foundation"] .mm-platform-tools-panel,
html[data-shell-frame="foundation"] .mm-platform-tenant-card,
html[data-shell-frame="foundation"] .mm-platform-tool-card,
html[data-shell-frame="foundation"] .mm-office-tools-shell__top,
html[data-shell-frame="foundation"] .mm-office-tools-shell__summary,
html[data-shell-frame="foundation"] .mm-office-tools-panel,
html[data-shell-frame="foundation"] .mm-office-tools-empty,
html[data-shell-frame="foundation"] .mm-office-tools-item,
html[data-shell-frame="foundation"] .mm-office-tools-scroll,
html[data-shell-frame="foundation"] .mm-office-tools-dock,
html[data-shell-frame="foundation"] .mm-platform-docs-header,
html[data-shell-frame="foundation"] .mm-platform-docs-reader,
html[data-shell-frame="foundation"] .mm-platform-docs-tree,
html[data-shell-frame="foundation"] .mm-marketplace-panel-head,
html[data-shell-frame="foundation"] .mm-marketplace-card,
html[data-shell-frame="foundation"] .mm-marketplace-sheet,
html[data-shell-frame="foundation"] .mm-settings-scope-card,
html[data-shell-frame="foundation"] .mm-settings-scope-note-card,
html[data-shell-frame="foundation"] .mm-settings-action-card {
  border: 1px solid var(--mm-hibrid-line);
  border-radius: var(--mm-hibrid-radius);
  background: var(--mm-hibrid-panel);
  box-shadow: var(--mm-hibrid-shadow);
}

html[data-shell-frame="foundation"] .mm-owner-shell-card,
html[data-shell-frame="foundation"] .mm-marketplace-panel-head,
html[data-shell-frame="foundation"] .mm-office-tools-shell__top,
html[data-shell-frame="foundation"] .mm-platform-page-header,
html[data-shell-frame="foundation"] .mm-platform-docs-header,
html[data-shell-frame="foundation"] .mm-company-admin-panel--hero {
  background: linear-gradient(135deg, var(--mm-hibrid-panel), var(--mm-hibrid-blue-soft));
}

html[data-shell-frame="foundation"] .mm-card,
html[data-shell-frame="foundation"] .mm-owner-shell-card,
html[data-shell-frame="foundation"] .mm-company-admin-panel,
html[data-shell-frame="foundation"] .mm-office-tools-panel,
html[data-shell-frame="foundation"] .mm-platform-docs-reader,
html[data-shell-frame="foundation"] .mm-platform-docs-tree,
html[data-shell-frame="foundation"] .mm-marketplace-panel-head {
  padding: 16px;
}

html[data-shell-frame="foundation"] .mm-entry-card,
html[data-shell-frame="foundation"] .mm-card-item,
html[data-shell-frame="foundation"] .mm-office-tools-item,
html[data-shell-frame="foundation"] .mm-marketplace-card,
html[data-shell-frame="foundation"] .mm-platform-tool-card,
html[data-shell-frame="foundation"] .mm-company-structure-card {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: none;
}

html[data-shell-frame="foundation"] .mm-entry-card:hover,
html[data-shell-frame="foundation"] .mm-card-item:hover,
html[data-shell-frame="foundation"] .mm-office-tools-item[role="button"]:hover,
html[data-shell-frame="foundation"] .mm-marketplace-card:hover,
html[data-shell-frame="foundation"] .mm-platform-tool-card:hover,
html[data-shell-frame="foundation"] .mm-company-structure-card:hover {
  transform: none;
  border-color: rgba(63, 111, 246, 0.26);
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
}

html[data-shell-frame="foundation"] .mm-entry-card__icon,
html[data-shell-frame="foundation"] .mm-company-admin-navitem__icon,
html[data-shell-frame="foundation"] .mm-platform-tool-card--blue::before,
html[data-shell-frame="foundation"] .mm-marketplace-card__icon,
html[data-shell-frame="foundation"] .mm-office-tools-empty__orb,
html[data-shell-frame="foundation"] .mm-messenger-neo__avatar {
  border-radius: 10px;
  background: var(--mm-hibrid-blue-soft);
  color: var(--mm-hibrid-blue);
  box-shadow: none;
}

html[data-shell-frame="foundation"] .mm-button,
html[data-shell-frame="foundation"] .mm-mini-action-primary,
html[data-shell-frame="foundation"] .mm-platform-primary-action,
html[data-shell-frame="foundation"] .mm-platform-submit,
html[data-shell-frame="foundation"] .tenant-form button:not(.ghost),
html[data-shell-frame="foundation"] .mm-marketplace-root .mm-mini-action-primary,
html[data-shell-frame="foundation"] .mm-owner-shell .mm-mini-action-primary,
html[data-shell-frame="foundation"] .mm-current-company-shell .mm-mini-action-primary {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--mm-hibrid-blue);
  border-radius: var(--mm-hibrid-radius-sm);
  background: var(--mm-hibrid-blue);
  color: #fff;
  box-shadow: none;
  font-weight: 800;
}

html[data-shell-frame="foundation"] .mm-button:hover,
html[data-shell-frame="foundation"] .mm-mini-action-primary:hover,
html[data-shell-frame="foundation"] .mm-platform-primary-action:hover,
html[data-shell-frame="foundation"] .mm-platform-submit:hover {
  background: var(--mm-hibrid-blue-2);
  border-color: var(--mm-hibrid-blue-2);
}

html[data-shell-frame="foundation"] .mm-button-secondary,
html[data-shell-frame="foundation"] .mm-mini-action,
html[data-shell-frame="foundation"] .mm-platform-secondary-action,
html[data-shell-frame="foundation"] .ghost,
html[data-shell-frame="foundation"] .mm-card-actions-menu summary,
html[data-shell-frame="foundation"] .mm-entity-manage-toggle,
html[data-shell-frame="foundation"] .mm-office-tools-tab,
html[data-shell-frame="foundation"] .mm-company-object-chip {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--mm-hibrid-line);
  border-radius: var(--mm-hibrid-radius-sm);
  background: var(--mm-hibrid-panel);
  color: var(--mm-hibrid-text);
  box-shadow: none;
  font-weight: 750;
}

html[data-shell-frame="foundation"] .mm-button-secondary:hover,
html[data-shell-frame="foundation"] .mm-mini-action:hover,
html[data-shell-frame="foundation"] .mm-platform-secondary-action:hover,
html[data-shell-frame="foundation"] .ghost:hover,
html[data-shell-frame="foundation"] .mm-card-actions-menu summary:hover,
html[data-shell-frame="foundation"] .mm-office-tools-tab:hover,
html[data-shell-frame="foundation"] .mm-company-object-chip:hover {
  border-color: rgba(63, 111, 246, 0.24);
  background: var(--mm-hibrid-panel-soft);
  color: var(--mm-hibrid-text);
  transform: none;
}

html[data-shell-frame="foundation"] .mm-office-tools-tab.is-active,
html[data-shell-frame="foundation"] .mm-company-object-chip.is-active {
  border-color: rgba(63, 111, 246, 0.22);
  background: var(--mm-hibrid-blue-soft);
  color: var(--mm-hibrid-blue);
  box-shadow: none;
}

html[data-shell-frame="foundation"] input,
html[data-shell-frame="foundation"] select,
html[data-shell-frame="foundation"] textarea,
html[data-shell-frame="foundation"] .mm-platform-input {
  min-height: 38px;
  border: 1px solid var(--mm-hibrid-line);
  border-radius: var(--mm-hibrid-radius-sm);
  background: var(--mm-hibrid-panel-soft);
  color: var(--mm-hibrid-text);
  box-shadow: none;
}

html[data-shell-frame="foundation"] input:focus,
html[data-shell-frame="foundation"] select:focus,
html[data-shell-frame="foundation"] textarea:focus,
html[data-shell-frame="foundation"] .mm-platform-input:focus {
  outline: none;
  border-color: rgba(63, 111, 246, 0.42);
  box-shadow: 0 0 0 3px rgba(63, 111, 246, 0.11);
}

html[data-shell-frame="foundation"] table,
html[data-shell-frame="foundation"] .mm-table,
html[data-shell-frame="foundation"] .mm-table-wrap {
  width: 100%;
  border-collapse: collapse;
  border-color: var(--mm-hibrid-line);
  border-radius: var(--mm-hibrid-radius);
  overflow: hidden;
  background: var(--mm-hibrid-panel);
}

html[data-shell-frame="foundation"] th {
  padding: 11px 14px;
  background: var(--mm-hibrid-panel-soft);
  color: var(--mm-hibrid-soft);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
}

html[data-shell-frame="foundation"] td {
  padding: 12px 14px;
  border-top: 1px solid var(--mm-hibrid-line);
  color: var(--mm-hibrid-text);
}

html[data-shell-frame="foundation"] tr:hover td {
  background: var(--mm-hibrid-panel-soft);
}

html[data-shell-frame="foundation"] .mm-chip,
html[data-shell-frame="foundation"] .mm-entry-card__chip,
html[data-shell-frame="foundation"] .mm-marketplace-card__state,
html[data-shell-frame="foundation"] .mm-marketplace-card__action-tag,
html[data-shell-frame="foundation"] .marketplace-status,
html[data-shell-frame="foundation"] .mm-messenger-neo__badge,
html[data-shell-frame="foundation"] .mm-messenger-neo__counter {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  border: 0;
  border-radius: 999px;
  background: var(--mm-hibrid-blue-soft);
  color: var(--mm-hibrid-blue);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

html[data-shell-frame="foundation"] .mm-chip.is-ok,
html[data-shell-frame="foundation"] .marketplace-status.active {
  background: var(--mm-hibrid-green-soft);
  color: var(--mm-hibrid-green);
}

html[data-shell-frame="foundation"] .mm-chip.is-pending,
html[data-shell-frame="foundation"] .marketplace-status.trial {
  background: var(--mm-hibrid-amber-soft);
  color: var(--mm-hibrid-amber);
}

html[data-shell-frame="foundation"] .marketplace-status.disabled,
html[data-shell-frame="foundation"] .marketplace-status.expired {
  background: var(--mm-hibrid-red-soft);
  color: var(--mm-hibrid-red);
}

html[data-shell-frame="foundation"] .mm-office-tools-shell__top,
html[data-shell-frame="foundation"] .mm-development-shell .mm-office-tools-shell__top,
html[data-shell-frame="foundation"] .mm-cwb-shell .mm-office-tools-shell__top {
  padding: 16px;
}

html[data-shell-frame="foundation"] .mm-office-tools-shell__title-wrap {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
}

html[data-shell-frame="foundation"] .mm-office-tools-shell__summary,
html[data-shell-frame="foundation"] .mm-development-summary-band,
html[data-shell-frame="foundation"] .mm-platform-tenant-card__stats,
html[data-shell-frame="foundation"] .mm-company-admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

html[data-shell-frame="foundation"] .mm-office-tools-shell__stat,
html[data-shell-frame="foundation"] .mm-development-summary-band__card,
html[data-shell-frame="foundation"] .mm-platform-tenant-stat,
html[data-shell-frame="foundation"] .mm-company-admin-stat {
  min-height: 86px;
  padding: 15px;
  border: 1px solid var(--mm-hibrid-line);
  border-radius: var(--mm-hibrid-radius);
  background: var(--mm-hibrid-panel);
  box-shadow: var(--mm-hibrid-shadow);
}

html[data-shell-frame="foundation"] .mm-office-tools-shell__stat strong,
html[data-shell-frame="foundation"] .mm-development-summary-band__card strong,
html[data-shell-frame="foundation"] .mm-platform-tenant-stat strong,
html[data-shell-frame="foundation"] .mm-company-admin-stat strong {
  color: var(--mm-hibrid-text);
  font-family: var(--mm-font-ui);
  font-size: 26px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

html[data-shell-frame="foundation"] .mm-office-tools-shell__stat span,
html[data-shell-frame="foundation"] .mm-development-summary-band__card span,
html[data-shell-frame="foundation"] .mm-platform-tenant-stat span,
html[data-shell-frame="foundation"] .mm-company-admin-stat span {
  color: var(--mm-hibrid-muted);
  font-size: 12px;
}

html[data-shell-frame="foundation"] .mm-office-tools-shell__stat.is-active {
  border: 0;
  background: linear-gradient(135deg, var(--mm-hibrid-blue), #7c3aed);
  color: #fff;
}

html[data-shell-frame="foundation"] .mm-office-tools-shell__stat.is-active strong,
html[data-shell-frame="foundation"] .mm-office-tools-shell__stat.is-active span {
  color: #fff;
}

html[data-shell-frame="foundation"] .mm-office-tools-communication,
html[data-shell-frame="foundation"] .mm-cwb-layout,
html[data-shell-frame="foundation"] .mm-company-structure-workspace,
html[data-shell-frame="foundation"] .mm-marketplace-canon-layout.has-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

html[data-shell-frame="foundation"] .mm-office-tools-list,
html[data-shell-frame="foundation"] .mm-cwb-list,
html[data-shell-frame="foundation"] .mm-development-decision-list {
  gap: 10px;
}

html[data-shell-frame="foundation"] .mm-office-tools-item__title-row strong,
html[data-shell-frame="foundation"] .mm-cwb-item__top h3,
html[data-shell-frame="foundation"] .mm-cwb-detail__hero h3 {
  color: var(--mm-hibrid-text);
  font-size: 15px;
}

html[data-shell-frame="foundation"] .mm-office-tools-task-detail {
  border-color: var(--mm-hibrid-line);
  background: var(--mm-hibrid-panel-soft);
}

html[data-shell-frame="foundation"] .mm-office-tools-task-detail__grid section {
  border-color: var(--mm-hibrid-line);
  background: var(--mm-hibrid-panel);
}

html[data-shell-frame="foundation"] .mm-office-tools-task-field span,
html[data-shell-frame="foundation"] .mm-office-tools-task-detail__grid h4 {
  color: var(--mm-hibrid-soft);
}

html[data-shell-frame="foundation"] .mm-office-tools-task-field strong,
html[data-shell-frame="foundation"] .mm-office-tools-task-field.is-important strong {
  color: var(--mm-hibrid-text);
}

html[data-shell-frame="foundation"] .mm-platform-docs-shell {
  max-width: var(--mm-frame-content-max);
}

html[data-shell-frame="foundation"] .mm-platform-docs-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
}

html[data-shell-frame="foundation"] .mm-platform-docs-tree {
  position: sticky;
  top: calc(var(--mm-hibrid-top) + 16px);
}

html[data-shell-frame="foundation"] .mm-platform-docs-tree__item {
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--mm-hibrid-muted);
  box-shadow: none;
}

html[data-shell-frame="foundation"] .mm-platform-docs-tree__item:hover,
html[data-shell-frame="foundation"] .mm-platform-docs-tree__item.is-active {
  border-color: rgba(63, 111, 246, 0.22);
  background: var(--mm-hibrid-blue-soft);
  color: var(--mm-hibrid-blue);
}

html[data-shell-frame="foundation"] .mm-platform-docs-meta {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-color: var(--mm-hibrid-line);
  border-radius: var(--mm-hibrid-radius);
  background: var(--mm-hibrid-panel-soft);
}

html[data-shell-frame="foundation"] .mm-platform-docs-content {
  max-width: none;
}

html[data-shell-frame="foundation"] .mm-platform-docs-content h2 {
  color: var(--mm-hibrid-text);
  font-size: 24px;
  letter-spacing: 0;
}

html[data-shell-frame="foundation"] .mm-platform-docs-section {
  border-top-color: var(--mm-hibrid-line);
}

html[data-shell-frame="foundation"] .mm-marketplace-canon-layout {
  display: grid;
  gap: 16px;
}

html[data-shell-frame="foundation"] .mm-marketplace-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

html[data-shell-frame="foundation"] .mm-marketplace-card {
  min-height: 0;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
}

html[data-shell-frame="foundation"] .mm-marketplace-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

html[data-shell-frame="foundation"] .mm-marketplace-card__title {
  font-size: 15px;
  letter-spacing: 0;
}

html[data-shell-frame="foundation"] .mm-marketplace-card__description {
  margin: 0;
  color: var(--mm-hibrid-muted);
  font-size: 13px;
  line-height: 1.45;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet--inline {
  position: sticky;
  top: calc(var(--mm-hibrid-top) + 16px);
  left: auto;
  width: auto;
  max-height: calc(100vh - var(--mm-hibrid-top) - 32px);
  transform: none;
  padding: 16px;
  border-radius: var(--mm-hibrid-radius);
  box-shadow: var(--mm-hibrid-shadow);
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet-head {
  grid-template-columns: 48px minmax(0, 1fr) auto;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet-meta h3 {
  font-size: 18px;
  letter-spacing: 0;
}

html[data-shell-frame="foundation"] .mm-marketplace-install-success {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(16, 185, 129, 0.32);
  border-radius: 12px;
  background: rgba(236, 253, 245, 0.9);
  color: #064e3b;
}

html[data-shell-frame="foundation"] .mm-marketplace-install-success strong {
  font-size: 16px;
  font-weight: 850;
  line-height: 1.25;
}

html[data-shell-frame="foundation"] .mm-marketplace-install-success span {
  font-size: 14px;
  line-height: 1.45;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-install-success {
  border-color: rgba(52, 211, 153, 0.36);
  background: rgba(6, 78, 59, 0.34);
  color: #d1fae5;
}

html[data-shell-frame="foundation"] .mm-shoppro-mobile-section-nav {
  display: none;
}

/* Launch typography pass: keep operational text readable across shell surfaces. */
html[data-shell-frame="foundation"] body {
  font-size: 16px;
  line-height: 1.48;
}

html[data-shell-frame="foundation"] .mm-header,
html[data-shell-frame="foundation"] .mm-shell-sidebar,
html[data-shell-frame="foundation"] .mm-main,
html[data-shell-frame="foundation"] .mm-marketplace-root,
html[data-shell-frame="foundation"] .mm-office-tools-shell,
html[data-shell-frame="foundation"] .mm-company-structure-workspace,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop {
  font-size: 16px;
}

html[data-shell-frame="foundation"] .mm-brand-title,
html[data-shell-frame="foundation"] .mm-shell-breadcrumb__button,
html[data-shell-frame="foundation"] .mm-shell-breadcrumb__label,
html[data-shell-frame="foundation"] .mm-shell-sidebar__item,
html[data-shell-frame="foundation"] .mm-header-nav__btn,
html[data-shell-frame="foundation"] .mm-button,
html[data-shell-frame="foundation"] .mm-button-secondary,
html[data-shell-frame="foundation"] .mm-mini-action,
html[data-shell-frame="foundation"] .mm-mini-action-primary {
  font-size: 15px;
  line-height: 1.3;
}

html[data-shell-frame="foundation"] .mm-card-item p,
html[data-shell-frame="foundation"] .mm-entry-card__subtitle,
html[data-shell-frame="foundation"] .mm-marketplace-card__description,
html[data-shell-frame="foundation"] .mm-marketplace-sheet-meta p,
html[data-shell-frame="foundation"] .mm-office-tools-panel p,
html[data-shell-frame="foundation"] .mm-company-employees-panel__lead,
html[data-shell-frame="foundation"] .mm-shoppro-surface__head p,
html[data-shell-frame="foundation"] .mm-shoppro-detail-empty p,
html[data-shell-frame="foundation"] .mm-shoppro-section-shell__title p,
html[data-shell-frame="foundation"] .mm-shoppro-record-card__head p,
html[data-shell-frame="foundation"] .mm-master-data-detail p,
html[data-shell-frame="foundation"] .mm-muted {
  font-size: 15px;
  line-height: 1.5;
}

html[data-shell-frame="foundation"] .mm-chip,
html[data-shell-frame="foundation"] .mm-marketplace-card__state,
html[data-shell-frame="foundation"] .mm-marketplace-card__action-tag,
html[data-shell-frame="foundation"] .mm-card-actions__hint,
html[data-shell-frame="foundation"] .mm-shoppro-toolbar__metric span,
html[data-shell-frame="foundation"] .mm-shoppro-section-shell__stat span,
html[data-shell-frame="foundation"] .mm-shoppro-section-shell__view span {
  font-size: 13px;
  line-height: 1.35;
}

html[data-shell-frame="foundation"] label span,
html[data-shell-frame="foundation"] input,
html[data-shell-frame="foundation"] select,
html[data-shell-frame="foundation"] textarea,
html[data-shell-frame="foundation"] .mm-inline-select {
  font-size: 15px;
  line-height: 1.35;
}

html[data-shell-frame="foundation"] [data-action] {
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease, transform 80ms ease;
}

html[data-shell-frame="foundation"] [data-action].is-pressing,
html[data-shell-frame="foundation"] [data-action]:active {
  transform: translateY(1px);
  filter: saturate(1.04);
}

html[data-shell-frame="foundation"] .mm-shell-sidebar__item,
html[data-shell-frame="foundation"] .mm-company-shell-navitem,
html[data-shell-frame="foundation"] .mm-shell-tree__item,
html[data-shell-frame="foundation"] .mm-company-shell-sidebar button,
html[data-shell-frame="foundation"] .mm-company-admin-sidebar button,
html[data-shell-frame="foundation"] .mm-stage1-mobile-drawer button,
html[data-shell-frame="foundation"] .mm-company-shell-drawer button {
  color: #172033 !important;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar__item span,
html[data-shell-frame="foundation"] .mm-shell-sidebar__item small,
html[data-shell-frame="foundation"] .mm-company-shell-navitem__content,
html[data-shell-frame="foundation"] .mm-company-shell-sidebar span,
html[data-shell-frame="foundation"] .mm-company-admin-sidebar span,
html[data-shell-frame="foundation"] .mm-stage1-mobile-drawer span,
html[data-shell-frame="foundation"] .mm-company-shell-drawer span {
  color: #334155 !important;
}

html[data-shell-frame="foundation"] .mm-company-shell-navitem strong,
html[data-shell-frame="foundation"] .mm-shell-tree__item strong {
  color: #0f172a !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
}

html[data-shell-frame="foundation"] .mm-company-shell-navitem strong + span,
html[data-shell-frame="foundation"] .mm-shell-tree__item strong + span,
html[data-shell-frame="foundation"] .mm-company-shell-navitem__content > span {
  color: #475569 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

html[data-shell-frame="foundation"] .mm-company-shell-sidebar__label,
html[data-shell-frame="foundation"] .mm-shell-sidebar__label-row,
html[data-shell-frame="foundation"] .mm-shell-sidebar__label-row span {
  color: #475569 !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar__item.is-active,
html[data-shell-frame="foundation"] .mm-shell-sidebar__item[aria-current="page"],
html[data-shell-frame="foundation"] .mm-company-shell-navitem.is-active,
html[data-shell-frame="foundation"] .mm-shell-tree__item.is-active,
html[data-shell-frame="foundation"] .mm-company-shell-sidebar .is-active,
html[data-shell-frame="foundation"] .mm-company-admin-sidebar .is-active,
html[data-shell-frame="foundation"] .mm-stage1-mobile-drawer .is-active,
html[data-shell-frame="foundation"] .mm-company-shell-drawer .is-active {
  border-color: rgba(37, 99, 235, 0.36);
  background: rgba(219, 234, 254, 0.96);
  color: #0f172a;
  box-shadow: inset 3px 0 0 #2563eb;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar__item:hover,
html[data-shell-frame="foundation"] .mm-shell-sidebar__item.is-pressing,
html[data-shell-frame="foundation"] .mm-company-shell-sidebar button:hover,
html[data-shell-frame="foundation"] .mm-company-admin-sidebar button:hover,
html[data-shell-frame="foundation"] .mm-company-shell-sidebar button.is-pressing,
html[data-shell-frame="foundation"] .mm-company-admin-sidebar button.is-pressing {
  background: rgba(226, 232, 240, 0.9);
  color: #0f172a;
}

html[data-shell-frame="foundation"] .mm-shoppro-mobile-section-nav__item.is-pressing,
html[data-shell-frame="foundation"] .mm-shoppro-section-shell__view.is-pressing,
html[data-shell-frame="foundation"] .mm-shoppro-section-shell__stat.is-pressing,
html[data-shell-frame="foundation"] .mm-header-nav__btn.is-pressing {
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(219, 234, 254, 0.96);
  color: #0f172a;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-sidebar__item,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-shell-sidebar button,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-sidebar button,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-stage1-mobile-drawer button,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-shell-drawer button {
  color: #f8fafc;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-sidebar__item span,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-sidebar__item small,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-shell-sidebar span,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-sidebar span,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-stage1-mobile-drawer span,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-shell-drawer span {
  color: #dbeafe;
}

html[data-shell-frame="foundation"] .mm-settings-scope-grid,
html[data-shell-frame="foundation"] .mm-settings-scope-note-grid,
html[data-shell-frame="foundation"] .mm-settings-actions-grid,
html[data-shell-frame="foundation"] .mm-company-canon-grid,
html[data-shell-frame="foundation"] .mm-entry-grid,
html[data-shell-frame="foundation"] .mm-card-grid,
html[data-shell-frame="foundation"] .mm-platform-tenant-grid {
  gap: 14px;
}

/* Architect live review fix: mobile drawer identity must stay readable in light mode. */
html[data-shell-frame="foundation"]:not([data-theme="dark"]) body[data-mobile-shell="active"] .mm-shell-sidebar__brand {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96)) !important;
  border-color: rgba(37, 99, 235, 0.18) !important;
}

html[data-shell-frame="foundation"]:not([data-theme="dark"]) body[data-mobile-shell="active"] .mm-shell-sidebar__brand-text strong,
html[data-shell-frame="foundation"].is-real-device-compact:not([data-theme="dark"]) body[data-mobile-shell="active"] .mm-shell-sidebar__brand-text strong {
  color: #0f172a !important;
  font-size: 18px !important;
  line-height: 1.18 !important;
  white-space: normal !important;
}

html[data-shell-frame="foundation"]:not([data-theme="dark"]) body[data-mobile-shell="active"] .mm-shell-sidebar__brand-text span,
html[data-shell-frame="foundation"].is-real-device-compact:not([data-theme="dark"]) body[data-mobile-shell="active"] .mm-shell-sidebar__brand-text span {
  color: #475569 !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem__content {
  min-width: 0;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem__content strong,
html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem__content span {
  white-space: normal !important;
  overflow-wrap: anywhere;
}

html[data-shell-frame="foundation"] .mm-settings-scope-card,
html[data-shell-frame="foundation"] .mm-settings-scope-note-card,
html[data-shell-frame="foundation"] .mm-settings-action-card {
  display: grid;
  gap: 6px;
  padding: 16px;
}

html[data-shell-frame="foundation"] .mm-settings-scope-card strong,
html[data-shell-frame="foundation"] .mm-settings-scope-note-card strong,
html[data-shell-frame="foundation"] .mm-settings-action-card strong {
  color: var(--mm-hibrid-text);
  font-size: 15px;
  font-weight: 850;
}

html[data-shell-frame="foundation"] .mm-settings-scope-card span,
html[data-shell-frame="foundation"] .mm-settings-scope-note-card span,
html[data-shell-frame="foundation"] .mm-settings-action-card span {
  color: var(--mm-hibrid-muted);
  line-height: 1.45;
}

html[data-shell-frame="foundation"] .mm-company-admin-layout {
  gap: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

html[data-shell-frame="foundation"] .mm-company-admin-main {
  gap: 16px;
  padding: 0;
  background: transparent !important;
}

html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-company-admin-layout > .mm-company-admin-sidebar,
html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-company-shell-sidebar {
  border: 1px solid var(--mm-hibrid-line);
  border-radius: var(--mm-hibrid-radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--mm-hibrid-shadow);
}

html[data-shell-frame="foundation"] .mm-company-structure-root {
  width: min(280px, 100%);
  padding: 16px;
}

html[data-shell-frame="foundation"] .mm-company-structure-root h3 {
  color: var(--mm-hibrid-text);
  font-size: 24px;
}

html[data-shell-frame="foundation"] .mm-company-structure-lane::before,
html[data-shell-frame="foundation"] .mm-company-structure-row::before {
  background: var(--mm-hibrid-line);
}

html[data-shell-frame="foundation"] .mm-company-structure-detail {
  top: calc(var(--mm-hibrid-top) + 16px);
}

html[data-shell-frame="foundation"] .mm-company-object-toolbar,
html[data-shell-frame="foundation"] .mm-shoppro-section-shell,
html[data-shell-frame="foundation"] .mm-shoppro-process-hero {
  border: 1px solid var(--mm-hibrid-line);
  border-radius: var(--mm-hibrid-radius);
  background: var(--mm-hibrid-panel);
  box-shadow: var(--mm-hibrid-shadow);
}

html[data-shell-frame="foundation"] .mm-company-object-toolbar__title,
html[data-shell-frame="foundation"] .mm-shoppro-section-shell__title h2,
html[data-shell-frame="foundation"] .mm-shoppro-process-hero h3 {
  color: var(--mm-hibrid-text);
  font-family: var(--mm-font-ui);
  letter-spacing: 0;
}

html[data-shell-frame="foundation"] .mm-shell-command__panel,
html[data-shell-frame="foundation"] .mm-header-overflow__panel,
html[data-shell-frame="foundation"] .mm-shell-breadcrumb__panel,
html[data-shell-frame="foundation"] .mm-card-actions-menu__body,
html[data-shell-frame="foundation"] .mm-xfm-row-menu__body {
  border: 1px solid var(--mm-hibrid-line);
  border-radius: var(--mm-hibrid-radius);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 48px rgba(16, 24, 40, 0.16);
}

html[data-shell-frame="foundation"][data-theme="dark"] {
  --mm-hibrid-bg: #0c111d;
  --mm-hibrid-panel: #141b2a;
  --mm-hibrid-panel-soft: #1b2537;
  --mm-hibrid-line: #27354d;
  --mm-hibrid-text: #eef3ff;
  --mm-hibrid-muted: #a5b0c2;
  --mm-hibrid-soft: #66728a;
  --mm-hibrid-blue-soft: #17244a;
  --mm-hibrid-green-soft: #0f2d24;
  --mm-hibrid-amber-soft: #32270d;
  --mm-hibrid-red-soft: #351919;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-header,
html[data-shell-frame="foundation"][data-theme="dark"] body[data-ui-ready="true"] .mm-shell-sidebar,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-command__panel,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-overflow__panel,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-breadcrumb__panel {
  background: rgba(20, 27, 42, 0.88) !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-sidebar__section {
  background: rgba(255, 255, 255, 0.03);
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-card-item,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-entry-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-owner-shell-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-company-admin-panel,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-office-tools-panel,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-panel-head,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-sheet,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs-header,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs-reader,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-platform-docs-tree {
  background: var(--mm-hibrid-panel);
  border-color: var(--mm-hibrid-line);
  color: var(--mm-hibrid-text);
}

/* Owner-facing office tools: work first, no explanation wall. */
html[data-shell-frame="foundation"] .mm-office-tools-shell__top {
  min-height: auto;
  padding: 12px 14px;
}

html[data-shell-frame="foundation"] .mm-office-tools-shell__title-wrap {
  align-items: center;
}

html[data-shell-frame="foundation"] .mm-office-tools-shell__title-wrap h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

html[data-shell-frame="foundation"] .mm-office-tools-shell__scope {
  min-width: 0;
}

html[data-shell-frame="foundation"] .mm-office-tools-shell__summary {
  padding: 8px;
  gap: 8px;
}

html[data-shell-frame="foundation"] .mm-office-tools-shell__stat {
  min-height: 54px;
  padding: 8px 10px;
}

html[data-shell-frame="foundation"] .mm-office-tools-panel--work-first {
  display: grid;
  gap: 12px;
}

html[data-shell-frame="foundation"] .mm-office-tools-panel--work-first .mm-office-tools-panel__head {
  align-items: center;
  padding-bottom: 0;
}

html[data-shell-frame="foundation"] .mm-office-tools-panel--work-first .mm-process-title {
  font-size: 18px;
  line-height: 1.2;
}

html[data-shell-frame="foundation"] .mm-office-tools-panel--work-first .mm-muted {
  margin: 3px 0 0;
}

html[data-shell-frame="foundation"] .mm-office-tools-create-form {
  gap: 10px;
}

html[data-shell-frame="foundation"] .mm-office-tools-create-form__actions {
  display: flex;
  justify-content: flex-start;
}

html[data-shell-frame="foundation"] .mm-office-tools-panel--communication .mm-office-tools-communication {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

html[data-shell-frame="foundation"] .mm-office-tools-panel--communication .mm-office-tools-dock,
html[data-shell-frame="foundation"] .mm-office-tools-panel--communication .mm-office-tools-scroll {
  min-height: 0;
}

html[data-shell-frame="foundation"] .mm-office-tools-empty {
  min-height: 118px;
  padding: 18px;
  align-content: center;
}

html[data-shell-frame="foundation"] .mm-office-tools-empty__title {
  font-size: 16px;
}

html[data-shell-frame="foundation"] .mm-office-tools-empty p {
  max-width: 520px;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-sidebar,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-sidebar .mm-company-shell-navitem,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-office-tools-shell__top,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-office-tools-shell__summary,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-office-tools-panel,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-office-tools-item,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-office-tools-empty,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-office-tools-scroll,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-office-tools-dock {
  color: var(--mm-hibrid-text);
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-sidebar .mm-company-shell-navitem__content strong,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-office-tools-item__title-row strong,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-office-tools-empty__title,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-messenger-neo__title {
  color: var(--mm-hibrid-text);
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-sidebar .mm-company-shell-navitem__content span,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-office-tools-item__meta,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-office-tools-item__description,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-office-tools-empty p,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-messenger-neo__preview,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-messenger-neo__meta {
  color: var(--mm-hibrid-muted);
}

html[data-shell-frame="foundation"][data-theme="dark"] input,
html[data-shell-frame="foundation"][data-theme="dark"] select,
html[data-shell-frame="foundation"][data-theme="dark"] textarea {
  background: rgba(255, 255, 255, 0.06);
  color: var(--mm-hibrid-text);
}

html[data-shell-frame="foundation"][data-theme="dark"] input::placeholder,
html[data-shell-frame="foundation"][data-theme="dark"] textarea::placeholder {
  color: rgba(226, 232, 240, 0.58);
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-office-tools-shell,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-office-tools-shell__top,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-office-tools-shell__summary,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-office-tools-panel,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-office-tools-item,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-office-tools-empty,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-office-tools-scroll,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-office-tools-dock {
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.08), transparent 34%),
    var(--mm-hibrid-panel) !important;
  border-color: var(--mm-hibrid-line) !important;
  color: var(--mm-hibrid-text) !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-office-tools-tab,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-chip,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-button-secondary {
  background: var(--mm-hibrid-panel-soft) !important;
  border-color: var(--mm-hibrid-line) !important;
  color: var(--mm-hibrid-text) !important;
}

/* Shop Pro unified workspace pass: keep installed app pages in the same shell family. */
html[data-shell-frame="foundation"] .mm-unit-workspace--shop,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop * {
  font-family: var(--mm-font-ui) !important;
  letter-spacing: 0 !important;
}

html[data-shell-frame="foundation"] .mm-unit-workspace--shop {
  color: var(--mm-hibrid-text);
}

html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-section-shell,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-toolbar,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-master-data-toolbar,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-surface,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-detail-empty,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-sales-order-detail,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-master-data-detail,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-form-card,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-product-surface-note,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-returns__section,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-card-item,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-summary-card {
  border: 1px solid var(--mm-hibrid-line) !important;
  border-radius: var(--mm-hibrid-radius) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.055), transparent 34%),
    var(--mm-hibrid-panel) !important;
  color: var(--mm-hibrid-text) !important;
  box-shadow: var(--mm-hibrid-shadow) !important;
}

html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-section-shell {
  gap: 14px;
  padding: 14px;
}

html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-toolbar,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-master-data-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 14px;
}

html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-master-data-toolbar__left,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-master-data-toolbar__right {
  align-items: end;
}

html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-surface,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-detail-empty,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-sales-order-detail,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-master-data-detail,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-form-card {
  padding: 18px !important;
}

html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-surface__head h3,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-detail-empty h3,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-sales-order-detail__head h3,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-master-data-detail h2,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-card-item h3,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-summary-card h3 {
  color: var(--mm-hibrid-text) !important;
  font-size: clamp(20px, 1.55vw, 24px);
  line-height: 1.12;
  font-weight: 900;
}

html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-surface__head p,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-detail-empty p,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-sales-order-detail__head p,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-card-item p,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-summary-card span,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-card-actions__hint {
  color: var(--mm-hibrid-muted) !important;
  font-size: 14px;
  line-height: 1.55;
}

html[data-shell-frame="foundation"] .mm-unit-workspace--shop input,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop select,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop textarea,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-inline-select {
  min-height: 44px;
  border: 1px solid var(--mm-hibrid-line) !important;
  border-radius: 14px !important;
  background: var(--mm-hibrid-panel-soft) !important;
  color: var(--mm-hibrid-text) !important;
  box-shadow: none !important;
}

html[data-shell-frame="foundation"] .mm-unit-workspace--shop input:focus,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop select:focus,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop textarea:focus {
  outline: none !important;
  border-color: rgba(37, 99, 235, 0.46) !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
}

html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-button,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-button-secondary,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-mini-action,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-mini-action-primary {
  min-height: 40px;
  border-radius: 14px !important;
  font-weight: 850;
}

html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-button-secondary,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-mini-action {
  border-color: var(--mm-hibrid-line) !important;
  background: var(--mm-hibrid-panel-soft) !important;
  color: var(--mm-hibrid-text) !important;
}

html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-chip,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-master-data-count,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-toolbar__metric {
  border: 1px solid var(--mm-hibrid-line) !important;
  background: var(--mm-hibrid-blue-soft) !important;
  color: #2251b4 !important;
}

html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-toolbar__metric strong,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-toolbar__metric span,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-master-data-count {
  color: inherit !important;
}

html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-card-item.is-active,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-record-card.is-active {
  border-color: rgba(37, 99, 235, 0.35) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), var(--mm-hibrid-shadow) !important;
}

html[data-shell-frame="foundation"] .mm-shoppro-create-overlay__panel,
html[data-shell-frame="foundation"] .mm-shoppro-create-overlay__body form,
html[data-shell-frame="foundation"] .mm-shoppro-create-overlay__body .mm-process-workspace__intro {
  border: 1px solid var(--mm-hibrid-line) !important;
  border-radius: var(--mm-hibrid-radius) !important;
  background: var(--mm-hibrid-panel) !important;
  color: var(--mm-hibrid-text) !important;
}

html[data-shell-frame="foundation"] .mm-shoppro-create-overlay__head h2 {
  color: var(--mm-hibrid-text) !important;
  font-size: 24px;
}

html[data-shell-frame="foundation"] .mm-shoppro-create-overlay__head p,
html[data-shell-frame="foundation"] .mm-shoppro-create-overlay__body label span {
  color: var(--mm-hibrid-muted) !important;
}

html[data-shell-frame="foundation"] .mm-shoppro-create-overlay__body input,
html[data-shell-frame="foundation"] .mm-shoppro-create-overlay__body select,
html[data-shell-frame="foundation"] .mm-shoppro-create-overlay__body textarea {
  border-color: var(--mm-hibrid-line) !important;
  border-radius: 14px !important;
  background: var(--mm-hibrid-panel-soft) !important;
  color: var(--mm-hibrid-text) !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-unit-workspace--shop .mm-chip,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-unit-workspace--shop .mm-master-data-count,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-unit-workspace--shop .mm-shoppro-toolbar__metric {
  color: var(--mm-hibrid-text) !important;
}

@media (max-width: 1279px) {
  html[data-shell-frame="foundation"] .mm-office-tools-shell__summary,
  html[data-shell-frame="foundation"] .mm-development-summary-band,
  html[data-shell-frame="foundation"] .mm-platform-tenant-card__stats,
  html[data-shell-frame="foundation"] .mm-company-admin-stats {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  html[data-shell-frame="foundation"] .mm-office-tools-communication,
  html[data-shell-frame="foundation"] .mm-cwb-layout,
  html[data-shell-frame="foundation"] .mm-company-structure-workspace,
  html[data-shell-frame="foundation"] .mm-marketplace-canon-layout.has-detail {
    grid-template-columns: 1fr;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-sheet--inline,
  html[data-shell-frame="foundation"] .mm-company-structure-detail {
    position: static;
    max-height: none;
  }
}

@media (max-width: 1100px) {
  html[data-shell-frame="foundation"] .mm-header,
  html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-header,
  html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-header,
  html[data-shell-frame="foundation"] body:has(.mm-company-admin-shell) .mm-header,
  html[data-shell-frame="foundation"] body[data-runtime-level="division"]:not(:has(.mm-current-company-shell)) .mm-header,
  html[data-shell-frame="foundation"] body[data-ui-ready="true"] .mm-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 0 10px;
  }

  html[data-shell-frame="foundation"] .mm-header-brand {
    padding: 0;
  }

  html[data-shell-frame="foundation"] .mm-header-context {
    display: none;
  }

  html[data-shell-frame="foundation"] .mm-main,
  html[data-shell-frame="foundation"] body[data-ui-ready="true"] .mm-main,
  html[data-shell-frame="foundation"].is-superadmin-platform body[data-ui-ready="true"] .mm-main {
    padding: calc(var(--mm-hibrid-top) + 14px) 14px 72px !important;
  }

  html[data-shell-frame="foundation"] .mm-stage1-mobile-drawer__panel,
  html[data-shell-frame="foundation"] .mm-company-shell-drawer__panel {
    background: rgba(255, 255, 255, 0.92);
    border-right: 1px solid var(--mm-hibrid-line);
    box-shadow: 0 20px 50px rgba(16, 24, 40, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  html[data-shell-frame="foundation"] .mm-header,
  html[data-shell-frame="foundation"] .mm-shell-sidebar,
  html[data-shell-frame="foundation"] .mm-main,
  html[data-shell-frame="foundation"] .mm-marketplace-root,
  html[data-shell-frame="foundation"] .mm-office-tools-shell,
  html[data-shell-frame="foundation"] .mm-company-structure-workspace,
  html[data-shell-frame="foundation"] .mm-unit-workspace--shop {
    font-size: 16px;
  }

  html[data-shell-frame="foundation"] .mm-brand-title,
  html[data-shell-frame="foundation"] .mm-shell-breadcrumb__button,
  html[data-shell-frame="foundation"] .mm-shell-breadcrumb__label,
  html[data-shell-frame="foundation"] .mm-shell-sidebar__item,
  html[data-shell-frame="foundation"] .mm-header-nav__btn,
  html[data-shell-frame="foundation"] .mm-button,
  html[data-shell-frame="foundation"] .mm-button-secondary,
  html[data-shell-frame="foundation"] .mm-mini-action,
  html[data-shell-frame="foundation"] .mm-mini-action-primary {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  html[data-shell-frame="foundation"] {
    --mm-hibrid-top: 56px;
  }

  html[data-shell-frame="foundation"] body {
    overflow-x: hidden;
  }

  html[data-shell-frame="foundation"] .mm-logo {
    width: 32px;
    height: 32px;
  }

  html[data-shell-frame="foundation"] .mm-brand-level {
    display: none;
  }

  html[data-shell-frame="foundation"] .mm-brand-title {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
  }

  html[data-shell-frame="foundation"] .mm-header-nav {
    gap: 4px;
  }

  html[data-shell-frame="foundation"] .mm-header-nav__btn:not(.has-text),
  html[data-shell-frame="foundation"] .mm-header-menu,
  html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-button {
    min-width: 34px;
    width: 34px;
    padding: 0;
  }

  html[data-shell-frame="foundation"] .mm-header-nav__btn.has-text .mm-header-nav__text,
  html[data-shell-frame="foundation"] .mm-header-overflow__panel .mm-header-nav__text {
    display: inline;
  }

  html[data-shell-frame="foundation"] .mm-section-head,
  html[data-shell-frame="foundation"] .mm-owner-shell-head,
  html[data-shell-frame="foundation"] .mm-company-admin-panel__head,
  html[data-shell-frame="foundation"] .mm-office-tools-panel__head,
  html[data-shell-frame="foundation"] .mm-marketplace-panel-head__title-row {
    display: grid;
  }

  html[data-shell-frame="foundation"] .mm-owner-shell-head h2,
  html[data-shell-frame="foundation"] .mm-office-tools-shell__title-wrap h2,
  html[data-shell-frame="foundation"] .mm-company-admin-panel__head h2,
  html[data-shell-frame="foundation"] .mm-platform-docs-header h1,
  html[data-shell-frame="foundation"] .mm-platform-page-header h1,
  html[data-shell-frame="foundation"] .mm-marketplace-panel-head h2 {
    font-size: 24px;
  }

  html[data-shell-frame="foundation"] .mm-office-tools-shell__summary,
  html[data-shell-frame="foundation"] .mm-development-summary-band,
  html[data-shell-frame="foundation"] .mm-platform-tenant-card__stats,
  html[data-shell-frame="foundation"] .mm-company-admin-stats,
  html[data-shell-frame="foundation"] .mm-platform-docs-meta {
    grid-template-columns: 1fr 1fr;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-card-grid,
  html[data-shell-frame="foundation"] .mm-entry-grid,
  html[data-shell-frame="foundation"] .mm-card-grid,
  html[data-shell-frame="foundation"] .mm-platform-tenant-grid,
  html[data-shell-frame="foundation"] .mm-settings-scope-grid,
  html[data-shell-frame="foundation"] .mm-settings-scope-note-grid,
  html[data-shell-frame="foundation"] .mm-settings-actions-grid {
    grid-template-columns: 1fr;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-card,
  html[data-shell-frame="foundation"] .mm-entry-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  html[data-shell-frame="foundation"] .mm-marketplace-card__icon,
  html[data-shell-frame="foundation"] .mm-entry-card__icon {
    width: 44px;
    height: 44px;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-sheet-head {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  html[data-shell-frame="foundation"] .mm-marketplace-sheet-head > .mm-mini-action {
    grid-column: 1 / -1;
    justify-self: start;
  }

  html[data-shell-frame="foundation"] .mm-card-item p,
  html[data-shell-frame="foundation"] .mm-entry-card__subtitle,
  html[data-shell-frame="foundation"] .mm-marketplace-card__description,
  html[data-shell-frame="foundation"] .mm-marketplace-sheet-meta p,
  html[data-shell-frame="foundation"] .mm-office-tools-panel p,
  html[data-shell-frame="foundation"] .mm-company-employees-panel__lead,
  html[data-shell-frame="foundation"] .mm-shoppro-surface__head p,
  html[data-shell-frame="foundation"] .mm-shoppro-detail-empty p,
  html[data-shell-frame="foundation"] .mm-shoppro-section-shell__title p,
  html[data-shell-frame="foundation"] .mm-shoppro-record-card__head p,
  html[data-shell-frame="foundation"] .mm-muted {
    font-size: 16px;
  }

  html[data-shell-frame="foundation"] label span,
  html[data-shell-frame="foundation"] input,
  html[data-shell-frame="foundation"] select,
  html[data-shell-frame="foundation"] textarea,
  html[data-shell-frame="foundation"] .mm-inline-select {
    font-size: 16px;
  }
}

@media (max-width: 430px) {
  html[data-shell-frame="foundation"] .mm-office-tools-shell__summary,
  html[data-shell-frame="foundation"] .mm-development-summary-band,
  html[data-shell-frame="foundation"] .mm-platform-tenant-card__stats,
  html[data-shell-frame="foundation"] .mm-company-admin-stats,
  html[data-shell-frame="foundation"] .mm-platform-docs-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  html[data-shell-frame="foundation"] .mm-entry-card,
  html[data-shell-frame="foundation"] .mm-card-item,
  html[data-shell-frame="foundation"] .mm-marketplace-card,
  html[data-shell-frame="foundation"] .mm-company-admin-card {
    min-width: 0;
  }

  html[data-shell-frame="foundation"] .mm-entry-card__subtitle,
  html[data-shell-frame="foundation"] .mm-card-item p,
  html[data-shell-frame="foundation"] .mm-marketplace-card p,
  html[data-shell-frame="foundation"] .mm-company-admin-card p {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

/* Launch audit hardening: mobile header must not turn global tools into a text row. */
@media (max-width: 767px) {
  html[data-shell-frame="foundation"] .mm-header {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
  }

  html[data-shell-frame="foundation"] .mm-header-tools {
    min-width: 0;
  }

  html[data-shell-frame="foundation"] .mm-brand-meta {
    display: none !important;
  }

  html[data-shell-frame="foundation"] .mm-header-nav {
    gap: 4px;
    max-width: 84px;
    overflow: visible;
  }

  html[data-shell-frame="foundation"] .mm-header-nav > .mm-header-nav__btn.has-text:not(.mm-header-search) .mm-header-nav__text {
    display: none !important;
  }

  html[data-shell-frame="foundation"] .mm-header-search.mm-header-nav__btn.has-text {
    min-width: 42px;
    width: 42px;
    padding: 0;
  }

  html[data-shell-frame="foundation"] .mm-header-search .mm-header-nav__text {
    display: none !important;
  }

  html[data-shell-frame="foundation"] .mm-header-overflow__panel.hidden {
    display: none !important;
  }

  html[data-shell-frame="foundation"] .mm-header-overflow__panel:not(.hidden) {
    display: grid !important;
    position: fixed !important;
    top: calc(var(--mm-frame-header-height, 56px) + 8px) !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    z-index: 400 !important;
  }

  html[data-shell-frame="foundation"] .mm-header-overflow__panel .mm-header-nav__btn {
    width: 100% !important;
    justify-content: flex-start !important;
    padding: 0 12px !important;
  }

  html[data-shell-frame="foundation"] .mm-header-overflow__panel .mm-header-nav__text {
    display: inline !important;
  }

  html[data-shell-frame="foundation"] #mm-gate-root .mm-gate {
    gap: 4px;
  }

  html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-button {
    min-width: 36px !important;
    width: 36px !important;
    padding: 0 !important;
    justify-content: center !important;
    overflow: hidden;
    white-space: nowrap;
  }

  html[data-shell-frame="foundation"] #mm-gate-root [data-menu-kind="language"] .mm-gate-button {
    font-size: 0 !important;
  }

  html[data-shell-frame="foundation"] #mm-gate-root [data-menu-kind="language"] .mm-gate-button::after {
    content: "RU";
    font-size: 11px;
    font-weight: 900;
  }

  html[data-shell-frame="foundation"] #mm-gate-root [data-menu-kind="profile"] .mm-gate-button {
    font-size: 0 !important;
  }

  html[data-shell-frame="foundation"] #mm-gate-root [data-menu-kind="profile"] .mm-gate-button::before {
    content: "👤";
    font-size: 14px;
    line-height: 1;
  }
}

/* Owner shell rework pass: keep Platform/Tenant/Company/Unit on the same visible frame. */
html[data-shell-frame="foundation"].is-superadmin-platform .mm-header-context,
html[data-shell-frame="foundation"].is-superadmin-platform .mm-header-nav {
  display: flex !important;
}

@media (min-width: 1101px) {
  html[data-shell-frame="foundation"].is-superadmin-platform .mm-main,
  html[data-shell-frame="foundation"].is-superadmin-platform body[data-ui-ready="true"] .mm-main {
    padding-left: calc(var(--mm-shell-sidebar-width, var(--mm-hibrid-side)) + 22px) !important;
  }
}

html[data-shell-frame="foundation"] .mm-header-overflow {
  position: relative;
}

html[data-shell-frame="foundation"] .mm-header-overflow__panel {
  display: grid;
  gap: 6px;
  min-width: 236px;
  padding: 8px;
}

html[data-shell-frame="foundation"] .mm-header-overflow__panel.hidden {
  display: none !important;
}

html[data-shell-frame="foundation"] .mm-header-overflow__panel .mm-header-nav__btn {
  min-width: 100%;
}

html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-group {
  position: relative;
}

html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-menu {
  z-index: 520;
  min-width: 220px;
  border: 1px solid var(--mm-hibrid-line);
  border-radius: var(--mm-hibrid-radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 48px rgba(16, 24, 40, 0.16);
}

html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-menu.hidden {
  display: none !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] #mm-gate-root .mm-gate-menu {
  background: rgba(20, 27, 42, 0.98);
}

html[data-shell-frame="foundation"] .mm-marketplace-visibility {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

html[data-shell-frame="foundation"] .mm-marketplace-visibility__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--mm-hibrid-line);
  border-radius: 999px;
  color: var(--mm-hibrid-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

html[data-shell-frame="foundation"] .mm-marketplace-visibility__item.is-on {
  border-color: rgba(15, 118, 110, 0.24);
  background: var(--mm-hibrid-green-soft);
  color: #0f766e;
}

html[data-shell-frame="foundation"] .mm-marketplace-visibility__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.42;
}

html[data-shell-frame="foundation"] .mm-settings-scope-card .mm-button,
html[data-shell-frame="foundation"] .mm-settings-scope-card .mm-button-secondary {
  justify-self: start;
  margin-top: 6px;
}

@media (min-width: 1101px) {
  html[data-shell-frame="foundation"] body[data-sidebar="collapsed"] .mm-shell-sidebar {
    width: 72px !important;
    padding-inline: 8px;
    overflow-x: hidden !important;
  }

  html[data-shell-frame="foundation"] body[data-sidebar="collapsed"] .mm-shell-sidebar__brand {
    width: 100%;
    box-sizing: border-box;
  }

  html[data-shell-frame="foundation"] body[data-sidebar="collapsed"] .mm-shell-sidebar__brand-text,
  html[data-shell-frame="foundation"] body[data-sidebar="collapsed"] .mm-shell-sidebar .mm-company-shell-sidebar__label span,
  html[data-shell-frame="foundation"] body[data-sidebar="collapsed"] .mm-shell-sidebar .mm-shell-tree__filter,
  html[data-shell-frame="foundation"] body[data-sidebar="collapsed"] .mm-shell-sidebar .mm-company-shell-navitem__content {
    display: none !important;
  }

  html[data-shell-frame="foundation"] body[data-sidebar="collapsed"] .mm-shell-sidebar__label-row {
    justify-content: center;
    padding: 0;
  }

  html[data-shell-frame="foundation"] body[data-sidebar="collapsed"] .mm-shell-sidebar__group-action {
    width: 34px;
    height: 30px;
  }

  html[data-shell-frame="foundation"] body[data-sidebar="collapsed"] .mm-shell-sidebar .mm-company-shell-navitem,
  html[data-shell-frame="foundation"] body[data-sidebar="collapsed"] .mm-shell-sidebar .mm-company-shell-navitem--department {
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: center;
    box-sizing: border-box;
    padding: 8px 0;
  }

  html[data-shell-frame="foundation"] body[data-sidebar="collapsed"] .mm-shell-sidebar .mm-company-shell-navitem__icon {
    width: 34px;
    height: 30px;
    min-width: 34px;
    border: 1px solid var(--mm-hibrid-line);
    background: var(--mm-hibrid-panel);
    font-size: 10px;
  }

  html[data-shell-frame="foundation"] body[data-sidebar="collapsed"] .mm-shell-tree__children {
    display: grid;
    gap: 3px;
    margin-left: 0;
  }

  html[data-shell-frame="foundation"] body[data-sidebar="collapsed"] .mm-shell-tree__item.is-child .mm-company-shell-navitem__icon {
    width: 28px;
    height: 26px;
    min-width: 28px;
    font-size: 9px;
    opacity: 0.82;
  }
}

@media (max-width: 767px) {
  html[data-shell-frame="foundation"] {
    --mm-hibrid-top: 82px;
  }

  html[data-shell-frame="foundation"] .mm-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: start;
    min-height: var(--mm-hibrid-top);
    height: var(--mm-hibrid-top);
    padding: 6px 10px 8px;
  }

  html[data-shell-frame="foundation"] .mm-brand-meta {
    display: grid !important;
    min-width: 0;
    align-content: center;
  }

  html[data-shell-frame="foundation"] .mm-brand-level {
    display: block !important;
    max-width: 54vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html[data-shell-frame="foundation"] .mm-brand-title {
    max-width: 54vw;
    font-size: 13px;
    line-height: 1.12;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  html[data-shell-frame="foundation"] .mm-header-tools {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    gap: 4px;
    justify-content: flex-end;
  }

  html[data-shell-frame="foundation"] .mm-header-nav {
    max-width: none;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }

  html[data-shell-frame="foundation"] .mm-header-nav::-webkit-scrollbar {
    display: none;
  }

  html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-menu {
    position: fixed !important;
    top: calc(var(--mm-hibrid-top, 56px) + 8px) !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
  }
}

@media (max-width: 520px) {
  html[data-shell-frame="foundation"] {
    --mm-hibrid-top: 86px;
  }

  html[data-shell-frame="foundation"] .mm-header-brand {
    gap: 8px;
  }

  html[data-shell-frame="foundation"] .mm-logo {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  html[data-shell-frame="foundation"] .mm-brand-level {
    font-size: 9px;
    max-width: 58vw;
  }

  html[data-shell-frame="foundation"] .mm-brand-title {
    max-width: 58vw;
    font-size: 12px;
  }

  html[data-shell-frame="foundation"] .mm-header-nav__btn:not(.has-text),
  html[data-shell-frame="foundation"] .mm-header-menu,
  html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-button {
    min-width: 32px;
    width: 32px;
    min-height: 32px;
    height: 32px;
  }
}

/* Real-device guard: Samsung/Android may report a desktop CSS viewport on a phone/tablet. */
html[data-shell-frame="foundation"].is-real-device-compact,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"],
html[data-shell-frame="foundation"][data-real-device-shell="tablet"] {
  --mm-hibrid-top: 72px;
  --mm-frame-header-height: 72px;
}

html[data-shell-frame="foundation"].is-real-device-compact,
html[data-shell-frame="foundation"].is-real-device-compact body {
  overflow-x: hidden;
}

html[data-shell-frame="foundation"].is-real-device-compact body {
  font-size: 16px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header,
html[data-shell-frame="foundation"].is-real-device-compact body:has(.mm-current-company-shell) .mm-header,
html[data-shell-frame="foundation"].is-real-device-compact body:has(.mm-company-shell) .mm-header,
html[data-shell-frame="foundation"].is-real-device-compact body:has(.mm-company-admin-shell) .mm-header,
html[data-shell-frame="foundation"].is-real-device-compact body[data-runtime-level="division"]:not(:has(.mm-current-company-shell)) .mm-header,
html[data-shell-frame="foundation"].is-real-device-compact body[data-ui-ready="true"] .mm-header {
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-height: var(--mm-hibrid-top);
  height: var(--mm-hibrid-top);
  padding: 0 max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
  gap: 10px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-brand {
  min-width: 0;
  padding: 0;
  gap: 10px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-menu,
html[data-shell-frame="foundation"].is-real-device-compact .mm-header-nav__btn,
html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-breadcrumb__toggle {
  min-width: 44px;
  min-height: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 14px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-menu {
  width: 44px;
  padding: 0;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 14px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-brand-meta {
  display: grid !important;
  min-width: 0;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-brand-level {
  display: block !important;
  max-width: 34vw;
  overflow: hidden;
  color: var(--mm-hibrid-blue);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-brand-title {
  max-width: 36vw;
  overflow: hidden;
  color: var(--mm-hibrid-text);
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-context {
  display: flex !important;
  min-width: 0;
  justify-content: flex-end;
}

html[data-shell-frame="foundation"].is-real-device-compact #shell-context-label {
  max-width: none;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-search {
  width: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-search .mm-header-nav__text {
  display: inline !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-tools {
  min-width: 0;
  gap: 0;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-nav {
  display: flex !important;
  max-width: none;
  gap: 0;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-nav__btn--overflow {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-overflow {
  position: static;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-overflow__panel.hidden {
  display: none !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-overflow__panel:not(.hidden) {
  display: grid !important;
  position: fixed !important;
  top: calc(var(--mm-hibrid-top) + 10px) !important;
  left: max(14px, env(safe-area-inset-left, 0px)) !important;
  right: max(14px, env(safe-area-inset-right, 0px)) !important;
  z-index: 620 !important;
  width: auto !important;
  min-width: 0;
  max-width: none !important;
  gap: 8px;
  padding: 10px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-overflow__panel .mm-header-nav__btn {
  width: 100% !important;
  justify-content: flex-start;
  padding: 0 14px !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-overflow__panel .mm-header-nav__text {
  display: inline !important;
  font-size: 15px;
}

html[data-shell-frame="foundation"].is-real-device-compact #mm-gate-root {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 640;
  width: 0;
  height: 0;
  overflow: visible;
}

html[data-shell-frame="foundation"].is-real-device-compact #mm-gate-root .mm-gate-button {
  display: none !important;
}

html[data-shell-frame="foundation"].is-real-device-compact #mm-gate-root .mm-gate-menu {
  position: fixed !important;
  top: calc(var(--mm-hibrid-top) + 10px) !important;
  left: max(14px, env(safe-area-inset-left, 0px)) !important;
  right: max(14px, env(safe-area-inset-right, 0px)) !important;
  width: auto !important;
  max-width: none !important;
  padding: 10px !important;
}

html[data-shell-frame="foundation"].is-real-device-compact #mm-gate-root .mm-gate-menu-item {
  min-height: 46px;
  font-size: 15px;
}

html[data-shell-frame="foundation"].is-real-device-compact body[data-mobile-shell="active"] .mm-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 590;
  background: rgba(15, 23, 42, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

html[data-shell-frame="foundation"].is-real-device-compact body[data-mobile-shell="active"][data-sidebar="expanded"] .mm-shell::before {
  opacity: 1;
}

html[data-shell-frame="foundation"].is-real-device-compact body[data-mobile-shell="active"] .mm-shell-sidebar-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 595;
  border: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}

html[data-shell-frame="foundation"].is-real-device-compact body[data-mobile-shell="active"][data-sidebar="expanded"] .mm-shell-sidebar-backdrop {
  opacity: 1;
  pointer-events: auto;
}

html[data-shell-frame="foundation"].is-real-device-compact body[data-mobile-shell="active"] .mm-shell-sidebar,
html[data-shell-frame="foundation"].is-real-device-compact body[data-ui-ready="true"][data-mobile-shell="active"] .mm-shell-sidebar,
html[data-shell-frame="foundation"].is-real-device-compact body[data-sidebar="collapsed"][data-mobile-shell="active"] .mm-shell-sidebar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  z-index: 600 !important;
  display: grid !important;
  width: min(88vw, 420px) !important;
  height: 100dvh;
  max-height: 100dvh;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: max(16px, env(safe-area-inset-top, 0px)) 14px max(18px, env(safe-area-inset-bottom, 0px));
  overflow: hidden auto !important;
  border: 0;
  border-right: 1px solid var(--mm-hibrid-line);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 64px rgba(16, 24, 40, 0.24);
  transform: translateX(-104%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.18s ease;
}

html[data-shell-frame="foundation"].is-real-device-compact body[data-mobile-shell="active"][data-sidebar="expanded"] .mm-shell-sidebar {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-sidebar__brand {
  grid-template-columns: 44px minmax(0, 1fr) 42px;
  align-items: center;
  padding: 12px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-sidebar__close {
  display: none;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-sidebar__close:active {
  transform: translateY(1px);
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-sidebar__mark {
  width: 44px;
  height: 44px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-sidebar__brand-text,
html[data-shell-frame="foundation"].is-real-device-compact body[data-sidebar="collapsed"] .mm-shell-sidebar__brand-text,
html[data-shell-frame="foundation"].is-real-device-compact body[data-sidebar="collapsed"] .mm-shell-sidebar .mm-company-shell-navitem__content,
html[data-shell-frame="foundation"].is-real-device-compact body[data-sidebar="collapsed"] .mm-shell-sidebar .mm-company-shell-sidebar__label span {
  display: grid !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-sidebar__brand-text strong {
  font-size: 18px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-sidebar__brand-text span,
html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-sidebar__empty {
  font-size: 13px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-sidebar .mm-company-shell-navitem,
html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-sidebar .mm-company-shell-navitem--department,
html[data-shell-frame="foundation"].is-real-device-compact body[data-sidebar="collapsed"] .mm-shell-sidebar .mm-company-shell-navitem,
html[data-shell-frame="foundation"].is-real-device-compact body[data-sidebar="collapsed"] .mm-shell-sidebar .mm-company-shell-navitem--department {
  min-height: 54px;
  grid-template-columns: 36px minmax(0, 1fr);
  justify-items: stretch;
  gap: 11px;
  padding: 10px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-sidebar .mm-company-shell-navitem__icon,
html[data-shell-frame="foundation"].is-real-device-compact body[data-sidebar="collapsed"] .mm-shell-sidebar .mm-company-shell-navitem__icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  font-size: 12px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-sidebar .mm-company-shell-navitem__content strong {
  font-size: 15px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-sidebar .mm-company-shell-navitem__content span {
  font-size: 13px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-main,
html[data-shell-frame="foundation"].is-real-device-compact body[data-ui-ready="true"] .mm-main,
html[data-shell-frame="foundation"].is-real-device-compact.is-superadmin-platform body[data-ui-ready="true"] .mm-main {
  padding: calc(var(--mm-hibrid-top) + 16px) max(14px, env(safe-area-inset-right, 0px)) 32px max(14px, env(safe-area-inset-left, 0px)) !important;
}

html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-screen,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-owner-shell,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-platform-shell,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-root,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-office-tools-shell,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-platform-docs-shell {
  width: 100%;
  max-width: 720px;
}

html[data-shell-frame="foundation"][data-real-device-shell="tablet"] .mm-screen,
html[data-shell-frame="foundation"][data-real-device-shell="tablet"] .mm-owner-shell,
html[data-shell-frame="foundation"][data-real-device-shell="tablet"] .mm-platform-shell,
html[data-shell-frame="foundation"][data-real-device-shell="tablet"] .mm-marketplace-root,
html[data-shell-frame="foundation"][data-real-device-shell="tablet"] .mm-office-tools-shell,
html[data-shell-frame="foundation"][data-real-device-shell="tablet"] .mm-platform-docs-shell {
  width: 100%;
  max-width: 980px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-card,
html[data-shell-frame="foundation"].is-real-device-compact .mm-owner-shell-card,
html[data-shell-frame="foundation"].is-real-device-compact .mm-company-admin-panel,
html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-panel-head,
html[data-shell-frame="foundation"].is-real-device-compact .mm-office-tools-panel {
  padding: 18px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-section-head,
html[data-shell-frame="foundation"].is-real-device-compact .mm-owner-shell-head,
html[data-shell-frame="foundation"].is-real-device-compact .mm-company-admin-panel__head,
html[data-shell-frame="foundation"].is-real-device-compact .mm-office-tools-panel__head,
html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-panel-head__title-row {
  display: grid;
  gap: 12px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-owner-shell-head h2,
html[data-shell-frame="foundation"].is-real-device-compact .mm-office-tools-shell__title-wrap h2,
html[data-shell-frame="foundation"].is-real-device-compact .mm-company-admin-panel__head h2,
html[data-shell-frame="foundation"].is-real-device-compact .mm-platform-docs-header h1,
html[data-shell-frame="foundation"].is-real-device-compact .mm-platform-page-header h1,
html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-panel-head h2 {
  font-size: 25px;
  line-height: 1.18;
}

html[data-shell-frame="foundation"].is-real-device-compact p,
html[data-shell-frame="foundation"].is-real-device-compact .mm-muted,
html[data-shell-frame="foundation"].is-real-device-compact .mm-company-canon-card__copy,
html[data-shell-frame="foundation"].is-real-device-compact .mm-entry-card__subtitle,
html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-card__description {
  font-size: 15px;
  line-height: 1.5;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-button,
html[data-shell-frame="foundation"].is-real-device-compact .mm-button-secondary,
html[data-shell-frame="foundation"].is-real-device-compact .mm-mini-action,
html[data-shell-frame="foundation"].is-real-device-compact .mm-mini-action-primary,
html[data-shell-frame="foundation"].is-real-device-compact .mm-platform-primary-action,
html[data-shell-frame="foundation"].is-real-device-compact .mm-platform-secondary-action,
html[data-shell-frame="foundation"].is-real-device-compact .mm-chip {
  min-height: 44px;
  font-size: 14px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-office-tools-shell__top {
  padding: 12px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-office-tools-shell__title-wrap {
  display: grid;
  gap: 8px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-office-tools-shell__title-wrap h2 {
  font-size: 24px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-office-tools-shell__scope {
  display: none;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-office-tools-shell__actions {
  display: grid;
  gap: 8px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-office-tools-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-office-tools-tab {
  min-width: 0;
  padding: 0 8px;
  justify-content: center;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-office-tools-shell__summary {
  display: none !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-office-tools-panel {
  padding: 14px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-office-tools-panel--work-first .mm-office-tools-panel__head {
  gap: 8px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-office-tools-panel--work-first .mm-process-title {
  font-size: 19px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-office-tools-panel--work-first .mm-muted {
  font-size: 13px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-office-tools-panel--communication .mm-office-tools-communication {
  grid-template-columns: 1fr;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-office-tools-create-form__grid {
  grid-template-columns: 1fr;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-office-tools-empty {
  min-height: 96px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-owner-shell,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-owner-shell,
html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-root,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-root,
html[data-shell-frame="foundation"].is-real-device-compact .mm-current-company-shell,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-current-company-shell {
  gap: 14px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-owner-shell-card,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-owner-shell-card,
html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-panel-head,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-panel-head,
html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-sheet,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-sheet,
html[data-shell-frame="foundation"].is-real-device-compact .mm-office-tools-panel,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-office-tools-panel {
  padding: 16px;
  border-radius: 16px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-owner-shell-head,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-owner-shell-head,
html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-panel-head__title-row,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-panel-head__title-row,
html[data-shell-frame="foundation"].is-real-device-compact .mm-office-tools-panel__head,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-office-tools-panel__head {
  gap: 10px;
  margin-bottom: 12px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-owner-shell-head h2,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-owner-shell-head h2,
html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-panel-head h2,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-panel-head h2,
html[data-shell-frame="foundation"].is-real-device-compact .mm-office-tools-shell__title-wrap h2,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-office-tools-shell__title-wrap h2 {
  font-size: 26px;
  line-height: 1.15;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-owner-shell p,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-owner-shell p,
html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-root p,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-root p,
html[data-shell-frame="foundation"].is-real-device-compact .mm-current-company-shell p,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-current-company-shell p,
html[data-shell-frame="foundation"].is-real-device-compact .mm-owner-shell .mm-muted,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-owner-shell .mm-muted,
html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-root .mm-muted,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-root .mm-muted,
html[data-shell-frame="foundation"].is-real-device-compact .mm-current-company-shell .mm-muted,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-current-company-shell .mm-muted {
  font-size: 15px;
  line-height: 1.55;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-owner-shell label,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-owner-shell label,
html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-root label,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-root label,
html[data-shell-frame="foundation"].is-real-device-compact .mm-current-company-shell label,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-current-company-shell label {
  gap: 7px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-owner-shell label span,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-owner-shell label span,
html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-root label span,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-root label span,
html[data-shell-frame="foundation"].is-real-device-compact .mm-current-company-shell label span,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-current-company-shell label span {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 750;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-owner-shell input,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-owner-shell input,
html[data-shell-frame="foundation"].is-real-device-compact .mm-owner-shell select,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-owner-shell select,
html[data-shell-frame="foundation"].is-real-device-compact .mm-owner-shell textarea,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-owner-shell textarea,
html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-root input,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-root input,
html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-root select,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-root select,
html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-root textarea,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-root textarea,
html[data-shell-frame="foundation"].is-real-device-compact .mm-current-company-shell input,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-current-company-shell input,
html[data-shell-frame="foundation"].is-real-device-compact .mm-current-company-shell select,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-current-company-shell select,
html[data-shell-frame="foundation"].is-real-device-compact .mm-current-company-shell textarea,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-current-company-shell textarea {
  min-height: 46px;
  font-size: 16px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-owner-shell .mm-button,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-owner-shell .mm-button,
html[data-shell-frame="foundation"].is-real-device-compact .mm-owner-shell .mm-button-secondary,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-owner-shell .mm-button-secondary,
html[data-shell-frame="foundation"].is-real-device-compact .mm-owner-shell .mm-mini-action,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-owner-shell .mm-mini-action,
html[data-shell-frame="foundation"].is-real-device-compact .mm-owner-shell .mm-mini-action-primary,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-owner-shell .mm-mini-action-primary,
html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-root .mm-button,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-root .mm-button,
html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-root .mm-button-secondary,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-root .mm-button-secondary,
html[data-shell-frame="foundation"].is-real-device-compact .mm-current-company-shell .mm-button,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-current-company-shell .mm-button,
html[data-shell-frame="foundation"].is-real-device-compact .mm-current-company-shell .mm-button-secondary,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-current-company-shell .mm-button-secondary {
  min-height: 44px;
  font-size: 14px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-owner-shell .mm-entry-card,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-owner-shell .mm-entry-card,
html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-card,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-card,
html[data-shell-frame="foundation"].is-real-device-compact .mm-office-tools-item,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-office-tools-item {
  padding: 14px;
  border-radius: 14px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-entry-card__title,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-entry-card__title,
html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-card__title,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-card__title,
html[data-shell-frame="foundation"].is-real-device-compact .mm-office-tools-item__title,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-office-tools-item__title {
  font-size: 16px;
  line-height: 1.28;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-entry-card__subtitle,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-entry-card__subtitle,
html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-card__description,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-card__description,
html[data-shell-frame="foundation"].is-real-device-compact .mm-office-tools-item__meta,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-office-tools-item__meta {
  font-size: 14px;
  line-height: 1.45;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-structure-chart,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-structure-chart {
  min-height: 300px;
  padding: 14px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-structure-node,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-structure-node {
  width: min(100%, 220px);
  min-height: 92px;
  padding: 14px 12px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-structure-node strong,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-structure-node strong {
  font-size: 14px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-structure-node span,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-structure-node span,
html[data-shell-frame="foundation"].is-real-device-compact .mm-structure-node em,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-structure-node em,
html[data-shell-frame="foundation"].is-real-device-compact .mm-structure-detail span,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-structure-detail span {
  font-size: 12px;
  line-height: 1.45;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-sheet.mm-marketplace-sheet--inline .mm-marketplace-sheet-meta h3,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-sheet.mm-marketplace-sheet--inline .mm-marketplace-sheet-meta h3 {
  font-size: 20px !important;
  line-height: 1.15 !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-sheet.mm-marketplace-sheet--inline .mm-marketplace-sheet-meta p,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-sheet.mm-marketplace-sheet--inline .mm-marketplace-sheet-meta p {
  font-size: 15px !important;
  line-height: 1.45 !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-sheet .mm-install-module-form .mm-card-actions,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-sheet .mm-install-module-form .mm-card-actions {
  gap: 10px !important;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
}

html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-entry-grid,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-card-grid,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-platform-tenant-grid,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-card-grid,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-settings-scope-grid,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-settings-scope-note-grid,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-settings-actions-grid,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-office-tools-shell__summary,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-development-summary-band,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-company-admin-stats {
  grid-template-columns: 1fr !important;
}

html[data-shell-frame="foundation"][data-real-device-shell="tablet"] .mm-entry-grid,
html[data-shell-frame="foundation"][data-real-device-shell="tablet"] .mm-card-grid,
html[data-shell-frame="foundation"][data-real-device-shell="tablet"] .mm-platform-tenant-grid,
html[data-shell-frame="foundation"][data-real-device-shell="tablet"] .mm-marketplace-card-grid,
html[data-shell-frame="foundation"][data-real-device-shell="tablet"] .mm-settings-scope-grid,
html[data-shell-frame="foundation"][data-real-device-shell="tablet"] .mm-settings-scope-note-grid,
html[data-shell-frame="foundation"][data-real-device-shell="tablet"] .mm-settings-actions-grid,
html[data-shell-frame="foundation"][data-real-device-shell="tablet"] .mm-office-tools-shell__summary,
html[data-shell-frame="foundation"][data-real-device-shell="tablet"] .mm-development-summary-band,
html[data-shell-frame="foundation"][data-real-device-shell="tablet"] .mm-company-admin-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-entry-card,
html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-card {
  min-height: 92px;
  grid-template-columns: 52px minmax(0, 1fr);
  padding: 16px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-entry-card__icon,
html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-card__icon {
  width: 52px;
  height: 52px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-entry-card__title,
html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-card__title {
  font-size: 16px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-marketplace-visibility__item {
  min-height: 30px;
  font-size: 12px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-xfm-shell {
  border-radius: 14px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-xfm-topbar,
html[data-shell-frame="foundation"].is-real-device-compact .mm-xfm-upload {
  display: grid;
  gap: 12px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-xfm-topbar-actions,
html[data-shell-frame="foundation"].is-real-device-compact .mm-xfm-root-switcher,
html[data-shell-frame="foundation"].is-real-device-compact .mm-xfm-mkdir-form {
  width: 100%;
  justify-content: stretch;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-xfm-root-btn,
html[data-shell-frame="foundation"].is-real-device-compact .mm-xfm-btn-sm,
html[data-shell-frame="foundation"].is-real-device-compact .mm-xfm-file-text,
html[data-shell-frame="foundation"].is-real-device-compact .mm-xfm-mkdir-input {
  min-height: 44px;
  font-size: 14px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-xfm-list-title {
  padding: 12px 16px 4px;
  color: var(--mm-hibrid-text);
  font-size: 15px;
  font-weight: 850;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-xfm-row {
  min-height: 62px;
  padding: 12px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-xfm-name {
  font-size: 15px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-xfm-meta,
html[data-shell-frame="foundation"].is-real-device-compact .mm-xfm-root-path,
html[data-shell-frame="foundation"].is-real-device-compact .mm-xfm-topbar-copy,
html[data-shell-frame="foundation"].is-real-device-compact .mm-xfm-upload-target,
html[data-shell-frame="foundation"].is-real-device-compact .mm-xfm-upload-empty {
  font-size: 13px;
  line-height: 1.45;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-xfm-row-menu summary {
  width: 44px;
  height: 44px;
}

/* Exchange 10/10 rework: compact, readable, no trash UX. */
html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-shell {
  display: grid !important;
  grid-template-rows: auto auto auto auto minmax(220px, 1fr) auto auto !important;
  gap: 0 !important;
  min-height: min(760px, calc(100vh - var(--mm-hibrid-top) - 36px)) !important;
  overflow: hidden !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-topbar {
  display: grid !important;
  grid-template-columns: minmax(180px, 0.8fr) auto minmax(260px, 1.4fr) !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 12px 14px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-title {
  color: #0f172a !important;
  font-size: 22px !important;
  line-height: 1.1 !important;
  font-weight: 850 !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-root-path,
html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-upload-target,
html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-preview-meta,
html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-meta {
  color: #475569 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-root-switcher {
  border-radius: 12px !important;
  background: #eef4ff !important;
  border: 1px solid rgba(37, 99, 235, 0.14) !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-root-btn {
  min-height: 38px !important;
  color: #334155 !important;
  font-size: 14px !important;
  border-radius: 9px !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-root-btn-active {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18) !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-topbar-actions {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(126px, max-content)) !important;
  justify-content: end !important;
  align-items: center !important;
  gap: 8px !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-mkdir-form {
  display: grid !important;
  grid-template-columns: minmax(150px, 1fr) auto !important;
  gap: 6px !important;
  min-width: min(100%, 292px) !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-mkdir-input,
html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-rename-input,
html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-editor-textarea {
  min-height: 38px !important;
  border: 1px solid rgba(15, 23, 42, 0.16) !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  font-size: 15px !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-btn-sm,
html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-btn {
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  background: #ffffff !important;
  color: #172033 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-btn-primary {
  border-color: rgba(37, 99, 235, 0.28) !important;
  background: #2563eb !important;
  color: #ffffff !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-btn-sm:disabled {
  opacity: 1 !important;
  color: #64748b !important;
  background: #e2e8f0 !important;
  cursor: not-allowed !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-notice,
html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-upload-status {
  margin: 8px 14px 0 !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(16, 185, 129, 0.28) !important;
  border-radius: 12px !important;
  background: #ecfdf5 !important;
  color: #065f46 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-notice.is-error,
html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-upload-status.is-error {
  border-color: rgba(220, 38, 38, 0.3) !important;
  background: #fef2f2 !important;
  color: #991b1b !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-breadcrumb {
  padding: 8px 14px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-crumb {
  color: #334155 !important;
  font-size: 14px !important;
  max-width: 220px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-crumb-active {
  color: #0f172a !important;
  background: #e2e8f0 !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-list-title {
  padding: 10px 14px 4px !important;
  color: #0f172a !important;
  font-size: 15px !important;
  font-weight: 850 !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-list {
  padding: 6px 8px 10px !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-row {
  min-height: 58px !important;
  margin: 3px 0 !important;
  padding: 10px 12px !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-row:hover,
html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-row:focus-within {
  border-color: rgba(37, 99, 235, 0.18) !important;
  background: #eff6ff !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-row-main {
  min-width: 0 !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-name {
  display: block !important;
  color: #0f172a !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-empty,
html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-upload-empty {
  color: #475569 !important;
  font-size: 14px !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-select input {
  width: 18px !important;
  height: 18px !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-row-menu summary {
  width: 38px !important;
  height: 38px !important;
  color: #172033 !important;
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-row-menu__body {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-row-menu__body button {
  color: #172033 !important;
  font-size: 14px !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-row-menu__body button.danger {
  color: #b42318 !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-row-menu__body button:disabled {
  color: #64748b !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-preview,
html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-upload {
  margin: 8px 14px 12px !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  border-radius: 14px !important;
  background: #f8fafc !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-upload {
  display: grid !important;
  grid-template-columns: minmax(180px, 0.8fr) minmax(200px, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 12px !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-upload-head,
html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-upload-actions {
  min-width: 0 !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-upload-queue {
  max-height: 86px !important;
}

html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-file-text {
  border-color: rgba(37, 99, 235, 0.2) !important;
  background: #ffffff !important;
  color: #172033 !important;
  font-size: 14px !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-shell,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-topbar,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-preview,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-upload {
  border-color: rgba(148, 163, 184, 0.22) !important;
  background: #111827 !important;
  color: #f8fafc !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-title,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-name,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-preview-title,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-crumb-active {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  background: #e2e8f0 !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-root-path,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-upload-target,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-preview-meta,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-meta,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-empty,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-upload-empty {
  color: #cbd5e1 !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-upload-target {
  color: #e2e8f0 !important;
  -webkit-text-fill-color: #e2e8f0 !important;
  background: #111827 !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  border-radius: 8px !important;
  padding: 4px 8px !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-breadcrumb,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-row,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-file-text,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-mkdir-input,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-rename-input,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-editor-textarea {
  border-color: rgba(148, 163, 184, 0.22) !important;
  background: #1f2937 !important;
  color: #f8fafc !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-row:hover,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-row:focus-within {
  background: #263244 !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-root-switcher,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-row-menu__body {
  background: #1f2937 !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-root-btn,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-crumb,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-row-menu__body button {
  color: #e2e8f0 !important;
}

@media (max-width: 1100px) {
  html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-topbar {
    grid-template-columns: 1fr !important;
  }

  html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-topbar-actions {
    justify-content: stretch !important;
    grid-template-columns: 1fr 1fr !important;
  }

  html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-upload {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-shell {
    min-height: auto !important;
    overflow: visible !important;
  }

  html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-topbar {
    padding: 10px !important;
  }

  html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-topbar-actions {
    grid-template-columns: 1fr !important;
  }

  html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-mkdir-form {
    grid-template-columns: 1fr auto !important;
  }

  html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-root-switcher {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }

  html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-upload {
    position: static !important;
    max-height: none !important;
    box-shadow: none !important;
    margin: 8px 10px 12px !important;
  }

  html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-row {
    align-items: center !important;
    min-height: 68px !important;
    padding: 12px 10px !important;
  }

  html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-name {
    font-size: 16px !important;
  }

  html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-meta {
    font-size: 13px !important;
  }

  html[data-shell-frame="foundation"] .mm-screen-exchange .mm-xfm-row-menu summary {
    width: 44px !important;
    height: 44px !important;
  }
}

html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-logo {
  display: none;
}

html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-brand-level,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-brand-title {
  max-width: 44vw;
}

html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-search {
  width: 44px;
  padding: 0;
}

html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-search .mm-header-nav__text {
  display: none !important;
}

html[data-shell-frame="foundation"][data-theme="dark"].is-real-device-compact body[data-mobile-shell="active"] .mm-shell-sidebar,
html[data-shell-frame="foundation"][data-theme="dark"].is-real-device-compact .mm-header-overflow__panel,
html[data-shell-frame="foundation"][data-theme="dark"].is-real-device-compact #mm-gate-root .mm-gate-menu {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(17, 25, 40, 0.98) !important;
  color: #f8fafc;
}

html[data-shell-frame="foundation"][data-theme="dark"].is-real-device-compact body[data-mobile-shell="active"] .mm-shell-sidebar {
  border-right-color: rgba(148, 163, 184, 0.22) !important;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.985), rgba(15, 23, 42, 0.975)) !important;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.44) !important;
}

html[data-shell-frame="foundation"][data-theme="dark"].is-real-device-compact .mm-shell-sidebar__brand,
html[data-shell-frame="foundation"][data-theme="dark"].is-real-device-compact .mm-shell-sidebar__section {
  background: rgba(30, 41, 59, 0.62) !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
}

html[data-shell-frame="foundation"][data-theme="dark"].is-real-device-compact .mm-shell-sidebar__brand-text strong,
html[data-shell-frame="foundation"][data-theme="dark"].is-real-device-compact .mm-shell-sidebar .mm-company-shell-navitem__content strong {
  color: #f8fafc !important;
}

html[data-shell-frame="foundation"][data-theme="dark"].is-real-device-compact .mm-shell-sidebar__brand-text span,
html[data-shell-frame="foundation"][data-theme="dark"].is-real-device-compact .mm-shell-sidebar .mm-company-shell-navitem__content span,
html[data-shell-frame="foundation"][data-theme="dark"].is-real-device-compact .mm-shell-sidebar .mm-company-shell-sidebar__label,
html[data-shell-frame="foundation"][data-theme="dark"].is-real-device-compact .mm-shell-sidebar .mm-company-shell-sidebar__group-title {
  color: #dbe5f3 !important;
}

html[data-shell-frame="foundation"][data-theme="dark"].is-real-device-compact .mm-shell-sidebar .mm-company-shell-navitem,
html[data-shell-frame="foundation"][data-theme="dark"].is-real-device-compact .mm-shell-sidebar .mm-company-shell-navitem--department {
  background: rgba(15, 23, 42, 0.34) !important;
  border-color: rgba(148, 163, 184, 0.14) !important;
}

html[data-shell-frame="foundation"][data-theme="dark"].is-real-device-compact .mm-shell-sidebar .mm-company-shell-navitem.is-active {
  background: rgba(37, 99, 235, 0.18) !important;
  border-color: rgba(96, 165, 250, 0.34) !important;
}

html[data-shell-frame="foundation"][data-theme="dark"].is-real-device-compact .mm-shell-sidebar__empty,
html[data-shell-frame="foundation"][data-theme="dark"].is-real-device-compact .mm-shell-sidebar .mm-company-shell-sidebar__empty {
  border-color: rgba(148, 163, 184, 0.22) !important;
  background: rgba(15, 23, 42, 0.84) !important;
  color: #dbe5f3 !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shoppro-mobile-section-nav {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shoppro-mobile-section-nav__list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 2px 4px;
  scrollbar-width: none;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shoppro-mobile-section-nav__list::-webkit-scrollbar {
  display: none;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shoppro-mobile-section-nav__item {
  min-height: 42px;
  white-space: nowrap;
}

/* Final launch readability guard after legacy mobile/Shop overrides. */
html[data-shell-frame="foundation"] .mm-brand-title,
html[data-shell-frame="foundation"] .mm-shell-breadcrumb__button,
html[data-shell-frame="foundation"] .mm-shell-breadcrumb__label {
  font-size: 16px !important;
  line-height: 1.25 !important;
}

/* Visual QA blocker follow-up: readable deep context, drawer identity and Shop Pro action rows. */
html[data-shell-frame="foundation"] #shell-breadcrumb {
  min-width: 0;
  max-width: min(62vw, 920px);
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb {
  max-width: 100%;
  overflow: visible !important;
  gap: 8px;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__node {
  flex: 0 1 auto;
  min-width: 0;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__button,
html[data-shell-frame="foundation"] .mm-shell-breadcrumb__label {
  max-width: clamp(140px, 18vw, 280px) !important;
  color: #1f2937 !important;
  font-weight: 850;
  letter-spacing: 0 !important;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__node.is-current .mm-shell-breadcrumb__label {
  max-width: clamp(180px, 24vw, 360px) !important;
  color: #0f172a !important;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__sep,
html[data-shell-frame="foundation"] .mm-shell-breadcrumb__ellipsis {
  color: #64748b !important;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__toggle {
  min-width: 0;
  width: min(100%, 360px);
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

html[data-shell-frame="foundation"] .mm-shell-breadcrumb__toggle-label {
  color: #0f172a !important;
  font-size: 15px !important;
  font-weight: 850 !important;
}

html[data-shell-frame="foundation"] .mm-stage1-mobile-drawer__head,
html[data-shell-frame="foundation"] .mm-company-shell-drawer__head {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  padding: 12px !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

html[data-shell-frame="foundation"] .mm-stage1-mobile-drawer__title,
html[data-shell-frame="foundation"] .mm-company-shell-drawer__title {
  color: #334155 !important;
  font-size: 12px !important;
  letter-spacing: 0.08em !important;
}

html[data-shell-frame="foundation"] .mm-stage1-mobile-drawer__context,
html[data-shell-frame="foundation"] .mm-company-shell-drawer__context {
  color: #0f172a !important;
  font-size: 17px !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
  overflow-wrap: anywhere;
}

html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-toolbar,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-master-data-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
}

html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-toolbar__filters,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-toolbar__actions,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-master-data-toolbar__left,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-master-data-toolbar__right {
  min-width: 0;
  flex-wrap: wrap;
}

html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-toolbar__search,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-toolbar__select {
  min-width: min(100%, 220px);
  max-width: 100%;
}

html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-toolbar__search input,
html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-toolbar__select select {
  width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
}

@media (max-width: 1100px) {
  html[data-shell-frame="foundation"] #shell-breadcrumb {
    max-width: min(48vw, 430px);
  }

  html[data-shell-frame="foundation"] .mm-shell-breadcrumb__button,
  html[data-shell-frame="foundation"] .mm-shell-breadcrumb__label {
    max-width: min(38vw, 240px) !important;
  }

  html[data-shell-frame="foundation"] .mm-shell-breadcrumb__toggle {
    width: min(100%, 300px);
  }

  html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-toolbar,
  html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-master-data-toolbar {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
  }

  html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-toolbar__filters,
  html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-toolbar__actions,
  html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-master-data-toolbar__left,
  html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-master-data-toolbar__right {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px;
  }

  html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-toolbar__search,
  html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-toolbar__select,
  html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-toolbar__metric,
  html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-toolbar__actions .mm-button {
    width: 100%;
    min-width: 0;
  }

  html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-toolbar__actions .mm-button {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  html[data-shell-frame="foundation"] #shell-breadcrumb {
    max-width: min(45vw, 176px);
  }

  html[data-shell-frame="foundation"] .mm-shell-breadcrumb__toggle {
    width: min(100%, 170px);
    padding-inline: 10px;
  }

  html[data-shell-frame="foundation"] .mm-shell-breadcrumb__toggle-label {
    font-size: 14px !important;
  }

  html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-toolbar__filters,
  html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-shoppro-toolbar__actions,
  html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-master-data-toolbar__left,
  html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-master-data-toolbar__right {
    grid-template-columns: 1fr;
  }

  html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-button,
  html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-button-secondary,
  html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-mini-action,
  html[data-shell-frame="foundation"] .mm-unit-workspace--shop .mm-mini-action-primary {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }
}

html[data-shell-frame="foundation"] .mm-header-nav__btn,
html[data-shell-frame="foundation"] .mm-shell-sidebar button,
html[data-shell-frame="foundation"] .mm-shell-sidebar__item,
html[data-shell-frame="foundation"] .mm-company-shell-sidebar button,
html[data-shell-frame="foundation"] .mm-company-admin-sidebar button {
  font-size: 15px !important;
  line-height: 1.3 !important;
}

html[data-shell-frame="foundation"] .mm-shoppro-section-shell__title p,
html[data-shell-frame="foundation"] .mm-shoppro-surface__head p,
html[data-shell-frame="foundation"] .mm-shoppro-record-card__head p,
html[data-shell-frame="foundation"] .mm-marketplace-card__description,
html[data-shell-frame="foundation"] .mm-office-tools-panel p,
html[data-shell-frame="foundation"] .mm-company-employees-panel__lead,
html[data-shell-frame="foundation"] .mm-muted {
  font-size: 15px !important;
  line-height: 1.5 !important;
}

@media (max-width: 1100px) {
  html[data-shell-frame="foundation"] .mm-header-nav__btn,
  html[data-shell-frame="foundation"] .mm-shell-sidebar button,
  html[data-shell-frame="foundation"] .mm-shell-sidebar__item,
  html[data-shell-frame="foundation"] .mm-company-shell-sidebar button,
  html[data-shell-frame="foundation"] .mm-company-admin-sidebar button,
  html[data-shell-frame="foundation"] .mm-shoppro-section-shell__title p,
  html[data-shell-frame="foundation"] .mm-shoppro-surface__head p,
  html[data-shell-frame="foundation"] .mm-shoppro-record-card__head p,
  html[data-shell-frame="foundation"] .mm-marketplace-card__description,
  html[data-shell-frame="foundation"] .mm-office-tools-panel p,
  html[data-shell-frame="foundation"] .mm-company-employees-panel__lead,
  html[data-shell-frame="foundation"] .mm-muted,
  html[data-shell-frame="foundation"] label span,
  html[data-shell-frame="foundation"] input,
  html[data-shell-frame="foundation"] select,
  html[data-shell-frame="foundation"] textarea {
    font-size: 16px !important;
  }
}

/* Superadmin usability pass: readable entity lists, explicit archive mode and larger mobile controls. */
html[data-shell-frame="foundation"] .mm-entry-card__title,
html[data-shell-frame="foundation"] .mm-company-canon-group__head strong,
html[data-shell-frame="foundation"] .mm-settings-scope-card strong,
html[data-shell-frame="foundation"] .mm-entity-manage-panel__headline strong,
html[data-shell-frame="foundation"] .mm-entity-manage-panel__section-head strong {
  font-size: max(15px, 1em) !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
}

html[data-shell-frame="foundation"] .mm-entry-card__meta,
html[data-shell-frame="foundation"] .mm-company-canon-group__head span,
html[data-shell-frame="foundation"] .mm-settings-scope-card span,
html[data-shell-frame="foundation"] .mm-entity-manage-panel__headline span,
html[data-shell-frame="foundation"] .mm-entity-manage-panel__section-head span,
html[data-shell-frame="foundation"] .mm-entity-manage-panel__form label {
  font-size: 14px !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
}

html[data-shell-frame="foundation"] .mm-archive-mode-toggle.is-active {
  border-color: rgba(37, 99, 235, 0.34) !important;
  background: rgba(37, 99, 235, 0.10) !important;
  color: #1d4ed8 !important;
}

html[data-shell-frame="foundation"] .mm-button-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(190, 18, 60, 0.24);
  border-radius: 12px;
  background: #be123c;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}

html[data-shell-frame="foundation"] .mm-button-danger:hover {
  background: #9f1239;
}

html[data-shell-frame="foundation"] .mm-entity-manage-toggle {
  width: auto !important;
  min-width: 44px !important;
  min-height: 40px !important;
  height: 40px !important;
  gap: 8px;
  padding: 0 12px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 850;
}

html[data-shell-frame="foundation"] .mm-entity-manage-toggle.is-compact {
  min-width: 44px !important;
  height: 40px !important;
}

html[data-shell-frame="foundation"] .mm-entity-manage-toggle__dots {
  gap: 2px;
}

html[data-shell-frame="foundation"] .mm-entity-manage-toggle__dots i {
  width: 3px;
  height: 3px;
}

html[data-shell-frame="foundation"] .mm-entity-manage-toggle__text {
  display: inline;
  white-space: nowrap;
}

html[data-shell-frame="foundation"] .mm-entity-manage-panel {
  gap: 12px !important;
  margin-top: 12px !important;
  padding: 14px !important;
  border-radius: 14px !important;
}

html[data-shell-frame="foundation"] .mm-entity-manage-panel__grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important;
  gap: 10px !important;
  align-items: start;
}

html[data-shell-frame="foundation"] .mm-entity-manage-panel__section {
  gap: 10px !important;
  padding: 12px !important;
  border-radius: 12px !important;
}

html[data-shell-frame="foundation"] .mm-entity-manage-panel__section:first-child,
html[data-shell-frame="foundation"] .mm-entity-manage-panel__section--danger {
  grid-column: auto !important;
}

html[data-shell-frame="foundation"] .mm-entity-manage-panel__actions .mm-button,
html[data-shell-frame="foundation"] .mm-entity-manage-panel__actions .mm-button-secondary,
html[data-shell-frame="foundation"] .mm-entity-manage-panel__actions .mm-button-danger {
  min-height: 42px !important;
  font-size: 14px !important;
  justify-content: center;
}

@media (max-width: 767px) {
  html[data-shell-frame="foundation"] {
    --mm-hibrid-top: 64px;
    --mm-frame-header-height: 64px;
  }

  html[data-shell-frame="foundation"] .mm-header,
  html[data-shell-frame="foundation"] body[data-ui-ready="true"] .mm-header {
    min-height: 64px !important;
    height: 64px !important;
    padding-inline: 10px !important;
    gap: 8px !important;
  }

  html[data-shell-frame="foundation"] .mm-header-tools,
  html[data-shell-frame="foundation"] .mm-header-nav {
    gap: 6px !important;
  }

  html[data-shell-frame="foundation"] .mm-header-menu,
  html[data-shell-frame="foundation"] .mm-header-nav__btn,
  html[data-shell-frame="foundation"] .mm-header-nav__btn:not(.has-text),
  html[data-shell-frame="foundation"] .mm-header-nav__btn.has-text,
  html[data-shell-frame="foundation"] .mm-header-nav__btn--overflow,
  html[data-shell-frame="foundation"] #mm-gate-root .mm-gate-button {
    min-width: 44px !important;
    width: 44px !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: 12px !important;
    font-size: 15px !important;
  }

  html[data-shell-frame="foundation"] .mm-header-nav__btn .mm-header-nav__text,
  html[data-shell-frame="foundation"] .mm-header-nav > .mm-header-nav__btn.has-text:not(.mm-header-search) .mm-header-nav__text {
    display: none !important;
  }

  html[data-shell-frame="foundation"] .mm-brand-title {
    max-width: 34vw !important;
    font-size: 15px !important;
  }

  html[data-shell-frame="foundation"] .mm-brand-level {
    max-width: 34vw !important;
    font-size: 13px !important;
  }

  html[data-shell-frame="foundation"] .mm-entity-manage-toggle {
    min-width: 44px !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 10px !important;
  }

  html[data-shell-frame="foundation"] .mm-entity-manage-toggle__text {
    display: none;
  }

  html[data-shell-frame="foundation"] .mm-entity-manage-panel__actions {
    display: grid !important;
    grid-template-columns: 1fr;
  }
}

/* Developer Frontend 0.1: unified mobile/Fold header actions and in-app language panel. */
html[data-shell-frame="foundation"] #mm-gate-root [data-menu-kind="language"] {
  display: none !important;
}

html[data-shell-frame="foundation"] .mm-header-tools,
html[data-shell-frame="foundation"] .mm-header-nav {
  min-width: 0;
}

html[data-shell-frame="foundation"] .mm-header-nav {
  align-items: center;
}

html[data-shell-frame="foundation"] .mm-header-language-trigger .mm-header-nav__icon {
  min-width: 22px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
}

html[data-shell-frame="foundation"] .mm-header-language-panel {
  position: fixed;
  top: calc(var(--mm-frame-header-height, 64px) + 10px);
  right: max(14px, env(safe-area-inset-right, 0px));
  z-index: 660;
  width: min(360px, calc(100vw - 28px));
  max-height: min(460px, calc(100dvh - var(--mm-frame-header-height, 64px) - 24px));
  display: grid;
  gap: 8px;
  padding: 10px;
  overflow: auto;
  border: 1px solid rgba(21, 32, 51, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 48px rgba(16, 24, 40, 0.16);
  color: #152033;
  backdrop-filter: blur(18px) saturate(1.06);
  -webkit-backdrop-filter: blur(18px) saturate(1.06);
}

html[data-shell-frame="foundation"] .mm-header-language-panel__title {
  padding: 4px 6px 2px;
  color: #667184;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-shell-frame="foundation"] .mm-header-language-panel__list {
  display: grid;
  gap: 6px;
}

html[data-shell-frame="foundation"] .mm-header-language-option {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #152033;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

html[data-shell-frame="foundation"] .mm-header-language-option[dir="rtl"] {
  text-align: right;
}

html[data-shell-frame="foundation"] .mm-header-language-option:hover,
html[data-shell-frame="foundation"] .mm-header-language-option:focus-visible {
  border-color: rgba(37, 99, 235, 0.16);
  background: rgba(37, 99, 235, 0.07);
  outline: none;
}

html[data-shell-frame="foundation"] .mm-header-language-option.is-selected {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(37, 99, 235, 0.10);
}

html[data-shell-frame="foundation"] .mm-header-language-option__code {
  min-width: 0;
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.06);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

html[data-shell-frame="foundation"] .mm-header-language-option__name {
  min-width: 0;
  display: grid;
  gap: 2px;
}

html[data-shell-frame="foundation"] .mm-header-language-option__name strong,
html[data-shell-frame="foundation"] .mm-header-language-option__name small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0;
}

html[data-shell-frame="foundation"] .mm-header-language-option__name strong {
  font-size: 14px;
  font-weight: 850;
}

html[data-shell-frame="foundation"] .mm-header-language-option__name small {
  color: #667184;
  font-size: 12px;
  font-weight: 750;
}

html[data-shell-frame="foundation"] .mm-header-language-option__check {
  min-width: 0;
  color: #1d4ed8;
  font-size: 15px;
  font-weight: 950;
  text-align: center;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header,
html[data-shell-frame="foundation"].is-real-device-compact body[data-ui-ready="true"] .mm-header,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] body[data-ui-ready="true"] .mm-header {
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: visible;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-context,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-context {
  display: none !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-tools,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-nav,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-nav {
  gap: 6px !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-menu,
html[data-shell-frame="foundation"].is-real-device-compact .mm-header-nav__btn,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-menu,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-nav__btn {
  flex: 0 0 44px;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  overflow: hidden;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-nav__btn.has-text .mm-header-nav__text,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-nav__btn.has-text .mm-header-nav__text {
  display: none !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-brand-meta,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-brand-meta {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-brand-level,
html[data-shell-frame="foundation"].is-real-device-compact .mm-brand-title,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-brand-level,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-brand-title {
  max-width: 100% !important;
  letter-spacing: 0 !important;
}

@media (max-width: 380px) {
  html[data-shell-frame="foundation"] .mm-logo {
    display: none !important;
  }

  html[data-shell-frame="foundation"] .mm-header-brand {
    gap: 8px !important;
  }

  html[data-shell-frame="foundation"] .mm-brand-level {
    display: none !important;
  }

  html[data-shell-frame="foundation"] .mm-brand-title {
    font-size: 14px !important;
  }
}

@media (max-width: 640px) {
  html[data-shell-frame="foundation"] .mm-header-language-panel {
    left: max(10px, env(safe-area-inset-left, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    width: auto;
    max-height: min(62dvh, calc(100dvh - var(--mm-frame-header-height, 64px) - 20px));
    border-radius: 16px;
  }

  html[data-shell-frame="foundation"] .mm-header-language-option {
    min-height: 50px;
  }
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-language-panel {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(17, 25, 40, 0.98);
  color: #f8fafc;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-language-panel__title,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-language-option__name small {
  color: #a6b2c3;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-language-option {
  color: #f8fafc;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-language-option__code {
  background: rgba(148, 163, 184, 0.12);
  color: #93c5fd;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-language-option.is-selected {
  border-color: rgba(147, 197, 253, 0.34);
  background: rgba(59, 130, 246, 0.16);
}

/* Developer Frontend 0.1: closed mobile sidebar backdrop must never sit above header controls. */
html[data-shell-frame="foundation"] body[data-mobile-shell="active"]:not([data-sidebar="expanded"]) #mm-shell-sidebar-backdrop,
html[data-shell-frame="foundation"] body[data-mobile-shell="active"][data-mobile-overlay="closed"] #mm-shell-sidebar-backdrop[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html[data-shell-frame="foundation"] body[data-mobile-shell="active"][data-sidebar="expanded"] #mm-shell-sidebar-backdrop:not([hidden]) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

@media (min-width: 901px) {
  html[data-shell-frame="foundation"] .mm-header-menu,
  html[data-shell-frame="foundation"] .mm-header-nav__btn,
  html[data-shell-frame="foundation"] .mm-gate-account-button {
    min-height: 36px !important;
    height: 36px !important;
  }

  html[data-shell-frame="foundation"] .mm-header-menu,
  html[data-shell-frame="foundation"] .mm-header-nav__btn.is-icon-only {
    min-width: 36px !important;
    width: 36px !important;
  }
}

/* Developer Frontend 0.1: mobile/Fold install sheet must stay in viewport while keyboard opens. */
html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form input,
html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form select,
html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form textarea {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  box-sizing: border-box !important;
  font-size: 16px !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form,
html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form label,
html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form .mm-card-actions {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet-head {
  position: sticky;
  top: -18px;
  z-index: 5;
  padding-top: 2px;
  padding-bottom: 10px;
  background: inherit;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet.mm-marketplace-sheet--inline {
  width: 100% !important;
  max-width: 100% !important;
  justify-self: stretch !important;
  top: calc(var(--mm-hibrid-top, 56px) + 12px) !important;
  max-height: min(760px, calc(100dvh - var(--mm-hibrid-top, 56px) - 28px)) !important;
  overflow: hidden auto !important;
  overscroll-behavior: contain !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-canon-layout.has-detail {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px) !important;
}

@media (min-width: 761px) and (max-width: 1100px) {
  html[data-shell-frame="foundation"] .mm-marketplace-sheet.mm-marketplace-sheet--inline {
    position: fixed !important;
    top: max(72px, calc(env(safe-area-inset-top, 0px) + 12px)) !important;
    right: max(16px, env(safe-area-inset-right, 0px)) !important;
    bottom: max(16px, env(safe-area-inset-bottom, 0px)) !important;
    left: max(16px, env(safe-area-inset-left, 0px)) !important;
    z-index: 580 !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
  }
}

@media (max-width: 760px) {
  html[data-shell-frame="foundation"] .mm-marketplace-canon-layout.has-detail {
    grid-template-columns: 1fr !important;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-canon-layout.has-detail .mm-marketplace-card-grid {
    padding-bottom: 72px;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-sheet.mm-marketplace-sheet--inline {
    position: fixed !important;
    top: auto !important;
    right: max(8px, env(safe-area-inset-right, 0px)) !important;
    bottom: max(8px, env(safe-area-inset-bottom, 0px)) !important;
    left: max(8px, env(safe-area-inset-left, 0px)) !important;
    z-index: 580 !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(88dvh, calc(100dvh - 76px)) !important;
    padding: 10px !important;
    overflow: hidden auto !important;
    overscroll-behavior: contain !important;
    border-radius: 18px !important;
    -webkit-overflow-scrolling: touch;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-sheet.mm-marketplace-sheet--inline .mm-marketplace-sheet-head {
    top: -10px;
    margin: -2px -2px 0;
    padding: 2px 2px 8px;
    grid-template-columns: 40px minmax(0, 1fr);
  }

  html[data-shell-frame="foundation"] .mm-marketplace-sheet.mm-marketplace-sheet--inline .mm-marketplace-sheet-head > .mm-mini-action {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-sheet.mm-marketplace-sheet--inline .mm-marketplace-sheet-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-sheet.mm-marketplace-sheet--inline .mm-marketplace-sheet-meta h3 {
    font-size: 19px !important;
    line-height: 1.15 !important;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-sheet.mm-marketplace-sheet--inline .mm-marketplace-sheet-meta p,
  html[data-shell-frame="foundation"] .mm-marketplace-sheet.mm-marketplace-sheet--inline .mm-chip,
  html[data-shell-frame="foundation"] .mm-marketplace-sheet.mm-marketplace-sheet--inline .mm-muted {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-sheet .tenant-form.mm-install-module-form,
  html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form {
    padding: 10px !important;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form .mm-card-actions {
    position: sticky !important;
    bottom: -10px !important;
    z-index: 6 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin: 0 -10px -10px !important;
    padding: 10px !important;
    border-top: 1px solid rgba(15, 23, 42, 0.1) !important;
    background: rgba(255, 255, 255, 0.98) !important;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form .mm-card-actions .mm-button,
  html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form .mm-card-actions .mm-button-secondary {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 44px !important;
    justify-content: center !important;
  }
}

@media (max-width: 380px) {
  html[data-shell-frame="foundation"] .mm-marketplace-card-grid {
    grid-template-columns: 1fr !important;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-card {
    grid-template-columns: 44px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-card__icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
  }
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-sheet .mm-install-module-form .mm-card-actions {
  border-color: rgba(148, 163, 184, 0.22) !important;
  background: rgba(17, 25, 40, 0.98) !important;
}

/* Developer Frontend 0.1 return 2: owner-facing mobile/Fold polish. */
html[data-shell-frame="foundation"] {
  --mm-mobile-control-size: 44px;
  --mm-action-panel-bg: #ffffff;
  --mm-action-panel-line: rgba(15, 23, 42, 0.12);
  --mm-action-panel-text: #0f172a;
  --mm-action-panel-muted: #64748b;
}

html[data-shell-frame="foundation"][data-ui-language="zh"],
html[data-shell-frame="foundation"] .mm-header-language-option[lang="zh"],
html[data-shell-frame="foundation"] .mm-header-language-option[lang="zh"] * {
  font-family: "Plus Jakarta Sans", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Arial Unicode MS", sans-serif;
}

html[data-shell-frame="foundation"] .mm-header-menu,
html[data-shell-frame="foundation"] .mm-header-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #1f2937 !important;
  font-weight: 850;
  letter-spacing: 0;
}

html[data-shell-frame="foundation"] .mm-header-nav__icon {
  min-width: 18px;
  display: inline-grid;
  place-items: center;
  color: currentColor;
  font-size: 13px !important;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

html[data-shell-frame="foundation"] .mm-header-nav__btn:hover,
html[data-shell-frame="foundation"] .mm-header-nav__btn:focus-visible,
html[data-shell-frame="foundation"] .mm-header-menu:hover,
html[data-shell-frame="foundation"] .mm-header-menu:focus-visible,
html[data-shell-frame="foundation"] .mm-header-nav__btn.is-active,
html[data-shell-frame="foundation"] .mm-header-nav__btn[aria-expanded="true"] {
  border-color: rgba(37, 99, 235, 0.34) !important;
  background: rgba(37, 99, 235, 0.09) !important;
  color: #1749b8 !important;
  outline: none;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header,
html[data-shell-frame="foundation"].is-real-device-compact body:has(.mm-current-company-shell) .mm-header,
html[data-shell-frame="foundation"].is-real-device-compact body:has(.mm-company-shell) .mm-header,
html[data-shell-frame="foundation"].is-real-device-compact body:has(.mm-company-admin-shell) .mm-header,
html[data-shell-frame="foundation"].is-real-device-compact body[data-runtime-level="division"]:not(:has(.mm-current-company-shell)) .mm-header,
html[data-shell-frame="foundation"].is-real-device-compact body[data-ui-ready="true"] .mm-header {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  padding-inline: max(10px, env(safe-area-inset-left, 0px)) max(10px, env(safe-area-inset-right, 0px)) !important;
}

@media (max-width: 360px) {
  html[data-shell-frame="foundation"] {
    --mm-mobile-control-size: 40px;
  }

  html[data-shell-frame="foundation"].is-real-device-compact .mm-header-tools,
  html[data-shell-frame="foundation"].is-real-device-compact .mm-header-nav {
    gap: 5px !important;
  }

  html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-breadcrumb__toggle {
    max-width: min(66vw, 236px) !important;
    min-width: 126px !important;
    padding: 0 9px !important;
  }

  html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-breadcrumb__toggle-label {
    font-size: 14px !important;
  }

  html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-breadcrumb__toggle-meta {
    font-size: 10px !important;
  }
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-brand {
  min-width: 0;
  gap: 8px !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-tools,
html[data-shell-frame="foundation"].is-real-device-compact .mm-header-nav {
  min-width: 0;
  gap: 6px !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-menu,
html[data-shell-frame="foundation"].is-real-device-compact .mm-header-nav__btn,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-menu,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-nav__btn {
  flex: 0 0 var(--mm-mobile-control-size) !important;
  width: var(--mm-mobile-control-size) !important;
  min-width: var(--mm-mobile-control-size) !important;
  max-width: var(--mm-mobile-control-size) !important;
  height: var(--mm-mobile-control-size) !important;
  min-height: var(--mm-mobile-control-size) !important;
  padding: 0 !important;
  border-radius: 12px !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-nav__btn.has-text .mm-header-nav__text,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-nav__btn.has-text .mm-header-nav__text {
  display: none !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-brand-title,
html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-breadcrumb__toggle-label {
  color: #0f172a !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-breadcrumb__toggle {
  display: inline-grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: auto !important;
  max-width: min(62vw, 228px) !important;
  min-width: 118px !important;
  min-height: var(--mm-mobile-control-size) !important;
  height: var(--mm-mobile-control-size) !important;
  padding: 0 10px !important;
  border-radius: 12px !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-breadcrumb__toggle-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
  justify-items: start;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-breadcrumb__toggle-label {
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-breadcrumb__toggle-meta {
  max-width: 100%;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-breadcrumb__toggle-icon {
  align-self: center;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-brand-level {
  display: none !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-overflow {
  position: static !important;
}

html[data-shell-frame="foundation"] .mm-header-action-sheet {
  border: 1px solid var(--mm-action-panel-line) !important;
  border-radius: 18px !important;
  background: var(--mm-action-panel-bg) !important;
  color: var(--mm-action-panel-text) !important;
  box-shadow: 0 26px 56px rgba(15, 23, 42, 0.18) !important;
  backdrop-filter: blur(18px) saturate(1.06);
  -webkit-backdrop-filter: blur(18px) saturate(1.06);
}

html[data-shell-frame="foundation"] .mm-header-action-sheet__title {
  padding: 4px 6px 2px;
  color: var(--mm-action-panel-muted);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-shell-frame="foundation"] .mm-header-action-sheet__list {
  display: grid;
  gap: 7px;
}

html[data-shell-frame="foundation"] .mm-header-action-sheet__item {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

html[data-shell-frame="foundation"] .mm-header-action-sheet__item:hover,
html[data-shell-frame="foundation"] .mm-header-action-sheet__item:focus-visible {
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.08);
  outline: none;
}

html[data-shell-frame="foundation"] .mm-header-action-sheet__icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.10);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

html[data-shell-frame="foundation"] .mm-header-action-sheet__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

html[data-shell-frame="foundation"] .mm-header-action-sheet__copy strong,
html[data-shell-frame="foundation"] .mm-header-action-sheet__copy small {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  letter-spacing: 0;
}

html[data-shell-frame="foundation"] .mm-header-action-sheet__copy strong {
  color: var(--mm-action-panel-text);
  font-size: 15px;
  font-weight: 900;
}

html[data-shell-frame="foundation"] .mm-header-action-sheet__copy small {
  color: var(--mm-action-panel-muted);
  font-size: 12px;
  font-weight: 750;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-overflow__panel:not(.hidden),
html[data-shell-frame="foundation"] .mm-header-overflow__panel:not(.hidden) {
  left: max(12px, env(safe-area-inset-left, 0px)) !important;
  right: max(12px, env(safe-area-inset-right, 0px)) !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  max-height: min(68dvh, 560px) !important;
  padding: 10px !important;
  overflow: auto !important;
}

html[data-shell-frame="foundation"] .mm-header-language-panel {
  gap: 9px !important;
  border-color: var(--mm-action-panel-line) !important;
  border-radius: 18px !important;
  background: var(--mm-action-panel-bg) !important;
  color: var(--mm-action-panel-text) !important;
}

html[data-shell-frame="foundation"] .mm-header-language-panel__note {
  margin: 0 6px 2px;
  padding: 9px 10px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.06);
  color: #40516b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

html[data-shell-frame="foundation"] .mm-header-language-option {
  min-height: 54px !important;
}

html[data-shell-frame="foundation"] .mm-header-language-option__name strong,
html[data-shell-frame="foundation"] .mm-header-language-option__name small {
  white-space: normal !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] {
  --mm-action-panel-bg: #0d1422;
  --mm-action-panel-line: rgba(148, 163, 184, 0.24);
  --mm-action-panel-text: #f8fafc;
  --mm-action-panel-muted: #aab7cb;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-header,
html[data-shell-frame="foundation"][data-theme="dark"] body[data-ui-ready="true"] .mm-header,
html[data-shell-frame="foundation"][data-theme="dark"].is-real-device-compact .mm-header {
  border-bottom-color: rgba(148, 163, 184, 0.20) !important;
  background: rgba(11, 18, 32, 0.94) !important;
  color: #f8fafc !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-menu,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-nav__btn,
html[data-shell-frame="foundation"][data-theme="dark"] #mm-gate-root .mm-gate-button,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-breadcrumb__toggle {
  border-color: rgba(148, 163, 184, 0.24) !important;
  background: rgba(17, 25, 40, 0.94) !important;
  color: #f8fafc !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-nav__btn:hover,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-nav__btn:focus-visible,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-menu:hover,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-menu:focus-visible,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-nav__btn.is-active,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-nav__btn[aria-expanded="true"] {
  border-color: rgba(147, 197, 253, 0.38) !important;
  background: rgba(59, 130, 246, 0.18) !important;
  color: #bfdbfe !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-brand-title,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-breadcrumb__toggle-label,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-breadcrumb__node.is-current .mm-shell-breadcrumb__label {
  color: #f8fafc !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-breadcrumb__toggle-meta,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-brand-level {
  color: #aab7cb !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-action-sheet,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-language-panel,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-shell-breadcrumb__panel,
html[data-shell-frame="foundation"][data-theme="dark"] #mm-gate-root .mm-gate-menu {
  border-color: var(--mm-action-panel-line) !important;
  background: var(--mm-action-panel-bg) !important;
  color: var(--mm-action-panel-text) !important;
}

/* Architect 2026-05-02: final compact mobile/Fold header normalization. */
html[data-shell-frame="foundation"].is-real-device-compact .mm-header,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header {
  min-height: auto !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "brand tools"
    "context context" !important;
  align-items: start !important;
  row-gap: 8px !important;
  column-gap: 8px !important;
  padding-top: calc(8px + env(safe-area-inset-top)) !important;
  padding-bottom: 8px !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-brand,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-brand {
  grid-area: brand;
  align-items: flex-start !important;
  gap: 8px !important;
  min-width: 0 !important;
  overflow: visible !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-context,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-context {
  grid-area: context;
  display: block !important;
  min-width: 0 !important;
}

html[data-shell-frame="foundation"] .mm-header-context[hidden],
html[data-shell-frame="foundation"] #shell-context-label[hidden] {
  display: none !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-tools,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-tools {
  grid-area: tools;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  min-width: 0 !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-nav,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-nav {
  gap: 6px !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-brand-meta,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-brand-meta {
  min-width: 0 !important;
  display: grid !important;
  gap: 2px !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-brand-level,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-brand-level {
  display: none !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-brand-title,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-brand-title {
  max-width: none !important;
  width: 100% !important;
  font-size: 14px !important;
  line-height: 1.18 !important;
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-breadcrumb,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-shell-breadcrumb {
  width: 100% !important;
  min-width: 0 !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-breadcrumb__toggle,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-shell-breadcrumb__toggle {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 38px !important;
  height: auto !important;
  padding: 7px 10px !important;
  align-items: start !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-breadcrumb__toggle-copy,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-shell-breadcrumb__toggle-copy {
  min-width: 0 !important;
  gap: 2px !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-breadcrumb__toggle-label,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-shell-breadcrumb__toggle-label {
  width: 100% !important;
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  line-height: 1.15 !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-breadcrumb__toggle-meta,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-shell-breadcrumb__toggle-meta {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html[data-shell-frame="foundation"].is-real-device-compact #shell-context-label,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] #shell-context-label {
  width: 100% !important;
  max-width: none !important;
  min-height: 36px !important;
  padding: 0 10px !important;
  font-size: 11px !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-menu,
html[data-shell-frame="foundation"].is-real-device-compact .mm-header-nav__btn,
html[data-shell-frame="foundation"].is-real-device-compact #mm-gate-root .mm-gate-button,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-menu,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-nav__btn,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] #mm-gate-root .mm-gate-button {
  min-width: 44px !important;
  width: 44px !important;
  min-height: 44px !important;
  height: 44px !important;
  border-radius: 11px !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-nav__icon,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-nav__icon {
  font-size: 12px !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-action-sheet__copy strong,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-language-option,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-language-option__name strong {
  color: #f8fafc !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-action-sheet__icon,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-language-option__code {
  background: rgba(147, 197, 253, 0.14) !important;
  color: #bfdbfe !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-header-language-panel__note {
  border-color: rgba(147, 197, 253, 0.20);
  background: rgba(59, 130, 246, 0.14);
  color: #cbd5e1;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet.mm-marketplace-sheet--inline {
  display: grid !important;
  gap: 12px !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  border-radius: 20px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.98)) !important;
  box-shadow: 0 26px 62px rgba(15, 23, 42, 0.18) !important;
  color: #0f172a !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet-head {
  align-items: start !important;
  gap: 12px !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet-head > .mm-mini-action {
  min-height: 40px !important;
  padding-inline: 12px !important;
  border-radius: 12px !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet-meta h3 {
  color: #0f172a !important;
  letter-spacing: 0 !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet-meta p {
  color: #526174 !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet .tenant-form.mm-install-module-form,
html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form {
  display: grid !important;
  gap: 12px !important;
  padding: 14px !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.88) !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form .marketplace-title {
  color: #0f172a !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form label {
  display: grid !important;
  gap: 6px !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form label span {
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form input,
html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form select {
  border-color: rgba(15, 23, 42, 0.14) !important;
  border-radius: 13px !important;
  background: #ffffff !important;
  color: #0f172a !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-install-target {
  border-color: rgba(37, 99, 235, 0.14) !important;
  border-radius: 16px !important;
  background: rgba(37, 99, 235, 0.055) !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-install-target__summary {
  border-color: rgba(37, 99, 235, 0.22) !important;
  background: rgba(255, 255, 255, 0.94) !important;
}

html[data-shell-frame="foundation"] .mm-marketplace-install-target__summary strong {
  color: #0f172a !important;
}

@media (max-width: 760px) {
  html[data-shell-frame="foundation"] .mm-marketplace-sheet.mm-marketplace-sheet--inline {
    gap: 10px !important;
    padding: 12px !important;
    border-radius: 20px 20px 18px 18px !important;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-sheet.mm-marketplace-sheet--inline .mm-marketplace-sheet-head {
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    margin: -2px -2px 0 !important;
    padding: 2px 2px 10px !important;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-sheet.mm-marketplace-sheet--inline .mm-marketplace-sheet-head > .mm-mini-action {
    grid-column: auto !important;
    width: auto !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 0 10px !important;
    align-self: start !important;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-sheet .tenant-form.mm-install-module-form,
  html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form {
    padding: 12px !important;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-sheet .mm-install-module-form .mm-card-actions {
    margin: 0 -12px -12px !important;
    padding: 12px !important;
  }
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-sheet.mm-marketplace-sheet--inline {
  border-color: rgba(148, 163, 184, 0.24) !important;
  background: rgba(13, 20, 34, 0.98) !important;
  color: #f8fafc !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-sheet-head {
  border-bottom-color: rgba(148, 163, 184, 0.18) !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-sheet-meta h3,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-sheet .mm-install-module-form .marketplace-title {
  color: #f8fafc !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-sheet-meta p,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-sheet .mm-install-module-form label span {
  color: #cbd5e1 !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-sheet-head > .mm-mini-action {
  border-color: rgba(148, 163, 184, 0.24) !important;
  background: rgba(17, 25, 40, 0.94) !important;
  color: #f8fafc !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-sheet .tenant-form.mm-install-module-form,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-sheet .mm-install-module-form,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-install-target {
  border-color: rgba(148, 163, 184, 0.22) !important;
  background: rgba(17, 25, 40, 0.94) !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-install-target__summary {
  border-color: rgba(148, 163, 184, 0.28) !important;
  background: rgba(11, 18, 32, 0.9) !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-install-target__summary strong {
  color: #f8fafc !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-sheet .mm-install-module-form input,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-marketplace-sheet .mm-install-module-form select {
  border-color: rgba(148, 163, 184, 0.24) !important;
  background: rgba(11, 18, 32, 0.96) !important;
  color: #f8fafc !important;
}

/* Conveyor hotfix 2026-05-05: mobile drawer/header clickability and compact readability. */
html[data-shell-frame="foundation"] #shell-context-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

html[data-shell-frame="foundation"] .mm-header-context-copy {
  min-width: 0;
  color: #4b5a70;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-shell-frame="foundation"] body[data-mobile-shell="active"] #mm-shell-sidebar-backdrop {
  top: var(--mm-frame-header-height, 64px) !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
}

html[data-shell-frame="foundation"].is-real-device-compact body[data-mobile-shell="active"] .mm-shell::before {
  inset: var(--mm-frame-header-height, 64px) 0 0 0 !important;
}

html[data-shell-frame="foundation"].is-real-device-compact body[data-mobile-shell="active"] .mm-shell-sidebar-backdrop {
  inset: var(--mm-frame-header-height, 64px) 0 0 0 !important;
  z-index: 575 !important;
}

html[data-shell-frame="foundation"].is-real-device-compact body[data-ui-ready="true"] .mm-header,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] body[data-ui-ready="true"] .mm-header {
  z-index: 620 !important;
}

html[data-shell-frame="foundation"].is-real-device-compact #shell-context-label,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] #shell-context-label {
  display: none !important;
}

html[data-shell-frame="foundation"].is-real-device-compact #shell-context-label .mm-header-context-copy,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] #shell-context-label .mm-header-context-copy {
  font-size: 13px !important;
  color: #52637a !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-search,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-search {
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 112px !important;
  max-width: min(44vw, 188px) !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-search .mm-header-nav__text,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-search .mm-header-nav__text {
  display: inline !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-search .mm-header-nav__icon,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-search .mm-header-nav__icon {
  font-size: 14px !important;
}

html[data-shell-frame="foundation"].is-real-device-compact body[data-mobile-shell="active"][data-sidebar="expanded"] .mm-shell-sidebar {
  background: #f8fbff !important;
  border-right: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.20) !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-sidebar .mm-company-shell-navitem,
html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-sidebar .mm-company-shell-navitem--department {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-sidebar .mm-company-shell-navitem__content strong {
  color: #1f2937 !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-sidebar .mm-company-shell-navitem__content span {
  color: #5f6f85 !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-sidebar .mm-company-shell-navitem.is-active {
  background: rgba(37, 99, 235, 0.11) !important;
  border-color: rgba(37, 99, 235, 0.26) !important;
}

@media (max-width: 1100px) {
  html[data-shell-frame="foundation"] .mm-entry-card__aside {
    min-width: 0;
    gap: 8px;
    flex-wrap: wrap;
  }

  html[data-shell-frame="foundation"] .mm-entry-card__open-button {
    min-height: 36px;
    padding: 8px 12px;
    white-space: nowrap;
  }

  html[data-shell-frame="foundation"] .mm-entity-manage-toggle.is-compact {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    justify-content: center;
  }

  html[data-shell-frame="foundation"] .mm-entity-manage-toggle.is-compact .mm-entity-manage-toggle__text {
    display: none !important;
  }
}

html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-owner-shell-card,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-panel-head,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-sheet,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-office-tools-panel {
  padding: 14px !important;
  border-radius: 14px !important;
}

html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-owner-shell-head h2,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-panel-head h2,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-office-tools-shell__title-wrap h2 {
  font-size: 21px !important;
  line-height: 1.2 !important;
}

html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-owner-shell p,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-root p,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-current-company-shell p,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-owner-shell .mm-muted,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-root .mm-muted,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-current-company-shell .mm-muted {
  font-size: 14px !important;
  line-height: 1.45 !important;
}

html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-button,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-button-secondary,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-mini-action,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-mini-action-primary,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-platform-primary-action,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-platform-secondary-action,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-chip {
  min-height: 42px !important;
  font-size: 14px !important;
}

html[data-shell-frame="foundation"][data-theme="dark"][data-real-device-shell="mobile"] .mm-shell-sidebar {
  background: #0f172a !important;
  border-right-color: rgba(148, 163, 184, 0.30) !important;
}

html[data-shell-frame="foundation"][data-theme="dark"][data-real-device-shell="mobile"] .mm-shell-sidebar .mm-company-shell-navitem,
html[data-shell-frame="foundation"][data-theme="dark"][data-real-device-shell="mobile"] .mm-shell-sidebar .mm-company-shell-navitem--department {
  background: rgba(17, 25, 40, 0.96) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
}

html[data-shell-frame="foundation"][data-theme="dark"][data-real-device-shell="mobile"] .mm-shell-sidebar .mm-company-shell-navitem__content strong {
  color: #f8fafc !important;
}

html[data-shell-frame="foundation"][data-theme="dark"][data-real-device-shell="mobile"] .mm-shell-sidebar .mm-company-shell-navitem__content span {
  color: #cbd5e1 !important;
}

/* Conveyor 2026-05-05: deterministic mobile sidebar layering + moderate compact density. */
html[data-shell-frame="foundation"] body[data-mobile-shell="active"] .mm-header {
  z-index: 640 !important;
}

html[data-shell-frame="foundation"].is-real-device-compact body[data-mobile-shell="active"] .mm-shell::before,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] body[data-mobile-shell="active"] .mm-shell::before {
  inset: var(--mm-runtime-header-height, var(--mm-frame-header-height)) 0 0 0 !important;
}

html[data-shell-frame="foundation"].is-real-device-compact body[data-mobile-shell="active"] .mm-shell-sidebar-backdrop,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] body[data-mobile-shell="active"] .mm-shell-sidebar-backdrop,
html[data-shell-frame="foundation"].is-real-device-compact body[data-mobile-shell="active"] #mm-shell-sidebar-backdrop,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] body[data-mobile-shell="active"] #mm-shell-sidebar-backdrop {
  inset: var(--mm-runtime-header-height, var(--mm-frame-header-height)) 0 0 0 !important;
}

html[data-shell-frame="foundation"].is-real-device-compact body[data-mobile-shell="active"] .mm-shell-sidebar,
html[data-shell-frame="foundation"].is-real-device-compact body[data-ui-ready="true"][data-mobile-shell="active"] .mm-shell-sidebar,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] body[data-mobile-shell="active"] .mm-shell-sidebar {
  top: var(--mm-runtime-header-height, var(--mm-frame-header-height)) !important;
  bottom: 0 !important;
  height: calc(100dvh - var(--mm-runtime-header-height, var(--mm-frame-header-height))) !important;
  max-height: calc(100dvh - var(--mm-runtime-header-height, var(--mm-frame-header-height))) !important;
  width: min(84vw, 360px) !important;
  padding-top: 12px !important;
  border-radius: 0 0 14px 0 !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-sidebar .mm-company-shell-navitem,
html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-sidebar .mm-company-shell-navitem--department,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-shell-sidebar .mm-company-shell-navitem,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-shell-sidebar .mm-company-shell-navitem--department {
  min-height: 48px !important;
  padding: 9px 10px !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-sidebar .mm-company-shell-navitem__content strong,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-shell-sidebar .mm-company-shell-navitem__content strong {
  font-size: 14px !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-sidebar .mm-company-shell-navitem__content span,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-shell-sidebar .mm-company-shell-navitem__content span {
  font-size: 12px !important;
}

html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-owner-shell-card,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-panel-head,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-sheet,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-office-tools-panel {
  padding: 12px !important;
  border-radius: 12px !important;
}

html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-owner-shell-head h2,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-panel-head h2,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-office-tools-shell__title-wrap h2 {
  font-size: 19px !important;
  line-height: 1.22 !important;
}

html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-owner-shell p,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-root p,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-current-company-shell p,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-owner-shell .mm-muted,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-marketplace-root .mm-muted,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-current-company-shell .mm-muted {
  font-size: 13px !important;
  line-height: 1.42 !important;
}

html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-button,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-button-secondary,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-mini-action,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-mini-action-primary,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-platform-primary-action,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-platform-secondary-action,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-chip {
  min-height: 40px !important;
  font-size: 13px !important;
}

/* Conveyor 2026-05-08: unify mobile/Fold topbar model, reduce direct action pressure, keep language panel below runtime header. */
html[data-shell-frame="foundation"] .mm-header-language-panel {
  top: calc(var(--mm-runtime-header-height, var(--mm-frame-header-height, 64px)) + 10px) !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] body[data-ui-ready="true"] .mm-header {
  min-height: auto !important;
  height: auto !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "brand tools"
    "context context" !important;
  align-items: start !important;
  row-gap: 6px !important;
  column-gap: 8px !important;
  padding-top: calc(8px + env(safe-area-inset-top, 0px)) !important;
  padding-bottom: 8px !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-brand,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-brand {
  grid-area: brand !important;
  align-items: center !important;
  min-width: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-tools,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-tools {
  grid-area: tools !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  min-width: 0 !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-context,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-context {
  grid-area: context !important;
  display: block !important;
  min-width: 0 !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-brand-meta,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-brand-meta {
  gap: 2px !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-brand-level,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-brand-level {
  display: none !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-brand-title,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-brand-title {
  line-height: 1.08 !important;
}

html[data-shell-frame="foundation"].is-real-device-compact #shell-context-label,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] #shell-context-label {
  min-height: auto !important;
  justify-content: flex-start !important;
  padding: 0 !important;
}

html[data-shell-frame="foundation"].is-real-device-compact #shell-context-label .mm-header-context-copy,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] #shell-context-label .mm-header-context-copy {
  display: block !important;
  width: 100% !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-nav,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-nav {
  gap: 4px !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-menu,
html[data-shell-frame="foundation"].is-real-device-compact .mm-header-nav__btn,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-menu,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-nav__btn {
  flex: 0 0 40px !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-breadcrumb__toggle,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-shell-breadcrumb__toggle {
  min-width: 0 !important;
  max-width: min(52vw, 190px) !important;
  padding: 0 8px !important;
}

@media (max-width: 360px) {
  html[data-shell-frame="foundation"].is-real-device-compact .mm-shell-breadcrumb__toggle,
  html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-shell-breadcrumb__toggle {
    min-width: 0 !important;
    max-width: min(48vw, 164px) !important;
  }
}

/* Conveyor 2026-05-05: keep desktop install sheet fully inside viewport. */
@media (min-width: 1101px) {
  html[data-shell-frame="foundation"] .mm-marketplace-canon-layout.has-detail {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 540px) !important;
  }

  html[data-shell-frame="foundation"] .mm-marketplace-sheet.mm-marketplace-sheet--inline {
    position: fixed !important;
    top: calc(var(--mm-runtime-header-height, var(--mm-frame-header-height, 56px)) + 8px) !important;
    right: max(16px, env(safe-area-inset-right, 0px)) !important;
    bottom: max(16px, env(safe-area-inset-bottom, 0px)) !important;
    left: auto !important;
    z-index: 580 !important;
    width: clamp(360px, 36vw, 540px) !important;
    max-width: calc(100vw - 32px) !important;
    max-height: none !important;
    overflow: hidden auto !important;
  }
}

/* Owner live audit cleanup 2026-05-08 final override. */
html[data-shell-frame="foundation"] .mm-entry-card,
html[data-shell-frame="foundation"] .mm-company-canon-card,
html[data-shell-frame="foundation"] .mm-owner-shell-card {
  min-width: 0 !important;
  overflow: hidden !important;
}

html[data-shell-frame="foundation"] .mm-entry-card *,
html[data-shell-frame="foundation"] .mm-company-canon-card *,
html[data-shell-frame="foundation"] .mm-owner-shell-card *,
html[data-shell-frame="foundation"] .mm-shell-breadcrumb * {
  min-width: 0 !important;
}

html[data-shell-frame="foundation"] .mm-entry-card strong,
html[data-shell-frame="foundation"] .mm-entry-card__title,
html[data-shell-frame="foundation"] .mm-entry-card__subtitle,
html[data-shell-frame="foundation"] .mm-entry-card__meta,
html[data-shell-frame="foundation"] .mm-company-canon-card strong,
html[data-shell-frame="foundation"] .mm-owner-shell-card strong,
html[data-shell-frame="foundation"] .mm-shell-breadcrumb__label {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  white-space: normal !important;
}

html[data-shell-frame="foundation"] .mm-entry-card__aside {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 6px !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

html[data-shell-frame="foundation"] .mm-entry-card__aside > *,
html[data-shell-frame="foundation"] .mm-entity-manage-toggle.is-compact {
  flex: 0 1 auto !important;
  max-width: 100% !important;
  white-space: normal !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-root-btn-active,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-root-btn-active *,
html[data-theme="dark"] .mm-xfm-root-btn-active,
html[data-theme="dark"] .mm-xfm-root-btn-active * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-xfm-root-btn-active {
  background: #2563eb !important;
  border-color: rgba(147, 197, 253, 0.72) !important;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-screen-exchange .mm-xfm-crumb-active,
html[data-theme="dark"] .mm-screen-exchange .mm-xfm-crumb-active {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  background: #e2e8f0 !important;
}
html[data-shell-frame="foundation"].is-real-device-compact #shell-context-label,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] #shell-context-label {
  display: none !important;
}

html[data-shell-frame="foundation"] .mm-platform-home-hero {
  display: grid;
  gap: 18px;
}

html[data-shell-frame="foundation"] .mm-platform-home-hero__copy {
  max-width: 78ch;
}

html[data-shell-frame="foundation"] .mm-platform-home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

html[data-shell-frame="foundation"] .mm-platform-home-stat {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(21, 32, 51, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

html[data-shell-frame="foundation"] .mm-platform-home-stat strong {
  color: #152033;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

html[data-shell-frame="foundation"] .mm-platform-home-stat span {
  color: #667184;
  font-size: 12px;
  font-weight: 700;
}

html[data-shell-frame="foundation"] .mm-platform-home-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

html[data-shell-frame="foundation"] .mm-platform-home-card {
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas:
    "icon body"
    "aside aside";
  align-items: start;
  min-height: 0;
  gap: 14px 12px;
  padding: 16px;
}

html[data-shell-frame="foundation"] .mm-platform-home-card .mm-entry-card__icon {
  grid-area: icon;
  margin-top: 2px;
}

html[data-shell-frame="foundation"] .mm-platform-home-card .mm-entry-card__body {
  grid-area: body;
  gap: 6px;
}

html[data-shell-frame="foundation"] .mm-platform-home-card .mm-entry-card__title,
html[data-shell-frame="foundation"] .mm-platform-home-card .mm-entry-card__meta,
html[data-shell-frame="foundation"] .mm-platform-home-card .mm-entry-card__subtitle {
  display: block;
  white-space: normal;
}

html[data-shell-frame="foundation"] .mm-platform-home-card .mm-entry-card__subtitle {
  color: #5f6d82;
  font-size: 12px;
  font-weight: 800;
}

html[data-shell-frame="foundation"] .mm-platform-home-card .mm-entry-card__chips {
  margin-top: 4px;
}

html[data-shell-frame="foundation"] .mm-platform-home-card .mm-entry-card__aside {
  grid-area: aside;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-left: 60px;
  flex-wrap: wrap;
}

html[data-shell-frame="foundation"] .mm-platform-home-card .mm-entry-card__open-button {
  min-width: 104px;
  height: 40px;
  padding: 0 14px;
}

html[data-shell-frame="foundation"] .mm-platform-home-card .mm-entity-manage-toggle.is-compact {
  min-width: 136px !important;
  justify-content: center;
}

html[data-shell-frame="foundation"] .mm-platform-home-card .mm-entry-card__meta {
  color: #6b778c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

html[data-shell-frame="foundation"] .mm-platform-home-card .mm-entry-card__chip {
  color: #2f5fda;
  background: rgba(79, 110, 247, 0.08);
  border-color: rgba(79, 110, 247, 0.12);
}

html[data-shell-frame="foundation"] .mm-platform-home-card.is-stateful {
  border-color: rgba(148, 163, 184, 0.28);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.92));
}

html[data-shell-frame="foundation"] .mm-platform-home-card.is-stateful .mm-entry-card__icon {
  background: linear-gradient(145deg, #64748b, #94a3b8);
  box-shadow: none;
}

html[data-shell-frame="foundation"] .mm-admin-center-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

html[data-shell-frame="foundation"] .mm-admin-center-stat {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(21, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

html[data-shell-frame="foundation"] .mm-admin-center-stat strong {
  color: #152033;
  font-size: 18px;
  font-weight: 900;
}

html[data-shell-frame="foundation"] .mm-admin-center-stat span {
  color: #667184;
  font-size: 12px;
  font-weight: 700;
}

html[data-shell-frame="foundation"] .mm-admin-center-card {
  gap: 12px;
}

html[data-shell-frame="foundation"] .mm-admin-center-card .mm-button,
html[data-shell-frame="foundation"] .mm-admin-center-card .mm-button-secondary {
  min-height: 40px;
}

html[data-shell-frame="foundation"] .mm-admin-center-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: #3159df;
  font-size: 12px;
  font-weight: 800;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar__nav {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  gap: 8px;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar__nav-main,
html[data-shell-frame="foundation"] .mm-shell-sidebar__nav-bottom {
  display: grid;
  gap: 8px;
  align-content: start;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar__nav-main {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar__nav-bottom {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--mm-hibrid-line);
}

html[data-shell-frame="foundation"] .mm-admin-access-workspace {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(21, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

html[data-shell-frame="foundation"] .mm-admin-access-workspace__head strong {
  display: block;
  color: #152033;
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 4px;
}

html[data-shell-frame="foundation"] .mm-admin-access-workspace__head span {
  color: #667184;
  font-size: 12px;
  line-height: 1.45;
}

html[data-shell-frame="foundation"] .mm-admin-access-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

html[data-shell-frame="foundation"] .mm-admin-access-tab {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(21, 32, 51, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #43526b;
  font-size: 12px;
  font-weight: 700;
}

html[data-shell-frame="foundation"] .mm-admin-access-tab.is-active {
  border-color: rgba(47, 95, 218, 0.28);
  background: rgba(47, 95, 218, 0.12);
  color: #2146ba;
}

html[data-shell-frame="foundation"] .mm-admin-access-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(21, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

html[data-shell-frame="foundation"] .mm-admin-access-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

html[data-shell-frame="foundation"] .mm-admin-access-panel__head strong {
  display: block;
  color: #152033;
  font-size: 14px;
  line-height: 1.2;
}

html[data-shell-frame="foundation"] .mm-admin-access-panel__head span {
  color: #667184;
  font-size: 12px;
  line-height: 1.4;
}

html[data-shell-frame="foundation"] .mm-admin-access-panel p {
  margin: 0;
  color: #4d5d77;
  font-size: 13px;
  line-height: 1.45;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-admin-access-workspace {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.42);
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-admin-access-workspace__head strong,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-admin-access-panel__head strong {
  color: #e2e8f0;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-admin-access-workspace__head span,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-admin-access-panel__head span,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-admin-access-panel p {
  color: #9fb2cb;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-admin-access-tab {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.58);
  color: #bfd0e7;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-admin-access-tab.is-active {
  border-color: rgba(96, 165, 250, 0.36);
  background: rgba(37, 99, 235, 0.22);
  color: #dbeafe;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-admin-access-panel {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.62);
}

html[data-shell-frame="foundation"] .mm-rbac-surface {
  display: grid;
  gap: 12px;
}

html[data-shell-frame="foundation"] .mm-rbac-form,
html[data-shell-frame="foundation"] .mm-rbac-list,
html[data-shell-frame="foundation"] .mm-rbac-reference-card,
html[data-shell-frame="foundation"] .mm-rbac-assignment-card,
html[data-shell-frame="foundation"] .mm-rbac-card,
html[data-shell-frame="foundation"] .mm-rbac-history-row {
  border: 1px solid rgba(21, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
}

html[data-shell-frame="foundation"] .mm-rbac-form,
html[data-shell-frame="foundation"] .mm-rbac-list,
html[data-shell-frame="foundation"] .mm-rbac-reference-card,
html[data-shell-frame="foundation"] .mm-rbac-assignment-card,
html[data-shell-frame="foundation"] .mm-rbac-card {
  padding: 12px;
}

html[data-shell-frame="foundation"] .mm-rbac-form,
html[data-shell-frame="foundation"] .mm-rbac-list,
html[data-shell-frame="foundation"] .mm-rbac-card,
html[data-shell-frame="foundation"] .mm-rbac-assignment-card {
  display: grid;
  gap: 10px;
}

html[data-shell-frame="foundation"] .mm-rbac-form__head strong,
html[data-shell-frame="foundation"] .mm-rbac-list__head strong,
html[data-shell-frame="foundation"] .mm-rbac-card__head strong,
html[data-shell-frame="foundation"] .mm-rbac-reference-card strong,
html[data-shell-frame="foundation"] .mm-rbac-history-row strong {
  color: #152033;
}

html[data-shell-frame="foundation"] .mm-rbac-form__head span,
html[data-shell-frame="foundation"] .mm-rbac-list__head span,
html[data-shell-frame="foundation"] .mm-rbac-card__head span,
html[data-shell-frame="foundation"] .mm-rbac-card__copy,
html[data-shell-frame="foundation"] .mm-rbac-history-row span {
  color: #667184;
  font-size: 12px;
  line-height: 1.45;
}

html[data-shell-frame="foundation"] .mm-rbac-form__grid,
html[data-shell-frame="foundation"] .mm-rbac-assignment-card__grid,
html[data-shell-frame="foundation"] .mm-rbac-reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

html[data-shell-frame="foundation"] .mm-rbac-form__wide {
  grid-column: 1 / -1;
}

html[data-shell-frame="foundation"] .mm-rbac-form__matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

html[data-shell-frame="foundation"] .mm-rbac-form__matrix-block,
html[data-shell-frame="foundation"] .mm-rbac-reference-card {
  display: grid;
  gap: 8px;
}

html[data-shell-frame="foundation"] .mm-rbac-checkbox-grid,
html[data-shell-frame="foundation"] .mm-rbac-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

html[data-shell-frame="foundation"] .mm-rbac-list__head,
html[data-shell-frame="foundation"] .mm-rbac-card__head,
html[data-shell-frame="foundation"] .mm-rbac-history-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

html[data-shell-frame="foundation"] .mm-rbac-empty-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px dashed rgba(21, 32, 51, 0.14);
  color: #667184;
  font-size: 12px;
  font-weight: 700;
}

html[data-shell-frame="foundation"] .mm-rbac-card.is-archived {
  opacity: 0.78;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-rbac-form,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-rbac-list,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-rbac-reference-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-rbac-assignment-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-rbac-card,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-rbac-history-row {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.62);
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-rbac-form__head strong,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-rbac-list__head strong,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-rbac-card__head strong,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-rbac-reference-card strong,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-rbac-history-row strong {
  color: #e2e8f0;
}

html[data-shell-frame="foundation"][data-theme="dark"] .mm-rbac-form__head span,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-rbac-list__head span,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-rbac-card__head span,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-rbac-card__copy,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-rbac-history-row span,
html[data-shell-frame="foundation"][data-theme="dark"] .mm-rbac-empty-chip {
  color: #9fb2cb;
}

@media (max-width: 900px) {
  html[data-shell-frame="foundation"] .mm-rbac-form__grid,
  html[data-shell-frame="foundation"] .mm-rbac-assignment-card__grid,
  html[data-shell-frame="foundation"] .mm-rbac-reference-grid,
  html[data-shell-frame="foundation"] .mm-rbac-form__matrix {
    grid-template-columns: 1fr;
  }
}

html[data-shell-frame="foundation"] .mm-owner-shell .mm-company-canon-empty strong {
  display: block;
}

html[data-shell-frame="foundation"] .mm-structure-chart .mm-company-canon-empty,
html[data-shell-frame="foundation"] .mm-company-employees-panel .mm-company-canon-empty {
  max-width: 620px;
}

html[data-shell-frame="foundation"] .mm-marketplace-root.is-platform .mm-marketplace-panel-head__title-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

html[data-shell-frame="foundation"] .mm-marketplace-root.is-platform .mm-marketplace-panel-head h2 {
  max-width: 18ch;
}

html[data-shell-frame="foundation"] .mm-marketplace-root.is-platform .mm-marketplace-panel-head p {
  max-width: 72ch;
}

html[data-shell-frame="foundation"] .mm-marketplace-card {
  min-height: 0;
}

html[data-shell-frame="foundation"] .mm-marketplace-card__body {
  display: grid;
  align-content: start;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 10px;
}

html[data-shell-frame="foundation"] .mm-marketplace-card__topline {
  align-items: start;
}

html[data-shell-frame="foundation"] .mm-marketplace-card__footer {
  margin-top: 4px;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar__brand-text strong {
  line-height: 1.15;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar__brand-text span {
  line-height: 1.2;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem {
  min-height: 46px;
  padding: 8px 10px;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem__content {
  min-width: 0;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem__content strong {
  font-size: 12.5px;
  line-height: 1.12;
  white-space: normal;
  overflow-wrap: anywhere;
}

html[data-shell-frame="foundation"] .mm-shell-sidebar .mm-company-shell-navitem__content span {
  font-size: 11px;
  line-height: 1.22;
  white-space: normal;
  overflow-wrap: anywhere;
}

html[data-shell-frame="foundation"].is-superadmin-platform #mm-gate-root [data-menu-kind="profile"] .mm-gate-button {
  min-width: 36px !important;
  width: 36px !important;
  padding: 0 !important;
  font-size: 0 !important;
}

html[data-shell-frame="foundation"].is-superadmin-platform #mm-gate-root [data-menu-kind="profile"] .mm-gate-button::before {
  content: "👤";
  font-size: 14px;
  line-height: 1;
}

@media (max-width: 1100px) {
  html[data-shell-frame="foundation"] .mm-platform-home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-shell-frame="foundation"] .mm-admin-center-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  html[data-shell-frame="foundation"] .mm-platform-home-stats {
    grid-template-columns: 1fr;
  }

  html[data-shell-frame="foundation"] .mm-admin-center-stats {
    grid-template-columns: 1fr;
  }

  html[data-shell-frame="foundation"] .mm-platform-home-card .mm-entry-card__aside {
    padding-left: 0;
  }

  html[data-shell-frame="foundation"] .mm-admin-access-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  html[data-shell-frame="foundation"] .mm-admin-access-tab {
    flex: 0 0 auto;
  }
}

/* Final mobile compact header lock: prevent brand/title crop on real-device shell. */
html[data-shell-frame="foundation"].is-real-device-compact .mm-header,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header {
  align-items: center !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-header-brand,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-header-brand {
  display: flex !important;
  align-items: center !important;
  align-self: center !important;
  min-height: 32px !important;
  max-height: none !important;
  overflow: visible !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-brand-meta,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-brand-meta {
  display: grid !important;
  align-content: center !important;
  align-self: center !important;
  position: static !important;
  transform: none !important;
  top: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  min-width: 0 !important;
  min-height: 30px !important;
  gap: 1px !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-brand-title,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-brand-title {
  position: static !important;
  transform: none !important;
  top: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.12 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html[data-shell-frame="foundation"].is-real-device-compact .mm-logo,
html[data-shell-frame="foundation"][data-real-device-shell="mobile"] .mm-logo {
  align-self: center !important;
}

@media (max-width: 767px) {
  html[data-shell-frame="foundation"] {
    --mm-hibrid-top: 64px !important;
  }

  html[data-shell-frame="foundation"] .mm-header,
  html[data-shell-frame="foundation"] body[data-ui-ready="true"] .mm-header,
  html[data-shell-frame="foundation"] body:has(.mm-current-company-shell) .mm-header,
  html[data-shell-frame="foundation"] body:has(.mm-company-shell) .mm-header,
  html[data-shell-frame="foundation"] body:has(.mm-company-admin-shell) .mm-header {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
    min-height: 64px !important;
    height: 64px !important;
    padding: 8px 10px !important;
    gap: 8px !important;
  }

  html[data-shell-frame="foundation"] .mm-header-brand {
    display: flex !important;
    align-items: center !important;
    align-self: center !important;
    min-width: 0 !important;
    min-height: 32px !important;
    height: auto !important;
    padding: 0 !important;
    gap: 8px !important;
    overflow: visible !important;
    max-height: none !important;
  }

  html[data-shell-frame="foundation"] .mm-logo {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    font-size: 12px !important;
    align-self: center !important;
  }

  html[data-shell-frame="foundation"] .mm-brand-meta {
    display: grid !important;
    align-content: center !important;
    align-self: center !important;
    min-width: 0 !important;
    min-height: 28px !important;
    margin: 0 !important;
    position: static !important;
    transform: none !important;
    top: auto !important;
    bottom: auto !important;
    gap: 1px !important;
  }

  html[data-shell-frame="foundation"] .mm-brand-level {
    display: none !important;
  }

  html[data-shell-frame="foundation"] .mm-brand-title {
    display: block !important;
    max-width: min(calc(100vw - 150px), 200px) !important;
    margin: 0 !important;
    position: static !important;
    transform: none !important;
    top: auto !important;
    bottom: auto !important;
    font-size: 14px !important;
    line-height: 1.12 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  html[data-shell-frame="foundation"] .mm-header-context {
    display: none !important;
  }

  html[data-shell-frame="foundation"] .mm-header-tools {
    grid-column: auto !important;
    width: auto !important;
    min-width: 0 !important;
    gap: 4px !important;
    justify-content: flex-end !important;
  }

  html[data-shell-frame="foundation"] .mm-header-nav {
    max-width: none !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }
}

@media (min-width: 768px) {
  html[data-shell-frame="foundation"].is-superadmin-platform .mm-brand-level {
    display: none !important;
  }

  html[data-shell-frame="foundation"].is-superadmin-platform .mm-logo {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
  }

  html[data-shell-frame="foundation"].is-superadmin-platform .mm-brand-title {
    max-width: 220px !important;
    font-size: 15px !important;
    line-height: 1.08 !important;
  }

  html[data-shell-frame="foundation"].is-superadmin-platform .mm-header-brand {
    gap: 8px !important;
  }

  html[data-shell-frame="foundation"].is-superadmin-platform .mm-header-nav__btn,
  html[data-shell-frame="foundation"].is-superadmin-platform #mm-gate-root .mm-gate-button {
    min-height: 36px !important;
    height: 36px !important;
    border-radius: 12px !important;
  }
}
