.story-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0 20px}.story-tools input[type=search]{max-width:28rem}.story-tools .check-field{font-size:16px}.story-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.story-card{min-width:0;background:#fcfdf9;border:1px solid #dbe2d6;border-radius:16px;overflow:hidden}.story-open{display:block;width:100%;text-align:left;padding:0 0 14px;background:transparent;color:#202a22;border-radius:0}.story-open img{display:block;width:100%;aspect-ratio:2/3;object-fit:contain;background:#fff5e7}.story-open strong{display:block;padding:14px 16px 4px;font-size:18px;line-height:1.5;overflow-wrap:anywhere}.story-caption{display:block;padding:0 16px;color:#536153;font-size:14px}.story-author{font-size:14px;color:#536153;padding:0 16px;margin:0 0 14px}.story-card-actions{display:flex;gap:8px;padding:0 16px 16px;flex-wrap:wrap}.story-card-actions button{min-height:44px}.story-reader{width:min(1100px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0}.story-dialog-header{display:flex;gap:16px;justify-content:space-between;align-items:flex-start;padding:18px 20px;border-bottom:1px solid #dbe2d6}.story-dialog-header h2{margin:0;font-size:22px;line-height:1.5}.story-dialog-header button{flex:none;min-height:44px}.story-reader-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:24px;padding:20px}.story-reader-content img{width:100%;height:auto;display:block;border-radius:10px}.story-text{font-size:18px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.story-voice{padding:16px 20px 0}.story-voice audio{width:100%;display:block}.story-voice .hint{font-size:14px;margin:6px 0 0}.story-voice audio[hidden]{display:none}.story-editor{width:min(44rem,calc(100vw - 24px));max-height:calc(100dvh - 24px)}.story-editor input,.story-editor textarea{font-size:16px}.story-editor-preview{display:block;width:auto;max-width:100%;max-height:230px;margin:12px auto;object-fit:contain}.story-editor .error{font-size:16px;line-height:1.6}.story-editor .error:empty{display:none}.story-editor button[type=submit]{width:100%;min-height:48px;margin-top:16px}.story-editor textarea{resize:vertical;line-height:1.7}.story-reader::backdrop,.story-editor::backdrop{background:rgba(17,38,25,.68)}@media(max-width:1000px){.story-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){.story-reader-content{grid-template-columns:1fr;padding:16px;gap:20px}.story-dialog-header{padding:14px 16px}.story-dialog-header h2{font-size:20px}.story-text{font-size:17px;line-height:1.85}.story-tools input[type=search]{max-width:none;flex-basis:100%}}@media(max-width:540px){.story-grid{grid-template-columns:1fr}.story-open img{max-height:none}.story-card-actions{justify-content:flex-end}}

.story-heading>div{min-width:0;flex:1}.story-dialog-header{position:sticky;top:0;z-index:2;background:var(--paper,#fcfdf9)}.story-reader,.story-editor{overscroll-behavior:contain}.story-editor .card-heading{position:sticky;top:0;z-index:2;background:var(--paper,#fcfdf9);padding-bottom:10px}.story-open:disabled{cursor:default}.story-author{overflow-wrap:anywhere}@media(max-width:680px){.story-heading{flex-wrap:wrap}}
.story-scopes{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.story-scopes button{min-height:44px}.story-scopes button[aria-pressed=true]{background:var(--accent,#1f4d3a);color:var(--accent-ink,#f4f7f5);border-color:var(--accent,#1f4d3a)}.story-scope-hint{font-size:14px;line-height:1.6}.story-private-badge{font-weight:600;color:var(--accent,#1f4d3a)}.story-warehouse-option{padding:12px;border:1px solid #dbe2d6;border-radius:10px;font-size:16px;line-height:1.6}
.story-loop-option{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:6px 0 0;font-size:16px;cursor:pointer}.story-loop-option input[type=checkbox]{width:20px;height:20px;margin:0;accent-color:var(--accent,#1f4d3a)}
.story-audio-editor{border:1px solid #dbe2d6;border-radius:12px;padding:16px;margin-top:8px;display:grid;gap:12px}.story-audio-editor h3{font-size:18px;margin:0}.story-record-tools{display:flex;flex-wrap:wrap;gap:10px}.story-record-tools button{min-height:44px}.story-record-tools [hidden],.story-audio-preview[hidden]{display:none}.story-record-status{font-size:14px;line-height:1.6;margin:0}.story-audio-preview{display:block;width:100%;min-width:0}.story-audio-editor .hint{margin:0;overflow-wrap:anywhere}.story-audio-editor input[type=file]{width:100%;min-width:0}@media(max-width:540px){.story-audio-editor{padding:12px}.story-record-tools button{flex:1}}
