/* MultiplyOS Develop: opt-in presentation only; existing brand rules are preserved. */
/* Added artwork stays hidden in the legacy UI. */
.mos-brand-new { display: none; }

/* Approved artwork replaces only the shell lockups. */
html[data-ui="multiplyos"] .mos-brand-legacy { display: none; }
html[data-ui="multiplyos"] .mos-brand-new {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 270px;
  min-width: 0;
  flex-wrap: wrap;
}
html[data-ui="multiplyos"] .mos-brand-new img:first-child { width: 48px; height: auto; flex: none; }
html[data-ui="multiplyos"] .mos-brand-new img + img { width: 210px; max-width: calc(100% - 60px); height: auto; min-width: 0; }

/* Keep saying which app this is: the app name sits under the new lockup, as it did under the old one. */
html[data-ui="multiplyos"] .mos-brand-context {
  flex-basis: 100%;
  font-size: 0.7em;
  font-weight: 600;
  line-height: 1.3;
  color: var(--mos-nav-muted);
}

/* RGB companions keep Tailwind opacity utilities valid; palette ownership stays with MOS. */

/* Apple-standard text sizes (owner ruling 5 Oct 2026): 13px desktop, 17px phone (below). */
html[data-ui="multiplyos"] {
  --mos-font-size: 13px;
  --mos-line-height: 1.4;
}

html[data-ui="multiplyos"] {
  --mos-background-rgb: 245 246 248;
  --mos-surface-rgb: 255 255 255;
  --mos-surface-soft-rgb: 237 241 246;
  --mos-text-rgb: 16 28 44;
  --mos-muted-rgb: 75 90 110;
  --mos-border-rgb: 215 223 233;
  --mos-primary-rgb: 7 86 207;
  --mos-danger-rgb: 180 35 50;
  --mos-success-rgb: 8 120 72;
  --mos-warning-rgb: 117 85 0;
}

@media (prefers-color-scheme: dark) {
  html[data-ui="multiplyos"]:not([data-theme="light"]) {
    --mos-background: #0B1220;
    --mos-surface: #131E2F;
    --mos-surface-raised: #19263A;
    --mos-surface-soft: #223249;
    --mos-text: #F2F6FC;
    --mos-muted: #B4C2D6;
    --mos-border: #34465E;
    --mos-control-border: #8396AF;
    --mos-primary: #8CBFFF;
    --mos-primary-hover: #B8D7FF;
    --mos-on-primary: #061629;
    --mos-focus: #8CBFFF;
    --mos-nav-background: #060B12;
    --mos-nav-text: #F2F6FC;
    --mos-nav-muted: #B4C2D6;
    --mos-nav-active: #193355;
    --mos-success: #8CE2B3;
    --mos-success-tint: #133C2B;
    --mos-warning: #FFE095;
    --mos-warning-tint: #493805;
    --mos-danger: #FFB4BE;
    --mos-danger-tint: #49202B;
    --mos-info: #8CBFFF;
    --mos-info-tint: #18385E;
    --mos-background-rgb: 11 18 32;
    --mos-surface-rgb: 19 30 47;
    --mos-surface-soft-rgb: 34 50 73;
    --mos-text-rgb: 242 246 252;
    --mos-muted-rgb: 180 194 214;
    --mos-border-rgb: 52 70 94;
    --mos-primary-rgb: 140 191 255;
    --mos-danger-rgb: 255 180 190;
    --mos-success-rgb: 140 226 179;
    --mos-warning-rgb: 255 224 149;
  }
}

html[data-ui="multiplyos"][data-theme="dark"],
html[data-ui="multiplyos"].dark:not([data-theme="light"]) {
  --mos-background: #0B1220;
  --mos-surface: #131E2F;
  --mos-surface-raised: #19263A;
  --mos-surface-soft: #223249;
  --mos-text: #F2F6FC;
  --mos-muted: #B4C2D6;
  --mos-border: #34465E;
  --mos-control-border: #8396AF;
  --mos-primary: #8CBFFF;
  --mos-primary-hover: #B8D7FF;
  --mos-on-primary: #061629;
  --mos-focus: #8CBFFF;
  --mos-nav-background: #060B12;
  --mos-nav-text: #F2F6FC;
  --mos-nav-muted: #B4C2D6;
  --mos-nav-active: #193355;
  --mos-success: #8CE2B3;
  --mos-success-tint: #133C2B;
  --mos-warning: #FFE095;
  --mos-warning-tint: #493805;
  --mos-danger: #FFB4BE;
  --mos-danger-tint: #49202B;
  --mos-info: #8CBFFF;
  --mos-info-tint: #18385E;
  --mos-background-rgb: 11 18 32;
  --mos-surface-rgb: 19 30 47;
  --mos-surface-soft-rgb: 34 50 73;
  --mos-text-rgb: 242 246 252;
  --mos-muted-rgb: 180 194 214;
  --mos-border-rgb: 52 70 94;
  --mos-primary-rgb: 140 191 255;
  --mos-danger-rgb: 255 180 190;
  --mos-success-rgb: 140 226 179;
  --mos-warning-rgb: 255 224 149;
}

/* Only hooked staff surfaces receive the legacy token bridge. */

