:root {
  color-scheme: light;
  --ink: #18181b;
  --muted: #666672;
  --line: #e7e7ec;
  --paper: #ffffff;
  --canvas: #f4f4f7;
  --night: #0e0e12;
  --indigo: #4f46e5;
  --cyan: #22d3ee;
  --violet-soft: #eef0ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Manrope', system-ui, sans-serif; color: var(--ink); background: var(--canvas); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
::selection { color: #fff; background: var(--indigo); }

.wiki-nav {
  position: sticky; top: 0; z-index: 40; color: #fff;
  background: rgba(14,14,18,.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.wiki-nav__inner { max-width: 1240px; min-height: 66px; margin: auto; padding: 0 24px; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.brand__mark { width: 30px; height: 30px; position: relative; border: 3px solid rgba(255,255,255,.35); border-radius: 50%; }
.brand__mark::before { content: ''; position: absolute; inset: -3px; border: 3px solid transparent; border-top-color: var(--cyan); border-right-color: var(--cyan); border-radius: 50%; transform: rotate(18deg); }
.brand__mark::after { content: ''; position: absolute; width: 6px; height: 6px; inset: 0; margin: auto; border-radius: 50%; background: #fff; }
.wiki-nav__links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.wiki-nav__link { padding: 9px 12px; border-radius: 10px; color: rgba(255,255,255,.72); font-size: 14px; font-weight: 700; }
.wiki-nav__link[aria-current='page'] { color: #fff; background: rgba(255,255,255,.09); }
.language-select { padding: 9px 34px 9px 12px; border-radius: 10px; color: #fff; background: #202028; border: 1px solid rgba(255,255,255,.13); font-size: 13px; font-weight: 700; }
.download-link { padding: 10px 15px; border-radius: 10px; color: var(--ink); background: #fff; font-size: 13px; font-weight: 800; }

.wiki-hero { color: #fff; background: radial-gradient(90% 170% at 10% -20%, #5147d9 0%, #30247f 38%, #17172a 70%, var(--night) 100%); overflow: hidden; }
.wiki-hero__inner { max-width: 1240px; margin: auto; padding: 62px 24px 66px; position: relative; }
.wiki-hero__inner::after { content: ''; position: absolute; width: 420px; height: 420px; right: -150px; top: -210px; border-radius: 50%; background: radial-gradient(circle, rgba(34,211,238,.32), transparent 68%); }
.eyebrow { color: #67e8f9; font: 700 12px/1.2 'Space Mono', monospace; letter-spacing: .11em; }
.wiki-hero h1 { max-width: 740px; margin: 14px 0; font-size: clamp(38px, 6vw, 62px); line-height: 1.03; letter-spacing: -.04em; }
.wiki-hero p { max-width: 680px; margin: 0; color: rgba(255,255,255,.74); font-size: 18px; line-height: 1.6; font-weight: 500; }
.search-shell { max-width: 680px; margin-top: 30px; }
.search-box { display: flex; align-items: center; gap: 12px; padding: 0 17px; height: 54px; border-radius: 15px; background: #fff; box-shadow: 0 20px 45px rgba(0,0,0,.2); }
.search-icon { width: 16px; height: 16px; border: 2px solid #73737f; border-radius: 50%; position: relative; flex: none; }
.search-icon::after { content: ''; width: 7px; height: 2px; position: absolute; right: -5px; bottom: -3px; border-radius: 2px; background: #73737f; transform: rotate(45deg); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-weight: 600; }
.search-box input:focus { color: var(--ink); }
.search-hint { display: block; margin: 9px 4px 0; color: rgba(255,255,255,.48); font-size: 12px; }

.wiki-layout { max-width: 1240px; margin: auto; padding: 34px 24px 80px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 34px; align-items: start; }
.wiki-sidebar { position: sticky; top: 98px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 12px 30px rgba(23,23,42,.04); }
.wiki-sidebar h2 { margin: 0 0 13px; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: #777783; }
.chapter-list { display: grid; gap: 4px; }
.chapter { width: 100%; padding: 10px 11px; border: 0; border-radius: 10px; text-align: left; color: #5c5c67; background: transparent; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.chapter:hover { color: #4338ca; background: #f5f5ff; }
.chapter.is-active { color: #4338ca; background: var(--violet-soft); }
.chapter__status { float: right; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: #d4d4da; }
.chapter.is-active .chapter__status { background: var(--indigo); box-shadow: 0 0 0 4px rgba(79,70,229,.12); }

.wiki-article { min-width: 0; }
.breadcrumb { color: #7a7a86; font-size: 13px; font-weight: 700; }
.article-head { padding: 20px 0 28px; border-bottom: 1px solid var(--line); }
.article-kicker { margin-bottom: 9px; color: var(--indigo); font: 700 12px/1.2 'Space Mono', monospace; letter-spacing: .1em; }
.article-head h2 { margin: 0 0 12px; font-size: clamp(34px, 5vw, 50px); line-height: 1.06; letter-spacing: -.035em; }
.article-head p { max-width: 780px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.badge { padding: 6px 10px; border-radius: 999px; color: #3730a3; background: var(--violet-soft); border: 1px solid #dde1fd; font-size: 11px; font-weight: 800; }

.manual-content { padding-top: 34px; }
.manual-lead { padding: 28px; border: 1px solid #dfe2fd; border-radius: 22px; background: linear-gradient(145deg, #fff, #f2f3ff); }
.manual-eyebrow { margin-bottom: 13px; color: var(--indigo); font: 700 11px/1.2 'Space Mono', monospace; letter-spacing: .1em; text-transform: uppercase; }
.manual-lead > p { max-width: 800px; margin: 0 0 14px; color: #555562; font-size: 16px; line-height: 1.72; }
.manual-callout { margin-top: 22px; padding: 20px 22px; border-left: 4px solid var(--cyan); border-radius: 0 14px 14px 0; color: #fff; background: var(--night); }
.manual-callout strong { display: block; margin-bottom: 6px; font-size: 15px; }
.manual-callout p { margin: 0; color: rgba(255,255,255,.7); font-size: 13.5px; line-height: 1.6; }
.manual-section { padding: 46px 0 4px; }
.manual-section__head { max-width: 820px; margin-bottom: 23px; }
.manual-section__head h3 { margin: 0 0 9px; font-size: clamp(25px, 4vw, 34px); letter-spacing: -.03em; }
.manual-section__head p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.term-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.term-card { padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.term-card h4 { margin: 0 0 7px; color: #4338ca; font-size: 16px; }
.term-card p, .manual-map p, .data-grid p, .problem-grid p, .exercise-list p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.62; }
.guide-list { display: grid; gap: 14px; }
.guide-step { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 23px; border: 1px solid var(--line); border-radius: 19px; background: var(--paper); }
.guide-step__number { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; color: #fff; background: linear-gradient(145deg, var(--indigo), #26bfe6); font: 700 13px/1 'Space Mono', monospace; }
.guide-step h4 { margin: 2px 0 17px; font-size: 20px; letter-spacing: -.02em; }
.guide-field { display: grid; grid-template-columns: 135px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.guide-field strong { color: #444451; font-size: 12px; }
.guide-field p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.58; }
.guide-field--warning strong { color: #a34817; }
.guide-field--warning p { color: #81411e; }
.screen-caption strong { display: block; margin-bottom: 5px; }
.screen-caption p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.manual-map { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.manual-map__item { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.manual-map__item:last-child { border-bottom: 0; }
.manual-map__item > span { color: #7c7c88; font: 700 11px/1.5 'Space Mono', monospace; }
.manual-map h4, .data-grid h4, .problem-grid h4, .exercise-list h4 { margin: 0 0 5px; font-size: 14.5px; }
.manual-section--dark { margin-top: 46px; padding: 28px; border-radius: 22px; color: #fff; background: var(--night); }
.manual-section--dark .manual-section__head { margin-bottom: 18px; }
.data-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.data-grid article { padding: 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; background: rgba(255,255,255,.06); }
.data-grid article:last-child { grid-column: 1 / -1; }
.data-grid h4 { color: #67e8f9; }
.data-grid p { color: rgba(255,255,255,.65); }
.exercise-list { display: grid; gap: 9px; counter-reset: exercise; }
.exercise-list article { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.exercise-list article > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #4338ca; background: var(--violet-soft); font-weight: 800; }
.problem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.problem-grid article { padding: 19px; border: 1px solid #f1d1bf; border-radius: 16px; background: #fff8f3; }
.problem-grid h4 { color: #963f18; }
.manual-faq { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.manual-faq details { border-bottom: 1px solid var(--line); }
.manual-faq details:last-child { border-bottom: 0; }
.manual-faq summary { padding: 18px 20px; cursor: pointer; font-size: 14px; font-weight: 800; }
.manual-faq p { margin: 0; padding: 0 20px 19px; color: var(--muted); font-size: 13.5px; line-height: 1.62; }
.manual-ready { margin-top: 46px; padding: 27px; border: 1px solid #bfe8d4; border-radius: 22px; background: #f0fdf7; }
.manual-ready .manual-section__head { margin-bottom: 16px; }
.manual-ready ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.manual-ready li { position: relative; padding-left: 28px; color: #315e4b; font-size: 13.5px; line-height: 1.55; }
.manual-ready li::before { content: '✓'; position: absolute; left: 3px; color: #059669; font-weight: 900; }
.manual-next { margin-top: 22px; padding-top: 19px; border-top: 1px solid #bfe8d4; }
.manual-next strong { color: #047857; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.manual-next p { margin: 7px 0 0; color: #315e4b; font-size: 14px; line-height: 1.6; }

.dashboard-lead { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, .7fr); gap: 22px; padding: 30px; border-radius: 24px; color: #fff; background: radial-gradient(circle at 92% 10%, rgba(34,211,238,.25), transparent 34%), linear-gradient(135deg, #18172d, #30247f); }
.dashboard-lead p { margin: 0 0 13px; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.7; }
.dashboard-lead .manual-eyebrow { color: #67e8f9; }
.dashboard-rule { align-self: stretch; padding: 22px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.08); }
.dashboard-rule strong { display: block; margin-bottom: 10px; font-size: 17px; }
.dashboard-rule p { margin: 0; color: rgba(255,255,255,.78); font-size: 13px; }
.dashboard-section--anatomy { padding-top: 52px; }
.dashboard-anatomy { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.dashboard-anatomy__item { grid-column: span 2; padding: 21px; border: 1px solid #dfe2fd; border-radius: 20px; background: linear-gradient(145deg, #fff, #f5f5ff); }
.dashboard-anatomy__item:nth-child(4), .dashboard-anatomy__item:nth-child(5) { grid-column: span 3; }
.dashboard-anatomy__index { display: inline-block; margin-bottom: 11px; color: #6366f1; font: 700 11px/1 'Space Mono', monospace; }
.dashboard-anatomy h4 { margin: 0 0 17px; font-size: 18px; }
.dashboard-anatomy__item > div { padding: 10px 0; border-top: 1px solid #e3e4f2; }
.dashboard-anatomy__item strong { display: block; margin-bottom: 4px; color: #494754; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.dashboard-anatomy__item p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.dashboard-screens .screen-stage { background: linear-gradient(155deg, #dff9fa, #ece9ff); }
.dashboard-section--metrics { margin-top: 46px; padding: 30px; border-radius: 24px; color: #fff; background: #0e0e12; }
.dashboard-section--metrics .manual-section__head p { color: rgba(255,255,255,.6); }
.dashboard-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dashboard-metric { padding: 21px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.055); }
.dashboard-metric h4 { margin: 0 0 16px; color: #67e8f9; font-size: 17px; }
.dashboard-metric__field { padding-top: 10px; }
.dashboard-metric strong { display: block; margin-bottom: 4px; color: rgba(255,255,255,.45); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.dashboard-metric p { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.55; }
.dashboard-formula { margin: 13px 0 3px; padding: 12px 14px; border-radius: 11px; background: rgba(34,211,238,.1); }
.dashboard-formula strong { color: #67e8f9; }
.dashboard-action-grid, .dashboard-scenario-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dashboard-action-grid article, .dashboard-scenario-grid article { padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.dashboard-action-grid h4, .dashboard-scenario-grid h4, .dashboard-source-flow h4, .dashboard-exercise h4 { margin: 0 0 6px; font-size: 14px; }
.dashboard-action-grid p, .dashboard-scenario-grid p, .dashboard-source-flow p, .dashboard-exercise p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.58; }
.dashboard-action-grid article:last-child { grid-column: 1 / -1; }
.dashboard-section--flow { margin-top: 46px; padding: 29px; border-radius: 23px; background: linear-gradient(145deg, #e7fbfc, #f1efff); }
.dashboard-source-flow { display: grid; gap: 0; }
.dashboard-source-flow article { display: grid; grid-template-columns: 48px 1fr; gap: 15px; position: relative; padding: 16px 0; border-bottom: 1px solid rgba(79,70,229,.12); }
.dashboard-source-flow article:last-child { border-bottom: 0; }
.dashboard-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: #4f46e5; font: 700 11px/1 'Space Mono', monospace; }
.dashboard-scenario-grid article { border-left: 4px solid #8b87ed; }
.dashboard-section--exercise { margin-top: 46px; padding: 28px; border: 1px dashed #aeb5f5; border-radius: 22px; background: #fafaff; }
.dashboard-exercise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.dashboard-exercise article { padding: 17px; border-radius: 15px; background: #fff; box-shadow: 0 7px 20px rgba(30,24,70,.06); }
.dashboard-exercise .dashboard-number { margin-bottom: 13px; color: #4338ca; background: #eef0ff; }
.dashboard-ready { background: linear-gradient(145deg, #effcf6, #e6fbf5); }

.filament-lead { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); gap: 24px; padding: 30px; border: 1px solid #d9eadf; border-radius: 24px; background: radial-gradient(circle at 88% 8%, rgba(16,185,129,.14), transparent 35%), linear-gradient(145deg, #fff, #f0fdf7); }
.filament-lead > div > p { margin: 0 0 13px; color: #505d57; font-size: 15px; line-height: 1.72; }
.filament-lead .manual-eyebrow { color: #047857; }
.filament-rule { align-self: stretch; padding: 22px; border-radius: 18px; color: #fff; background: #153f33; }
.filament-rule::before { content: '?'; width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 13px; color: #a7f3d0; font: 700 17px/1 'Space Mono', monospace; }
.filament-rule strong { display: block; margin-bottom: 9px; font-size: 17px; }
.filament-rule p { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.64; }
.filament-section--concepts { padding-top: 52px; }
.filament-concepts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.filament-concepts article { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: 19px; background: #fff; }
.filament-concepts article:nth-child(2) { border-color: #bfe8d4; background: #f2fcf7; }
.filament-concepts article:nth-child(3) { border-color: #d9dcfb; background: #f5f5ff; }
.filament-concept__marker { display: inline-block; margin-bottom: 14px; color: #047857; font: 700 10px/1 'Space Mono', monospace; letter-spacing: .08em; }
.filament-concepts h4 { margin: 0 0 8px; font-size: 17px; }
.filament-concepts p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.filament-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.filament-path { display: flex; flex-direction: column; min-height: 310px; padding: 21px; border-radius: 20px; color: #fff; background: #25252d; }
.filament-path--2 { background: #174e40; }
.filament-path--3 { background: #30247f; }
.filament-path__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.filament-path__number { font: 700 11px/1 'Space Mono', monospace; opacity: .6; }
.filament-path__badge { padding: 6px 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .05em; }
.filament-path h4 { margin: 25px 0 9px; font-size: 19px; }
.filament-path > p { margin: 0; color: rgba(255,255,255,.68); font-size: 13px; line-height: 1.6; }
.filament-path__use { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.13); }
.filament-path__use strong { display: block; margin-bottom: 5px; color: rgba(255,255,255,.48); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.filament-path__use p { margin: 0; color: rgba(255,255,255,.82); font-size: 12px; line-height: 1.5; }
.filament-section--list { margin-top: 46px; padding: 29px; border-radius: 23px; background: linear-gradient(145deg, #edfdf7, #f3f3ff); }
.filament-list-map { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.filament-list-map article { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 17px; border-radius: 15px; background: rgba(255,255,255,.82); }
.filament-list-map h4 { margin: 0 0 5px; font-size: 14px; }
.filament-list-map p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.filament-list-map .dashboard-number { width: 34px; height: 34px; color: #047857; background: #d7f8e7; }
.filament-list-map article:last-child { grid-column: 1 / -1; }
.filament-section--fields { padding-top: 54px; }
.filament-field-groups { display: grid; gap: 18px; }
.filament-field-group { overflow: hidden; border: 1px solid var(--line); border-radius: 21px; background: #fff; }
.filament-field-group > header { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 21px; background: #f7f7fa; }
.filament-field-group > header > span { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: #4f46e5; font: 700 11px/1 'Space Mono', monospace; }
.filament-field-group > header h4 { margin: 0 0 4px; font-size: 18px; }
.filament-field-group > header p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.filament-field-list article { display: grid; grid-template-columns: minmax(150px,.7fr) minmax(0,1.35fr) minmax(0,1.35fr); gap: 18px; padding: 18px 21px; border-top: 1px solid var(--line); }
.filament-field__identity h5 { margin: 0 0 7px; font-size: 14px; }
.filament-field__identity span { display: inline-block; padding: 5px 7px; border-radius: 7px; color: #047857; background: #e8faf1; font: 700 8.5px/1.2 'Space Mono', monospace; letter-spacing: .04em; }
.filament-field-list strong { display: block; margin-bottom: 5px; color: #767681; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.filament-field-list p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.58; }
.filament-section--catalog { margin-top: 46px; padding: 29px; border-radius: 24px; color: #fff; background: #102f27; }
.filament-catalog-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.filament-catalog-flow article { padding: 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.055); }
.filament-catalog-flow .dashboard-number { margin-bottom: 13px; color: #064e3b; background: #a7f3d0; }
.filament-catalog-flow h4 { margin: 0 0 7px; color: #d1fae5; font-size: 14px; }
.filament-catalog-flow p { margin: 0; color: rgba(255,255,255,.65); font-size: 12.5px; line-height: 1.58; }
.filament-section--stock { margin-top: 46px; padding: 29px; border: 1px solid #d9dcfb; border-radius: 23px; background: #f6f6ff; }
.filament-stock-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.filament-stock-grid article { padding: 18px; border-radius: 16px; background: #fff; box-shadow: 0 8px 22px rgba(45,39,110,.06); }
.filament-stock-grid article:last-child { grid-column: 1 / -1; }
.filament-stock-grid h4 { margin: 0 0 7px; color: #4338ca; font-size: 14px; }
.filament-stock-grid p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.58; }
.filament-problems { grid-template-columns: repeat(2, 1fr); }
.filament-section--exercise { margin-top: 46px; padding: 29px; border-radius: 23px; background: linear-gradient(145deg, #fff7ed, #fff); }
.filament-exercise { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.filament-exercise article { display: grid; grid-template-columns: 42px 1fr; gap: 13px; padding: 17px; border: 1px solid #f2d2b4; border-radius: 15px; background: rgba(255,255,255,.85); }
.filament-exercise .dashboard-number { width: 36px; height: 36px; color: #9a3412; background: #ffedd5; }
.filament-exercise h4 { margin: 0 0 5px; font-size: 14px; }
.filament-exercise p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.58; }
.filament-ready { border-color: #b7e4cf; background: linear-gradient(145deg, #f0fdf7, #e7fbf2); }

.atlas { --atlas: #0f766e; --atlas-dark: #123d39; --atlas-soft: #e9fbf6; --atlas-line: #bce8dd; }
.atlas--blue { --atlas: #2563eb; --atlas-dark: #142c59; --atlas-soft: #edf4ff; --atlas-line: #bfd3fb; }
.atlas--violet { --atlas: #7c3aed; --atlas-dark: #34205c; --atlas-soft: #f5f0ff; --atlas-line: #dbcafb; }
.atlas--orange { --atlas: #c2410c; --atlas-dark: #542617; --atlas-soft: #fff4e8; --atlas-line: #f2cfaa; }
.atlas--cyan { --atlas: #087c91; --atlas-dark: #123e48; --atlas-soft: #eafafd; --atlas-line: #b7e3eb; }
.atlas--rose { --atlas: #be185d; --atlas-dark: #532238; --atlas-soft: #fff0f6; --atlas-line: #f0bfd2; }
.atlas-lead { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(240px,.65fr); gap: 24px; padding: 31px; border: 1px solid var(--atlas-line); border-radius: 25px; background: radial-gradient(circle at 90% 8%, color-mix(in srgb, var(--atlas) 18%, transparent), transparent 36%), linear-gradient(145deg,#fff,var(--atlas-soft)); }
.atlas-lead .manual-eyebrow { color: var(--atlas); }
.atlas-lead > div > p { margin: 0 0 13px; color: #4d5554; font-size: 15px; line-height: 1.72; }
.atlas-callout { align-self: stretch; padding: 23px; border-radius: 19px; color: #fff; background: var(--atlas-dark); }
.atlas-callout::before { content: 'i'; width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 17px; border: 1px solid rgba(255,255,255,.2); border-radius: 13px; color: color-mix(in srgb, var(--atlas-soft) 80%, white); font: 700 17px/1 'Space Mono',monospace; }
.atlas-callout strong { display: block; margin-bottom: 9px; font-size: 17px; }
.atlas-callout p { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.64; }
.atlas-section { padding-top: 52px; }
.atlas-section--screens .screen-stage { background: linear-gradient(150deg,var(--atlas-soft),#f4f2ff); }
.atlas-tour { display: grid; grid-template-columns: repeat(2,1fr); gap: 11px; }
.atlas-tour article { display: grid; grid-template-columns: 42px 1fr; gap: 13px; padding: 18px; border: 1px solid var(--atlas-line); border-radius: 17px; background: #fff; }
.atlas-tour .dashboard-number { width: 36px; height: 36px; color: var(--atlas); background: var(--atlas-soft); }
.atlas-tour h4, .atlas-workflow h4, .atlas-rules h4, .atlas-mistakes h4, .atlas-exercise h4 { margin: 0 0 6px; font-size: 14px; }
.atlas-tour p, .atlas-workflow p, .atlas-rules p, .atlas-mistakes p, .atlas-exercise p { margin: 0; color: var(--muted); font-size: 12.8px; line-height: 1.6; }
.atlas-section--workflow { margin-top: 48px; padding: 30px; border-radius: 24px; color: #fff; background: var(--atlas-dark); }
.atlas-section--workflow .manual-section__head p { color: rgba(255,255,255,.62); }
.atlas-workflow { display: grid; gap: 0; }
.atlas-workflow article { position: relative; display: grid; grid-template-columns: 47px 1fr; gap: 15px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.atlas-workflow article:last-child { border-bottom: 0; }
.atlas-workflow .dashboard-number { width: 38px; height: 38px; color: var(--atlas-dark); background: color-mix(in srgb,var(--atlas-soft) 88%,white); }
.atlas-workflow h4 { color: #fff; }
.atlas-workflow p { color: rgba(255,255,255,.7); }
.atlas-rules { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.atlas-rules article { padding: 20px; border-left: 4px solid var(--atlas); border-radius: 4px 17px 17px 4px; background: var(--atlas-soft); }
.atlas-rules h4 { color: var(--atlas); }
.atlas-mistakes { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.atlas-mistakes article { padding: 20px; border: 1px solid #f0d2c3; border-radius: 17px; background: #fff8f3; }
.atlas-mistakes h4 { color: #9a3f18; }
.atlas-section--exercise { margin-top: 48px; padding: 29px; border: 1px dashed var(--atlas-line); border-radius: 24px; background: linear-gradient(145deg,var(--atlas-soft),#fff); }
.atlas-exercise { display: grid; grid-template-columns: repeat(2,1fr); gap: 11px; }
.atlas-exercise article { display: grid; grid-template-columns: 42px 1fr; gap: 13px; padding: 18px; border-radius: 16px; background: rgba(255,255,255,.9); box-shadow: 0 8px 22px rgba(30,24,70,.06); }
.atlas-exercise .dashboard-number { width: 36px; height: 36px; color: var(--atlas); background: var(--atlas-soft); }
.atlas-faq { border-color: var(--atlas-line); }
.atlas-ready { border-color: var(--atlas-line); background: linear-gradient(145deg,var(--atlas-soft),#fff); }
.atlas-ready li { color: color-mix(in srgb,var(--atlas-dark) 82%,#334155); }
.atlas-ready li::before, .atlas-ready .manual-next strong { color: var(--atlas); }
.atlas-ready .manual-next { border-color: var(--atlas-line); }
.atlas-ready .manual-next p { color: color-mix(in srgb,var(--atlas-dark) 75%,#64748b); }

.atlas--machine .atlas-tour article { border-radius: 7px; box-shadow: inset 4px 0 var(--atlas); }
.atlas--machine .atlas-section--workflow { background: linear-gradient(135deg,#0d1f3f,var(--atlas-dark)); }
.atlas--recipe .atlas-tour { grid-template-columns: repeat(3,1fr); }
.atlas--recipe .atlas-tour article { display: block; min-height: 170px; }
.atlas--recipe .atlas-tour .dashboard-number { margin-bottom: 15px; }
.atlas--pipeline .atlas-workflow article::after { content: ''; position: absolute; left: 18px; top: 54px; bottom: -9px; width: 2px; background: rgba(255,255,255,.18); }
.atlas--pipeline .atlas-workflow article:last-child::after { display: none; }
.atlas--vault .atlas-rules { grid-template-columns: 1fr; }
.atlas--vault .atlas-rules article { display: grid; grid-template-columns: minmax(140px,.35fr) 1fr; gap: 18px; border-left-width: 6px; }
.atlas--control .atlas-tour { grid-template-columns: repeat(3,1fr); }
.atlas--control .atlas-tour article { display: block; }
.atlas--control .atlas-tour .dashboard-number { margin-bottom: 14px; }

.article-section { padding: 38px 0 5px; }
.article-section h3 { margin: 0 0 9px; font-size: 25px; letter-spacing: -.02em; }
.section-intro { max-width: 780px; margin: 0 0 22px; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.screen-grid { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 18px; }
.screen-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.screen-stage { min-height: 510px; padding: 24px 18px 0; display: flex; justify-content: center; align-items: flex-start; background: linear-gradient(145deg, #eeeeff, #e4f9fb); overflow: hidden; }
.screen-card:nth-child(2) .screen-stage { background: linear-gradient(145deg, #f4ebff, #fff3e7); }
.phone { width: 276px; padding: 8px; border-radius: 34px; background: #101015; box-shadow: 0 26px 50px rgba(30,24,70,.24); }
.phone img { display: block; width: 260px; height: auto; aspect-ratio: 9 / 16; border: 0; border-radius: 27px; background: #f4f4f6; object-fit: contain; }
.screen-caption { padding: 16px 18px; font-size: 13px; font-weight: 800; }

.highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.highlight { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.highlight__index { width: 28px; height: 28px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 9px; color: #fff; background: var(--indigo); font: 700 11px/1 'Space Mono', monospace; }
.highlight h4 { margin: 0 0 6px; font-size: 15px; }
.highlight p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.step-list { display: grid; gap: 10px; counter-reset: steps; }
.step { counter-increment: steps; display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.step::before { content: counter(steps); width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #4338ca; background: var(--violet-soft); font: 700 14px/1 'Space Mono', monospace; }
.step h4 { margin: 1px 0 5px; font-size: 15px; }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

.flow { padding: 24px; border-radius: 20px; color: #fff; background: var(--night); }
.flow-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 22px; }
.flow-node { min-height: 82px; display: grid; place-items: center; position: relative; padding: 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.07); text-align: center; font-size: 12px; font-weight: 800; }
.flow-node:not(:last-child)::after { content: '→'; position: absolute; right: -19px; color: #67e8f9; font-size: 18px; }
.flow-note { margin: 18px 0 0; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.11); color: rgba(255,255,255,.63); font-size: 12.5px; line-height: 1.6; }
.tips { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tips li { padding: 15px 18px 15px 46px; position: relative; border-radius: 14px; background: #ecfdf5; color: #315e4b; font-size: 13.5px; font-weight: 650; line-height: 1.5; }
.tips li::before { content: '✓'; position: absolute; left: 18px; top: 14px; color: #059669; font-weight: 900; }
.next-card { margin-top: 38px; padding: 24px; border: 1px solid #d9dcfb; border-radius: 18px; background: var(--violet-soft); cursor: pointer; transition: transform .2s ease, border-color .2s ease; }
.next-card:hover { transform: translateY(-2px); border-color: #aeb5f5; }
.next-card__label { color: #4338ca; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.next-card h3 { margin: 8px 0 7px; font-size: 20px; }
.next-card p { margin: 0; color: #5d5d70; font-size: 13.5px; line-height: 1.55; }
.wiki-footer { color: rgba(255,255,255,.55); background: var(--night); }
.wiki-footer__inner { max-width: 1240px; min-height: 88px; margin: auto; padding: 22px 24px; display: flex; align-items: center; gap: 18px; }
.wiki-footer__links { display: flex; gap: 16px; margin-left: auto; font-size: 12px; font-weight: 700; }

@media (max-width: 900px) {
  .wiki-nav__link { display: none; }
  .wiki-layout { grid-template-columns: 1fr; }
  .wiki-sidebar { position: static; overflow: hidden; }
  .chapter-list { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .chapter { width: auto; flex: none; white-space: nowrap; }
  .chapter__status { display: none; }
  .highlight-grid { grid-template-columns: 1fr; }
  .dashboard-lead { grid-template-columns: 1fr; }
  .dashboard-anatomy__item { grid-column: span 3; }
  .dashboard-anatomy__item:nth-child(5) { grid-column: 1 / -1; }
  .dashboard-exercise { grid-template-columns: repeat(2, 1fr); }
  .filament-lead { grid-template-columns: 1fr; }
  .filament-paths, .filament-concepts { grid-template-columns: 1fr; }
  .filament-path { min-height: 260px; }
  .filament-field-list article { grid-template-columns: minmax(140px,.7fr) 1fr; }
  .filament-field-list article > div:last-child { grid-column: 2; }
  .filament-catalog-flow { grid-template-columns: repeat(2, 1fr); }
  .atlas-lead { grid-template-columns: 1fr; }
  .atlas--recipe .atlas-tour, .atlas--control .atlas-tour { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .wiki-nav__inner { padding: 0 16px; }
  .brand { font-size: 0; }
  .language-select { max-width: 136px; }
  .download-link { display: none; }
  .wiki-hero__inner { padding: 46px 20px 52px; }
  .wiki-hero p { font-size: 16px; }
  .wiki-layout { padding: 22px 16px 60px; gap: 20px; }
  .screen-grid { grid-template-columns: 1fr; }
  .screen-stage { min-height: 460px; }
  .manual-lead, .manual-section--dark, .manual-ready { padding: 21px; }
  .term-grid, .data-grid, .problem-grid { grid-template-columns: 1fr; }
  .data-grid article:last-child { grid-column: auto; }
  .guide-step { grid-template-columns: 1fr; padding: 19px; }
  .guide-field { grid-template-columns: 1fr; gap: 4px; }
  .manual-map__item { grid-template-columns: 36px 1fr; padding: 16px; }
  .dashboard-lead, .dashboard-section--metrics, .dashboard-section--flow, .dashboard-section--exercise { padding: 21px; }
  .dashboard-anatomy { grid-template-columns: 1fr; }
  .dashboard-anatomy__item, .dashboard-anatomy__item:nth-child(4), .dashboard-anatomy__item:nth-child(5) { grid-column: auto; }
  .dashboard-metrics, .dashboard-action-grid, .dashboard-scenario-grid, .dashboard-exercise { grid-template-columns: 1fr; }
  .dashboard-action-grid article:last-child { grid-column: auto; }
  .filament-lead, .filament-section--list, .filament-section--catalog, .filament-section--stock, .filament-section--exercise { padding: 21px; }
  .filament-list-map, .filament-stock-grid, .filament-problems, .filament-exercise, .filament-catalog-flow { grid-template-columns: 1fr; }
  .filament-list-map article:last-child, .filament-stock-grid article:last-child { grid-column: auto; }
  .filament-field-group > header { grid-template-columns: 40px 1fr; padding: 18px; }
  .filament-field-list article { grid-template-columns: 1fr; gap: 12px; padding: 17px 18px; }
  .filament-field-list article > div:last-child { grid-column: auto; }
  .atlas-lead, .atlas-section--workflow, .atlas-section--exercise { padding: 21px; }
  .atlas-tour, .atlas--recipe .atlas-tour, .atlas--control .atlas-tour, .atlas-rules, .atlas-mistakes, .atlas-exercise { grid-template-columns: 1fr; }
  .atlas--vault .atlas-rules article { grid-template-columns: 1fr; gap: 7px; }
  .flow-line { grid-template-columns: 1fr 1fr; }
  .flow-node:nth-child(2)::after { display: none; }
  .wiki-footer__inner { align-items: flex-start; flex-direction: column; }
  .wiki-footer__links { margin-left: 0; }
}
