:root{color:#20251f;font-synthesis:none;text-rendering:optimizelegibility;--ink:#20251f;--muted:#626a61;--line:#d9ddd4;--surface:#fffefa;--green:#315c45;--green-dark:#244634;--amber:#805719;background:#f7f5ef;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:400}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-offset:2px;outline:3px solid #8dbb9d}.app-shell{flex-direction:column;min-height:100vh;display:flex}.topbar{background:var(--surface);border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:1rem;min-height:64px;padding:.75rem max(1rem,50vw - 560px);display:flex}.brand{color:var(--green-dark);font-weight:750;text-decoration:none}.user-actions{align-items:center;gap:.5rem;display:flex}.user-email{color:var(--muted);overflow-wrap:anywhere;font-size:.875rem}.content-wrap{flex:1;width:min(100% - 2rem,1120px);margin:0 auto;padding:2rem 0 3rem}.page-heading{justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:1.5rem;display:flex}h1,h2,p{margin-top:0}h1{margin-bottom:.5rem;font-size:clamp(1.75rem,4vw,2.5rem);line-height:1.15}h2{margin-bottom:.4rem;font-size:1.25rem}.eyebrow{color:var(--green);letter-spacing:.08em;text-transform:uppercase;margin-bottom:.45rem;font-size:.75rem;font-weight:750}.muted{color:var(--muted);margin-bottom:0}.button{cursor:pointer;border:1px solid #0000;border-radius:.65rem;justify-content:center;align-items:center;min-height:48px;padding:.65rem 1rem;font-weight:650;text-decoration:none;display:inline-flex}.button:disabled{opacity:.6;cursor:wait}.primary{color:#fff;background:var(--green)}.primary:hover:not(:disabled){background:var(--green-dark)}.secondary{color:var(--green-dark);background:#f5f8f4;border-color:#c6d4c8}.quiet{color:var(--green-dark);background:0 0}.full-width{width:100%}.filters{border:1px solid var(--line);background:var(--surface);border-radius:.9rem;grid-template-columns:minmax(180px,2fr) minmax(150px,1fr) minmax(170px,1fr) auto;align-items:end;gap:.8rem;margin-bottom:1.25rem;padding:1rem;display:grid}label{color:#374239;gap:.4rem;font-size:.9rem;font-weight:620;display:grid}input,textarea,select{width:100%;min-width:0;min-height:48px;color:var(--ink);background:#fff;border:1px solid #b9c2b8;border-radius:.55rem;padding:.7rem .75rem;font-size:16px}textarea{resize:vertical;min-height:104px}.narrative-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;display:grid}.narrative-card,.editor-panel,.auth-card,.account-row,.empty-state{border:1px solid var(--line);background:var(--surface);border-radius:.9rem}.narrative-card{min-width:0;padding:1.1rem}.card-heading{justify-content:space-between;align-items:flex-start;gap:.75rem;margin-bottom:1rem;display:flex}.card-heading h2{overflow-wrap:anywhere;margin:0}.status-pill{max-width:48%;color:var(--amber);text-align:center;background:#fff2dc;border-radius:999px;flex:none;padding:.35rem .6rem;font-size:.75rem;font-weight:700}.status-pill.confirmed{color:#2b573e;background:#e5f1e7}.metadata{gap:.7rem;margin:0 0 .9rem;display:grid}.metadata div{min-width:0}.metadata dt{color:var(--muted);font-size:.75rem;font-weight:700}.metadata dd{white-space:pre-wrap;overflow-wrap:anywhere;margin:.15rem 0 0}.story-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:.8rem 0;line-height:1.55}.private-note{color:#634716;background:#fff8ea;border-left:3px solid #b5812b;border-radius:.2rem .5rem .5rem .2rem;margin:.75rem 0;padding:.8rem}.card-actions{flex-wrap:wrap;gap:.5rem;margin-top:1rem;display:flex}.editor-panel{margin:1rem 0;padding:1.1rem}.panel-heading{justify-content:space-between;align-items:center;gap:1rem;display:flex}.narrative-form,.account-form{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:.9rem;display:grid}.narrative-form>label:nth-child(n+4),.narrative-form>.private-note,.narrative-form>.error-message{grid-column:1/-1}.narrative-form button{justify-self:start}.account-form .check-row{align-items:center;min-height:48px;display:flex}.check-row input{width:22px;min-height:22px}.account-list{gap:.6rem;margin-top:1rem;display:grid}.account-row{justify-content:space-between;align-items:center;gap:.75rem;padding:.85rem 1rem;display:flex}.account-row p{color:var(--muted);margin:.2rem 0 0}.error-message,.success-message{border-radius:.55rem;margin:.8rem 0;padding:.75rem .9rem}.error-message{color:#7b2c23;background:#fff0ed}.success-message{color:#28573b;background:#e7f3e9}.empty-state{color:var(--muted);text-align:center;padding:2.25rem 1rem}.pagination{justify-content:center;align-items:center;gap:1rem;margin-top:1.2rem;display:flex}.site-footer{color:var(--muted);background:var(--surface);border-top:1px solid var(--line);text-align:center;padding:1.2rem;font-size:.85rem}.auth-page{background:radial-gradient(at top,#e8eee6,#0000 55%);place-items:center;min-height:100vh;padding:1rem;display:grid}.auth-card{width:min(100%,420px);padding:clamp(1.25rem,5vw,2rem);box-shadow:0 16px 50px #263c2a12}.auth-card h1{margin:.35rem 0 .6rem;font-size:clamp(1.65rem,8vw,2.1rem)}.auth-card form{gap:.6rem;margin-top:1.5rem;display:grid}.google-button{color:var(--ink);border-color:var(--line);background:#fff;margin-top:.65rem}.loading-screen{min-height:100vh;color:var(--muted);place-items:center;display:grid}@media (width<=760px){.content-wrap{width:min(100% - 1.25rem,600px);padding-top:1.25rem}.topbar{flex-wrap:wrap;padding:.6rem .75rem}.user-actions{justify-content:space-between;width:100%}.user-email{max-width:40vw}.page-heading{flex-direction:column;align-items:stretch}.page-heading>.button{width:100%}.filters,.narrative-list,.narrative-form,.account-form{grid-template-columns:1fr}.narrative-form>label,.narrative-form>.private-note,.narrative-form>.error-message{grid-column:1}}@media (width<=380px){.status-pill{max-width:42%;font-size:.68rem}.card-heading{gap:.45rem}.card-actions .button{width:100%}}
