:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#173842;background:#f6f8f7;font-synthesis:none;--line:#dbe3e4;--primary:#4858cc;--muted:#64767e}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{border:1px solid #ccd6df;border-radius:8px;background:white;color:#243e57;padding:10px 14px;cursor:pointer;font-size:.875rem;font-weight:600}button:hover:not(:disabled){background:#f0f2fb;border-color:#909cd8}button:disabled{opacity:.5;cursor:default}.primary{background:var(--primary);border-color:var(--primary);color:white}.primary:hover:not(:disabled){background:#3747ba}a{color:#4258ba;text-decoration:none}a:hover{text-decoration:underline}[hidden]{display:none!important}.site-header{min-height:72px;padding:18px max(28px,calc((100vw - 1440px)/2));display:flex;justify-content:space-between;align-items:center;background:white;border-bottom:1px solid var(--line);gap:20px;font-size:.9rem}.brand{font-size:1.15rem;color:#183740;font-weight:700;display:flex;align-items:center;gap:10px}main{max-width:1440px;margin:0 auto;padding:36px 28px 48px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:25px}h1{font-size:2.4rem;letter-spacing:-1.2px;margin:7px 0 10px}h2{font-size:1.3rem;line-height:1.4;margin:0}p{line-height:1.65}.page-heading p{margin:0;color:var(--muted)}.eyebrow{font-size:.68rem!important;font-weight:700;letter-spacing:1.6px;color:#45666e!important}.account{display:flex;flex-direction:column;gap:8px;min-width:260px;max-width:380px}.account label,.search-label{font-size:.78rem;font-weight:600}.library-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 0}.library-toolbar small{display:block;color:var(--muted);margin-top:7px}.button-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}#message:empty{display:none}#message{padding:13px 16px;background:#eaf0f1;border:1px solid var(--line);border-radius:8px;font-size:.9rem}#message.error,#dialogMessage{color:#983c2f}#message.error{background:#fff2ed;border-color:#e9c7ba}.library-layout{display:grid;grid-template-columns:310px minmax(0,1fr);background:white;border:1px solid var(--line);border-radius:14px;overflow:clip;min-height:620px}.story-browser{border-right:1px solid var(--line);background:#f3f6f5;padding:22px 16px;align-self:stretch}.story-browser input{margin:9px 0 12px}.story-browser select{font-size:.84rem}.story-list{display:flex;flex-direction:column;gap:8px;max-height:1000px;overflow:auto}.story-list button{text-align:left;border-color:transparent;background:transparent;padding:15px;width:100%;font-weight:400}.story-list button[aria-current=true]{background:white;border-color:#a5b0ec;box-shadow:0 3px 12px #27345b08}.story-list strong{display:block;font-size:.94rem;margin-bottom:8px;line-height:1.5}.story-list small{display:block;color:var(--muted);font-size:.73rem;line-height:1.6}.chip{display:inline-block;background:#e8eeec;border-radius:12px;padding:3px 8px;font-size:.67rem;letter-spacing:.3px;margin-top:8px;color:#376459}.editor-panel{padding:28px 32px;min-width:0}.editor-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:22px}.editor-heading h2{font-size:1.4rem;overflow-wrap:anywhere}.editor-heading .eyebrow{margin:0 0 7px}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:18px;min-width:0}.field label{font-size:.8rem;font-weight:600}.field .help{font-size:.76rem;color:var(--muted);font-weight:400}input,textarea,select{width:100%;padding:11px 12px;border:1px solid #d4dee2;border-radius:7px;background:white;color:#173842}textarea{min-height:110px;resize:vertical;line-height:1.65;font-size:.9rem}input[type=checkbox]{width:auto;align-self:start;accent-color:var(--primary);width:18px;height:18px}input:focus,textarea:focus,select:focus{outline:2px solid #8d9deb;border-color:transparent}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.field-grid .wide{grid-column:1/-1}details{border-top:1px solid var(--line);padding:20px 0}summary{cursor:pointer;font-weight:600;font-size:.95rem;padding:2px 0}details[open]>summary{margin-bottom:18px}summary span{color:var(--muted);font-size:.8rem;margin-left:8px}.child-card{padding:18px;border:1px solid var(--line);border-radius:9px;margin:16px 0;background:#fafbfc}.child-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:18px}.child-heading strong{font-size:.75rem;overflow-wrap:anywhere}.child-heading button{font-size:.75rem;padding:7px 10px}.muted{color:var(--muted);font-size:.83rem}.notice{padding:12px 15px;background:#f0f2fc;border-radius:8px;color:#45518b;font-size:.83rem;line-height:1.6}.save-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0 0;position:sticky;bottom:0;background:white;border-top:1px solid var(--line);box-shadow:0 -12px 16px white;font-size:.82rem;color:var(--muted)}.empty-state{text-align:center;max-width:360px;margin:120px auto;color:var(--muted)}.empty-state h2{color:#254451}.star-mark{display:block;font-size:3rem;color:var(--primary);margin-bottom:20px}.publish-bar{display:flex;justify-content:space-between;gap:30px;align-items:center;margin-top:24px;padding:24px 28px;background:#eaf0ee;border:1px solid #d8e4dd;border-radius:12px}.publish-bar h2{font-size:1.05rem}.publish-bar p{font-size:.85rem;color:var(--muted);margin:7px 0 0;max-width:700px}.publish-bar button{white-space:nowrap}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}dialog{width:min(840px,94vw);max-height:90vh;border:1px solid var(--line);border-radius:14px;padding:26px;color:#173842;box-shadow:0 20px 80px #17384240}dialog::backdrop{background:#102d3d70}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.dialog-heading button{border:0}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.review-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:.85rem}.history-row{padding:14px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:16px;align-items:center}.history-row small{display:block;color:var(--muted);margin:5px 0}.check-label{display:flex;gap:12px;line-height:1.6;margin-top:18px;font-size:.88rem}.check-label input{flex-shrink:0;margin-top:4px}.change-table{width:100%;border-collapse:collapse;font-size:.8rem;table-layout:fixed}.change-table th,.change-table td{padding:10px;border:1px solid var(--line);text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;vertical-align:top}.change-table th{background:#f1f5f4}.change-table td:first-child{font-weight:600;width:22%}@media(max-width:950px){.library-toolbar,.page-heading{align-items:flex-start;flex-direction:column}.account{width:100%;max-width:none}.library-layout{grid-template-columns:260px minmax(0,1fr)}.editor-panel{padding:24px 20px}.editor-heading{flex-direction:column}.field-grid{grid-template-columns:1fr}.field-grid .wide{grid-column:auto}}@media(max-width:670px){main{padding:24px 16px}.site-header{padding:18px 16px}.site-header>a:last-child{font-size:.75rem}.brand{font-size:1rem}.library-layout{grid-template-columns:1fr}.story-browser{border-right:0;border-bottom:1px solid var(--line)}.story-list{max-height:280px}.publish-bar{align-items:flex-start;flex-direction:column;padding:22px}.save-bar{align-items:flex-start}.save-bar .button-row{justify-content:flex-end}.editor-panel{padding:24px 18px}h1{font-size:2rem}.empty-state{margin:55px auto}.history-row{align-items:flex-start;flex-direction:column}}