html[data-ui="multiplyos"] .mos-shell,
html[data-ui="multiplyos"] .mos-overlay {
  --mo-ink: var(--mos-text);
  --mo-muted: var(--mos-muted);
  --mo-page: var(--mos-background);
  --mo-card: var(--mos-surface);
  --mo-field: var(--mos-surface);
  --mo-inset: var(--mos-surface-soft);
  --mo-line: var(--mos-border);
  --mo-accent: var(--mos-focus);
  --mo-accent-tint: var(--mos-info-tint);
  --mo-btn-fill: var(--mos-primary);
  --mo-btn-ink: var(--mos-on-primary);
  --mo-btn-hover: var(--mos-primary-hover);
  --mo-danger: var(--mos-danger);
  --mo-danger-ink: var(--mos-background);
  --mo-font: var(--mos-font-family);
  --bg: var(--mos-background-rgb);
  --surface: var(--mos-surface-rgb);
  --surface-2: var(--mos-surface-soft-rgb);
  --hairline: var(--mos-border-rgb);
  --text: var(--mos-text-rgb);
  --text-strong: var(--mos-text-rgb);
  --text-muted: var(--mos-muted-rgb);
  --text-faint: var(--mos-muted-rgb);
  --ink: var(--mos-text-rgb);
  --rust: var(--mos-text-rgb);
  --ring: var(--mos-primary-rgb);
  --info: var(--mos-primary-rgb);
  --gold: var(--mos-primary-rgb);
  --orange: var(--mos-primary-rgb);
  --success: var(--mos-success-rgb);
  --warning: var(--mos-warning-rgb);
  --danger: var(--mos-danger-rgb);
  --brand-50: var(--mos-surface-rgb);
  --brand-100: var(--mos-surface-soft-rgb);
  --brand-200: var(--mos-border-rgb);
  --brand-300: var(--mos-border-rgb);
  --brand-400: var(--mos-muted-rgb);
  --brand-500: var(--mos-primary-rgb);
  --brand-600: var(--mos-primary-rgb);
  --brand-700: var(--mos-primary-rgb);
  --brand-800: var(--mos-text-rgb);
  --brand-900: var(--mos-text-rgb);
  --brand-950: var(--mos-text-rgb);
  --sand-50: var(--mos-surface-rgb);
  --sand-100: var(--mos-surface-soft-rgb);
  --sand-200: var(--mos-border-rgb);
  --sand-300: var(--mos-border-rgb);
  --sand-400: var(--mos-muted-rgb);
  --sand-500: var(--mos-muted-rgb);
  --sand-600: var(--mos-muted-rgb);
  --sand-700: var(--mos-muted-rgb);
  --sand-800: var(--mos-text-rgb);
  --sand-900: var(--mos-text-rgb);
  --sand-950: var(--mos-text-rgb);
  --sage-50: var(--mos-surface-rgb);
  --sage-100: var(--mos-surface-soft-rgb);
  --sage-200: var(--mos-border-rgb);
  --sage-300: var(--mos-border-rgb);
  --sage-400: var(--mos-muted-rgb);
  --sage-500: var(--mos-muted-rgb);
  --sage-600: var(--mos-muted-rgb);
  --sage-700: var(--mos-muted-rgb);
  font-family: var(--mos-font-family);
  font-size: var(--mos-font-size, 13px);
  line-height: var(--mos-line-height, 1.4);
  color: var(--mos-text);
  color-scheme: var(--mos-control-scheme, light);
  overflow-wrap: anywhere;
  min-width: 0;
}

html[data-ui="multiplyos"][data-theme="dark"],
html[data-ui="multiplyos"].dark:not([data-theme="light"]) {
  --mos-control-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html[data-ui="multiplyos"]:not([data-theme="light"]) {
    --mos-control-scheme: dark;
  }
}

/* Reading text follows the approved size; SVG, Recharts and Journey retain their geometry. */

