@charset "UTF-8";

/* apps/shell/src/styles.scss */
:root {
  --shell-bg: #eef4fb;
  --shell-bg-soft: #f6f9fe;
  --shell-surface: rgba(255, 255, 255, 0.96);
  --shell-surface-2: rgba(245, 248, 255, 0.96);
  --shell-border: rgba(18, 34, 56, 0.08);
  --shell-border-strong: rgba(18, 34, 56, 0.14);
  --shell-text: #10223e;
  --shell-text-2: #47627f;
  --shell-text-3: #7a8eab;
  --shell-primary: #179edc;
  --shell-primary-hover: #1188c0;
  --shell-secondary: #6f63e8;
  --shell-secondary-hover: #5a50d0;
  --shell-success: #149a68;
  --shell-warning: #cf9600;
  --shell-danger: #dc496d;
  --shell-gradient:
    linear-gradient(
      
      135deg,
      rgba(92, 200, 255, 0.12),
      rgba(60, 160, 255, 0.05) 52%,
      rgba(141, 121, 255, 0.12) );
  --shell-radius-xl: 28px;
  --shell-radius-lg: 24px;
  --shell-radius-md: 18px;
  --shell-radius-sm: 10px;
  --shell-radius-xs: 6px;
  --shell-shadow: 0 24px 80px rgba(0, 0, 0, 0.08);
  --shell-shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shell-shadow-topbar: 0 1px 0 var(--shell-border);
  --shell-rail-width: 68px;
  --shell-topbar-height: 76px;
  --shell-overlay: rgba(8, 16, 29, 0.32);
  --shell-hover: rgba(23, 158, 220, 0.08);
  --shell-active: rgba(23, 158, 220, 0.14);
}
[data-theme=dark] {
  --shell-bg: #08101d;
  --shell-bg-soft: #0d1627;
  --shell-surface: rgba(17, 27, 47, 0.88);
  --shell-surface-2: rgba(25, 38, 65, 0.82);
  --shell-border: rgba(255, 255, 255, 0.08);
  --shell-border-strong: rgba(255, 255, 255, 0.14);
  --shell-text: #eef4ff;
  --shell-text-2: #bfd0ea;
  --shell-text-3: #8ea6c9;
  --shell-primary: #5cc8ff;
  --shell-primary-hover: #7dd4ff;
  --shell-secondary: #8d79ff;
  --shell-secondary-hover: #a090ff;
  --shell-success: #35d39a;
  --shell-warning: #ffcf5a;
  --shell-danger: #ff7b92;
  --shell-gradient:
    linear-gradient(
      
      135deg,
      rgba(92, 200, 255, 0.16),
      rgba(60, 160, 255, 0.08) 52%,
      rgba(141, 121, 255, 0.18) );
  --shell-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --shell-shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.22);
  --shell-shadow-topbar: 0 1px 0 var(--shell-border);
  --shell-overlay: rgba(0, 0, 0, 0.54);
  --shell-hover: rgba(92, 200, 255, 0.08);
  --shell-active: rgba(92, 200, 255, 0.14);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}
