* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    margin: 0;
    padding: 40px 20px;
    min-height: 100vh;
}

h1 {
    max-width: 900px;
    margin: 0 auto 24px;
    font-size: 1.6em;
    color: #38bdf8;
    font-weight: 600;
    padding-bottom: 16px;
    border-bottom: 1px solid #1e293b;
}

hr { display: none; }

pre {
    max-width: 900px;
    margin: 0 auto;
    font-family: inherit;
    white-space: normal;
}

/* fallback, если JS выключен */
pre:not(.js-processed) {
    white-space: pre-wrap;
    background: #1e293b;
    padding: 20px;
    border-radius: 12px;
}
pre a { color: #38bdf8; text-decoration: none; }

/* Сетка, которую строит JS */
.entries {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    text-decoration: none;
    color: #e2e8f0;
    transition: all .15s;
    font-size: .95em;
}
.entry:hover {
    background: #334155;
    border-color: #38bdf8;
    transform: translateY(-2px);
}
.entry .icon { font-size: 1.3em; flex-shrink: 0; }
.entry .name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.entry .meta {
    font-size: .75em;
    color: #64748b;
    flex-shrink: 0;
}
.entry.parent .name { color: #94a3b8; }