@import url('theme.css');
:root { color-scheme:light; --frame:var(--atlas-accent); --surface:var(--atlas-surface); --soft:var(--atlas-soft); --ink:var(--atlas-ink); --muted:var(--atlas-muted); --rule:var(--atlas-rule); }
html[data-theme="night"] { color-scheme:dark; }
* { box-sizing:border-box; letter-spacing:0; }
html,body { width:100%; height:100%; margin:0; overflow:hidden; font:13px/1.4 system-ui,sans-serif; background:var(--rule); color:var(--ink); }
.atlas-app { height:100%; height:100dvh; padding:1px; display:grid; grid-template-rows:auto minmax(0,1fr) auto; gap:1px; padding-top:max(1px,env(safe-area-inset-top)); padding-bottom:max(1px,env(safe-area-inset-bottom)); padding-left:max(1px,env(safe-area-inset-left)); padding-right:max(1px,env(safe-area-inset-right)); }
.atlas-header { position:relative; z-index:3; min-width:0; display:flex; align-items:center; gap:14px; padding:0 7px; background:var(--surface); }
a { color:inherit; text-decoration:none; }
a:hover { color:var(--frame); }
a:focus-visible,button:focus-visible { outline:2px solid var(--frame); outline-offset:-2px; }
.atlas-brand { display:flex; flex:none; gap:7px; align-items:center; font-size:13px; font-weight:700; white-space:nowrap; }
.atlas-mark { width:22px; height:22px; background:#16755f; color:white; display:grid; place-items:center; font-size:17px; }
.atlas-year { color:var(--muted); font-weight:500; }
#atlas-navigation { display:flex; align-self:stretch; align-items:stretch; gap:2px; flex:1; min-width:0; }
#atlas-navigation a { display:flex; align-items:center; padding:4px 9px; font-size:13px; border-bottom:2px solid transparent; white-space:nowrap; }
#atlas-navigation a:hover { background:var(--soft); }
#atlas-navigation a[aria-current="page"] { color:var(--frame); border-bottom-color:var(--frame); font-weight:650; }
.atlas-actions { display:flex; align-items:center; gap:2px; margin-left:auto; }
.atlas-icon { width:30px; height:30px; padding:7px; border:0; border-radius:2px; background:transparent; cursor:pointer; }
.atlas-icon:hover { background:var(--soft); }
.atlas-icon img { display:block; width:16px; height:16px; }
html[data-theme="night"] .atlas-icon img { filter:invert(1); }
.atlas-menu,.atlas-footer-menu { display:none; }
.atlas-viewport { position:relative; min-width:0; min-height:0; background:var(--surface); }
#atlas-view { display:block; width:100%; height:100%; border:0; background:var(--surface); }
.atlas-footer { position:relative; z-index:2; display:flex; align-items:center; gap:12px; padding:3px 8px; background:var(--surface); color:var(--muted); font-size:12px; }
.atlas-footer-links { display:flex; align-items:center; gap:16px; margin-left:auto; }
.atlas-footer-links a[aria-current="page"] { color:var(--frame); }
.atlas-app { grid-template-columns:minmax(0,1fr); }
.atlas-footer { min-width:0; }
.atlas-footer-links a { white-space:nowrap; }
#atlas-network { color:#ba761e; }
#atlas-message { position:absolute; bottom:12px; left:12px; max-width:calc(100% - 24px); background:var(--surface); border:1px solid var(--rule); padding:10px 14px; box-shadow:0 2px 12px #0002; }
[hidden] { display:none !important; }
.atlas-compact .atlas-menu,.atlas-compact .atlas-footer-menu { display:block; }
.atlas-compact .atlas-header { gap:8px; }
.atlas-compact #atlas-navigation { display:none; position:absolute; right:0; top:100%; width:min(240px,calc(100vw - 2px)); padding:5px; background:var(--surface); border:1px solid var(--rule); box-shadow:0 8px 20px #0002; }
.atlas-compact #atlas-navigation[data-open="true"] { display:grid; }
.atlas-compact #atlas-navigation,.atlas-compact .atlas-footer-links { max-height:calc(100dvh - 100px); overflow-y:auto; }
.atlas-compact #atlas-navigation a { min-height:42px; padding:8px 12px; border:0; border-left:2px solid transparent; }
.atlas-compact #atlas-navigation a[aria-current="page"] { border-left-color:var(--frame); background:var(--soft); }
.atlas-compact .atlas-footer-menu { margin-left:auto; }
.atlas-compact .atlas-footer { padding:0 7px; }
.atlas-compact .atlas-footer-links { display:none; position:absolute; right:0; bottom:100%; min-width:180px; padding:5px; background:var(--surface); border:1px solid var(--rule); box-shadow:0 -6px 20px #0002; }
.atlas-compact .atlas-footer-links[data-open="true"] { display:grid; }
.atlas-compact .atlas-footer-links a { min-height:42px; padding:10px; }
:fullscreen .atlas-app { padding:0; }
@media (pointer:coarse) { .atlas-icon { width:42px; height:42px; padding:12px; } .atlas-icon img { width:18px; height:18px; } }
@media (max-width:370px) { .atlas-year { display:none; } .atlas-brand { font-size:12px; gap:6px; } .atlas-footer-links { gap:8px; } }