html[data-ui="multiplyos"] .mos-shell :is(a, summary, label, .mo-label, .mo-caption, .mo-fieldlabel, .mo-why, .mo-status, .mo-status--error, .mo-status--done, .mo-status--busy, .mo-state, .mo-state--compact, .mo-light, .mo-light--compact, .mo-help, .mo-tile__delta, .mo-compose__banner, .mo-compose__hint, .mo-compose__nudge, .mo-reach__hint, .mo-needs__question, .mo-needs__why, .mo-needs__link, .mo-ask__text, .mo-ask__hint, .mo-ask__status, .mo-ask__done, .mo-ask__from, .mo-ask__error, .mo-ask__earlier-title, .eyebrow, .pill, .read-chip, .read-answer__headline, .read-answer__detail, .monthly-read, .mo-userchip__avatar, [class~="text-xs"], [class~="text-sm"], [class~="text-base"], [class~="text-lg"], [class~="text-xl"], [class~="text-2xl"], [class~="text-3xl"], [class~="text-4xl"], [class~="text-5xl"], [class~="text-6xl"], [class~="text-display"], [class~="text-[13px]"], [class~="text-[15px]"], [class~="text-[16px]"], [class~="desk:text-sm"], [class~="desk:!text-sm"], [class~="desk:!text-[13px]"]):not(:where([class*="charts"], [class*="charts"] *, svg, svg *, .relative.select-none:has(> svg[viewBox="0 0 480 150"]), .relative.select-none:has(> svg[viewBox="0 0 480 150"]) *, [role="img"], [role="img"] *, .relative.inline-flex:has(> svg.-rotate-90), .relative.inline-flex:has(> svg.-rotate-90) *)),
html[data-ui="multiplyos"] .mos-overlay :is(a, summary, label, .mo-label, .mo-caption, .mo-fieldlabel, .mo-why, .mo-status, .mo-status--error, .mo-status--done, .mo-status--busy, .mo-state, .mo-state--compact, .mo-light, .mo-light--compact, .mo-help, .mo-tile__delta, .mo-compose__banner, .mo-compose__hint, .mo-compose__nudge, .mo-reach__hint, .mo-needs__question, .mo-needs__why, .mo-needs__link, .mo-ask__text, .mo-ask__hint, .mo-ask__status, .mo-ask__done, .mo-ask__from, .mo-ask__error, .mo-ask__earlier-title, .eyebrow, .pill, .read-chip, .read-answer__headline, .read-answer__detail, .monthly-read, .mo-userchip__avatar, [class~="text-xs"], [class~="text-sm"], [class~="text-base"], [class~="text-lg"], [class~="text-xl"], [class~="text-2xl"], [class~="text-3xl"], [class~="text-4xl"], [class~="text-5xl"], [class~="text-6xl"], [class~="text-display"], [class~="text-[13px]"], [class~="text-[15px]"], [class~="text-[16px]"], [class~="desk:text-sm"], [class~="desk:!text-sm"], [class~="desk:!text-[13px]"]):not(:where([class*="charts"], [class*="charts"] *, svg, svg *, .relative.select-none:has(> svg[viewBox="0 0 480 150"]), .relative.select-none:has(> svg[viewBox="0 0 480 150"]) *, [role="img"], [role="img"] *, .relative.inline-flex:has(> svg.-rotate-90), .relative.inline-flex:has(> svg.-rotate-90) *)) {
  font-family: var(--mos-font-family);
  font-size: var(--mos-font-size, 13px) !important;
  line-height: var(--mos-line-height, 1.4);
}

