.custom-shan-page{background:var(--bg);min-height:100vh;color:var(--text-primary);flex:1;padding:32px 40px}.custom-shan-page .MuiTypography-root{color:var(--text-primary)!important}.custom-shan-page .MuiTypography-colorTextSecondary,.custom-shan-page .MuiTypography-body2{color:var(--text-secondary)!important}.custom-shan-header{border-bottom:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1.5rem;margin-bottom:2rem;padding-bottom:1.5rem;display:flex}.custom-shan-title-section{flex:1}.custom-shan-title{letter-spacing:-.02em;color:var(--text-primary)!important;margin-bottom:.35rem!important;font-size:1.75rem!important;font-weight:700!important}.custom-shan-subtitle{line-height:1.5;color:var(--text-secondary)!important;font-size:.95rem!important}.create-button{background:linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%)!important;text-transform:none!important;box-shadow:0 4px 14px -4px var(--accent-soft)!important;color:#fff!important;border-radius:12px!important;padding:12px 24px!important;font-size:.95rem!important;font-weight:600!important}.create-button:hover{transform:translateY(-1px);background:linear-gradient(135deg, var(--accent) 0%, var(--accent) 100%)!important;box-shadow:0 6px 20px -4px var(--accent-soft)!important}.custom-shan-tabs{border-bottom:1px solid var(--border);max-width:1200px;margin:0 auto 1.5rem}.custom-shan-tabs .MuiTabs-root{min-height:48px}.custom-shan-tabs .MuiTab-root{min-height:48px;padding:12px 20px;color:var(--text-secondary)!important;text-transform:none!important;font-size:.95rem!important;font-weight:500!important}.custom-shan-tabs .MuiTab-root.Mui-selected{color:var(--accent)!important;font-weight:600!important}.custom-shan-tabs .MuiTabs-indicator{border-radius:3px 3px 0 0;height:3px;background-color:var(--accent)!important}.custom-shan-tabs .MuiTab-root .MuiSvgIcon-root{margin-right:6px;font-size:1.1rem}.discover-sub-tabs{background:var(--surface-1);border:1px solid var(--border);border-radius:12px;margin-bottom:1.5rem;padding:4px;display:inline-flex}.discover-sub-tabs .MuiTabs-root{min-height:40px}.discover-sub-tabs .MuiTab-root{border-radius:8px;min-height:36px;padding:8px 16px;color:var(--text-secondary)!important;text-transform:none!important;font-size:.85rem!important;font-weight:500!important}.discover-sub-tabs .MuiTab-root.Mui-selected{color:var(--accent)!important;background:var(--accent-soft)!important}.discover-sub-tabs .MuiTabs-indicator{display:none}.custom-shan-content{max-width:1200px;margin:0 auto}.loading-container{flex-direction:column;justify-content:center;align-items:center;gap:1rem;padding:5rem;display:flex}.loading-container .MuiTypography-root{color:var(--text-secondary)!important}.loading-container .MuiCircularProgress-root{color:var(--accent)!important}.error-alert{border-radius:12px;margin-bottom:1rem}.empty-state{text-align:center;background:var(--surface-1);border:2px dashed var(--accent-soft);border-radius:20px;flex-direction:column;justify-content:center;align-items:center;padding:5rem 2rem;display:flex}.empty-icon{opacity:.6;margin-bottom:1rem;color:var(--accent)!important;font-size:4rem!important}.empty-state .MuiTypography-h6{margin-bottom:.5rem;color:var(--text-primary)!important;font-weight:600!important}.empty-state .MuiButton-outlined{border-color:var(--accent)!important;color:var(--accent)!important}.empty-state .MuiButton-outlined:hover{background:var(--accent-soft)!important}.custom-shan-card{flex-direction:column;height:100%;display:flex;background:var(--surface-1)!important;border:1px solid var(--border)!important;box-shadow:0 2px 12px -4px var(--border)!important;border-radius:16px!important;transition:all .25s!important}.custom-shan-card:hover{transform:translateY(-3px);border-color:var(--accent-soft)!important;box-shadow:0 12px 40px -12px var(--accent-soft)!important}.custom-shan-card .MuiCardContent-root{flex:1;padding:20px!important}.card-header{align-items:flex-start;gap:14px;margin-bottom:12px;display:flex}.card-icon{background:linear-gradient(135deg, var(--accent-soft) 0%, var(--accent-soft) 100%);width:52px;height:52px;color:var(--accent);border:1px solid var(--accent-soft);border-radius:14px;flex-shrink:0;justify-content:center;align-items:center;display:flex}.card-icon .MuiSvgIcon-root{font-size:1.5rem}.card-icon-avatar{flex-shrink:0;border:2px solid var(--accent-soft)!important;border-radius:14px!important;width:52px!important;height:52px!important}.card-title-section{flex:1;min-width:0}.card-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--text-primary)!important;font-size:1.1rem!important;font-weight:600!important;line-height:1.3!important}.card-chips{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.public-chip{background:var(--success-soft)!important;height:24px!important;color:var(--success)!important;border:none!important;font-size:.7rem!important;font-weight:500!important}.public-chip .MuiChip-icon{color:var(--success)!important;font-size:.9rem!important}.knowledge-chip{background:var(--accent-soft)!important;color:var(--accent-hover)!important;height:24px!important;font-size:.7rem!important;font-weight:500!important}.knowledge-chip .MuiChip-icon{color:var(--accent)!important;font-size:.9rem!important}.usage-chip{height:24px!important;color:var(--text-secondary)!important;border-color:#6b728040!important;font-size:.7rem!important;font-weight:500!important}.usage-chip .MuiChip-icon{color:var(--text-tertiary)!important;font-size:.9rem!important}.card-description{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;color:var(--text-secondary)!important;margin-bottom:8px!important;font-size:.9rem!important;line-height:1.5!important}.card-system-prompt{-webkit-line-clamp:2;background:var(--surface-2);border-left:3px solid var(--accent-soft);border-radius:8px;-webkit-box-orient:vertical;padding:10px 12px;font-style:italic;display:-webkit-box;overflow:hidden;color:var(--text-tertiary)!important;font-size:.85rem!important}.card-click-hint{background:var(--accent-soft);border:1px dashed var(--accent-soft);border-radius:10px;align-items:center;gap:6px;margin-top:16px;padding:10px 14px;transition:all .2s;display:flex}.card-click-hint .MuiSvgIcon-root{color:var(--accent);font-size:1.1rem}.card-click-hint .MuiTypography-root{color:var(--accent-hover)!important;font-size:.8rem!important;font-weight:500!important}.custom-shan-card:hover .card-click-hint{background:var(--accent-soft);border-color:var(--accent-soft)}.card-actions{border-top:1px solid var(--border);background:var(--surface-2);border-radius:0 0 16px 16px;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;display:flex;padding:12px 16px!important}.start-chat-button{background:linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%)!important;color:#fff!important;text-transform:none!important;box-shadow:0 4px 14px -4px var(--accent-soft)!important;border-radius:10px!important;flex:1!important;padding:10px 20px!important;font-weight:600!important;transition:all .2s!important}.start-chat-button:hover{transform:translateY(-1px);background:linear-gradient(135deg, var(--accent) 0%, var(--accent) 100%)!important;box-shadow:0 6px 20px -4px var(--accent-soft)!important}.card-actions .MuiButton-root{text-transform:none!important;color:var(--accent)!important;border-radius:10px!important;font-weight:600!important}.card-actions .MuiButton-root:hover{background:var(--accent-soft)!important}.card-action-buttons{gap:4px;display:flex}.card-action-buttons .MuiIconButton-root{transition:all .2s;color:var(--text-tertiary)!important}.card-action-buttons .MuiIconButton-root:hover{color:var(--text-secondary)!important;background:var(--border)!important}.card-action-buttons .MuiIconButton-colorError{color:var(--danger)!important}.card-action-buttons .MuiIconButton-colorError:hover{color:var(--danger)!important;background:var(--danger-soft)!important}.card-action-buttons .MuiIconButton-colorSuccess{color:var(--success)!important}.card-meta{border-top:1px solid var(--border);align-items:center;gap:16px;margin-top:12px;padding-top:12px;display:flex}.meta-item{align-items:center;gap:6px;display:flex}.meta-item .MuiSvgIcon-root{color:var(--text-tertiary);font-size:1rem}.meta-item .MuiTypography-caption{color:var(--text-secondary)!important;font-size:.8rem!important}.mine-chip{background:var(--accent-soft)!important;height:24px!important;color:var(--accent)!important;font-size:.7rem!important;font-weight:500!important}.MuiDialog-paper{border-radius:16px!important}.MuiDialogTitle-root,.MuiDialogContent-root .MuiTypography-root{color:var(--text-primary)!important}.guest-preview-alert{border-radius:14px;margin-bottom:1.5rem}.preview-grid{margin-top:.5rem}.preview-card{pointer-events:none;border-style:dashed!important;border-color:var(--border-strong)!important}.preview-card:hover{box-shadow:0 2px 12px -6px var(--border)!important;transform:none!important}.preview-card .MuiSkeleton-root{background-color:var(--border)!important}.preview-card-header{align-items:center;gap:12px;margin-bottom:12px;display:flex}.preview-avatar{border-radius:12px}.preview-title-lines{flex:1}.preview-chip-row{gap:10px;margin-top:14px;display:flex}.preview-card-actions{gap:10px;display:flex;padding:0 20px 20px!important}@media (width<=1024px){.custom-shan-page{padding:24px 20px}}@media (width<=768px){.custom-shan-page{padding:20px 16px}.custom-shan-header{text-align:center;flex-direction:column;align-items:stretch}.create-button{width:100%;justify-content:center!important}.custom-shan-title{font-size:1.5rem!important}}.custom-shan-state{justify-content:center;align-items:center;min-height:calc(100vh - 96px);display:flex}.custom-shan-state-card{text-align:center;background:var(--surface-1);border:1px solid var(--border);width:min(100%,720px);box-shadow:0 4px 24px -8px var(--border-strong);border-radius:20px;padding:2rem}.custom-shan-spinner{border:3px solid var(--accent-soft);border-top-color:var(--accent);border-radius:999px;width:2rem;height:2rem;margin:0 auto 1rem;animation:.8s linear infinite custom-shan-spin}.custom-shan-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;display:grid}.custom-shan-card-body{flex-direction:column;flex:1;padding:20px;display:flex}.custom-shan-chip{min-height:22px;color:var(--text-primary);background:#0f172a0f;border-radius:999px;align-items:center;padding:0 .6rem;font-size:.72rem;font-weight:600;display:inline-flex}.custom-shan-tabs-nav{border-bottom:1px solid var(--border);gap:.5rem;max-width:1200px;margin:0 auto 1.5rem;display:flex}.custom-shan-tab-link{min-height:48px;color:var(--text-secondary);border-bottom:3px solid #0000;align-items:center;padding:0 1rem;font-size:.95rem;font-weight:500;text-decoration:none;display:inline-flex}.custom-shan-tab-link.is-active{color:var(--accent);border-bottom-color:var(--accent);font-weight:600}.custom-shan-link-button,.custom-shan-primary-button,.custom-shan-secondary-button,.custom-shan-dialog-button,.custom-shan-icon-button{font:inherit}.custom-shan-primary-button,.custom-shan-secondary-button,.custom-shan-dialog-button{box-sizing:border-box;border-radius:12px;justify-content:center;align-items:center;min-height:42px;padding:.75rem 1rem;text-decoration:none;transition:transform .16s,box-shadow .16s,border-color .16s,background .16s;display:inline-flex}.custom-shan-primary-button{color:var(--surface-1);background:linear-gradient(135deg, var(--accent) 0%, var(--danger) 100%);box-shadow:0 12px 30px -18px var(--accent-soft);cursor:pointer;border:0}.custom-shan-primary-button:disabled{opacity:.7;cursor:progress}.custom-shan-secondary-button,.custom-shan-dialog-button{border:1px solid var(--accent-soft);color:var(--accent);background:var(--surface-1);cursor:pointer}.custom-shan-primary-button:hover,.custom-shan-secondary-button:hover,.custom-shan-dialog-button:hover,.custom-shan-link-button:hover{transform:translateY(-1px)}.card-actions{flex-wrap:wrap;align-items:stretch;gap:.5rem;margin-top:auto;display:flex}.start-chat-button{flex:100%}.card-action-buttons{flex:100%;gap:.5rem;display:flex}.custom-shan-icon-button{white-space:nowrap;border:1px solid var(--border);background:var(--surface-1);min-width:0;min-height:42px;color:var(--text-primary);cursor:pointer;border-radius:12px;flex:auto;padding:0 10px}.custom-shan-icon-button.is-danger,.custom-shan-dialog-button.is-danger{border-color:var(--danger-soft);color:var(--danger)}.custom-shan-alert{border-radius:14px;margin-bottom:1rem;padding:.95rem 1rem;font-size:.95rem;line-height:1.5}.custom-shan-alert--info{background:var(--accent-soft);color:var(--accent);border:1px solid var(--accent-soft)}.custom-shan-alert--error{background:var(--danger-soft);color:var(--danger);border:1px solid var(--danger-soft)}.custom-shan-empty-cta{margin-top:1rem}.custom-shan-dialog-backdrop{z-index:80;background:#02061773;justify-content:center;align-items:center;padding:1.25rem;display:flex;position:fixed;inset:0}.custom-shan-dialog{background:var(--surface-1);border:1px solid var(--border);border-radius:18px;width:min(100%,480px);padding:1.5rem;box-shadow:0 24px 60px -20px #0f172a4d}.custom-shan-dialog-title{color:var(--text-primary);margin:0 0 .75rem;font-size:1.1rem}.custom-shan-dialog-copy{color:var(--text-primary);margin:0;line-height:1.55}.custom-shan-dialog-actions{justify-content:flex-end;gap:.75rem;margin-top:1.25rem;display:flex}.custom-shan-toast{color:var(--surface-1);z-index:85;text-align:center;background:#0f172af0;border-radius:999px;max-width:calc(100vw - 2rem);padding:.75rem 1rem;position:fixed;bottom:1.25rem;left:50%;transform:translate(-50%);box-shadow:0 18px 36px -24px #0f172acc}@keyframes custom-shan-spin{to{transform:rotate(360deg)}}@media (width<=720px){.custom-shan-tabs-nav{overflow-x:auto}.card-actions{flex-direction:column;align-items:stretch}.card-action-buttons{justify-content:stretch}.custom-shan-icon-button{flex:1}.custom-shan-dialog-actions{flex-direction:column-reverse}}
