/* IWXA Learn Unified Human-Centred Static Shell R8.1
 * One stable global header, local service navigation, light-first theme,
 * accessible mobile drawer and shared service-transition affordances.
 */
:root {
  --iwxa-shell-bg: #ffffff;
  --iwxa-shell-bg-muted: #f5f8f8;
  --iwxa-shell-bg-active: #dff1f1;
  --iwxa-shell-text: #152528;
  --iwxa-shell-text-muted: #5d6f73;
  --iwxa-shell-border: #d7e1e2;
  --iwxa-shell-primary: #087f87;
  --iwxa-shell-primary-hover: #066a71;
  --iwxa-shell-primary-text: #ffffff;
  --iwxa-shell-focus: #0b8f98;
  --iwxa-shell-danger: #b42318;
  --iwxa-shell-shadow: 0 10px 34px -28px rgba(11, 35, 39, 0.75);
  --iwxa-shell-radius: 12px;
  --iwxa-shell-width: 1600px;
  color-scheme: light;
}
html[data-theme="dark"],
html.dark {
  --iwxa-shell-bg: #10191b;
  --iwxa-shell-bg-muted: #172326;
  --iwxa-shell-bg-active: #16363a;
  --iwxa-shell-text: #eef7f7;
  --iwxa-shell-text-muted: #adbec1;
  --iwxa-shell-border: #2d4044;
  --iwxa-shell-primary: #56c4ca;
  --iwxa-shell-primary-hover: #76d6db;
  --iwxa-shell-primary-text: #071517;
  --iwxa-shell-focus: #79dbe0;
  --iwxa-shell-shadow: 0 10px 34px -22px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}

/* Legacy module headers are excluded from production React render.
 * The static shell below is the sole global navigation in the document. */

#iwxa-unified-shell {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  color: var(--iwxa-shell-text);
  background: var(--iwxa-shell-bg);
  border-bottom: 1px solid var(--iwxa-shell-border);
  box-shadow: var(--iwxa-shell-shadow);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