html[data-ui="multiplyos"] .mos-shell :is(h1, h2, h3, h4, .mo-h1, .mo-h2, .mo-h3, .stat-value, .mo-tile__value):not(:where([class*="charts"], [class*="charts"] *, svg, svg *, .relative.select-none:has(> svg[viewBox="0 0 480 150"]), .relative.select-none:has(> svg[viewBox="0 0 480 150"]) *, [role="img"], [role="img"] *, .relative.inline-flex:has(> svg.-rotate-90), .relative.inline-flex:has(> svg.-rotate-90) *)),
html[data-ui="multiplyos"] .mos-overlay :is(h1, h2, h3, h4, .mo-h1, .mo-h2, .mo-h3, .stat-value, .mo-tile__value):not(:where([class*="charts"], [class*="charts"] *, svg, svg *, .relative.select-none:has(> svg[viewBox="0 0 480 150"]), .relative.select-none:has(> svg[viewBox="0 0 480 150"]) *, [role="img"], [role="img"] *, .relative.inline-flex:has(> svg.-rotate-90), .relative.inline-flex:has(> svg.-rotate-90) *)) {
  font-family: var(--mos-font-family);
  font-size: calc(var(--mos-font-size, 13px) * 1.55) !important;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

html[data-ui="multiplyos"] .mos-shell :is(h2, h3, h4, .mo-h2, .mo-h3):not(:where([class*="charts"], [class*="charts"] *, svg, svg *, .relative.select-none:has(> svg[viewBox="0 0 480 150"]), .relative.select-none:has(> svg[viewBox="0 0 480 150"]) *, [role="img"], [role="img"] *, .relative.inline-flex:has(> svg.-rotate-90), .relative.inline-flex:has(> svg.-rotate-90) *)),
html[data-ui="multiplyos"] .mos-overlay :is(h2, h3, h4, .mo-h2, .mo-h3):not(:where([class*="charts"], [class*="charts"] *, svg, svg *, .relative.select-none:has(> svg[viewBox="0 0 480 150"]), .relative.select-none:has(> svg[viewBox="0 0 480 150"]) *, [role="img"], [role="img"] *, .relative.inline-flex:has(> svg.-rotate-90), .relative.inline-flex:has(> svg.-rotate-90) *)) {
  font-size: calc(var(--mos-font-size, 13px) * 1.31) !important;
}

html[data-ui="multiplyos"] .mos-shell :is(h1, .mo-h1):not(:where([class*="charts"], [class*="charts"] *, svg, svg *, .relative.select-none:has(> svg[viewBox="0 0 480 150"]), .relative.select-none:has(> svg[viewBox="0 0 480 150"]) *, [role="img"], [role="img"] *, .relative.inline-flex:has(> svg.-rotate-90), .relative.inline-flex:has(> svg.-rotate-90) *)),
html[data-ui="multiplyos"] .mos-overlay :is(h1, .mo-h1):not(:where([class*="charts"], [class*="charts"] *, svg, svg *, .relative.select-none:has(> svg[viewBox="0 0 480 150"]), .relative.select-none:has(> svg[viewBox="0 0 480 150"]) *, [role="img"], [role="img"] *, .relative.inline-flex:has(> svg.-rotate-90), .relative.inline-flex:has(> svg.-rotate-90) *)) {
  font-size: calc(var(--mos-font-size, 13px) * 2) !important;
}

html[data-ui="multiplyos"] .mos-shell :is(.mo-label, .mo-caption, .mo-fieldlabel, .eyebrow):not(:where([class*="charts"], [class*="charts"] *, svg, svg *, .relative.select-none:has(> svg[viewBox="0 0 480 150"]), .relative.select-none:has(> svg[viewBox="0 0 480 150"]) *, [role="img"], [role="img"] *, .relative.inline-flex:has(> svg.-rotate-90), .relative.inline-flex:has(> svg.-rotate-90) *)),
html[data-ui="multiplyos"] .mos-overlay :is(.mo-label, .mo-caption, .mo-fieldlabel, .eyebrow):not(:where([class*="charts"], [class*="charts"] *, svg, svg *, .relative.select-none:has(> svg[viewBox="0 0 480 150"]), .relative.select-none:has(> svg[viewBox="0 0 480 150"]) *, [role="img"], [role="img"] *, .relative.inline-flex:has(> svg.-rotate-90), .relative.inline-flex:has(> svg.-rotate-90) *)) {
  text-transform: none;
  letter-spacing: normal;
}

html[data-ui="multiplyos"] .mos-shell {
  width: 100%;
  background: var(--mos-background);
}

html[data-ui="multiplyos"] .mos-shell .mos-shell__column {
  width: 0;
  min-width: 0;
  max-width: 100%;
}

html[data-ui="multiplyos"] .mos-shell .mos-shell__sidebar {
  display: none;
  width: 260px;
  flex: 0 0 260px;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 32px 20px 24px;
  gap: 24px;
  border-right: 0;
  background: var(--mos-nav-background);
  color: var(--mos-nav-text);
  --mo-ink: var(--mos-nav-text);
  --mo-muted: var(--mos-nav-muted);
  --mo-card: var(--mos-nav-background);
  --mo-field: var(--mos-nav-background);
  --mo-inset: var(--mos-nav-active);
  --mo-line: var(--mos-nav-muted);
}

html[data-ui="multiplyos"] .mos-shell .mos-shell__sidebar > * {
  flex-shrink: 0;
  min-width: 0;
}

html[data-ui="multiplyos"] .mos-shell .mos-shell__nav {
  display: grid;
  gap: 8px;
}

html[data-ui="multiplyos"] .mos-shell .mos-shell__nav-item {
  height: auto;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-left-width: 3px;
  border-radius: 14px;
  font-size: var(--mos-font-size, 13px);
  line-height: 1.35;
  color: var(--mos-nav-text);
  background: transparent;
}

html[data-ui="multiplyos"] .mos-shell .mos-shell__nav-item:hover {
  background: var(--mos-nav-active);
}

html[data-ui="multiplyos"] .mos-shell .mos-shell__nav-item:is(.is-active, [aria-current="page"]) {
  background: var(--mos-nav-active);
  border-color: #365B89;
  color: var(--mos-nav-text);
  font-weight: 600;
}

html[data-ui="multiplyos"] .mos-shell .mos-shell__nav-item .mo-nav__icon {
  width: 24px;
  height: 24px;
  flex: none;
  color: inherit;
}

html[data-ui="multiplyos"] .mos-shell .mos-shell__account {
  margin-top: auto;
  color: var(--mos-nav-text);
}

html[data-ui="multiplyos"] .mos-shell .mos-shell__header {
  height: auto;
  min-height: 52px;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--mos-border);
  background: var(--mos-surface);
  color: var(--mos-text);
  box-shadow: none;
}

html[data-ui="multiplyos"] .mos-shell .mos-shell__header--desk {
  display: none;
}

html[data-ui="multiplyos"] .mos-shell .mos-shell__header--phone {
  display: flex;
}

html[data-ui="multiplyos"] .mos-shell .mos-shell__header .mos-brand-new {
  padding: 12px;
  max-width: 294px;
  border-radius: 12px;
  background: var(--mos-nav-background);
}

html[data-ui="multiplyos"] .mos-shell .mos-shell__header > div {
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  height: auto;
}

html[data-ui="multiplyos"] .mos-shell .mo-userchip__avatar {
  width: 48px;
  height: 48px;
}

html[data-ui="multiplyos"] .mos-shell .mos-shell__header .truncate,
html[data-ui="multiplyos"] .mos-shell .mos-shell__account .truncate {
  white-space: normal;
  overflow-wrap: anywhere;
}

html[data-ui="multiplyos"] .mos-shell .mos-shell__main {
  width: 100%;
  max-width: 1672px;
  min-width: 0;
  margin-inline: auto;
  padding: 28px 24px calc(156px + env(safe-area-inset-bottom));
}

html[data-ui="multiplyos"] .mos-shell .mos-shell__main :is(.mo-page, .mo-page__inner) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

html[data-ui="multiplyos"] .mos-shell .mos-shell__main .mo-page {
  padding: 0;
  min-height: 0;
}

