@layer components{.shell-home{width:100%}.shell-home-header{margin-bottom:var(--shell-spacing-2xl)}.shell-home-header h1{margin:0 0 var(--shell-spacing-sm);font-size:1.75rem;font-weight:700;letter-spacing:-.02em}.shell-home-header p{margin:0;color:var(--shell-color-text-muted)}.shell-home-grid{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:var(--shell-spacing-lg);gap:var(--shell-spacing-lg)}@media (max-width:900px){.shell-home-grid{grid-template-columns:1fr}}}@layer components{.workspace-shell{display:flex;flex-direction:column;gap:var(--shell-spacing-lg);position:relative;isolation:isolate}.workspace-tabs{gap:6px;padding:6px;border-radius:var(--shell-radius-xl);border:1px solid var(--shell-color-border);background:var(--shell-color-surface);width:-moz-fit-content;width:fit-content;z-index:30;pointer-events:auto}.workspace-tab,.workspace-tabs{display:inline-flex;align-items:center;position:relative}.workspace-tab{border-radius:var(--shell-radius-lg);padding:8px 14px;font-size:.86rem;font-weight:600;color:var(--shell-color-text-muted);transition:all var(--shell-transition-fast);cursor:pointer;z-index:1}.workspace-tab:hover{color:var(--shell-color-text);background:var(--shell-surface-neutral-weak)}.workspace-tab.workspace-tab-active{color:var(--shell-color-brand);background:var(--shell-surface-brand-weak);box-shadow:inset 0 0 0 1px var(--shell-border-brand-soft)}.workspace-surface{display:flex;flex-direction:column;gap:var(--shell-spacing-md)}.workspace-surface-header{display:flex;flex-direction:column;gap:6px}.workspace-title-input{width:100%;border:0;background:transparent;color:var(--shell-color-text);font-size:1.55rem;font-weight:700;letter-spacing:-.01em;padding:0}.workspace-title-input:focus{outline:none}.workspace-surface-meta{margin:0;font-size:.84rem;color:var(--shell-color-text-muted)}.workspace-add-strip{display:flex;flex-wrap:wrap;gap:8px}.workspace-utility-strip{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}.workspace-template-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.workspace-import-panel{border:1px solid var(--shell-color-border);border-radius:var(--shell-radius-lg);background:var(--shell-color-surface-elevated);padding:12px;display:flex;flex-direction:column;gap:10px}.workspace-import-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.workspace-add-btn{border:1px solid var(--shell-color-border);border-radius:var(--shell-radius-full);background:var(--shell-surface-neutral-weak);color:var(--shell-color-text);font-size:.8rem;font-weight:600;padding:6px 10px;cursor:pointer;transition:all var(--shell-transition-fast)}.workspace-add-btn:hover{border-color:var(--shell-color-brand);color:var(--shell-color-brand);background:var(--shell-surface-brand-weak)}.workspace-editor{display:flex;flex-direction:column;gap:14px}.workspace-block{border:1px solid var(--shell-color-border);border-radius:var(--shell-radius-lg);background:color-mix(in srgb,var(--shell-color-surface) 92%,transparent);display:grid;grid-template-columns:auto 1fr;grid-gap:10px;gap:10px;padding:12px}.workspace-block-toolbar{display:flex;flex-direction:column;gap:6px;align-items:center}.workspace-toolbar-btn{width:28px;height:28px;border-radius:var(--shell-radius-md);border:1px solid var(--shell-color-border);background:var(--shell-surface-neutral-weak);color:var(--shell-color-text-muted);font-size:.86rem;font-weight:700;cursor:pointer;transition:all var(--shell-transition-fast)}.workspace-toolbar-btn:hover:not(:disabled){border-color:var(--shell-color-brand);color:var(--shell-color-brand)}.workspace-toolbar-btn:disabled{opacity:.4;cursor:not-allowed}.workspace-toolbar-btn.danger:hover:not(:disabled){border-color:#ef4444;color:#ef4444}.workspace-block-content{min-width:0}.workspace-heading-row{display:flex;gap:10px;align-items:center}.workspace-input,.workspace-level-select,.workspace-textarea{width:100%;border:1px solid var(--shell-color-border);border-radius:var(--shell-radius-md);background:var(--shell-surface-neutral-weak);color:var(--shell-color-text);font-size:.92rem;padding:9px 10px}.workspace-level-select{width:74px;flex:0 0 74px}.workspace-template-select{width:190px;flex:0 0 190px}.workspace-heading-input{width:100%;border:0;background:transparent;color:var(--shell-color-text);padding:6px 0}.workspace-heading-level-1{font-size:1.7rem;font-weight:700;letter-spacing:-.02em}.workspace-heading-level-2{font-size:1.3rem;font-weight:650}.workspace-heading-level-3{font-size:1.08rem;font-weight:600}.workspace-heading-input:focus,.workspace-input:focus,.workspace-level-select:focus,.workspace-textarea:focus{outline:1px solid var(--shell-color-brand);outline-offset:0}.workspace-textarea{resize:vertical;line-height:1.45}.workspace-bullets-preview{margin:10px 0 0;padding-left:20px;color:var(--shell-color-text-muted);font-size:.9rem;line-height:1.4}.workspace-divider{border:0;border-top:1px solid var(--shell-color-border);margin:8px 0}.workspace-link-row{display:grid;grid-gap:8px;gap:8px}.workspace-link-preview{color:var(--shell-color-brand);font-size:.84rem;width:-moz-fit-content;width:fit-content}.workspace-link-preview:hover{text-decoration:underline}.workspace-callout-input{border-left:3px solid var(--shell-color-brand);background:var(--shell-surface-brand-weak)}.workspace-widget-block{display:flex;flex-direction:column;gap:10px}.workspace-widget-header{display:flex;gap:10px;align-items:center}.workspace-widget-add{border:1px solid var(--shell-color-brand);border-radius:var(--shell-radius-md);background:var(--shell-surface-brand-weak);color:var(--shell-color-brand);font-size:.82rem;font-weight:600;padding:8px 10px;cursor:pointer;white-space:nowrap}.workspace-widget-add:hover{background:var(--shell-surface-brand-soft)}.workspace-widget-empty{margin:0;color:var(--shell-color-text-muted);font-size:.85rem}.workspace-widget-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));grid-gap:var(--shell-spacing-md);gap:var(--shell-spacing-md)}.workspace-widget-card{border:1px solid var(--shell-color-border);border-radius:var(--shell-radius-lg);background:var(--shell-color-surface-elevated);padding:8px;display:flex;flex-direction:column;gap:8px;min-height:280px}.workspace-widget-card-full{grid-column:1/-1}.workspace-widget-card-header{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.83rem;color:var(--shell-color-text-muted)}.workspace-widget-card-actions{display:flex;align-items:center;gap:6px}.workspace-widget-preview{flex:1 1;min-height:220px}.workspace-widget-preview .shell-widget{height:100%}.workspace-widget-preview .shell-widget>:last-child{min-height:0;overflow-y:auto}.workspace-empty-state{border:1px dashed var(--shell-color-border);border-radius:var(--shell-radius-lg);padding:16px;color:var(--shell-color-text-muted);font-size:.9rem}@media (max-width:900px){.workspace-tabs{width:100%;overflow-x:auto}.workspace-block{grid-template-columns:1fr;gap:8px}.workspace-block-toolbar{flex-direction:row;justify-content:flex-end}.workspace-widget-header{flex-direction:column;align-items:stretch}.workspace-template-controls,.workspace-widget-add{width:100%}.workspace-template-select{width:100%;flex:1 1 auto}.workspace-import-actions{justify-content:stretch}.workspace-import-actions .workspace-add-btn{width:100%}}}@layer legacy{.shell-sidebar{background:var(--shell-gradient-sidebar);border-right:1px solid var(--shell-color-border);padding:var(--shell-spacing-xl);display:flex;flex-direction:column;gap:var(--shell-spacing-xl);position:-webkit-sticky;position:sticky;top:0;height:100vh;overflow-y:auto}[data-theme=light] .shell-sidebar{background:linear-gradient(180deg,#f8fafc,#f1f5f9);border-right-color:var(--shell-color-border-strong)}.shell-brand{font-size:1.25rem;font-weight:700;letter-spacing:-.02em;color:var(--shell-color-text);align-items:center}.shell-brand,.shell-nav{display:flex;gap:var(--shell-spacing-sm)}.shell-nav{flex-direction:column;flex:1 1}.shell-nav-item{padding:var(--shell-spacing-md) var(--shell-spacing-lg);border-radius:var(--shell-radius-md);font-size:.875rem;font-weight:500;color:var(--shell-color-text-muted);transition:background var(--shell-transition-fast),color var(--shell-transition-fast),transform var(--shell-transition-fast);display:flex;align-items:center;gap:var(--shell-spacing-md)}.shell-nav-item:hover{background:var(--shell-surface-brand-faint);color:var(--shell-color-text)}[data-theme=light] .shell-nav-item:hover{background:var(--shell-surface-brand-weak)}.shell-nav-item.active{background:var(--shell-surface-brand-soft);color:var(--shell-color-brand);font-weight:600}.shell-nav-item.disabled{opacity:.5;cursor:not-allowed}.shell-sidebar-footer{margin-top:auto;padding-top:var(--shell-spacing-lg);border-top:1px solid var(--shell-color-border);display:flex;align-items:center;justify-content:space-between}.shell-chat-message{max-width:70%;background:var(--shell-surface-neutral-soft);border-radius:var(--shell-radius-lg);padding:var(--shell-spacing-sm) var(--shell-spacing-md);align-self:flex-start;position:relative}.shell-chat-message.mine{align-self:flex-end;background:var(--shell-surface-brand-strong)}.shell-chat-message-meta{display:flex;justify-content:space-between;font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:var(--shell-color-text-muted);margin-bottom:4px}.shell-chat-gif{display:inline-flex;flex-direction:column;gap:4px;max-width:260px}.shell-chat-gif img{border-radius:var(--shell-radius-md);display:block}.shell-chat-gif-attribution{font-size:.7rem;text-transform:uppercase;letter-spacing:.06em;color:var(--shell-color-text-muted)}.shell-chat-gif-preview{margin:var(--shell-spacing-md) 0;padding:var(--shell-spacing-md);border-radius:var(--shell-radius-md);border:1px solid var(--shell-color-border);background:rgba(15,23,42,.35)}[data-theme=light] .shell-chat-gif-preview{background:rgba(241,245,249,.85)}.shell-chat-gif-preview-header{display:flex;justify-content:space-between;font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;color:var(--shell-color-text-muted);margin-bottom:var(--shell-spacing-sm)}.shell-chat-gif-preview-body img{max-width:260px;width:100%;height:auto;border-radius:var(--shell-radius-md);display:block}.shell-chat-gif-preview-actions{display:flex;gap:var(--shell-spacing-sm);margin-top:var(--shell-spacing-sm)}.shell-chat-typing-indicator{margin-top:var(--shell-spacing-sm);font-size:.75rem;color:var(--shell-color-text-muted)}.shell-chat-composer-actions{margin-top:var(--shell-spacing-sm);display:flex;justify-content:space-between;align-items:center;gap:var(--shell-spacing-sm)}.shell-chat-emoji-button{border:1px solid var(--shell-color-border);background:transparent;border-radius:var(--shell-radius-full);padding:4px 10px;cursor:pointer}.shell-chat-emoji-picker{margin-top:var(--shell-spacing-sm);padding:6px 8px;border-radius:var(--shell-radius-md);border:1px solid var(--shell-color-border);background:rgba(15,23,42,.9);display:flex;flex-wrap:wrap;gap:4px}[data-theme=light] .shell-chat-emoji-picker{background:#fff}.shell-chat-emoji-picker button{border:none;background:transparent;cursor:pointer;font-size:1.1rem}.shell-chat-composer{border-top:1px solid var(--shell-color-border);padding-top:var(--shell-spacing-md);display:flex;flex-direction:column;gap:var(--shell-spacing-sm)}.shell-chat-composer textarea{width:100%;border-radius:var(--shell-radius-md);border:1px solid var(--shell-color-border);background:transparent;color:inherit;padding:var(--shell-spacing-md);font-family:inherit;resize:vertical}.dashboard-module-resize{position:absolute;top:8px;right:8px;padding:4px 8px;display:flex;align-items:center;justify-content:center;border-radius:4px;font-size:11px;font-weight:500;color:var(--shell-color-text-muted);background:#fff;border:1px solid var(--shell-color-border);cursor:pointer;z-index:10;opacity:0;transition:all .15s ease}.dashboard-module:hover .dashboard-module-resize{opacity:1}.dashboard-module-resize:hover{background:var(--shell-color-brand);color:#fff;border-color:var(--shell-color-brand)}.dashboard-module-full{width:100%;flex:0 0 100%}.dashboard-module-half{width:calc(50% - var(--shell-spacing-lg) / 2);flex:0 0 calc(50% - var(--shell-spacing-lg) / 2)}.dashboard-module-third{width:calc(33.333% - var(--shell-spacing-lg) * 2 / 3);flex:0 0 calc(33.333% - var(--shell-spacing-lg) * 2 / 3)}@media (max-width:900px){.dashboard-module-half,.dashboard-module-third{width:100%;flex:0 0 100%}}}@layer base, components, utilities, legacy;