.rich-text-area{display:flex;flex-direction:column;gap:var(--space-1);width:100%}.rich-text-area__body{position:relative}.rich-text-area__editor .ProseMirror{width:100%;padding:14px var(--space-4);border:1px solid var(--border-subtle);border-radius:var(--radius-input,8px);background:var(--surface-primary);color:var(--text-primary);font-size:var(--text-base);font-family:inherit;line-height:1.5;min-height:var(--rta-min-height,88px);max-height:400px;overflow-y:auto;outline:none;box-sizing:border-box;word-wrap:break-word;white-space:pre-wrap;transition:border-color var(--duration-fast,.1s) var(--ease-default)}.rich-text-area__editor .ProseMirror:hover:not(.ProseMirror-focused){border-color:var(--border-default)}.rich-text-area__editor .ProseMirror-focused{border-width:2px;border-color:rgba(var(--accent-primary-rgb),.6);padding:13px calc(var(--space-4) - 1px)}.rich-text-area__editor .ProseMirror p{margin:0}.rich-text-area__editor .ProseMirror h1,.rich-text-area__editor .ProseMirror h2,.rich-text-area__editor .ProseMirror h3{margin:.4em 0 .15em;color:var(--text-title);font-weight:600;line-height:1.3}.rich-text-area__editor .ProseMirror h1{font-size:1.2em}.rich-text-area__editor .ProseMirror h2{font-size:1.1em}.rich-text-area__editor .ProseMirror h3{font-size:1em}.rich-text-area__editor .ProseMirror :is(h1,h2,h3):first-child{margin-top:0}.rich-text-area__editor .ProseMirror p.is-editor-empty:first-child:before{content:attr(data-placeholder);color:var(--text-muted);pointer-events:none;position:absolute}.rich-text-area__editor .ProseMirror strong{font-weight:600;color:var(--text-title)}.rich-text-area__editor .ProseMirror em{font-style:italic}.rich-text-area__editor .ProseMirror code{font-family:var(--font-mono,"SF Mono",Monaco,Consolas,monospace);font-size:.875em;background:var(--code-inline-bg);border:1px solid var(--code-inline-border);border-radius:var(--radius-sm);padding:.1em .35em;color:var(--text-proper-noun);box-shadow:0 0 8px var(--code-inline-glow)}.rich-text-area--compact .rich-text-area__editor .ProseMirror{padding:8px var(--space-3);font-size:var(--text-base);min-height:var(--rta-min-height,64px)}.rich-text-area--compact .rich-text-area__editor .ProseMirror-focused{padding:7px calc(var(--space-3) - 1px)}.rich-text-area__counter{position:absolute;bottom:8px;right:10px;pointer-events:none}.rich-text-area__counter,.rich-text-area__hint{font-size:var(--text-2xs);color:var(--text-tertiary)}.rich-text-area__hint{display:flex;gap:6px;opacity:.6}.rich-text-area__hint kbd{font-family:var(--font-mono,monospace);font-size:var(--text-3xs);padding:1px 4px;border-radius:3px;background:var(--surface-tertiary);border:1px solid var(--border-subtle)}:root.theme-light .rich-text-area__editor .ProseMirror{background:var(--surface-secondary)}.strategy-panel{display:flex;flex-direction:column;height:100%;width:100%;padding:0;box-sizing:border-box}.strategy-panel-inner{background:var(--surface-primary);overflow:hidden}.strategy-panel-inner,.strategy-panel-scroll{position:relative;display:flex;flex-direction:column;flex:1;min-height:0}.strategy-panel-scroll{overflow-y:auto;overflow-x:hidden;mask-image:linear-gradient(180deg,#000 calc(100% - 48px),transparent);-webkit-mask-image:linear-gradient(180deg,#000 calc(100% - 48px),transparent)}.strategy-panel-column{display:flex;flex-direction:column;gap:20px;width:min(768px,calc(100% - 32px));margin:0 auto;padding-bottom:24px}.strategy-panel .section-header{font-size:1rem;font-weight:550;letter-spacing:.01em;color:var(--text-primary);margin-bottom:8px}.strategy-panel .section-header--with-actions{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3)}.strategy-panel .section-header--with-actions .strategy-actions-row{margin:0}.strategy-presets{display:flex;flex-direction:column;gap:8px;padding:72px 0 0}.strategy-mode-pills{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.strategy-mode-pill{display:inline-flex;align-items:center;gap:var(--space-1);padding:6px 14px;border-radius:var(--radius-button);border:1px solid transparent;background:var(--surface-inset);color:var(--text-secondary);font-family:var(--font-sans);font-size:var(--text-xs);font-weight:var(--font-semibold,600);cursor:pointer;transition:background var(--duration-fast) var(--ease-default),color var(--duration-fast) var(--ease-default),border-color var(--duration-fast) var(--ease-default);position:relative;white-space:nowrap}.strategy-mode-pill:hover{color:var(--text-primary)}.strategy-mode-pill.selected{background:var(--surface-tertiary);color:var(--text-primary);border-color:transparent;box-shadow:var(--shadow-segment-active)}.strategy-mode-pill.editing{border-width:2px;border-color:rgba(var(--accent-primary-rgb),.6);padding:5px 13px}.strategy-mode-pill--ghost{border:1px dashed var(--border-subtle);background:transparent;color:var(--text-tertiary);opacity:.8}.strategy-mode-pill--ghost:hover{opacity:1;color:var(--text-secondary);border-color:var(--border-default);background:var(--surface-hover)}.strategy-mode-pill--ghost:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px;opacity:1}.strategy-mode-pill:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}.strategy-mode-pill__edit{display:flex;align-items:center;justify-content:center;padding:0;border:none;background:transparent;color:currentColor;opacity:0;cursor:pointer;transition:opacity var(--duration-fast) var(--ease-default)}.strategy-mode-pill.selected .strategy-mode-pill__edit,.strategy-mode-pill:hover .strategy-mode-pill__edit{opacity:.6}.strategy-mode-pill__edit:hover{opacity:1}.strategy-preset-tile{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;padding:10px 12px;border:none;border-radius:var(--radius-button);background:transparent;cursor:pointer;transition:background var(--duration-fast,.1s) var(--ease-default),color var(--duration-fast,.1s) var(--ease-default),transform var(--duration-fast,.1s) var(--ease-default);position:relative;line-height:1.3;min-height:56px}.strategy-preset-tile:hover{background:var(--surface-hover)}.strategy-preset-tile:active:not(.selected){transform:scale(.98)}.strategy-preset-tile.selected{background:var(--selected-card-bg)}.strategy-preset-tile-label{font-size:var(--text-base);font-weight:var(--font-medium,500);color:var(--text-primary);margin-bottom:1px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}.strategy-preset-tile.selected .strategy-preset-tile-label{color:var(--selected-card-label)}.strategy-preset-tile-desc{font-size:var(--text-xs);font-weight:400;color:var(--text-tertiary);line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.strategy-preset-tile.selected .strategy-preset-tile-desc{color:var(--selected-card-label);opacity:.8}.strategy-preset-tile-edit{position:absolute;top:6px;right:6px;display:flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:none;border-radius:var(--radius-button);background:var(--surface-secondary);color:var(--text-tertiary);opacity:0;transition:opacity var(--duration-fast,.1s) var(--ease-default),background var(--duration-fast,.1s) var(--ease-default);cursor:pointer;z-index:1}.strategy-preset-tile:hover .strategy-preset-tile-edit{opacity:1}.strategy-preset-tile-edit:hover{background:var(--accent-subtle);color:var(--accent-primary)}.strategy-preset-tile:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}.strategy-preset-tile.editing{outline:2px solid var(--accent-primary);outline-offset:-2px}.strategy-preview-section{position:relative;cursor:pointer;border-radius:var(--radius-default);background:transparent;animation:strategy-edit-reveal .2s var(--ease-default)}.strategy-preview-content{max-height:160px;overflow:hidden;padding:12px 14px;mask-image:linear-gradient(180deg,#000 50%,transparent);-webkit-mask-image:linear-gradient(180deg,#000 50%,transparent)}.strategy-preview-text{font-family:var(--font-sans);font-size:var(--text-xs);line-height:1.6;color:var(--text-secondary);word-break:break-word}.strategy-preview-text p{margin:0 0 .5em}.strategy-preview-text p:last-child{margin-bottom:0}span.strategy-preview-text{white-space:pre-wrap}.strategy-preview-cta{display:flex;padding:4px 14px 0;background:none;border:none;font-size:var(--overflow-cta-font);font-weight:var(--overflow-cta-weight);color:var(--overflow-cta-color);letter-spacing:.02em;cursor:pointer;transition:color .15s ease}.strategy-preview-section:hover .strategy-preview-cta{color:var(--text-primary)}.strategy-preview-section:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}.strategy-edit-section{display:flex;flex-direction:column;gap:8px;animation:strategy-edit-reveal .2s var(--ease-default)}@keyframes strategy-edit-reveal{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.strategy-edit-actions{display:flex;align-items:center;justify-content:space-between;margin-top:4px}.strategy-edit-done-btn{border:none;border-radius:var(--radius-button);background:var(--accent-subtle);color:var(--accent-primary);font-size:var(--text-xs);font-weight:var(--font-medium,500);padding:6px 14px;cursor:pointer;transition:filter var(--duration-fast,.1s) var(--ease-default)}.strategy-edit-done-btn:hover{filter:brightness(1.1)}.strategy-edit-card{display:flex;flex-direction:column;gap:8px;padding-bottom:8px}.strategy-edit-prompt-textarea{min-height:140px;font-size:var(--text-xs);line-height:1.6}.suggestions-loading-icon{animation:suggestions-pulse 1.5s ease-in-out infinite}@keyframes suggestions-pulse{0%,to{opacity:.6;transform:scale(1)}50%{opacity:1;transform:scale(1.1)}}.strategy-edit-delete-btn{display:flex;align-items:center;gap:6px;padding:6px 14px;border:none;border-radius:var(--radius-button);background:transparent;color:var(--text-tertiary);font-size:var(--text-xs);font-weight:var(--font-medium,500);cursor:pointer;transition:color var(--duration-fast,.1s) var(--ease-default),background var(--duration-fast,.1s) var(--ease-default)}.strategy-edit-delete-btn:hover{color:var(--status-error);background:var(--status-error-bg)}.strategy-mode-actions{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-1) 0;flex-wrap:wrap}.strategy-mode-action-chip{display:inline-flex;align-items:center;gap:var(--space-1);padding:6px 14px;border-radius:var(--radius-button);border:1px dashed var(--border-subtle);background:transparent;color:var(--text-tertiary);font-family:var(--font-sans);font-size:var(--text-xs);font-weight:var(--font-medium,500);cursor:pointer;transition:color var(--duration-fast) var(--ease-default),background var(--duration-fast) var(--ease-default);white-space:nowrap}.strategy-mode-action-chip:hover{color:var(--text-primary);background:var(--surface-hover)}.strategy-mode-action-chip:active{transform:scale(.97)}.strategy-mode-action-chip:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}.strategy-suggestion-chip{border-style:solid;border-color:transparent;background:var(--accent-subtle);color:var(--accent-primary)}.strategy-suggestion-chip:hover{background:var(--accent-medium);color:var(--accent-hover)}.strategy-suggestion-chip--loading{pointer-events:none;gap:var(--space-2);color:var(--text-muted)}.strategy-chip-shimmer{width:64px;height:8px;border-radius:var(--radius-full);background:linear-gradient(90deg,var(--surface-elevated) 0,rgba(var(--accent-primary-rgb),.12) 50%,var(--surface-elevated) 100%);background-size:200% 100%;animation:strategy-shimmer 1.8s var(--ease-in-out) infinite}@keyframes strategy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.strategy-ai-assist-btn{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3);border:none;border-radius:var(--radius-button);background:var(--surface-tertiary);color:var(--text-tertiary);font-family:var(--font-sans);font-size:var(--text-sm);font-weight:var(--font-medium);cursor:pointer;transition:color var(--duration-fast,.1s) var(--ease-default),background var(--duration-fast,.1s) var(--ease-default),transform var(--duration-fast,.1s) var(--ease-default);align-self:flex-start}.strategy-ai-assist-btn:hover{color:var(--accent-primary);background:var(--accent-subtle)}.strategy-ai-assist-btn:active{transform:scale(.98)}.strategy-ai-assist-btn:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}.strategy-ai-suggestion-card{display:flex;flex-direction:column;gap:var(--space-2);padding:var(--space-3) var(--space-4);border-radius:var(--radius-default);background:var(--surface-tertiary);animation:strategy-edit-reveal var(--duration-normal) var(--ease-default)}.strategy-ai-suggestion-header{display:flex;align-items:center;justify-content:space-between}.strategy-ai-suggestion-label{display:flex;align-items:center;gap:var(--space-1);font-family:var(--font-sans);font-size:var(--text-xs);font-weight:var(--font-medium);color:var(--accent-primary);text-transform:uppercase;letter-spacing:var(--tracking-wider);line-height:var(--leading-snug)}.strategy-ai-suggestion-dismiss{display:flex;align-items:center;justify-content:center;width:var(--space-5);height:var(--space-5);padding:0;border:none;border-radius:var(--radius-default);background:transparent;color:var(--text-tertiary);font-family:var(--font-sans);font-size:var(--text-base);cursor:pointer;transition:color var(--duration-fast) var(--ease-default),background var(--duration-fast) var(--ease-default)}.strategy-ai-suggestion-dismiss:hover{background:var(--surface-hover);color:var(--text-secondary)}.strategy-ai-suggestion-body{display:flex;flex-direction:column;gap:var(--space-1)}.strategy-ai-suggestion-title{font-family:var(--font-sans);font-size:var(--text-base);font-weight:var(--font-medium);color:var(--text-primary);line-height:var(--leading-tight)}.strategy-ai-suggestion-desc{font-family:var(--font-sans);font-size:var(--text-sm);font-weight:var(--font-normal);color:var(--text-secondary);line-height:var(--leading-snug)}.strategy-ai-suggestion-excerpt{font-size:var(--text-xs);color:var(--text-tertiary);line-height:var(--leading-relaxed);display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}.strategy-ai-suggestion-actions{display:flex;align-items:center;justify-content:flex-end;padding-top:var(--space-1)}.strategy-ai-suggestion-use{padding:var(--space-2) var(--space-4);border:none;border-radius:var(--radius-default);background:var(--surface-elevated);color:var(--text-secondary);font-family:var(--font-sans);font-size:var(--text-sm);font-weight:var(--font-medium);cursor:pointer;transition:background var(--duration-fast) var(--ease-default),color var(--duration-fast) var(--ease-default);white-space:nowrap}.strategy-ai-suggestion-use:hover{background:var(--accent-subtle);color:var(--accent-primary)}.strategy-ai-suggestion-use:active{transform:scale(.98)}.strategy-panes{gap:0}.strategy-pane,.strategy-panes{display:flex;flex-direction:column}.strategy-pane{gap:8px;min-width:0;padding-top:24px;margin-top:8px}.strategy-cards-group{display:flex;flex-direction:column;gap:0}.strategy-control-card{padding:20px 0}.strategy-control-card:first-child{padding-top:0}.strategy-control-card:last-child{padding-bottom:0}.strategy-control-card+.strategy-control-card{border-top:1px solid var(--border-subtle)}.strategy-control-header{display:flex;align-items:center;gap:8px;margin-bottom:6px}.strategy-control-icon,.strategy-control-label{color:var(--text-tertiary)}.strategy-control-label{font-size:var(--text-xs);font-weight:500}.strategy-subsection-label{font-size:var(--text-2xs);font-weight:500;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;margin-top:8px;margin-bottom:4px}.strategy-control-badge{font-size:var(--text-2xs);font-weight:500;color:var(--text-tertiary)}.strategy-control-card .tile-select{margin-top:10px;padding-top:10px}.strategy-tools-panel{display:flex;flex-direction:column;gap:2px}.strategy-tool-section-header{font-size:var(--text-2xs);font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-tertiary);padding:var(--space-2) var(--space-2) 0;margin-top:var(--space-1)}.strategy-tool-section-hint{font-size:var(--text-2xs);color:var(--text-tertiary);padding:2px var(--space-2) 0;opacity:.7}.strategy-section-hint{font-size:var(--text-xs);color:var(--text-tertiary);margin-top:-4px;margin-bottom:4px}.strategy-tool-row{display:flex;align-items:center;justify-content:space-between;padding:var(--space-2);border-radius:var(--radius-default);cursor:pointer;transition:background var(--duration-fast) var(--ease-default),opacity var(--duration-fast) var(--ease-default)}.strategy-tool-row:hover{background:var(--surface-hover)}.strategy-tool-row:not(.enabled){opacity:.5}.strategy-tool-row:not(.enabled):hover{opacity:.8}.strategy-tool-row__text{display:flex;flex-direction:column;gap:1px;min-width:0}.strategy-tool-row__label{font-size:var(--text-xs);font-weight:var(--font-semibold,600);color:var(--text-primary);letter-spacing:-.01em}.strategy-tool-row__desc{font-size:var(--text-xs);font-weight:var(--font-medium,500);color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.strategy-tool-row--sub .strategy-tool-row__desc{white-space:normal;overflow:visible;font-size:var(--text-2xs);color:var(--text-tertiary);line-height:1.35}.strategy-subtoggle-header{font-size:var(--text-2xs);color:var(--text-secondary);line-height:1.4;padding:4px 0 8px}.strategy-actions-row{display:flex;gap:4px;padding-top:4px}.strategy-action-btn{padding:6px 0;border:none;background:none;color:var(--text-tertiary);font-size:var(--text-xs,12px);font-weight:400;cursor:pointer;transition:color var(--duration-fast,.1s) var(--ease-default)}.strategy-action-btn:hover{color:var(--text-primary)}.strategy-action-btn:active{transform:scale(.98)}.strategy-actions-row .strategy-action-btn+.strategy-action-btn:before{content:"·";margin-right:8px;color:var(--text-tertiary);opacity:.5;pointer-events:none}.strategy-helper-text{font-size:var(--text-xs);color:var(--text-tertiary);margin-top:8px}.strategy-tool-count{padding:4px 10px;border-radius:var(--radius-button);background:var(--accent-subtle);color:var(--accent-primary)}.di-mode-label,.strategy-tool-count{font-size:var(--text-2xs);font-weight:500}.di-mode-label{color:var(--text-secondary);white-space:nowrap}.strategy-reset-section{padding-top:8px;text-align:center}.strategy-reset-link{border:none;background:none;color:var(--text-tertiary);font-size:var(--text-xs,12px);font-weight:400;cursor:pointer;opacity:.5;transition:color var(--duration-fast,.1s) var(--ease-default),opacity var(--duration-fast,.1s) var(--ease-default)}.strategy-reset-link:hover{color:var(--status-error);opacity:1}.strategy-action-btn:disabled{opacity:.4;cursor:not-allowed}@media (max-width:768px){.strategy-panel-column{width:calc(100% - 24px)}.strategy-presets{padding-top:64px}.strategy-panel-scroll{mask-image:linear-gradient(180deg,#000 calc(100% - 36px),transparent);-webkit-mask-image:linear-gradient(180deg,#000 calc(100% - 36px),transparent)}}.export-panel{display:flex;flex-direction:column;height:100%}.export-panel-inner{background:var(--surface-primary);overflow:hidden}.export-panel-inner,.export-panel-scroll{position:relative;display:flex;flex-direction:column;flex:1;min-height:0}.export-panel-scroll{overflow-y:auto;scrollbar-width:none}.export-panel-scroll::-webkit-scrollbar{display:none}.export-panel-column{display:flex;flex-direction:column;gap:20px;width:min(768px,calc(100% - 32px));margin:0 auto;padding:72px 0 24px}.export-panel-section-title{font-size:1rem;font-weight:550;letter-spacing:.01em;color:var(--text-primary);margin-bottom:8px}.export-section{display:flex;flex-direction:column;gap:var(--space-2);border-top:1px solid var(--border-subtle);padding-top:24px;margin-top:4px}.export-toggle-row{display:flex;align-items:center;justify-content:space-between;padding:var(--space-2);border-radius:var(--radius-default);cursor:pointer;transition:background var(--duration-fast) var(--ease-default)}.export-toggle-row:hover{background:var(--surface-hover)}.export-toggle-row__text{display:flex;flex-direction:column;gap:1px}.export-toggle-row__label{font-size:var(--text-xs);color:var(--text-primary)}.export-toggle-row__hint{font-size:var(--text-xs);color:var(--text-tertiary)}.export-toggles,.form-toggle-indent-group{display:flex;flex-direction:column;gap:var(--space-1)}.form-toggle-indent-group{margin-left:16px;padding-left:16px;border-left:2px solid var(--border-subtle)}.export-advanced{border-top:1px solid var(--border-subtle);padding-top:16px;margin-top:4px}.export-advanced__toggle{font-size:var(--text-xs);font-weight:var(--font-medium);color:var(--text-tertiary);cursor:pointer;padding:var(--space-2);list-style:none;transition:color var(--duration-fast)}.export-advanced__toggle:hover{color:var(--text-secondary)}.export-advanced__toggle::-webkit-details-marker,.export-advanced__toggle::marker{display:none}.export-advanced__toggle:before{content:"▸ "}.export-advanced[open]>.export-advanced__toggle:before{content:"▾ "}.export-panel-detail-section{display:flex;flex-direction:column;gap:var(--space-2);border-top:1px solid var(--border-subtle);padding-top:24px;margin-top:4px}.export-panel-detail-header{font-size:var(--text-xs);font-weight:500;color:var(--text-tertiary)}.export-power-footer{flex-shrink:0;padding:12px 0;display:flex;justify-content:center}.export-power-footer__row{width:min(768px,calc(100% - 32px));display:flex;align-items:center;justify-content:space-between;padding:10px 16px;background:var(--surface-secondary);backdrop-filter:blur(var(--surface-blur));border:1px solid var(--border-subtle);border-radius:var(--radius-panel)}.export-power-footer__estimates{font-size:var(--text-xs);color:var(--text-tertiary);display:flex;align-items:center;gap:6px}.export-power-footer__dot{opacity:.5}.export-btn-primary{display:flex;align-items:center;gap:6px;padding:8px 20px;border-radius:var(--radius-button);font-size:var(--text-xs);font-weight:var(--font-semibold);border:none;cursor:pointer;white-space:nowrap;background:var(--accent-primary);color:var(--text-on-brand);transition:background var(--duration-fast),opacity var(--duration-fast)}.export-btn-primary:hover:not(:disabled){background:var(--accent-hover)}.export-btn-primary:disabled{opacity:.6;cursor:not-allowed}.export-btn-primary svg{font-size:var(--text-lg)}@media (prefers-reduced-motion:reduce){.export-btn-primary,.export-source-add,.export-toggle-row{transition:none}}.export-sources-add{padding:var(--space-2) 0 var(--space-3) var(--space-3)}.export-sources-totals{display:flex;align-items:center;gap:6px;padding:var(--space-2) var(--space-3);font-size:var(--text-xs);font-weight:var(--font-medium);color:var(--text-tertiary)}.export-sources-totals__dot{opacity:.4}@media (max-width:768px){.export-panel-column{width:calc(100% - 24px)}}.panel-header{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:72px 0 0;text-align:left}.panel-header-identity{display:flex;align-items:flex-start;gap:12px}.panel-header-icon{width:40px;height:40px;border-radius:8px;object-fit:cover;flex-shrink:0}.panel-header-title{font-size:var(--text-2xl);font-weight:var(--font-semibold);color:var(--text-title);margin:0;line-height:1.3;letter-spacing:.01em}.panel-header-subtitle{margin-top:2px}.panel-header-meta,.panel-header-subtitle{font-size:var(--text-xs);color:var(--text-secondary)}.panel-header-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:4px}.panel-header-dot{color:var(--text-tertiary);font-size:var(--text-2xs);user-select:none}@media (max-width:768px){.panel-header{padding:64px 0 0}.panel-header-title{font-size:var(--text-xl)}}.sparkline{display:inline-block;vertical-align:middle;position:relative}.sparkline__glow,.sparkline__line{fill:none;stroke-linecap:round;stroke-linejoin:round}.sparkline__glow{opacity:.35}.sparkline__area{opacity:.2;transition:opacity .2s ease}.sparkline:hover .sparkline__area{opacity:.3}.sparkline__dot{opacity:0;transition:opacity .15s ease;pointer-events:none}.sparkline:hover .sparkline__dot--active,.sparkline__dot--current,.sparkline__dot--peak{opacity:1}.sparkline__annotation{font-size:var(--text-3xs);font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.01em}.sparkline__annotation--peak{fill:var(--text-secondary)}.sparkline__annotation--current{fill:var(--text-primary)}.sparkline__avg-line{stroke:var(--text-tertiary);stroke-width:1;stroke-dasharray:2,4;opacity:.4}.sparkline__avg-label{fill:var(--text-tertiary);font-size:var(--text-3xs);font-variant-numeric:tabular-nums;opacity:.7}.sparkline__tooltip{position:absolute;pointer-events:none;background:var(--surface-elevated);color:var(--text-primary);font-size:var(--text-2xs);line-height:1.3;padding:5px 8px;border-radius:var(--radius-xs);border:1px solid var(--border-subtle);box-shadow:var(--shadow-popover);white-space:nowrap;opacity:0;transition:opacity .12s ease;transform:translateX(-50%);z-index:var(--z-popover)}.sparkline:hover .sparkline__tooltip--visible{opacity:1}.sparkline__tooltip-day{color:var(--text-tertiary)}.sparkline__tooltip-count{font-weight:600;font-variant-numeric:tabular-nums;color:var(--text-primary)}.sparkline__tooltip-delta{font-size:var(--text-3xs);margin-left:4px;font-weight:500}.sparkline__tooltip-delta--up{color:var(--status-success)}.sparkline__tooltip-delta--down{color:var(--status-error)}.sparkline__grid-line{stroke:var(--border-subtle);stroke-width:1;shape-rendering:crispEdges}.sparkline__grid-label{fill:var(--text-tertiary);font-size:var(--text-3xs);font-variant-numeric:tabular-nums}.sparkline__hover-rule{stroke:var(--text-tertiary);stroke-width:1;stroke-dasharray:2,3;opacity:0;transition:opacity .12s ease}.sparkline:hover .sparkline__hover-rule{opacity:.5}.sparkline__tooltip--chart{padding:6px 10px;display:flex;flex-direction:column;gap:2px}.sparkline__tooltip--chart .sparkline__tooltip-day{display:block;font-size:var(--text-3xs)}.sparkline__tooltip--chart .sparkline__tooltip-count{display:block;font-size:var(--text-2xs)}.sparkline-trend{display:inline-flex;align-items:center;gap:3px;font-size:var(--text-3xs);font-weight:600;font-variant-numeric:tabular-nums;padding:1px 5px;border-radius:var(--radius-xs);line-height:1}.sparkline-trend--up{color:var(--status-success);background:var(--status-success-bg)}.sparkline-trend--down{color:var(--status-error);background:var(--status-error-bg)}.sparkline-trend--flat{color:var(--text-tertiary);background:rgba(var(--status-success-rgb),.05)}.sparkline-skeleton{width:100%;border-radius:var(--radius-sm);background:linear-gradient(90deg,var(--surface-secondary) 0,var(--surface-tertiary) 40%,var(--surface-secondary) 80%);background-size:200% 100%;animation:sparkline-shimmer 1.4s ease-in-out infinite}@keyframes sparkline-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.panel-section{margin-top:12px}.panel-section-header{display:flex;align-items:center;gap:6px;width:100%;padding:8px 0;border:none;background:transparent;color:var(--text-tertiary);font-size:var(--text-xs);font-weight:500;cursor:pointer}.panel-section-header:hover{color:var(--text-title)}.panel-section-label{flex:1;text-align:left}.panel-section-count{font-size:var(--text-2xs);font-weight:500;color:var(--text-tertiary);background:var(--surface-tertiary);padding:1px 6px;border-radius:10px}.panel-section-chevron{color:var(--text-tertiary);transition:transform .2s ease}.panel-section-chevron.expanded{transform:rotate(90deg)}.entity-profile{display:flex;flex-direction:column;height:100%;width:100%;padding:0;box-sizing:border-box}.entity-profile-inner{background:var(--surface-primary);overflow:hidden}.entity-profile-inner,.entity-profile-scroll{position:relative;display:flex;flex-direction:column;flex:1;min-height:0}.entity-profile-scroll{overflow-y:auto;overflow-x:hidden;scrollbar-width:none}.entity-profile-scroll::-webkit-scrollbar{width:0;display:none}.entity-profile-scroll{padding-bottom:48px;mask-image:linear-gradient(180deg,#000 calc(100% - 48px),transparent);-webkit-mask-image:linear-gradient(180deg,#000 calc(100% - 48px),transparent)}.entity-profile .panel-header{gap:8px;padding-bottom:16px}.entity-profile .panel-header .tab-bar{margin-top:8px}.entity-profile-names{flex:1;min-width:0}.entity-profile-pinyin{color:var(--text-tertiary);font-style:italic}.entity-profile-freq{font-size:var(--text-2xs);color:var(--text-tertiary)}.entity-profile-brief{margin-top:16px;background:var(--surface-tertiary);border-radius:var(--radius-default);padding:14px 16px;box-sizing:border-box;transition:box-shadow .15s ease}.entity-profile-brief:hover{box-shadow:var(--shadow-inner-layer)}.entity-profile-image-wrap{margin:12px 0 0;display:flex;justify-content:center;background:var(--surface-tertiary);border-radius:var(--radius-default);overflow:hidden;cursor:pointer;transition:box-shadow .15s ease}.entity-profile-image-wrap:hover{box-shadow:var(--shadow-inner-layer)}.entity-profile-image{width:100%;max-height:60vh;border-radius:var(--radius-default);object-fit:contain}.entity-profile-tab-content--network{flex:1;display:flex;flex-direction:column;min-height:calc(100vh - 12rem)}.entity-profile-network-container{position:relative;width:100%;flex:1;min-height:0;border-radius:var(--radius-default);overflow:hidden}.entity-profile-network-empty{display:flex;align-items:center;justify-content:center;gap:8px;padding:32px 16px;color:var(--text-tertiary);font-size:var(--text-xs)}.entity-profile-relationships{display:flex;flex-direction:column;gap:6px}.entity-profile-rel-group{display:flex;flex-direction:row;align-items:baseline;gap:8px}.entity-profile-rel-label{flex-shrink:0;width:120px;font-size:var(--text-2xs);font-weight:600;color:var(--text-tertiary);text-transform:uppercase;letter-spacing:.5px}.entity-profile-rel-pills{flex:1;min-width:0;display:flex;flex-wrap:wrap;gap:6px}.entity-profile-artifacts-grid{display:flex;flex-direction:column;gap:0;width:100%}.entity-profile-show-more{padding:8px;border:1px dashed var(--border-subtle);border-radius:6px;background:transparent;color:var(--text-secondary);font-size:var(--text-2xs);cursor:pointer;text-align:center;transition:all .15s ease}.entity-profile-show-more:hover{background:var(--surface-tertiary);color:var(--text-primary)}.entity-profile-loading{display:flex;align-items:center;justify-content:center;gap:8px;padding:32px 16px;color:var(--text-tertiary);font-size:var(--text-xs)}.entity-profile-activity-chart{display:flex;flex-direction:column;gap:8px;padding:12px 0;width:100%}.entity-profile-activity-header{display:flex;align-items:center;justify-content:space-between}.entity-profile-sparkline-label{font-size:var(--text-2xs);color:var(--text-tertiary);text-transform:uppercase;letter-spacing:.04em}.entity-profile-time-range .segmented-control__options{gap:0}.entity-profile-time-range .segmented-control__option{padding:3px 8px;font-size:var(--text-2xs)}@media (max-width:768px){.entity-profile-scroll{mask-image:linear-gradient(180deg,#000 calc(100% - 36px),transparent);-webkit-mask-image:linear-gradient(180deg,#000 calc(100% - 36px),transparent)}.entity-profile .panel-header{padding-bottom:12px}}.control-panel-shell{display:flex;flex-direction:column;height:100%;width:100%;padding:0;box-sizing:border-box}.control-panel-shell__inner{background:var(--surface-primary);overflow:hidden}.control-panel-shell__inner,.control-panel-shell__scroll{position:relative;display:flex;flex-direction:column;flex:1;min-height:0}.control-panel-shell__scroll{overflow-y:auto;overflow-x:hidden;scrollbar-width:none;mask-image:linear-gradient(180deg,#000 calc(100% - 48px),transparent);-webkit-mask-image:linear-gradient(180deg,#000 calc(100% - 48px),transparent)}.control-panel-shell__scroll::-webkit-scrollbar{width:0;display:none}.control-panel-shell__column{display:flex;flex-direction:column;gap:20px;width:min(768px,calc(100% - 32px));margin:0 auto;padding:72px 0 24px}.control-panel-shell__section{display:flex;flex-direction:column;gap:0}.control-panel-shell__section+.control-panel-shell__section{padding-top:20px}.control-panel-shell__section-header{font-size:1rem;font-weight:550;letter-spacing:.01em;color:var(--text-primary);margin-bottom:8px}.form-toggle-indent-group{margin-left:20px;padding:4px 0 4px 12px;border-left:1px solid var(--border-subtle)}@media (max-width:768px){.control-panel-shell__column{width:calc(100% - 24px);padding-top:64px}}.entity-type-filter__hint{margin:0 0 8px;font-size:var(--text-xs);color:var(--text-tertiary)}.entity-type-filter__pills{display:flex;flex-wrap:wrap;gap:6px}.entity-type-filter__pill{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;font-size:var(--text-xs);font-weight:var(--font-medium,500);font-family:var(--font-sans);border:1px solid transparent;border-radius:var(--radius-button);background:var(--surface-inset);color:var(--text-tertiary);cursor:pointer;white-space:nowrap;transition:background var(--duration-fast) var(--ease-default),color var(--duration-fast) var(--ease-default)}.entity-type-filter__pill:hover{color:var(--text-secondary)}.entity-type-filter__pill.active{background:var(--surface-tertiary);color:var(--pill-text);box-shadow:var(--shadow-segment-active)}.entity-type-filter__pill:active{transform:scale(.97)}.entity-type-filter__pill:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}.entity-type-filter__pill-icon{display:inline-flex;align-items:center;flex-shrink:0;opacity:.85}.entity-type-filter__pill-icon svg{width:14px;height:14px}.entity-type-filter__show-all{display:inline-flex;align-items:center;gap:4px;padding:6px 14px;font-size:var(--text-xs);font-weight:var(--font-medium,500);border:1px dashed var(--border-subtle);border-radius:var(--radius-button);background:transparent;color:var(--text-tertiary);cursor:pointer;transition:background var(--duration-fast) var(--ease-default),color var(--duration-fast) var(--ease-default)}.entity-type-filter__show-all:hover{background:var(--surface-tertiary);color:var(--text-secondary)}.entity-type-filter__show-all:active{transform:scale(.97)}.entity-type-filter__show-all:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}.map-entity-filter-section{display:flex;flex-direction:column;gap:10px}.map-entity-filter-section__toggle{display:flex;align-items:center;justify-content:space-between}.map-entity-filter-section__group{display:flex;flex-direction:column;gap:6px}.map-entity-filter-section__label{font-size:var(--text-2xs);font-weight:500;color:var(--text-secondary)}.map-infra-section{display:flex;flex-direction:column;gap:4px}.map-infra-section__header{display:flex;align-items:center;justify-content:space-between}.map-infra-section__actions{display:flex;gap:4px}.map-infra-action-btn{padding:6px 0;border:none;background:none;color:var(--text-tertiary);font-size:var(--text-xs,12px);font-weight:400;cursor:pointer;transition:color var(--duration-fast,.1s) var(--ease-default)}.map-infra-action-btn:hover{color:var(--text-primary)}.map-infra-action-btn:active{transform:scale(.98)}.map-infra-section__actions .map-infra-action-btn+.map-infra-action-btn:before{content:"·";margin-right:8px;color:var(--text-tertiary);opacity:.5;pointer-events:none}.map-infra-pills{display:flex;flex-wrap:wrap;gap:6px}.map-infra-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;font-size:var(--text-xs);font-weight:var(--font-medium,500);font-family:var(--font-sans);border:1px solid transparent;border-radius:var(--radius-button);background:var(--surface-inset);color:var(--text-tertiary);cursor:pointer;white-space:nowrap;transition:background var(--duration-fast) var(--ease-default),color var(--duration-fast) var(--ease-default)}.map-infra-pill__dot{width:8px;height:8px;border-radius:50%;background:var(--dot-color);flex-shrink:0}.map-infra-pill:hover{color:var(--text-secondary)}.map-infra-pill.active{background:var(--surface-tertiary);color:var(--text-primary);box-shadow:var(--shadow-segment-active)}.map-infra-pill:active{transform:scale(.97)}.map-infra-pill:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}.map-infra-show-all{margin-top:4px}@media (max-width:768px){.entity-type-filter__pill{min-height:32px}}.layers-style-options{display:flex;gap:6px}.layers-style-btn{flex:1;display:flex;align-items:center;gap:10px;padding:10px 12px;font-size:var(--text-xs);font-weight:var(--font-medium,500);font-family:var(--font-sans);border:1px solid transparent;border-radius:var(--radius-button);cursor:pointer;background:transparent;color:var(--text-secondary);transition:background var(--duration-fast) var(--ease-default),color var(--duration-fast) var(--ease-default),border-color var(--duration-fast) var(--ease-default)}.layers-style-btn:hover{background:var(--surface-hover)}.layers-style-btn.active{background:var(--surface-tertiary);border-color:var(--border-strong);color:var(--text-primary);box-shadow:var(--shadow-segment-active)}.layers-style-btn:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}.layers-style-preview{width:24px;height:24px;border-radius:var(--radius-xs);flex-shrink:0;border:1px solid var(--border-subtle)}.layers-style-preview.default{background:linear-gradient(135deg,var(--accent-secondary) 0,var(--accent-primary) 100%)}.layers-style-preview.satellite{background:linear-gradient(135deg,#2d3748,#1a202c)}.layers-groups{display:flex;flex-direction:column;gap:2px}.layers-group-header{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:var(--radius-button);cursor:pointer;transition:background var(--duration-fast) var(--ease-default)}.layers-group-header:hover{background:var(--surface-hover)}.layers-group-chevron{width:14px;height:14px;color:var(--text-tertiary);flex-shrink:0;transition:transform var(--duration-fast) var(--ease-default)}.layers-group-chevron.expanded{transform:rotate(90deg)}.layers-group-name{flex:1;font-size:var(--text-base);font-weight:400;color:var(--text-primary)}.layers-sublayers{margin-left:20px;padding:4px 0;border-left:1px solid var(--border-subtle)}.layers-layer-row{display:flex;align-items:center;gap:12px;padding:8px 12px 8px 16px;cursor:pointer;border-radius:var(--radius-button);transition:background var(--duration-fast) var(--ease-default),opacity var(--duration-fast) var(--ease-default)}.layers-layer-row:hover{background:var(--surface-hover)}.layers-layer-row:not(.enabled){opacity:.5}.layers-layer-row:not(.enabled):hover{opacity:.8}.layers-layer-icon{width:20px;height:20px;flex-shrink:0}.layers-layer-swatch{width:16px;height:16px;flex-shrink:0;border-radius:4px}.layers-layer-spacer{width:20px;height:20px;flex-shrink:0}.layers-layer-name{flex:1;font-size:var(--text-xs);font-weight:var(--font-medium,500);color:var(--text-secondary)}.layers-layer-row.enabled .layers-layer-name{color:var(--text-primary)}.layers-geojson-label{font-size:var(--text-2xs);font-weight:600;color:var(--text-tertiary);text-transform:uppercase;letter-spacing:.5px;padding:12px 12px 4px}.layers-empty{text-align:center;padding:24px 16px;color:var(--text-tertiary);font-size:var(--text-xs)}.freq-slider{display:flex;flex-direction:column;gap:4px;width:100%;padding:0 2px}.freq-slider__labels{display:flex;justify-content:space-between;font-size:11px;font-weight:500;color:var(--text-secondary);font-variant-numeric:tabular-nums}.freq-slider__label{min-width:24px;text-align:center}.freq-slider__track{position:relative;height:20px;display:flex;align-items:center}.freq-slider__track:before{content:"";position:absolute;left:0;right:0;height:4px;border-radius:2px;background:var(--surface-tertiary)}.freq-slider__range{position:absolute;height:4px;border-radius:2px;background:var(--accent-primary)}.freq-slider__input{position:absolute;width:100%;height:20px;margin:0;appearance:none;-webkit-appearance:none;background:transparent;pointer-events:none;z-index:2}.freq-slider__input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:14px;height:14px;border-radius:50%;background:var(--accent-primary);border:2px solid var(--surface-primary);box-shadow:0 1px 3px rgba(0,0,0,.3);cursor:pointer;pointer-events:auto}.freq-slider__input::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:var(--accent-primary);border:2px solid var(--surface-primary);box-shadow:0 1px 3px rgba(0,0,0,.3);cursor:pointer;pointer-events:auto}.freq-slider__input:focus-visible::-webkit-slider-thumb{outline:2px solid var(--accent-primary);outline-offset:2px}.freq-slider__input--max{z-index:3}.freq-slider__bounds{display:flex;justify-content:space-between;font-size:10px;color:var(--text-tertiary)}.entity-settings-panel__empty{text-align:center;padding:24px 16px;color:var(--text-tertiary);font-size:var(--text-xs)}.entity-settings-panel__group{display:flex;flex-direction:column;gap:6px;padding:20px 0}.control-panel-shell__section-header+.entity-settings-panel__group{padding-top:0}.entity-settings-panel__group:last-child{padding-bottom:0}.entity-settings-panel__group+.entity-settings-panel__group{border-top:1px solid var(--border-subtle)}.entity-settings-panel__label{font-size:var(--text-xs);font-weight:500;color:var(--text-tertiary)}.entity-settings-panel__label--inline{margin-bottom:0}.entity-settings-panel__label-hint{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;margin-left:6px;border:1px solid var(--border-subtle);border-radius:50%;font-size:10px;font-weight:600;color:var(--text-tertiary);cursor:help;user-select:none}.entity-settings-panel__segmented{display:flex;flex-wrap:wrap;gap:6px}.entity-settings-panel__seg-btn{padding:6px 14px;font-size:var(--text-xs);font-weight:var(--font-medium,500);font-family:var(--font-sans);white-space:nowrap;border:1px solid transparent;border-radius:var(--radius-button);background:var(--surface-inset);color:var(--text-tertiary);cursor:pointer;transition:background var(--duration-fast) var(--ease-default),color var(--duration-fast) var(--ease-default)}.entity-settings-panel__seg-btn:hover{color:var(--text-secondary)}.entity-settings-panel__seg-btn.active{background:var(--surface-tertiary);color:var(--text-primary);box-shadow:var(--shadow-segment-active)}.entity-settings-panel__seg-btn:active{transform:scale(.97)}.entity-settings-panel__seg-btn:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}.entity-settings-panel .holocron-slider{padding:4px 0 0}.entity-settings-panel__toggle-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;padding:20px 0}.entity-settings-panel__group+.entity-settings-panel__toggle-row{border-top:1px solid var(--border-subtle)}.entity-settings-panel__toggle-row:not(.enabled){opacity:.5}.entity-settings-panel__toggle-row:not(.enabled):hover{opacity:.8}.entity-settings-panel__toggle-row:last-child{padding-bottom:0}.entity-settings-panel__hint{margin:0 0 8px;font-size:var(--text-xs);color:var(--text-tertiary)}.entity-settings-panel__pills{display:flex;flex-wrap:wrap;gap:6px}.entity-settings-panel__pill{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;font-size:var(--text-xs);font-weight:var(--font-medium,500);font-family:var(--font-sans);border:1px solid transparent;border-radius:var(--radius-button);background:var(--surface-inset);color:var(--text-tertiary);cursor:pointer;white-space:nowrap;transition:background var(--duration-fast) var(--ease-default),color var(--duration-fast) var(--ease-default)}.entity-settings-panel__pill:hover{color:var(--text-secondary)}.entity-settings-panel__pill.active{background:var(--surface-tertiary);color:var(--text-primary);box-shadow:var(--shadow-segment-active)}.entity-settings-panel__pill:active{transform:scale(.97)}.entity-settings-panel__pill:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}.entity-settings-panel__pill--entity.active{color:var(--pill-text)}.entity-settings-panel__pill-icon{display:inline-flex;align-items:center;flex-shrink:0;opacity:.85}.entity-settings-panel__pill-icon svg{width:14px;height:14px}.entity-settings-panel__show-all{display:inline-flex;align-items:center;gap:4px;padding:6px 14px;font-size:var(--text-xs);font-weight:var(--font-medium,500);border:1px dashed var(--border-subtle);border-radius:var(--radius-button);background:transparent;color:var(--text-tertiary);cursor:pointer;transition:background var(--duration-fast) var(--ease-default),color var(--duration-fast) var(--ease-default)}.entity-settings-panel__show-all:hover{background:var(--surface-tertiary);color:var(--text-secondary)}.entity-settings-panel__show-all:active{transform:scale(.97)}.entity-settings-panel__show-all:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}.entity-settings-panel__operations{display:flex;flex-direction:column;gap:6px}.entity-settings-panel__op-btn{width:100%;padding:8px 12px;border:1px solid var(--border-subtle);border-radius:var(--radius-sm);background:var(--surface-secondary);color:var(--text-primary);font-size:var(--text-xs);cursor:pointer;transition:background .12s ease;text-align:left}.entity-settings-panel__op-btn:hover:not(:disabled){background:var(--surface-hover)}.entity-settings-panel__op-btn:disabled{opacity:.4;pointer-events:none}.entity-settings-panel__op-btn--danger{color:var(--status-error);border-color:rgba(var(--status-error-rgb,239,68,68),.3)}.entity-settings-panel__op-btn--danger:hover:not(:disabled){background:rgba(var(--status-error-rgb,239,68,68),.1)}.entity-settings-panel__restore{display:flex;flex-direction:column;gap:8px}.entity-settings-panel__restore-hint{font-size:var(--text-2xs);color:var(--text-tertiary)}.entity-settings-panel__restore-btn{width:100%;padding:8px 12px;border:1px solid rgba(var(--accent-primary-rgb),.4);border-radius:8px;background:rgba(var(--accent-primary-rgb),.1);color:var(--text-primary);font-size:var(--text-xs);font-weight:500;cursor:pointer;transition:border-color .15s ease,background .15s ease}.entity-settings-panel__restore-btn:hover{border-color:rgba(var(--accent-primary-rgb),.7);background:rgba(var(--accent-primary-rgb),.2)}.entity-settings-panel__restore-btn:focus-visible{outline:2px solid var(--accent-primary);outline-offset:1px}@media (max-width:768px){.entity-settings-panel__seg-btn{min-height:36px}.entity-settings-panel__pill{min-height:32px}}.constellation-settings-panel__empty{text-align:center;padding:24px 16px;color:var(--text-tertiary);font-size:var(--text-xs)}.constellation-settings-panel__group{display:flex;flex-direction:column;gap:6px;padding:20px 0}.control-panel-shell__section-header+.constellation-settings-panel__group{padding-top:0}.constellation-settings-panel__group:last-child{padding-bottom:0}.constellation-settings-panel__group+.constellation-settings-panel__group{border-top:1px solid var(--border-subtle)}.constellation-settings-panel__label{font-size:var(--text-xs);font-weight:500;color:var(--text-tertiary)}.constellation-settings-panel__label--inline{margin-bottom:0}.constellation-settings-panel__segmented{display:flex;flex-wrap:wrap;gap:6px}.constellation-settings-panel__seg-btn{padding:6px 14px;font-size:var(--text-xs);font-weight:var(--font-medium,500);font-family:var(--font-sans);white-space:nowrap;border:1px solid transparent;border-radius:var(--radius-button);background:var(--surface-inset);color:var(--text-tertiary);cursor:pointer;transition:background var(--duration-fast) var(--ease-default),color var(--duration-fast) var(--ease-default)}.constellation-settings-panel__seg-btn:hover{color:var(--text-secondary)}.constellation-settings-panel__seg-btn.active{background:var(--surface-tertiary);color:var(--text-primary);box-shadow:var(--shadow-segment-active)}.constellation-settings-panel__seg-btn:active{transform:scale(.97)}.constellation-settings-panel__seg-btn:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}.constellation-settings-panel__toggle-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;padding:20px 0}.constellation-settings-panel__group+.constellation-settings-panel__toggle-row{border-top:1px solid var(--border-subtle)}.constellation-settings-panel__toggle-row:not(.enabled){opacity:.5}.constellation-settings-panel__toggle-row:not(.enabled):hover{opacity:.8}.constellation-settings-panel__toggle-row:last-child{padding-bottom:0}.chip-editor{display:flex;flex-direction:column;gap:8px}.chip-editor__field{display:flex;border:1px solid var(--border-subtle);border-radius:var(--radius-input,var(--radius-lg));background:var(--surface-primary);padding:8px 12px;cursor:text;transition:border-color var(--duration-fast) var(--ease-default),box-shadow var(--duration-fast) var(--ease-default)}.chip-editor__field:focus-within{border-color:rgba(var(--accent-primary-rgb),.6)}.chip-editor__field--disabled{opacity:.5;pointer-events:none}.chip-editor__chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;width:100%}.chip-editor__chip{display:inline-flex;align-items:center;gap:4px;padding:2px 6px 2px 8px;font-size:var(--text-xs);font-weight:500;font-family:var(--font-sans);white-space:nowrap;border-radius:var(--radius-sm);background:var(--surface-tertiary);color:var(--text-primary);border:none}.chip-editor__chip-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}.chip-editor__chip-label{max-width:140px;overflow:hidden;text-overflow:ellipsis}.chip-editor__chip-x{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-left:2px;border:none;border-radius:var(--radius-xs);background:transparent;color:var(--text-tertiary);font-size:13px;line-height:1;cursor:pointer;padding:0;transition:background var(--duration-fast) var(--ease-default),color var(--duration-fast) var(--ease-default)}.chip-editor__chip-x:hover{background:var(--surface-hover);color:var(--text-primary)}.chip-editor__input{flex:1;min-width:60px;padding:2px 0;font-size:var(--text-xs);font-family:var(--font-sans);color:var(--text-primary);background:transparent;border:none;outline:none}.chip-editor__input::placeholder{color:var(--text-muted)}.chip-editor__suggestions{display:flex;flex-wrap:wrap;gap:4px}.chip-editor__chip--ghost{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;font-size:var(--text-2xs);font-weight:500;font-family:var(--font-sans);white-space:nowrap;border:1px dashed var(--border-subtle);border-radius:var(--radius-sm);background:transparent;color:var(--text-tertiary);cursor:pointer;transition:background var(--duration-fast) var(--ease-default),color var(--duration-fast) var(--ease-default),border-color var(--duration-fast) var(--ease-default)}.chip-editor__chip--ghost:hover{background:var(--surface-tertiary);color:var(--text-secondary);border-style:solid}.chip-editor__chip--loading{border-style:dotted;animation:chip-shimmer 1.5s ease-in-out infinite}@keyframes chip-shimmer{0%,to{opacity:.4}50%{opacity:.8}}.chip-editor__actions{display:flex;align-items:center;gap:6px}.chip-editor__action-btn{padding:4px 12px;font-size:var(--text-2xs);font-weight:500;font-family:var(--font-sans);border:1px solid var(--border-subtle);border-radius:var(--radius-sm);background:transparent;color:var(--text-tertiary);cursor:pointer;transition:background var(--duration-fast) var(--ease-default),color var(--duration-fast) var(--ease-default)}.chip-editor__action-btn:hover:not(:disabled){background:var(--surface-tertiary);color:var(--text-secondary)}.chip-editor__action-btn:disabled{opacity:.4;cursor:not-allowed}.chip-editor__status{font-size:var(--text-2xs);color:var(--text-tertiary);margin-left:auto}@media (max-width:768px){.constellation-settings-panel__seg-btn{min-height:36px}}.layer-content{position:relative;display:flex;flex-direction:column;height:100%;width:100%;overflow:hidden}.layer-content-body{overflow:hidden}.layer-content-body,.layer-content-item{flex:1;display:flex;flex-direction:column}.layer-content-item{height:100%}.layer-content-item--hidden{display:none}.layer-content-unknown{display:flex;align-items:center;justify-content:center;height:100%;color:var(--text-tertiary);font-size:var(--text-xs)}.mobile-chat-interface{display:flex;flex-direction:column;height:100vh;height:100dvh;width:100%;background:var(--surface-primary);position:fixed;top:0;left:0;right:0;bottom:0;overflow:hidden}@supports (padding:env(safe-area-inset-top)){.mobile-chat-interface{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}}.mobile-chat-content{flex:1;display:flex;flex-direction:column;min-height:0;position:relative;background:var(--surface-primary)}.mobile-chat-view{justify-content:center;align-items:center;padding:20px 10px env(safe-area-inset-bottom)}.mobile-chat-interface .landing-card__logo-container{margin-bottom:30px}.mobile-chat-interface .landing-card__logo{width:60px;height:60px;filter:brightness(0) invert(1) drop-shadow(0 0 20px rgba(var(--accent-hover-rgb),.5));animation:none}.theme-light .mobile-chat-interface{background:var(--surface-primary)}.theme-light .mobile-chat-interface .landing-card__logo{filter:brightness(0) drop-shadow(0 0 8px rgba(var(--accent-hover-rgb),.25))!important;animation:none!important}.mobile-chat-input-container{width:100%;max-width:90%;position:relative;z-index:var(--z-base-elevated)}@media screen and (min-width:768px) and (max-width:1024px){.mobile-chat-input-container{max-width:700px}}.mobile-chat-input .tokenized-entity-input__input{font-size:16px}.mobile-chat-interface .chat-input-suggestions-expanded{-webkit-overflow-scrolling:touch}@media screen and (max-width:480px){.mobile-chat-view{padding:16px}.mobile-chat-interface .landing-card__logo{width:50px;height:50px}.mobile-chat-interface .landing-card__logo-container{margin-bottom:24px}}@media screen and (max-height:500px) and (orientation:landscape){.mobile-chat-view{justify-content:flex-start;padding-top:20px}.mobile-chat-interface .landing-card__logo-container{display:none}.mobile-chat-interface .holocron-chat-input-container.expanded-for-suggestions .chat-input-suggestions-expanded{max-height:30vh}}@media (hover:none) and (pointer:coarse){body:has(.mobile-chat-interface input:focus),body:has(.mobile-chat-interface textarea:focus){overflow:hidden;position:fixed;width:100%}}@media (prefers-contrast:high){.mobile-chat-input .holocron-chat-input-box{border-width:2px}}@media (prefers-reduced-motion:reduce){.mobile-chat-view{transition:none}.mobile-chat-interface .landing-card__logo{animation:none}}@media (max-width:1024px){.ai-chat-container .holocron-chat-input-container.ai-chat-input,.mobile-chat-view .ai-chat-container .holocron-chat-input-container.ai-chat-input,.mobile-chat-view .holocron-chat-input-container.ai-chat-input,.mobile-search-layout .mobile-chat-view .ai-chat-container .holocron-chat-input-container,.mobile-search-layout .mobile-chat-view .ai-chat-container .holocron-chat-input-container.ai-chat-input,.mobile-search-layout .mobile-search-content .mobile-chat-view .holocron-chat-input-container,.mobile-search-layout .mobile-search-content .mobile-chat-view .holocron-chat-input-container.ai-chat-input{position:fixed!important;bottom:calc(16px + env(safe-area-inset-bottom, 0px))!important;left:50%!important;transform:translateX(-50%)!important;width:min(725px,calc(100% - 2rem))!important;z-index:var(--z-critical)!important}.ai-chat-container .holocron-chat-input-container.ai-chat-input:focus-within,.mobile-chat-view .holocron-chat-input-container.ai-chat-input:focus-within,.mobile-search-layout .mobile-chat-view .holocron-chat-input-container:focus-within{bottom:calc(16px + env(safe-area-inset-bottom, 0px))!important;transform:translateX(-50%)!important}.mobile-chat-view,.mobile-search-content,.mobile-search-layout{overflow:visible!important;position:relative!important}.mobile-chat-view .ai-chat-container,.mobile-chat-view .mcp-container-wrapper,.mobile-chat-view .search-container{overflow:hidden!important;position:relative!important}.mobile-chat-view .ai-chat-scrollable-area{padding-bottom:100px!important}.mobile-chat-view .ai-chat-messages-container{padding-bottom:20px!important}.mobile-chat-view .ai-chat-messages-container:after{content:""!important;display:block!important;height:150px!important;width:100%!important;flex-shrink:0!important}}.mobile-search-layout{display:flex;flex-direction:column;height:100vh;height:100dvh;width:100%;background:var(--surface-primary);overflow:hidden;position:fixed;top:0;left:0;right:0;bottom:0;padding-top:env(safe-area-inset-top);max-height:100vh;max-height:100dvh}.mobile-tab-navigation{display:flex;background:var(--surface-secondary);border-bottom:1px solid var(--border-default);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);flex-shrink:0;position:relative;z-index:var(--z-sticky-toolbar)}.mobile-tab{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;padding:16px 8px;background:none;color:var(--text-tertiary);cursor:pointer;font-size:var(--text-2xs);font-weight:500;letter-spacing:.5px;border:none;border-bottom:3px solid transparent;transition:all .2s ease;min-height:64px}.mobile-tab:hover{color:var(--text-primary);background:var(--surface-hover)}.mobile-tab.active{border-bottom-color:var(--text-section-header);background:var(--color-teal-primary)}.mobile-tab.active,.mobile-tab.active .MuiSvgIcon-root{color:var(--text-section-header)}.mobile-tab .MuiSvgIcon-root{font-size:20px}.mobile-search-content{flex:1;overflow:hidden;position:relative;min-height:0;display:flex;flex-direction:column}.mobile-constellation-view,.mobile-entity-view,.mobile-map-view,.mobile-results-view,.mobile-vault-view{width:100%;height:100%;overflow:hidden;position:relative}.mobile-results-view,.mobile-vault-view{overflow-y:auto}.mobile-chat-view,.mobile-chat-view .ai-chat-container,.mobile-chat-view .mcp-container-wrapper,.mobile-chat-view .search-container{flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;width:100%;height:100%}.mobile-chat-view .ai-chat-scrollable-area{flex:1;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;padding-bottom:50px!important}.theme-light .mobile-tab-navigation{background:var(--surface-secondary)}@media screen and (max-width:480px){.mobile-tab{padding:12px 4px;font-size:var(--text-2xs);gap:4px;min-height:56px}.mobile-tab .MuiSvgIcon-root{font-size:18px}.mobile-tab span{display:none}.mobile-tab-divider{margin:8px 0}}@media (hover:none){.mobile-tab{transition:background-color .1s ease}.mobile-tab:active{background:var(--surface-hover)}}@supports (-webkit-touch-callout:none){.mobile-search-layout{height:-webkit-fill-available}.mobile-chat-view .holocron-chat-input-container.ai-chat-input{position:fixed!important;bottom:calc(16px + env(safe-area-inset-bottom, 0px))!important;z-index:var(--z-critical)!important}.mobile-chat-view input,.mobile-chat-view textarea{font-size:16px!important}}@media (max-height:500px) and (max-width:1024px){.mobile-tab-navigation{display:none}.mobile-search-content{padding-top:0}.mobile-chat-view .ai-chat-scrollable-area{padding-bottom:80px!important}.mobile-chat-view .holocron-chat-input-container.ai-chat-input{position:fixed!important;bottom:8px!important;left:50%!important;transform:translateX(-50%)!important;z-index:var(--z-critical)!important}}@supports (height:100dvh){.mobile-search-layout{height:100dvh}.mobile-chat-view{height:calc(100dvh - var(--tab-height, 64px))}}@media (hover:none) and (pointer:coarse){.mobile-chat-view .ai-chat-scrollable-area{-webkit-user-select:none;user-select:none}.mobile-chat-view .ai-chat-scrollable-area .message-text{-webkit-user-select:text;user-select:text}}