:root{--color-text:#20221f;--color-muted:#666b63;--color-surface:#fff;--color-surface-secondary:#fbfbf8;--color-page:#f7f7f3;--color-canvas:#f1f1ed;--color-border:#dedfd9;--color-control-border:#d4d7d0;--color-primary:#2f6250;--color-primary-strong:#244b3d;--color-primary-soft:#e5ebe6;--color-primary-focus:#87a99b;--color-primary-halo:#2f625017;--color-primary-halo-strong:#2f625038;--color-trigger:#b78335;--color-trigger-strong:#8a6226;--color-trigger-soft:#f8edd9;--color-trigger-halo:#b7833533;--color-place:#5faf72;--color-group:#8a6af0;--color-danger:#a5453f;--color-error:#a5453f;--color-header:#fbfbf8;--color-ghost:#636860;--color-subtle:#686d65;--color-panel-border:#dedfd9;--color-node-border:#d4d7d0;--color-node-muted:#71766e;--color-accent:#2f6250;--color-ending:#f0ede8;--color-debug:#67625c;--color-empty:#79736b;--color-link:#8d918f;--color-link-hover:#5f6f82;--color-link-soft:#b8b4ad;--font-interface:Geist, "Geist Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--font-narrative:Georgia, "Times New Roman", serif;--type-size-narrative:1.15rem;--type-leading-narrative:1.7;--type-size-compact:.75rem;--type-size-control:.875rem;--type-size-body:.875rem;--type-size-heading:1.5rem;--type-size-display:3rem;--type-leading-body:1.375rem;--type-leading-heading:1.875rem;--type-leading-display:3.25rem;--form-control-height-standard:44px;--form-control-height-compact:36px;--form-field-label-gap:.375rem;--form-control-padding-inline:.75rem;--form-control-radius:8px;--form-control-border:var(--color-control-border);--form-control-surface:var(--color-surface);--z-modal:50;--shadow-card:0 2px 8px #2d2d2d14;--shadow-node:0 2px 8px #2d2d2d18;--shadow-node-selected:0 8px 22px #2f625022;--shadow-node-hover:0 5px 16px #2d2d2d1c;--shadow-player:0 12px 35px #2d2d2d18;font-family:var(--font-interface);color:var(--color-text);background:var(--color-page);font-synthesis:none}.interaction-label-leading{color:var(--color-primary);flex:none;line-height:1}.interaction-label-fallback,.choice-label-fallback{color:var(--color-muted);font-weight:500}.interaction-label-bubble.choice-label-error{align-items:center;gap:.3rem;min-width:4.5rem;display:inline-flex}.choice-label-error-icon{background:var(--color-error);width:1.1rem;height:1.1rem;color:var(--color-surface);cursor:help;border-radius:999px;flex:none;justify-content:center;align-items:center;margin-inline-start:auto;font-size:.72rem;font-weight:800;line-height:1;display:inline-flex}.interaction-context-avatar-image{border-radius:inherit;object-fit:cover;width:100%;height:100%}.interaction-metadata-icon{flex:none;width:1rem;height:1rem}.interaction-context-character-group,.interaction-context-character{align-items:center;display:inline-flex}.interaction-context-character-group{gap:.35rem;min-width:0}.interaction-context-character{gap:.3rem}*{box-sizing:border-box}body{background:var(--color-page);margin:0}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.realtime-status-dot{background:var(--color-subtle);border-radius:999px;width:.48rem;height:.48rem}.realtime-status-dot.live{background:var(--color-place);box-shadow:0 0 0 3px #5faf7226}.realtime-status-dot.reconnecting{background:var(--color-trigger)}a{color:inherit}.modal-portal{z-index:var(--z-modal);position:fixed;inset:0}.modal-dialog-backdrop{z-index:20;background:#2d2d2d55;place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.modal-dialog{border:1px solid var(--color-border);background:var(--color-surface);width:min(460px,100%);box-shadow:var(--shadow-player);border-radius:14px;padding:1.25rem}.modal-dialog h2{margin:0 0 .4rem}.modal-dialog p{color:var(--color-muted);margin:0 0 1rem}button,.button{background:var(--color-primary);color:#fff;cursor:pointer;box-shadow:var(--shadow-card);border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;padding:.62rem .9rem;font-weight:650;text-decoration:none;transition:background .15s,border-color .15s,box-shadow .15s;display:inline-flex}button:hover,.button:hover{box-shadow:0 4px 12px #2d2d2d1c}button:focus-visible,.button:focus-visible,a:focus-visible{outline:2px solid var(--color-surface);outline-offset:2px;box-shadow:0 0 0 4px var(--color-primary)}button:disabled{opacity:.45;cursor:not-allowed;transform:none}.secondary{border-color:var(--color-border);color:var(--color-primary-strong);background:#fff}.danger{background:var(--color-danger)}.ghost{color:var(--color-ghost);box-shadow:none;background:0 0}.ghost.danger{color:var(--color-danger)}.error{color:var(--color-error)}.hint{color:var(--color-subtle);font-size:.82rem}.interaction-content-empty{justify-items:start;gap:.375rem;display:grid}.field-label-with-help,.field-heading-with-help{align-items:center;gap:.35rem;display:flex}.field-heading-with-help{margin-block:1em}.field-heading-with-help>:first-child{margin:0}.field-help-tooltip{flex:none;display:inline-flex}.field-help-tooltip-trigger{border:1px solid var(--color-control-border);background:var(--color-surface-secondary);width:1.2rem;height:1.2rem;min-height:0;color:var(--color-muted);box-shadow:none;border-radius:50%;padding:0;font-size:.72rem;font-weight:750;line-height:1}.field-help-tooltip-trigger:hover{border-color:var(--color-primary);background:var(--color-primary-soft);color:var(--color-primary-strong);box-shadow:none;transform:none}.field-help-tooltip-content{z-index:1000;background:var(--color-text);width:max-content;max-width:min(18rem,100vw - 2rem);color:var(--color-surface);opacity:0;pointer-events:none;visibility:hidden;border-radius:6px;padding:.45rem .6rem;font-size:.75rem;font-weight:500;line-height:1.35;transition:opacity .12s,transform .12s,visibility .12s;position:fixed;transform:translateY(-.2rem)}.field-help-tooltip-content.is-visible{opacity:1;pointer-events:auto;visibility:visible;transform:translateY(0)}header{background:var(--color-header);color:var(--color-text);border-bottom:1px solid var(--color-border);align-items:center;gap:1rem;padding:0 1.25rem;display:flex;box-shadow:0 1px #fff9}.header-user{margin-left:auto}.auth-page form{gap:1rem;margin:2rem 0 1rem;display:grid}.auth-notice{color:var(--color-muted);background:var(--color-surface-secondary);border:1px solid var(--color-border);border-radius:8px;padding:.75rem}header .brand{font-size:1.15rem;font-weight:800;text-decoration:none}header span{opacity:.65;font-size:.9rem}.page{padding:2rem}.story-unavailable{max-width:42rem;margin:10vh auto}.narrow{max-width:1100px;margin:auto}.page-title{justify-content:space-between;align-items:center;display:flex}.page-title h1{margin-bottom:.25rem}.page-title p{color:var(--color-muted);margin-top:0}.story-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem;display:grid}.story-card{background:var(--color-surface);border:1px solid var(--color-border);box-shadow:var(--shadow-card);border-radius:12px;padding:1.25rem}.story-card h2{margin-top:0}.actions{flex-wrap:wrap;gap:.6rem;display:flex}.form-field{align-content:start;gap:var(--form-field-label-gap);min-width:0;color:var(--color-text);font-size:var(--type-size-compact);font-weight:650;display:grid}.form-field--standard{--form-field-control-height:var(--form-control-height-standard)}.form-field--compact{--form-field-control-height:var(--form-control-height-compact)}.form-field>:is(label,.form-field-label){color:var(--color-muted);font-size:var(--type-size-compact);margin:0;font-weight:650;line-height:1.3}.form-field>.field-label-with-help{min-width:0}.form-density-caption{color:var(--color-muted);font-size:var(--type-size-compact);font-weight:600}.form-field>small,.form-field-error{color:var(--color-muted);font-size:var(--type-size-compact);margin:0;font-weight:450;line-height:1.4}.form-field--error>small,.form-field-error,.field-error{color:var(--color-error)}.form-control{width:100%;min-width:0;min-height:var(--form-field-control-height,var(--form-control-height-standard));padding:.45rem var(--form-control-padding-inline);border:1px solid var(--form-control-border);border-radius:var(--form-control-radius);background:var(--form-control-surface);color:var(--color-text);font-family:var(--font-interface);font-size:var(--type-size-control);font-weight:400;line-height:1.25;display:block}.form-control--standard{--form-field-control-height:var(--form-control-height-standard)}.form-control--compact{--form-field-control-height:var(--form-control-height-compact);padding-block:.35rem}.form-control:is(input,select,textarea):hover:not(:disabled):not([readonly]):not([aria-invalid=true]){border-color:var(--color-muted)}.form-control::placeholder{color:var(--color-muted);opacity:1}.form-control:is(input,select,textarea):focus{border-color:var(--color-primary);outline:0}.form-control:is(input,select,textarea):focus-visible{outline:2px solid var(--color-primary);outline-offset:1px}.form-control:is(input,select,textarea):disabled{background:var(--color-surface-secondary);color:var(--color-muted);cursor:not-allowed}.form-control:is(input,textarea)[readonly]{background:var(--color-surface-secondary)}.form-control:is(input,select,textarea)[aria-invalid=true],.form-field--error .form-control{border-color:var(--color-error)}.form-control:is(input,select,textarea)[aria-invalid=true]:focus-visible,.form-field--error .form-control:focus-visible{outline-color:var(--color-error)}.form-control--multiline{resize:vertical;min-height:7rem;padding-block:.65rem;line-height:1.5}.form-control-group{width:100%;min-width:0;min-height:var(--form-field-control-height,var(--form-control-height-standard));border:1px solid var(--form-control-border);border-radius:var(--form-control-radius);background:var(--form-control-surface);grid-template-columns:minmax(0,1fr) auto;display:grid;overflow:hidden}.form-control-group--compact{--form-field-control-height:var(--form-control-height-compact)}.form-control-group:focus-within{border-color:var(--color-primary);outline:2px solid var(--color-primary);outline-offset:1px}.form-control-group>.form-control{min-height:inherit;background:0 0;border:0;border-radius:0}.form-control-group>.form-control:focus-visible{outline:0}.form-control-suffix{padding:0 var(--form-control-padding-inline);color:var(--color-muted);font-size:var(--type-size-compact);align-self:center;font-weight:450}.editor-page{background:var(--color-page);flex-direction:column;height:calc(100vh - 58px);display:flex}.editor-toolbar{background:color-mix(in srgb, var(--color-surface) 94%, var(--color-page));border-bottom:1px solid var(--color-border);z-index:7;justify-content:space-between;align-items:center;height:60px;padding:.65rem 1rem;display:flex;box-shadow:0 1px #fffa}.story-title-input{min-width:min(420px,50vw);color:var(--color-text);background:0 0;border:1px solid #0000;border-radius:8px;padding:.5rem .7rem;font-size:1rem;font-weight:700}.story-title-input:focus{border-color:var(--color-primary);background:var(--color-surface);box-shadow:0 0 0 2px var(--color-surface), 0 0 0 4px var(--color-primary);outline:none}.save-status{min-width:4.5rem;color:var(--color-muted);text-align:right;align-self:center;font-size:.85rem}.save-status.saved{color:var(--color-primary)}.save-status.error{color:var(--color-error)}.editor-toolbar-actions{align-items:center}.editor-sync-indicator{width:40px;height:40px;color:var(--color-muted);border-radius:8px;flex:none;justify-content:center;align-items:center;display:inline-flex;position:relative}.editor-sync-indicator.saved{color:var(--color-primary)}.editor-sync-indicator.reconnecting{color:var(--color-muted)}.editor-sync-indicator.unavailable{color:var(--color-trigger-strong)}.editor-sync-indicator.error{color:var(--color-error)}.editor-sync-indicator svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:21px;height:21px}.editor-sync-indicator:focus-visible{outline:2px solid var(--color-surface);outline-offset:2px;box-shadow:0 0 0 4px var(--color-primary)}.editor-sync-indicator:after{z-index:8;background:var(--color-text);width:max-content;max-width:min(260px,85vw);color:var(--color-surface);content:attr(data-tooltip);opacity:0;pointer-events:none;white-space:normal;border-radius:6px;padding:.38rem .55rem;font-size:.72rem;font-weight:600;line-height:1.2;transition:opacity .12s,transform .12s;position:absolute;top:calc(100% + .45rem);right:0;transform:translateY(-3px)}.editor-sync-indicator:hover:after,.editor-sync-indicator:focus-visible:after{opacity:1;transform:translateY(0)}.save-error{color:var(--color-error);z-index:2;background:#fff1f0;border-bottom:1px solid #efbbb8;justify-content:space-between;align-items:center;gap:1rem;padding:.55rem 1rem;display:flex}.save-error button{flex:none}.graph-connection-alert{z-index:5;width:max-content;max-width:calc(100% - 5.5rem);box-shadow:var(--shadow-card);border:1px solid #efbbb8;border-radius:8px;position:absolute;top:.8rem;left:50%;transform:translate(-50%)}.editor-layout{flex:1;grid-template-columns:minmax(0,1fr);min-height:0;display:grid}.editor-layout.with-inspector{grid-template-columns:minmax(0, 1fr) var(--editor-inspector-width,340px)}.editor-layout.with-navigation{grid-template-columns:260px minmax(0,1fr)}.editor-layout.with-navigation-collapsed{grid-template-columns:0 minmax(0,1fr)}.editor-layout.with-navigation.with-inspector{grid-template-columns:260px minmax(0, 1fr) var(--editor-inspector-width,340px)}.editor-layout.with-navigation-collapsed.with-inspector{grid-template-columns:0px minmax(0, 1fr) var(--editor-inspector-width,340px)}.editor-layout.with-inspector.with-comment-rail{grid-template-columns:minmax(0, 1fr) var(--editor-inspector-width,340px)}.editor-layout.with-navigation.with-inspector.with-comment-rail{grid-template-columns:260px minmax(0, 1fr) var(--editor-inspector-width,340px)}.editor-layout.with-navigation-collapsed.with-inspector.with-comment-rail{grid-template-columns:0px minmax(0, 1fr) var(--editor-inspector-width,340px)}.editor-layout.is-inspector-maximized .inspector{grid-column:2/4}.location-panel{z-index:3;border-right:1px solid var(--color-border);background:var(--color-surface);grid-area:1/1;min-width:0;height:100%;min-height:0;padding:0;position:relative;overflow:visible}.story-group-row{border-radius:5px;grid-template-columns:22px 20px minmax(0,1fr) auto 28px;align-items:center;min-height:32px;display:grid;position:relative}.story-groups-panel .visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.story-group-row.selected,.story-group-row:hover{background:var(--color-primary-soft)}.story-group-row:focus-visible{outline:2px solid var(--color-primary);outline-offset:-2px}.story-group-toggle,.story-group-actions{min-width:0;height:28px;padding:0}.story-group-name{text-align:left;cursor:grab;min-width:0;padding:4px 3px;display:block}.story-group-tree{-webkit-user-select:none;user-select:none}.story-group-tree input{-webkit-user-select:text;user-select:text}.story-group-name strong{text-overflow:ellipsis;white-space:nowrap;font-weight:500;display:block;overflow:hidden}.story-group-folder,.story-group-count{color:var(--color-muted)}.story-group-count{padding:0 4px;font-size:.72rem}.story-interaction-row{width:100%;min-height:32px;color:var(--color-text);text-align:left;border-radius:5px;grid-template-columns:20px minmax(0,1fr);align-items:center;padding-top:4px;padding-bottom:4px;padding-right:6px;font-size:14px;display:grid}.story-interaction-row:hover,.story-interaction-row.selected{background:var(--color-primary-soft)}.story-interaction-row:focus-visible{outline:2px solid var(--color-primary);outline-offset:-2px}.story-interaction-mark{color:var(--color-muted);text-align:center}.story-interaction-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.story-ungrouped-interactions{margin-top:6px}.story-ungrouped-toggle{min-height:28px;color:var(--color-muted);text-align:left;align-items:center;gap:5px;padding:0 6px;font-size:12px;display:flex}.story-ungrouped-list{padding-left:16px}.story-group-actions{opacity:0}.story-group-row:hover .story-group-actions,.story-group-row:focus-within .story-group-actions{opacity:1}@media (hover:none){.story-group-actions{opacity:1}}.story-group-row input{width:100%;min-width:0;margin:0;padding:3px}.story-group-row .error{grid-column:3/-1;font-size:.75rem}.story-group-row.dragging{opacity:.45}.group-drop-zones{pointer-events:none;position:absolute;inset:0}.group-drop-zone{position:absolute;left:0;right:0}.group-drop-row{inset:0}.story-group-row.drop-before:before,.story-group-row.drop-after:after{content:"";background:var(--color-primary);z-index:1;height:2px;position:absolute;left:0;right:0}.story-group-row.drop-before:before{top:0}.story-group-row.drop-after:after{bottom:0}.story-group-row.drop-inside{outline:2px solid var(--color-primary);outline-offset:-2px}.story-group-row.drop-invalid{outline:2px solid var(--color-error);outline-offset:-2px;cursor:not-allowed}.story-group-row.drop-invalid:before,.story-group-row.drop-invalid:after{background:var(--color-error)}.story-group-root-drop{z-index:2;border:1px dashed var(--color-border);background:var(--color-surface);min-height:43px;padding:12px;font-size:.8rem;position:sticky;bottom:0}.story-group-root-drop:not(.drag-active){visibility:hidden}.group-drop-root{inset:0}.story-group-root-drop.active{background:var(--color-primary-soft);border-color:var(--color-primary)}.story-group-drag-preview{border:1px solid var(--color-primary);background:var(--color-surface);box-shadow:var(--shadow-card);border-radius:5px;padding:6px 12px}.location-panel-content{overscroll-behavior:contain;scrollbar-width:thin;min-height:0;padding:.75rem;position:absolute;inset:0;overflow:hidden auto}.location-panel-content::-webkit-scrollbar{width:7px}.location-panel-content::-webkit-scrollbar-thumb{border:2px solid var(--color-surface);background:#d2cec6;border-radius:999px}.context-search{grid-template-columns:minmax(0,1fr) auto 30px 30px;align-items:center;gap:.35rem;margin-bottom:.75rem;display:grid}.context-search input{min-width:0;margin:0}.context-search button{border:1px solid var(--color-border);width:30px;height:32px;padding:0}.context-search-count{color:var(--color-muted);font-variant-numeric:tabular-nums;white-space:nowrap;font-size:.75rem}.editor-heading-row{justify-content:space-between;align-items:center;gap:.75rem;display:flex}.context-heading{min-width:0;color:var(--color-text);letter-spacing:.07em;text-transform:uppercase;box-shadow:none;flex:1;justify-content:space-between;padding:.3rem .2rem;font-size:.72rem}.context-heading-label{align-items:center;min-width:0;display:flex}.context-heading-label>span{width:1.1rem;color:var(--color-muted)}.context-heading>small{background:var(--color-surface-secondary);min-width:1.35rem;height:1.35rem;color:var(--color-muted);letter-spacing:0;border-radius:999px;place-items:center;font-size:.66rem;display:grid}.editor-context-header>button:last-child:not(.context-heading){padding:.35rem .5rem;font-size:.72rem}.editor-context-header.context-section{border-top:1px solid var(--color-border)}.field-help{color:var(--color-muted);margin-top:.3rem;font-size:.72rem;font-weight:450;display:block}.canvas{background:var(--color-canvas);grid-area:1/2;min-width:0;min-height:0;position:relative;overflow:hidden}.canvas .react-flow{background-color:var(--color-canvas)}.canvas[aria-busy=true],.canvas[aria-busy=true] *{cursor:wait!important}.canvas .react-flow__background{opacity:.58}.canvas .react-flow__background pattern circle{fill:#d7d1c8}.canvas .react-flow__controls{border:1px solid var(--color-border);box-shadow:var(--shadow-card);border-radius:10px;overflow:hidden}.canvas .react-flow__controls-button{border-bottom-color:var(--color-border);background:var(--color-surface);color:var(--color-text)}.canvas-tools{z-index:4;flex-direction:column;align-items:flex-start;gap:.4rem;display:flex;position:absolute;top:.8rem;left:.8rem}.canvas-tools-row{gap:.4rem;display:flex}.canvas-tools-separator{background:var(--color-border);width:40px;height:1px;margin:.1rem 0}.canvas-tool-action{border-color:var(--color-control-border);background:var(--color-surface);width:40px;height:40px;color:var(--color-primary-strong);box-shadow:var(--shadow-card);flex:none;padding:0;position:relative}.canvas-tool-action svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:21px;height:21px}.canvas-tool-action:after{z-index:8;background:var(--color-text);width:max-content;max-width:240px;color:var(--color-surface);content:attr(data-tooltip);opacity:0;pointer-events:none;white-space:nowrap;border-radius:6px;padding:.38rem .55rem;font-size:.72rem;font-weight:600;line-height:1.2;transition:opacity .12s,transform .12s;position:absolute;top:50%;left:calc(100% + .45rem);transform:translate(-3px,-50%)}.canvas-tool-action:hover:after,.canvas-tool-action:focus-visible:after{opacity:1;transform:translateY(-50%)}.editor-toolbar-icon-action{text-decoration:none}.editor-toolbar-icon-action:after{white-space:normal;max-width:min(260px,85vw);top:calc(100% + .45rem);left:auto;right:0;transform:translateY(-3px)}.editor-toolbar-icon-action:hover:after,.editor-toolbar-icon-action:focus-visible:after{transform:translateY(0)}.canvas-tool-action.active{border-color:var(--color-trigger);background:var(--color-trigger-soft);color:var(--color-trigger-strong)}.canvas-tool-action:disabled:hover:after{opacity:1}.story-history-panel{z-index:5;border:1px solid var(--color-border);background:var(--color-surface);width:min(360px,100% - 5.05rem);max-height:calc(100% - 1.6rem);box-shadow:var(--shadow-player);border-radius:14px;flex-direction:column;display:flex;position:absolute;top:.8rem;left:4.25rem;overflow:hidden}.story-history-header{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:flex-start;gap:1rem;padding:1rem 1rem .75rem;display:flex}.story-history-header h2{margin:.15rem 0 0;font-size:1.05rem}.story-history-close{flex:none;width:32px;height:32px;padding:0;font-size:1.2rem}.story-history-actions{border-bottom:1px solid var(--color-border);grid-template-columns:1fr 1fr;gap:.5rem;padding:.75rem 1rem;display:grid}.story-history-actions button{justify-content:center;align-items:center;gap:.4rem;min-height:34px;padding:.4rem .6rem;display:inline-flex}.story-history-actions svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:17px;height:17px}.story-history-scroll{min-height:0;padding:.8rem 1rem 1rem;overflow-y:auto}.story-history-empty{color:var(--color-muted);text-align:center;margin:0;padding:1.5rem 0}.story-history-day+.story-history-day{margin-top:1rem}.story-history-day h3{color:var(--color-muted);letter-spacing:.03em;text-transform:capitalize;margin:0 0 .45rem;font-size:.72rem;font-weight:700}.story-history-day ol{gap:.45rem;margin:0;padding:0;list-style:none;display:grid}.story-history-day li{border:1px solid var(--color-border);background:var(--color-canvas);border-radius:9px;padding:.65rem .7rem}.story-history-day li.is-reverted{opacity:.68}.story-history-entry-heading{justify-content:space-between;align-items:flex-start;gap:.5rem;display:flex}.story-history-entry-heading strong{font-size:.8rem;line-height:1.35}.story-history-reverted{background:var(--color-primary-soft);color:var(--color-primary-strong);border-radius:999px;flex:none;padding:.12rem .38rem;font-size:.64rem;font-weight:700}.story-history-entry-meta{color:var(--color-muted);flex-wrap:wrap;gap:.25rem;margin-top:.3rem;font-size:.68rem;display:flex}.canvas-context-menu,.canvas-context-submenu{border:1px solid var(--color-border);background:var(--color-surface);border-radius:10px;width:220px;padding:.35rem;box-shadow:0 12px 32px #20221f26}.canvas-context-menu{z-index:30;position:fixed}.canvas-context-menu.scrollable button>span:nth-child(2){white-space:normal}.canvas-context-menu button{width:100%;min-height:36px;color:var(--color-text);box-shadow:none;text-align:left;background:0 0;border:0;grid-template-columns:20px minmax(0,1fr) auto;justify-content:stretch;gap:.55rem;padding:.48rem .6rem;display:grid}.canvas-context-menu button:hover,.canvas-context-menu button:focus-visible{background:var(--color-primary-soft);color:var(--color-primary-strong)}.canvas-context-menu button:disabled{color:var(--color-subtle);background:0 0}.canvas-context-menu button.danger{color:var(--color-error);background:0 0}.canvas-context-menu button.danger:hover,.canvas-context-menu button.danger:focus-visible{color:var(--color-error);background:#fbe9e7}.canvas-context-menu button svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:19px;height:19px}.canvas-context-menu button>span:nth-child(2){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.canvas-context-icon-spacer{width:19px}.canvas-context-submenu-trigger{position:relative}.canvas-context-submenu{position:absolute;top:-.35rem;left:calc(100% + .4rem)}.canvas-context-submenu.opens-left{left:auto;right:calc(100% + .4rem)}.canvas .react-flow__selection,.canvas .react-flow__nodesselection-rect{border:1px dashed var(--color-primary);background:var(--color-primary-halo)}.comments-toolbar-button{gap:.4rem}.comments-toolbar-button small{background:var(--color-trigger);min-width:1.25rem;height:1.25rem;color:var(--color-text);border-radius:999px;place-items:center;font-size:.68rem;display:inline-grid}.editor-toolbar-actions .comments-toolbar-button small{z-index:1;position:absolute;top:-.25rem;right:-.25rem}.comments-toolbar-button.active{border-color:var(--color-trigger);background:var(--color-trigger-soft);color:var(--color-trigger-strong)}.modal-dialog-actions{gap:.6rem;display:grid}.context-category-list{gap:.7rem;margin-top:.45rem;display:grid}.context-category-group{min-width:0}.context-category-heading{color:var(--color-muted);letter-spacing:.08em;text-transform:uppercase;justify-content:space-between;align-items:center;gap:.5rem;padding:0 .45rem;font-size:.64rem;font-weight:700;display:flex}.context-category-heading small{letter-spacing:0;font-size:.62rem;font-weight:600}.context-entity-list{gap:.2rem;margin:.35rem 0 0;padding:0;list-style:none;display:grid}.context-entity-list--without-category{margin-top:0}.context-entity-row{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.2rem;display:grid}.context-entity-select{width:100%;min-height:40px;color:var(--color-ghost);text-align:left;box-shadow:none;background:0 0;border:0;grid-template-columns:30px minmax(0,1fr);justify-content:flex-start;align-items:center;gap:.5rem;padding:.35rem .45rem;display:grid}.context-entity-select.context-entity-select-text{grid-template-columns:minmax(0,1fr)}.context-entity-select:hover{background:var(--color-surface-secondary);box-shadow:none;transform:none}.context-entity-select.selected{background:var(--color-primary-soft);color:var(--color-primary-strong)}.context-comment-badge{background:var(--color-trigger);min-width:30px;height:28px;color:var(--color-text);box-shadow:none;border:0;border-radius:999px;justify-content:center;align-items:center;gap:.18rem;padding:0 .35rem;font-size:.64rem;display:inline-flex}.context-comment-badge:hover{background:var(--color-trigger-strong);color:var(--color-surface);box-shadow:none;transform:none}.context-entity-select .context-picto{border-radius:7px;place-items:center;width:30px;height:30px;margin:0;display:grid}.context-picto-placeholder{background:var(--color-surface-secondary);color:var(--color-subtle);font-size:.68rem;font-weight:750}.context-row-copy{gap:.08rem;min-width:0;display:grid}.context-row-copy strong,.context-row-copy small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.context-row-copy strong{font-size:.8rem}.context-row-copy small{color:var(--color-muted);font-size:.68rem;font-weight:450}.inspector{background:var(--color-surface);border-left:1px solid var(--color-border);z-index:5;flex-direction:column;grid-area:1/3;min-width:0;min-height:0;display:flex;position:relative;overflow:visible;box-shadow:-10px 0 28px #2d2d2d0f}.inspector-resize-handle{z-index:8;cursor:col-resize;touch-action:none;width:12px;position:absolute;top:0;bottom:0;left:0}.inspector-resize-handle:after{content:"";background:0 0;width:2px;position:absolute;top:0;bottom:0;left:5px}.inspector-resize-handle:focus-visible{outline:2px solid var(--color-primary);outline-offset:-2px}.inspector-maximize,.inspector-delete{border:1px solid var(--color-border);background:var(--color-surface-secondary);flex:none;width:32px;height:32px;padding:0}.inspector-delete{color:var(--color-danger);place-items:center;display:inline-grid}.inspector-delete svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:18px;height:18px}.inspector-maximize span{font-size:1rem;line-height:1;display:inline-block}.inspector.comments-inspector{padding:0;display:flex;overflow:hidden}.inspector-header{flex:none;justify-content:flex-end;align-items:center;gap:.5rem;margin-bottom:.75rem;padding:1.2rem 1.2rem 0 0;display:flex}.inspector-content{overscroll-behavior:contain;flex:1;min-width:0;min-height:0;padding:0 1.2rem 1.2rem;overflow:hidden auto}.inspector-comment-actions{flex-wrap:wrap;gap:.35rem;margin-right:auto;display:flex}.inspector-comment-actions button{padding:.42rem .58rem;font-size:.7rem}.inspector-comment-actions .inspector-comment-toggle{border-color:var(--color-trigger);min-width:38px;color:var(--color-trigger-strong);align-items:center;gap:.25rem;display:inline-flex;transform:translate(-50%)}.inspector-comment-actions .inspector-comment-add{border-color:var(--color-trigger);min-width:28px;color:var(--color-trigger-strong);padding-inline:.42rem}.inspector-comment-toggle.active{background:var(--color-trigger-soft)}.inspector-comment-toggle small{font-size:.64rem}.inspector-close{border:1px solid var(--color-border);background:var(--color-surface-secondary);width:32px;height:32px;padding:0}.inspector h2{margin-top:0}.inspector h3{letter-spacing:.04em;text-transform:uppercase;color:var(--color-muted);margin-top:1.35rem;margin-bottom:.5rem;font-size:.78rem}.graph-selection-inspector p{color:var(--color-muted);margin:.5rem 0}.review-target-inspector{line-height:1.55}.review-target-inspector [data-comment-field]{-webkit-user-select:text;user-select:text}.inspector-commentable-field{position:relative}.inspector-commentable-field.has-comments>label,.inspector-commentable-field.has-comments>[data-comment-field]{padding-left:0}.inspector-field-comment-badge{z-index:30;border:1px solid var(--color-trigger);background:var(--color-trigger-soft);min-width:2.35rem;min-height:1.6rem;color:var(--color-trigger-strong);border-radius:999px;align-items:center;gap:.2rem;padding:.2rem .38rem;font-size:.7rem;line-height:1;display:inline-flex;position:fixed}.comments-panel{z-index:18;border-left:1px solid var(--color-border);background:var(--color-surface);flex-direction:column;width:min(390px,100vw - 1rem);display:flex;position:fixed;top:72px;bottom:0;right:0;box-shadow:-12px 0 30px #2d2d2d1c}.comments-panel.inspector-placement{z-index:3;width:auto;min-width:0;height:100%;min-height:0;box-shadow:none;border-left:0;flex:1;position:relative;top:auto;bottom:auto;right:auto;overflow:hidden}.comments-panel>header{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;padding:1rem 1.1rem;display:flex}.comments-panel-header-actions{flex:none;align-items:center;gap:.35rem;display:flex}.comments-panel>header span{color:var(--color-trigger-strong);letter-spacing:.08em;text-transform:uppercase;font-size:.68rem;font-weight:750}.comments-panel>header h2{margin:.15rem 0 0;font-size:1.15rem}.comments-realtime-status{color:var(--color-muted);align-items:center;gap:.35rem;margin-top:.3rem;font-size:.67rem;display:flex}.comments-panel>header button{width:34px;height:34px;padding:0}.comments-error,.comment-detached{color:var(--color-error);background:#fbe9e7;border-radius:8px;margin:.75rem 1rem 0;padding:.65rem .75rem;font-size:.78rem}.comment-detached p{margin:0}.comment-detached button{margin-top:.55rem;padding:.4rem .55rem;font-size:.72rem}.comment-composer-anchor{background:var(--color-trigger-soft);border:1px solid #ead4a9;border-radius:10px;gap:.35rem;margin:.9rem 1rem 0;padding:.75rem;display:grid}.comment-composer-anchor span{color:var(--color-trigger-strong);text-overflow:ellipsis;white-space:nowrap;font-size:.78rem;overflow:hidden}.comment-composer-anchor button{justify-self:start;padding:.3rem 0}.comment-thread-list,.comment-thread-detail{flex:1;min-height:0;padding:.9rem 1rem;overflow:auto}.comment-filters{flex-wrap:wrap;gap:.35rem;margin-bottom:.75rem;display:flex}.comment-filters button{border-color:var(--color-border);background:var(--color-surface-secondary);color:var(--color-muted);box-shadow:none;flex:calc(50% - .35rem);padding:.4rem .55rem;font-size:.72rem}.comment-filters button.active{background:var(--color-trigger-soft);color:var(--color-trigger-strong);border-color:#dfc386}.comment-thread-row{border-color:var(--color-border);background:var(--color-surface-secondary);width:100%;color:var(--color-text);text-align:left;box-shadow:none;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:.65rem;margin-bottom:.5rem;padding:.72rem;display:grid}.comment-thread-row>span:nth-child(2){gap:.2rem;min-width:0;display:grid}.comment-thread-row small{color:var(--color-muted);text-overflow:ellipsis;white-space:nowrap;font-weight:450;overflow:hidden}.comment-thread-pin{color:var(--color-trigger)}.comments-empty{color:var(--color-muted);text-align:center}.comments-back{margin:0 0 .8rem;padding:0}.comment-thread-heading{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:.75rem;display:flex}.comment-thread-heading>div{gap:.2rem;display:grid}.comment-thread-heading small{color:var(--color-muted)}.comment-thread-heading button{padding:.42rem .6rem;font-size:.72rem}.comment-messages{gap:.7rem;margin-top:1rem;display:grid}.comment-messages article{border:1px solid var(--color-border);background:var(--color-surface-secondary);border-radius:10px;padding:.75rem}.comment-messages article header{flex-wrap:wrap;justify-content:space-between;gap:.3rem;font-size:.72rem;display:flex}.comment-messages time{color:var(--color-muted)}.comment-messages p{white-space:pre-wrap;margin:.55rem 0 0}.comment-reply-form{border-top:1px solid var(--color-border);background:var(--color-surface-secondary);padding:.9rem 1rem}.comment-reply-form label>span{color:var(--color-muted);font-size:var(--type-size-compact);font-weight:700;display:block}.comment-reply-form button{width:100%;margin-top:.55rem}.contextual-comments-rail{z-index:4;pointer-events:none;grid-area:1/1;justify-self:end;width:min(300px,100%);min-width:0;height:100%;padding:10px;position:relative;overflow:hidden auto}.editor-layout.with-navigation .contextual-comments-rail,.editor-layout.with-navigation-collapsed .contextual-comments-rail{grid-column:2}.editor-layout.is-inspector-maximized.with-navigation .contextual-comments-rail,.editor-layout.is-inspector-maximized.with-navigation-collapsed .contextual-comments-rail{z-index:6;grid-column:2/4}.contextual-comments-header{justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.75rem;display:flex}.contextual-comments-header>span{color:var(--color-trigger-strong);letter-spacing:.04em;text-transform:uppercase;align-items:center;gap:.35rem;font-size:.72rem;font-weight:750;display:inline-flex}.contextual-comments-header button{width:30px;height:30px;padding:0}.contextual-comments-rail>.comments-error{margin:0 0 .75rem}.comment-discussion-card{background:var(--color-surface);pointer-events:auto;border:1px solid #dfd7c6;border-radius:10px;margin-bottom:.75rem;overflow:hidden;box-shadow:0 5px 18px #5c4b2a17}.comment-discussion-card.resolved{opacity:.62}.comment-discussion-card.detached{border-color:var(--color-error)}.comment-discussion-summary{width:100%;color:var(--color-text);box-shadow:none;text-align:left;background:0 0;border:0;border-radius:0;gap:.45rem;margin:0;padding:.75rem;display:grid}.comment-discussion-summary:hover,.comment-discussion-summary:focus-visible{box-shadow:none;background:#fbf7ed;transform:none}.comment-discussion-heading{justify-content:space-between;align-items:center;gap:.5rem;min-width:0;display:flex}.comment-discussion-heading b{text-overflow:ellipsis;white-space:nowrap;font-size:.72rem;overflow:hidden}.comment-discussion-heading small,.comment-discussion-anchor{color:var(--color-muted);font-size:.64rem;font-weight:500}.comment-discussion-card q{color:#8a682c;text-overflow:ellipsis;white-space:nowrap;font-size:.7rem;font-style:italic;overflow:hidden}.comment-discussion-preview{text-overflow:ellipsis;white-space:nowrap;font-size:.76rem;line-height:1.45;overflow:hidden}.comment-discussion-detail{border-top:1px solid #eee7da;padding:0 .75rem .75rem}.comment-discussion-messages{gap:.65rem;padding-top:.7rem;display:grid}.comment-discussion-messages>div+div{border-top:1px solid var(--color-border);padding-top:.65rem}.comment-discussion-messages header{flex-wrap:wrap;justify-content:space-between;gap:.35rem;font-size:.68rem;display:flex}.comment-discussion-messages time{color:var(--color-muted);font-size:.62rem}.comment-discussion-messages p{white-space:pre-wrap;margin:.4rem 0 0;font-size:.76rem;line-height:1.45}.comment-detached.inline{margin:.7rem 0 0}.comment-inline-reply{gap:.45rem;margin-top:.75rem;display:grid}.comment-inline-reply label>span{color:var(--color-muted);font-size:var(--type-size-compact);font-weight:700;display:block}.comment-inline-reply>button{width:100%}.comment-inline-status{width:100%;margin-top:.45rem}.comment-inline-delete{width:100%;margin-top:.35rem}.comment-draft-card{padding:.75rem}.comment-draft-card>header{gap:.25rem;display:grid}.comment-draft-card>header small{color:var(--color-muted);text-overflow:ellipsis;white-space:nowrap;font-size:.68rem;overflow:hidden}.comment-draft-card .comment-inline-reply>div{justify-content:flex-end;gap:.4rem;display:flex}.comment-draft-card .comment-inline-reply>div button{padding:.42rem .6rem;font-size:.7rem}.inspector fieldset,.rich-text-editor-dialog fieldset{border:1px solid var(--color-border);border-radius:8px;margin:0 0 1rem;padding:.75rem}.inspector fieldset legend,.rich-text-editor-dialog fieldset legend{font-size:var(--type-size-compact);color:var(--color-muted);padding:0 .35rem;font-weight:650}.inspector fieldset label,.rich-text-editor-dialog fieldset label{align-items:center;gap:.5rem;margin:.55rem 0;display:flex}.graph-decoration-inspector input[type=color]{border:1px solid var(--color-control-border);background:var(--color-surface-secondary);cursor:pointer;border-radius:8px;width:100%;height:2.6rem;margin-top:.35rem;display:block}.graph-decoration-size-fields,.graph-decoration-style-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;display:grid}.inspector .graph-decoration-style-fields label{align-items:center;gap:.45rem;display:flex}.graph-decoration-style-fields input{margin:0}.rich-text-editor{margin:.25rem 0}.rich-text-toolbar{border-top:1px solid var(--color-border);border-radius:0 0 var(--form-control-radius) var(--form-control-radius);background:var(--color-surface-secondary);flex-wrap:wrap;gap:.3rem;padding:.45rem;display:flex}.rich-text-toolbar button{border-color:var(--color-control-border);background:var(--color-surface);min-width:2rem;color:var(--color-primary-strong);box-shadow:none;padding:.35rem .5rem}.rich-text-variable-picker{gap:.85rem;margin:1rem 0;display:grid}.rich-text-variable-field{min-width:0;margin:0}.rich-text-interaction-link-dialog,.rich-text-variable-dialog,.rich-text-condition-dialog{width:min(560px,100%)}.rich-text-condition-dialog{width:min(720px,100%)}.rich-text-dialog-header{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.rich-text-dialog-header>div{min-width:0}.rich-text-dialog-header .rich-text-dialog-close{flex:none;min-width:2rem;padding:.35rem;font-size:1.1rem}.rich-text-variable-dialog-selection{background:var(--color-primary-soft);border-radius:.5rem;padding:.65rem .75rem}.rich-text-variable-dialog-selection strong{color:var(--color-primary-strong)}.rich-text-interaction-link-form,.rich-text-condition-form{gap:.85rem;margin-top:1rem;display:grid}.rich-text-condition-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;display:grid}.modal-dialog-actions.rich-text-dialog-actions,.modal-dialog-actions.image-url-dialog-actions{justify-content:flex-end;margin-top:1rem;display:flex}.inspector hr{border:0;border-top:1px solid var(--color-border);margin:1.25rem 0}.conditions{gap:.5rem;display:grid}.trigger-probability-field{align-items:center;gap:.5rem;display:flex}.trigger-probability-field input{width:6rem}.trigger-variant{border:1px solid var(--color-border);background:var(--color-surface-secondary);border-radius:10px;gap:.65rem;margin-top:.8rem;padding:.8rem 1.2rem .8rem .8rem;display:grid;position:relative}.trigger-variant+.trigger-variant{margin-top:2.8rem}.trigger-variant h4{color:var(--color-text);margin:0;font-size:.9rem}.trigger-variant-delete,.trigger-condition-picker-cancel,.interaction-effect-picker-cancel{color:var(--color-danger);line-height:1}.trigger-condition-picker-cancel,.interaction-effect-picker-cancel{width:2rem;height:2rem;padding:0;font-size:1.25rem}.trigger-variant-delete,.condition>.ghost{z-index:2;border:1px solid var(--color-border);background:var(--color-surface);min-height:0;box-shadow:var(--shadow-card);border-radius:50%;padding:0;position:absolute}.trigger-variant-delete{width:1.35rem;height:1.35rem;font-size:.8rem;top:-.55rem;right:-.55rem}.or-divider{color:var(--color-trigger-strong);letter-spacing:.08em;align-items:center;gap:.6rem;font-size:.75rem;font-weight:800;display:flex;position:absolute;top:-2rem;left:0;right:0}.or-divider:before,.or-divider:after{content:"";background:var(--color-border);flex:1;height:1px}.condition{border:1px solid var(--color-border);background:var(--color-surface);border-radius:8px;grid-template-columns:minmax(0,1fr);align-items:start;gap:.5rem;padding:.65rem 1.2rem .65rem .65rem;display:grid;position:relative}.condition-fields{flex-direction:column;grid-column:1;gap:.5rem;min-width:0;display:flex}.condition-fields>*{flex:none;min-width:0;margin:0;display:block}.condition-fields .rich-text-variable-picker{gap:.5rem;margin:0}.condition-row-wrap{min-width:0}.condition-empty{color:var(--color-muted);margin:.2rem 0;font-size:.8rem}.condition>:not(.ghost){grid-column:1;min-width:0}.condition-summary{width:100%;min-width:0;color:var(--color-text);font:inherit;text-align:left;overflow-wrap:anywhere;background:0 0;border:0;padding:.2rem .1rem;font-size:.75rem;line-height:1.4;display:block}.condition-summary:hover,.condition-summary:focus-visible{color:var(--color-primary-strong);text-decoration:underline}.condition>.ghost{place-items:center;width:1.25rem;height:1.25rem;font-size:.75rem;line-height:1;display:grid;top:-.5rem;right:-.5rem}.condition-connector{background:var(--color-border);width:max-content;color:var(--color-muted);letter-spacing:.06em;border-radius:999px;margin:.1rem auto;padding:.12rem .55rem;font-size:.68rem;font-weight:800}.condition select{margin:0}.condition input{min-width:0;margin:0}.condition [aria-label=Condition\ variable]{grid-column:1;min-width:0}.trigger-add-condition{justify-self:start}.trigger-condition-picker,.interaction-effect-picker{border:1px solid var(--color-border);background:var(--color-surface);border-radius:8px;gap:.55rem;padding:.65rem;display:grid}.trigger-condition-picker-header,.interaction-effect-picker-header{color:var(--color-muted);justify-content:space-between;align-items:center;gap:.5rem;font-size:.78rem;font-weight:700;display:flex}.trigger-condition-type-options,.interaction-effect-type-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;display:grid}.trigger-condition-type-option,.interaction-effect-type-option{min-width:0;position:relative}.trigger-condition-type-option>button,.interaction-effect-type-option>button{width:100%;margin:0}.trigger-condition-type-option:focus-visible,:where(.interaction-effect-type-option>button:focus-visible){outline:3px solid var(--color-primary-halo-strong);outline-offset:2px;border-radius:8px}.interaction-effect-type-option>button[aria-disabled=true]{opacity:.45;cursor:not-allowed}.trigger-condition-type-tooltip,.interaction-effect-type-tooltip{z-index:20;visibility:hidden;background:var(--color-text);color:var(--color-surface);box-shadow:var(--shadow-card);opacity:0;pointer-events:none;border-radius:6px;padding:.45rem .55rem;font-size:.72rem;line-height:1.35;transition:opacity .12s,transform .12s,visibility .12s;position:absolute;bottom:calc(100% + .4rem);left:0;right:0;transform:translateY(.2rem)}.trigger-condition-type-option:hover .trigger-condition-type-tooltip,.trigger-condition-type-option:focus .trigger-condition-type-tooltip,.trigger-condition-type-option:focus-within .trigger-condition-type-tooltip,.interaction-effect-type-option:hover .interaction-effect-type-tooltip,.interaction-effect-type-option:focus .interaction-effect-type-tooltip,.interaction-effect-type-option:focus-within .interaction-effect-type-tooltip{visibility:visible;opacity:1;transform:translateY(0)}.trigger-add-group{border-color:var(--color-danger);background:var(--color-danger);gap:.55rem;width:100%;margin-top:1rem}.trigger-add-group-icon{font-size:1.25rem;line-height:1}.temporal-condition{grid-column:1/-2;gap:.5rem;min-width:0;margin:0;display:grid}.weekday-options,.temporal-actions,.temporal-row{flex-wrap:wrap;align-items:center;gap:.4rem;display:flex}.inspector .weekday-options label{align-items:center;gap:.2rem;font-size:.75rem;display:flex}.temporal-row input{flex:8rem}.temporal-actions button{flex:auto}.inspector-section-header{margin-top:1rem}.inspector-section-header h3{margin:0}.interaction-inspector-content>h3{margin-top:0}.interaction-inspector-presentation{border:1px solid var(--color-border);background:var(--color-surface);border-radius:12px;margin-bottom:.75rem}.interaction-inspector-presentation>.interaction-inspector-content:first-child{padding:.65rem .8rem .25rem}.interaction-inspector-presentation>.interaction-inspector-content:last-child{border-top:1px solid var(--color-border);padding:.45rem .8rem .75rem}.interaction-inspector-readout{width:100%;min-width:0;color:var(--color-text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:7px;align-items:center;gap:.5rem;padding:.35rem .45rem;transition:border-color .15s,background .15s,box-shadow .15s;display:flex}.interaction-inspector-readout:hover,.interaction-inspector-readout:focus-visible{border-color:var(--color-control-border);background:var(--color-surface-secondary)}.interaction-inspector-readout:focus-visible{outline:2px solid var(--color-primary);outline-offset:1px;box-shadow:0 0 0 3px var(--color-primary-halo)}.interaction-content-preview{min-height:2rem;color:var(--color-text);cursor:text;border:1px solid #0000;border-radius:7px;margin:.25rem 0;padding:.45rem}.interaction-content-preview .story-body{margin:0}.interaction-content-preview:hover,.interaction-content-preview:focus-visible{border-color:var(--color-control-border);background:var(--color-surface-secondary)}.interaction-content-preview:focus-visible{outline:2px solid var(--color-primary);outline-offset:1px}.interaction-inspector-inputs{font-size:var(--type-size-compact);flex-wrap:wrap;align-items:center;gap:.3rem;margin:0 0 .5rem;padding:0;list-style:none;display:flex}.interaction-inspector-inputs-arrow{color:var(--color-muted)}.interaction-inspector-input{border:1px solid var(--color-border);background:var(--color-surface);max-width:14rem;min-height:0;color:var(--color-text);font-size:var(--type-size-compact);text-overflow:ellipsis;white-space:nowrap;border-radius:999px;padding:.1rem .5rem;font-weight:600;overflow:hidden}button.interaction-inspector-input:hover{border-color:var(--color-primary)}.interaction-inspector-input-start{color:var(--color-muted);border-style:dashed}.interaction-inspector-title-bubble{border:1px solid var(--color-primary-halo-strong);background:var(--color-primary-soft);max-width:100%;color:var(--color-primary-strong);font-size:var(--type-size-control);cursor:pointer;border-radius:999px;align-items:center;padding:.3rem .7rem;font-weight:650;line-height:1.25;display:inline-flex}.interaction-inspector-title-bubble[role=button]:hover{border-color:var(--color-primary)}.interaction-inspector-title-bubble[role=button]:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.interaction-inspector-title-bubble:focus-within{border-color:var(--color-primary);box-shadow:0 0 0 2px var(--color-primary-halo)}.interaction-inspector-title-bubble>.interaction-inspector-title-input{width:20ch;min-width:0;max-width:100%;min-height:0;color:inherit;font:inherit;background:0 0;border:0;border-radius:0;padding:0}.interaction-inspector-title-bubble>.interaction-inspector-title-input:focus,.interaction-inspector-title-bubble>.interaction-inspector-title-input:focus-visible{box-shadow:none;border:0;outline:0}.interaction-inspector-context{border-bottom:1px solid var(--color-border);flex-wrap:wrap;align-items:center;gap:.15rem .4rem;padding:.35rem .55rem;display:flex}.interaction-inspector-context>.inspector-commentable-field{flex:none;min-width:0}.interaction-inspector-section-heading>h3{color:var(--color-text);margin:0;font-size:.82rem;font-weight:750}.field-help-tooltip-trigger.interaction-metadata-control{width:2rem;min-width:2rem;height:2rem;min-height:2rem;color:var(--color-primary);background:0 0;border-color:#0000;border-radius:8px}.field-help-tooltip-trigger.interaction-metadata-control:hover{border-color:var(--color-control-border);background:var(--color-surface-secondary);color:var(--color-primary-strong)}.field-help-tooltip-trigger.interaction-metadata-control:focus-visible{outline:2px solid var(--color-primary);outline-offset:1px}.field-help-tooltip-trigger.interaction-metadata-control.has-value{gap:.2rem;width:auto;min-width:2rem;padding-inline:.3rem}.field-help-tooltip-trigger.interaction-metadata-control.is-empty{width:1.6rem;min-width:1.6rem;height:1.6rem;min-height:1.6rem;color:var(--color-muted)}.field-help-tooltip-trigger.interaction-metadata-control svg{width:1rem;height:1rem}.field-help-tooltip-trigger.interaction-metadata-control.is-empty svg{width:.75rem;height:.75rem}.context-picto.interaction-metadata-avatar{border:2px solid var(--color-surface);border-radius:50%;flex:none;width:1.5rem;height:1.5rem;overflow:hidden}img.context-picto.interaction-metadata-avatar{object-fit:cover;display:block}span.context-picto.interaction-metadata-avatar{background:var(--color-primary-strong);color:var(--color-surface);place-items:center;font-size:.52rem;font-weight:750;display:grid}.interaction-metadata-avatar-stack{align-items:center;padding-left:.3rem;display:inline-flex}.interaction-metadata-avatar-stack>.interaction-metadata-avatar,.interaction-metadata-avatar-overflow{margin-left:-.3rem}.interaction-metadata-avatar-stack>.interaction-metadata-avatar:first-child{margin-left:0}.interaction-metadata-avatar-overflow{border:2px solid var(--color-surface);background:var(--color-surface-secondary);width:1.5rem;height:1.5rem;color:var(--color-muted);border-radius:50%;flex:none;place-items:center;font-size:.55rem;font-weight:700;display:grid}.interaction-metadata-duration-value{color:var(--color-text);font-size:var(--type-size-compact);white-space:nowrap;font-weight:650}.interaction-inspector-effects,.interaction-inspector-options{padding:.75rem 0}.interaction-inspector-effects{border-bottom:1px solid var(--color-border)}.interaction-inspector-section-heading{align-items:center;gap:.5rem;min-height:32px;display:flex}.interaction-inspector-section-heading>small{background:var(--color-surface-secondary);min-width:1.3rem;height:1.3rem;color:var(--color-muted);font-size:var(--type-size-compact);border-radius:999px;place-items:center;margin-left:auto;padding:0 .3rem;display:grid}.interaction-add-effect,.interaction-inspector-add-option{border:1px solid var(--color-border);width:30px;height:30px;color:var(--color-muted);background:0 0;border-radius:50%;flex:none;place-items:center;padding:0;font-size:1.1rem;line-height:1;display:inline-grid}.interaction-inspector-add-option{margin-top:.4rem}.interaction-add-effect{width:auto;min-width:30px;font-size:var(--type-size-compact);border-radius:999px;margin-left:auto;padding:0 .45rem;font-weight:700}.interaction-effect-counters{flex-wrap:wrap;gap:.3rem;display:inline-flex}.interaction-effect-counter{background:var(--color-surface-secondary);color:var(--color-text);font-size:var(--type-size-compact);border-radius:999px;align-items:center;gap:.25rem;padding:.1rem .45rem;font-weight:650;display:inline-flex}.interaction-effect-counter>i{color:var(--color-primary);font-style:normal}.interaction-add-effect:hover:not(:disabled),.interaction-inspector-add-option:hover:not(:disabled){border-color:var(--color-primary);background:var(--color-surface-secondary);color:var(--color-primary-strong)}.interaction-effect-editor{border-radius:7px;margin-top:.4rem}.interaction-inspector-option-list{gap:.25rem;margin:.4rem 0 0;padding:0;list-style:none;display:grid}.interaction-inspector-option-readout{justify-content:space-between}.interaction-inspector-option-readout .interaction-label-bubble.choice-label-error,.interaction-inspector-title-bubble.choice-label-error{border-color:var(--color-error);box-shadow:inset 0 0 0 1px var(--color-error)}.interaction-inspector-option-readout .interaction-label-bubble.choice-label-error{border:1px solid var(--color-error);padding:.15rem .2rem .15rem .5rem}.interaction-inspector-option-readout .interaction-label-bubble{font-size:var(--type-size-control);text-overflow:ellipsis;white-space:nowrap;border-radius:999px;overflow:hidden}.interaction-inspector-option-arrow{color:var(--color-muted);flex:none;font-style:normal}.interaction-inspector-effects .interaction-effects-summary{color:var(--color-muted);font-size:var(--type-size-control);margin-top:.4rem}.inspector-accordion{border-bottom:1px solid var(--color-border)}.inspector-accordion>summary{cursor:pointer;color:var(--color-text);justify-content:space-between;align-items:center;gap:.75rem;padding:.85rem 0;font-size:.82rem;font-weight:750;list-style:none;display:flex}.inspector-accordion>summary::-webkit-details-marker{display:none}.inspector-accordion>summary:before{content:"▸";width:.8rem;color:var(--color-muted);flex:none}.inspector-accordion[open]>summary:before{content:"▾"}.inspector-accordion>summary>span{flex:1}.inspector-accordion>summary>small{background:var(--color-surface-secondary);min-width:1.35rem;height:1.35rem;color:var(--color-muted);border-radius:999px;place-items:center;padding:0 .35rem;font-size:.66rem;font-weight:650;display:grid}.inspector-accordion-content{padding:0 0 .9rem}.interaction-effect-editor>summary{color:var(--color-text);font-size:var(--type-size-control);cursor:pointer;border:1px solid #0000;border-radius:7px;padding:.45rem;line-height:1.4}.interaction-effect-editor>summary:hover,.interaction-effect-editor>summary:focus-visible{border-color:var(--color-control-border);background:var(--color-surface-secondary)}.interaction-effect-editor>summary:focus-visible{outline:2px solid var(--color-primary);outline-offset:1px}.interaction-effect-editor>.interaction-effect-card{margin-top:.35rem}.interaction-timing-block{border:1px solid var(--color-border);background:var(--color-surface-secondary);border-radius:9px;margin-bottom:1rem;padding:.75rem}.interaction-timing-block>strong{font-size:.78rem}.interaction-timing-block>.hint{margin:.25rem 0 .7rem}.character-presence-fieldset{gap:.25rem;display:grid}.inspector fieldset .character-presence-option{min-height:36px;color:var(--color-text);border-radius:7px;grid-template-columns:auto 28px minmax(0,1fr);gap:.5rem;margin:0;padding:.25rem .35rem;display:grid}.inspector fieldset .character-presence-option:hover{background:var(--color-surface-secondary)}.character-presence-avatar{color:#fff;object-fit:cover;background:#6f8793;border-radius:7px;place-items:center;width:28px;height:28px;font-size:.58rem;font-weight:750;display:grid;overflow:hidden}.interaction-effect-group{border-top:1px solid var(--color-border);gap:.65rem;padding-top:.8rem;display:grid}.interaction-effect-group-header h4{color:var(--color-text);margin:0;font-size:.84rem}.inspector .interaction-effect-group-header small{color:var(--color-muted)}.stat-row,.stat-effect-row{gap:.5rem;margin-top:.65rem;display:grid}.stat-assignment{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.5rem;margin:.65rem 0 1rem;display:grid}.stat-name{align-self:center;font-size:.88rem;font-weight:650}.context-picto{object-fit:cover;vertical-align:middle;border-radius:.3rem;width:1.4rem;height:1.4rem;margin-right:.45rem}.inspector-image-frame{aspect-ratio:16/9;border:1px solid var(--color-border);background:var(--color-surface-secondary);width:100%;color:var(--color-muted);border-radius:.5rem;place-items:center;margin:0 0 1rem;padding:0;display:grid;overflow:hidden}.inspector-image-frame:hover,.inspector-image-frame:focus-visible{border-color:var(--color-accent)}.inspector-image-frame img,.image-url-dialog-preview{object-fit:cover;width:100%;height:100%;display:block}.image-url-dialog-preview{aspect-ratio:16/9;border:1px solid var(--color-border);border-radius:.5rem;margin-top:.75rem}.character-items{gap:.4rem;margin:.5rem 0 1rem;padding:0;list-style:none;display:grid}.character-items li{border:1px solid var(--color-border);background:var(--color-surface-secondary);border-radius:8px;padding:.55rem .65rem;font-size:.88rem}.item-instance-tree,.item-instance-tree ul{margin:0;padding:0;list-style:none}.item-instance-tree ul{border-left:2px solid var(--color-border);margin:.45rem 0 0 .8rem;padding-left:.8rem}.item-instance-tree>li+li,.item-instance-tree ul>li+li{margin-top:.45rem}.item-tree-card{background:var(--color-surface-secondary);border:1px solid var(--color-border);border-radius:.6rem;gap:.45rem;padding:.6rem;display:grid}.item-tree-title{align-items:center;gap:.45rem;display:flex}.inspector .item-tree-title small{color:var(--color-muted);margin-left:auto}.item-stat-list{color:var(--color-muted);margin:.3rem 0 0;padding-left:1.2rem;font-size:.82rem}.inspector .item-stat-list li{background:0 0;border:0;padding:0}.stat-row{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}.stat-effect-row{grid-template-columns:minmax(0,2fr) minmax(0,1fr) 80px 32px;align-items:center}.stat-effect-row select,.stat-effect-row input{min-width:0}.rich-text-toolbar .rich-text-toolbar-button.is-active{border-color:var(--color-primary-focus);background:var(--color-primary-soft);color:var(--color-primary-strong);box-shadow:inset 0 0 0 1px var(--color-primary-focus)}.rich-text-toolbar button:hover:not(:disabled){background:var(--color-surface-secondary)}.rich-text-toolbar .rich-text-toolbar-button.is-active:hover:not(:disabled){background:var(--color-primary-soft)}.interaction-effect-card{border:1px solid var(--color-border);background:var(--color-surface-secondary);border-radius:9px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.5rem;margin-top:.65rem;padding:.65rem;display:grid}.interaction-effect-title{border-bottom:1px solid var(--color-border);color:var(--color-muted);letter-spacing:.04em;text-transform:uppercase;grid-column:1;padding-bottom:.45rem;font-size:.7rem}.interaction-effect-remove{grid-area:1/2;align-self:start}.interaction-effect-fields{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;display:grid}.interaction-effect-fields .form-field{min-width:0}.rich-text-editor{border:1px solid var(--form-control-border);border-radius:var(--form-control-radius);background:var(--form-control-surface)}.rich-text-editor:focus-within{border-color:var(--color-primary);outline:2px solid var(--color-surface);outline-offset:1px;box-shadow:0 0 0 4px var(--color-primary)}.rich-text-surface{overflow-wrap:anywhere;min-height:180px;font-family:var(--font-narrative);font-size:var(--type-size-narrative);line-height:var(--type-leading-narrative);padding:.45rem}.rich-text-editor .rich-text-surface .ProseMirror:focus{outline:none}.rich-text-surface :is([data-interaction-link-target],[data-stat-value]){border:1px solid var(--color-primary-focus);background:var(--color-primary-soft);min-width:0;max-width:100%;color:var(--color-primary-strong);vertical-align:baseline;white-space:normal;cursor:pointer;border-radius:.4rem;padding:0;font-size:.9em;font-weight:650;line-height:1.35;display:inline-flex;position:relative}.rich-text-token-edit{border-radius:inherit;min-width:0;max-width:100%;color:inherit;box-shadow:none;font:inherit;line-height:inherit;overflow-wrap:anywhere;text-align:left;white-space:normal;cursor:grab;background:0 0;border:0;padding:.08rem .38rem;overflow:hidden}.rich-text-token-edit:hover,.rich-text-token-edit:focus-visible{box-shadow:none;background:0 0;transform:none}.rich-text-token-remove,.rich-text-condition-remove{z-index:1;border:2px solid var(--color-surface);background:var(--color-danger);opacity:1;pointer-events:all;cursor:pointer;border-radius:999px;width:18px;height:18px;padding:0;font-size:.76rem;line-height:1;transition:box-shadow .12s;position:absolute;transform:none;box-shadow:0 0 0 3px #c53d4f22}.rich-text-token-remove{top:-9px;right:-9px}.rich-text-surface :is([data-interaction-link-target],[data-stat-value]):hover,.rich-text-surface :is([data-interaction-link-target],[data-stat-value]):focus,.rich-text-surface .rich-text-interaction-link-selected,.rich-text-surface .rich-text-variable-selected{border-color:var(--color-primary-strong);outline:2px solid var(--color-primary-halo-strong)}.rich-text-surface .rich-text-token-dragging{opacity:.55}.rich-text-surface .rich-text-token-dragging,.rich-text-surface .rich-text-token-dragging .rich-text-token-edit{cursor:grabbing}.rich-text-conditional-controls{flex-wrap:wrap;align-items:center;gap:.4rem;margin:-.25rem 0 .75rem;display:flex}.rich-text-condition-token{border:1px solid var(--color-primary-focus);background:var(--color-surface);min-width:0;max-width:100%;color:var(--color-primary-strong);border-radius:999px;display:inline-flex;position:relative}.rich-text-condition-token>button:first-child{border-radius:inherit;min-width:0;max-width:100%;color:inherit;box-shadow:none;overflow-wrap:anywhere;text-align:left;white-space:normal;background:0 0;border:0;padding:.24rem .65rem;font-size:.78rem;font-weight:700;overflow:hidden}.rich-text-condition-remove{top:-8px;right:-8px}.rich-text-token-remove:hover,.rich-text-token-remove:focus-visible,.rich-text-condition-remove:hover,.rich-text-condition-remove:focus-visible{background:var(--color-danger);box-shadow:0 0 0 3px #c53d4f22}.rich-text-condition-add{border-radius:999px;width:1.8rem;min-width:1.8rem;height:1.8rem;padding:0}.rich-text-limit{background:var(--color-surface-secondary);border-radius:0 0 var(--form-control-radius) var(--form-control-radius);color:var(--color-muted);text-align:right;margin:0;padding:.25rem .45rem .35rem;font-size:.78rem}.rich-text-limit.warning{color:#8a5a00}.rich-text-limit.error{color:var(--color-error);font-weight:700}.rich-text-surface img{max-width:100%;height:auto;margin:.75rem auto;display:block}.rich-text-surface video,.rich-text-surface iframe{aspect-ratio:16/9;border:0;width:100%;max-width:48rem;margin:.75rem auto;display:block}.rich-text-editor--focus-revealed:not(:focus-within) .rich-text-toolbar,.rich-text-editor--focus-revealed:not(:focus-within) .rich-text-limit,.rich-text-editor--focus-revealed:not(:focus-within) :is(.rich-text-token-remove,.rich-text-condition-remove,.rich-text-condition-add){display:none}.rich-text-editor--focus-revealed:not(:focus-within) .rich-text-surface{min-height:2.75rem}.rich-text-editor--focus-revealed:focus-within .rich-text-surface{min-height:180px}.interaction-effects-summary{gap:.35rem;margin:0;padding:0;list-style:none;display:grid}.interaction-effects-summary li{align-items:baseline;gap:.45rem;display:flex}.interaction-effects-summary-icon{color:var(--color-primary);font-size:.8em;font-style:normal;font-weight:700}.player-page{background:var(--color-canvas);grid-template-rows:58px minmax(0,1fr) auto;grid-template-columns:260px minmax(0,1fr) 250px;gap:0;width:100%;max-width:none;height:calc(100vh - 58px);min-height:600px;margin:0;padding:0;display:grid;position:relative;overflow:hidden}.player-top{color:#fff;background:#1f3029;border:0;grid-area:1/1/auto/-1;justify-content:flex-start;align-items:center;gap:.65rem;min-width:0;margin:0;padding:1rem;display:flex;box-shadow:0 1px #ffffff12}.player-context{align-items:center;gap:.65rem;min-width:0;margin-right:auto;display:flex}.player-context>span:last-child{min-width:0;display:grid}.player-context small{color:#aabdb4;font-size:var(--type-size-compact);letter-spacing:.11em;text-transform:uppercase;font-weight:700}.player-context b{font-family:var(--font-narrative);text-overflow:ellipsis;white-space:nowrap;font-size:.9rem;font-weight:500;overflow:hidden}.player-mark{color:#263b32;width:32px;height:32px;font-family:var(--font-narrative);background:#fff;border-radius:8px;flex:none;place-items:center;font-size:1.2rem;display:grid}.player-top .save-status{color:#aabdb4;min-width:auto;margin-right:.25rem}.player-top .save-status.saved,.player-top .editor-sync-indicator:is(.saved,.saving){color:#b9d6c7}.player-top .save-status.error,.player-top .editor-sync-indicator.error{color:#f0aaa5}.player-toolbar-button,.player-exit{color:#e3ebe6;min-height:34px;box-shadow:none;background:0 0;border:1px solid #ffffff24;border-radius:7px;justify-content:center;align-items:center;gap:.35rem;padding:.45rem .7rem;font-size:.68rem;font-weight:650;text-decoration:none;display:inline-flex}.player-toolbar-button:hover:not(:disabled),.player-exit:hover{box-shadow:none;background:#ffffff12;border-color:#ffffff45;transform:none}.player-exit{color:#263b32;background:#fff;border-color:#fff}.reader-save-dialog{gap:.85rem;width:min(680px,100%);max-height:min(760px,100vh - 2rem);display:grid;overflow:auto}.reader-save-dialog-header,.reader-save-create,.reader-save-list article,.reader-save-actions{align-items:center;gap:.65rem;display:flex}.reader-save-dialog-header{justify-content:space-between}.reader-save-dialog-header h2,.reader-save-dialog-header .product-eyebrow{margin:0}.reader-save-dialog-header>button{border-radius:999px;width:2rem;height:2rem;padding:0}.reader-save-create label,.reader-save-list article>div:first-child{flex:1;min-width:0}.reader-save-create label>span,.reader-save-limit,.reader-save-list small,.reader-save-list time{color:var(--color-muted);font-size:var(--type-size-compact)}.reader-save-list{gap:.55rem;display:grid}.reader-save-list article{border:1px solid var(--color-border);background:var(--color-surface-secondary);border-radius:10px;justify-content:space-between;padding:.75rem}.reader-save-list strong,.reader-save-list small,.reader-save-list time{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.reader-save-actions{flex-wrap:wrap;flex:none;justify-content:flex-end}.reader-save-actions button{padding:.4rem .6rem;font-size:.72rem}.player-card{view-transition-name:story-player-card;background:var(--color-surface-secondary);min-width:0;min-height:0;box-shadow:var(--shadow-player);border:0;border-radius:0;grid-area:2/2/4;align-self:stretch;margin:0;padding:0;overflow:auto}.player-card-passing{visibility:hidden}.player-card>.player-interaction-label{border:1px solid var(--color-primary-halo-strong);background:var(--color-primary-soft);width:fit-content;max-width:calc(100% - 2rem);color:var(--color-primary-strong);box-shadow:var(--shadow-card);text-align:center;text-overflow:ellipsis;white-space:nowrap;border-radius:999px;justify-content:center;align-items:center;gap:.35rem;margin:.9rem auto .75rem;padding:.35rem .75rem;font-family:inherit;font-size:.9rem;font-weight:650;line-height:1.25;display:flex}::view-transition-old(root){animation:none}::view-transition-new(root){animation:none}::view-transition-old(story-player-card){animation:.16s ease-in both player-interaction-fade-out}::view-transition-new(story-player-card){animation:.2s ease-out both player-interaction-fade-in}@keyframes player-interaction-fade-out{to{opacity:0}}@keyframes player-interaction-fade-in{0%{opacity:0}}@media (prefers-reduced-motion:reduce){::view-transition-old(story-player-card){animation:none}::view-transition-new(story-player-card){animation:none}}.eyebrow{text-transform:uppercase;letter-spacing:.08em;color:var(--color-accent);font-weight:750;font-size:var(--type-size-compact)}.story-clock{color:var(--color-muted);font-variant-numeric:tabular-nums;margin-bottom:1rem;display:block}.story-body{font-family:var(--font-narrative);font-size:var(--type-size-narrative);line-height:var(--type-leading-narrative);white-space:pre-wrap}.story-body img{max-width:100%;height:auto;margin:.75rem auto;display:block}.story-body video,.story-body iframe{aspect-ratio:16/9;border:0;width:100%;max-width:48rem;margin:.75rem auto;display:block}.player-story-content>h1{font-family:var(--font-narrative);letter-spacing:-.035em;margin:0 0 1rem;font-size:clamp(2rem,4vw,3rem);font-weight:500;line-height:1.08}.player-story-content .rich-text-surface{color:#454944}.story-body .interaction-link{color:var(--color-primary-strong);font:inherit;text-underline-offset:.16em;box-shadow:none;cursor:pointer;background:0 0;border:0;padding:0;text-decoration:underline;display:inline}.story-body .interaction-link:hover,.story-body .interaction-link:focus-visible{color:var(--color-primary);box-shadow:none;background:0 0;transform:none}.story-body .interaction-link:disabled{color:var(--color-muted);cursor:not-allowed;opacity:.7;text-decoration-style:dotted}.conditional-text{border:1px solid var(--color-primary-focus);background:var(--color-primary-soft);white-space:normal;border-left-width:4px;border-radius:10px;margin:1rem 0;padding:1rem}span.conditional-text{vertical-align:baseline;margin:.15rem .2rem;padding:.35rem .55rem;display:inline-block}.conditional-text>button[data-conditional-text-link]{border:1px solid var(--color-primary-focus);background:var(--color-surface);color:var(--color-primary-strong);font-size:var(--type-size-control);border-radius:999px;margin-bottom:.65rem;padding:.3rem .55rem;font-weight:700}.story-body .conditional-text>button[data-conditional-text-link]{pointer-events:none}.conditional-text-unavailable{opacity:.52;border-color:var(--color-border);background:var(--color-surface-secondary)}.conditional-text-reason{color:var(--color-subtle);font-size:var(--type-size-compact);margin-top:.65rem;font-weight:650;display:block}.player-inventory{background:var(--color-canvas);border:0;border-radius:0;grid-area:2/1;align-self:stretch;margin:0;padding:1.5rem 1.15rem;overflow:auto}.simulation-mode .player-inventory{flex-direction:column;display:flex}.player-inventory>h2,.player-inventory>h3{color:var(--color-muted);letter-spacing:.1em;text-transform:uppercase;border-bottom:1px solid #d9d9d2;margin:1.4rem 0 .6rem;padding-bottom:.5rem;font-size:.62rem;font-weight:750}.player-inventory>h3:first-of-type{margin-top:0}.player-inventory .hint{color:var(--color-subtle);margin:0;font-size:.68rem}.player-character-profile{text-align:center;justify-items:center;padding:.25rem 0 1.25rem;display:grid}.player-character-image,.player-character-placeholder{object-fit:cover;border-radius:50%;place-items:center;width:72px;height:72px;display:grid}.player-character-image{aspect-ratio:1;border:3px solid #fff;box-shadow:0 8px 22px #26352c22}.player-character-placeholder{color:#fff;font-family:var(--font-narrative);background:#59756a;font-size:1.2rem}.player-character-profile h2{font-family:var(--font-narrative);margin:.75rem 0 .2rem;font-size:1.25rem;font-weight:600}.player-character-profile p{color:var(--color-muted);margin:0;font-size:.68rem;line-height:1.5}.player-inventory .player-stat-list,.player-inventory .player-item-list{gap:.4rem;margin:0;padding:0;list-style:none;display:grid}.player-inventory .player-stat-list>li{color:#4c504b;background:0 0;border-bottom:1px solid #e1e1da;border-radius:0;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:.4rem;padding:.55rem .2rem;font-size:.7rem;display:grid}.player-stat-icon,.player-item-icon{color:#2f6250;background:#e5ebe6;border-radius:6px;place-items:center;width:24px;height:24px;font-size:.72rem;display:grid}.player-inventory .player-stat-list strong{color:#20221f;font-size:.75rem}.player-inventory .player-item-list>li{color:#40443f;background:#fbfbf8;border:1px solid #dcddd6;border-radius:8px;gap:.35rem;padding:.65rem;font-size:.7rem;display:grid}.player-inventory .player-item-list>li>small{color:var(--color-subtle);font-size:.6rem}.player-inventory .item-stat-list{gap:.2rem;margin:.2rem 0 0;padding:0;display:grid}.player-inventory .item-stat-list li{color:var(--color-muted);background:0 0;border-radius:0;padding:0;font-size:.62rem}.player-scene-visual{background:radial-gradient(circle at 70% 28%,#7891816b,#0000 25%),linear-gradient(140deg,#1d3029,#4d6257 57%,#17251f);height:clamp(190px,30vh,280px);position:relative;overflow:hidden}.player-scene-visual:after{content:"";pointer-events:none;background:linear-gradient(#0000 35%,#13221cbd);position:absolute;inset:0}.player-scene-visual>img{object-fit:cover;width:100%;height:100%}.player-scene-placeholder{background-image:radial-gradient(#ffffff24 .7px,#0000 .7px);background-size:20px 20px;position:absolute;inset:0}.player-scene-placeholder span{background:#ffffffd9;border:1px solid #ffffff75;border-radius:7px;width:68px;height:44px;position:absolute;top:42%;box-shadow:0 10px 26px #0004}.player-scene-placeholder span:first-child{left:28%}.player-scene-placeholder span:nth-child(2){right:28%}.player-scene-placeholder i{border:2px solid #d5a65b;width:14px;height:14px;position:absolute;top:calc(42% + 16px);left:calc(50% - 7px);transform:rotate(45deg)}.player-scene-placeholder:before,.player-scene-placeholder:after{content:"";background:#ffffff75;width:21%;height:1px;position:absolute;top:calc(42% + 21px)}.player-scene-placeholder:before{left:35%}.player-scene-placeholder:after{right:35%}.player-scene-meta{z-index:1;color:#fff;align-items:end;gap:1rem;display:flex;position:absolute;bottom:1.2rem;left:1.5rem;right:1.5rem}.player-scene-meta .interaction-context--scene{align-items:end;gap:1rem;min-width:0;margin-right:auto;display:flex}.interaction-context--scene .interaction-context-location{min-width:0;font-family:var(--font-narrative);align-items:center;gap:.35rem;font-size:.95rem;font-weight:500;display:flex}.interaction-context--scene .interaction-context-location-icon{width:1rem;height:1rem;color:var(--color-surface);flex:none}.player-scene-time{flex:none;align-items:center;gap:.35rem;display:inline-flex}.player-scene-time-icon{width:.85rem;height:.85rem;color:var(--color-surface)}.player-scene-meta time{color:#d9e2de;font-variant-numeric:tabular-nums;font-size:.66rem}.interaction-context--scene .interaction-context-character-group{padding-left:.35rem;display:flex}.interaction-context--scene .interaction-context-characters-icon{width:.9rem;height:.9rem;color:var(--color-surface)}.interaction-context--scene .interaction-context-avatar{border:2px solid var(--color-surface);background:var(--color-primary-strong);width:28px;height:28px;color:var(--color-surface);object-fit:cover;border-radius:50%;place-items:center;margin-left:-.35rem;font-size:.48rem;font-style:normal;display:grid}.simulation-current-effects{color:var(--color-muted);font-size:var(--type-size-control);margin:1rem 0}.simulation-current-effects>h2{color:var(--color-text);font-family:inherit;font-size:var(--type-size-compact);margin:0 0 .4rem;font-weight:700}.player-story-content{width:min(100%,780px);margin:0 auto;padding:clamp(2rem,5vw,4rem)}.player-story-content>.eyebrow{color:#2f6250;letter-spacing:.12em;margin:0 0 .8rem;font-size:.62rem}.player-story-content>p:not(.eyebrow){color:var(--color-muted);font-family:var(--font-narrative);font-size:1rem;line-height:1.65}.reader-mode .reader-comment-actions{justify-content:flex-end;margin-top:1.25rem;display:flex}.reader-mode .reader-comment-actions button{color:#2f6250;box-shadow:none;font-size:var(--type-size-control);background:#eef4ef;border-color:#2f625055}.character-selection{gap:1rem;display:grid}.character-selection>p{color:var(--color-muted);margin:0 0 1.5rem;font-size:.78rem}.character-selection h1{font-family:var(--font-narrative);margin:.5rem 0;font-size:2.25rem;font-weight:500}.character-selection>div{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem;display:grid}.character-choice-card{color:var(--color-text);box-shadow:none;text-align:left;background:#fff;border-color:#d7dad3;border-radius:10px;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:.2rem .75rem;padding:.8rem;display:grid}.character-choice-card:hover{background:#f6f8f5;border-color:#789181}.character-choice-card img,.character-choice-card>span{color:#fff;object-fit:cover;background:#59756a;border-radius:8px;grid-row:1/3;place-items:center;width:48px;height:48px;font-size:.65rem;display:grid}.character-choice-card strong{color:#20221f;align-self:end;font-size:.78rem}.character-choice-card small{color:var(--color-muted);text-overflow:ellipsis;white-space:nowrap;align-self:start;font-size:.62rem;overflow:hidden}.character-choice-card i{color:#2f6250;grid-area:1/3/3;font-style:normal}.choice-row{gap:.35rem;display:grid}.choice-timer{background:var(--color-border);border-radius:999px;height:.3rem;overflow:hidden}.choice-timer-fill{--choice-timer-duration:0s;--choice-timer-ratio:1;width:100%;height:100%;transform:scaleX(var(--choice-timer-ratio));transform-origin:0;animation:choice-timer-drain var(--choice-timer-duration) linear forwards;border-radius:inherit;background:var(--color-primary-focus);display:block}.choice-timer.expired .choice-timer-fill{animation:none;transform:scaleX(0)}@keyframes choice-timer-drain{to{transform:scaleX(0)}}@media (prefers-reduced-motion:reduce){.choice-timer-fill{animation:none}}.player-story-content .choices{gap:.65rem;margin-top:2.5rem;display:grid}.player-story-content .choices .choice{color:#28352f;width:100%;min-height:58px;box-shadow:none;text-align:left;background:#fff;border:1px solid #cfd2cc;border-radius:9px;justify-content:space-between;gap:1rem;padding:.85rem 1rem}.player-story-content .choices .choice:hover:not(:disabled){background:#f8faf7;border-color:#789181}.player-story-content .choices .choice.choice-label-error{border-color:var(--color-error);box-shadow:inset 0 0 0 1px var(--color-error)}.choice-copy{gap:.25rem;display:grid}.choice-copy strong{font-size:.78rem}.choice-copy small{color:#8a6a50;font-size:.62rem;line-height:1.45}.choice-arrow{color:#2f6250;text-align:center;background:#e5ebe6;border-radius:50%;flex:none;place-items:center;width:28px;height:28px;line-height:24px;display:grid}.ending{background:#f1f1ed;border:1px solid #dedfd9;border-radius:9px;grid-template-columns:40px 1fr;align-items:center;gap:.75rem;padding:1rem;display:grid}.ending>span{color:#2f6250;background:#e5ebe6;border-radius:50%;place-items:center;width:40px;height:40px;display:grid}.ending b{font-size:.75rem}.ending p{color:var(--color-muted);margin:.25rem 0 0;font-size:.65rem}.encounter-panel{border-left:1px solid var(--color-border);background:var(--color-canvas);grid-area:2/3;align-content:start;align-self:stretch;gap:.7rem;margin:0;padding:1.4rem 1rem;display:grid;overflow:auto}.encounter-panel>h2{font-family:var(--font-narrative);margin:-.25rem 0 .35rem;font-size:1.25rem;font-weight:600}.encounter-card{background:#fbfbf8;border:1px solid #dcddd6;border-radius:9px;padding:.75rem}.encounter-card img,.encounter-placeholder{aspect-ratio:4/3;color:#fff;object-fit:cover;width:100%;font-family:var(--font-narrative);background:#789181;border-radius:7px;place-items:center;font-size:1.2rem;display:grid}.encounter-card h3{margin:.7rem 0 .25rem;font-size:.75rem}.encounter-card p{color:var(--color-muted);margin:0;font-size:.63rem;line-height:1.45}.empty-state{color:var(--color-empty)}@media (width<=1080px){.player-page{grid-template-columns:230px minmax(0,1fr)}.encounter-panel{z-index:3;border:1px solid var(--color-border);width:210px;height:auto;max-height:calc(100% - 90px);box-shadow:var(--shadow-player);border-radius:10px;position:absolute;top:74px;right:1rem}}@media (width<=760px){.player-page{flex-direction:column;height:auto;min-height:calc(100vh - 58px);display:flex;overflow:visible}.player-top{z-index:10;flex-wrap:wrap;min-height:58px;padding:.65rem;position:sticky;top:0}.player-context{width:calc(100% - 95px)}.player-top .mode-pill,.player-top .save-status{margin-left:auto}.player-toolbar-button,.player-exit{flex:1}.player-card{order:1;overflow:visible}.player-inventory{border-top:1px solid var(--color-border);border-right:0;order:2;overflow:visible}.encounter-panel{width:auto;max-height:none;box-shadow:none;border-width:1px 0 0;border-radius:0;order:3;position:static}.player-scene-visual{height:190px}.player-scene-meta{bottom:.85rem;left:1rem;right:1rem}.interaction-context--scene .interaction-context-avatar{width:22px;height:22px}.player-story-content{padding:2rem 1.25rem 3rem}.character-selection>div{grid-template-columns:1fr}}.simulation-mode .mode-pill{background:var(--color-primary-soft);color:var(--color-primary-strong);font-size:var(--type-size-compact);border:1px solid #d8e4ff;border-radius:999px;margin-left:auto;padding:.34rem .58rem;font-weight:750}.simulation-mode .player-top .mode-pill{background:#b783352e;border-color:#cda86b66;margin:0 .25rem 0 0}.simulation-mode .player-top .mode-pill,.player-top .editor-sync-indicator:is(.reconnecting,.unavailable){color:#f1d7ad}.simulation-mode .simulation-save-feedback{color:#aabdb4;max-width:30rem;font-size:var(--type-size-compact);flex-wrap:wrap;align-items:center;gap:.3rem .5rem;display:inline-flex}.simulation-mode .simulation-save-feedback.error{color:#f0aaa5}.simulation-mode .simulation-save-feedback small{overflow-wrap:anywhere}.simulation-mode .simulation-save-feedback button{min-height:26px;color:inherit;font-size:var(--type-size-control);background:0 0;border:1px solid;border-radius:6px;padding:.2rem .45rem}.simulation-mode .simulation-controls{background:#fffaf0;border:1px solid #d5c19e;border-radius:9px;margin:1.25rem -.15rem 0;padding:.85rem}.simulation-mode .simulation-controls .product-eyebrow{color:#8a6226}.simulation-mode .simulation-controls label{color:#4b453b;font-size:var(--type-size-compact);grid-template-columns:auto minmax(0,1fr);align-items:start;gap:.55rem;margin-top:.65rem;display:grid}.simulation-mode .simulation-controls input{accent-color:#b78335;font-size:var(--type-size-control);margin-top:.15rem}.simulation-mode .simulation-controls label>span{gap:.2rem;display:grid}.simulation-mode .simulation-controls b{font-size:inherit}.simulation-mode .simulation-controls small{color:var(--color-muted);font-size:var(--type-size-compact);line-height:1.4}.simulation-mode .simulation-title-input{width:fit-content;max-width:calc(100% - 2rem);min-height:0;color:var(--color-text);font:inherit;text-align:center;text-overflow:ellipsis;white-space:nowrap;box-shadow:none;background:0 0;border:1px solid #0000;border-radius:999px;margin:.9rem auto .75rem;padding:.35rem .75rem;font-size:.9rem;font-weight:650;line-height:1.25;transition:border-color .15s,background .15s,box-shadow .15s}.simulation-mode .simulation-body-preview{cursor:text;border:1px solid #0000;border-radius:8px;min-height:2.75rem;margin:.35rem 0 1rem;padding:.3rem .45rem;transition:border-color .15s,background .15s,box-shadow .15s}.simulation-mode .simulation-body-preview .story-body{margin:0}.simulation-mode .simulation-body-preview:hover{border-color:var(--color-control-border);background:var(--color-surface-secondary)}.simulation-mode .simulation-body-preview:focus-visible{border-color:var(--color-primary);background:var(--color-surface-secondary);outline:2px solid var(--color-surface);outline-offset:1px;box-shadow:0 0 0 4px var(--color-primary)}.simulation-mode .simulation-content-edit-toggle{font-size:var(--type-size-control);margin:.5rem 0 1rem}.simulation-mode .simulation-title-input:hover{border-color:var(--color-control-border);background:var(--color-surface-secondary);box-shadow:0 0 0 3px var(--color-primary-halo);outline:none}.simulation-mode .simulation-title-input:focus{border-color:var(--color-primary);background:var(--color-surface-secondary);outline:2px solid var(--color-surface);outline-offset:1px;box-shadow:0 0 0 4px var(--color-primary)}.simulation-mode .simulation-title-error{justify-content:center;align-items:center;gap:.4rem;margin:.9rem auto .75rem;display:flex}.simulation-mode .simulation-title-error>.simulation-title-input{border-color:var(--color-error);min-width:8rem;box-shadow:inset 0 0 0 1px var(--color-error);margin:0}.simulation-mode .simulation-title-error>.choice-label-error-icon{margin:0}.simulation-mode .simulation-edit-label{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.4rem;display:flex}.simulation-mode .simulation-edit-label small{color:var(--color-subtle);font-size:var(--type-size-compact)}.simulation-mode .player-story-content .choices .choice.unavailable{color:#777b73;opacity:.42;background:#f5f5f1;border-color:#dedfd9}.simulation-mode .player-story-content .choices .choice.unavailable:hover,.simulation-mode .player-story-content .choices .choice.unavailable:focus-visible{opacity:.42;border-color:#dedfd9}.simulation-mode .player-story-content .choices .choice.unavailable.forced{opacity:1;background:#fffaf0;border-style:dashed;border-color:#b78335}.simulation-mode .player-story-content .choices .choice.unavailable.forced .choice-arrow{color:#8a6226;background:#f8edd9}.simulation-mode .player-story-content .choices .add-option{background:0 0;border-style:dashed}.simulation-mode .choice-title-input{background:var(--color-surface);width:100%;min-height:58px;color:var(--color-primary-strong);font:inherit;border:1px solid #789181;border-radius:9px;padding:1rem 1.2rem;font-weight:650;box-shadow:0 0 0 3px #2f625017}.simulation-mode .player-history{color:#676b65;background:#eeede7;border-top:1px solid #d5d5ce;border-right:1px solid #d5d5ce;flex:none;max-height:170px;margin:auto -1.15rem -1.5rem;padding:.75rem 1rem;font-size:.65rem;overflow:auto}.simulation-mode .player-history summary{cursor:pointer;font-weight:700}.simulation-mode .player-history ol{margin:.65rem 0 0;padding-left:1.2rem}@media (width<=760px){.simulation-mode .player-history{border-right:0;max-height:none;margin-top:1rem}}@media (width<=800px){.editor-layout,.editor-layout.with-navigation,.editor-layout.with-navigation-collapsed,.editor-layout.with-inspector,.editor-layout.with-navigation.with-inspector,.editor-layout.with-navigation-collapsed.with-inspector,.editor-layout.with-inspector.with-comment-rail,.editor-layout.with-navigation.with-inspector.with-comment-rail,.editor-layout.with-navigation-collapsed.with-inspector.with-comment-rail{grid-template-columns:minmax(0,1fr)}.location-panel{z-index:8;width:min(260px,100vw - 5rem);box-shadow:var(--shadow-card);position:absolute;top:122px;bottom:0;left:4.25rem}.canvas{grid-column:1}.inspector{width:min(var(--editor-inspector-width,340px), calc(100vw - 5rem));z-index:5;position:absolute;top:122px;bottom:0;right:0}.editor-layout.is-inspector-maximized .inspector{z-index:4;width:auto;left:0;right:0}.editor-layout.is-inspector-maximized .location-panel{z-index:5}.contextual-comments-rail{z-index:6;width:min(390px,90vw);height:auto;position:absolute;top:calc(154px + 1.95rem);bottom:0;right:0}.editor-toolbar{align-items:flex-start;gap:.5rem;height:auto}.editor-page{height:calc(100vh - 58px)}}.attribute-definitions-panel{gap:.35rem;display:grid}.attribute-definition-create,.attribute-assignment-create{gap:.5rem;display:grid}.attribute-assignment-list{gap:.35rem;margin:0;padding:0;list-style:none;display:grid}.attribute-assignment-row{grid-template-columns:minmax(0,1fr) minmax(70px,.8fr) auto;align-items:center;gap:.35rem;display:grid}.attribute-definition-create-actions{gap:.4rem;display:flex}.product-help-button{border:1px solid var(--color-control-border);background:var(--color-surface);min-height:34px;color:var(--color-muted);border-radius:6px;padding:.4rem .65rem;font-size:.72rem;font-weight:600}.product-help-button:focus-visible{outline:3px solid var(--color-primary-focus);outline-offset:2px}.product-page{--product-ink:#20221f;--product-muted:#666b63;--product-subtle:#686d65;--product-line:#dedfd9;--product-paper:#fff;--product-wash:#f7f7f3;--product-canvas:#f1f1ed;--product-accent:#2f6250;--product-accent-strong:#244b3d;--product-accent-soft:#e5ebe6;--product-trigger:#b78335;--product-danger:#a5453f;color:var(--product-ink)}.product-page button{font:inherit}.product-page button:hover,.product-app-header button:hover{transform:none}.product-brand,.product-app-brand{color:inherit;align-items:center;gap:.7rem;text-decoration:none;display:inline-flex}.product-brand>span,.product-app-brand>span:first-child{color:#fff;width:34px;height:34px;font-family:var(--font-narrative);background:#263b32;border-radius:9px;place-items:center;font-size:1.35rem;line-height:1;display:grid}.product-brand>b,.product-app-brand>b{letter-spacing:-.02em;font-size:1rem}.product-eyebrow{color:var(--color-accent);font-size:var(--type-size-compact);letter-spacing:.12em;text-transform:uppercase;font-weight:750;display:block}.product-primary,.product-secondary,.product-ghost,.product-danger{min-height:40px;font-size:var(--type-size-control);border-radius:8px;justify-content:center;align-items:center;gap:.55rem;padding:.62rem .9rem;font-weight:650;text-decoration:none;display:inline-flex}.product-primary{border:1px solid var(--color-primary);background:var(--color-primary);color:#fff;box-shadow:0 3px 8px #244b3d26}.product-primary:hover:not(:disabled){border-color:var(--color-primary-strong);background:var(--color-primary-strong)}.product-secondary{border:1px solid var(--color-border);background:var(--color-surface);color:var(--color-text);box-shadow:none}.product-secondary:hover,.product-ghost:hover{background:var(--color-canvas);box-shadow:none;border-color:#c8cbc3}.product-ghost{color:var(--product-muted);box-shadow:none;background:0 0;border:1px solid #0000}.product-danger{color:var(--product-danger);box-shadow:none;background:#fff7f6;border:1px solid #e2c6c3}.product-primary:disabled,.product-secondary:disabled{cursor:not-allowed;opacity:.45}.product-primary.compact,.product-secondary.compact,.product-ghost.compact{min-height:34px;font-size:var(--type-size-control);padding:.45rem .65rem}.danger-text{color:var(--product-danger)}.password-field button,.auth-switch button{color:var(--product-accent);box-shadow:none;background:0 0;border:0;padding:0 .8rem;font-size:.72rem;font-weight:650}.product-badge{letter-spacing:.03em;border-radius:999px;align-items:center;min-height:22px;padding:.2rem .55rem;font-size:.63rem;font-weight:700;display:inline-flex}.product-badge.neutral{color:var(--product-muted);background:#f0f0ec}.product-badge.accent{background:var(--color-primary-soft);color:var(--color-primary-strong)}.product-badge.warning{color:#8a6226;background:#f8edd9}.product-badge.danger{color:var(--product-danger);background:#f8e7e5}.language-switcher{position:relative}.language-switcher-toggle{border:1px solid var(--color-border);min-width:42px;min-height:34px;color:var(--color-text);font:inherit;background-color:#fff;border-radius:6px;gap:.3rem;padding:.35rem .55rem;font-size:.72rem}.language-switcher-chevron{border-bottom:1px solid;border-right:1px solid;width:.35rem;height:.35rem;transform:translateY(-.1rem)rotate(45deg)}.language-switcher-options{z-index:40;border:1px solid var(--color-border);background:var(--color-surface);min-width:10rem;box-shadow:var(--shadow-card);border-radius:6px;gap:.125rem;margin:0;padding:.25rem;display:grid;position:absolute;top:calc(100% + .25rem);right:0}.language-switcher-options[hidden]{display:none}.language-switcher-option{min-height:32px;color:var(--color-text);cursor:pointer;white-space:nowrap;border-radius:4px;align-items:center;gap:.5rem;padding:.25rem .375rem;display:flex}.language-switcher-option:hover{background:var(--color-surface-secondary)}.language-switcher-option input{accent-color:var(--color-primary);margin:0}.language-switcher-option-code{font-size:.75rem;font-weight:650}.language-switcher-header{display:flex}.product-app-header{z-index:30;height:58px;box-shadow:none;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#fbfbf8f2;border-bottom:1px solid #dedfd9;gap:1.25rem;padding:0 1.25rem;position:relative}.product-app-header nav{align-self:stretch;gap:.25rem;display:flex}.product-app-header nav a{color:var(--color-muted);border-bottom:2px solid #0000;align-items:center;padding:0 .75rem;font-size:.75rem;font-weight:600;text-decoration:none;display:flex}.product-app-header nav a.active{color:#20221f;border-bottom-color:#2f6250}.product-app-spacer{flex:1}.product-auth-actions{flex:none;align-items:center;gap:.45rem;display:flex}.product-account-create{min-height:40px;padding-inline:1rem;font-size:.8rem;font-weight:750}.product-user{opacity:1;box-shadow:none;cursor:pointer;background:0 0;border:0;grid-template-columns:32px auto;align-items:center;gap:.55rem;padding:0;display:grid}.product-user>span:first-child{color:#fff;opacity:1;background:#59756a;border-radius:50%;place-items:center;width:32px;height:32px;font-size:.62rem;font-weight:700;display:grid}.product-user>span:last-child{color:var(--color-muted);opacity:1;font-size:.68rem}.account-email{color:var(--product-muted);gap:.3rem;margin-top:1rem;font-size:.72rem;display:grid}.account-email b{color:var(--product-ink);font-size:.8rem}.account-security{border-top:1px solid var(--product-line);gap:.8rem;margin-top:1.4rem;padding-top:1.2rem;display:grid}.account-security h3{color:var(--product-ink);margin:0;font-size:.86rem}.account-security p{color:var(--product-muted);margin:0;font-size:.72rem}.account-security-actions,.auth-verification-actions{flex-wrap:wrap;gap:.55rem;display:flex}.auth-recovery-link{color:var(--product-accent);margin-top:.9rem;font-size:.74rem;display:inline-block}.library-card-author{color:var(--product-muted);margin-top:.3rem;font-size:.68rem;display:block}.field-help-tooltip-trigger.library-card-delete{border-radius:8px;width:34px;height:34px;min-height:34px;padding:0}.field-help-tooltip-trigger.library-card-delete svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:17px;height:17px}.product-signout{min-height:34px;color:var(--color-muted);box-shadow:none;background:0 0;border:0;padding:.45rem .65rem;font-size:.7rem}.auth-layout{background:var(--product-wash);grid-template-columns:minmax(440px,1.06fr) minmax(420px,.94fr);min-height:100vh;display:grid;overflow:hidden}.auth-showcase{color:#fff;background:radial-gradient(circle at 22% 12%,#59766b55,#0000 32%),linear-gradient(145deg,#1e332b 0%,#2a4439 53%,#172720 100%);flex-direction:column;min-height:100vh;padding:clamp(1.5rem,4vw,3.5rem);display:flex;position:relative;overflow:hidden}.auth-showcase:after{content:"";pointer-events:none;background-image:radial-gradient(#ffffff1d .7px,#0000 .7px);background-size:20px 20px;position:absolute;inset:0}.auth-showcase .product-brand{z-index:2;position:relative}.auth-showcase .product-brand>span{color:#263b32;background:#fff}.auth-message{z-index:2;max-width:590px;margin-top:clamp(3rem,8vh,6.5rem);position:relative}.auth-message .product-eyebrow{color:#bed5cb}.auth-message h1{max-width:540px;font-family:var(--font-narrative);letter-spacing:-.045em;margin:.7rem 0 1rem;font-size:clamp(2.7rem,5.5vw,5rem);font-weight:500;line-height:.98}.auth-message p{color:#d7e1dc;max-width:540px;margin:0;font-size:clamp(.9rem,1.25vw,1.05rem);line-height:1.65}.auth-panel{background:#fbfbf8;place-items:center;min-height:100vh;padding:2rem;display:grid}.auth-route{background:var(--product-wash);place-items:center;min-height:calc(100vh - 58px);padding:clamp(1.25rem,5vw,3rem);display:grid}.auth-route .auth-panel{background:0 0;min-height:auto;padding:0}.auth-card{width:min(100%,430px)}.language-switcher-auth{justify-content:flex-end;margin-bottom:1.25rem;display:flex}.auth-card h1,.auth-card h2{font-family:var(--font-narrative);letter-spacing:-.035em;margin:.55rem 0 .5rem;font-size:2.25rem;font-weight:600}.auth-card>p:not(.auth-notice){color:var(--product-muted);margin:0 0 2rem;font-size:.84rem;line-height:1.55}.auth-card form{gap:1rem;display:grid}.auth-notice,.form-error,.library-error{border:1px solid var(--product-line);color:var(--product-muted);background:#f3f4ef;border-radius:8px;margin:0 0 1rem;padding:.75rem;font-size:.74rem}.form-error,.library-error{color:var(--product-danger);background:#fff7f6;border-color:#e2c6c3}.auth-submit{width:100%;margin-top:.35rem}.auth-switch{color:var(--product-muted);justify-content:center;gap:.4rem;margin-top:1.5rem;font-size:.74rem;display:flex}.auth-switch button{padding:0}.library-main{width:min(100% - 3rem,1240px);min-height:calc(100vh - 58px);margin:0 auto;padding:clamp(2.5rem,6vw,5rem) 0 6rem}.library-heading{justify-content:space-between;align-items:flex-end;gap:2rem;margin-bottom:2.5rem;display:flex}.library-heading h1,.design-hero h1{font-family:var(--font-narrative);letter-spacing:-.045em;margin:.35rem 0 .4rem;font-size:clamp(2.4rem,4vw,4rem);font-weight:550}.library-heading p,.design-hero>p{color:var(--product-muted);margin:0;font-size:.85rem}.library-heading-actions{gap:.6rem;display:flex}.library-toolbar{border:1px solid var(--product-line);background:var(--product-paper);border-radius:11px;align-items:center;gap:.75rem;padding:.7rem;display:flex}.library-search{border:1px solid var(--product-line);width:min(270px,28vw);min-height:38px;color:var(--product-subtle);border-radius:8px;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.5rem;padding:0 .7rem;display:grid}.library-search input{border:0;outline:0;min-width:0}.library-filters{gap:.2rem;display:flex}.library-filters button,.view-toggle button{min-height:36px;color:var(--product-muted);box-shadow:none;background:0 0;border:0;border-radius:7px;padding:0 .7rem;font-size:.7rem;font-weight:600}.library-filters button.active,.view-toggle button.active{background:var(--product-accent-soft);color:var(--product-accent-strong)}.library-sort{color:var(--product-subtle);align-items:center;gap:.4rem;margin-left:auto;font-size:.66rem;display:flex}.library-sort select{color:var(--product-ink);background:0 0;border:0;font-size:.7rem;font-weight:600}.view-toggle{border-left:1px solid var(--product-line);padding-left:.4rem;display:flex}.view-toggle button{width:36px;padding:0;font-size:1rem}.library-error{margin-top:1rem}.library-count{color:var(--product-muted);margin:1.6rem 0 .8rem;font-size:.7rem}.library-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;display:grid}.library-load-more{justify-content:center;margin-top:24px;display:flex}.library-card{border:1px solid var(--product-line);background:var(--product-paper);border-radius:12px;min-width:0;transition:transform .15s,box-shadow .15s,border-color .15s;overflow:hidden;box-shadow:0 3px 10px #26352c0a}.library-card:hover{border-color:#c5cbc3;transform:translateY(-2px);box-shadow:0 12px 30px #26352c14}.library-card-body{padding:1rem 1rem .9rem}.library-card h2{font-family:var(--font-narrative);letter-spacing:-.025em;margin:.75rem 0 .35rem;font-size:1.35rem;font-weight:600}.library-card>footer{border-top:1px solid var(--product-line);background:#fafaf7;justify-content:space-between;align-items:center;gap:.8rem;min-height:58px;padding:.75rem 1rem;display:flex}.library-card>footer>time{color:var(--product-subtle);font-size:.58rem}.library-card>footer>div{align-items:center;gap:.35rem;display:flex}.library-grid.list{grid-template-columns:1fr}.library-grid.list .library-card{grid-template-columns:minmax(0,1fr) auto;display:grid}.library-grid.list .library-card>footer{border-top:0;border-left:1px solid var(--product-line)}.library-empty{text-align:center;background:#ffffff7d;border:1px dashed #c9ccc4;border-radius:12px;align-content:center;place-items:center;min-height:330px;padding:2rem;display:grid}.library-empty>span:not(.loading-ring){background:var(--product-accent-soft);width:54px;height:54px;color:var(--product-accent);border-radius:50%;place-items:center;font-size:1.5rem;display:grid}.library-empty h2{font-family:var(--font-narrative);margin:1rem 0 .3rem}.library-empty p{color:var(--product-muted);margin:0 0 1rem;font-size:.75rem}.modal-backdrop{z-index:50;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#1d2a247a;place-items:center;padding:1.5rem;display:grid;position:fixed;inset:0}.new-story-dialog{overscroll-behavior:contain;background:#fff;border:1px solid #ffffff70;border-radius:14px;width:min(100%,430px);max-height:calc(100dvh - 3rem);margin:0;padding:2rem;position:static;inset:auto;overflow-y:auto;box-shadow:0 28px 70px #17211c4d}.dialog-icon{background:var(--product-accent-soft);width:44px;height:44px;color:var(--product-accent);border-radius:10px;place-items:center;margin-bottom:1.25rem;font-size:1.2rem;display:grid}.new-story-dialog h2{font-family:var(--font-narrative);margin:.45rem 0;font-size:1.8rem}.new-story-dialog>p{color:var(--product-muted);margin:0 0 1.4rem;font-size:.76rem;line-height:1.55}.dialog-actions{justify-content:flex-end;gap:.6rem;margin-top:1.4rem;display:flex}.choicescript-import-dialog{width:min(100%,620px)}.choicescript-file-field input[type=file]{border:1px dashed var(--product-line);background:var(--product-wash);min-height:48px;color:var(--product-muted);border-radius:8px;padding:.65rem}.choicescript-file-summary{border:1px solid var(--product-line);background:var(--product-wash);border-radius:8px;gap:.3rem;margin-top:.8rem;padding:.8rem;font-size:.72rem;display:grid}.choicescript-file-summary span{color:var(--product-muted);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.choicescript-file-summary small,.choicescript-import-warnings small{color:var(--product-subtle)}.choicescript-import-notice{color:var(--product-muted);margin:1rem 0 0;font-size:.68rem;line-height:1.5}.story-import-progress{color:var(--product-muted);gap:.45rem;margin-top:1rem;font-size:.7rem;display:grid}.choicescript-import-error>p{margin:0}.story-import-progress-track{background:var(--product-wash);border-radius:999px;height:7px;position:relative;overflow:hidden}.story-import-progress-track>span{border-radius:inherit;background:var(--product-accent);height:100%;transition:width .16s ease-out;display:block}.story-import-progress-track.is-indeterminate>span{width:38%;animation:1.1s ease-in-out infinite story-import-progress}@keyframes story-import-progress{0%{transform:translate(-110%)}to{transform:translate(285%)}}@media (prefers-reduced-motion:reduce){.story-import-progress-track.is-indeterminate>span{opacity:.55;width:100%;animation:none}}.story-import-report-heading{justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem;display:flex}.story-import-report-heading>p{color:var(--product-muted);margin:0;font-size:.76rem;line-height:1.5}.story-import-report-heading>button{flex:none}.choicescript-import-result dl{border:1px solid var(--product-line);border-radius:9px;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));margin:0;display:grid}.choicescript-import-result dl div{gap:.25rem;padding:.9rem;display:grid}.choicescript-import-result dl div+div{border-left:1px solid var(--product-line)}.choicescript-import-result dt{color:var(--product-subtle);font-size:.62rem}.choicescript-import-result dd{font-family:var(--font-narrative);margin:0;font-size:1.4rem}.choicescript-import-warnings{background:#fff9e9;border:1px solid #e5ce9c;border-radius:9px;margin-top:1rem;padding:.9rem;font-size:.7rem}.choicescript-import-warnings.has-errors{background:#fff7f6;border-color:#e2c6c3}.choicescript-import-warnings ul{gap:.65rem;max-height:210px;margin:.8rem 0 0;padding:0;list-style:none;display:grid;overflow-y:auto}.choicescript-import-warnings li{gap:.15rem;line-height:1.4;display:grid}.choicescript-import-warnings li>span:first-child{color:#8a6421;font-size:.6rem;font-weight:700}.choicescript-import-warnings.has-errors li>span:first-child{color:#8a3b35}.choicescript-import-warnings li p{margin:0}.choicescript-import-warnings .story-import-issue-severity{color:#6f501a;background:#f5e7c7;border-radius:999px;width:max-content;padding:.1rem .35rem;font-size:.58rem;font-weight:750}.choicescript-import-warnings .story-import-issue-severity.severity-error{color:#8a3b35;background:#f4deda}.choicescript-import-clean{background:#edf5ef;border-radius:8px;padding:.7rem .8rem;color:#28583c!important;margin:1rem 0 0!important}.qsp-import-coverage{border:1px solid var(--product-line);background:var(--product-wash);border-radius:9px;margin-top:1rem;padding:.9rem;font-size:.7rem}.qsp-import-coverage>p{color:var(--product-muted);margin:.35rem 0 .8rem;line-height:1.45}.qsp-import-coverage ul{gap:0;max-height:230px;margin:0;padding:0;list-style:none;display:grid;overflow-y:auto}.qsp-import-coverage li{border-top:1px solid var(--product-line);justify-content:space-between;align-items:baseline;gap:1rem;padding:.45rem 0;display:flex}.qsp-import-coverage li small{color:var(--product-subtle);text-align:right;flex:none}.qsp-import-coverage .support-supported{color:#28583c}.qsp-import-coverage .support-partial{color:#8a6421}.qsp-import-coverage .support-unsupported{color:#8a3b35}.design-layout{background:var(--product-wash);grid-template-columns:230px minmax(0,1fr);min-height:calc(100vh - 58px);display:grid}.design-navigation{border-right:1px solid var(--product-line);background:#fafaf7;flex-direction:column;height:calc(100vh - 58px);padding:2rem 1.25rem 1.25rem;display:flex;position:sticky;top:58px}.design-navigation>div{gap:.25rem;padding:0 .5rem 1.5rem;display:grid}.design-navigation>div b{font-family:var(--font-narrative);font-size:1.3rem}.design-navigation>div small{color:var(--product-subtle);font-size:.6rem}.design-navigation nav{gap:.2rem;display:grid}.design-navigation nav a{color:var(--product-muted);border-radius:7px;padding:.58rem .7rem;font-size:.72rem;font-weight:550;text-decoration:none}.design-navigation nav a:hover{background:var(--product-accent-soft);color:var(--product-accent-strong)}.design-navigation>a{margin-top:auto}.design-main{min-width:0;padding:0 clamp(2rem,6vw,6rem) 7rem}.design-hero,.reference-section{width:min(100%,1120px);margin:0 auto}.design-hero{padding:clamp(4rem,9vw,8rem) 0 clamp(4rem,8vw,7rem)}.design-hero h1{max-width:770px;font-size:clamp(3rem,6vw,5.8rem);line-height:.98}.design-hero>p{max-width:690px;margin-top:1.5rem;font-size:.95rem;line-height:1.7}.design-hero dl{border-top:1px solid var(--product-line);border-bottom:1px solid var(--product-line);grid-template-columns:repeat(4,1fr);max-width:760px;margin:3rem 0 0;display:grid}.design-hero dl div{border-right:1px solid var(--product-line);gap:.3rem;padding:1rem;display:grid}.design-hero dl div:last-child{border-right:0}.design-hero dt{color:var(--product-subtle);font-size:.6rem}.design-hero dd{margin:0;font-size:.76rem;font-weight:700}.reference-section{border-top:1px solid var(--product-line);padding:4.5rem 0;scroll-margin-top:58px}.reference-heading{max-width:670px;margin-bottom:2rem}.reference-heading h2{font-family:var(--font-narrative);letter-spacing:-.035em;margin:.45rem 0 .55rem;font-size:2.25rem;font-weight:600}.reference-heading p{color:var(--product-muted);margin:0;font-size:.8rem;line-height:1.6}.principle-grid{grid-template-columns:repeat(3,1fr);gap:.8rem;display:grid}.principle-grid article,.reference-card{border:1px solid var(--product-line);background:var(--product-paper);border-radius:12px}.principle-grid article{padding:1.4rem}.principle-grid article>span{color:var(--product-trigger);font-family:var(--font-narrative);font-size:1.5rem}.principle-grid h3{margin:2rem 0 .45rem;font-size:.85rem}.principle-grid p{color:var(--product-muted);margin:0;font-size:.72rem;line-height:1.55}.reference-card{padding:1.25rem}.reference-card+.reference-split,.reference-split+.reference-card{margin-top:.8rem}.reference-card-heading{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.25rem;display:flex}.reference-card-heading h3{margin:0;font-size:.8rem}.reference-card code,.component-row code,.swatch code{color:var(--product-subtle);font-family:ui-monospace,monospace;font-size:.58rem}.swatch-grid{grid-template-columns:repeat(4,1fr);gap:1.1rem .7rem;display:grid}.swatch{min-width:0;display:grid}.swatch>span{border:1px solid #00000012;border-radius:8px;height:68px;margin-bottom:.6rem}.swatch b{font-size:.7rem}.swatch small{color:var(--product-muted);margin:.15rem 0;font-size:.6rem}.reference-split{grid-template-columns:1.35fr 1fr;gap:.8rem;display:grid}.type-samples>div:not(.reference-card-heading){border-top:1px solid #ecece7;grid-template-columns:70px 1fr auto;align-items:baseline;gap:1rem;padding:.8rem 0;display:grid}.type-samples span,.type-samples small{color:var(--product-subtle);font-size:var(--type-size-compact)}.type-samples b,.type-samples p{margin:0;font-size:1.1rem}.type-samples .display-sample b{font-family:var(--font-narrative);font-size:var(--type-size-display);font-weight:500;line-height:var(--type-leading-display)}.type-samples .heading-sample{font-size:var(--type-size-heading);font-weight:600;line-height:var(--type-leading-heading)}.type-samples .body-sample{font-size:var(--type-size-body);font-weight:400;line-height:var(--type-leading-body)}.shape-samples{grid-template-columns:repeat(2,1fr);gap:1.2rem;display:grid}.shape-samples div{gap:.35rem;display:grid}.shape-samples div>span{border:1px solid var(--product-line);background:var(--product-canvas);width:54px;height:42px}.shape-samples .control{border-radius:8px}.shape-samples .card{border-radius:12px}.shape-samples .round{border-radius:50%;width:42px}.shape-samples .raised{border-radius:8px;box-shadow:0 10px 25px #26352c24}.shape-samples b{font-size:.7rem}.shape-samples small{color:var(--product-subtle);font-size:.6rem}.component-row{flex-wrap:wrap;gap:1.2rem;display:flex}.component-row>div{justify-items:start;gap:.55rem;display:grid}.form-reference{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:1.25rem;display:grid}.form-reference fieldset{border:1px solid var(--product-line);border-radius:8px;gap:.7rem;padding:1rem;display:grid}.form-reference legend,.form-reference fieldset label{font-size:var(--type-size-compact)}.reference-avatar{color:#fff;border-radius:50%;place-items:center;width:34px;height:34px;font-size:.58rem;font-weight:700;display:grid}.reference-avatar.large{width:50px;height:50px}.reference-avatar.moss{background:#59756a}.reference-avatar.blue{background:#647e91}.reference-avatar.amber{background:#a7834d}.identity-reference,.badge-reference{flex-wrap:wrap;gap:.6rem;display:flex}.badge-reference{margin-top:1.5rem}.narrative-reference{grid-template-columns:minmax(220px,1fr) 120px minmax(250px,1.15fr);align-items:center;gap:1rem;display:grid}.compact-effect-reference{gap:var(--form-field-label-gap);min-width:0;display:grid}.design-interaction-card{background:#fff;border:1px solid #c9cdc6;border-radius:11px;padding:1rem;position:relative;box-shadow:0 5px 14px #26352c14}.design-interaction-card>small{color:var(--product-accent);letter-spacing:.09em;font-size:.55rem;font-weight:800}.design-interaction-card h3{font-family:var(--font-narrative);margin:.65rem 0 .4rem;font-size:1.2rem}.design-interaction-card p{color:var(--product-muted);margin:0;font-size:.68rem;line-height:1.5}.design-interaction-card footer{color:var(--product-subtle);border-top:1px solid #ecece7;justify-content:space-between;margin-top:1rem;padding-top:.7rem;font-size:.58rem;display:flex}.design-interaction-card footer i{color:#fff;background:#59756a;border:2px solid #fff;border-radius:50%;place-items:center;width:21px;height:21px;margin-left:-4px;font-size:.45rem;font-style:normal;display:inline-grid}.node-handle{background:#fff;border:2px solid #6e8178;border-radius:50%;width:10px;height:10px;position:absolute;left:calc(50% - 5px)}.node-handle.top{top:-6px}.node-handle.bottom{bottom:-6px}.design-connector{align-items:center;display:flex}.design-connector span{background:#989f98;flex:1;height:1px}.pattern-notes{grid-template-columns:repeat(3,1fr);gap:.8rem;margin-top:1rem;display:grid}.pattern-notes div{border-left:2px solid var(--product-trigger);background:#fffdf8;padding:1rem}.pattern-notes b{font-size:.72rem}.pattern-notes p{color:var(--product-muted);margin:.4rem 0 0;font-size:.68rem;line-height:1.5}.feedback-grid{grid-template-columns:repeat(2,1fr);gap:.8rem;display:grid}.feedback{border:1px solid var(--product-line);background:#fff;border-radius:10px;grid-template-columns:32px 1fr;gap:.75rem;padding:1rem;display:grid}.feedback>span{background:var(--product-accent-soft);width:28px;height:28px;color:var(--product-accent);border-radius:50%;place-items:center;display:grid}.feedback.failure>span{color:var(--product-danger);background:#f8e7e5}.feedback.empty>span{color:#8a6226;background:#f8edd9}.feedback b{font-size:.75rem}.feedback p{color:var(--product-muted);margin:.25rem 0 0;font-size:.66rem}.feedback button{color:var(--product-accent);box-shadow:none;background:0 0;border:0;margin-top:.55rem;padding:0;font-size:.65rem}.loading-ring{animation:.8s linear infinite product-spin;border:2px solid #d8ddd7!important;border-top-color:var(--product-accent)!important;background:0 0!important;border-radius:50%!important;width:22px!important;height:22px!important}@keyframes product-spin{to{transform:rotate(360deg)}}@media (width<=1050px){.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library-toolbar{flex-wrap:wrap}.library-search{width:100%}.library-sort{margin-left:auto}.narrative-reference{grid-template-columns:1fr}.design-connector{flex-direction:column;height:70px}.design-connector span{width:1px;height:auto}}@media (width<=820px){.auth-layout{display:block}.auth-showcase{display:none}.auth-panel{padding:1.5rem}.product-app-header{gap:.6rem}.product-app-brand>b,.product-user>span:last-child{display:none}.product-app-header nav a{padding:0 .5rem}.design-layout{display:block}.design-navigation{border-right:0;border-bottom:1px solid var(--product-line);height:auto;padding:1rem 1.5rem;position:static}.design-navigation>div,.design-navigation>a{display:none}.design-navigation nav{display:flex;overflow-x:auto}.design-navigation nav a{flex:none}.design-main{padding:0 1.5rem 5rem}.principle-grid,.reference-split,.pattern-notes{grid-template-columns:1fr}.swatch-grid{grid-template-columns:repeat(2,1fr)}}@media (width<=520px){.product-app-header{padding:0 .5rem;flex-wrap:wrap;gap:.3rem;height:auto;min-height:58px;padding-block:.45rem}.product-app-header>nav{display:none}.product-app-header-auth>nav{display:flex}.product-app-header-auth .product-app-spacer{display:none}.product-auth-actions{flex:1 0 100%;gap:.25rem}.product-auth-signin,.product-account-create{white-space:nowrap;flex:1 1 0;min-width:0;min-height:34px;padding:.45rem .5rem;font-size:.68rem}}@media (width<=680px){.library-main{width:min(100% - 2rem,1240px);padding-top:2rem}.library-heading{align-items:start;display:grid}.library-heading-actions{width:100%}.library-heading-actions>button{flex:1}.library-filters{width:100%;overflow-x:auto}.library-filters button{flex:none}.library-sort{margin-left:0}.view-toggle{margin-left:auto}.library-grid{grid-template-columns:1fr}.library-grid.list .library-card{display:block}.library-grid.list .library-card>footer{border-top:1px solid var(--product-line);border-left:0}.library-card>footer{flex-direction:column;align-items:flex-start}.library-card>footer>div{width:100%}.library-card>footer a{flex:1}.design-hero dl,.form-reference,.feedback-grid{grid-template-columns:1fr}.design-hero dl div{border-right:0;border-bottom:1px solid var(--product-line)}.type-samples>div:not(.reference-card-heading){grid-template-columns:1fr;gap:.35rem}}@media (prefers-reduced-motion:reduce){.library-card,.loading-ring{transition:none;animation:none}}.settings-page{width:min(100% - 3rem,1080px);margin:0 auto;padding:3rem 0 5rem}.settings-heading{justify-content:space-between;align-items:start;gap:2rem;margin-bottom:2rem;display:flex}.settings-heading h1,.settings-page>h1{margin:.35rem 0}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem;display:grid}.settings-card{border:1px solid var(--product-line);background:var(--product-surface,#fff);border-radius:1rem;padding:1.5rem}.settings-card h2{margin-top:0}.settings-card .form-field{margin:1rem 0}.product-help{color:var(--product-muted);font-size:.9rem}.collaborator-form{grid-template-columns:minmax(0,1fr) 9rem auto;align-items:end;gap:.75rem;display:grid}.access-list,.admin-user-list{margin:1.5rem 0 0;padding:0}.access-list li,.admin-user-list>div{border-top:1px solid var(--product-line);justify-content:space-between;align-items:center;gap:1rem;padding:.85rem 0;list-style:none;display:flex}.access-list span,.admin-user-list span{gap:.2rem;display:grid}.access-list small,.admin-user-list small{color:var(--product-muted)}.admin-overview{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-bottom:1rem;display:grid}.admin-overview article{border:1px solid var(--product-line);background:var(--product-surface,#fff);border-radius:1rem;gap:.2rem;padding:1.25rem 1.4rem;display:grid}.admin-overview strong{color:var(--product-ink);font-family:var(--font-narrative);font-size:2rem;font-weight:500}.admin-overview span,.admin-management-heading p,.admin-rights-reference p{color:var(--product-muted);font-size:.88rem}.admin-rights-reference{grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin-bottom:2rem;padding:0;display:grid}.admin-rights-reference>div{padding:1.25rem 1.4rem}.admin-rights-reference>div+div{border-left:1px solid var(--product-line)}.admin-rights-reference p{margin:.65rem 0 0;line-height:1.55}.admin-user-management{margin-top:2rem}.admin-management-heading{justify-content:space-between;align-items:end;gap:1.5rem;display:flex}.admin-management-heading h2{font-family:var(--font-narrative);margin:0;font-size:1.65rem;font-weight:500}.admin-management-heading p{margin:.35rem 0 0}.admin-user-toolbar{gap:.65rem;display:flex}.admin-user-toolbar .library-search{width:min(19rem,42vw)}.admin-role-filter select{padding-right:2.2rem}.admin-notice{color:#28583c;background:#edf5ef;border:1px solid #bdd2c2;border-radius:.6rem;margin:1rem 0 0;padding:.75rem 1rem;font-size:.85rem}.admin-user-list{padding:0 1.5rem;overflow:hidden}.admin-user-list>div:first-child{border-top:0}.admin-user-list>div{grid-template-columns:38px minmax(0,1fr) minmax(10rem,13rem);min-height:76px;display:grid}.admin-user-avatar{background:var(--product-accent-soft);width:38px;height:38px;color:var(--product-accent);border-radius:50%;place-items:center;font-size:.7rem;font-weight:700;display:grid!important}.admin-user-identity,.admin-role-control{min-width:0}.admin-user-name{grid-auto-flow:column;justify-content:start;align-items:center;gap:.55rem!important;display:flex!important}.admin-user-name b{text-overflow:ellipsis;overflow:hidden}.admin-user-name .product-badge{padding:.18rem .45rem;display:inline-flex}.admin-protected-role{color:#8a6421!important}.admin-role-control{gap:var(--form-field-label-gap);display:grid}.admin-role-control>span{color:var(--product-muted);font-size:var(--type-size-compact);letter-spacing:.06em;text-transform:uppercase;font-weight:700}.admin-user-state{min-height:9rem;color:var(--product-muted);text-align:center;place-items:center;margin-top:1.5rem;display:grid}.admin-user-state .loading-ring{align-self:end}.admin-user-state .loading-ring+p{align-self:start;margin-top:0}@media (width<=760px){.settings-grid,.collaborator-form,.admin-overview,.admin-rights-reference{grid-template-columns:1fr}.admin-rights-reference>div+div{border-top:1px solid var(--product-line);border-left:0}.admin-management-heading,.admin-user-toolbar{flex-direction:column;align-items:stretch}.admin-user-toolbar .library-search{width:100%}.admin-user-list>div{grid-template-columns:38px minmax(0,1fr)}.admin-role-control{grid-column:2;width:100%}}