#iwxa-unified-shell,
#iwxa-unified-shell * {
  box-sizing: border-box;
}
.iwxa-r8-header {
  width: 100%;
  color: var(--iwxa-shell-text);
  background: var(--iwxa-shell-bg);
}
#iwxa-unified-shell a {
  color: inherit;
}
.iwxa-r8-skip {
  position: fixed;
  z-index: 1100;
  left: 16px;
  top: -80px;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--iwxa-shell-primary);
  color: var(--iwxa-shell-primary-text) !important;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s ease;
}
.iwxa-r8-skip:focus {
  top: 12px;
}
.iwxa-r8-top {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100%, var(--iwxa-shell-width));
  margin: 0 auto;
  padding: 10px 22px;
}
.iwxa-r8-brand {
  display: inline-flex;
  min-width: 240px;
  align-items: center;
  gap: 11px;
  border-radius: 10px;
  text-decoration: none;
  outline: none;
}
.iwxa-r8-brand-mark {
  display: inline-flex;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--iwxa-shell-primary);
  color: var(--iwxa-shell-primary-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
}
.iwxa-r8-brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.12;
}
.iwxa-r8-brand-name,
.iwxa-r8-brand-name-mobile {
  color: var(--iwxa-shell-text);
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}
.iwxa-r8-brand-name-mobile {
  display: none;
}
.iwxa-r8-brand-descriptor {
  margin-top: 3px;
  color: var(--iwxa-shell-text-muted);
  font-size: 12px;
  white-space: nowrap;
}
.iwxa-r8-global-nav {
  min-width: 0;
  flex: 1 1 auto;
}
.iwxa-r8-global-list,
.iwxa-r8-local-list {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.iwxa-r8-nav-link,
.iwxa-r8-local-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 8px 11px;
  color: var(--iwxa-shell-text-muted) !important;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.iwxa-r8-nav-link:hover,
.iwxa-r8-local-link:hover {
  color: var(--iwxa-shell-text) !important;
  background: var(--iwxa-shell-bg-muted);
}
.iwxa-r8-nav-link[aria-current="page"],
.iwxa-r8-local-link[aria-current="page"] {
  color: var(--iwxa-shell-primary) !important;
  background: var(--iwxa-shell-bg-active);
}
.iwxa-r8-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}
.iwxa-r8-kernel-status {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--iwxa-shell-border);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--iwxa-shell-text-muted);
  background: var(--iwxa-shell-bg-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.iwxa-r8-status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #8b9a9d;
}
.iwxa-r8-kernel-status[data-state="ready"] {
  color: #11643b;
  border-color: #9fd5b6;
  background: #effaf3;
}
.iwxa-r8-kernel-status[data-state="ready"] .iwxa-r8-status-dot {
  background: #1f9d5a;
}
.iwxa-r8-kernel-status[data-state="error"] {
  color: #9f2d24;
  border-color: #e6b0aa;
  background: #fff3f1;
}
.iwxa-r8-kernel-status[data-state="error"] .iwxa-r8-status-dot {
  background: #c33c31;
}
.iwxa-r8-kernel-status[data-state="preview"] {
  color: #76520c;
  border-color: #e7cf91;
  background: #fff9e8;
}
.iwxa-r8-kernel-status[data-state="preview"] .iwxa-r8-status-dot {
  background: #c78b12;
}
html[data-theme="dark"] .iwxa-r8-kernel-status[data-state="ready"],
html.dark .iwxa-r8-kernel-status[data-state="ready"] {
  color: #8ee0af;
  border-color: #285c40;
  background: #102b1c;
}
html[data-theme="dark"] .iwxa-r8-kernel-status[data-state="error"],
html.dark .iwxa-r8-kernel-status[data-state="error"] {
  color: #ffafa6;
  border-color: #693934;
  background: #301714;
}
html[data-theme="dark"] .iwxa-r8-kernel-status[data-state="preview"],
html.dark .iwxa-r8-kernel-status[data-state="preview"] {
  color: #f0cf7a;
  border-color: #5e4a24;
  background: #29210f;
}
.iwxa-r8-kernel-status-wide {
  width: 100%;
  min-height: 44px;
  justify-content: flex-start;
  border-radius: var(--iwxa-shell-radius);
  padding: 8px 12px;
  font-size: 13px;
}
.iwxa-r8-kernel-button {
  font-family: inherit;
  cursor: pointer;
}
.iwxa-r8-kernel-button:hover {
  filter: brightness(0.98);
  border-color: var(--iwxa-shell-primary);
}

