:root { color-scheme: light; font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif; color: #272440; background: #fffaf0; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(850px, 100%); margin: 0 auto; padding: 40px 24px 60px; }
.brand { color: #ba4232; font-size: 1.2rem; font-weight: 800; text-decoration: none; }
h1 { margin: 26px 0 8px; font-size: clamp(1.8rem, 5vw, 2.4rem); letter-spacing: -.04em; }
header p, #directory-status { color: #666179; line-height: 1.6; }
#directory-status:empty { display: none; }
ol { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid #e5dfd6; }
li { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid #e5dfd6; }
a { color: inherit; }
.project { flex: 1; min-width: 0; display: grid; gap: 5px; padding: 20px 0; text-decoration: none; overflow-wrap: anywhere; }
.project strong { font-size: 1.1rem; }
.note { line-height: 1.5; }
.edited { color: #666179; font-size: .8rem; line-height: 1.5; }
.project-actions { display: flex; flex-shrink: 0; gap: 8px; }
.build, .view-project, .description-button { display: inline-flex; justify-content: center; align-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid #d5cdc2; border-radius: 8px; text-decoration: none; background: #fffefd; }
.project-actions svg { width: 22px; height: 22px; pointer-events: none; }
.view-project { border-color: #ba4232; color: #a43628; }
.build:hover, .view-project:hover, .description-button:hover { border-color: #ba4232; background: #fff0e9; }
button { padding: 10px 16px; font: inherit; color: inherit; background: white; border: 1px solid #d5cdc2; border-radius: 8px; cursor: pointer; }
:focus-visible { outline: 3px solid #463d93; outline-offset: 4px; }
dialog { width: min(540px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 24px; overflow: auto; border: 1px solid #d5cdc2; border-radius: 16px; background: #fffefd; color: inherit; box-shadow: 0 20px 70px #27244033; }
dialog::backdrop { background: #27244080; }
dialog h2 { margin: 0 0 16px; overflow-wrap: anywhere; }
#project-description-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
dialog form { display: flex; justify-content: flex-end; margin-top: 24px; }
dialog button { min-height: 44px; }
@media (max-width: 600px) {
  li { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 18px; }
  .project { padding-bottom: 12px; }
}
@media (max-width: 420px) { main { padding: 26px 16px 40px; } li { gap: 12px; } }
