.story-resources{display:grid;gap:3px;padding:0 12px 18px;margin-bottom:15px;border-bottom:1px solid var(--line)}.story-resources .button{justify-content:flex-start;font-size:12px;min-height:34px}.story-dialog{width:min(1080px,94vw);height:min(850px,92dvh)}.story-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);padding:0 30px;flex-shrink:0}.story-tabs button{border:0;border-bottom:3px solid transparent;background:none;padding:15px 4px 12px;color:var(--muted);font-size:14px}.story-tabs button[aria-pressed=true]{color:var(--accent);border-color:var(--accent);font-weight:600}.story-subbar{display:flex;align-items:center;justify-content:space-between;padding:16px 30px 0;flex-shrink:0;min-height:50px}.story-subbar h3{font-size:12px;font-weight:500;color:var(--muted);margin:0}.story-subbar .button{min-height:32px;font-size:12px}.story-dialog .feature-content{flex:1;padding-top:18px}.story-section-intro{margin-bottom:24px}.story-section-intro h3{font:600 24px var(--serif);margin:0 0 8px}.story-section-intro p{font-size:12px;color:var(--muted)}.story-profile{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.story-field{display:flex;flex-direction:column;gap:9px;min-width:0}.story-field>span{font-size:12px;font-weight:600;color:#75655e}.story-profile>.story-field{grid-column:1/-1}.story-profile>.story-field.short{grid-column:auto}.story-field textarea{width:100%;resize:vertical;min-height:115px;font:15px/1.85 var(--serif);background:var(--paper)}.story-field input{width:100%;font-size:14px}#story-profile-synopsis{min-height:160px}.story-field textarea::placeholder,.story-field input::placeholder{color:#9f9488;font-size:13px}.story-characters{display:grid;grid-template-columns:180px minmax(0,1fr);gap:28px}.story-character-list{display:flex;flex-direction:column;gap:6px;border-right:1px solid var(--line);padding-right:18px;align-self:start}.story-character{padding:12px;text-align:left;overflow-wrap:anywhere;border:1px solid transparent;border-radius:6px;background:none;font-size:14px}.story-character[aria-current=true]{background:var(--rose);color:var(--accent);border-color:#ead5dc;font-weight:600}.story-character-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}.story-character-fields>.story-field:first-child{grid-column:1/-1}.story-character-fields>.story-field:last-child{grid-column:1/-1}.story-remove{margin-top:22px;color:var(--muted)}.story-outline-cards{display:grid;gap:20px}.story-outline-card{border:1px solid #e2d9cd;border-radius:10px;padding:22px;background:#fffdf9}.story-outline-card>header{display:flex;gap:16px;align-items:flex-start;margin-bottom:20px}.story-scene-index{font:26px Georgia,serif;color:#b4868d}.story-outline-card h3{margin:0 0 4px;font:600 19px var(--serif);overflow-wrap:anywhere}.story-outline-card header>div:not(.story-order){min-width:0;flex:1}.story-outline-card header p{font-size:11px;color:var(--muted)}.story-order{display:flex;gap:4px;flex-shrink:0}.story-cast{border:0;padding:0;display:flex;flex-wrap:wrap;gap:10px 18px;margin:16px 0}.story-cast legend{font-size:12px;color:var(--muted);padding:0;margin-bottom:10px}.story-cast label{display:flex;gap:7px;align-items:center;font-size:12px;overflow-wrap:anywhere}.story-cast input[type=checkbox]{margin:0}.story-outline-card footer{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);border-top:1px solid var(--line);padding-top:14px}.story-version{margin:12px 0;font-size:13px;border:1px solid var(--line);padding:14px}.story-version summary{cursor:pointer}.story-version pre,.story-reference-text{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.8 var(--serif);padding:12px;margin:0;max-height:300px;overflow:auto}#story-conflict{padding:14px 30px;overflow:auto;max-height:35dvh;background:#faf0e5;border-top:1px solid #e3d4c0;flex-shrink:0}#story-conflict summary{font-size:13px;cursor:pointer}.story-conflict-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.story-conflict-grid pre{font:12px/1.7 var(--serif);max-height:160px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.story-conflict-grid h3{font-size:12px}.story-dialog .feature-actions{gap:8px}
.ai-references{border:1px solid var(--line);border-radius:8px;margin:18px 0;padding:16px}.ai-references h3{font-size:13px;margin:0 0 7px}.ai-reference-options{display:flex;gap:10px 18px;flex-wrap:wrap;margin:8px 0 14px}.ai-reference-options label{display:flex;gap:7px;align-items:flex-start;font-size:12px;max-width:100%;overflow-wrap:anywhere}.ai-reference-options input[type=checkbox]{margin-top:2px}.ai-references summary{cursor:pointer;font-size:12px;color:var(--muted);padding:7px 0}.ai-reference-status{font-size:11px;color:var(--muted);margin:8px 0 0}#ai-refresh-reference{font-size:12px}
@media(max-width:700px){.story-tabs{padding:0 18px;gap:16px}.story-subbar{padding:12px 18px 0}.story-profile{grid-template-columns:1fr}.story-profile>.story-field.short{grid-column:1/-1}.story-characters{grid-template-columns:1fr;gap:20px}.story-character-list{flex-direction:row;flex-wrap:wrap;border-right:0;border-bottom:1px solid var(--line);padding:0 0 12px}.story-character{padding:7px 12px}.story-character-fields{grid-template-columns:1fr}.story-outline-card{padding:16px}.story-section-intro h3{font-size:21px}.story-resources{padding:0 5px 12px}.story-resources .button{font-size:11px;padding:5px;min-height:32px}.story-dialog .feature-actions .button{font-size:11px;min-height:34px;padding:7px}.story-conflict-grid{grid-template-columns:1fr}#story-conflict{padding:12px}.story-dialog .feature-actions .save-status{width:100%}.story-dialog{height:95dvh}.ai-reference-options{gap:9px 14px}}

.story-production{border-top:1px solid var(--line);padding:12px 0;margin:6px 0 12px}.story-production summary{cursor:pointer;font-size:12px;color:var(--accent)}.story-production summary span{color:var(--muted);margin-left:8px}.story-production-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px}.story-production-fields .story-field:last-child{grid-column:1/-1}.story-production-fields textarea{min-height:90px}@media(max-width:700px){.story-production-fields{grid-template-columns:1fr}.story-production summary span{display:block;margin:5px 0 0 14px}}