.iwxa-r8-data-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1101;
  background: rgba(5, 17, 19, 0.56);
  backdrop-filter: blur(2px);
}
.iwxa-r8-data-dialog {
  position: fixed;
  z-index: 1102;
  left: 50%;
  top: 50%;
  width: min(680px, calc(100vw - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  overflow-y: auto;
  transform: translate(-50%, -50%);
  border: 1px solid var(--iwxa-shell-border);
  border-radius: 18px;
  padding: 22px;
  background: var(--iwxa-shell-bg);
  color: var(--iwxa-shell-text);
  box-shadow: 0 32px 90px -45px rgba(0, 0, 0, 0.9);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}
.iwxa-r8-data-dialog,
.iwxa-r8-data-dialog * {
  box-sizing: border-box;
}
.iwxa-r8-data-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.iwxa-r8-data-dialog-head h2 {
  margin: 3px 0 18px;
  color: var(--iwxa-shell-text);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.12;
}
.iwxa-r8-data-kicker {
  color: var(--iwxa-shell-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.iwxa-r8-continuity-steps {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
  counter-reset: continuity;
}
.iwxa-r8-continuity-steps li {
  position: relative;
  min-height: 68px;
  padding: 13px 14px 13px 58px;
  border: 1px solid var(--iwxa-shell-border);
  border-radius: 12px;
  background: var(--iwxa-shell-bg-muted);
  counter-increment: continuity;
}
.iwxa-r8-continuity-steps li::before {
  content: counter(continuity);
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--iwxa-shell-bg-active);
  color: var(--iwxa-shell-primary);
  font-weight: 800;
}
.iwxa-r8-continuity-steps strong,
.iwxa-r8-continuity-steps span {
  display: block;
}
.iwxa-r8-continuity-steps strong {
  color: var(--iwxa-shell-text);
  font-size: 15px;
}
.iwxa-r8-continuity-steps span {
  margin-top: 4px;
  color: var(--iwxa-shell-text-muted);
  font-size: 13px;
  line-height: 1.5;
}
.iwxa-r8-data-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.iwxa-r8-transfer {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--iwxa-shell-border);
  border-radius: var(--iwxa-shell-radius);
  padding: 8px 15px;
  color: var(--iwxa-shell-text) !important;
  background: var(--iwxa-shell-bg);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}
.iwxa-r8-transfer:hover {
  border-color: var(--iwxa-shell-primary);
  background: var(--iwxa-shell-bg-muted);
}
.iwxa-r8-data-footnote {
  margin: 16px 0 0;
  color: var(--iwxa-shell-text-muted);
  font-size: 12px;
  line-height: 1.5;
}
.iwxa-r8-workspace {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--iwxa-shell-primary);
  border-radius: var(--iwxa-shell-radius);
  padding: 8px 15px;
  background: var(--iwxa-shell-primary);
  color: var(--iwxa-shell-primary-text) !important;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}
.iwxa-r8-workspace:hover {
  background: var(--iwxa-shell-primary-hover);
}
[data-testid="header-workspace-compact"],
[data-testid="header-workspace-icon"] {
  display: none;
}
.iwxa-r8-icon-button {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--iwxa-shell-border);
  border-radius: var(--iwxa-shell-radius);
  background: var(--iwxa-shell-bg);
  color: var(--iwxa-shell-text);
  cursor: pointer;
}
.iwxa-r8-icon-button:hover {
  background: var(--iwxa-shell-bg-muted);
}
.iwxa-r8-icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.iwxa-r8-menu-button {
  display: none;
}
.iwxa-r8-local {
  border-top: 1px solid var(--iwxa-shell-border);
  background: var(--iwxa-shell-bg-muted);
}
.iwxa-r8-local-inner {
  display: flex;
  width: min(100%, var(--iwxa-shell-width));
  min-height: 50px;
  align-items: center;
  gap: 14px;
  margin: 0 auto;
  padding: 4px 22px;
}
.iwxa-r8-module-label {
  flex: 0 0 auto;
  color: var(--iwxa-shell-text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.iwxa-r8-local-nav {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.iwxa-r8-local-link {
  min-height: 40px;
  padding: 6px 10px;
  font-size: 13px;
}

.iwxa-r8-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(5, 17, 19, 0.54);
  backdrop-filter: blur(2px);
}
.iwxa-r8-drawer {
  position: fixed;
  z-index: 1002;
  top: 0;
  right: 0;
  width: min(92vw, 410px);
  height: 100dvh;
  overflow-y: auto;
  padding: 18px;
  border-left: 1px solid var(--iwxa-shell-border);
  background: var(--iwxa-shell-bg);
  color: var(--iwxa-shell-text);
  box-shadow: -20px 0 50px -35px rgba(0, 0, 0, 0.7);
}
.iwxa-r8-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.iwxa-r8-drawer-title {
  font-size: 18px;
  font-weight: 800;
}
.iwxa-r8-drawer-section {
  margin-top: 22px;
}
.iwxa-r8-drawer-section h2 {
  margin: 0 0 8px;
  color: var(--iwxa-shell-text-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.iwxa-r8-drawer-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.iwxa-r8-drawer-list .iwxa-r8-nav-link,
.iwxa-r8-drawer-list .iwxa-r8-local-link {
  width: 100%;
  justify-content: flex-start;
}
.iwxa-r8-drawer .iwxa-r8-workspace {
  width: 100%;
  margin-top: 18px;
}
.iwxa-r8-preview-note {
  margin-top: 20px;
  border: 1px solid var(--iwxa-shell-border);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--iwxa-shell-text-muted);
  background: var(--iwxa-shell-bg-muted);
  font-size: 12px;
  line-height: 1.45;
}

#iwxa-r8-transition-note {
  position: fixed;
  z-index: 990;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100vw - 36px));
  border: 1px solid var(--iwxa-shell-border);
  border-radius: 12px;
  padding: 11px 42px 11px 13px;
  background: var(--iwxa-shell-bg);
  color: var(--iwxa-shell-text);
  box-shadow: 0 16px 40px -25px rgba(0, 0, 0, 0.65);
  font:
    500 13px/1.45 Inter,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
}
#iwxa-r8-transition-note button {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 30px;
  height: 30px;
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

