/* Only the story material: shared controls and the other materials stay intact. */
.story-stock-list{display:grid;gap:10px}.story-stock{display:flex;flex-direction:column;gap:7px;padding:12px;text-align:left;min-width:0}.story-stock-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;width:100%}.story-stock-strip .atlas,.story-stock-strip>img{width:100%;height:72px;object-fit:contain}.story-stock>span:last-child{font-size:12px;color:var(--muted)}
.story-list-row{display:flex;gap:8px;align-items:center;border-bottom:1px solid var(--line);padding:6px 0}.story-list-edit{display:flex;align-items:center;text-align:left;gap:10px;flex:1;min-width:0;border:0;padding:5px}.story-list-edit>span:last-child{font-size:13px;overflow-wrap:anywhere}.story-list-edit small{display:block;font-weight:400;color:var(--muted);margin-top:4px}.story-list-picture,.story-list-picture .atlas{width:52px;height:52px;flex:none}.story-list-picture>img{width:100%;height:100%;object-fit:contain}.story-order-buttons{display:flex;gap:5px}.story-order-buttons button{min-width:40px;min-height:40px;padding:6px}.story-editor-modal{width:min(860px,calc(100vw - 24px))}.story-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.story-editor-picture{height:235px;display:flex;justify-content:center;align-items:center;background:#fff}.story-editor-picture>img,.story-editor-picture .atlas{width:100%;height:100%;object-fit:contain}.story-editor-grid textarea{min-height:75px}.story-ready summary{cursor:pointer;color:var(--dark);font-weight:600;padding:12px 0}.story-ready-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.story-ready-grid .choice .atlas{height:86px;width:86px}.story-ready-grid .choice{min-width:0;padding:7px}.story-ready-grid .choice span{font-size:12px}
.story-grid{border-top:1px dashed #8e9ca4;border-left:1px dashed #8e9ca4;flex:none;width:100%}.story-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.story-card{height:var(--story-height);min-width:0;border-right:1px dashed #8e9ca4;border-bottom:1px dashed #8e9ca4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2mm;padding:8mm 3mm 3mm;position:relative;break-inside:avoid}.story-card .picture{width:100%;height:var(--story-image);min-height:0;flex:none;display:flex;justify-content:center;align-items:center;background:none;border:0;padding:0;border-radius:0}.story-card .picture .atlas{width:var(--story-image);height:var(--story-image);flex:none}.story-card .picture>img{width:100%;height:100%;object-fit:contain}.story-caption,.story-question{width:100%;font-size:14px;font-weight:400;line-height:1.35;white-space:pre-wrap;overflow-wrap:anywhere;min-height:0;border:0;border-radius:0;padding:0;background:none}.story-caption{text-align:center}.story-question{text-align:left;font-size:13px}.story-caption:hover,.story-question:hover{background:var(--wash)}.story-response{width:100%;margin-top:auto}.story-response .writing-lines{margin-top:2mm}.story-sheet .number-box{left:3mm;top:2mm;width:6mm;height:6mm;background:#fff}.story-sheet .writing-line{font-size:17px}.story-card .writing-line:empty::after{content:none}
.preview-modal .story-caption,.preview-modal .story-question{pointer-events:none;background:none}.story-sheet .paper-foot{flex:none;margin-top:auto}#print-root .story-sheet .editable-name{border-bottom:1px solid #8da8b8}
@media screen and (max-width:600px){.story-editor-grid{grid-template-columns:1fr;gap:15px}.story-editor-picture{height:170px}.story-ready-grid{grid-template-columns:repeat(2,1fr)}.story-stock-strip .atlas,.story-stock-strip>img{height:56px}.story-order-buttons{gap:3px}.story-order-buttons button{min-width:36px;padding:4px}}
@media screen and (max-width:480px){.story-card{height:auto;min-height:calc(var(--story-height)*.63);padding:30px 8px 10px;gap:7px}.story-card .picture{height:calc(var(--story-image)*.66)}.story-card .picture .atlas{width:calc(var(--story-image)*.66);height:calc(var(--story-image)*.66)}.story-caption{font-size:12px}.story-question{font-size:11px}.story-sheet .number-box{top:6px;left:7px;width:20px;height:20px}.story-sheet .writing-line{height:calc(var(--rule)*.65);line-height:calc(var(--rule)*.65);font-size:13px}.story-stock{padding:9px}.story-list-edit{gap:5px}.story-list-picture,.story-list-picture .atlas{width:42px;height:42px}}
@media print{#print-root .story-card{height:var(--story-height);padding:8mm 3mm 3mm;gap:2mm}#print-root .story-card .picture{height:var(--story-image);min-height:0}#print-root .story-card .atlas{width:var(--story-image);height:var(--story-image)}#print-root .story-caption{font-size:10.5pt}#print-root .story-question{font-size:10pt}#print-root .story-caption,#print-root .story-question{background:none;border:0;color:var(--ink)}#print-root .story-sheet .number-box{top:2mm;left:3mm;width:6mm;height:6mm}#print-root .story-sheet .writing-line{height:var(--rule);line-height:var(--rule);font-size:13pt}#print-root .story-grid,#print-root .story-card{border-color:#7c8d98}}
.story-caption,.story-question,.story-response{flex:none}
/* Atlas cells must stay square even when their surrounding panel is wide. */
.story-stock-strip .atlas{width:72px;max-width:100%;height:72px;justify-self:center}
.story-editor-picture .atlas{width:235px;max-width:100%;height:235px;flex:none}
@media screen and (max-width:600px){.story-stock-strip .atlas{width:56px;height:56px}.story-editor-picture .atlas{width:170px;height:170px}}
.story-start-actions{display:flex;align-items:center;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--line)}.story-start-actions>button{flex:none}.story-start-actions .help{margin:0}.story-saved-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.story-saved{display:flex;flex-direction:column;text-align:left;gap:7px;padding:12px;min-width:0;overflow-wrap:anywhere}.story-saved span{font-size:12px;font-weight:400;color:var(--muted)}.story-empty-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
@media screen and (max-width:480px){.story-start-actions{flex-direction:column;align-items:stretch;gap:10px}.story-saved-list{grid-template-columns:1fr}}
.story-append,.story-add-slot{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;border:2px dashed #8aaabd;background:#fff;color:var(--dark);text-align:center;border-radius:0;white-space:normal}.story-append{width:210mm;max-width:100%;padding:24px;min-height:120px}.story-add-slot{width:100%;height:var(--story-height);padding:16px;min-width:0}.story-append strong,.story-add-slot strong{font-size:17px;line-height:1.4}.story-append span,.story-add-slot span{font-size:13px;font-weight:400;line-height:1.5}.story-append small,.story-add-slot small{font-size:11px;font-weight:400;line-height:1.5;color:var(--muted)}.story-append:hover,.story-add-slot:hover{background:var(--wash);border-color:var(--blue)}.story-append:focus-visible,.story-add-slot:focus-visible{outline:3px solid #8cb4cb;outline-offset:3px}
@media screen and (max-width:800px){.story-append{width:710px}}
@media screen and (max-width:480px){.story-append{width:calc(100vw - 28px);padding:18px}.story-add-slot{height:auto;min-height:calc(var(--story-height)*.63);padding:12px 8px}.story-add-slot strong{font-size:14px}.story-add-slot span{font-size:11px}.story-add-slot small{font-size:10px}}
@media print{.story-append,.story-add-slot{display:none!important}}
.story-append.story-append-inline{width:100%;min-height:100px;padding:16px;flex:none}
