/* Shared presentation only. Page controls, evidence and data remain owned by their existing modules. */
:root{--atlas-accent:#6de0cc;--atlas-radius:14px;font-family:Inter,"Noto Sans SC","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",sans-serif;font-synthesis:none}
body[data-atlas-page]{line-height:1.55;text-rendering:optimizeLegibility}
body[data-atlas-page] *{box-sizing:border-box}
body[data-atlas-page] :focus-visible{outline:2px solid #50bdaa;outline-offset:3px}
body[data-atlas-page] a{text-underline-offset:3px}
body[data-atlas-page] button,body[data-atlas-page] input,body[data-atlas-page] select,body[data-atlas-page] textarea{font-family:inherit}
body[data-atlas-page] [hidden]{display:none!important}
body[data-atlas-page] table{font-variant-numeric:tabular-nums}
body[data-atlas-page] code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
/* Core evidence workbench. */
body[data-atlas-page="home"]{background:#0a1420}
[data-atlas-page="home"] .app-shell>.topbar{display:grid;grid-template-columns:220px minmax(260px,1fr) auto auto;height:auto;min-height:118px;padding:16px 24px 12px;gap:12px 22px;align-items:center;background:#0d1a27}
[data-atlas-page="home"] .topbar .brand{grid-column:1;grid-row:1;min-width:0;gap:12px}
[data-atlas-page="home"] .topbar .brand strong{font-size:18px;letter-spacing:.06em}
[data-atlas-page="home"] .topbar .brand small{font-size:11px;letter-spacing:.025em;line-height:1.5}
[data-atlas-page="home"] .topbar .species-picker{grid-column:2;grid-row:1;width:100%;min-width:0;margin:0}
[data-atlas-page="home"] .topbar .species-picker>span{font-size:10px;letter-spacing:.08em}
[data-atlas-page="home"] .topbar .species-picker select{height:38px;font-size:12px}
[data-atlas-page="home"] .topbar .view-switch{grid-column:3;grid-row:1;width:auto;margin:0;order:initial}
[data-atlas-page="home"] .topbar .view-switch button{min-height:36px;padding:8px 12px;font-size:12px}
[data-atlas-page="home"] .topbar .top-stats{grid-column:4;grid-row:1;margin:0;gap:17px;flex-wrap:nowrap;justify-content:flex-end}
[data-atlas-page="home"] .top-stats>div{display:flex;flex-direction:column;align-items:flex-start;gap:0}
[data-atlas-page="home"] .top-stats strong{font-size:19px;line-height:1.3}
[data-atlas-page="home"] .top-stats span{font-size:10px;white-space:nowrap}
[data-atlas-page="home"] .header-actions{display:contents}
[data-atlas-page="home"] .topbar .atlas-tools{grid-column:1/4;grid-row:2;display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0;width:auto;margin:0}
[data-atlas-page="home"] .atlas-tools .tools-label{font-size:10px;margin-right:5px;white-space:nowrap}
[data-atlas-page="home"] .atlas-tools a{font-size:12px;line-height:1.4;padding:7px 10px;white-space:nowrap;border:1px solid transparent;border-radius:7px;background:transparent;color:#b7cdd8;text-decoration:none}
[data-atlas-page="home"] .atlas-tools a:hover{background:#173241;color:#d8fff6;border-color:#305a64}
[data-atlas-page="home"] .atlas-tools a[data-layer2-entry],[data-atlas-page="home"] .atlas-tools a[data-s1-entry]{background:#153a3d;border-color:#2b6964;color:#a6f1df}
[data-atlas-page="home"] .topbar .language-switch{grid-column:4;grid-row:2;justify-self:end;margin:0;position:static;flex:none}
[data-atlas-page="home"] .workspace{display:grid;grid-template-columns:248px minmax(0,1fr) 336px;height:calc(100dvh - 160px);min-height:640px;margin:16px 24px 24px;border:1px solid #273c4c;border-radius:var(--atlas-radius);overflow:hidden;background:#0d1c29}
[data-atlas-page="home"] .workspace>.controls,[data-atlas-page="home"] .workspace>.inspector{min-width:0;min-height:0;max-height:none;overflow:auto;scrollbar-width:thin;scrollbar-color:#345365 transparent}
[data-atlas-page="home"] .workspace>.controls{padding:22px 16px;background:#101f2c}
[data-atlas-page="home"] .workspace>.graph-panel{grid-column:2;min-width:0;min-height:0;height:100%;width:100%;order:initial}
[data-atlas-page="home"] .workspace>.inspector{grid-column:3;background:#101f2c}
[data-atlas-page="home"] .sidebar-head{padding:0 2px 18px}
[data-atlas-page="home"] .sidebar-head h1{font-size:22px;line-height:1.35}
[data-atlas-page="home"] .control-block{padding:17px 2px}
[data-atlas-page="home"] .control-help{font-size:12px;line-height:1.7}
[data-atlas-page="home"] .check-row{font-size:12px;line-height:1.5;gap:8px}
[data-atlas-page="home"] .inspector p,[data-atlas-page="home"] .inspector dd{line-height:1.7}
[data-atlas-page="home"] .inspector code{overflow-wrap:anywhere}
[data-atlas-page="home"] .species-view,[data-atlas-page="home"] .metabolic-view{padding:28px 24px 48px}
[data-atlas-page="home"] .species-browser{grid-template-columns:220px minmax(0,1fr) 320px;min-width:0}
[data-atlas-page="home"] .species-table-panel,[data-atlas-page="home"] .species-gene-detail{min-width:0}
/* Subpage headers and document rhythm. */
body[data-atlas-page]:not([data-atlas-page="home"]):not([data-atlas-page="layer2"])>header{height:auto;min-height:80px;display:flex;align-items:center;flex-wrap:wrap;gap:16px 24px;padding:18px max(24px,calc((100vw - 1264px)/2));border-bottom:1px solid #29404e;background:#0d1a27}
body[data-atlas-page]:not([data-atlas-page="home"]):not([data-atlas-page="layer2"])>header nav{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-left:auto;min-width:0}
body[data-atlas-page]:not([data-atlas-page="home"]):not([data-atlas-page="layer2"])>header>strong,body[data-atlas-page]:not([data-atlas-page="home"]):not([data-atlas-page="layer2"])>header>.brand{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
body[data-atlas-page]:not([data-atlas-page="home"]):not([data-atlas-page="layer2"])>header .page-language,body[data-atlas-page]:not([data-atlas-page="home"]):not([data-atlas-page="layer2"])>header .language-switch{position:static;flex:none;max-width:100%}
body[data-atlas-page]:not([data-atlas-page="home"]):not([data-atlas-page="layer2"])>header nav a{padding:7px 9px;border-radius:7px;font-size:13px;line-height:1.5;text-decoration:none;white-space:nowrap}
body[data-atlas-page]:not([data-atlas-page="home"]):not([data-atlas-page="layer2"])>header nav a:hover{background:#1b3443;color:#a6f1df}
body[data-atlas-page]:not([data-atlas-page="home"]):not([data-atlas-page="layer2"])>main{width:100%;max-width:1312px;margin:auto;padding:32px 24px 64px;min-width:0}
body[data-atlas-page]:not([data-atlas-page="home"]) h1{font-size:clamp(27px,3vw,40px);line-height:1.3;letter-spacing:-.025em}
body[data-atlas-page]:not([data-atlas-page="home"]) h2{font-size:20px;line-height:1.45}
body[data-atlas-page]:not([data-atlas-page="home"]) .hero,body[data-atlas-page]:not([data-atlas-page="home"]) .intro{margin-top:0;margin-bottom:26px;max-width:1100px}
body[data-atlas-page]:not([data-atlas-page="home"]) .hero p,body[data-atlas-page]:not([data-atlas-page="home"]) .intro p{font-size:14px;line-height:1.85;max-width:105ch}
body[data-atlas-page]:not([data-atlas-page="home"]) .panel,body[data-atlas-page]:not([data-atlas-page="home"]) .card{border-radius:var(--atlas-radius);min-width:0;padding:24px}
body[data-atlas-page]:not([data-atlas-page="home"]) .grid{gap:20px;min-width:0}
body[data-atlas-page]:not([data-atlas-page="home"]) .grid>*{min-width:0}
body[data-atlas-page]:not([data-atlas-page="home"]) .controls{gap:10px;flex-wrap:wrap}
body[data-atlas-page]:not([data-atlas-page="home"]) :is(.table-wrap,.table-scroll,.scroll,.view){max-width:100%;min-width:0;overflow:auto;scrollbar-width:thin}
body[data-atlas-page]:not([data-atlas-page="home"]) :is(.table-wrap,.table-scroll,.scroll) table{min-width:620px;width:100%}
body[data-atlas-page]:not([data-atlas-page="home"]) :is(.table-wrap,.table-scroll) {max-height:640px}
body[data-atlas-page]:not([data-atlas-page="home"]) table th,body[data-atlas-page]:not([data-atlas-page="home"]) table td{padding:12px 13px;line-height:1.65;vertical-align:top;font-size:13px}
body[data-atlas-page]:not([data-atlas-page="home"]) table th{white-space:nowrap;position:sticky;top:0;z-index:2}
body[data-atlas-page]:not([data-atlas-page="home"]) .scope,body[data-atlas-page]:not([data-atlas-page="home"]) .note{line-height:1.8}
[data-atlas-page="analysis"]>main{max-width:1140px!important}
[data-atlas-page="analysis"] .hero h1{font-size:36px}
[data-atlas-page="analysis"] .panel{margin:20px 0}
[data-atlas-page="analysis"] .file-picker{align-items:center;flex-wrap:wrap;gap:12px}
[data-atlas-page="analysis"] textarea{font-size:14px;line-height:1.7}
[data-atlas-page="analysis"] .panel .actions{gap:10px}
[data-atlas-page="transcriptome"] .study-list{max-height:420px;overflow:auto}
[data-atlas-page="transcriptome-study-review"]>main{overflow-x:clip}
[data-atlas-page="transcriptome-study-review"] select{min-width:0;max-width:100%}
[data-atlas-page="transcriptome-study-review"] .note,[data-atlas-page="transcriptome-study-review"] .notice{overflow-wrap:anywhere}
[data-atlas-page="rnaseq-review"] main>p:first-child a{display:inline-block;padding:8px 12px;border:1px solid #345363;border-radius:8px;text-decoration:none}
/* Layer 2: compact search workbench, independent scroll regions. */
[data-atlas-page="layer2"]{background:#f3f7f6;color:#17323c}
[data-atlas-page="layer2"]>header{min-height:72px;padding:16px max(24px,calc((100vw - 1232px)/2));gap:20px;background:#103c43}
[data-atlas-page="layer2"]>header>strong{font-size:18px;letter-spacing:.015em}
[data-atlas-page="layer2"]>header nav{display:flex;align-items:center;gap:18px;font-size:13px}
[data-atlas-page="layer2"] #lang{min-height:34px;padding:6px 13px}
[data-atlas-page="layer2"] .wrap{max-width:1280px;padding:28px 24px 60px}
[data-atlas-page="layer2"] h1{font-size:32px;margin-bottom:10px}
[data-atlas-page="layer2"] .wrap>.intro{max-width:1120px;margin:0 0 12px;line-height:1.75;font-size:15px}
[data-atlas-page="layer2"] .wrap>.intro+.intro{font-size:13px;color:#61787d;line-height:1.75}
[data-atlas-page="layer2"] #dataset-status{margin-top:22px}
[data-atlas-page="layer2"] #dataset-status .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
[data-atlas-page="layer2"] .stat{min-width:0;border:1px solid #d8e8e2;background:#eaf4f0;padding:14px 17px;border-radius:11px;font-size:12px;line-height:1.6}
[data-atlas-page="layer2"] .stat strong{font-size:25px;line-height:1.35;color:#185f58;letter-spacing:-.025em;font-variant-numeric:tabular-nums}
[data-atlas-page="layer2"] #dataset-status>p{font-size:12px;line-height:1.75;margin:8px 0}
[data-atlas-page="layer2"] .wrap>.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:24px}
[data-atlas-page="layer2"] .card{border-color:#d9e6e2;background:#fff;box-shadow:0 3px 12px #183c3b05;padding:22px}
[data-atlas-page="layer2"] .query-card{display:flex;flex-direction:column;align-items:stretch}
[data-atlas-page="layer2"] .query-card h2{font-size:18px;margin-bottom:17px}
[data-atlas-page="layer2"] label{font-size:13px;margin-bottom:8px;line-height:1.5}
[data-atlas-page="layer2"] input,[data-atlas-page="layer2"] textarea{font-size:13px;padding:11px 12px;border-color:#bfd3ce;line-height:1.5;background:#fcfefd}
[data-atlas-page="layer2"] input{height:43px;min-width:0}
[data-atlas-page="layer2"] button{min-height:39px;font-size:13px;line-height:1.4;padding:10px 15px;margin-top:12px}
[data-atlas-page="layer2"] .query-card>button{align-self:flex-start}
[data-atlas-page="layer2"] .query-card>.muted{font-size:12px;line-height:1.75;margin:14px 0 0}
[data-atlas-page="layer2"] .tools-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
[data-atlas-page="layer2"] .tools-form-grid>div{display:grid;grid-template-rows:auto 78px auto;gap:10px;align-items:start}
[data-atlas-page="layer2"] .tools-form-grid label{margin:0}
[data-atlas-page="layer2"] .tools-form-grid button{margin:0;justify-self:start}
[data-atlas-page="layer2"] #batch-terms{height:78px;min-height:78px;resize:vertical}
[data-atlas-page="layer2"] #tools-status:empty{display:none}
[data-atlas-page="layer2"] .section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:12px}
[data-atlas-page="layer2"] .section-heading h2{margin:0}
[data-atlas-page="layer2"] .export-tools{display:flex;gap:8px;flex-wrap:wrap}
[data-atlas-page="layer2"] .export-tools button{margin:0;min-height:33px;background:#eef5f2;color:#24685e;border:1px solid #d0e2db;font-size:12px;padding:7px 11px}
[data-atlas-page="layer2"] .export-note{font-size:12px;line-height:1.7;margin:0 0 15px;color:#71868a}
[data-atlas-page="layer2"] #status:empty{display:none}
[data-atlas-page="layer2"] #result{max-height:760px;overflow:auto;line-height:1.75;scrollbar-width:thin}
[data-atlas-page="layer2"] #result:not(:has(*)){padding:32px 16px;text-align:center;border:1px dashed #d7e5e0;background:#f8fbfa;border-radius:10px}
[data-atlas-page="layer2"] #result>.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px}
[data-atlas-page="layer2"] #result h3{font-size:16px;margin:25px 0 12px;color:#234d54}
[data-atlas-page="layer2"] table{min-width:680px}
[data-atlas-page="layer2"] table th{background:#eff5f3;color:#486a6d;font-size:12px}
[data-atlas-page="layer2"] table td{border-color:#e5eeea;font-size:12px}
[data-atlas-page="layer2"] table tr:hover td{background:#f7fbf9}
[data-atlas-page="layer2"] table code{font-size:11px}
[data-atlas-page="layer2"] #strain-coverage{max-height:560px;overflow:auto;border:1px solid #e2ece8;border-radius:10px}
[data-atlas-page="layer2"] #strain-coverage>p{margin:0;padding:13px 15px;font-size:13px}
[data-atlas-page="layer2"] #strain-coverage table td:first-child{white-space:nowrap}
[data-atlas-page="layer2"] #species-results:not(:empty),[data-atlas-page="layer2"] #batch-results:not(:empty){max-height:480px;overflow:auto;margin-top:20px;border-top:1px solid #e1ebe7;padding-top:8px}
[data-atlas-page="layer2"] .provenance-card{background:#f9fcfa;box-shadow:none}
[data-atlas-page="layer2"] .provenance-card summary{font-size:15px;font-weight:650;color:#315e61;cursor:pointer;padding:2px 0}
[data-atlas-page="layer2"] #provenance-info{max-width:110ch;font-size:13px;line-height:1.85;padding-top:10px;overflow-wrap:anywhere}
[data-atlas-page="layer2"] #provenance-info p{margin:10px 0}
@media(max-width:1180px){
 [data-atlas-page="home"] .app-shell>.topbar{grid-template-columns:210px minmax(230px,1fr) auto;gap:12px 18px}
 [data-atlas-page="home"] .topbar .top-stats{display:none}
 [data-atlas-page="home"] .topbar .atlas-tools{grid-column:1/3}
 [data-atlas-page="home"] .topbar .language-switch{grid-column:3}
 [data-atlas-page="home"] .workspace{grid-template-columns:230px minmax(0,1fr);height:auto;min-height:0}
 [data-atlas-page="home"] .workspace>.graph-panel{height:660px}
 [data-atlas-page="home"] .workspace>.inspector{grid-column:1/-1;max-height:600px;border-left:0;border-top:1px solid #293e50}
 [data-atlas-page="home"] .species-browser{grid-template-columns:210px minmax(0,1fr)}
 [data-atlas-page="home"] .species-gene-detail{grid-column:1/-1}
 [data-atlas-page="layer2"] .wrap>.grid{gap:14px}
 [data-atlas-page="layer2"] .card{padding:19px}
}
@media(max-width:760px){
 [data-atlas-page="home"] .app-shell>.topbar{grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;padding:14px 14px 11px}
 [data-atlas-page="home"] .topbar .brand{grid-column:1;grid-row:1}
 [data-atlas-page="home"] .topbar .brand strong{font-size:16px}
 [data-atlas-page="home"] .topbar .brand small{font-size:10px}
 [data-atlas-page="home"] .topbar .language-switch{grid-column:2;grid-row:1;position:static}
 [data-atlas-page="home"] .language-switch button{padding:6px 8px;font-size:11px}
 [data-atlas-page="home"] .topbar .species-picker{grid-column:1/-1;grid-row:2;order:initial}
 [data-atlas-page="home"] .topbar .view-switch{grid-column:1/-1;grid-row:3;width:100%}
 [data-atlas-page="home"] .topbar .view-switch button{flex:1}
 [data-atlas-page="home"] .topbar .atlas-tools{grid-column:1/-1;grid-row:4;width:100%;max-width:100%;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding:0 0 3px;gap:5px}
 [data-atlas-page="home"] .atlas-tools .tools-label{display:none}
 [data-atlas-page="home"] .atlas-tools a{flex:none;font-size:11px;padding:7px 9px}
 [data-atlas-page="home"] .workspace{display:flex;flex-direction:column;gap:12px;height:auto;margin:12px;border:0;border-radius:0;overflow:visible;background:transparent}
 [data-atlas-page="home"] .workspace>.graph-panel{order:0;height:62dvh;min-height:420px;border:1px solid #293e50;border-radius:12px;overflow:hidden}
 [data-atlas-page="home"] .workspace>.controls{order:1;width:100%;max-height:none;border:1px solid #293e50;border-radius:12px;padding:20px}
 [data-atlas-page="home"] .workspace>.inspector{order:2;width:100%;max-height:none;border:1px solid #293e50;border-radius:12px}
 [data-atlas-page="home"] .species-view,[data-atlas-page="home"] .metabolic-view{padding:20px 12px 36px}
 [data-atlas-page="home"] .species-browser{display:block;height:auto}
 body[data-atlas-page]:not([data-atlas-page="home"]):not([data-atlas-page="layer2"])>header{padding:15px 16px;gap:12px}
 body[data-atlas-page]:not([data-atlas-page="home"]):not([data-atlas-page="layer2"])>header nav{flex:0 0 100%;width:100%;max-width:100%;margin:0;gap:4px;justify-content:flex-start}
 body[data-atlas-page]:not([data-atlas-page="home"]):not([data-atlas-page="layer2"])>header nav a{font-size:12px;padding:6px 8px}
 body[data-atlas-page]:not([data-atlas-page="home"]):not([data-atlas-page="layer2"])>main{padding:24px 16px 44px}
 body[data-atlas-page]:not([data-atlas-page="home"]) h1{font-size:27px}
 body[data-atlas-page]:not([data-atlas-page="home"]) .card,body[data-atlas-page]:not([data-atlas-page="home"]) .panel{padding:18px}
 body[data-atlas-page]:not([data-atlas-page="home"]) .grid{grid-template-columns:minmax(0,1fr)}
 [data-atlas-page="layer2"]>header{padding:15px 16px;gap:12px;flex-wrap:wrap}
 [data-atlas-page="layer2"]>header>strong{font-size:16px}
 [data-atlas-page="layer2"]>header nav{margin-left:auto;gap:12px;font-size:11px}
 [data-atlas-page="layer2"] .wrap{padding:24px 16px 44px}
 [data-atlas-page="layer2"] .wrap>.intro{font-size:14px}
 [data-atlas-page="layer2"] #dataset-status .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 [data-atlas-page="layer2"] .stat{padding:12px}
 [data-atlas-page="layer2"] .stat strong{font-size:22px}
 [data-atlas-page="layer2"] .wrap>.grid{grid-template-columns:minmax(0,1fr);gap:13px}
 [data-atlas-page="layer2"] .tools-form-grid{grid-template-columns:minmax(0,1fr);gap:24px}
 [data-atlas-page="layer2"] #result{max-height:640px}
 [data-atlas-page="layer2"] .section-heading{gap:10px}
 [data-atlas-page="layer2"] .export-tools{width:100%}
 [data-atlas-page="analysis"] .badge{margin-left:0}
}
@media(prefers-reduced-motion:reduce){body[data-atlas-page] *{scroll-behavior:auto!important;transition:none!important}}