#iwxa-unified-shell :where(a, button):focus-visible,
.iwxa-r8-skip:focus-visible {
  outline: 3px solid var(--iwxa-shell-focus);
  outline-offset: 2px;
}

/* Light-first common body and token bridge. Each product keeps its own layout,
 * while backgrounds/text/controls remain readable in both themes. */
html:not([data-theme="dark"]):not(.dark) {
  color-scheme: light;
}
html:not([data-theme="dark"]):not(.dark) body {
  background-color: #f5f8f8;
  color: #152528;
}
html[data-theme="dark"],
html.dark {
  --iwxa-page-bg: #0d1517;
  --iwxa-surface: #111d20;
  --iwxa-surface-raised: #172629;
  --iwxa-surface-muted: #1b2a2d;
  --iwxa-surface-accent: #16363a;
  --iwxa-text: #e9f3f4;
  --iwxa-text-strong: #f6fbfb;
  --iwxa-text-muted: #aec0c3;
  --iwxa-border: #2d4145;
  --iwxa-border-strong: #456064;
  --iwxa-primary: #56c4ca;
  --iwxa-primary-hover: #76d6db;
  --iwxa-primary-soft: #16363a;
  --iwxa-focus: #79dbe0;
  background: #0d1517;
  color: #e9f3f4;
}
html[data-theme="dark"] body,
html.dark body {
  background-color: #0d1517 !important;
  color: #e9f3f4 !important;
}
html[data-theme="dark"] :where(main, section, article),
html.dark :where(main, section, article) {
  color: inherit;
}
html[data-theme="dark"] :where(h1, h2, h3, h4, h5, h6, strong, label),
html.dark :where(h1, h2, h3, h4, h5, h6, strong, label) {
  color: #f6fbfb;
}
html[data-theme="dark"] :where(p, li, dd, dt, small),
html.dark :where(p, li, dd, dt, small) {
  border-color: #2d4145;
}

/* Tailwind HSL token systems (Main/Lad/Study and compatible modules). */
html[data-theme="dark"],
html.dark {
  --background: 190 27% 7%;
  --foreground: 187 30% 94%;
  --card: 188 28% 10%;
  --card-foreground: 187 30% 94%;
  --popover: 188 28% 10%;
  --popover-foreground: 187 30% 94%;
  --primary: 183 51% 56%;
  --primary-foreground: 190 45% 7%;
  --secondary: 188 22% 16%;
  --secondary-foreground: 187 25% 91%;
  --muted: 188 20% 15%;
  --muted-foreground: 185 15% 70%;
  --accent: 187 29% 18%;
  --accent-foreground: 187 25% 92%;
  --border: 187 20% 23%;
  --input: 187 20% 23%;
  --ring: 183 51% 62%;
}
/* Career token bridge. */
html[data-theme="dark"][data-iwxa-module="career"],
html.dark[data-iwxa-module="career"] {
  --color-surface: #0d1517;
  --color-surface-raised: #111d20;
  --color-surface-sunken: #172629;
  --color-ink: #e9f3f4;
  --color-ink-strong: #f6fbfb;
  --color-muted: #aec0c3;
  --color-subtle: #80969a;
  --color-line: #2d4145;
  --color-line-strong: #456064;
  --color-accent: #56c4ca;
  --color-accent-ink: #071517;
  --color-accent-soft: #16363a;
  --color-focus: #79dbe0;
}
/* Мышление token bridge. */
html[data-theme="dark"][data-iwxa-module="mind"],
html.dark[data-iwxa-module="mind"] {
  --bg: #0d1517;
  --bg-elev: #111d20;
  --surface: #172629;
  --surface-2: #1b2a2d;
  --border: #2d4145;
  --text: #e9f3f4;
  --text-dim: #aec0c3;
  --text-mute: #80969a;
  --accent: #56c4ca;
  --focus: #79dbe0;
}
/* Workspace utility bridge, complete in both themes. */
html[data-theme="dark"][data-iwxa-module="workspace"] :where(.bg-slate-950, .bg-slate-900),
html.dark[data-iwxa-module="workspace"] :where(.bg-slate-950, .bg-slate-900) {
  background-color: #0d1517 !important;
}
html[data-theme="dark"][data-iwxa-module="workspace"]
  :where(.bg-slate-900\/50, .bg-slate-900\/60, .bg-slate-900\/70, .bg-slate-800),
