[hidden]{display:none!important}.view-link{color:var(--gold);font-size:14px}.editor-main{max-width:1080px;padding-bottom:50px}.intro{color:var(--muted)}#login-panel{max-width:520px;padding:24px;background:#1b3037;border:1px solid #41585e;border-radius:8px;margin-top:30px}#login-form label{display:block;margin:14px 0}input,textarea{display:block;width:100%;background:#102027;color:#edf0e4;border:1px solid #637779;border-radius:5px;padding:12px;font:inherit}textarea{resize:vertical;line-height:1.9;min-height:220px}textarea:focus,input:focus{outline:2px solid var(--gold);outline-offset:2px}#message{min-height:28px;color:var(--gold);white-space:pre-line}#message.error{color:#ffbcae}.subtle{font-size:14px;color:var(--muted)}.editor-top{display:flex;align-items:center;justify-content:space-between}.editor-top span{color:var(--muted);margin-left:15px;font-size:14px}#scene-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:15px 0 26px}#scene-tabs button{text-align:left}#scene-tabs button[aria-current=true]{border-color:var(--gold);color:var(--gold)}.writing-grid{display:grid;grid-template-columns:310px 1fr;gap:36px}.writing-grid img{width:100%;aspect-ratio:16/9;object-fit:cover;image-rendering:pixelated;border-radius:5px}.badge{color:var(--gold)}.field-label{font-size:20px;font-weight:700}.field-label span{font-size:14px;color:var(--muted);font-weight:400}.text-meta{display:flex;justify-content:space-between;font-size:14px;color:var(--muted);margin-top:8px}.actions{display:flex;gap:10px;margin-top:18px}.primary{background:var(--gold);color:#1a2a2d;border-color:var(--gold);font-weight:700}.primary:hover{background:#ffd38d}.secondary{display:flex;gap:10px;margin:16px 0}.secondary button{font-size:14px;padding:6px 10px;background:transparent}.published{border-top:1px solid #496065;margin-top:25px;padding-top:15px}.published h3{font-size:14px;color:var(--muted)}#published-text{white-space:pre-wrap;overflow-wrap:anywhere}#confirm{max-width:540px}#confirm-body{white-space:pre-line}button:disabled{opacity:.4}#story{white-space:pre-wrap;overflow-wrap:anywhere}.episode-error{color:#f8c582;font-size:14px}@media(max-width:650px){header{gap:12px;padding:18px}.brand{font-size:14px}.view-link{font-size:12px}.editor-main h1{font-size:26px}.writing-grid{grid-template-columns:1fr;gap:15px}.writing-grid aside{display:grid;grid-template-columns:120px 1fr;column-gap:15px;align-items:start}.writing-grid aside img{grid-row:span 3}.writing-grid aside h2,.writing-grid aside p{margin:0;font-size:14px}#scene-tabs{grid-template-columns:repeat(2,1fr)}.actions button{flex:1;padding:10px}.secondary{flex-wrap:wrap}}
#note-editor{margin-top:18px;border-top:1px solid #496065;padding-top:18px}#note-editor label{font-weight:700}#note-editor textarea{min-height:140px;margin-top:10px;font-size:16px}#note-editor .actions,#note-editor .secondary{flex-wrap:wrap}#note-editor button{font-size:14px;padding:8px 12px}#note-state{font-size:14px;color:var(--gold);white-space:pre-wrap}#write-note{margin-top:15px;background:transparent;border-color:#637779;font-size:14px}#note-login{color:var(--gold)}
/* Photo-first detail: no reserved column or empty space for an unwritten note. */
#memory{width:min(780px,calc(100% - 32px));padding:24px;border-radius:8px}
.memory-heading{padding-right:32px;margin-bottom:16px}.memory-heading .eyebrow{margin-bottom:2px}.memory-heading h2{font-size:25px;margin:0}
#memory .memory-grid{display:block}
#memory .photo{width:100%;height:auto;aspect-ratio:16/9;max-height:52dvh;background-size:contain;background-repeat:no-repeat;background-color:#0e2026;border:0;border-radius:4px}
#memory .photo-nav{margin-top:12px;gap:14px;justify-content:center}#memory .photo-nav button{min-width:44px;min-height:40px}#memory .photo-nav span{min-width:60px;text-align:center;font-size:14px}
.photo-meta{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;margin-top:8px}
#memory #caption{border:0;padding:0;margin:0;font-size:14px}.photo-meta .sample-label{margin:0;font-size:12px}
#memory #story:not([hidden]){margin:20px 0 0;padding:18px 0 0;border-top:1px solid #41575b;line-height:1.9}
#episode-status:empty{display:none}#memory #write-note{margin-top:16px}#memory #note-editor{margin-top:16px}
@media(max-width:600px){#memory{width:calc(100% - 20px);padding:18px 14px}.memory-heading h2{font-size:22px}.memory-heading{margin-bottom:12px}#memory .photo{height:auto;aspect-ratio:16/9;max-height:48dvh}.photo-meta{gap:3px}.photo-meta .sample-label{width:100%}}
