:root{font:16px/1.45 system-ui,sans-serif;color:#dceaff;background:#020408;--accent:#0872b3}*{box-sizing:border-box}body{margin:0}header{background:#040810;color:white;padding:22px max(4vw,18px);display:flex;align-items:baseline;gap:18px}h1,h2{font-family:ui-serif,Georgia,serif;letter-spacing:-.03em}h1{margin:0;font-size:clamp(24px,4vw,40px)}header span{color:#9bc9ea}main{max-width:1280px;margin:22px auto;display:grid;grid-template-columns: .8fr 1.2fr;align-items:start;gap:18px;padding:0 18px}section,article{background:#080e18;border:1px solid #24415d;border-radius:10px;padding:20px;min-width:0}.wide{grid-column:1/-1}.bar,.row,form,.path{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.bar{margin-bottom:12px}.row>label,.path>label,form label{flex:1}.row>label:first-child{flex:.6}.bar h2{margin:0 auto 0 0}h3{margin:14px 0 5px}label{display:grid;gap:4px;font-size:.88rem;font-weight:600;margin:8px 0}.check{display:flex;align-items:center}button,input,textarea,select{font:inherit;border-radius:5px}input,textarea,select{max-width:100%;width:100%;padding:7px 9px;border:1px solid #355370;background:#020710;color:inherit}.bar select{width:auto;max-width:55%}textarea{min-height:72px;resize:vertical}.check input{width:auto}button{background:#0b2035;color:#c2e9ff;border:1px solid #345b7b;padding:7px 12px;cursor:pointer}button:disabled{opacity:.5;cursor:default}#saveBeat,#saveStory,#start,form button{background:var(--accent);color:white}small,#status{color:#a6bdd4}.windows{display:grid;grid-template-columns:1fr 1fr;gap:16px}article{background:#07111d}article h3{margin-top:0}.log{height:300px;overflow:auto;padding:8px;background:#020710;border:1px solid #24415d;border-radius:6px}.bubble{width:fit-content;max-width:85%;padding:8px 12px;border-radius:12px;background:#132235;white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}.user{margin-left:auto;background:#093959}pre{font:13px/1.5 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere}details{margin:10px 0}summary{cursor:pointer}.bar input{width:90px}#notice:not(:empty){position:fixed;bottom:12px;left:50%;transform:translateX(-50%);background:#102a45;color:white;padding:10px 20px;border-radius:6px;z-index:1}[hidden]{display:none!important}@media(max-width:760px){main,.windows{grid-template-columns:1fr}.wide{grid-column:auto}header{flex-wrap:wrap}}

header a{color:#a7e4ff;margin-left:auto}a{color:#64d1ff}#access{display:grid}#catalog article,#queue article,#mine article{margin-top:12px}article button{margin:4px}.reader main>section:not(.wide),.reader .windows>article:nth-child(2),.reader .wide>.bar button,.reader .wide>.bar label,.reader #status,.reader article h3{display:none}.reader .windows{display:block}.reader main{display:block;max-width:720px}.reader .log{height:50vh}
.reader #status.ended{display:block}

:root{color-scheme:dark;accent-color:#48c6ff}
body{min-height:100vh;background:radial-gradient(ellipse at 85% 0%,#0a2036 0,transparent 42rem),#020408}
header{position:relative;border-bottom:1px solid #2296d2;background:linear-gradient(100deg,#03060c,#0a192a 65%,#03060c);box-shadow:0 1px 14px #008dff30}
header h1{color:#d5f3ff;text-shadow:0 0 3px #57c8ff,0 0 19px #1587e899}
header span{font-family:ui-monospace,monospace;font-size:.9rem}
section{box-shadow:inset 0 1px 0 #4588b71c}
h2,h3{color:#d4eeff}input::placeholder,textarea::placeholder{color:#8b9eb6}
button:hover:enabled{border-color:#59c7ff;background:#103653}
:focus-visible{outline:2px solid #67d2ff;outline-offset:3px}
#saveBeat,#saveStory,#start,form button{background:#0b527e;border-color:#2da2dd}
#chat{background:linear-gradient(155deg,#03060c,#071320)}
.bubble{border:1px solid #223f59}.bubble.user{border-color:#225a7b}
#trace pre{color:#b0ddf8}.reader .windows article{border-top-color:#34b6ff}

.messageImage{display:block;max-width:min(100%,360px);height:auto;border-radius:8px}
.bubble .messageImage{margin-bottom:4px}

.appLinks{display:flex;flex-wrap:wrap;gap:6px 16px;margin-left:auto}
.appLinks a{white-space:nowrap}

.ratingStars{display:flex;flex-wrap:wrap;gap:6px}
.ratingStars button{min-width:44px;min-height:44px;color:#7cdaff;font-size:1.35rem}
.ratingStars button[aria-pressed="true"]{border-color:#7cdaff}
.storyRating p{margin:.4rem 0}