body {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: var(--shell-bg);
  color: var(--shell-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}
a {
  color: var(--shell-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
html {
  scroll-behavior: smooth;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--shell-border-strong);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--shell-text-3);
}
.hub-card {
  background: var(--shell-surface);
  border: 1px solid var(--shell-border);
  border-radius: var(--shell-radius-sm);
  overflow: hidden;
}
.hub-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--shell-border);
}
.hub-card__head .hub-card__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--shell-text);
  margin: 0;
}
.hub-card__head p {
  font-size: 0.8rem;
  color: var(--shell-text-2);
  margin: 3px 0 0;
}
.hub-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.hub-card__body {
  padding: 14px 16px;
}
.hub-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--shell-radius-xs);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--shell-border-strong);
  background: var(--shell-surface-2);
  color: var(--shell-text);
  transition: background 0.15s, border-color 0.15s;
  -webkit-user-select: none;
  user-select: none;
  white-space: nowrap;
}
.hub-btn:hover:not(:disabled) {
  background: var(--shell-hover);
  border-color: var(--shell-border-strong);
}
.hub-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.hub-btn.hub-btn--primary {
  background: var(--shell-primary);
  border-color: var(--shell-primary);
  color: #fff;
}
.hub-btn.hub-btn--primary:hover:not(:disabled) {
  background: var(--shell-primary-hover);
  border-color: var(--shell-primary-hover);
}
.hub-btn.hub-btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--shell-text-2);
}
.hub-btn.hub-btn--ghost:hover:not(:disabled) {
  background: var(--shell-hover);
  color: var(--shell-text);
}
.hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--shell-radius-xs);
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--shell-surface-2);
  color: var(--shell-text-2);
  white-space: nowrap;
}
.hub-badge.hub-badge--success {
  background: color-mix(in srgb, var(--shell-success) 12%, transparent);
  color: var(--shell-success);
}
.hub-badge.hub-badge--warning {
  background: color-mix(in srgb, var(--shell-warning) 12%, transparent);
  color: var(--shell-warning);
}
.hub-badge.hub-badge--error {
  background: color-mix(in srgb, var(--shell-danger) 12%, transparent);
  color: var(--shell-danger);
}
.hub-badge.hub-badge--info {
  background: color-mix(in srgb, var(--shell-primary) 12%, transparent);
  color: var(--shell-primary);
}
.hub-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 0.76rem;
  background: var(--shell-surface-2);
  color: var(--shell-text-2);
  border: 1px solid var(--shell-border);
  white-space: nowrap;
}
.hub-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--shell-radius-xs);
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--shell-surface-2);
  border: 1px solid var(--shell-border);
  color: var(--shell-text-2);
  cursor: pointer;
  transition:
    background 0.12s,
    color 0.12s,
    border-color 0.12s;
  -webkit-user-select: none;
  user-select: none;
  white-space: nowrap;
}
.hub-chip:hover {
  background: var(--shell-hover);
  color: var(--shell-text);
}
.hub-chip.hub-chip--active {
  background: color-mix(in srgb, var(--shell-primary) 14%, transparent);
  border-color: var(--shell-primary);
  color: var(--shell-primary);
}
.hub-input {
  display: block;
  width: 100%;
  padding: 6px 10px;
  border-radius: var(--shell-radius-xs);
  border: 1px solid var(--shell-border-strong);
  background: var(--shell-surface);
  color: var(--shell-text);
  font-size: 0.8125rem;
  outline: none;
  transition: border-color 0.15s;
}
.hub-input::placeholder {
  color: var(--shell-text-3);
}
.hub-input:focus {
  border-color: var(--shell-primary);
}
.hub-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 72px;
}
.hub-kpi__label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--shell-text-2);
}
.hub-kpi__value {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  color: var(--shell-text);
}
.hub-kpi__value.hub-kpi__value--success {
  color: var(--shell-success);
}
.hub-kpi__value.hub-kpi__value--warning {
  color: var(--shell-warning);
}
.hub-kpi__value.hub-kpi__value--danger {
  color: var(--shell-danger);
}
.hub-kpi__sub {
  font-size: 0.74rem;
  color: var(--shell-text-3);
  margin-top: 1px;
}
.hub-progress {
  height: 5px;
  border-radius: 3px;
  background: var(--shell-border-strong);
  overflow: hidden;
}
.hub-progress__fill {
  height: 100%;
  border-radius: 3px;
  background: var(--shell-primary);
  transition: width 0.25s ease;
}
.hub-banner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 14px;
  border-radius: var(--shell-radius-xs);
  border: 1px solid var(--shell-border);
  background: var(--shell-surface-2);
  font-size: 0.8125rem;
  color: var(--shell-text);
}
.hub-banner b {
  font-weight: 600;
}
.hub-banner code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  opacity: 0.85;
}
.hub-banner.hub-banner--success {
  background: color-mix(in srgb, var(--shell-success) 8%, transparent);
  border-color: color-mix(in srgb, var(--shell-success) 25%, transparent);
  color: var(--shell-success);
}
.hub-banner.hub-banner--warning {
  background: color-mix(in srgb, var(--shell-warning) 8%, transparent);
  border-color: color-mix(in srgb, var(--shell-warning) 25%, transparent);
  color: var(--shell-warning);
}
.hub-banner.hub-banner--error {
  background: color-mix(in srgb, var(--shell-danger) 8%, transparent);
  border-color: color-mix(in srgb, var(--shell-danger) 25%, transparent);
  color: var(--shell-danger);
}
.hub-banner.hub-banner--info {
  background: color-mix(in srgb, var(--shell-primary) 8%, transparent);
  border-color: color-mix(in srgb, var(--shell-primary) 25%, transparent);
  color: var(--shell-primary);
}
.hub-subnav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 16px;
  border-bottom: 1px solid var(--shell-border);
  background: var(--shell-surface);
  flex-shrink: 0;
  font-size: 0.8125rem;
}
.hub-subnav__tab {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--shell-text-3);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, background 0.15s;
  cursor: pointer;
  white-space: nowrap;
  border-radius: var(--shell-radius-xs) var(--shell-radius-xs) 0 0;
}
.hub-subnav__tab:hover {
  color: var(--shell-text);
  background: var(--shell-hover);
  text-decoration: none;
}
.hub-subnav__tab.hub-subnav__tab--active,
.hub-subnav__tab.is-active {
  color: var(--shell-primary);
  border-bottom-color: var(--shell-primary);
  font-weight: 600;
}
.hub-mono {
  font-family:
    "JetBrains Mono",
    "SFMono-Regular",
    Consolas,
    monospace;
  font-size: 0.77rem;
  color: var(--shell-text-3);
}
.hub-hidden {
  display: none !important;
}
:root {
  --academy-font-family-sans:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  --academy-font-family-mono:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    Menlo,
    monospace;
  --academy-color-primary: var(--shell-primary);
  --academy-color-secondary: var(--shell-secondary);
  --academy-color-success: var(--shell-success);
  --academy-color-warning: var(--shell-warning);
  --academy-color-danger: var(--shell-danger);
  --academy-color-text-primary: var(--shell-text);
  --academy-color-text-secondary: var(--shell-text-2);
  --academy-color-text-muted: var(--shell-text-3);
  --academy-color-border-soft: var(--shell-border);
  --academy-color-border-strong: var(--shell-border-strong);
  --academy-color-bg: var(--shell-bg);
  --academy-color-surface-1: var(--shell-surface);
  --academy-color-surface-2: var(--shell-surface-2);
}
.surface-card {
  border-radius: var(--shell-radius-xl, 28px);
  border: 1px solid var(--shell-border);
  background: color-mix(in srgb, var(--shell-surface) 90%, transparent);
  box-shadow: var(--shell-shadow);
}
.academy-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.section-card {
  padding: 0;
  overflow: hidden;
  border-top: 3px solid transparent;
  min-width: 0;
}
.section-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--shell-border);
}
.section-kicker {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--shell-primary);
}
.section-header h3 {
  margin: 10px 0 0;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.section-body {
  padding: 24px;
}
.section-card[data-type=concept] {
  border-top-color: var(--shell-primary);
}
.section-card[data-type=architecture] {
  border-top-color: var(--shell-secondary);
}
.section-card[data-type=architecture] .section-kicker {
  color: var(--shell-secondary);
}
.section-card[data-type=architecture] .section-header {
  background: color-mix(in srgb, var(--shell-secondary) 5%, transparent);
}
.section-card[data-type=guided-explanation] {
  border-top-color: var(--shell-primary);
}
.section-card[data-type=example] {
  border-top-color: var(--shell-success);
}
.section-card[data-type=example] .section-kicker {
  color: var(--shell-success);
}
.section-card[data-type=example] .section-header {
  background: color-mix(in srgb, var(--shell-success) 5%, transparent);
}
.section-card[data-type=workflow] {
  border-top-color: var(--shell-primary);
}
.section-card[data-type=review] {
  border-top-color: var(--shell-success);
}
.section-card[data-type=review] .section-kicker {
  color: var(--shell-success);
}
.section-card[data-type=resources] {
  border-top-color: var(--shell-secondary);
}
.section-card[data-type=resources] .section-kicker {
  color: var(--shell-secondary);
}
.section-card[data-type=resources] .section-header {
  background: color-mix(in srgb, var(--shell-secondary) 5%, transparent);
}
.section-card[data-type=hook] {
  border-top-color: var(--shell-danger);
}
.section-card[data-type=hook] .section-kicker {
  color: var(--shell-danger);
}
.section-card[data-type=mental-model] {
  border-top-color: var(--shell-secondary);
}
.section-card[data-type=mental-model] .section-kicker {
  color: var(--shell-secondary);
}
.section-card[data-type=walkthrough] {
  border-top-color: var(--shell-primary);
}
.section-card[data-type=try-it] {
  border-top-color: var(--shell-success);
}
.section-card[data-type=try-it] .section-kicker {
  color: var(--shell-success);
}
.section-card[data-type=try-it] .section-header {
  background: color-mix(in srgb, var(--shell-success) 5%, transparent);
}
.section-card[data-type=common-errors] {
  border-top-color: var(--shell-danger);
}
.section-card[data-type=common-errors] .section-kicker {
  color: var(--shell-danger);
}
.section-card[data-type=checkpoint] {
  border-top-color: var(--shell-secondary);
}
.section-card[data-type=next-steps] {
  border-top-color: var(--shell-secondary);
}
.section-card[data-type=motivation] {
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  border-top: 1px solid var(--shell-border);
}
.section-card[data-type=motivation] .section-kicker {
  color: var(--shell-warning);
}
.section-card[data-type=motivation] .section-header {
  background: transparent;
  border-bottom-color: transparent;
  padding-bottom: 8px;
}
.section-card[data-type=motivation] .section-body {
  padding-top: 0;
}
.block-renderer {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.generic-block-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.text-block {
  color: var(--shell-text-2);
  font-size: 17px;
  line-height: 1.75;
  max-width: 760px;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
.context-block {
  color: var(--shell-text-3);
  font-size: 14px;
  line-height: 1.65;
}
.content-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--shell-text);
  margin-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--shell-border);
}
.plain-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--shell-text-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 760px;
}
.plain-list li {
  padding: 8px 0 8px 22px;
  position: relative;
  line-height: 1.7;
  border-bottom: 1px solid color-mix(in srgb, var(--shell-border) 60%, transparent);
}
.plain-list li:last-child {
  border-bottom: none;
}
.plain-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--shell-primary);
  opacity: 0.55;
}
.callout {
  border-radius: 18px;
  border-left: 4px solid var(--shell-primary);
  background: color-mix(in srgb, var(--shell-primary) 10%, transparent);
  padding: 16px;
  color: var(--shell-text);
  line-height: 1.7;
}
.callout.danger,
.callout[class*=danger] {
  border-left-color: var(--shell-danger);
  background: color-mix(in srgb, var(--shell-danger) 10%, transparent);
}
.callout.warning {
  border-left-color: var(--shell-warning);
  background: color-mix(in srgb, var(--shell-warning) 10%, transparent);
}
.insight-block {
  position: relative;
  border-radius: 18px;
  padding: 20px 20px 20px 56px;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--shell-secondary) 14%, transparent),
      color-mix(in srgb, var(--shell-primary) 8%, transparent));
  border: 1px solid color-mix(in srgb, var(--shell-secondary) 30%, transparent);
  color: var(--shell-text);
  line-height: 1.75;
  font-size: 15px;
  font-style: italic;
}
.insight-block::before {
  content: "\1f4a1";
  position: absolute;
  left: 18px;
  top: 18px;
  font-size: 20px;
  font-style: normal;
}
.analogy-block {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--shell-secondary) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--shell-secondary) 22%, transparent);
  color: var(--shell-text-2);
  line-height: 1.7;
  font-size: 15px;
}
.analogy-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.code-block {
  margin: 0;
  border-radius: 18px;
  padding: 18px;
  background: #07111b;
  border: 1px solid color-mix(in srgb, var(--shell-primary) 22%, transparent);
  color: #d8f7ff;
  overflow: auto;
  font-family: var(--academy-font-family-mono);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre;
}
.code-block-wrapper {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--shell-primary) 22%, transparent);
}
.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: color-mix(in srgb, var(--shell-primary) 10%, #07111b);
  border-bottom: 1px solid color-mix(in srgb, var(--shell-primary) 18%, transparent);
}
.code-title {
  font-size: 12px;
  color: var(--shell-text-2);
  font-family: var(--academy-font-family-mono);
}
.code-lang {
  font-size: 11px;
  color: var(--shell-text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.code-block-wrapper .code-block {
  border-radius: 0;
  border: none;
  margin: 0;
}
.annotated-code-block {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--shell-primary) 22%, transparent);
}
.annotated-code-block .code-block-header {
  background: color-mix(in srgb, var(--shell-primary) 10%, #07111b);
}
.annotated-lines {
  background: #07111b;
  padding: 12px 0;
}
.annotated-line {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 3px 18px;
}
.annotated-line.highlighted {
  background: color-mix(in srgb, var(--shell-primary) 10%, transparent);
}
.line-code {
  font-family: var(--academy-font-family-mono);
  font-size: 13px;
  color: #d8f7ff;
  white-space: pre;
}
.line-annotation {
  font-size: 12px;
  color: var(--shell-warning);
  font-style: italic;
  white-space: nowrap;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.terminal-block {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--shell-border);
}
.terminal-block[data-variant=error] {
  border-color: color-mix(in srgb, var(--shell-danger) 40%, transparent);
}
.terminal-block[data-variant=success] {
  border-color: color-mix(in srgb, var(--shell-success) 40%, transparent);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #1a2030;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.terminal-dots {
  display: flex;
  gap: 6px;
}
.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dots span:nth-child(1) {
  background: #ff5f57;
}
.terminal-dots span:nth-child(2) {
  background: #ffbd2e;
}
.terminal-dots span:nth-child(3) {
  background: #28c940;
}
.terminal-label {
  font-size: 12px;
  color: var(--shell-text-3);
  font-family: var(--academy-font-family-mono);
}
.terminal-body {
  background: #0a1520;
  padding: 16px 18px;
}
.terminal-command {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--academy-font-family-mono);
  font-size: 13px;
  color: #d8f7ff;
  margin-bottom: 8px;
}
.terminal-prompt {
  color: var(--shell-success);
  font-weight: 700;
  -webkit-user-select: none;
  user-select: none;
}
.terminal-output {
  margin: 0;
  font-family: var(--academy-font-family-mono);
  font-size: 12px;
  color: #8ea6c9;
  white-space: pre-wrap;
  line-height: 1.6;
}
.terminal-block[data-variant=error] .terminal-output {
  color: #ff9aa5;
}
.terminal-block[data-variant=success] .terminal-output {
  color: #7de8c0;
}
.before-after-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ba-label {
  font-size: 13px;
  color: var(--shell-text-3);
  font-weight: 600;
}
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 800px) {
  .ba-grid {
    grid-template-columns: 1fr;
  }
}
.ba-panel {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--shell-border);
}
.ba-caption {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ba-before .ba-caption {
  background: color-mix(in srgb, var(--shell-danger) 12%, transparent);
  color: var(--shell-danger);
  border-bottom: 1px solid color-mix(in srgb, var(--shell-danger) 20%, transparent);
}
.ba-after .ba-caption {
  background: color-mix(in srgb, var(--shell-success) 12%, transparent);
  color: var(--shell-success);
  border-bottom: 1px solid color-mix(in srgb, var(--shell-success) 20%, transparent);
}
.ba-panel .code-block {
  border-radius: 0;
  border: none;
  margin: 0;
  flex: 1;
}
.exercise-block {
  border-radius: 18px;
  border: 2px solid color-mix(in srgb, var(--shell-success) 35%, transparent);
  background: color-mix(in srgb, var(--shell-success) 6%, transparent);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.exercise-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--shell-success);
}
.exercise-icon {
  font-size: 18px;
}
.exercise-instruction {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--shell-text);
  line-height: 1.4;
}
.exercise-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.exercise-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 12px;
  font-size: 14px;
  color: var(--shell-text-2);
  line-height: 1.6;
}
.exercise-expected {
  font-size: 14px;
  color: var(--shell-text-2);
  padding: 10px 14px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--shell-surface) 60%, transparent);
  border: 1px solid var(--shell-border);
}
.expected-label {
  font-weight: 700;
  color: var(--shell-success);
  margin-right: 6px;
}
.exercise-hint {
  font-size: 13px;
  color: var(--shell-text-3);
  font-style: italic;
}
.file-tree-block {
  background: #07111b;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--shell-primary) 18%, transparent);
  padding: 16px 0;
  overflow: auto;
}
.tree-label {
  padding: 0 14px 10px;
  font-size: 12px;
  color: var(--shell-text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 6px;
}
.tree-node {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-family: var(--academy-font-family-mono);
  font-size: 13px;
  white-space: nowrap;
}
.tree-icon {
  font-size: 14px;
  flex-shrink: 0;
}
.tree-name {
  color: #d8f7ff;
}
.tree-dir {
  color: var(--shell-primary);
  font-weight: 600;
}
.tree-tag {
  display: inline-flex;
  padding: 1px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--shell-secondary) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--shell-secondary) 30%, transparent);
  color: var(--shell-secondary);
  font-size: 11px;
}
.tree-note {
  font-size: 11px;
  color: var(--shell-text-3);
  font-style: italic;
}
.content-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.content-image img {
  max-width: 100%;
  border-radius: 14px;
}
.image-caption {
  font-size: 13px;
  color: var(--shell-text-3);
  font-style: italic;
  text-align: center;
}
.diagram-box {
  min-height: 190px;
  border-radius: 22px;
  border: 1px dashed color-mix(in srgb, var(--shell-primary) 26%, transparent);
  background: color-mix(in srgb, var(--shell-primary) 8%, transparent);
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  color: color-mix(in srgb, var(--shell-primary) 80%, white 20%);
  font-weight: 600;
}
.diagram-box.inline {
  min-height: 140px;
}
.table-wrap {
  overflow: auto;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--shell-border);
}
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--shell-border);
  text-align: left;
}
.compare-table th {
  background: color-mix(in srgb, var(--shell-primary) 10%, transparent);
  color: var(--shell-primary);
}
.checklist-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checklist-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--shell-border);
  background: color-mix(in srgb, var(--shell-surface) 60%, transparent);
  color: var(--shell-text-2);
  line-height: 1.6;
}
.checklist-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: color-mix(in srgb, var(--shell-success) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--shell-success) 32%, transparent);
  color: var(--shell-success);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}
