/* MyCodexes · quiet library, 28 October 2026.
   Loaded last. One 56px fixed header (matches the shared study shell), Inter for UI text,
   Instrument Serif for headings only, text >= 13px (running text >= 15px), plain ground.
   Presentation only: IDs, links and behaviour live in the bundle. */

@font-face { font-family: "Inter"; src: url(/assets/fonts/inter-latin-var_10_28_2026.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/assets/fonts/instrument-serif-latin-400_10_28_2026.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --mcx-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mcx-head-font: "Instrument Serif", Georgia, serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mcx-paper: #f8f6f0;
  --mcx-surface: #ffffff;
  --mcx-rule: #dfe4dc;
  --mcx-ink: #162b27;
  --mcx-muted: #5b6b66;
  --mcx-head-h: 56px;
  font-family: var(--mcx-ui);
}
html, body { font-family: var(--mcx-ui); }
body {
  background: var(--mcx-paper) !important;
  background-image: none !important;
  color: var(--mcx-ink);
}
.app-shell {
  --ink: var(--mcx-ink);
  --muted: var(--mcx-muted);
  --mcx-relief: -3px 3px 0 rgba(11, 74, 61, .14);
  --mcx-card-border: 1px solid #e3e7e0;
  font-family: var(--mcx-ui);
  padding-top: var(--mcx-head-h);
  font-size: 15px;
}
.app-shell :is(button, input, select, textarea) { font-family: inherit; }
.app-shell :is(h1, h2, h3) { font-family: var(--mcx-head-font); font-weight: 400; }
html { scroll-padding-top: calc(var(--mcx-head-h) + 16px); }

/* ---------- Header: wordmark | track switch | MyCodexes · search · account ---------- */
.app-shell > header.mcx-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--mcx-head-h); min-height: 0; margin: 0;
  padding: 0 clamp(16px, 3vw, 40px);
  padding-top: env(safe-area-inset-top, 0px);
  box-sizing: content-box;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px;
  background: var(--mcx-paper); border-bottom: 1px solid var(--mcx-rule);
  box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.app-shell .mcx-wordmark { display: inline-flex; align-items: center; gap: 9px; width: max-content; min-width: 0; color: var(--mcx-ink); text-decoration: none; justify-self: start; }
.app-shell .mcx-wordmark .brand-mark { width: 22px; height: 22px; flex: 0 0 22px; color: var(--track); }
.app-shell .mcx-wm-text { display: flex; flex-direction: column; line-height: 1.1; font: inherit; letter-spacing: 0; }
.app-shell .mcx-wm-name { font: 500 17px/1.1 var(--mcx-ui); letter-spacing: -.005em; color: var(--mcx-ink); white-space: nowrap; }
.app-shell .mcx-wm-name .brand-codex { font-weight: 700; color: var(--track); font-size: 1em; -webkit-text-stroke: 0; text-shadow: none; }
.app-shell .mcx-wm-motto { font: 400 11px/1.3 var(--mcx-ui); color: var(--mcx-muted); margin-top: 2px; white-space: nowrap; letter-spacing: 0; }