html.dark[data-iwxa-module="workspace"]
  :where(.bg-slate-900\/50, .bg-slate-900\/60, .bg-slate-900\/70, .bg-slate-800) {
  background-color: #111d20 !important;
}
html[data-theme="dark"][data-iwxa-module="workspace"]
  :where(.bg-slate-800\/50, .bg-slate-800\/60, .bg-slate-800\/70, .bg-slate-700),
html.dark[data-iwxa-module="workspace"]
  :where(.bg-slate-800\/50, .bg-slate-800\/60, .bg-slate-800\/70, .bg-slate-700) {
  background-color: #172629 !important;
}
html[data-theme="dark"][data-iwxa-module="workspace"]
  :where(.text-slate-50, .text-slate-100, .text-slate-200),
html.dark[data-iwxa-module="workspace"] :where(.text-slate-50, .text-slate-100, .text-slate-200) {
  color: #f6fbfb !important;
}
html[data-theme="dark"][data-iwxa-module="workspace"]
  :where(.text-slate-300, .text-slate-400, .text-slate-500),
html.dark[data-iwxa-module="workspace"] :where(.text-slate-300, .text-slate-400, .text-slate-500) {
  color: #aec0c3 !important;
}
html[data-theme="dark"][data-iwxa-module="workspace"]
  :where(.border-slate-700, .border-slate-800, .border-slate-900),
html.dark[data-iwxa-module="workspace"]
  :where(.border-slate-700, .border-slate-800, .border-slate-900) {
  border-color: #2d4145 !important;
}