html[data-ui="multiplyos"] .mos-shell .mos-page-header {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

html[data-ui="multiplyos"] .mos-shell .mos-shell__tabbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: auto;
  max-width: 100%;
  align-items: stretch;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--mos-border);
  background: var(--mos-surface);
}

html[data-ui="multiplyos"] .mos-shell .mos-shell__tab {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  min-height: 76px;
  padding: 8px 2px;
  font-size: 12px !important;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--mos-muted);
}

html[data-ui="multiplyos"] .mos-shell .mos-shell__tab svg {
  width: 28px;
  height: 28px;
}

html[data-ui="multiplyos"] .mos-shell .mos-shell__tab:is(.is-active, [aria-current="page"]) {
  color: var(--mos-primary);
  font-weight: 600;
  box-shadow: inset 0 3px var(--mos-primary);
}

/* Existing main-action classes retain ownership; all other controls are secondary. */

html[data-ui="multiplyos"] .mos-shell :is(button, .btn, .mo-button, .mo-button--quiet, .mo-button--main, .mo-button--danger):not(:where([class*="charts"], [class*="charts"] *, svg, svg *, .relative.select-none:has(> svg[viewBox="0 0 480 150"]), .relative.select-none:has(> svg[viewBox="0 0 480 150"]) *, [role="img"], [role="img"] *, .relative.inline-flex:has(> svg.-rotate-90), .relative.inline-flex:has(> svg.-rotate-90) *)),
html[data-ui="multiplyos"] .mos-overlay :is(button, .btn, .mo-button, .mo-button--quiet, .mo-button--main, .mo-button--danger):not(:where([class*="charts"], [class*="charts"] *, svg, svg *, .relative.select-none:has(> svg[viewBox="0 0 480 150"]), .relative.select-none:has(> svg[viewBox="0 0 480 150"]) *, [role="img"], [role="img"] *, .relative.inline-flex:has(> svg.-rotate-90), .relative.inline-flex:has(> svg.-rotate-90) *)) {
  height: auto;
  min-height: 32px;
  min-width: 32px;
  max-width: 100%;
  padding: 6px 14px;
  border: 1px solid var(--mos-control-border);
  border-radius: 12px;
  font-family: var(--mos-font-family);
  font-size: var(--mos-font-size, 13px) !important;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--mos-text);
  background: var(--mos-surface);
  background-image: none;
  box-shadow: none;
}

html[data-ui="multiplyos"] .mos-shell :is(button, .btn, .mo-button, .mo-button--quiet, .mo-button--main, .mo-button--danger):hover:not(:where([class*="charts"], [class*="charts"] *, svg, svg *, .relative.select-none:has(> svg[viewBox="0 0 480 150"]), .relative.select-none:has(> svg[viewBox="0 0 480 150"]) *, [role="img"], [role="img"] *, .relative.inline-flex:has(> svg.-rotate-90), .relative.inline-flex:has(> svg.-rotate-90) *)),
html[data-ui="multiplyos"] .mos-overlay :is(button, .btn, .mo-button, .mo-button--quiet, .mo-button--main, .mo-button--danger):hover:not(:where([class*="charts"], [class*="charts"] *, svg, svg *, .relative.select-none:has(> svg[viewBox="0 0 480 150"]), .relative.select-none:has(> svg[viewBox="0 0 480 150"]) *, [role="img"], [role="img"] *, .relative.inline-flex:has(> svg.-rotate-90), .relative.inline-flex:has(> svg.-rotate-90) *)) {
  background: var(--mos-surface-soft);
}

html[data-ui="multiplyos"] .mos-shell .mo-button--quiet,
html[data-ui="multiplyos"] .mos-overlay .mo-button--quiet {
  background: transparent;
  border-color: transparent;
}

html[data-ui="multiplyos"] .mos-shell .mo-button--danger,
html[data-ui="multiplyos"] .mos-overlay .mo-button--danger {
  color: var(--mos-danger);
}

html[data-ui="multiplyos"] .mos-shell .mo-button--main,
html[data-ui="multiplyos"] .mos-overlay .mo-button--main {
  min-height: 36px;
  background: var(--mos-primary);
  color: var(--mos-on-primary);
  border-color: var(--mos-primary);
}

html[data-ui="multiplyos"] .mos-shell .mo-button--main:hover,
html[data-ui="multiplyos"] .mos-overlay .mo-button--main:hover {
  background: var(--mos-primary-hover);
  border-color: var(--mos-primary-hover);
}

html[data-ui="multiplyos"] .mos-shell .mos-shell__sidebar :is(.mo-button--quiet, .mo-card) {
  color: var(--mos-nav-text);
  background: var(--mos-nav-background);
}

html[data-ui="multiplyos"] .mos-shell .mos-shell__sidebar .mo-button--quiet:hover {
  background: var(--mos-nav-active);
}

