* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #92c287;
}

body {
    background-color: #000d00;
    color: #92c287;
    font-family: monospace;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 1.5rem;
}

header {
    padding: 1rem 1.5rem;
}

main {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
    padding: 0 1.5rem;
    align-items: stretch;
    justify-content: flex-start;
    overflow: auto;
}

#vault-list {
    width: 100%;
    max-width: none;
}

#vault-layout {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: minmax(320px, 42%) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

#vault-list {
    justify-self: start;
    text-align: left;
}

#vault-list ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

#vault-list li {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

a {
    color: #5a9f85;
    text-decoration: none;
}

a:focus-visible {
    text-decoration: wavy underline;
    color: #8e6f89;
    outline: none;
}

a:hover {
    text-decoration: underline;
    color: #8e6f89;
}

.preview-link {
    font-size: 0.7em;
}

.entry-link[aria-current="true"] {
    color: #8e6f89;
    text-decoration: underline;
}

.kbd-help {
    margin-top: 1rem;
    font-size: 0.7em;
    color: #6f9e66;
    font-size: 1.5rem;
}

kbd {
    border: 1px solid #5a9f85;
    border-radius: 4px;
    padding: 0 0.25em;
}

b {
    color: #b9a85e;
}

footer {
    text-align: center;
    font-size: 0.75em;
    color: #135a20;
    padding: 1rem 1.5rem;
}

footer a {
    color: #384f46;
}

footer p {
    margin-top: 0.5rem;
    color: #00460f;
}

.preview-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#vault-preview {
    width: 100%;
    padding: 1rem;
    min-height: 18rem;
}

#preview-content {
    width: 100%;
    max-width: 100%;
    overflow: auto;
    font-size: 0.7em;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.preview-panel pre {
    width: 100%;
    max-width: 100%;
    overflow: auto;
    padding: 0.8rem;
    font-size: 0.7em;
    line-height: 1.4;
}