@media (max-width: 1599px) {
  .iwxa-r8-global-nav {
    display: none;
  }
  .iwxa-r8-actions > .iwxa-r8-kernel-status {
    display: none;
  }
  .iwxa-r8-menu-button {
    display: inline-flex;
  }
  .iwxa-r8-brand {
    min-width: 0;
    flex: 1 1 auto;
  }
  .iwxa-r8-brand-name {
    display: none;
  }
  .iwxa-r8-brand-name-mobile {
    display: inline;
  }
  .iwxa-r8-brand-descriptor {
    display: none;
  }
  [data-testid="header-workspace"] {
    display: none;
  }
  [data-testid="header-workspace-compact"] {
    display: inline;
  }
}
@media (max-width: 679px) {
  .iwxa-r8-top {
    min-height: 60px;
    gap: 8px;
    padding: 8px 12px;
  }
  .iwxa-r8-brand-mark {
    width: 36px;
    height: 36px;
  }
  .iwxa-r8-brand-name-mobile {
    font-size: 16px;
  }
  .iwxa-r8-local-inner {
    padding: 4px 12px;
  }
  .iwxa-r8-module-label {
    display: none;
  }
  .iwxa-r8-local-list {
    gap: 1px;
  }
  .iwxa-r8-local-link {
    padding-inline: 9px;
  }
}
@media (max-width: 479px) {
  .iwxa-r8-workspace {
    width: 44px;
    padding: 0;
  }
  [data-testid="header-workspace-compact"] {
    display: none;
  }
  [data-testid="header-workspace-icon"] {
    display: inline;
    font-size: 20px;
    line-height: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  #iwxa-unified-shell *,
  #iwxa-unified-shell *::before,
  #iwxa-unified-shell *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Cross-service usability baseline — deliberately conservative. */
html {
  min-width: 320px;
  scroll-padding-top: 132px;
}
body {
  overflow-x: clip;
}
:where(main) {
  overflow-wrap: anywhere;
}
:where(img, video, canvas, svg) {
  max-width: 100%;
}
:where(button, [role="button"], input, select, textarea, summary) {
  min-height: 44px;
}
:where(input, select, textarea) {
  max-width: 100%;
}
:where(table) {
  border-collapse: collapse;
}
@media (max-width: 720px) {
  :where(main) :where(.actions, .button-group, [data-actions]) {
    flex-wrap: wrap;
  }
  :where(main) :where(.actions, .button-group, [data-actions]) > :where(a, button) {
    max-width: 100%;
  }
  :where(table) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}

/* R8 data continuity affordances in the mobile drawer. */
.iwxa-r8-data-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.iwxa-r8-data-actions .iwxa-r8-workspace {
  margin-top: 0;
}
.iwxa-r8-transfer {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--iwxa-shell-border);
  border-radius: var(--iwxa-shell-radius);
  padding: 8px 15px;
  background: var(--iwxa-shell-bg-muted);
  color: var(--iwxa-shell-text) !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.iwxa-r8-transfer:hover {
  border-color: var(--iwxa-shell-primary);
  background: var(--iwxa-shell-bg-active);
}
.iwxa-r8-data-note {
  margin: 0;
  color: var(--iwxa-shell-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

/* Dark mode must be complete even when a module's generated stylesheet is
 * loaded after the shell. Important custom-property declarations are limited
 * to the explicit dark state; the light baseline remains module-owned. */
html[data-theme="dark"],
html.dark {
  --background: 190 27% 7% !important;
  --foreground: 187 30% 94% !important;
  --card: 188 28% 10% !important;
  --card-foreground: 187 30% 94% !important;
  --popover: 188 28% 10% !important;
  --popover-foreground: 187 30% 94% !important;
  --primary: 183 51% 56% !important;
  --primary-foreground: 190 45% 7% !important;
  --secondary: 188 22% 16% !important;
  --secondary-foreground: 187 25% 91% !important;
  --muted: 188 20% 15% !important;
  --muted-foreground: 185 15% 70% !important;
  --accent: 187 29% 18% !important;
  --accent-foreground: 187 25% 92% !important;
  --border: 187 20% 23% !important;
  --input: 187 20% 23% !important;
  --ring: 183 51% 62% !important;
}
html[data-theme="dark"][data-iwxa-module="career"],
html.dark[data-iwxa-module="career"] {
  --color-surface: #0d1517 !important;
  --color-surface-raised: #111d20 !important;
  --color-surface-sunken: #172629 !important;
  --color-ink: #e9f3f4 !important;
  --color-ink-strong: #f6fbfb !important;
  --color-muted: #aec0c3 !important;
  --color-subtle: #80969a !important;
  --color-line: #2d4145 !important;
  --color-line-strong: #456064 !important;
  --color-accent: #56c4ca !important;
  --color-accent-ink: #071517 !important;
  --color-accent-soft: #16363a !important;
  --color-focus: #79dbe0 !important;
}
html[data-theme="dark"][data-iwxa-module="mind"],
html.dark[data-iwxa-module="mind"] {
  --bg: #0d1517 !important;
  --bg-elev: #111d20 !important;
  --surface: #172629 !important;
  --surface-2: #1b2a2d !important;
  --border: #2d4145 !important;
  --text: #e9f3f4 !important;
  --text-dim: #aec0c3 !important;
  --text-mute: #80969a !important;
  --accent: #56c4ca !important;
  --focus: #79dbe0 !important;
}

@media (max-width: 640px) {
  .iwxa-r8-data-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 16px;
    border-radius: 14px;
  }
  .iwxa-r8-data-dialog-actions {
    display: grid;
  }
  .iwxa-r8-data-dialog-actions > * {
    width: 100%;
  }
  .iwxa-r8-continuity-steps li {
    padding-left: 52px;
  }
}

@media (forced-colors: active) {
  .iwxa-r8-header,
  .iwxa-r8-drawer,
  .iwxa-r8-footer,
  .iwxa-r8-data-dialog {
    forced-color-adjust: auto;
    background: Canvas;
    color: CanvasText;
    border-color: ButtonText;
  }
  .iwxa-r8-header :where(a, button, [role="button"]),
  .iwxa-r8-drawer :where(a, button, [role="button"]) {
    color: LinkText;
    border-color: ButtonText;
  }
  .iwxa-r8-shell :where(a, button, input, select, textarea, summary):focus-visible,
  .iwxa-r8-header :where(a, button):focus-visible {
    outline: 2px solid Highlight;
    outline-offset: 2px;
  }
}


/* R5 Learn design-family alignment: Practice uses the canonical domain shell only. */
html[data-iwxa-module="practice"] main#main > div:first-child{display:none!important}
html[data-iwxa-module="practice"]{
 --background:oklch(0.985 0.008 195)!important;
 --card:oklch(1 0 0)!important;
 --primary:oklch(0.57 0.10 195)!important;
 --primary-foreground:oklch(0.99 0.003 195)!important;
 --ring:oklch(0.62 0.10 195)!important;
 --lab-ink:oklch(0.57 0.10 195)!important;
 --lab-mark:oklch(0.70 0.08 195)!important;
 --lab-paper:oklch(0.985 0.008 195)!important;
 --lab-rule:oklch(0.88 0.02 195)!important;
 --lab-track:oklch(0.92 0.015 195)!important
}
html[data-theme="dark"][data-iwxa-module="practice"],html.dark[data-iwxa-module="practice"]{
 --background:oklch(0.18 0.015 195)!important;
 --card:oklch(0.22 0.015 195)!important;
 --primary:oklch(0.72 0.09 195)!important;
 --primary-foreground:oklch(0.15 0.02 195)!important;
 --ring:oklch(0.72 0.09 195)!important;
 --lab-paper:oklch(0.18 0.015 195)!important;
 --lab-rule:oklch(0.34 0.02 195)!important;
 --lab-track:oklch(0.29 0.02 195)!important
}

/* R6 server-test hygiene: source already DEV-gates this diagnostic. */
[data-testid="study-kernel-diagnostic-code"]{display:none!important}

/* R6.4 live corrective: visual consistency, single visible navigation and bounded Workspace UX. */
html[data-iwxa-module="main"] #root nav[aria-label="Раздел «Материалы»"]{display:none!important}
html[data-iwxa-module="study"]{--font-sans:Inter,"Segoe UI",Roboto,Arial,sans-serif!important;--font-serif:Inter,"Segoe UI",Roboto,Arial,sans-serif!important;--primary-foreground:0 0% 100%!important;--radius-sm:8px!important;--radius:10px!important;--radius-md:12px!important;--radius-lg:18px!important}
html[data-iwxa-module="study"] #root :where(h1,h2,h3,.font-serif){font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif!important}
html[data-iwxa-module="study"] #root :where(button,.bg-primary){border-radius:10px}
html[data-iwxa-module="mind"] #root .container{max-width:1280px}
html[data-iwxa-module="mind"] #root .hero{padding-top:2.75rem;padding-bottom:2rem}
html[data-iwxa-module="mind"] #root .section{padding-top:2.25rem;padding-bottom:2.25rem}
html[data-iwxa-module="mind"] #root :where(h1,h2,h3){font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif}
html[data-iwxa-module="workspace"] #root :where(h1,h2,h3){font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif}
@media(max-width:720px){html[data-iwxa-module="mind"] #root .hero{padding-top:2rem;padding-bottom:1.5rem}html[data-iwxa-module="mind"] #root .section{padding-top:1.75rem;padding-bottom:1.75rem}}

/* R6.4 module primary-action alignment */
html[data-iwxa-module="mind"] #root .btn-primary{background:var(--iwxa-primary)!important;color:#fff!important;border-color:var(--iwxa-primary)!important}
html[data-iwxa-module="mind"] #root .btn-primary:hover{background:var(--iwxa-primary-hover)!important;color:#fff!important}

/* R6.4 module primary-action alignment */
html[data-iwxa-module="mind"] #root .btn-primary{background:var(--iwxa-primary)!important;color:#fff!important;border-color:var(--iwxa-primary)!important}
html[data-iwxa-module="mind"] #root .btn-primary:hover{background:var(--iwxa-primary-hover)!important;color:#fff!important}
