/* The file browser uses the site tokens; only its card shadow is local. */
:root { --shadow: 0 18px 50px rgba(24, 45, 33, .08); }
body { min-height: 100vh; background: radial-gradient(circle at top right, var(--static-glow, #e4f3e9) 0, transparent 32rem), var(--background); font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
.shell { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 72px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.brand { color: var(--primary); font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.home, .raw { color: var(--text-muted); font-size: .9rem; font-weight: 650; text-decoration: none; }
.home:hover, .home:focus-visible, .raw:hover, .raw:focus-visible { color: var(--primary); }
.actions { display: flex; align-items: center; gap: 18px; }
h1 { margin: 0; font-size: clamp(2rem, 7vw, 3.5rem); letter-spacing: -.055em; line-height: 1.05; }
.intro { max-width: 620px; margin: 14px 0 30px; color: var(--text-muted); }
.path { margin-bottom: 12px; color: var(--text-muted); font: 600 .82rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.listing { overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.entry { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 10px 18px; border-top: 1px solid var(--border); }
.entry:first-child { border-top: 0; }
.entry-main { display: flex; flex: 1; align-items: center; gap: 14px; min-width: 0; color: inherit; text-decoration: none; }
.entry-main:hover, .entry-main:focus-visible { color: var(--primary); }
.entry-main:focus-visible { border-radius: var(--radius-sm); }
.icon { display: grid; flex: 0 0 34px; height: 34px; place-items: center; border-radius: 9px; background: var(--surface-subtle); color: var(--primary); font-size: 1rem; font-weight: 800; }
.name { min-width: 0; overflow-wrap: anywhere; font-weight: 650; }
.kind { margin-left: auto; color: var(--text-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.raw { flex: 0 0 auto; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; }
.empty { margin: 0; padding: 28px 20px; color: var(--text-muted); text-align: center; }
footer { margin-top: 22px; color: var(--text-muted); font-size: .82rem; text-align: center; }
.article-body { margin-top: 20px; padding: clamp(24px, 5vw, 48px); border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.article-body h2, .article-body h3, .article-body h4 { margin: 1.8em 0 .55em; line-height: 1.15; }
.article-body h2:first-child, .article-body h3:first-child, .article-body h4:first-child { margin-top: 0; }
.article-body p, .article-body ul, .article-body ol, .article-body blockquote, .article-body pre, .article-body figure, .article-body .article-table { margin: 1em 0; }
.article-body pre { overflow-x: auto; padding: 16px; border-radius: 10px; background: var(--surface-subtle); }
.article-body code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.article-body blockquote { padding-left: 18px; border-left: 3px solid var(--primary); color: var(--text-muted); }
.article-body img { max-width: 100%; height: auto; }
.article-table { overflow-x: auto; }
.article-table table { width: 100%; border-collapse: collapse; }
.article-table td { padding: 9px 12px; border: 1px solid var(--border); text-align: left; }
@media (prefers-color-scheme: dark) { :root { --background: #101512; --surface: #171e1a; --text: #edf4ef; --text-muted: #9caaa1; --border: #2a352e; --primary: #65d69c; --surface-subtle: #183629; --shadow: 0 18px 50px rgba(0, 0, 0, .24); } body { background: radial-gradient(circle at top right, var(--static-dark-glow, #183629) 0, transparent 32rem), var(--background); } }
@media (max-width: 520px) { .shell { width: min(100% - 24px, 920px); padding-top: 26px; } .topbar { align-items: flex-start; margin-bottom: 30px; } .actions { gap: 10px; } .entry { padding-inline: 14px; } .kind { display: none; } }