html[data-ui="multiplyos"] .mos-shell :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]), select, textarea):not(:where([class*="charts"], [class*="charts"] *, svg, svg *, .relative.select-none:has(> svg[viewBox="0 0 480 150"]), .relative.select-none:has(> svg[viewBox="0 0 480 150"]) *, [role="img"], [role="img"] *, .relative.inline-flex:has(> svg.-rotate-90), .relative.inline-flex:has(> svg.-rotate-90) *)),
html[data-ui="multiplyos"] .mos-overlay :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]), select, textarea):not(:where([class*="charts"], [class*="charts"] *, svg, svg *, .relative.select-none:has(> svg[viewBox="0 0 480 150"]), .relative.select-none:has(> svg[viewBox="0 0 480 150"]) *, [role="img"], [role="img"] *, .relative.inline-flex:has(> svg.-rotate-90), .relative.inline-flex:has(> svg.-rotate-90) *)) {
  height: auto;
  min-height: 32px;
  min-width: 0;
  max-width: 100%;
  padding: 6px 12px;
  border: 1px solid var(--mos-control-border);
  border-radius: 12px;
  font-family: var(--mos-font-family);
  font-size: var(--mos-font-size, 13px);
  line-height: var(--mos-line-height, 1.4);
  color: var(--mos-text);
  background: var(--mos-surface);
  box-shadow: none;
}

html[data-ui="multiplyos"] .mos-shell :is(input, textarea)::placeholder,
html[data-ui="multiplyos"] .mos-overlay :is(input, textarea)::placeholder {
  color: var(--mos-muted);
  opacity: 1;
}

html[data-ui="multiplyos"] .mos-shell [aria-invalid="true"],
html[data-ui="multiplyos"] .mos-overlay [aria-invalid="true"] {
  border-color: var(--mos-danger);
}

html[data-ui="multiplyos"] .mos-shell :is(.mo-card, .card, .stat, .mo-tile, .mo-list),
html[data-ui="multiplyos"] .mos-overlay :is(.mo-card, .card, .stat, .mo-tile, .mo-list) {
  min-width: 0;
  max-width: 100%;
  border-radius: 22px;
  border: 1px solid var(--mos-border);
  background: var(--mo-card);
  box-shadow: none;
}

html[data-ui="multiplyos"] .mos-shell .mo-hue-edge.mo-card[data-state],
html[data-ui="multiplyos"] .mos-overlay .mo-hue-edge.mo-card[data-state] {
  border-left: 3px solid var(--mo-state-hue);
}

html[data-ui="multiplyos"] .mos-shell :is(.mo-state, .mo-light, .pill, .read-chip):not(:where([class*="charts"], [class*="charts"] *, svg, svg *, .relative.select-none:has(> svg[viewBox="0 0 480 150"]), .relative.select-none:has(> svg[viewBox="0 0 480 150"]) *, [role="img"], [role="img"] *, .relative.inline-flex:has(> svg.-rotate-90), .relative.inline-flex:has(> svg.-rotate-90) *)),
html[data-ui="multiplyos"] .mos-overlay :is(.mo-state, .mo-light, .pill, .read-chip):not(:where([class*="charts"], [class*="charts"] *, svg, svg *, .relative.select-none:has(> svg[viewBox="0 0 480 150"]), .relative.select-none:has(> svg[viewBox="0 0 480 150"]) *, [role="img"], [role="img"] *, .relative.inline-flex:has(> svg.-rotate-90), .relative.inline-flex:has(> svg.-rotate-90) *)) {
  max-width: 100%;
  white-space: normal;
  flex-wrap: wrap;
}

html[data-ui="multiplyos"] .mos-shell :is(.mo-table, .mo-ask__table),
html[data-ui="multiplyos"] .mos-overlay :is(.mo-table, .mo-ask__table) {
  font-size: var(--mos-font-size, 13px);
}

html[data-ui="multiplyos"] .mos-shell :is(.mo-table, .mo-ask__table) :is(th, td),
html[data-ui="multiplyos"] .mos-overlay :is(.mo-table, .mo-ask__table) :is(th, td) {
  padding: 8px 12px;
  font-size: inherit;
  line-height: var(--mos-line-height, 1.4);
}

/* Local reflow: Pipeline columns and the editable Roster never widen the shell. */

html[data-ui="multiplyos"] .mos-shell .mos-shell__main :is(.flex, .grid) {
  min-width: 0;
}

html[data-ui="multiplyos"] .mos-shell .mos-shell__main .flex:has(> .mo-card[class~="md:w-[320px]"]) {
  flex-direction: column;
  align-items: stretch;
  max-width: 100%;
  overflow-x: auto;
  gap: 24px;
  padding: 4px 4px 16px;
  overscroll-behavior-x: contain;
}

html[data-ui="multiplyos"] .mos-shell .mos-shell__main .mo-card[class~="md:w-[320px]"] {
  width: 100%;
  max-width: 100%;
}

html[data-ui="multiplyos"] .mos-shell .mo-person-row > .flex,
html[data-ui="multiplyos"] .mos-shell .mo-card[class~="md:w-[320px]"] > .flex:first-child {
  flex-wrap: wrap;
}

html[data-ui="multiplyos"] .mos-shell .mo-person-row .truncate {
  white-space: normal;
}

html[data-ui="multiplyos"] .mos-shell .monthly-read .mo-card.overflow-auto {
  max-width: 100%;
  overscroll-behavior: contain;
}

html[data-ui="multiplyos"] .mos-shell .monthly-read .mo-card.overflow-auto > .grid {
  /* Inline COLS is fixed for the legacy reading size. */
  grid-template-columns: minmax(320px, 1.4fr) 240px 240px 260px 360px 200px 280px 320px 360px !important;
  width: max-content;
  min-width: 100%;
}

