:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#fafafc;--bg-stripe:#11182705;--bg-stripe-period:10px;--ink:#1f2937;--muted:#6b7280;--line:#d1d5db;--plot:#fef08a;--character:#bfdbfe;--theme:#bbf7d0;--column-min-width:180px;--board-surface:#f1f2f6;--column-empty-bg:#fff}*{box-sizing:border-box}html.modal-scroll-locked{overflow:hidden}body.modal-scroll-locked{width:100%;position:fixed;left:0;right:0;overflow:hidden}body{background-color:var(--bg);background-image:repeating-linear-gradient(90deg, transparent 0, transparent calc(var(--bg-stripe-period) - 1px), var(--bg-stripe) calc(var(--bg-stripe-period) - 1px), var(--bg-stripe) var(--bg-stripe-period));color:var(--ink);margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.app{--app-padding-inline:20px;flex-direction:column;min-height:100dvh;padding:20px;display:flex}.view.hidden{display:none}#editor-view:not(.hidden),#phase-view:not(.hidden),#group-view:not(.hidden){flex-shrink:0}#editor-view:not(.hidden){min-width:0;max-width:100%;overflow:visible}#editor-view:not(.hidden) .editor-board-scroller{margin-left:calc(-1 * var(--app-padding-inline));margin-right:calc(-1 * var(--app-padding-inline));width:calc(100% + 2 * var(--app-padding-inline));box-sizing:border-box;min-width:0;overflow:auto visible}#shared-view:not(.hidden) #shared-story-preview-host{margin-left:calc(-1 * var(--app-padding-inline));margin-right:calc(-1 * var(--app-padding-inline));width:calc(100% + 2 * var(--app-padding-inline));box-sizing:border-box}.hidden{display:none}.topbar{justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:16px;display:flex}.landing-topbar{text-align:center;justify-content:center}.landing-brand h1,.landing-brand .subtitle{text-align:center}.landing-brand h1{font-size:2rem;font-weight:750;line-height:1.2}.dashboard-topbar{grid-template-columns:1fr auto 1fr;align-items:center;display:grid}.dashboard-topbar-left{flex-wrap:wrap;justify-self:start;align-items:center;gap:8px;display:flex}.dashboard-topbar-center{justify-self:center}.dashboard-topbar-center h1{text-align:center}.dashboard-topbar-right{justify-self:end}#shared-view .dashboard-topbar-right,#shared-view #shared-story-actions-wrap{align-items:center;gap:8px;display:flex}#shared-view #shared-story-save-bookmark-btn,#shared-view #shared-story-open-json-btn{white-space:nowrap}@media (width>=901px){#editor-view .dashboard-topbar-center h1,#group-view .dashboard-topbar-center h1,#shared-view .dashboard-topbar-center h1,#editor-view .dashboard-topbar-center h1 .inline-story-title-host,#group-view .dashboard-topbar-center h1 .inline-story-title-host{align-items:baseline;gap:10px;display:inline-flex}#editor-view .dashboard-topbar-center h1 .inline-story-title-host .editor-title-text,#editor-view .dashboard-topbar-center h1 .inline-story-title-host .inline-story-title-input,#group-view .dashboard-topbar-center h1 .inline-story-title-host .group-title-text,#group-view .dashboard-topbar-center h1 .inline-story-title-host .inline-group-title-input,#shared-view .dashboard-topbar-center h1 .shared-title-text{order:1}#editor-view .dashboard-topbar-center h1 .inline-story-title-host .demo-label,#editor-view .dashboard-topbar-center h1 .inline-story-title-host .analysis-label,#group-view .dashboard-topbar-center h1 .inline-story-title-host .demo-label,#group-view .dashboard-topbar-center h1 .inline-story-title-host .analysis-label,#shared-view .dashboard-topbar-center h1 .shared-title-badge{order:2;margin-right:0}}@media (width<=900px){#shared-view .dashboard-topbar-center .subtitle{text-align:right;width:100%}}.editor-topbar{grid-template-columns:1fr auto 1fr;align-items:center;display:grid}.editor-topbar-left{justify-self:start;align-items:center;gap:8px;display:flex}.editor-topbar-center{justify-self:center}.editor-topbar-center h1{text-align:center;flex-wrap:wrap;justify-content:center;align-items:center;gap:.35em;max-width:100%;margin:0;display:inline-flex}.editor-topbar-right{justify-self:end}.editor-topbar-actions{align-items:center;gap:8px;display:flex}#editor-view>.editor-quick-help{margin-left:calc(-1 * var(--app-padding-inline));margin-right:calc(-1 * var(--app-padding-inline));margin-top:calc(-1 * var(--app-padding-inline));padding:12px max(var(--app-padding-inline), env(safe-area-inset-left,0px)) 14px max(var(--app-padding-inline), env(safe-area-inset-right,0px));padding-top:max(12px, env(safe-area-inset-top,0px));color:#f1f5f9;background:linear-gradient(100deg,#1e3a8a 0%,#2563eb 48%,#1d4ed8 100%);border:0;border-bottom:1px solid #0f172a59;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px 20px;margin-bottom:12px;font-size:.92rem;line-height:1.5;display:flex;box-shadow:0 4px 14px #1e3a8a47}#editor-view>.editor-quick-help.hidden{display:none}.editor-quick-help-text{text-shadow:0 1px #0f172a33;flex:280px;min-width:0;margin:0}.editor-quick-help-text strong{color:#fff;font-weight:750}.editor-quick-help-kbd{font:inherit;color:#fff;background:#ffffff2e;border:1px solid #ffffff73;border-radius:5px;padding:1px 7px;font-weight:750;display:inline-block;box-shadow:inset 0 1px #ffffff1f}.editor-quick-help-dismiss{cursor:pointer;font:inherit;color:#1e40af;background:#fff;border:0;border-radius:8px;flex-shrink:0;padding:8px 16px;font-size:.88rem;font-weight:650;box-shadow:0 1px 2px #0f172a1f}.editor-quick-help-dismiss:hover{background:#f8fafc}.editor-quick-help-dismiss:focus-visible{outline-offset:2px;outline:2px solid #fff}@media (width>=1100px){#editor-view>.editor-quick-help{padding-top:max(14px, env(safe-area-inset-top,0px));gap:14px 24px;padding-bottom:16px;font-size:1rem}.editor-quick-help-dismiss{padding:10px 20px;font-size:.92rem}}.board-actions-trigger{align-items:center;gap:6px;display:inline-flex}.back-arrow-button{min-width:44px;padding:6px 10px;font-size:1.25rem;line-height:1}h1{margin:0;font-size:1.3rem}.subtitle{color:var(--muted);margin:4px 0 0}.link-crimson,a,a:visited{color:#dc143c}a:hover{color:#8b0000}.toolbar{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.home-create,.empty-state,.home-import,.home-custom-structure,.home-create-group,.home-reset-panel{border:1px solid var(--line);background:#fff;border-radius:12px;margin-bottom:14px;padding:14px}.landing-hero{border:1px solid var(--line);background:linear-gradient(135deg,#dcfce7 0%,#ecfccb 50%,#fef9c3 100%);border-radius:14px;margin-bottom:16px;padding:22px}.landing-hero h2{margin:0 0 8px;font-size:1.2rem;font-weight:750;line-height:1.2}.landing-hero p{color:#374151;max-width:880px;margin:0 0 12px}.landing-hero-actions{flex-wrap:wrap;gap:8px;display:flex}.landing-primary-button{color:#14532d;cursor:pointer;background:#bbf7d0;border:1px solid #16a34a;border-radius:12px;padding:9px 18px;font-size:.96rem;transition:background-color .12s ease-out,border-color .12s ease-out,color .12s ease-out,box-shadow .12s ease-out,transform 80ms ease-out}.landing-primary-button:hover{background:#fff;border-color:#15803d;box-shadow:0 2px 6px #16a34a40}.landing-primary-button:active{transform:translateY(1px);box-shadow:0 1px 3px #16a34a40}.landing-primary-button:focus-visible{outline-offset:3px;outline:2px solid #16a34a}.landing-grid{grid-template-columns:repeat(2,minmax(260px,1fr));align-items:start;gap:14px;display:grid}.landing-stack{gap:14px;display:grid}.landing-card{border:1px solid var(--line);background:#fff;border-radius:12px;padding:16px}.landing-card h3{margin:0 0 8px;font-size:1rem}.landing-card p{color:#4b5563;margin:0}.landing-demos-card{min-height:466px}.demo-map{color:#374151;gap:8px;margin:0;padding-left:18px;display:grid}.landing-card.card-privacy{background:#fef08a}.landing-card.card-demo-map{background:#dff0ae}.landing-card.card-about-demos{background:#bbf7d0}.landing-card.card-ai-analysis{background:#ffcc80}.landing-card.card-portable{background:#d9f99d}.home-create h2{margin:0 0 10px;font-size:1rem}.help-card{border:1px solid var(--line);background:#fff;border-radius:12px;margin-bottom:14px;padding:14px}.help-card h2{margin:0 0 8px;font-size:1rem}.not-found-header{text-align:center;padding:20px 16px 8px}.not-found-header h1{margin:0;font-size:1.35rem;font-weight:700}.not-found-card .not-found-panel>p:last-of-type{margin-bottom:0}.not-found-actions{flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px;display:flex}.not-found-code{border:1px solid var(--line);background:#f3f4f6;border-radius:4px;padding:1px 6px;font-size:.9em}.help-card ul{gap:6px;margin:0;padding-left:18px;display:grid}.help-faq-item{border:1px solid var(--line);background:#fafafa;border-radius:10px;margin-top:10px;overflow:hidden}.help-faq-item summary{cursor:pointer;justify-content:space-between;align-items:center;padding:12px 14px;font-weight:600;list-style:none;display:flex}.help-faq-item summary::-webkit-details-marker{display:none}.help-faq-item summary:after{content:"▾";color:#374151;margin-left:8px;font-size:.95rem;transition:transform .14s}.help-faq-item[open] summary:after{transform:rotate(180deg)}.help-faq-content{color:#374151;padding:0 14px 14px}.help-faq-content p{margin:0 0 10px}.help-faq-content p:last-child{margin-bottom:0}.help-faq-content ul{gap:4px;margin:0 0 10px;padding-left:18px;display:grid}.create-board-form{grid-template-columns:minmax(220px,1fr) auto;gap:8px;display:grid}.home-create .ghost-button{margin-top:10px}.home-dev-reset{justify-content:flex-end;gap:8px;margin:0;display:flex}.create-board-form input{border:1px solid var(--line);font:inherit;border-radius:8px;grid-column:1/-1;padding:8px 10px}.create-board-form select{border:1px solid var(--line);font:inherit;background:#fff;border-radius:8px;padding:8px 10px}.create-board-form button,.ghost-button{border:1px solid var(--line);cursor:pointer;background:#f0f5f8;border-radius:8px;padding:8px 10px;font-size:.92rem}.ghost-button:hover:not(:disabled):not(.danger-menu-item),.action-button:hover:not(:disabled),.phase-add:hover:not(:disabled),.board-actions-trigger:hover:not(:disabled){background:#e5edf5}.app-nav{align-items:center;gap:8px;display:flex}.app-breadcrumb{flex:auto;min-width:0;max-width:min(36rem,52vw)}.app-breadcrumb-list{flex-wrap:wrap;align-items:center;gap:.2em .35em;margin:0;padding:0;font-size:.88rem;line-height:1.35;list-style:none;display:flex}.app-breadcrumb-sep{color:var(--muted);-webkit-user-select:none;user-select:none;font-weight:500}.app-breadcrumb-current{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:100%;font-weight:600;overflow:hidden}.app-breadcrumb .link-button{font-size:inherit}@media (width>=641px){.dashboard-topbar-left .back-arrow-button,.editor-topbar-left .back-arrow-button{display:none}}.boards-list{gap:10px;display:grid}.dashboard-section{margin-bottom:18px}.dashboard-section-title{color:#374151;margin:0 0 8px;font-size:.95rem;font-weight:700}.dashboard-structures-hint{color:#4b5563;margin:0 0 10px;font-size:.9rem}.dashboard-structures-list{border:1px solid var(--line);background:#fff;border-radius:12px;grid-template-columns:repeat(auto-fill,minmax(440px,1fr));gap:6px 16px;margin:0;padding:18px 16px;display:grid}.dashboard-structures-list li{margin:0;padding-left:14px;list-style:none;position:relative}.dashboard-structures-list li:before{content:"•";color:#4b5563;position:absolute;left:0}.dashboard-structure-badge-new{color:#166534;letter-spacing:.03em;vertical-align:middle;background:#dcfce7;border:1px solid #16a34a;border-radius:999px;margin-left:6px;padding:1px 6px;font-size:.7rem;font-weight:700;display:inline-block}.dashboard-structure-preview-btn{color:var(--ink);font:inherit;font-size:inherit;cursor:pointer;text-align:left;background:0 0;border:0;margin:0;padding:0;font-weight:700;text-decoration:none}.dashboard-structure-preview-btn:hover{color:#dc143c}.dashboard-structure-preview-btn:focus-visible{outline-offset:2px;border-radius:4px;outline:2px solid #93c5fd}.demo-label{color:#92400e;letter-spacing:.03em;text-transform:uppercase;vertical-align:middle;background:#fef3c7;border:1px solid #f59e0b;border-radius:999px;margin-right:6px;padding:1px 6px;font-size:.62rem;font-weight:400;display:inline-block}.analysis-label{color:#3730a3;letter-spacing:.03em;text-transform:uppercase;vertical-align:middle;background:#eef2ff;border:1px solid #6366f1;border-radius:999px;margin-right:6px;padding:1px 6px;font-size:.62rem;font-weight:400;display:inline-block}.home-list-controls{grid-column:1/-1;justify-content:flex-start;margin:10px 0 12px;display:flex}.dashboard-section-divider{border:0;border-top:1px solid color-mix(in srgb, var(--line) 70%, white 30%);opacity:.85;margin:0 0 16px}.link-button{color:#dc143c;font:inherit;cursor:pointer;text-underline-offset:2px;background:0 0;border:0;padding:0;font-size:.9rem;text-decoration:underline}.link-button:hover{color:#8b0000}.link-button:focus-visible{outline-offset:2px;border-radius:4px;outline:2px solid #93c5fd}#groups-list,#boards-list,#shared-bookmarks-list{grid-template-columns:repeat(auto-fill,minmax(440px,1fr));align-items:start}.group-board-stack{gap:14px;display:grid}.group-board-card{background:0 0;border:none;border-radius:0;padding:0}#group-view:not(.hidden) .group-board-stack{margin-left:calc(-1 * var(--app-padding-inline));margin-right:calc(-1 * var(--app-padding-inline));gap:2.5rem;padding-bottom:8px}.group-board-head{padding-left:max(var(--app-padding-inline), env(safe-area-inset-left,0px));padding-right:max(var(--app-padding-inline), env(safe-area-inset-right,0px));justify-content:space-between;align-items:start;gap:10px;margin-bottom:10px;display:flex}.group-board-head-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.group-board-head h2{flex-wrap:wrap;align-items:center;gap:.35em;max-width:100%;margin:0;font-size:1rem;display:inline-flex}.group-board-preview{pointer-events:none}#group-view .group-board-preview.board,#shared-view .group-board-preview.board{border:0;border-top:1px solid var(--line);border-left:1px solid var(--line);background:0 0;border-radius:0;gap:0;padding-bottom:0;overflow:hidden}#group-view .group-board-preview .column,#shared-view .group-board-preview .column{border:none;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff;border-radius:0;min-height:0;padding:16px 12px 18px}#group-view .group-board-preview .column.column-empty,#shared-view .group-board-preview .column.column-empty{background:var(--column-empty-bg)}#group-view .group-board-preview .phase-head,#shared-view .group-board-preview .phase-head{margin-bottom:12px}.group-board-preview .note.group-note-readonly{pointer-events:auto;cursor:default}.group-note-readonly .note-head{margin-bottom:4px}.group-note-text{white-space:pre-wrap;word-break:break-word}.shared-phase-comments{border-top:1px solid var(--line);margin-top:10px;padding-top:10px}.shared-phase-comments-title{text-transform:uppercase;letter-spacing:.02em;color:var(--muted);margin:0 0 8px;font-size:.78rem;font-weight:700}.shared-phase-comments-list{gap:8px;display:grid}.shared-phase-comment-item{border:1px solid var(--line);background:#fff;border-radius:8px;padding:8px 10px}.shared-phase-comment-text{white-space:pre-wrap;word-break:break-word;margin:0;font-size:.78rem;line-height:1.35}.reorder-list{gap:8px;margin-top:10px;display:grid}.reorder-item{border:1px solid var(--line);cursor:default;background:#fff;border-radius:8px;align-items:center;gap:8px;min-width:0;padding:8px 10px;transition:transform .14s,box-shadow .14s,border-color .14s;display:flex}.reorder-item-title{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.reorder-remove{color:#6b7280;flex-shrink:0;min-width:2rem;padding:2px 8px;line-height:1.2}.reorder-remove:hover{color:#b91c1c}.reorder-item:active{cursor:default}.reorder-item.is-dragging{border-color:#60a5fa;box-shadow:0 8px 20px #3b82f62e}.reorder-handle{color:#6b7280;cursor:grab;-webkit-user-select:none;user-select:none;flex-shrink:0;font-size:.95rem}.reorder-handle:active{cursor:grabbing}.group-reorder-series-name-row{flex-direction:column;gap:6px;margin-top:12px;display:flex}.group-reorder-series-name-label{color:#374151;font-size:.85rem;font-weight:600}.group-reorder-series-name-input{border:1px solid var(--line);width:100%;max-width:100%;font:inherit;background:#fff;border-radius:8px;padding:8px 10px}.inline-story-title-root,.inline-story-title-host{display:contents}.board-card-title-text,.editor-title-text,.group-board-title-text{cursor:text;text-underline-offset:2px;-webkit-text-decoration:underline dotted #0000;text-decoration:underline dotted #0000}.board-card-title-text:hover,.editor-title-text:hover,.group-board-title-text:hover{text-decoration-color:#9ca3af}.group-board-head .group-board-title-text{cursor:default;text-decoration:none}.group-board-head .group-board-title-text:hover{text-decoration:none}.inline-story-title-input{font:inherit;font-weight:700;line-height:inherit;border:1px solid var(--line);color:inherit;box-sizing:border-box;background:#fff;border-radius:6px;min-width:0;max-width:100%;margin:0;padding:2px 6px}.board-card strong .inline-story-title-input.board-card-title-input{width:auto;min-width:10ch;max-width:100%;font-size:inherit;flex:auto;display:inline-block}#group-title .inline-group-title-input,.editor-topbar-center h1 .inline-story-title-input.editor-title-input{border:1px solid var(--line);width:auto;min-width:12ch;max-width:min(100%,36rem);color:var(--ink);font:inherit;text-align:left;vertical-align:middle;box-sizing:border-box;background:#fff;border-radius:8px;padding:8px 12px;font-weight:600;line-height:1.25;display:inline-block}#group-title .inline-group-title-input:focus,#group-title .inline-group-title-input:focus-visible,.editor-topbar-center h1 .inline-story-title-input.editor-title-input:focus,.editor-topbar-center h1 .inline-story-title-input.editor-title-input:focus-visible{border-color:#2563eb;outline:none;box-shadow:0 0 0 3px #2563eb38}#structure-name{min-height:1.35em;margin:4px 0 0}#structure-name .structure-name-inline-edit-row{flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;max-width:100%;display:inline-flex}#structure-name .structure-name-editable{cursor:text;border-bottom:1px dashed #0000}#structure-name .structure-name-editable:hover{border-bottom-color:#cbd5e1}.structure-name-altered-suffix{color:#64748b;white-space:nowrap;font-size:.88em;font-weight:500}.group-board-head .subtitle .structure-name-altered-suffix,.board-meta-line .structure-name-altered-suffix{font-size:.92em}.editor-topbar-center #structure-name .inline-structure-name-input.structure-name-input{border:1px solid var(--line);width:auto;min-width:10ch;max-width:min(100%,28rem);color:var(--ink);font:inherit;text-align:center;box-sizing:border-box;background:#fff;border-radius:8px;margin:0;padding:4px 10px;font-size:.95rem;font-weight:500;line-height:1.35;display:inline-block}.editor-topbar-center #structure-name .inline-structure-name-input.structure-name-input:focus,.editor-topbar-center #structure-name .inline-structure-name-input.structure-name-input:focus-visible{border-color:#2563eb;outline:none;box-shadow:0 0 0 3px #2563eb38}.group-reorder-add-row{flex-direction:column;gap:6px;margin-top:14px;display:flex}.group-reorder-add-label{color:#374151;font-size:.85rem;font-weight:600}.group-reorder-add-select{border:1px solid var(--line);width:100%;max-width:100%;font:inherit;background:#fff;border-radius:8px;padding:8px 10px}.reorder-placeholder{background:#9ca3af1a;border:2px dashed #9ca3af;border-radius:8px;height:40px;transition:all .12s}.reorder-status{color:#065f46;opacity:0;min-height:1.2em;margin:8px 0 0;font-size:.9rem;transition:opacity .15s}.reorder-status.is-visible{opacity:1}.home-import h2{margin:0 0 6px;font-size:1rem}.import-actions{flex-wrap:wrap;align-items:center;gap:10px;margin-top:10px;display:flex}.paste-story-textarea{border:1px solid var(--line);width:100%;min-height:240px;font:inherit;resize:vertical;border-radius:10px;padding:10px;line-height:1.4}.help-inline-action{margin-top:4px}.ai-analysis-prompt-card .ai-analysis-prompt-form{gap:10px;margin-top:14px;display:grid}.ai-prompt-label{color:#111827;font-size:.82rem;font-weight:600}.ai-prompt-select,.ai-prompt-input{border:1px solid var(--line);width:100%;max-width:520px;font:inherit;border-radius:8px;padding:8px 10px}.ai-prompt-mode-fields{gap:10px;display:grid}.ai-prompt-mode-fields.hidden{display:none}.ai-prompt-synopsis{border:1px solid var(--line);width:100%;min-height:180px;font:inherit;resize:vertical;border-radius:8px;padding:8px 10px;line-height:1.45}.ai-prompt-hint{max-width:68ch;margin:0}.ai-prompt-output-wrap{margin-top:8px}.ai-prompt-output{border:1px solid var(--line);resize:vertical;background:#f9fafb;border-radius:10px;width:100%;min-height:280px;padding:12px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.8rem;line-height:1.45}.ai-prompt-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.ai-prompt-json-followup{border-top:1px solid var(--line);margin-top:28px;padding-top:22px}.ai-prompt-json-followup-title{color:#111827;margin:0 0 12px;font-size:1rem;font-weight:700}.ai-prompt-json-followup-steps{color:#374151;margin:0 0 14px;padding-left:1.35rem;font-size:.92rem;line-height:1.5}.ai-prompt-json-followup-steps li{margin-bottom:8px}.ai-prompt-json-followup-note{margin-bottom:0}.home-custom-structure h2{margin:0 0 6px;font-size:1rem}.collapsible-panel summary{cursor:pointer;justify-content:space-between;align-items:center;list-style:none;display:flex}.collapsible-panel summary::-webkit-details-marker{display:none}.collapsible-panel summary:after{content:"▾";color:#4b5563;font-size:1.25rem;font-weight:700;line-height:1;transition:transform .16s}.collapsible-panel:not([open]) summary{margin-bottom:0}.collapsible-panel[open] summary:after{transform:rotate(180deg)}.collapsible-panel summary h2{margin:0;font-size:1rem;font-weight:600}.collapsible-panel form,.collapsible-panel .subtitle,.collapsible-panel .ghost-button,.home-reset-panel .home-dev-reset .ghost-button{margin-top:10px}.home-create-group .create-group-form{gap:10px;display:grid}.create-group-name-label{color:#374151;font-size:.9rem;font-weight:600}.create-group-form input[type=text]{border:1px solid var(--line);font:inherit;border-radius:8px;width:100%;max-width:420px;padding:8px 10px}.create-group-boards-fieldset{border:1px solid var(--line);border-radius:10px;margin:0;padding:10px 12px}.create-group-boards-fieldset legend{color:#374151;padding:0 6px;font-size:.85rem;font-weight:600}.create-group-boards-list{gap:8px;max-height:240px;margin-top:6px;display:grid;overflow:auto}.create-group-board-row{cursor:pointer;align-items:flex-start;gap:10px;font-size:.92rem;line-height:1.35;display:flex}.create-group-board-row input{flex-shrink:0;margin-top:3px}.create-group-form .ghost-button[type=submit]{justify-self:end;width:auto}.add-board-to-group-list .group-picker-item{text-align:left;width:100%}#add-board-to-group-modal-overlay .add-board-to-group-intro{margin-bottom:14px}#add-board-to-group-modal-overlay .add-board-to-group-empty{color:var(--muted);margin-bottom:0}#add-board-to-group-modal-overlay .add-board-to-group-list:empty{min-height:0;margin:0}.remove-structures-list{gap:8px;max-height:min(50vh,320px);margin:10px 0 0;padding:0;list-style:none;display:grid;overflow:auto}.remove-structures-row{cursor:pointer;align-items:flex-start;gap:10px;font-size:.92rem;line-height:1.35;display:flex}.remove-structures-row input{flex-shrink:0;margin-top:3px}.remove-structures-empty{color:var(--muted);margin:10px 0 0;font-size:.92rem}.board-actions-modal .ghost-button:disabled,.modal .ghost-button:disabled{opacity:.45;cursor:not-allowed}#edit-story-structure-modal-overlay.modal-overlay,#dashboard-create-structure-modal-overlay.modal-overlay{padding:max(16px, env(safe-area-inset-top,0px)) 20px max(20px, env(safe-area-inset-bottom,0px));box-sizing:border-box;overflow-y:auto}#edit-story-structure-modal-overlay.modal-overlay:not(.hidden),#dashboard-create-structure-modal-overlay.modal-overlay:not(.hidden){flex-direction:column;justify-content:flex-start;align-items:center;display:flex}#edit-story-structure-modal-overlay .modal.modal--wide-create-structure,#dashboard-create-structure-modal-overlay .modal.modal--wide-create-structure{box-sizing:border-box;flex-direction:column;width:min(1100px,100vw - 32px);max-width:100%;min-height:0;max-height:min(100vh - 32px,100dvh - 32px);margin:auto 0;display:flex;overflow:hidden}#edit-story-structure-modal-overlay .modal.modal--wide-create-structure>h2,#dashboard-create-structure-modal-overlay .modal.modal--wide-create-structure>h2,#edit-story-structure-modal-overlay .modal.modal--wide-create-structure>.subtitle{flex-shrink:0}#edit-story-structure-modal-overlay .modal.modal--wide-create-structure .create-structure-form,#dashboard-create-structure-modal-overlay .modal.modal--wide-create-structure .create-structure-form{flex-direction:column;flex:auto;gap:10px;min-height:0;display:flex;overflow:hidden}#edit-story-structure-modal-overlay .modal.modal--wide-create-structure .structure-phases-list,#dashboard-create-structure-modal-overlay .modal.modal--wide-create-structure .structure-phases-list{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;flex:auto;min-height:0;padding-right:4px;overflow-y:auto}#edit-story-structure-modal-overlay .modal.modal--wide-create-structure .structure-form-actions,#dashboard-create-structure-modal-overlay .modal.modal--wide-create-structure .structure-form-actions,#edit-story-structure-modal-overlay .modal.modal--wide-create-structure>.modal-actions,#dashboard-create-structure-modal-overlay .modal.modal--wide-create-structure>.modal-actions{flex-shrink:0}.create-structure-form{gap:10px;display:grid}.create-structure-form .structure-meta-field-label{color:#111827;margin:6px 0 0;font-size:.82rem;font-weight:600}.create-structure-form .structure-form-meta-hint{color:var(--muted);margin:0;font-size:.76rem;line-height:1.4}.create-structure-form .structure-form-meta-hint kbd{border:1px solid var(--line);background:#f3f4f6;border-radius:4px;padding:1px 4px;font-size:.72em}.create-structure-form .structure-form-phase-hint{margin:0;line-height:1.45}.create-structure-form input,.create-structure-form textarea{border:1px solid var(--line);font:inherit;border-radius:8px;padding:8px 10px}.create-structure-form textarea{resize:vertical;min-height:52px}.structure-phases-list{gap:10px;display:grid}.structure-phase-row{border:1px solid var(--line);background:#fafafa;border-radius:10px;grid-template-rows:auto auto;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:8px 12px;padding:10px 12px;display:grid}.structure-phase-row .phase-row-index{grid-area:1/1}.structure-phase-row .structure-phase-name-input{grid-area:1/2;min-width:0}.structure-phase-row .structure-phase-remove-btn{grid-area:1/3}.structure-phase-row .structure-phase-description-input{box-sizing:border-box;grid-area:2/2/auto/-1;width:100%;min-height:40px;font-size:.9rem;line-height:1.35}.structure-phase-remove-btn{flex-shrink:0;margin-top:1px}.phase-row-index{color:var(--muted);text-align:right;min-width:22px}.structure-form-actions{justify-content:space-between;gap:8px;margin-top:8px;display:flex}.board-card{border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:10px;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px;padding:18px 16px;transition:background-color .12s ease-out,border-color .12s ease-out;display:grid}.board-card>div:first-child{min-width:0}.board-card strong{flex-wrap:wrap;align-items:baseline;gap:.35em;max-width:100%;margin-bottom:6px;line-height:1.35;display:inline-flex}.board-card:focus-visible{outline-offset:2px;outline:2px solid #2563eb}.board-card:hover{background:#fffaf4;border-color:#fed7aa}.board-card:hover strong{color:#dc143c}.board-card-shared .board-card-title-text{cursor:inherit;text-decoration:none}.board-card-shared .board-card-title-text:hover{text-decoration:none}.board-card-shared:hover strong{color:inherit}.board-card-user{border-color:#a4b3c8}.board-card-user:hover{border-color:#64748b}.board-card-ai-prompt-cta{border-style:dashed;border-color:color-mix(in srgb, var(--line) 80%, #f59e0b 20%);grid-template-columns:1fr}.board-card-ai-prompt-cta:hover{background:#fffbeb;border-color:#fcd34d}.board-card-ai-prompt-cta:hover .board-card-ai-prompt-cta-title{color:#dc143c}.board-card-ai-prompt-cta-title{font-size:1.02rem;font-weight:700}.board-actions{gap:6px;display:flex}.board-card button{border:1px solid var(--line);color:var(--ink);cursor:pointer;background:#f8f8f8;border-radius:8px;padding:6px 10px}.action-button{align-items:center;gap:6px;display:inline-flex}.action-icon{line-height:1}.board-actions-modal-list{gap:8px;display:grid}.board-actions-modal-list .ghost-button{text-align:left;width:100%}.dashboard-actions-modal-intro{margin:0 0 10px;font-size:.88rem}.dashboard-actions-modal-sections{gap:6px}.dashboard-actions-section{border:1px solid var(--line);background:#fff;border-radius:10px;overflow:hidden}.dashboard-actions-section summary.dashboard-actions-section-summary{cursor:pointer;letter-spacing:.02em;color:#374151;-webkit-user-select:none;user-select:none;background:#f3f4f6;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;font-size:.88rem;font-weight:600;list-style:none;display:flex}.dashboard-actions-section summary.dashboard-actions-section-summary:focus{outline:none}.dashboard-actions-section summary.dashboard-actions-section-summary:focus-visible{outline-offset:2px;border-radius:8px;outline:2px solid #93c5fd}.dashboard-actions-section summary.dashboard-actions-section-summary::-webkit-details-marker{display:none}.dashboard-actions-section summary.dashboard-actions-section-summary:after{content:"";border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);flex-shrink:0;width:.45em;height:.45em;margin-top:-2px;transition:transform .15s;transform:rotate(-45deg)}.dashboard-actions-section[open] summary.dashboard-actions-section-summary:after{margin-top:2px;transform:rotate(45deg)}.dashboard-actions-section-body{background:#f3f4f6;gap:8px;padding:12px 10px;display:grid}.dashboard-actions-section-body .ghost-button{background:#fff;border-color:#c8cdd4;font-size:.92rem;box-shadow:0 1px #0f172a0f}.dashboard-actions-section-body .ghost-button:hover:not(:disabled):not(.danger-menu-item){background:#f8fafc;border-color:#b8bec7}.dashboard-actions-section-body .ghost-button.danger-menu-item:hover:not(:disabled){background:#fee2e2;border-color:#fca5a5}.board-card .danger-button{color:#b91c1c;background:#f8f8f8;border-color:#ef4444}.board-meta{color:var(--muted);font-size:.82rem;line-height:1.3}.board-meta-line+.board-meta-line{margin-top:2px}.group-board-list{margin:4px 0 2px;padding:0;list-style:none}.group-board-list-item{font-weight:700;line-height:1.25}.group-board-list-item+.group-board-list-item{margin-top:2px}.toolbar select,.toolbar button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:8px 10px;font-size:.95rem}.toolbar button{color:#fff;cursor:pointer;background:#111827}.board{grid-template-columns:repeat(12, minmax(var(--column-min-width), 1fr));align-items:start;gap:12px;padding-bottom:12px;display:grid;overflow-x:auto}#editor-view:not(.hidden) #board.board{border:0;border-top:1px solid var(--line);border-left:1px solid var(--line);background:0 0;border-radius:0;gap:0;padding:0;overflow:visible}#editor-view:not(.hidden) #board.board .column{border:none;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff;border-radius:0;min-height:0;padding:16px 12px 18px}#editor-view:not(.hidden) #board.board .column.column-empty{background:var(--column-empty-bg)}#editor-view:not(.hidden) #board.board .phase-head{margin-bottom:12px}.board.wrap-columns{grid-template-columns:repeat(auto-fit, minmax(var(--column-min-width), 1fr));align-items:stretch;overflow-x:visible}.board.wrap-columns .column{height:100%;min-height:0}.options-button{align-items:center;gap:6px;display:inline-flex}.options-wrap{position:relative}.options-menu{border:1px solid var(--line);z-index:30;background:#fff;border-radius:10px;min-width:180px;padding:6px;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 8px 20px #1118271f}.options-menu.hidden{display:none}.column{border:1px solid var(--line);background:#fff;border-radius:12px;min-height:420px;padding:10px}.board .column.column-empty{background:var(--column-empty-bg)}.phase-title{letter-spacing:.03em;color:#111827;margin:0;font-size:.82rem}.phase-head{flex-direction:column;align-items:stretch;gap:6px;margin-bottom:10px;display:flex;position:relative}.phase-head-top{justify-content:space-between;align-items:flex-start;gap:8px;width:100%;display:flex}.phase-title-wrap{flex:auto;align-items:flex-start;gap:6px;min-width:0;display:inline-flex}.phase-title-toggle{font:inherit;letter-spacing:.03em;color:#111827;cursor:help;text-align:left;background:0 0;border:0;flex-direction:row;flex:auto;align-items:flex-start;gap:.35em;min-width:0;margin:0;padding:0;font-size:.82rem;font-weight:700;display:inline-flex}.phase-title-label{text-align:left;flex:auto;min-width:0;line-height:1.25}.phase-description-indicator{color:#6b7280;flex-shrink:0;margin-top:3px;font-size:.85em;font-weight:600;line-height:1}.phase-help-panel{letter-spacing:normal;color:#4b5563;white-space:pre-wrap;width:100%;margin:0;font-size:.78rem;font-weight:400;line-height:1.4}.phase-drag{color:#6b7280;cursor:grab;background:0 0;border:0;flex:0 0 16px;width:16px;padding:0;font-size:.95rem}.phase-drag:active{cursor:grabbing}.phase-add{border:1px solid var(--line);cursor:pointer;background:#f8f8f8;border-radius:8px;width:28px;height:28px;font-weight:700}.phase-head-actions{flex:none;align-items:center;gap:6px;display:inline-flex}.phase-expand{border:1px solid var(--line);cursor:pointer;background:#f8f8f8;border-radius:8px;width:28px;height:28px;font-size:.82rem}.phase-comments-summary{color:#4b5563;text-align:left;cursor:pointer;background:0 0;border:0;margin-top:8px;padding:0;font-size:.75rem}.phase-comments-summary:hover{color:#111827;text-decoration:underline}.column-menu{border:1px solid var(--line);z-index:40;background:#fff;border-radius:10px;width:210px;padding:6px;position:absolute;top:34px;right:0;box-shadow:0 8px 20px #1118271f}.column-menu.hidden,.submenu.hidden{display:none}.menu-item{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;width:100%;padding:7px 8px}.menu-item:hover{background:#f3f4f6}.danger-menu-item{color:#b91c1c}.danger-menu-item:hover{background:#fee2e2}.submenu{border-top:1px solid var(--line);gap:4px;margin-top:6px;padding-top:6px;display:grid}.submenu-title{color:var(--muted);padding:0 8px;font-size:.78rem}.notes{gap:8px;display:grid}.note-drop-placeholder{background:#9ca3af1f;border:2px dashed #9ca3af;border-radius:8px;height:56px}.note{cursor:pointer;background:var(--note-bg,#f3f4f6);border:1px solid #11182733;border-radius:4px;padding:8px;font-size:.85rem;line-height:1.3;box-shadow:0 1px 1px #1118271a}.note.is-note-editing{cursor:default}.note.is-dragging{opacity:.55}.phase-drop-placeholder{background:#9ca3af1f;border:2px dashed #9ca3af;border-radius:12px;min-height:420px}.note-head{justify-content:space-between;align-items:center;gap:6px;min-width:0;margin-bottom:6px;display:flex}.note-head-actions{align-items:center;gap:4px;display:inline-flex}.collapsed-preview{white-space:nowrap;text-overflow:ellipsis;color:#374151;flex:1;width:0;min-width:0;max-width:100%;font-size:.78rem;font-weight:600;overflow:hidden}.badge{background:#ffffffb3;border-radius:999px;padding:2px 8px;font-size:.72rem;font-weight:600}.delete{color:#4b5563;cursor:pointer;background:0 0;border:0;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;min-width:36px;min-height:36px;margin:-2px -4px -2px 0;padding:6px;display:inline-flex}.delete:hover{color:#b91c1c;background:#b91c1c14}.delete:focus-visible{outline-offset:1px;outline:2px solid #2563eb}.delete svg{display:block}.note.is-collapsed .note-head{margin-bottom:0}.note textarea,.note input,.note select{width:100%;font:inherit;background:#ffffffc7;border:1px solid #11182738;border-radius:6px;padding:6px}.note-readonly-text{white-space:pre-wrap;word-break:break-word;margin-top:4px;line-height:1.35}.note-adaptive-wrap{flex-direction:column;gap:0;min-width:0;margin-top:4px;display:flex;position:relative}.note-text-body--adaptive{box-sizing:border-box;width:100%;min-height:74px;max-height:min(32vh,260px);padding-bottom:10px;padding-right:12px;overflow:hidden auto}.note-readonly-text.note-text-body--adaptive{min-height:0;margin-top:0}.note textarea.note-text-body--adaptive{resize:none;min-height:0}.note .note-text-resize-handle{z-index:2;color:#6b7280;cursor:ns-resize;touch-action:none;width:22px;height:22px;box-shadow:none;background:0 0;border:0;border-radius:4px;justify-content:flex-end;align-items:flex-end;margin:0 -7px -7px;padding:0;display:inline-flex;position:absolute;bottom:0;right:0}.note .note-text-resize-handle svg{flex-shrink:0;display:block}.note .note-text-resize-handle:hover{color:#2563eb;background:#2563eb0f}.note .note-text-resize-handle:focus-visible{outline-offset:1px;color:#2563eb;outline:2px solid #2563eb}.note-readonly-character{background:#ffffffa6;border:1px solid #11182726;border-radius:8px;margin-top:4px;padding:6px 8px;font-weight:600}.note textarea{resize:vertical;min-height:74px}.character-fields{grid-template-columns:minmax(120px,38%) minmax(0,1fr);gap:6px;margin-bottom:6px;display:grid}.modal-overlay{z-index:50;overscroll-behavior:contain;background:#11182773;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal-overlay.hidden{display:none}#dashboard-actions-modal-overlay.modal-overlay,#board-actions-modal-overlay.modal-overlay{padding:max(20px, env(safe-area-inset-top,0px)) 20px max(24px, env(safe-area-inset-bottom,0px));box-sizing:border-box;overflow-y:auto}#dashboard-actions-modal-overlay.modal-overlay:not(.hidden),#board-actions-modal-overlay.modal-overlay:not(.hidden){flex-direction:column;justify-content:flex-start;align-items:center;display:flex}.app-alert-message{white-space:pre-wrap;word-break:break-word}#app-alert-modal-overlay{z-index:60}.app-alert-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.app-alert-custom-root{max-height:min(50vh,320px);margin:10px 0 4px;overflow:auto}.app-alert-custom-root:has(.app-dialog-custom-note-type){max-height:min(62vh,440px)}.app-alert-custom-root.hidden{display:none}.app-dialog-fieldset{border:1px solid var(--line);border-radius:10px;margin:0;padding:10px 12px}.app-dialog-legend{color:#374151;padding:0 6px;font-size:.85rem;font-weight:600}.app-dialog-radio-row{cursor:pointer;align-items:center;gap:10px;margin:8px 0;font-size:.95rem;display:flex}.app-dialog-radio-row input{margin:0}.app-dialog-text-input{border:1px solid var(--line);box-sizing:border-box;border-radius:8px;width:100%;margin-top:8px;padding:8px 10px;font-size:.95rem}.app-dialog-text-input:focus{outline-offset:1px;outline:2px solid #2563eb}.app-dialog-section-label{letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin:12px 0 6px;font-size:.78rem;font-weight:700}.app-dialog-custom-note-type{padding-inline:2px}.color-grid.color-grid--app-dialog-note-type{margin-top:0;padding:4px 2px 2px 4px}.color-grid.color-grid--app-dialog-note-type .color-swatch.selected{outline:none;box-shadow:inset 0 0 0 3px #111827e6}.modal{border:1px solid var(--line);background:#fff;border-radius:12px;width:min(560px,100%);padding:16px}.modal.modal--add-note{box-sizing:border-box;flex-direction:column;width:min(380px,100vw - 32px);max-height:min(100vh - 40px,100dvh - 40px);display:flex;overflow:hidden}.modal.modal--add-note>h2{flex-shrink:0;margin:0 0 10px;font-size:1.05rem;line-height:1.3}#add-note-modal-body-root{-webkit-overflow-scrolling:touch;flex:auto;min-height:0;margin:0 -2px;padding:0 2px;overflow-y:auto}.modal.modal--add-note .modal-actions{flex-shrink:0;margin-top:12px;padding-top:4px}.add-note-modal-body{flex-direction:column;gap:2px;display:flex}.add-note-modal-type-grid{grid-template-columns:repeat(auto-fill,minmax(5.25rem,1fr));gap:8px;margin-bottom:4px;display:grid}.add-note-modal-type-chip{border:1px solid color-mix(in srgb, currentColor 18%, transparent);letter-spacing:.01em;cursor:pointer;text-align:center;border-radius:10px;justify-content:center;align-items:center;min-height:44px;margin:0;padding:10px 8px;font-size:.8rem;font-weight:700;line-height:1.2;display:flex;box-shadow:inset 0 1px #ffffff59}.add-note-modal-type-chip:hover{filter:brightness(.96)}.add-note-modal-type-chip:active{filter:brightness(.92)}.add-note-modal-type-chip:focus-visible{outline-offset:2px;outline:2px solid #2563eb}.add-note-modal-archetype-grid{grid-template-columns:repeat(auto-fill,minmax(10.5rem,1fr));gap:6px;margin-bottom:8px;display:grid}.add-note-modal-archetype-chip{border:1px solid color-mix(in srgb, var(--character) 55%, #11182738);font:inherit;cursor:pointer;text-align:left;background-color:var(--character);color:#111827;border-radius:8px;flex-direction:row;justify-content:flex-start;align-items:center;gap:8px;min-height:36px;margin:0;padding:5px 8px 5px 6px;display:flex;box-shadow:inset 0 1px #fff6}.add-note-modal-archetype-chip:hover{filter:brightness(.97)}.add-note-modal-archetype-chip:active{filter:brightness(.93)}.add-note-modal-archetype-chip:focus-visible{outline-offset:2px;outline:2px solid #2563eb}.add-note-modal-archetype-icon{flex-shrink:0;justify-content:center;align-items:center;width:1.35em;font-size:1.05rem;line-height:1;display:inline-flex}.add-note-modal-archetype-icon--placeholder{visibility:hidden;pointer-events:none}.add-note-modal-archetype-label{word-break:break-word;-webkit-hyphens:auto;hyphens:auto;text-align:left;flex:1;min-width:0;font-size:.76rem;font-weight:700;line-height:1.25}.add-note-modal-divider{background:var(--line);flex-shrink:0;height:1px;margin:10px 0 8px}.add-note-modal-section-title{letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin:0 0 4px;font-size:.78rem;font-weight:700}#structure-preview-modal-overlay.modal-overlay:not(.hidden){padding:max(12px, env(safe-area-inset-top,0px)) 16px max(16px, env(safe-area-inset-bottom,0px));box-sizing:border-box;flex-direction:column;justify-content:flex-start;align-items:center;display:flex;overflow-y:auto}.modal.modal--structure-preview{box-sizing:border-box;flex-direction:column;width:min(560px,100%);min-width:0;max-width:100%;max-height:min(100vh - 32px,640px);margin:auto 0;padding:12px 14px 14px;display:flex;overflow:hidden}.modal.modal--structure-preview>h2{flex-shrink:0;margin:0 0 2px;font-size:1rem;line-height:1.25}.structure-preview-modal-meta{background:color-mix(in srgb, var(--line) 10%, transparent);border:1px solid color-mix(in srgb, var(--line) 45%, transparent);overflow-wrap:break-word;border-radius:8px;flex-shrink:0;min-width:0;margin:8px 0 0;padding:8px 10px}.structure-preview-modal-about{color:#374151;white-space:pre-wrap;overflow-wrap:break-word;margin:0 0 6px;font-size:.8rem;line-height:1.45}.structure-preview-modal-about:last-child{margin-bottom:0}.structure-preview-modal-credit{color:var(--muted);overflow-wrap:break-word;margin:0;font-size:.75rem;line-height:1.35}.structure-preview-modal-credit-label{color:#6b7280;margin-right:6px;font-weight:600}.structure-preview-phases{color:#374151;-webkit-overflow-scrolling:touch;flex:auto;min-width:0;min-height:0;margin:8px 0 0;padding:0 2px 0 1.1rem;font-size:.82rem;line-height:1.32;overflow-y:auto}.structure-preview-phases li{margin:0 0 8px}.structure-preview-phases li:last-child{margin-bottom:0}.structure-preview-phase-title{color:#111827;overflow-wrap:break-word;margin:0 0 1px;font-size:.82rem;font-weight:700;line-height:1.3;display:block}.structure-preview-phase-desc{color:#4b5563;white-space:pre-wrap;overflow-wrap:break-word;margin:0;font-size:.72rem;line-height:1.35}.structure-preview-phase-desc--empty{color:#9ca3af;font-style:italic}.modal.modal--structure-preview .modal-actions{border-top:1px solid color-mix(in srgb, var(--line) 55%, transparent);flex-shrink:0;margin-top:8px;padding-top:8px}.phase-order-conflict-modal{width:min(860px,100%)}.phase-order-columns{grid-template-columns:1fr 1fr;gap:14px;margin-top:10px;display:grid}.phase-order-columns section{border:1px solid var(--line);background:#fafafa;border-radius:10px;padding:10px}.phase-order-columns h3{margin:0 0 8px;font-size:.95rem}.phase-order-columns ol{gap:4px;max-height:280px;margin:0;padding-left:0;list-style:none;display:grid;overflow:auto}.phase-order-item{grid-template-columns:auto 1fr;align-items:baseline;gap:8px;display:grid}.phase-order-index{font-variant-numeric:tabular-nums;color:#6b7280;font-weight:600}.phase-order-item.is-first-mismatch{background:#fee2e2b3;border:1px solid #fca5a5;border-radius:6px;padding:3px 6px}.phase-order-conflict-hint{color:#374151;margin:10px 0 0;font-size:.92rem}.modal h2{margin:0 0 6px;font-size:1.05rem}.modal input[type=range]{width:100%;margin-top:12px}.modal-actions{justify-content:flex-end;align-items:center;gap:10px;margin-top:10px;display:flex}.modal-actions.modal-actions-stack{flex-direction:column;align-items:stretch}.modal-actions.modal-actions-stack .ghost-button{justify-content:center;width:100%}.factory-reset-confirm-checkbox{color:#374151;align-items:flex-start;gap:10px;margin-top:10px;font-size:.95rem;display:flex}.factory-reset-confirm-checkbox input[type=checkbox]{margin-top:3px}.color-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-top:12px;display:grid}.color-swatch{aspect-ratio:1;cursor:pointer;border:1px solid #11182740;border-radius:8px;width:100%}.color-swatch.selected{outline-offset:1px;outline:3px solid #111827}.modal-edit-note-types{max-width:min(520px,100vw - 32px)}.create-structure-form .structure-phase-remove-btn:disabled{opacity:.4;cursor:not-allowed}.phase-detail-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;height:calc(100vh - 140px);margin-top:12px;display:grid}.phase-detail-notes-pane,.phase-detail-comments-pane{border:1px solid var(--line);background:#fff;border-radius:12px;flex-direction:column;min-height:0;padding:12px;display:flex}.phase-detail-notes-pane h2,.phase-detail-comments-pane h2{margin:0 0 8px;font-size:.95rem}.phase-notes-list{flex:1;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));align-content:start;gap:10px;min-height:0;padding-right:2px;display:grid;overflow-y:auto}.phase-note-item{background:var(--note-bg,#f3f4f6);border:1px solid #11182733;border-radius:8px;padding:10px}.phase-note-item-head{color:#1f2937;margin-bottom:6px;font-size:.78rem;font-weight:700}.phase-note-item-text{white-space:pre-wrap;word-break:break-word;margin:0;font-size:.88rem;line-height:1.4}.phase-comments-list{flex:1;align-content:start;align-items:start;gap:12px;min-height:0;padding-right:2px;display:grid;overflow-y:auto}.phase-comment-item{border:1px solid var(--line);background:#f9fafb;border-radius:10px;padding:10px;display:block}.phase-comment-item:after{content:"";clear:both;display:table}.phase-comment-text{white-space:pre-wrap;word-break:break-word;margin:0;font-size:.9rem;line-height:1.45}.phase-comment-actions{float:right;align-items:flex-start;gap:8px;margin-bottom:6px;margin-left:8px;display:inline-flex}.icon-action-button{border:1px solid var(--line);color:#111827;cursor:pointer;background:#f8f8f8;border-radius:8px;justify-content:center;align-items:center;width:30px;height:30px;font-size:.9rem;line-height:1;display:inline-flex}.icon-action-button:hover:not(:disabled){background:#e5edf5}.phase-comment-item.is-editing .phase-comment-actions{float:none;justify-content:flex-end;width:100%;margin:8px 0 0}.phase-comment-form{border-top:1px solid var(--line);gap:8px;margin-top:8px;padding-top:12px;display:grid}.phase-comment-form textarea,.phase-comment-edit-input{border:1px solid var(--line);width:100%;min-height:110px;font:inherit;resize:vertical;border-radius:10px;padding:10px;line-height:1.45}.paste-structures-textarea{border:1px solid var(--line);width:100%;min-height:220px;font:inherit;resize:vertical;border-radius:10px;padding:10px;line-height:1.4}.phase-comment-form-meta{justify-content:space-between;align-items:center;gap:12px;display:flex}@media (width<=900px){.phase-detail-layout{grid-template-columns:1fr;height:auto}.phase-detail-notes-pane,.phase-detail-comments-pane{min-height:320px}}.edit-note-types-list{flex-direction:column;gap:16px;max-height:min(52vh,420px);margin-top:12px;padding-right:4px;display:flex;overflow-y:auto}.edit-note-type-row{border:1px solid var(--line);background:#fafafa;border-radius:10px;padding:10px 12px}.edit-note-type-row-title{color:var(--muted);letter-spacing:.02em;margin:0 0 8px;font-size:.75rem;font-weight:600}.edit-note-type-fields{gap:8px;display:grid}.edit-note-type-label-field label,.edit-note-type-hex-field label{color:#374151;margin-bottom:4px;font-size:.78rem;font-weight:600;display:block}.edit-note-type-label-input{border:1px solid var(--line);width:100%;font:inherit;border-radius:8px;padding:8px 10px}.edit-note-type-hex-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.edit-note-type-hex-input{border:1px solid var(--line);border-radius:8px;flex:1;min-width:120px;padding:8px 10px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.85rem}.edit-note-type-swatch-preview{border:1px solid #11182740;border-radius:8px;flex-shrink:0;width:36px;height:36px}.color-grid.color-grid--edit-row{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin-top:8px}.edit-note-type-row-delete{justify-content:flex-end;margin-top:10px;display:flex}.edit-archetype-label-field label{color:#374151;margin-bottom:4px;font-size:.78rem;font-weight:600;display:block}.edit-archetype-label-input{border:1px solid var(--line);width:100%;font:inherit;border-radius:8px;padding:8px 10px}.edit-archetype-row--builtin{background:#f8fafc}.edit-archetype-builtin-display{border:1px solid var(--line);background:#fff;border-radius:8px;align-items:center;gap:10px;padding:8px 10px;display:inline-flex}.edit-archetype-builtin-icon{background:#eef2ff;border-radius:7px;justify-content:center;align-items:center;width:24px;height:24px;font-size:.95rem;display:inline-flex}.edit-archetype-builtin-label{color:#1f2937;font-weight:600}.color-grid.color-grid--edit-row .color-swatch{aspect-ratio:1}.app-footer{color:var(--muted);text-align:center;margin-top:auto;padding-top:16px;font-size:.85rem}.app-footer>p{margin:0}.app-footer-links{margin:0 0 12px}.app-footer-links .link-button{font-size:inherit;font-weight:400}.app-footer-locale-choices{align-items:center;gap:.35rem;display:inline-flex}.app-footer-locale-choice:disabled,.app-footer-locale-choice:disabled:hover{color:var(--muted);cursor:default;text-decoration:none}.app-footer-locale-sep{-webkit-user-select:none;user-select:none}.app-footer>p+p{margin-top:6px}.app-footer a{color:var(--muted);text-decoration:underline}.app-footer a:hover{color:#4b5563}@media (width<=900px){.app-footer-contribute{display:none}html,body{overflow-x:clip}.app-history-back-btn{display:none!important}#shared-view .dashboard-topbar{grid-template:"shared-left shared-center""shared-right shared-center"/auto minmax(0,1fr);align-items:start;gap:8px 10px}#shared-view .dashboard-topbar-left{grid-area:shared-left;place-self:start}#shared-view .dashboard-topbar-right{grid-area:shared-right;place-self:start}#shared-view #go-home-from-shared,#shared-view #shared-story-options-btn{justify-content:center;width:40px;min-width:40px;height:32px;padding:0}#shared-view .dashboard-topbar-center{grid-area:shared-center;place-self:center end;min-width:0}#shared-view .dashboard-topbar-center h1,#shared-view .dashboard-topbar-center .subtitle{text-align:right}#shared-view .dashboard-topbar-center h1{flex-direction:column;align-items:flex-end;gap:4px;line-height:1.15;display:flex}#shared-view .dashboard-topbar-center h1 .shared-title-badge{align-self:flex-end;margin-right:0}#shared-view .dashboard-topbar-center h1 .shared-title-text{display:block}#shared-view .dashboard-topbar-center .subtitle{margin-top:4px}#shared-view #shared-story-actions-wrap .options-menu,#shared-view #shared-story-options-wrap .options-menu{left:0;right:auto}#shared-view #shared-story-options-wrap{display:none!important}#home-view .dashboard-topbar,#ai-analysis-prompt-view .dashboard-topbar,#editor-view .editor-topbar,#group-view .editor-topbar{grid-template-rows:auto auto;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:8px 10px}#home-view .dashboard-topbar{grid-template-areas:"home-left home-center""home-right home-center"}#ai-analysis-prompt-view .dashboard-topbar{grid-template-areas:"ai-left ai-center""ai-right ai-center"}#editor-view .editor-topbar{grid-template-areas:"editor-left editor-center""editor-right editor-center"}#group-view .editor-topbar{grid-template-areas:"group-left group-center""group-right group-center"}#home-view .dashboard-topbar-left{grid-area:home-left;justify-self:start}#home-view .dashboard-topbar-right{grid-area:home-right;justify-self:start}#home-view .dashboard-topbar-center{grid-area:home-center;justify-self:end;min-width:0}#ai-analysis-prompt-view .dashboard-topbar-left{grid-area:ai-left;justify-self:start}#ai-analysis-prompt-view .dashboard-topbar-right{grid-area:ai-right;justify-self:start}#ai-analysis-prompt-view .dashboard-topbar-center{grid-area:ai-center;justify-self:end;min-width:0}#editor-view .editor-topbar-left{grid-area:editor-left;justify-self:start}#editor-view .editor-topbar-right{grid-area:editor-right;justify-self:start}#editor-view .editor-topbar-center{grid-area:editor-center;justify-self:end;min-width:0}#group-view .editor-topbar-left{grid-area:group-left;justify-self:start}#group-view .editor-topbar-right{grid-area:group-right;justify-self:start}#group-view .editor-topbar-center{grid-area:group-center;justify-self:end;min-width:0}#home-view .dashboard-topbar-center h1,#ai-analysis-prompt-view .dashboard-topbar-center h1,#editor-view .editor-topbar-center h1,#group-view .editor-topbar-center h1,#home-view .dashboard-topbar-center .subtitle,#ai-analysis-prompt-view .dashboard-topbar-center .subtitle,#editor-view .editor-topbar-center .subtitle,#group-view .editor-topbar-center .subtitle{text-align:right}#home-view .back-arrow-button,#home-view #dashboard-actions-btn,#ai-analysis-prompt-view .back-arrow-button,#editor-view .back-arrow-button,#editor-view #editor-board-actions-btn,#group-view .back-arrow-button,#group-view #group-view-actions-btn{justify-content:center;width:40px;min-width:40px;height:32px;padding:0}.landing-grid{grid-template-columns:1fr}.landing-demos-card{min-height:0}}@media (width<=640px){.app{--app-padding-inline:14px;padding:14px}.landing-hero{padding:16px}.landing-hero h2{font-size:1.35rem}.landing-brand h1{font-size:1.6rem}.landing-grid,.landing-stack{gap:10px}.landing-card{min-height:0;padding:13px}.demo-map{gap:6px;padding-left:16px}.board-card{grid-template-columns:minmax(0,1fr) auto;gap:10px}#groups-list,#boards-list,#shared-bookmarks-list{grid-template-columns:1fr}.board-actions{justify-content:flex-end}.action-label{display:none}.action-button{justify-content:center;min-width:40px}.create-board-form{grid-template-columns:1fr}.structure-form-actions{flex-direction:column}.app-breadcrumb{display:none}.editor-topbar{grid-template-columns:auto 1fr auto;align-items:start}.editor-topbar-center{padding-top:2px}#group-view .editor-topbar-center,#phase-view .editor-topbar-center{justify-self:end}#editor-view .editor-topbar-center{text-align:right;justify-self:end}.editor-topbar-center h1{font-size:1.1rem}#group-view .editor-topbar-center h1,#phase-view .editor-topbar-center h1{text-align:right}#editor-view .editor-topbar-center h1{text-align:right;justify-content:flex-end}.editor-topbar-center .subtitle{margin-top:2px;font-size:.88rem}#group-view .editor-topbar-center .subtitle,#phase-view .editor-topbar-center .subtitle,#editor-view .editor-topbar-center .subtitle,#editor-view .editor-topbar-center h1 .inline-story-title-input.editor-title-input{text-align:right}.options-menu .menu-item-desktop-only,.options-button .options-button-label,#editor-view .options-wrap-desktop-only,.board-actions-trigger-label{display:none}.dashboard-topbar-center{justify-self:end}.dashboard-topbar-center h1{text-align:right}#edit-story-structure-modal-overlay.modal-overlay,#dashboard-create-structure-modal-overlay.modal-overlay{padding:0}#edit-story-structure-modal-overlay.modal-overlay:not(.hidden),#dashboard-create-structure-modal-overlay.modal-overlay:not(.hidden){align-items:stretch}#edit-story-structure-modal-overlay .modal.modal--wide-create-structure,#dashboard-create-structure-modal-overlay .modal.modal--wide-create-structure{width:100%;max-width:none;min-height:auto;max-height:none;padding:max(16px, env(safe-area-inset-top,0px)) max(16px, env(safe-area-inset-right,0px)) max(16px, env(safe-area-inset-bottom,0px)) max(16px, env(safe-area-inset-left,0px));border-left:none;border-right:none;border-radius:0;flex-shrink:0;margin:0;overflow:visible}#edit-story-structure-modal-overlay .modal.modal--wide-create-structure .create-structure-form,#dashboard-create-structure-modal-overlay .modal.modal--wide-create-structure .create-structure-form{flex:none;min-height:0;overflow:visible}#edit-story-structure-modal-overlay .modal.modal--wide-create-structure .structure-phases-list,#dashboard-create-structure-modal-overlay .modal.modal--wide-create-structure .structure-phases-list{overscroll-behavior:auto;flex:none;min-height:0;padding-right:0;overflow:visible}}