.app-shell .mcx-head .track-picker { position: relative; justify-self: center; }
.app-shell .mcx-head .track-picker select {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0;
  opacity: 0; cursor: pointer; font-size: 16px; border: 0; min-height: 0;
}
.app-shell .mcx-track-face {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; box-sizing: border-box;
  padding: 0 14px 0 16px; border: 1px solid #c9d3cc; border-radius: 999px; background: var(--mcx-surface);
  font: 600 14px/1 var(--mcx-ui); color: var(--mcx-ink); white-space: nowrap; pointer-events: none;
}
.app-shell .mcx-track-face svg { position: static; color: var(--mcx-muted); }
.app-shell .mcx-track-short { display: none; }
.app-shell .mcx-head .track-picker:hover .mcx-track-face { border-color: var(--track); }
.app-shell .mcx-head .track-picker:focus-within .mcx-track-face { outline: 3px solid var(--track-focus, #72bfa4); outline-offset: 2px; }
.app-shell .mcx-head .track-picker > svg { display: none; }

.app-shell .mcx-head .header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; justify-self: end; min-width: 0; }
.app-shell .mcx-nav-link,
.app-shell .mcx-head .search-trigger {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 10px; border-radius: 8px;
  font: 600 14px/1 var(--mcx-ui); color: var(--mcx-ink); text-decoration: none; background: transparent; border: 0; white-space: nowrap;
}
.app-shell .mcx-nav-link .brand-name { color: var(--mcx-ink); }
.app-shell .mcx-nav-link .brand-codex { color: var(--track); font-weight: 700; font-size: 1em; -webkit-text-stroke: 0; text-shadow: none; }
.app-shell .mcx-nav-link[aria-current=page] { box-shadow: inset 0 -2px 0 var(--track); border-radius: 0; }
.app-shell .mcx-nav-link:hover,
.app-shell .mcx-head .search-trigger:hover { background: color-mix(in srgb, var(--track) 7%, transparent); }
.app-shell .mcx-head .search-trigger kbd { display: none; }

.app-shell .mcx-account { position: relative; display: block !important; margin-left: 4px; }
.app-shell .mcx-avatar {
  position: relative; width: 34px; height: 34px; min-width: 34px; border-radius: 50%; padding: 0; overflow: visible;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--track); color: #fff; border: 0; font: 600 15px/1 var(--mcx-ui);
}
.app-shell .mcx-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.app-shell .mcx-avatar svg { color: #fff; }
.app-shell .mcx-dot { position: absolute; top: -1px; right: -1px; width: 10px; height: 10px; border-radius: 50%; background: #c2410c; border: 2px solid var(--mcx-paper); }
.app-shell .mcx-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; min-width: 220px; padding: 6px;
  background: var(--mcx-surface); border: 1px solid var(--mcx-rule); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(18, 49, 42, .14);
  display: flex; flex-direction: column;
}
.app-shell .mcx-menu > :is(button, a) {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 8px; background: transparent; text-align: left; text-decoration: none;
  font: 500 15px/1.2 var(--mcx-ui); color: var(--mcx-ink); cursor: pointer;
}
.app-shell .mcx-menu > :is(button, a):hover,
.app-shell .mcx-menu > :is(button, a):focus-visible { background: color-mix(in srgb, var(--track) 8%, transparent); outline-offset: -2px; }
.app-shell .mcx-menu-count { min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--track); color: #fff; font: 700 13px/22px var(--mcx-ui); text-align: center; }

/* ---------- Workspace tabs ---------- */
.app-shell .workspace-nav {
  height: 48px; padding: 0 clamp(16px, 3vw, 40px); border-bottom: 1px solid var(--mcx-rule);
  display: flex; align-items: stretch; justify-content: flex-start; background: transparent;
}
.app-shell .workspace-nav .tabs { gap: 24px; }
.app-shell .workspace-nav .tabs button { font: 500 15px/1 var(--mcx-ui); color: var(--mcx-muted); }
.app-shell .workspace-nav .tabs button.active { color: var(--mcx-ink); font-weight: 600; border-color: var(--track); }
.app-shell .workspace-nav .count { font: 600 13px/1 var(--mcx-ui); padding: 3px 7px; border-radius: 999px; background: #ebebe7; color: var(--mcx-ink); }

/* ---------- Title row ---------- */
.app-shell main { max-width: none; padding: 28px clamp(16px, 3vw, 40px) 48px; margin: 0 auto; }
@media (min-width: 1101px) {
  .app-shell main { max-width: none !important; column-gap: 32px !important; }
  .app-shell main > .cx-topic-entry { width: min(520px, 100%) !important; }
  .app-shell main > .hub-layout { margin-top: 8px !important; }
}
.app-shell .section-heading { margin-bottom: 16px; gap: 20px; }
.app-shell .section-heading h1 { font: 400 32px/1.1 var(--mcx-head-font) !important; letter-spacing: -.01em; margin: 0; color: var(--mcx-ink); }
.app-shell .section-heading h1 .brand-codex { color: var(--track); font-weight: 400; font-size: 1em; -webkit-text-stroke: .6px currentColor; text-shadow: none; }
.app-shell .cx-topic-entry { font: 400 16px/1.3 var(--mcx-ui) !important; min-height: 48px; border: 1px solid #b9c6be !important; border-radius: 12px; background: var(--mcx-surface); }
.app-shell .view-switch { background: #ebebe7 !important; }

/* ---------- Continue where you left off ---------- */
.app-shell .mcx-continue { grid-column: 1 / -1; margin: 8px 0 24px; }
.app-shell .mcx-continue h2 { font: 400 24px/1.2 var(--mcx-head-font); margin: 0 0 12px; color: var(--mcx-ink); }
.app-shell .mcx-continue-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.app-shell .mcx-continue-item {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 64px; padding: 10px 14px; border-radius: 14px; background: var(--mcx-surface);
  box-shadow: var(--mcx-relief); border: var(--mcx-card-border); color: var(--mcx-ink); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.app-shell .mcx-continue-item:hover { transform: translateY(-1px); }
.app-shell .mcx-continue-item > svg { color: var(--track); }
.app-shell .mcx-continue-art { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--track) 7%, #fff); color: var(--track); }
.app-shell .mcx-continue-art img { width: 100%; height: 100%; object-fit: contain; }
.app-shell .mcx-continue-art.image-bank img { object-fit: cover; }
.app-shell .mcx-continue-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.app-shell .mcx-continue-text strong { font: 600 15px/1.25 var(--mcx-ui); }
.app-shell .mcx-continue-text small { font: 400 13px/1.3 var(--mcx-ui); color: var(--mcx-muted); }

/* ---------- Library grid: 2 rows x 3 columns, one card per product ---------- */
.app-shell > footer:not(.codex-frame-foot),
.app-shell > .legal-notice,
.app-shell .study-sidebar,
.app-shell .library-strip,
.app-shell .recent-shortcut,
.app-shell .phone-context,
.app-shell .program-link { display: none !important; }
.app-shell .hub-layout { display: block !important; width: 100% !important; }
.app-shell .list-library {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important; padding: 0 !important; align-content: start !important; width: 100% !important;
}
.app-shell .list-library .product-node {
  position: relative; display: flex !important; flex-direction: column !important; justify-content: flex-start !important; gap: 0 !important;
  padding: 0 !important; min-height: 0 !important; border: var(--mcx-card-border) !important; border-radius: 16px !important;
  background: var(--mcx-surface) !important; box-shadow: var(--mcx-relief) !important; overflow: hidden;
}
.app-shell .list-library .product-node.selected { background: var(--mcx-surface) !important; box-shadow: var(--mcx-relief) !important; }
.app-shell .list-library .product-node.preview-open,
.app-shell .list-library .product-node:focus-within { background: var(--mcx-surface) !important; box-shadow: var(--mcx-relief) !important; border-color: var(--track) !important; }
.app-shell .list-library .product-select {
  display: grid !important; grid-template-columns: 76px minmax(0, 1fr) !important; grid-template-rows: auto auto;
  column-gap: 14px !important; row-gap: 4px !important; align-items: center !important; text-align: left !important;
  padding: 18px 52px 0 18px !important; background: none !important; box-shadow: none !important; border-radius: 0 !important;
}
.app-shell .list-library .product-art {
  grid-row: 1 / 3; grid-column: 1; width: 76px !important; height: 76px !important; margin: 0 !important;
  display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
  border-radius: 12px; background: color-mix(in srgb, var(--track) 6%, #f6f5ef); transform: none !important; filter: none !important;
}
.app-shell .list-library .product-art > img { width: 64px !important; height: 64px !important; object-fit: contain; transform: none; }
.app-shell .list-library .product-art .book-object { width: 44px !important; filter: none; }
.app-shell .list-library .product-art .book-object img { width: 100% !important; height: auto !important; transform: none !important; box-shadow: none !important; }
.app-shell .list-library .product-node.image-bank .product-art .image-bank-stack { transform: scale(.52) !important; transform-origin: center; flex: none; }
.app-shell .list-library .product-name {
  grid-column: 2; grid-row: 1; align-self: end; justify-content: flex-start !important;
  font: 500 18px/1.2 var(--mcx-ui) !important; letter-spacing: -.005em !important; color: var(--mcx-ink); text-align: left;
}
.app-shell .list-library .product-name .node-arrow { display: none; }
.app-shell .list-library .product-kind { grid-column: 2; grid-row: 2; align-self: start; margin: 0 !important; font: 400 14px/1.3 var(--mcx-ui) !important; color: var(--mcx-muted) !important; letter-spacing: 0 !important; }
.app-shell .list-library .save-node { position: absolute; top: 12px !important; right: 12px !important; width: 40px !important; height: 40px !important; min-width: 40px !important; min-height: 40px !important; border-radius: 10px; background: transparent !important; opacity: 1; }
.app-shell .list-library .list-description {
  display: flex !important; flex-direction: column; align-items: flex-start; gap: 10px !important;
  margin: 0 !important; padding: 14px 18px 18px !important; border: 0 !important; text-align: left !important; flex: 1;
}
.app-shell .list-library .list-description p {
  font: 400 15px/1.5 var(--mcx-ui) !important; color: var(--mcx-ink); margin: 0 !important;
  max-height: none !important; overflow: visible !important; flex: 1;
}
.app-shell .list-library .list-description :is(.text-link, a, button) { font: 600 15px/1.2 var(--mcx-ui) !important; color: var(--track); padding: 4px 0 !important; min-height: 32px; display: inline-flex; align-items: center; gap: 6px; }

/* two-tone product names (second word bold in the track colour) */
.app-shell .mcx-pn { display: inline; }
.app-shell .cw-brand-pair, .mcx-foot .cw-brand-pair { white-space: nowrap; display: inline !important; }
.app-shell .cw-brand-pair > * { display: inline !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; font-size: inherit; line-height: inherit; }
.app-shell .cw-chart { color: inherit; font-weight: inherit; }
.app-shell .cw-walk { color: var(--track); font-weight: 700; }
.app-shell .primary .cw-walk { color: #9fe3cc; }
.app-shell[data-track=step1] .primary .cw-walk { color: #b7d4ff; }
/* Instrument Serif has a single weight: a heading that carries a product name is set in Inter so "Bank" can be bold */
.app-shell :is(h1, h2, h3):has(.cw-brand-pair) { font-family: var(--mcx-ui) !important; font-weight: 600 !important; letter-spacing: -.01em; }
.app-shell .modal-header h2:has(.cw-brand-pair) { font-size: 24px !important; }
.app-shell .arrival-resource-panel h2:has(.cw-brand-pair) { font-size: 24px !important; }
.app-shell :is(h1, h2, h3) .cw-chart { font-weight: 500; }
.app-shell .update-item .eyebrow { text-transform: none !important; }
.app-shell .update-item .eyebrow::first-letter { text-transform: none; }
.app-shell .update-item h3 { font: 600 18px/1.35 var(--mcx-ui) !important; color: var(--mcx-ink); }
.app-shell .update-item h3 .cw-brand-pair { font-size: 1em; }

@media (max-width: 900px) {
  .app-shell .list-library { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 600px) {
  .app-shell .list-library { grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; }
  .app-shell .list-library .product-select { grid-template-columns: 60px minmax(0, 1fr) !important; padding: 14px 52px 0 14px !important; }
  .app-shell .list-library .product-art { width: 60px !important; height: 60px !important; }
  .app-shell .list-library .product-art > img { width: 52px !important; height: 52px !important; }
  .app-shell .list-library .product-art .book-object { width: 36px !important; }
  .app-shell .list-library .product-node.image-bank .product-art .image-bank-stack { transform: scale(.42) !important; }
  .app-shell .list-library .list-description { padding: 10px 14px 14px !important; }
}

/* ---------- Connected (orbit) view keeps working; only sizes change ---------- */
.app-shell .connected-library .product-name { font: 500 17px/1.2 var(--mcx-ui) !important; }
.app-shell .connected-library .product-kind { font: 400 14px/1.3 var(--mcx-ui) !important; }
.app-shell .hub-center > p:not(.eyebrow) { font-size: 16px !important; }
.app-shell .selected-format { font-size: 15px !important; }

/* ---------- Dialogs ---------- */
.app-shell .modal { font-family: var(--mcx-ui); }
.app-shell .modal-header h2 { font: 400 30px/1.15 var(--mcx-head-font) !important; }
.app-shell .modal.product-modal { padding: 0 !important; width: min(92vw, 560px) !important; max-width: 560px !important; }
.app-shell .modal.product-modal .panel-description { font: 400 16px/1.55 var(--mcx-ui) !important; margin: 8px 0 12px !important; }
.app-shell .modal :is(.preview-meta, .preview-note, .availability-note, .format-note, .access-offer, .access-links a, .text-link, .text-button, .contents-link) { font-size: 14px !important; }
.app-shell .modal :is(.preview-items small, .artwork-credits, .registration-note, .availability-alert small, .image-bank-recall small, .result small, .small) { font-size: 13px !important; }
.app-shell .modal :is(.preview-items strong, .image-bank-recall strong, .result strong, .field, summary) { font-size: 15px !important; }
.app-shell .modal .eyebrow { font-size: 13px !important; }
.app-shell .modal :is(p, li) { font-size: 15px; }
.app-shell .profile-menu > p { font-size: 13px; }

/* ---------- Search (TopicSearch chunk) ---------- */
.app-shell .topic-search-panel { font-family: var(--mcx-ui); }
.app-shell .topic-search-panel :is(.search-scope, .all-topics-filter, .format-filter select, .search-discovery, .search-discovery button, .search-count, .search-more, .search-back, .catalog-launch, .catalog-resource > span, .source-detail a, .planned-section, .topic-location, .topic-hub-note, .topic-shared, .catalog-info) { font-size: 14px !important; }
.app-shell .topic-search-panel :is(.catalog-info-button, .planned-filter, .result small, .topic-formats > span, .search-foot, .search-foot kbd, .resource-section > summary small, .catalog-resource > small, .source-detail, .source-detail summary, .source-detail p, .topic-detail .eyebrow) { font-size: 13px !important; }
.app-shell .topic-search-panel :is(.result strong, .catalog-resource > strong, .search-completion strong) { font-family: var(--mcx-ui) !important; font-weight: 600 !important; font-size: 15px !important; }
.app-shell .topic-search-panel :is(.topic-detail h3, .planned-section h4) { font-family: var(--mcx-head-font) !important; font-weight: 400 !important; font-size: 26px !important; }
.app-shell .topic-search-panel .resource-section > summary { font-size: 15px !important; }

/* ---------- Topic pages (QrArrival chunk) ---------- */
.app-shell .qr-arrival { font-family: var(--mcx-ui); }
.app-shell .arrival-breadcrumb, .app-shell .arrival-breadcrumb .text-link { font-size: 15px !important; }
.app-shell .arrival-heading > p:not(.eyebrow) { font-size: 15px !important; line-height: 1.6 !important; color: var(--mcx-muted); }
.app-shell .arrival-heading h1 { font-size: 32px !important; line-height: 1.15 !important; margin: 4px 0 8px !important; }
.app-shell .arrival-breadcrumb { margin-bottom: 12px !important; }
.app-shell .arrival-edition, .app-shell .arrival-edition summary, .app-shell .arrival-edition span { font-size: 13px !important; }
.app-shell .arrival-tools { justify-content: flex-end !important; font-size: 15px !important; border-block: 1px solid var(--mcx-rule) !important; padding: 10px 0 !important; margin-bottom: 20px !important; }
.app-shell .arrival-tools label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.app-shell .arrival-message p { font-size: 15px !important; }

.app-shell .arrival-list-layout { display: block !important; }
.app-shell .arrival-list-layout > .arrival-resource-panel { display: none !important; }
.app-shell .arrival-list { display: block !important; columns: 3 280px; column-gap: 16px; }
.app-shell .arrival-list > .arrival-card { break-inside: avoid; margin: 0 0 16px !important; }
.app-shell .arrival-list .arrival-card {
  display: flex !important; flex-direction: column !important; gap: 0 !important; padding: 0 !important;
  max-height: none !important; overflow: hidden !important; border: var(--mcx-card-border) !important; border-radius: 16px !important;
  background: var(--mcx-surface) !important; box-shadow: var(--mcx-relief) !important; transform: none !important;
}
.app-shell .arrival-list .arrival-card.is-selected { box-shadow: var(--mcx-relief) !important; border-color: color-mix(in srgb, var(--track) 45%, #fff) !important; }
.app-shell .arrival-list .arrival-format-button {
  display: grid !important; grid-template-columns: 56px minmax(0, 1fr) !important; grid-template-rows: auto auto;
  column-gap: 12px !important; row-gap: 2px !important; align-items: center !important; text-align: left !important;
  min-height: 0 !important; padding: 16px 16px 12px !important; width: 100%;
}
.app-shell .arrival-list .arrival-art {
  grid-row: 1 / 3 !important; width: 56px !important; height: 56px !important; margin: 0 !important; overflow: hidden; position: relative;
  border-radius: 12px; background: color-mix(in srgb, var(--track) 6%, #f6f5ef); display: flex; align-items: center; justify-content: center;
}
.app-shell .arrival-list .arrival-art:not(.book-object) img { max-width: 48px !important; max-height: 48px !important; }
.app-shell .arrival-list .arrival-art.book-object { height: 56px !important; }
.app-shell .arrival-list .arrival-art.book-object img { width: 32px !important; height: auto !important; transform: none !important; box-shadow: none !important; }
.app-shell .arrival-list .arrival-art .image-bank-stack { transform: scale(.4) !important; transform-origin: center; flex: none; }
.app-shell .arrival-list .arrival-format-button > strong { font: 500 17px/1.2 var(--mcx-ui) !important; align-self: end; }
.app-shell .arrival-list .arrival-format-button > span:last-child { font: 400 14px/1.3 var(--mcx-ui) !important; color: var(--mcx-muted); margin: 0 !important; align-self: start; }
.app-shell .arrival-list .arrival-mobile-references {
  display: flex !important; flex-direction: column; flex: 1; border: 0 !important; border-top: 1px solid var(--mcx-rule) !important; margin: 0 16px !important;
  padding: 4px 0 14px !important; max-height: none !important; overflow: visible !important; font-size: 14px !important;
}

.app-shell .arrival-list .arrival-reference { padding: 10px 0 !important; gap: 4px !important; border-top: 1px solid #eef0ea; }
.app-shell .arrival-list .arrival-reference:first-child { border-top: 0; }
.app-shell .arrival-reference > strong { font: 600 15px/1.4 var(--mcx-ui) !important; color: var(--mcx-ink); }
.app-shell .arrival-reference > span, .app-shell .arrival-status { font-size: 14px !important; line-height: 1.45 !important; color: var(--mcx-muted); }
.app-shell .arrival-reference .text-link, .app-shell .arrival-status .text-link { font-size: 15px !important; font-weight: 600; }
.app-shell .arrival-reference details, .app-shell .arrival-reference summary { font-size: 13px !important; }
.app-shell .arrival-list .access-offer, .app-shell .arrival-list .access-offer p { font-size: 14px !important; line-height: 1.45 !important; }
.app-shell .arrival-list .access-offer { margin: 6px 0 0 !important; padding: 10px 0 0 !important; border-top: 1px solid #eef0ea !important; background: none !important; }
.app-shell .arrival-breadcrumb { flex-wrap: nowrap; }
.app-shell .arrival-breadcrumb .text-link { white-space: nowrap; }
.app-shell .topic-search-panel .search-completion small, .app-shell .topic-search-panel .search-completion > span { font-size: 13px !important; }
.app-shell .arrival-list .access-offer a { font-size: 14px !important; }
.app-shell .arrival-list .registration-note { font-size: 13px !important; }
.app-shell .arrival-resource-panel h2 { font-family: var(--mcx-head-font) !important; }
.app-shell .arrival-panel-caption { font-size: 14px !important; }
.app-shell .arrival-contents small { font-size: 13px !important; }
.app-shell .arrival-contents strong { font: 600 15px/1.45 var(--mcx-ui) !important; }
.app-shell .arrival-contents > button > span:last-child, .app-shell .arrival-cross span, .app-shell .arrival-cross > button { font-size: 14px !important; }
.app-shell .arrival-cross h2 { font-size: 28px !important; }
@media (max-width: 1100px) { .app-shell .arrival-list { columns: 2 260px; } }
@media (max-width: 640px) { .app-shell .arrival-list { columns: 1; } }

/* ---------- Mobile ---------- */
.app-shell .mobile-nav button { font-size: 13px !important; }
@media (max-width: 900px) {
  .app-shell .mcx-wm-motto { display: none; }
  .app-shell .mcx-nav-link { display: none; }
}
@media (max-width: 600px) {
  .app-shell > header.mcx-head { display: flex; gap: 8px; padding-left: 12px; padding-right: 12px; }
  .app-shell .mcx-wordmark { gap: 7px; flex: 0 1 auto; }
  .app-shell .mcx-wordmark .brand-mark { width: 20px; height: 20px; flex-basis: 20px; }
  .app-shell .mcx-wm-name { font-size: 15px; }
  .app-shell .mcx-head .track-picker { margin-left: auto; }
  .app-shell .mcx-track-face { height: 34px; padding: 0 10px 0 12px; font-size: 13px; gap: 6px; }
  .app-shell .mcx-track-long { display: none; }
  .app-shell .mcx-track-short { display: inline; }
  .app-shell .mcx-head .header-actions { flex: none; gap: 2px; }
  .app-shell .mcx-head .search-trigger { padding: 0; width: 40px; justify-content: center; }
  .app-shell .mcx-head .search-trigger span { display: none; }
  .app-shell .workspace-nav { display: none !important; }
  .app-shell main { padding: 20px 16px 32px; }
  .app-shell .section-heading h1 { font-size: 26px !important; }
  .app-shell .arrival-heading h1 { font-size: 24px !important; }
  .app-shell .mcx-continue-list { grid-template-columns: minmax(0, 1fr); }
  .app-shell .mobile-nav { background: var(--mcx-paper) !important; border-top: 1px solid var(--mcx-rule); -webkit-backdrop-filter: none; backdrop-filter: none; }
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 359px) {
  .app-shell .mcx-head .search-trigger { display: none; }
}

/* ---------- Page footer (outside the React root) ---------- */
.mcx-foot { font-family: var(--mcx-ui); }
.mcx-foot p, .mcx-foot a { font-size: 13px !important; }
.mcx-foot .mcx-foot-brand { font-size: 16px !important; }

@media (prefers-reduced-motion: reduce) {
  .app-shell .mcx-continue-item { transition: none; }
}
@media print {
  .app-shell > header.mcx-head { position: static; }
  .app-shell .cw-walk, .app-shell .brand-codex { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

.app-shell[data-track=step1] { --mcx-relief: -3px 3px 0 rgba(12, 42, 76, .14); }
