.workspace.story-workspace,.touch-interface .workspace.story-workspace{grid-template-columns:minmax(0,1fr) 370px}.story-workspace>.story-sidebar{grid-area:1/2}.story-workspace>.library{display:none}.story-sidebar{background:#131b1d;border-left:1px solid #486063;min-height:0;overflow:hidden}.story-panel{color:#e7ece6;letter-spacing:0;flex-direction:column;height:100%;font-size:12px;display:flex}.story-header,.story-top-fields{flex-shrink:0}.story-list{flex:1;min-height:100px;overflow:auto}.story-panel button{border-radius:3px;justify-content:center;align-items:center;gap:5px;min-height:30px;display:inline-flex}.story-panel svg{flex-shrink:0}.story-header{border-bottom:1px solid #405454;justify-content:space-between;align-items:center;gap:12px;padding:14px;display:flex}.story-header small{color:#bfcdbb;letter-spacing:0;font-size:9px}.story-header h2{align-items:center;gap:8px;margin:5px 0 0;font-size:19px;display:flex}.story-save{color:#a8d3be;max-width:150px;font-size:10px}.story-save.error,.story-warning{color:#ffcb91}.story-top-fields{border-bottom:1px solid #405454;padding:12px 14px}.story-panel label:not(.story-check){flex-direction:column;gap:5px;min-width:0;margin-bottom:10px;display:flex}.story-panel input:not([type=checkbox]),.story-panel select,.story-panel textarea{box-sizing:border-box;color:#eff3ed;background:#0b1214;border:1px solid #4c6060;border-radius:3px;width:100%;min-width:0;padding:7px;font-size:12px}.story-panel textarea{resize:vertical;min-height:80px;line-height:1.6}.story-panel summary{cursor:pointer;color:#ccd8c5;padding:7px 0}.story-panel details{margin-bottom:8px}.story-actions{flex-wrap:wrap;gap:6px;margin:8px 0;display:flex}.story-panel button[aria-pressed=true]{background:#32534b;border-color:#a9d4b9}.story-list h3{justify-content:space-between;margin:0;padding:12px 14px 6px;font-size:12px;display:flex}.story-export-options{flex-wrap:wrap;gap:14px;padding:12px 0;display:flex}.story-export-options label{align-items:center;gap:7px;display:flex}.story-list h3 span{color:#b4c0b5;font-size:10px;font-weight:400}.story-row{border-bottom:1px solid #283838;border-left:3px solid #0000;align-items:center;gap:5px;min-height:42px;padding:4px 8px;display:flex}.story-row.selected{background:#28433d;border-left-color:#efd176}.story-row.source-unavailable{opacity:.68}.story-row>span[draggable]{cursor:grab}.story-row .story-row-name{text-align:left;min-width:0;color:inherit;background:0 0;border:0;flex:1;justify-content:start;padding:3px}.story-row-name span{overflow-wrap:anywhere;min-width:0}.story-row-name small{color:#aeb9af;max-height:28px;font-size:10px;display:block;overflow:hidden}.story-row>button:not(.story-row-name){width:24px;min-height:28px;padding:0}.story-row input{flex-shrink:0}.story-check{align-items:center;gap:7px;padding:5px 0;line-height:1.4;display:flex}.story-panel input[type=checkbox]{accent-color:#d1b359;flex-shrink:0;width:15px;height:15px}.story-list>.story-check,.story-muted{color:#b8c4bb;margin:5px 14px}.story-panel input.story-filter{width:calc(100% - 28px);margin:6px 14px}.story-editor-layer{z-index:30;pointer-events:none;justify-content:center;align-items:center;padding:16px;display:flex;position:absolute;inset:0}.story-editor-layer.minimized{align-items:flex-end}.story-panel.story-editor{pointer-events:auto;box-sizing:border-box;background:#182624;border:1px solid #89988e;border-top:2px solid #d6bd6d;border-radius:6px;width:min(660px,100%);height:auto;min-height:0;max-height:100%;overflow:hidden;box-shadow:0 12px 40px #0009}.story-editor>header{border-bottom:1px solid #435651;flex-shrink:0;align-items:center;gap:8px;min-height:40px;padding:10px 16px;display:flex}.story-editor-body{min-height:0;padding:16px 20px;overflow:auto}.story-editor-body[hidden]{display:none}.story-editor textarea[aria-label=Description]{min-height:160px;font-size:16px}.story-editor>header strong{font-size:16px}.story-editor>header button{flex-shrink:0;width:34px;height:34px;padding:0}.story-editor>header img{object-fit:contain;width:38px;height:38px}.story-editor>header strong{overflow-wrap:anywhere;flex:1}.story-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.story-warning{padding:8px 0;line-height:1.5}.story-alternative{white-space:pre-wrap;background:#101b19;border-left:3px solid #92c8af;margin:8px 0;padding:10px}.story-alternative .story-actions button{color:#fff;background:#253d35;border:1px solid #a9b9b1;min-height:38px;padding:8px 12px;font-weight:600}.story-alternative .story-actions button:first-child{border-color:#dec16b}.story-alternative .story-actions button:hover,.story-alternative .story-actions button:focus-visible{color:#171c17;outline-offset:2px;background:#f0cd69;border-color:#f0cd69;outline:2px solid #f0cd69}.story-object-list{max-height:240px;overflow:auto}.story-object-list img{object-fit:contain;background:#070b0a;width:32px;height:32px}.story-remove{color:#efb3a1;margin-top:12px}.story-overlay{z-index:6;pointer-events:none;position:absolute;inset:0}.story-dimmer{background:#0006;position:absolute;inset:0}.story-marker{pointer-events:auto;touch-action:none;cursor:grab;background:0 0;border:2px solid #0000;border-radius:50%;width:46px;height:46px;padding:0;position:absolute;transform:translate(-50%,-50%)}.story-marker:hover,.story-marker.selected{background:#18343080;border-color:#ffe188}.story-marker.suggested{background:#18343059;border-color:#e7c66d}.story-marker.suggested:hover,.story-marker.suggested.selected{background:#183430a6;border-color:#ffe188}.story-marker.source-unavailable{opacity:.45}.story-marker img{object-fit:contain;pointer-events:none;width:42px;height:42px}.story-marker.suggested img{width:48px;height:48px;margin:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)rotate(38deg)translate(-5.52px,.48px)}.story-marker.included span{color:#1c2522;overflow-wrap:anywhere;background:#e7e7e1;border-radius:50%;justify-content:center;align-items:center;font:700 12px/1 Georgia,serif;display:flex;position:absolute;inset:9px}.story-marker.included:has(span:not(:empty)){min-width:46px}.story-scan-overlay{fill:#49d2af40;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.story-full-backdrop{z-index:1000}.story-full{background:#17201d;border:1px solid #799183;flex-direction:column;width:min(1100px,96vw);height:92vh;display:flex}.story-full header{flex-wrap:wrap;align-items:center;gap:8px;padding:10px 14px;display:flex}.story-full h2{overflow-wrap:anywhere;flex:1;min-width:120px;margin:0;font-size:18px}.story-full iframe{background:#fff;border:0;flex:1;width:100%;min-height:0}.story-full footer{padding:6px 14px}@media (width<=1000px){.workspace.story-workspace,.touch-interface .workspace.story-workspace{grid-template-columns:minmax(0,1fr) 320px}.story-sidebar{z-index:10;position:relative}}@media (width<=640px){.workspace.story-workspace,.touch-interface .workspace.story-workspace{grid-template-rows:minmax(210px,42%) minmax(0,58%);grid-template-columns:minmax(0,1fr)}.story-workspace>.story-sidebar{grid-area:2/1}.story-sidebar{border-top:1px solid #486063;border-left:0;overflow:auto}.story-panel{height:auto;min-height:100%}.story-panel .story-list{flex:none;max-height:160px}.story-editor-layer{z-index:100;padding:8px;position:fixed;inset:76px 0 8px}.story-editor-body{padding:12px}.story-workspace .canvas-column{grid-template-rows:1fr}.story-workspace .canvas-column footer{display:none}}.story-marker.encounter .story-encounter-icon{color:#efd176;pointer-events:none}.story-marker.encounter span{min-height:15px;font-size:11px;inset:auto 0 -9px}.story-row-include{flex-shrink:0;place-items:center;display:grid}.story-panel label.story-row-include{margin:0;display:grid}.story-editor>header strong{min-width:0}@media (pointer:coarse){.story-panel button{min-width:44px;min-height:44px}.story-row>button:not(.story-row-name),.story-row-include{width:44px;min-height:44px}.story-panel .story-row-include input[type=checkbox]{width:20px;height:20px}.story-check,.story-panel summary{min-height:44px}.story-editor>header button{width:44px;height:44px}.story-workspace .viewport-view-controls{flex-wrap:wrap;gap:4px;max-width:calc(100% - 16px);bottom:8px;right:8px}.story-workspace .viewport-view-controls button{min-width:44px;min-height:44px}}@media (width<=640px){.touch-interface .workspace:has(.story-editor-layer){z-index:600}.story-editor-layer{width:100vw;height:calc(100dvh - 16px);inset:8px 0}}.story-combat-row{border:1px solid #435651;border-radius:4px;grid-template-columns:minmax(0,1fr) minmax(0,.6fr) minmax(0,1.8fr) auto;align-items:end;gap:8px;min-width:0;margin:8px 0;padding:10px;display:grid}.story-combat-row legend{color:#ccd8c5;padding:0 4px}.story-combat-row label{min-width:0;margin:0}.story-combat-row input{box-sizing:border-box;min-width:0}.story-combat-summary table{table-layout:fixed;border-collapse:collapse;text-align:left;width:100%}.story-combat-summary th,.story-combat-summary td{vertical-align:top;overflow-wrap:anywhere;border-bottom:1px solid #435651;padding:8px}.story-combat-summary th:first-child,.story-combat-summary th:nth-child(2){width:20%}@media (width<=640px){.story-combat-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.story-combat-row .story-creature-name{grid-area:2/1/auto/-1}}@media (pointer:coarse){.story-combat-row input{min-height:44px;font-size:16px}}.story-combat-marker{pointer-events:none;width:44px;height:44px;display:block;position:absolute;transform:translate(-50%,-50%)}.story-combat-marker img{object-fit:contain;width:100%;height:100%;display:block}.story-marker.encounter span{inset:9px}.story-srd-picker{border-top:1px solid #435651;margin-top:12px;padding-top:12px}.story-panel .story-srd-picker label{font-size:14px}.story-panel .story-srd-picker input,.story-panel .story-srd-picker select{min-height:44px;font-size:16px}.story-panel .story-srd-picker select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23eff3ed' stroke-width='1.5'/%3E%3C/svg%3E");background-position:right 10px center;background-repeat:no-repeat;padding-right:32px}.story-panel .story-srd-picker button{min-height:44px;padding:8px 12px;font-size:14px}.story-panel .story-srd-attribution summary{font-size:13px}.story-srd-attribution p{overflow-wrap:anywhere;font-size:13px;line-height:1.5}.story-srd-attribution a{color:#efd176}.story-workspace .viewport:has(.story-editor-layer){overflow:clip}.story-ai-pilot{border-top:1px solid #435651;margin-top:12px;padding-top:10px}.story-panel .story-ai-pilot summary{min-height:44px;font-size:14px;display:list-item}.story-ai-controls>p,.story-ai-controls>details>p,.story-ai-objects p{font-size:14px;line-height:1.5}.story-panel .story-ai-controls label{font-size:14px}.story-panel .story-ai-controls input:not([type=checkbox]),.story-panel .story-ai-controls select,.story-panel .story-ai-controls textarea{min-height:44px;font-size:16px}.story-panel .story-ai-controls select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23eff3ed' stroke-width='1.5'/%3E%3C/svg%3E");background-position:right 10px center;background-repeat:no-repeat;padding-right:32px}.story-panel .story-ai-controls button{background:#253d35;border:1px solid #a9b9b1;min-height:44px;padding:8px 12px;font-size:14px}.story-panel .story-ai-controls button:disabled{opacity:.5;cursor:default}.story-panel .story-ai-controls .story-ai-usage{color:#bccdc3;font-size:13px}.story-ai-objects{border:1px solid #435651;min-width:0;max-height:230px;margin:10px 0;padding:10px;overflow:auto}.story-ai-objects legend{padding:0 4px;font-size:14px}.story-panel .story-ai-objects .story-check{overflow-wrap:anywhere;flex-direction:row;align-items:center;min-height:44px;margin:0;display:flex}.story-panel .story-ai-objects input[type=checkbox]{width:20px;height:20px}.story-ai-controls .story-alternative>p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.6}@media (width<=640px){.story-ai-controls .story-fields{grid-template-columns:minmax(0,1fr)}}.adventure-artboard-overlay{z-index:9;touch-action:none;color:#f1dfb2;cursor:grab;width:100%;height:100%;position:absolute;inset:0;overflow:hidden}.adventure-artboard-overlay[aria-label="Choose Party Start on artboard"]{cursor:crosshair}.adventure-artboard-overlay .adventure-marker,.adventure-artboard-overlay .adventure-door{cursor:pointer;outline:none}.adventure-artboard-overlay [role=button]:focus>rect,.adventure-artboard-overlay [role=button]:hover>rect{stroke:#f5d991;stroke-width:2px;vector-effect:non-scaling-stroke}.adventure-door.open{opacity:.7}.adventure-darkness{pointer-events:none}.adventure-sidebar{background:var(--panel,#16242b);color:#eee8da;border-left:1px solid #52626a;grid-area:1/3;min-height:0;padding:14px;overflow:auto}.adventure-sidebar h2{margin:0 0 10px;font-size:22px}.adventure-sidebar p{margin:10px 0;font-size:13px;line-height:1.5}.adventure-sidebar details>summary{display:none}.adventure-sidebar button,.adventure-start-palette button{color:#fff;min-height:44px;font:inherit;cursor:pointer;background:#263b44;border:1px solid #82969f;border-radius:6px;padding:8px 10px}.adventure-sidebar button:disabled{opacity:.5;cursor:default}.adventure-sidebar button:focus-visible,.adventure-start-palette button:focus-visible{outline-offset:2px;outline:3px solid #ffd789}.adventure-sidebar label{align-items:center;gap:10px;min-height:44px;font-size:13px;line-height:1.4;display:flex}.adventure-sidebar input{flex-shrink:0;width:22px;height:22px}.adventure-sidebar output{color:#b3cad5;font-size:13px;display:block}.adventure-actions{flex-wrap:wrap;gap:8px;margin:12px 0;display:flex}.adventure-directions{grid-template-columns:repeat(3,1fr);grid-template-areas:".up.""left.right"".down.";gap:4px;width:100%;max-width:240px;margin:10px auto;display:grid}.adventure-directions button{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;min-width:44px;min-height:48px;font-size:24px}.adventure-story{overflow-wrap:anywhere;border-top:1px solid #74848c;padding-top:8px}.adventure-story p{white-space:pre-wrap}.adventure-message{color:#ffe0a0}.adventure-preparation{width:100%;min-height:44px;margin:8px 0}.adventure-visible-locations,.adventure-visible-doors{flex-direction:column;gap:8px;margin:10px 0;display:flex}.adventure-visible-locations button{text-align:left;overflow-wrap:anywhere;align-items:center;gap:8px;display:flex}.adventure-start-palette{z-index:30;align-items:center;gap:8px;max-width:calc(100% - 24px);display:flex;position:absolute;top:12px;right:12px}.adventure-start-palette button{cursor:grab;background:#16282deb;align-items:center;gap:8px;display:flex}.adventure-start-palette img,.adventure-start-palette svg{object-fit:contain;pointer-events:none;width:40px;height:40px}.adventure-start-palette span[role=status]{color:#f5dfad;background:#16282deb;max-width:130px;padding:8px;font-size:13px}.touch-interface .adventure-sidebar{z-index:35;border:1px solid #52626a;border-radius:8px;width:min(270px,100vw - 24px);max-height:calc(100% - 170px);padding:8px;position:absolute;top:86px;right:12px;box-shadow:0 8px 20px #0008}.touch-interface .adventure-sidebar details>summary{cursor:pointer;min-height:44px;padding:12px;display:list-item}.touch-interface .adventure-sidebar details:not([open]){min-height:44px}.adventure-workspace>.library{opacity:.45}.adventure-fog-layer,.adventure-lighting-overlay{pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.adventure-lighting-overlay{z-index:7}.adventure-fog-layer{z-index:8}.adventure-artboard-overlay:focus{outline:none}.adventure-party{cursor:pointer}.adventure-party[aria-pressed=true]>rect{stroke:#f5d991;stroke-width:1.5px;vector-effect:non-scaling-stroke}.adventure-start-label rect{fill:#080b0ee6;stroke:#b79c61;stroke-width:1px}.adventure-start-label text{fill:#ead399;letter-spacing:1px;font:700 12px sans-serif}.adventure-note-layer{z-index:40;pointer-events:none;justify-content:center;align-items:center;padding:12px;display:flex;position:absolute;inset:0}.adventure-note-layer .adventure-story{pointer-events:auto;border-top:2px solid #d6bd6d;height:auto;min-height:0;max-height:100%}.adventure-story .story-editor-body>p{white-space:pre-wrap;margin:0 0 16px;font-size:16px;line-height:1.65}.adventure-story details p{white-space:pre-wrap;line-height:1.6}.adventure-story small{color:#bdcbbd}.adventure-note-layer .adventure-story header button{min-width:44px;min-height:44px}.adventure-note-layer .adventure-story:focus{outline:none}.adventure-party>image,.adventure-party>g{pointer-events:none}.canvas-wrap>.adventure-fog-layer{background:0 0}.adventure-party{cursor:grab;touch-action:none}.adventure-party:active{cursor:grabbing}.adventure-artboard-overlay .adventure-combat-marker{pointer-events:none}.adventure-start-palette .adventure-party-artwork{transform:scaleX(-1)}.saved-library{gap:12px;display:grid}.saved-library nav{flex-wrap:wrap;gap:6px;display:flex}.saved-library nav button[aria-pressed=true]{outline:2px solid #d7af68}.saved-library form{flex-wrap:wrap;align-items:end;gap:8px;display:flex}.saved-library label{gap:4px;display:grid}.saved-library input,.saved-library select{color:#fff;background:#152027;border:1px solid #52616b;border-radius:5px;max-width:100%;padding:8px}.library-cards{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;max-height:45vh;display:grid;overflow:auto}.library-cards article{background:#1b2930;border:1px solid #4b5d65;border-radius:8px;align-content:start;gap:8px;padding:10px;display:grid}.library-cards img{object-fit:contain;width:100%;height:120px}.library-cards strong{overflow-wrap:anywhere}.saved-library button{padding:7px 10px}.saved-library output{color:#f4dba5}.saved-library .library-danger{color:#fff;background:#542b29;border:1px solid #ec8e7b}.saved-library [role=alert] ul{max-height:180px;overflow:auto}.saved-library [role=alert]{border:1px solid #ad7e59;border-radius:8px;padding:12px}.library-card-actions{flex-wrap:wrap;gap:6px;display:flex}.library-cards article{min-width:0}.library-cards select{width:100%;min-width:0}.saved-library .library-thumbnail{cursor:pointer;background:0 0;border:0;width:100%;padding:0}.library-thumbnail:focus-visible{outline-offset:3px;outline:2px solid #d7af68}.library-thumbnail:disabled{cursor:wait}.saved-library .library-card-actions button{color:#f5f1e6;cursor:pointer;background:linear-gradient(#344a54,#233740);border:1px solid #78919b;border-radius:6px;min-height:36px;padding:8px 13px;font-weight:600;box-shadow:0 2px 4px #0005}.saved-library .library-card-actions button:first-child{background:linear-gradient(#655333,#443a27);border-color:#c6a35d}.saved-library .library-card-actions button:hover:not(:disabled){filter:brightness(1.15);border-color:#efd18b}.saved-library .library-card-actions button:focus-visible{outline-offset:3px;outline:2px solid #efd18b}.saved-library .library-card-actions button:disabled{opacity:.5;cursor:wait}.legend-editor{gap:7px;min-width:0;display:grid}.legend-editor h3{margin:0;font-size:16px}.legend-editor label{gap:5px;min-width:0;font-size:12px;display:grid}.legend-editor input,.legend-editor select{width:100%;min-width:0}.legend-editor .legend-check{align-items:center;gap:8px;display:flex}.legend-check input{flex:0 0 16px;width:16px}.legend-check span{overflow-wrap:anywhere}.legend-fields{grid-template-columns:1fr 1fr;gap:8px;display:grid}.legend-font-row{grid-template-columns:minmax(0,1fr) 76px;gap:8px;display:grid}.legend-sublocation{border-left:1px solid #536169;margin-left:12px;padding-left:6px}.legend-numbering:not([hidden]){border-top:1px solid #334249;margin-top:4px;padding:6px 0}.legend-numbering-toggle[aria-expanded=true]{color:#efd176;background:#283a33}.legend-entry-list{gap:5px;max-height:300px;margin:0;display:grid;overflow:auto}.legend-manual{grid-template-columns:28px minmax(0,1fr);align-items:center;gap:5px;display:grid!important}.legend-manual button{padding:4px}.legend-warning{color:#efd176;margin:0;font-size:12px}.legend-create{justify-content:center;align-items:center;gap:8px;width:100%;margin-bottom:14px;display:flex}.canvas-wrap>canvas.legend-frame-canvas{max-width:none;max-height:none;position:absolute}.free-rotate-handle[hidden]{display:none}.legend-editor button{align-items:center;gap:6px;display:inline-flex}.legend-editor input:not([type=checkbox]):not([type=range]),.legend-editor select{min-height:30px;padding:4px 6px}.legend-location-heading{justify-content:space-between;align-items:center;display:flex}.legend-location-heading h4{margin:0;font-size:14px}.legend-location{border-bottom:1px solid #334249;min-width:0;padding:3px 0}.legend-location-actions{justify-content:flex-end;gap:3px;margin-top:0;display:flex}.legend-location-actions button,.legend-location-heading button{justify-content:center;min-width:24px;height:24px;padding:3px}.legend-editor .legend-location .legend-check span{text-transform:none;letter-spacing:0;font-size:12px;font-weight:400;line-height:1.3}.legend-editor details>label,.legend-editor details>div{margin-top:6px}.legend-editor .legend-check{text-transform:none;letter-spacing:0}.legend-editor~.inspect-buttons>button:first-child,.legend-editor~.inspect-buttons>button:nth-last-child(3){display:none}
