/* Spierfinder inside the FysioFamily site. Shared navigation/footer own their styles. */
html { scroll-behavior: smooth; scroll-padding-top: 125px; }
body { margin: 0; background: #0d1117; color: #e0f2fe; font-family: 'Plus Jakarta Sans', sans-serif; cursor: auto; }
#atlas-root {
  --bg: #0d1117; --panel: #101722; --panel-raised: #161d2e; --ink: #e0f2fe;
  --muted: #a8b8ca; --line: rgba(0,184,238,.17); --accent: #00b8ee;
  --accent-soft: rgba(0,184,238,.09); --purple: #c9a5d7;
  max-width: 1328px; margin: 0 auto; padding: 152px 24px 80px;
  color: var(--ink); font-family: 'Plus Jakarta Sans', sans-serif; font-synthesis: none;
  color-scheme: dark;
}
#atlas-root *, .image-modal * { box-sizing: border-box; }
#atlas-root :is(h1,h2,h3,p) { margin-top: 0; }
#atlas-root :is(h1,h2,h3) { color: #fff; font-family: inherit; }
#atlas-root h1 { font-size: 32px; font-weight: 700; line-height: 1.22; letter-spacing: -.9px; margin-bottom: 13px; }
#atlas-root h2 { font-size: 23px; font-weight: 700; line-height: 1.35; letter-spacing: -.45px; }
#atlas-root h3 { font-size: 15px; font-weight: 650; line-height: 1.5; }
#atlas-root a { color: inherit; text-decoration: none; }
#atlas-root :is(button,input,select), .image-modal button { font: inherit; }
#atlas-root :is(button,a,input,select), .image-modal button { touch-action: manipulation; }
#atlas-root button, .image-modal button { border: 0; background: none; color: inherit; cursor: pointer; }
#atlas-root button:disabled { cursor: default; opacity: .45; }
#atlas-root :is(button,a,input,select,summary,[tabindex]):focus-visible, .image-modal button:focus-visible {
  outline: 3px solid #6ddcff; outline-offset: 4px; border-radius: 4px;
}
#atlas-root img { max-width: 100%; }
#atlas-root svg, .image-modal svg { display: block; }
#atlas-root :is(button,a) svg, .image-modal button svg { width: 18px; height: 18px; flex-shrink: 0; }
.skip-link { position: fixed; top: -70px; left: 16px; color: #0d1117; background: #fff; padding: 14px 18px; border-radius: 8px; z-index: 10000; }
.skip-link:focus { top: 8px; }
#atlas-root .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* The same page rhythm, headings and accent treatment as the treatment pages. */
#atlas-root .atlas-page-header { max-width: 980px; padding: 0 0 34px; }
#atlas-root .atlas-page-header h1 { font-size: clamp(34px,4vw,48px); font-weight: 700; letter-spacing: -1.35px; margin: 17px 0 18px; }
#atlas-root .atlas-page-header h1 span { color: #65d4f4; }
#atlas-root .atlas-page-header > p { color: var(--muted); font-size: 15px; line-height: 1.9; max-width: 810px; margin-bottom: 0; }
#atlas-root .atlas-page-header .breadcrumb { margin: 0; }
#atlas-root .breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; font-size: 11px; line-height: 1.8; color: var(--muted); margin-bottom: 23px; }
#atlas-root .breadcrumb a:hover { color: var(--accent); }
#atlas-root .app-shell { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 24px; align-items: start; }
#atlas-root .workspace { min-width: 0; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
#atlas-root .atlas-mobile-toolbar { display: none; }
#atlas-root .mobile-menu { display: none; }
#atlas-root .local-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
#atlas-root .status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
#atlas-root .sidebar { position: sticky; top: 116px; max-height: calc(100vh - 140px); overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 25px; padding: 22px 13px; border: 1px solid var(--line); border-radius: 20px; background: #101722; }
#atlas-root .side-label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; margin: 0 10px 10px; }
#atlas-root .side-link { display: flex; align-items: center; gap: 9px; width: 100%; padding: 11px 10px; margin: 3px 0; border: 1px solid transparent; border-radius: 10px; color: #c5d5e4; font-size: 12px; line-height: 1.6; transition: background .18s, border-color .18s, color .18s; }
#atlas-root .side-link:hover { color: #fff; background: var(--panel-raised); }
#atlas-root .side-link.active { color: #67d9ff; background: var(--accent-soft); border-color: rgba(0,184,238,.24); font-weight: 650; }
#atlas-root .side-link .count { margin-left: auto; color: var(--muted); font-size: 10px; }
#atlas-root .side-regions .side-link { font-size: 11px; padding: 8px 10px; }
#atlas-root .sidebar-book { padding: 20px 10px 0; border-top: 1px solid var(--line); }
#atlas-root .book-icon { color: var(--accent); margin-bottom: 12px; }
#atlas-root .book-icon svg { width: 28px; height: 28px; }
#atlas-root .sidebar-book h3 { font-size: 17px; line-height: 1.55; margin-bottom: 10px; }
#atlas-root .sidebar-book p { color: var(--muted); font-size: 10px; line-height: 1.9; }
#atlas-root .eyebrow { display: flex; align-items: center; gap: 9px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; line-height: 1.7; margin-bottom: 11px; }
#atlas-root .eyebrow::before { content: ''; width: 20px; height: 2px; border-radius: 2px; background: linear-gradient(135deg,#7d4c8d,#0b82c5); flex-shrink: 0; }
#atlas-root .intro { color: var(--muted); font-size: 13px; line-height: 1.9; max-width: 730px; }
#atlas-root .page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
#atlas-root .page-heading > div { min-width: 0; }
#atlas-root .finder-title { font-size: 24px; margin-bottom: 12px; }
#atlas-root .edition-pill { align-self: flex-start; padding: 8px 11px; border: 1px solid rgba(0,184,238,.2); border-radius: 999px; color: #97def5; background: rgba(0,184,238,.05); font-size: 10px; line-height: 1.65; white-space: nowrap; margin-top: 3px; }
#atlas-root .searchbox { position: relative; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 17px; border: 1px solid rgba(0,184,238,.23); border-radius: 12px; background: #0d141f; }
#atlas-root .searchbox svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--accent); }
#atlas-root .searchbox input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 15px 0; color: #fff; background: transparent; font-size: 13px; }
#atlas-root .searchbox input::placeholder { color: #9aadc2; opacity: 1; }
#atlas-root .searchbox:focus-within { outline: 2px solid #6ddcff; outline-offset: 3px; }
#atlas-root .searchbox kbd { border: 1px solid #3a4a5b; border-radius: 4px; padding: 2px 5px; font-size: 11px; color: var(--muted); }
#atlas-root .tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 17px 0 25px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
#atlas-root .tabs :is(a,button) { display: flex; align-items: center; gap: 6px; padding: 14px 0; color: #aebed0; font-size: 11px; line-height: 1.7; border-bottom: 2px solid transparent; }
#atlas-root .tabs :is(a,button):hover { color: #fff; }
#atlas-root .tabs .active { color: #6ddcff; border-bottom-color: var(--accent); font-weight: 650; }

/* Finder, indexes and linked symptoms. */
#atlas-root .finder-grid { display: grid; grid-template-columns: minmax(280px,.92fr) minmax(280px,1.08fr); gap: 25px; align-items: start; }
#atlas-root .map-panel { border: 1px solid rgba(0,184,238,.22); border-radius: 18px; overflow: hidden; position: relative; background: radial-gradient(ellipse at 50% 38%,rgba(11,130,197,.15),transparent 65%),linear-gradient(135deg,#0c1624,#151429 70%,#0e1925); }
#atlas-root .map-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 19px 18px 5px; color: #e5f5ff; font-size: 11px; font-weight: 650; line-height: 1.75; }
#atlas-root .map-number { color: #9bafc3; font-size: 9px; font-weight: 400; }
#atlas-root .body-map { display: block; width: 100%; min-height: 310px; max-height: 430px; padding: 8px 17px 0; }
#atlas-root .body-map .body-outline { fill: #233449; stroke: #668399; stroke-width: .85; }
#atlas-root .body-map .body-line { fill: none; stroke: #7996ab; stroke-width: .75; opacity: .6; }
#atlas-root .body-map .zone { cursor: pointer; fill: rgba(0,184,238,.09); stroke: rgba(84,190,227,.45); stroke-width: .7; transition: fill .15s, stroke .15s; }
#atlas-root .body-map .zone:hover, #atlas-root .body-map .zone.active { fill: rgba(0,184,238,.52); stroke: #6ddcff; stroke-width: 1.7; }
#atlas-root .body-map .zone:focus-visible { outline: none; stroke: #fff; stroke-width: 3; fill: rgba(0,184,238,.5); }
#atlas-root .body-map text { fill: #b2c9db; font-size: 10px; letter-spacing: 1.1px; }
#atlas-root .map-note { text-align: center; color: #a9bfd1; font-size: 10px; line-height: 1.8; padding: 8px 16px 17px; }
#atlas-root .legend-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--accent); }
#atlas-root .region-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 15px; background: rgba(8,14,23,.45); border-top: 1px solid var(--line); }
#atlas-root .chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border: 1px solid rgba(123,156,190,.24); border-radius: 999px; background: rgba(255,255,255,.035); color: #cbd9e7; font-size: 10px; line-height: 1.5; cursor: pointer; }
#atlas-root .chip:hover, #atlas-root .chip.active { background: rgba(0,184,238,.12); border-color: rgba(0,184,238,.48); color: #79ddfb; }
#atlas-root .results-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 3px 0 15px; }
#atlas-root .results-title h2 { margin: 0; font-size: 20px; }
#atlas-root .small { color: var(--muted); font-size: 10px; line-height: 1.8; }
#atlas-root .result-list { border-top: 1px solid var(--line); }
#atlas-root .muscle-row { display: flex; justify-content: space-between; gap: 13px; padding: 17px 2px; border-bottom: 1px solid var(--line); transition: background .18s; }
#atlas-root .muscle-row:hover { background: rgba(0,184,238,.035); }
#atlas-root .muscle-row > div { min-width: 0; }
#atlas-root .muscle-row h3 { font-size: 13px; font-weight: 650; margin: 0 0 7px; }
#atlas-root .muscle-row p { font-size: 11px; line-height: 1.8; color: var(--muted); margin: 0; }
#atlas-root .muscle-row svg { color: var(--accent); margin-top: 5px; }
#atlas-root .result-meta { color: #bfa0d2; font-size: 10px; line-height: 1.7; margin-top: 8px; }
#atlas-root .results-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
#atlas-root .text-btn { display: inline-flex; align-items: center; gap: 7px; color: #6ddcff; font-size: 11px; font-weight: 600; padding: 7px 0; line-height: 1.8; }
#atlas-root .text-btn:hover { color: #b2eeff; }
#atlas-root .note { display: flex; gap: 12px; color: #b6c5d5; font-size: 11px; line-height: 1.85; background: rgba(0,184,238,.035); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-top: 28px; }
#atlas-root .note svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--accent); margin-top: 3px; }
#atlas-root .note p { margin: 0; }
#atlas-root .az-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 18px 0; color: var(--muted); font-size: 12px; }
#atlas-root :is(.az-toolbar select,.chapter-select) { max-width: 100%; border: 1px solid rgba(123,156,190,.27); border-radius: 10px; background: #0d141f; color: var(--ink); padding: 11px 12px; font-size: 11px; }
#atlas-root .az-letters { display: flex; flex-wrap: wrap; gap: 5px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
#atlas-root .az-letters a { display: grid; place-items: center; min-width: 29px; min-height: 33px; padding: 5px 8px; border-radius: 8px; color: #a9dfee; font-size: 12px; }
#atlas-root .az-letters a:hover { background: var(--accent-soft); }
#atlas-root .az-group { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 18px; margin: 23px 0; scroll-margin-top: 125px; }
#atlas-root .az-letter { padding-top: 12px; color: var(--accent); font-size: 25px; font-weight: 700; }
#atlas-root .az-items { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 28px; }
#atlas-root .empty { padding: 30px 18px; border: 1px dashed rgba(0,184,238,.27); border-radius: 12px; color: var(--muted); text-align: center; font-size: 13px; line-height: 1.9; }
#atlas-root .symptom-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
#atlas-root .symptom-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 16px 13px; border: 1px solid var(--line); border-radius: 12px; background: #0d1521; transition: border-color .18s, background .18s; }
#atlas-root .symptom-item:hover { border-color: rgba(0,184,238,.5); background: var(--panel-raised); }
#atlas-root .symptom-item span { color: #e2f0fb; font-size: 11px; }
#atlas-root .symptom-item small { color: var(--muted); font-size: 9px; white-space: nowrap; }
#atlas-root .symptom-details { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 28px; }
#atlas-root .symptom-details summary { cursor: pointer; color: #fff; font-size: 20px; font-weight: 650; line-height: 1.8; }
#atlas-root .symptom-details summary .small { font-weight: 400; margin-left: 10px; }
#atlas-root .symptom-row { display: grid; grid-template-columns: 1.5fr 1fr; align-items: start; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
#atlas-root .symptom-row p { font-size: 12px; line-height: 1.85; margin: 0; }
#atlas-root .symptom-row > div { display: flex; flex-wrap: wrap; gap: 5px; }
#atlas-root .symptom-link { text-decoration: underline dotted rgba(128,194,219,.65); text-underline-offset: 4px; }
#atlas-root .symptom-link:hover { color: #8ae6ff; }

/* Individual muscle profiles and their evidence. */
#atlas-root .detail-heading h1 { font-size: 34px; overflow-wrap: anywhere; }
#atlas-root .detail-heading .latin { color: #b7c7d7; font-size: 15px; font-style: italic; line-height: 1.7; margin-bottom: 12px; }
#atlas-root .save-button { display: flex; align-items: center; gap: 7px; padding: 11px 13px; border: 1px solid rgba(0,184,238,.28); border-radius: 999px; background: #121d2c; color: #d9edfa; font-size: 11px; white-space: nowrap; }
#atlas-root .save-button[aria-pressed=true] { background: rgba(0,184,238,.12); border-color: var(--accent); color: #89e4ff; }
#atlas-root .pain-links { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0; }
#atlas-root .detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 30px; }
#atlas-root .article-section { border-bottom: 1px solid var(--line); padding: 25px 0; scroll-margin-top: 125px; }
#atlas-root .article-section:first-child { padding-top: 0; }
#atlas-root .article-section h2 { font-size: 22px; margin-bottom: 14px; }
#atlas-root .article-section :is(p,li) { color: #bdcddd; font-size: 13px; line-height: 1.95; }
#atlas-root .article-section p:last-child { margin-bottom: 0; }
#atlas-root .article-section ul { list-style: disc; padding-left: 20px; margin-bottom: 15px; }
#atlas-root .source-link { display: inline-flex; align-items: center; gap: 5px; color: #76dbfb; font-size: 10px; line-height: 1.8; border-bottom: 1px dotted rgba(109,220,255,.45); padding: 3px 0; }
#atlas-root .source-link:hover { color: #b2efff; }
#atlas-root .detail-aside { position: sticky; top: 115px; align-self: start; max-height: calc(100vh - 135px); min-width: 0; overflow-y: auto; scrollbar-width: thin; padding-right: 3px; }
#atlas-root .toc { padding: 20px 0; border-bottom: 1px solid var(--line); }
#atlas-root .toc h3 { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 11px; }
#atlas-root .toc a { display: block; padding: 8px 0; color: #bccddd; font-size: 11px; line-height: 1.6; }
#atlas-root .toc a:hover { color: var(--accent); }
#atlas-root .mobile-toc { display: none; }
#atlas-root .figure-preview { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; margin: 0 0 16px; background: #121c2b; }
#atlas-root .figure-preview button { display: block; width: 100%; padding: 17px; background: #fff; }
#atlas-root .figure-preview img { display: block; max-height: 330px; object-fit: contain; margin: auto; }
#atlas-root .figure-preview figcaption { background: #121c2b; color: #b5c6d7; padding: 13px 15px; font-size: 10px; line-height: 1.85; }
#atlas-root .figure-placeholder { border: 1px solid var(--line); border-radius: 14px; padding: 23px 18px; background: linear-gradient(135deg,rgba(125,76,141,.09),rgba(11,130,197,.08)); color: var(--muted); font-size: 12px; line-height: 1.85; }
#atlas-root .figure-placeholder > svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 12px; }
#atlas-root .book-callout { border-top: 1px solid var(--line); padding: 20px 0; margin-top: 20px; }
#atlas-root .book-callout h3 { font-size: 17px; }
#atlas-root .book-callout p { color: var(--muted); font-size: 11px; line-height: 1.9; }
#atlas-root .related-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; }
#atlas-root .research-details { margin-top: 15px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,184,238,.035); }
#atlas-root .research-details summary { color: #87dcf7; cursor: pointer; font-size: 11px; font-weight: 650; line-height: 1.9; }
#atlas-root .research-details summary .small { font-weight: 400; margin-left: 8px; }
#atlas-root .research-item { border-top: 1px solid var(--line); padding: 13px 0 4px; margin-top: 11px; }
#atlas-root .research-link { color: #8ae0fa; font-size: 12px; line-height: 1.85; text-decoration: underline; text-underline-offset: 3px; }
#atlas-root .article-section .research-item p { font-size: 11px; line-height: 1.85; margin: 7px 0; }
#atlas-root .article-section .research-item .research-type { color: var(--muted); font-size: 10px; }

/* Local book reader: site chrome stays dark; source pages remain unaltered. */
#atlas-root .reader-layout { display: grid; grid-template-columns: 185px minmax(0,1fr); gap: 24px; align-items: start; }
#atlas-root .chapter-list { position: sticky; top: 115px; max-height: calc(100vh - 140px); overflow-y: auto; scrollbar-width: thin; padding-right: 9px; font-size: 10px; }
#atlas-root .chapter-list a { display: block; border-left: 2px solid transparent; border-radius: 0 7px 7px 0; color: #b8c9dc; padding: 10px 9px; line-height: 1.8; }
#atlas-root .chapter-list a:hover, #atlas-root .chapter-list a.active { border-left-color: var(--accent); background: var(--accent-soft); color: #82dff9; }
#atlas-root .chapter-section { color: #c4d2e2; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 19px 9px 8px; }
#atlas-root .reader-mobile-select { display: none; }
#atlas-root .reader-panel { min-width: 0; }
#atlas-root .reader-top { border-bottom: 1px solid var(--line); padding-bottom: 17px; }
#atlas-root .reader-top h2 { font-size: 23px; line-height: 1.5; margin-bottom: 9px; }
#atlas-root .reader-toolbar { position: sticky; top: 99px; z-index: 5; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); background: #101722; }
#atlas-root .segmented { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #0b131e; }
#atlas-root .segmented button { color: #b7c8d9; padding: 8px 10px; border-radius: 6px; font-size: 10px; }
#atlas-root .segmented button.active { background: #183044; color: #8de8ff; }
#atlas-root .page-navigation { display: flex; align-items: center; gap: 6px; font-size: 10px; }
#atlas-root .page-navigation input { width: 57px; padding: 8px 3px; border: 1px solid rgba(123,156,190,.3); border-radius: 7px; text-align: center; background: #0d1520; color: #fff; }
#atlas-root .page-navigation button { padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: #142131; }
#atlas-root .book-page { overflow: hidden; border: 1px solid #d9e1e8; border-radius: 9px; background: #fff; color: #263340; margin: 18px 0 25px; color-scheme: light; }
#atlas-root .book-page .page-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #dce4ec; padding: 12px 20px; background: #f3f6f9; color: #526271; font-size: 10px; line-height: 1.7; }
#atlas-root .book-page .page-label .source-link { color: #126488; border-color: #98b8c8; }
#atlas-root .book-text { padding: 25px 28px; color: #293843; background: #fff; font-family: 'Plus Jakarta Sans',sans-serif; font-size: 15px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
#atlas-root .page-image { display: block; width: 100%; height: auto; background: #fff; }
#atlas-root .book-inline-images { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; padding: 5px 20px 20px; }
#atlas-root .book-inline-images .figure-preview { border-color: #d7e2eb; }
#atlas-root .book-inline-images img { max-height: 350px; object-fit: contain; }
#atlas-root .book-headings { border: 1px solid var(--line); border-radius: 12px; background: rgba(0,184,238,.035); padding: 15px 17px; margin: 16px 0; font-size: 11px; }
#atlas-root .book-headings summary { cursor: pointer; font-weight: 650; color: #d7edf9; }
#atlas-root .book-headings a { display: block; color: #8cd8ed; font-size: 11px; line-height: 1.8; padding-top: 11px; }
#atlas-root .gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 20px; margin-top: 20px; }
#atlas-root .gallery .figure-preview { margin: 0; }
#atlas-root .gallery .figure-preview img { max-height: 390px; }
#atlas-root .book-search-form { display: flex; gap: 10px; margin: 20px 0; }
#atlas-root .book-search-form .searchbox { flex: 1; min-width: 0; }
#atlas-root .primary-button { border-radius: 999px; background: linear-gradient(135deg,#7d4c8d,#0b82c5); color: #fff; padding: 12px 18px; font-size: 11px; font-weight: 650; }
#atlas-root .primary-button:hover { filter: brightness(1.12); }
#atlas-root .search-result { display: block; border-bottom: 1px solid var(--line); padding: 18px 0; }
#atlas-root .search-result h3 { color: #d6edf9; font-size: 12px; margin-bottom: 8px; }
#atlas-root .search-result p { color: var(--muted); font-size: 11px; line-height: 1.85; margin: 0; }
#atlas-root .reader-load-more { display: block; width: 100%; text-align: center; border: 1px solid rgba(0,184,238,.25); border-radius: 12px; padding: 16px; margin: 18px 0; background: rgba(0,184,238,.055); color: #80e1fb; font-size: 12px; line-height: 1.8; }
#atlas-root .mode-description { color: var(--muted); font-size: 11px; line-height: 1.9; margin: 14px 0; }
#atlas-root .info-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,184,238,.055); color: #b8d9e7; font-size: 11px; line-height: 1.8; margin-bottom: 10px; }
#atlas-root .filter-reset { display: inline-flex; align-items: center; padding: 5px; color: #82e1fa; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
#atlas-root .danger-note { border-left: 3px solid #e3ad75; border-radius: 0 9px 9px 0; padding: 14px 16px; margin: 17px 0; background: rgba(213,135,65,.08); color: #f0d8bc; font-size: 11px; line-height: 1.9; }
#atlas-root .error-box { border: 1px solid rgba(0,184,238,.25); border-radius: 14px; padding: 24px; background: #122031; color: #c6dcea; font-size: 13px; line-height: 1.9; }
#atlas-root .error-box code { font-size: 12px; overflow-wrap: anywhere; color: #9be7fc; }
#atlas-root .loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 30px 0; font-size: 12px; }
#atlas-root .loading::before { content: ''; width: 14px; height: 14px; flex-shrink: 0; border: 2px solid rgba(0,184,238,.2); border-top-color: var(--accent); border-radius: 50%; animation: atlas-spin .8s linear infinite; }
@keyframes atlas-spin { to { transform: rotate(360deg); } }
#atlas-root .footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); color: #94aabe; margin-top: 28px; padding-top: 16px; font-size: 9px; line-height: 1.9; }

/* Dialog may be mounted outside the finder so it has an explicit dark shell. */
.image-modal { width: min(1100px,94vw); max-width: 94vw; max-height: 94vh; padding: 0; border: 1px solid rgba(0,184,238,.28); border-radius: 18px; background: #101722; color: #d9edfb; font-family: 'Plus Jakarta Sans',sans-serif; box-shadow: 0 25px 100px rgba(0,0,0,.7); }
.image-modal::backdrop { background: rgba(3,8,14,.88); backdrop-filter: blur(5px); }
.image-modal .modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 19px; border-bottom: 1px solid rgba(0,184,238,.17); font-size: 11px; line-height: 1.7; }
.image-modal .modal-bar button { display: flex; align-items: center; gap: 5px; border: 1px solid rgba(0,184,238,.2); border-radius: 999px; padding: 8px 11px; }
.image-modal .modal-image { display: block; max-width: 100%; max-height: 72vh; object-fit: contain; background: #fff; padding: 20px; margin: 0 auto; }
.image-modal .modal-caption { padding: 18px 20px 20px; margin: 0; color: #b9ccdf; font-size: 12px; line-height: 1.9; }

@media (max-width: 1180px) {
  #atlas-root .app-shell { grid-template-columns: 210px minmax(0,1fr); gap: 20px; }
  #atlas-root .workspace { padding: 24px; }
  #atlas-root .page-heading { flex-wrap: wrap; gap: 9px; }
  #atlas-root .edition-pill { margin-top: 0; }
  #atlas-root .finder-grid { grid-template-columns: minmax(260px,.95fr) minmax(245px,1.05fr); gap: 20px; }
  #atlas-root .map-number { display: none; }
  #atlas-root .detail-grid { grid-template-columns: minmax(0,1fr) 225px; gap: 23px; }
  #atlas-root .reader-layout { grid-template-columns: 1fr; }
  #atlas-root .chapter-list { display: none; }
  #atlas-root .reader-mobile-select { display: block; width: 100%; margin-bottom: 18px; }
  #atlas-root .chapter-select { width: 100%; }
  #atlas-root .symptom-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1000px) {
  #atlas-root { padding-left: 20px; padding-right: 20px; }
  #atlas-root .app-shell { grid-template-columns: 190px minmax(0,1fr); gap: 18px; }
  #atlas-root .sidebar { padding: 19px 9px; }
  #atlas-root .side-link { font-size: 11px; gap: 7px; padding: 10px 8px; }
  #atlas-root .side-regions .side-link { font-size: 10px; }
  #atlas-root .finder-grid { grid-template-columns: 1fr; }
  #atlas-root .map-panel { display: grid; grid-template-columns: minmax(0,1fr) 140px; }
  #atlas-root .map-heading { grid-column: 1/-1; }
  #atlas-root .body-map { min-height: 280px; max-height: 360px; }
  #atlas-root .region-chips { grid-column: 2; grid-row: 2/4; border-top: 0; border-left: 1px solid var(--line); align-content: center; padding: 14px; }
  #atlas-root .map-note { grid-column: 1; }
  #atlas-root .detail-grid { grid-template-columns: 1fr; }
  #atlas-root .detail-aside { position: static; max-height: none; overflow: visible; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; grid-row: 1; }
  #atlas-root .detail-aside .figure-preview { margin-bottom: 0; }
  #atlas-root .detail-aside .figure-preview img { max-height: 260px; }
  #atlas-root .detail-aside .book-callout { display: none; }
  #atlas-root .toc { padding-top: 0; border: 0; }
  #atlas-root .az-items { grid-template-columns: 1fr; }
  #atlas-root .tabs { gap: 17px; }
}
@media (max-width: 760px) {
  #atlas-root { padding: 143px 16px 55px; }
  #atlas-root .atlas-page-header { padding-bottom: 26px; }
  #atlas-root .atlas-page-header h1 { font-size: 35px; line-height: 1.25; letter-spacing: -1px; margin: 15px 0; }
  #atlas-root .atlas-page-header > p { font-size: 13px; line-height: 1.9; }
  #atlas-root .atlas-page-header .breadcrumb { font-size: 10px; }
  #atlas-root .atlas-mobile-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
  #atlas-root .mobile-menu { display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 999px; background: #121d2b; color: #d9f0fc; font-size: 12px; }
  #atlas-root .mobile-menu[aria-expanded=true] { background: rgba(0,184,238,.13); border-color: rgba(0,184,238,.5); }
  #atlas-root .app-shell { display: block; }
  #atlas-root .sidebar { display: none; position: static; max-height: none; padding: 20px 15px; margin-bottom: 16px; border-radius: 16px; }
  #atlas-root .sidebar.open { display: flex; }
  #atlas-root .side-link { font-size: 13px; padding: 10px 12px; }
  #atlas-root .side-regions .side-link { font-size: 12px; }
  #atlas-root .sidebar-book { display: none; }
  #atlas-root .workspace { padding: 23px 19px; border-radius: 17px; }
  #atlas-root h1 { font-size: 28px; letter-spacing: -.65px; }
  #atlas-root .page-heading { margin-bottom: 21px; }
  #atlas-root .intro { font-size: 12px; }
  #atlas-root .edition-pill { font-size: 9px; }
  #atlas-root .eyebrow { font-size: 9px; }
  #atlas-root .searchbox { min-height: 51px; padding: 0 13px; }
  #atlas-root .searchbox input { font-size: 12px; }
  #atlas-root .searchbox kbd { display: none; }
  #atlas-root .tabs { gap: 18px; margin: 13px 0 21px; }
  #atlas-root .tabs :is(a,button) { font-size: 10px; gap: 5px; }
  #atlas-root .tabs svg { width: 15px; height: 15px; }
  #atlas-root .map-panel { display: block; }
  #atlas-root .map-heading { padding: 17px 17px 4px; }
  #atlas-root .map-number { display: inline; }
  #atlas-root .body-map { min-height: 285px; max-height: 375px; padding: 7px 14px 0; }
  #atlas-root .region-chips { border-top: 1px solid var(--line); border-left: 0; padding: 13px; gap: 7px; }
  #atlas-root .chip { font-size: 10px; padding: 7px 10px; }
  #atlas-root .results-title h2 { font-size: 21px; }
  #atlas-root .muscle-row { padding: 18px 0; }
  #atlas-root .muscle-row h3 { font-size: 14px; }
  #atlas-root .note { padding: 14px; font-size: 10px; margin-top: 24px; }
  #atlas-root .az-toolbar { align-items: flex-start; font-size: 11px; gap: 10px; }
  #atlas-root .az-toolbar select { max-width: 180px; padding: 10px 8px; font-size: 10px; }
  #atlas-root .az-group { grid-template-columns: 23px minmax(0,1fr); gap: 12px; }
  #atlas-root .symptom-grid { gap: 8px; }
  #atlas-root .symptom-item { flex-wrap: wrap; gap: 4px; padding: 13px 11px; }
  #atlas-root .symptom-details summary { font-size: 18px; }
  #atlas-root .symptom-details summary .small { display: block; margin: 0; }
  #atlas-root .symptom-row { grid-template-columns: 1fr; gap: 10px; }
  #atlas-root .detail-heading h1 { font-size: 30px; }
  #atlas-root .detail-heading .save-button { margin-top: 5px; }
  #atlas-root .detail-aside { display: block; }
  #atlas-root .detail-aside .figure-preview img { max-height: 320px; }
  #atlas-root .toc { display: none; }
  #atlas-root .mobile-toc { display: block; margin: 0 0 22px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,184,238,.035); }
  #atlas-root .mobile-toc summary { cursor: pointer; color: #d3eaf7; font-size: 12px; font-weight: 650; }
  #atlas-root .mobile-toc a { display: block; color: #8addf6; padding: 9px 0; font-size: 12px; }
  #atlas-root .article-section h2 { font-size: 22px; }
  #atlas-root .article-section :is(p,li) { font-size: 13px; }
  #atlas-root .related-grid { grid-template-columns: 1fr; }
  #atlas-root .book-heading h1 { font-size: 28px; }
  #atlas-root .book-search-form { flex-wrap: wrap; margin: 15px 0; }
  #atlas-root .book-search-form .searchbox { min-width: 190px; }
  #atlas-root .book-search-form .primary-button { min-height: 43px; }
  #atlas-root .reader-top h2 { font-size: 21px; }
  #atlas-root .reader-toolbar { top: 88px; gap: 9px; padding: 11px 0; }
  #atlas-root .segmented button { padding: 8px; font-size: 9px; }
  #atlas-root .page-navigation { font-size: 10px; }
  #atlas-root .page-navigation input { width: 49px; }
  #atlas-root .page-navigation button { padding: 7px; }
  #atlas-root .book-text { padding: 21px 19px; font-size: 14px; line-height: 1.95; }
  #atlas-root .book-page .page-label { padding: 11px 14px; }
  #atlas-root .book-inline-images { grid-template-columns: 1fr; padding: 5px 13px 14px; }
  #atlas-root .gallery { grid-template-columns: 1fr; gap: 17px; }
  #atlas-root .footer { font-size: 9px; }
  .image-modal { max-width: 96vw; width: 96vw; border-radius: 12px; }
  .image-modal .modal-bar { padding: 11px 13px; gap: 9px; font-size: 10px; }
  .image-modal .modal-image { padding: 12px; }
  .image-modal .modal-caption { padding: 15px; font-size: 11px; }
}
@media (max-width: 390px) {
  #atlas-root { padding-left: 12px; padding-right: 12px; }
  #atlas-root .workspace { padding: 20px 15px; }
  #atlas-root .atlas-page-header h1 { font-size: 32px; }
  #atlas-root .tabs { gap: 16px; }
  #atlas-root .tabs svg { display: none; }
  #atlas-root .map-number { display: none; }
  #atlas-root .az-toolbar { flex-wrap: wrap; }
  #atlas-root .az-toolbar select { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #atlas-root *, #atlas-root *::before, #atlas-root *::after { animation: none !important; transition: none !important; }
}
@media print {
  body { background: #fff; color: #202b34; }
  #atlas-root { max-width: none; padding: 0; color: #202b34; --muted: #465660; --line: #ccd5dd; }
  #atlas-root :is(.sidebar,.tabs,.searchbox,.save-button,.toc,.mobile-toc,.atlas-mobile-toolbar,.reader-toolbar,.chapter-list,.footer,.reader-load-more,.primary-button,.atlas-page-header) { display: none !important; }
  #atlas-root :is(.app-shell,.detail-grid,.reader-layout) { display: block; }
  #atlas-root .workspace { padding: 0; border: 0; background: #fff; }
  #atlas-root :is(h1,h2,h3), #atlas-root .article-section :is(p,li) { color: #202b34; }
  #atlas-root .article-section { break-inside: avoid; }
  #atlas-root .detail-aside { position: static; display: block; max-height: none; width: 300px; margin: 20px auto; overflow: visible; }
  #atlas-root .source-link { color: #245675; }
  #atlas-root .book-page { break-after: page; }
  #atlas-root .figure-preview figcaption, #atlas-root .note { background: #f1f5f8; color: #344957; }
}