.quiz-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quiz-question {
  font-size: 17px;
  font-weight: 600;
  color: var(--shell-text);
  line-height: 1.5;
  margin: 0 0 4px;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--shell-border);
  background: color-mix(in srgb, var(--shell-surface) 60%, transparent);
  color: var(--shell-text-2);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s,
    background 0.18s,
    color 0.18s;
}
.quiz-option:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--shell-primary) 40%, transparent);
  background: color-mix(in srgb, var(--shell-primary) 8%, transparent);
  color: var(--shell-text);
}
.quiz-option.selected {
  border-color: color-mix(in srgb, var(--shell-primary) 50%, transparent);
  background: color-mix(in srgb, var(--shell-primary) 12%, transparent);
  color: var(--shell-text);
}
.quiz-option.correct {
  border-color: var(--shell-success);
  background: color-mix(in srgb, var(--shell-success) 12%, transparent);
  color: var(--shell-text);
}
.quiz-option.wrong {
  border-color: var(--shell-danger);
  background: color-mix(in srgb, var(--shell-danger) 10%, transparent);
  color: var(--shell-text);
}
.quiz-option:disabled {
  cursor: default;
}
.quiz-opt-marker {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--shell-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--shell-text-3);
}
.quiz-option.selected .quiz-opt-marker {
  border-color: var(--shell-primary);
  color: var(--shell-primary);
}
.quiz-option.correct .quiz-opt-marker {
  border-color: var(--shell-success);
  color: var(--shell-success);
  background: color-mix(in srgb, var(--shell-success) 20%, transparent);
}
.quiz-option.wrong .quiz-opt-marker {
  border-color: var(--shell-danger);
  color: var(--shell-danger);
  background: color-mix(in srgb, var(--shell-danger) 20%, transparent);
}
.quiz-actions {
  padding-top: 4px;
}
.quiz-explanation {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--shell-surface) 60%, transparent);
  border: 1px solid var(--shell-border);
  font-size: 15px;
  color: var(--shell-text-2);
  line-height: 1.65;
}
.quiz-exp-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: color-mix(in srgb, var(--shell-danger) 18%, transparent);
  color: var(--shell-danger);
  border: 1px solid color-mix(in srgb, var(--shell-danger) 30%, transparent);
}
.quiz-exp-icon.correct {
  background: color-mix(in srgb, var(--shell-success) 18%, transparent);
  color: var(--shell-success);
  border-color: color-mix(in srgb, var(--shell-success) 30%, transparent);
}
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--shell-border);
  background: color-mix(in srgb, var(--shell-surface) 60%, transparent);
}
.step-num {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--shell-primary);
  color: #08101d;
  font-weight: 700;
}
.lesson-hero-visual {
  position: relative;
  border-radius: var(--shell-radius-xl, 28px);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  background-color: var(--shell-surface);
  background-size: cover;
  background-position: center right;
  border: 1px solid var(--shell-border);
}
.lesson-hero-visual.has-bg {
  border-color: transparent;
}
.lesson-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      var(--shell-surface) 40%,
      color-mix(in srgb, var(--shell-surface) 80%, transparent) 62%,
      color-mix(in srgb, var(--shell-surface) 20%, transparent) 100%);
  pointer-events: none;
}
.lesson-hero-content {
  position: relative;
  z-index: 1;
  padding: 36px 40px;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.lesson-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.lesson-track-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--shell-primary);
  font-weight: 700;
}
.lesson-meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--shell-border) 60%, transparent);
  background: rgba(15, 23, 42, 0.5);
  color: var(--shell-text-3);
  font-size: 12px;
}
.lesson-title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.15;
  color: var(--shell-text);
  overflow-wrap: anywhere;
}
.lesson-description {
  margin: 0 0 20px;
  color: var(--shell-text-2);
  max-width: 58ch;
  line-height: 1.65;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.lesson-progress-track {
  height: 3px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: 320px;
}
.lesson-progress-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--shell-primary);
}
@media (max-width: 900px) {
  .lesson-hero-visual {
    min-height: 240px;
  }
  .lesson-hero-content {
    padding: 24px 20px;
  }
}
.lesson-goals-check {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 20px 24px 24px;
  border-radius: var(--shell-radius-xl, 28px);
  border: 1px solid var(--shell-border);
  background: color-mix(in srgb, var(--shell-surface) 90%, transparent);
}
.lgc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.lgc-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--shell-primary);
  font-weight: 700;
}
.lgc-badge {
  font-size: 11px;
  font-weight: 700;
  color: #22c55e;
  background: color-mix(in srgb, #22c55e 12%, transparent);
  padding: 2px 10px;
  border-radius: 999px;
}
.lgc-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--shell-border) 50%, transparent);
  cursor: pointer;
}
.lgc-item:last-child {
  border-bottom: none;
}
.lgc-icon {
  font-size: 14px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  color: var(--shell-text-3);
}
.lgc-item.checked .lgc-icon {
  color: #22c55e;
}
.lgc-text {
  font-size: 13px;
  color: var(--shell-text-2);
  line-height: 1.5;
}
.lgc-item.checked .lgc-text {
  color: var(--shell-text-3);
  text-decoration: line-through;
}
.btn-primary {
  border: none;
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 700;
  background: var(--shell-primary);
  color: #06111a;
  cursor: pointer;
}

/* angular:styles/global:styles */
/*# sourceMappingURL=styles.css.map */