html[data-ui="multiplyos"] .mos-shell .monthly-read .mo-card.overflow-auto > .grid > * {
  min-width: 0;
  white-space: normal;
}

/* Portal roots include the drawer itself; the shared Modal has no dialog role. */

html[data-ui="multiplyos"] .mos-overlay[role="dialog"],
html[data-ui="multiplyos"] .mos-overlay [role="dialog"],
html[data-ui="multiplyos"] .mos-overlay > .relative.my-auto {
  max-width: min(760px, 100%);
  border: 1px solid var(--mos-border);
  border-radius: 24px !important;
  background: var(--mos-surface-raised);
  color: var(--mos-text);
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

html[data-ui="multiplyos"] .mos-overlay[role="dialog"] {
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

html[data-ui="multiplyos"] .mos-overlay > .relative.my-auto {
  padding-top: 72px;
}

html[data-ui="multiplyos"] .mos-overlay .monthly-read-flow .read-actionbar {
  position: sticky;
  inset: auto auto 0;
  width: 100%;
  margin-top: 24px;
}

html[data-ui="multiplyos"] .mos-overlay .monthly-read-flow {
  padding-bottom: 24px;
}

html[data-ui="multiplyos"] .mos-overlay .flex:has(> h1),
html[data-ui="multiplyos"] .mos-overlay .flex:has(> h3),
html[data-ui="multiplyos"] .mos-overlay .flex:has(> button[aria-label]) {
  flex-wrap: wrap;
  min-width: 0;
}

html[data-ui="multiplyos"] .mos-overlay.pointer-events-none {
  bottom: calc(132px + env(safe-area-inset-bottom));
}

html[data-ui="multiplyos"] .mos-overlay > .mo-status {
  max-width: min(760px, 100%);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.14);
}

html[data-ui="multiplyos"] .mos-shell :focus-visible,
html[data-ui="multiplyos"] .mos-overlay :focus-visible {
  outline: 3px solid var(--mos-focus) !important;
  outline-offset: 4px !important;
}

html[data-ui="multiplyos"] .mos-overlay[tabindex]:focus-visible {
  outline: 3px solid var(--mos-focus) !important;
  outline-offset: 4px !important;
}

@media (min-width: 1100px) {
  html[data-ui="multiplyos"] .mos-shell .mos-shell__sidebar,
  html[data-ui="multiplyos"] .mos-shell .mos-shell__header--desk {
    display: flex;
  }
  html[data-ui="multiplyos"] .mos-shell .mos-shell__header--phone,
  html[data-ui="multiplyos"] .mos-shell .mos-shell__tabbar {
    display: none;
  }
  html[data-ui="multiplyos"] .mos-shell .mos-shell__main {
    padding: 36px;
  }
  html[data-ui="multiplyos"] .mos-shell .mos-shell__main .flex:has(> .mo-card[class~="md:w-[320px]"]) {
    flex-direction: row;
    align-items: flex-start;
  }
  html[data-ui="multiplyos"] .mos-shell .mos-shell__main .mo-card[class~="md:w-[320px]"] {
    width: 440px;
    flex: 0 0 440px;
  }
  html[data-ui="multiplyos"] .mos-overlay.pointer-events-none {
    bottom: 24px;
  }
}
@media (max-width: 1099px) {
  html[data-ui="multiplyos"] .mos-shell .monthly-read .mo-page__inner > .space-y-3[class~="md:hidden"] {
    display: block;
  }
  html[data-ui="multiplyos"] .mos-shell .monthly-read .mo-card.overflow-auto[class~="md:block"] {
    display: none;
  }
}
@media (max-width: 599px) {
  html[data-ui="multiplyos"] .mos-shell .mos-shell__header {
    padding: 16px;
  }
  html[data-ui="multiplyos"] .mos-shell .mos-shell__main {
    padding: 24px 16px calc(156px + env(safe-area-inset-bottom));
  }
  html[data-ui="multiplyos"] .mos-shell .mo-button--main,
  html[data-ui="multiplyos"] .mos-overlay .mo-button--main {
    width: 100% !important;
  }
  html[data-ui="multiplyos"] .mos-shell .mos-page-header {
    flex-direction: column;
    align-items: stretch;
  }
  html[data-ui="multiplyos"] .mos-shell .grid:not(:where([class*="charts"], [class*="charts"] *, .relative.select-none *, [role="img"] *)):not(.place-items-center),
  html[data-ui="multiplyos"] .mos-overlay .grid:not(:where([class*="charts"], [class*="charts"] *, .relative.select-none *, [role="img"] *)):not(.place-items-center) {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-ui="multiplyos"] .mos-shell .mos-shell__main .flex.flex-wrap > .relative {
    width: 100%;
  }
  html[data-ui="multiplyos"] .mos-shell .mos-shell__main .mo-search {
    width: 100%;
  }
  html[data-ui="multiplyos"] .mos-overlay[role="dialog"] > .relative {
    flex-shrink: 0;
    overflow: visible;
  }
}
/* Phones: Apple-standard 17px reading size, 44px tap targets (owner ruling 5 Oct 2026). */
@media (max-width: 767px) {
  html[data-ui="multiplyos"] {
    --mos-font-size: 17px;
    --mos-line-height: 1.35;
  }
  html[data-ui="multiplyos"] .mos-shell :is(h2, h3, h4, .mo-h2, .mo-h3):not(:where([class*="charts"], [class*="charts"] *, svg, svg *, .relative.select-none:has(> svg[viewBox="0 0 480 150"]), .relative.select-none:has(> svg[viewBox="0 0 480 150"]) *, [role="img"], [role="img"] *, .relative.inline-flex:has(> svg.-rotate-90), .relative.inline-flex:has(> svg.-rotate-90) *)),
  html[data-ui="multiplyos"] .mos-overlay :is(h2, h3, h4, .mo-h2, .mo-h3):not(:where([class*="charts"], [class*="charts"] *, svg, svg *, .relative.select-none:has(> svg[viewBox="0 0 480 150"]), .relative.select-none:has(> svg[viewBox="0 0 480 150"]) *, [role="img"], [role="img"] *, .relative.inline-flex:has(> svg.-rotate-90), .relative.inline-flex:has(> svg.-rotate-90) *)) {
    font-size: calc(var(--mos-font-size, 17px) * 1.18) !important;
  }
  html[data-ui="multiplyos"] .mos-shell :is(h1, .mo-h1):not(:where([class*="charts"], [class*="charts"] *, svg, svg *, .relative.select-none:has(> svg[viewBox="0 0 480 150"]), .relative.select-none:has(> svg[viewBox="0 0 480 150"]) *, [role="img"], [role="img"] *, .relative.inline-flex:has(> svg.-rotate-90), .relative.inline-flex:has(> svg.-rotate-90) *)),
  html[data-ui="multiplyos"] .mos-overlay :is(h1, .mo-h1):not(:where([class*="charts"], [class*="charts"] *, svg, svg *, .relative.select-none:has(> svg[viewBox="0 0 480 150"]), .relative.select-none:has(> svg[viewBox="0 0 480 150"]) *, [role="img"], [role="img"] *, .relative.inline-flex:has(> svg.-rotate-90), .relative.inline-flex:has(> svg.-rotate-90) *)) {
    font-size: calc(var(--mos-font-size, 17px) * 1.65) !important;
  }
  html[data-ui="multiplyos"] .mos-shell :is(button, .btn, .mo-button, .mo-button--quiet, .mo-button--main, .mo-button--danger):not(:where([class*="charts"], [class*="charts"] *, svg, svg *, .relative.select-none:has(> svg[viewBox="0 0 480 150"]), .relative.select-none:has(> svg[viewBox="0 0 480 150"]) *, [role="img"], [role="img"] *, .relative.inline-flex:has(> svg.-rotate-90), .relative.inline-flex:has(> svg.-rotate-90) *)),
  html[data-ui="multiplyos"] .mos-overlay :is(button, .btn, .mo-button, .mo-button--quiet, .mo-button--main, .mo-button--danger):not(:where([class*="charts"], [class*="charts"] *, svg, svg *, .relative.select-none:has(> svg[viewBox="0 0 480 150"]), .relative.select-none:has(> svg[viewBox="0 0 480 150"]) *, [role="img"], [role="img"] *, .relative.inline-flex:has(> svg.-rotate-90), .relative.inline-flex:has(> svg.-rotate-90) *)),
  html[data-ui="multiplyos"] .mos-shell :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]), select, textarea):not(:where([class*="charts"], [class*="charts"] *, svg, svg *, .relative.select-none:has(> svg[viewBox="0 0 480 150"]), .relative.select-none:has(> svg[viewBox="0 0 480 150"]) *, [role="img"], [role="img"] *, .relative.inline-flex:has(> svg.-rotate-90), .relative.inline-flex:has(> svg.-rotate-90) *)),
  html[data-ui="multiplyos"] .mos-overlay :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]), select, textarea):not(:where([class*="charts"], [class*="charts"] *, svg, svg *, .relative.select-none:has(> svg[viewBox="0 0 480 150"]), .relative.select-none:has(> svg[viewBox="0 0 480 150"]) *, [role="img"], [role="img"] *, .relative.inline-flex:has(> svg.-rotate-90), .relative.inline-flex:has(> svg.-rotate-90) *)),
  html[data-ui="multiplyos"] .mos-shell .mos-shell__nav-item {
    min-height: 44px;
  }
  html[data-ui="multiplyos"] .mos-shell .mo-button--main,
  html[data-ui="multiplyos"] .mos-overlay .mo-button--main {
    min-height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-ui="multiplyos"] .mos-shell,
  html[data-ui="multiplyos"] .mos-shell *,
  html[data-ui="multiplyos"] .mos-shell *::before,
  html[data-ui="multiplyos"] .mos-shell *::after,
  html[data-ui="multiplyos"] .mos-overlay,
  html[data-ui="multiplyos"] .mos-overlay *,
  html[data-ui="multiplyos"] .mos-overlay *::before,
  html[data-ui="multiplyos"] .mos-overlay *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Tab labels never break inside a word; 12px like iOS (owner ruling 5 Oct 2026). */
html[data-ui="multiplyos"] .mos-shell .mos-shell__tabbar :is(a, span, button) {
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}
html[data-ui="multiplyos"] .mos-shell .mos-shell__tab {
  font-size: 12px !important;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
