.app-modal{overscroll-behavior:contain;background:var(--surface);width:min(512px,100vw - 32px);max-height:calc(100dvh - 32px);color:var(--foreground);box-shadow:var(--shadow-panel-lg);border:0;border-radius:14px;margin:auto;padding:0;position:fixed;inset:0;overflow:auto}.app-modal::backdrop{background:#0006}.app-modal:focus,.app-modal:focus-visible{outline:none}.app-modal:not([open]){display:none}.app-modal.dialog-plain{box-shadow:none;background:0 0}.app-modal.dialog-sm{width:min(24rem,100vw - 32px)}.app-modal.dialog-md{width:min(28rem,100vw - 32px)}.app-modal.dialog-lg{width:min(42rem,100vw - 32px)}.app-modal.dialog-xl{width:min(48rem,100vw - 32px)}@media (max-width:639px){.app-modal.dialog-sheet{width:100vw;max-width:100vw;margin-top:auto;margin-bottom:0}}.app-modal.search-palette{border:.5px solid var(--border-hover);background:var(--surface);border-radius:20px;flex-direction:column;width:min(672px,100vw - 32px);height:min(582px,100dvh - 32px);max-height:min(582px,100dvh - 32px);padding:0;display:flex;overflow:hidden;box-shadow:0 25px 50px -12px #00000040}.search-palette-head{height:60px;color:var(--foreground-secondary);flex-shrink:0;align-items:center;gap:8px;padding:0 16px 0 24px;display:flex}.search-palette-head input{min-width:0;color:var(--foreground);background:0 0;border:0;outline:none;flex:1;font-size:1.125rem;line-height:1.625rem}.search-palette-head input:focus-visible{outline:none}.search-palette-head input::placeholder{color:var(--foreground-tertiary)}.search-palette-close{width:28px;height:28px;color:var(--foreground-secondary);border-radius:6px;justify-content:center;align-items:center;font-size:1.125rem;line-height:1;display:inline-flex}.search-palette-close:hover{background:var(--fill-ghost-hover);color:var(--foreground)}.search-palette-close:focus-visible{background:var(--fill-ghost-hover);color:var(--foreground);outline:none}.search-palette-time{color:var(--foreground-secondary);flex-shrink:0;align-items:center;gap:8px;padding:0 24px 8px;font-size:.75rem;line-height:1.4;display:flex}.search-palette-time>span{background:var(--fill-ghost-hover);border-radius:6px;align-items:center;height:24px;padding:0 8px;display:inline-flex}.search-palette-time>button{width:20px;height:20px;color:var(--foreground-tertiary);border-radius:4px;justify-content:center;align-items:center;display:inline-flex}.search-palette-time>button:hover{background:var(--fill-ghost-hover);color:var(--foreground)}.search-palette-time>button:focus-visible{background:var(--fill-ghost-hover);color:var(--foreground);outline:none}.search-palette-item-icon{color:var(--foreground-secondary);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.search-palette-tabs{flex-shrink:0;gap:2px;padding:0 24px 10px;display:flex}.search-palette-tab{height:28px;color:var(--foreground-tertiary);transition:color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);border-radius:6px;padding:0 10px;font-size:.875rem;font-weight:500;line-height:1}.search-palette-tab:hover{color:var(--foreground-secondary);background:var(--fill-ghost-hover)}.search-palette-tab[aria-selected=true]{color:var(--foreground)}.search-palette-body{flex:1;min-height:120px;padding:4px 8px 12px;overflow-y:auto}.search-palette-group-block+.search-palette-group-block{margin-top:8px}.search-palette-group{color:var(--foreground-tertiary);margin:0;padding:8px 8px 4px;font-size:.75rem;line-height:1.0625rem}.search-palette-row{border-radius:8px;align-items:center;display:flex;position:relative}.search-palette-row[data-active]{background:var(--fill-ghost-hover)}.search-palette-item{text-align:left;width:100%;min-height:36px;color:var(--foreground);border-radius:8px;align-items:center;gap:12px;padding:8px 12px;display:flex}.search-palette-item>svg{color:var(--foreground-secondary);flex-shrink:0}.search-palette-item-main{flex:1;min-width:0}.search-palette-item-title{text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;font-weight:400;line-height:1.25rem;display:block;overflow:hidden}.search-palette-item-preview{color:var(--foreground-tertiary);text-overflow:ellipsis;white-space:nowrap;font-size:.78125rem;line-height:1.125rem;display:block;overflow:hidden}.search-palette-item-tag{color:var(--foreground-tertiary);margin-left:8px;font-size:.75rem}.search-palette-item-meta{font-variant-numeric:tabular-nums;color:var(--foreground-tertiary);margin-left:8px;font-size:.75rem}.search-palette-actions{flex-shrink:0;align-items:center;gap:2px;padding-right:8px;display:inline-flex}.search-palette-action{width:24px;height:24px;color:var(--foreground-secondary);border-radius:6px;justify-content:center;align-items:center;display:inline-flex}.search-palette-state{color:var(--foreground-secondary);text-align:center;margin:0;padding:24px 12px;font-size:.8125rem;line-height:1.1875rem}.search-palette-foot{border-top:var(--hairline) solid var(--border);height:48px;color:var(--foreground-tertiary);flex-shrink:0;align-items:center;gap:16px;padding:0 12px;font-size:.75rem;line-height:1.125rem;display:flex}.search-palette-hint{align-items:center;gap:6px;display:inline-flex}.search-palette-hint.is-end{margin-left:auto}.search-palette-foot kbd{min-width:28px;height:18px;font-family:var(--font-sans);color:var(--foreground-secondary);background:0 0;border:1px solid #0000002e;border-radius:4px;justify-content:center;align-items:center;padding:0 5px;font-size:.75rem;display:inline-flex}.dark .search-palette-foot kbd{border-color:#ffffff2e}.app-modal:has(#search-title)>div>div>button:hover{background:var(--fill-field)}.app-modal:has(#search-title)>div>div>button>strong{font-size:.875rem;font-weight:500}.app-modal:has(#search-title)>div>div>button>span{margin-top:2px;font-size:.75rem;line-height:1.0625rem}.app-modal,.chat-header-menu,.chat-plus-menu,.chat-model-menu,.conversation-menu,.chat-recents-menu,.chat-context-panel{--background:var(--chat-background);--background-secondary:var(--chat-secondary);--background-tertiary:var(--chat-tertiary);--foreground:var(--chat-foreground);--foreground-secondary:var(--chat-muted);--border:var(--chat-border)}.all-divinations-panel{max-height:min(720px, var(--available-height,calc(100dvh - 16px)));box-shadow:var(--shadow-panel-popover);border-radius:10px;flex-direction:column;padding:0;display:flex;overflow:hidden}.user-help-menu{min-width:12rem;max-width:min(16rem,100vw - 2rem)}.user-usage-menu{width:min(16rem,100vw - 2rem)}.all-divinations-panel input:focus-visible{outline:none}.all-divinations{flex-direction:column;flex:1;width:min(20rem,100vw - 2rem);min-height:0;display:flex}.all-divinations-head{justify-content:space-between;align-items:baseline;gap:12px;padding:8px 10px 4px;display:flex}.all-divinations-head h2{color:var(--foreground-tertiary);font-size:13px;font-weight:400;line-height:17px}.all-divinations-head span{color:var(--foreground-tertiary);font-size:12px;line-height:17px}.all-divinations-search{height:32px;color:var(--foreground-tertiary);background:#ffffff80;border-radius:8px;align-items:center;gap:8px;margin:4px;padding:0 8px;display:flex}.dark .all-divinations-search{background:#ffffff0d}.all-divinations-search input{min-width:0;color:var(--foreground);background:0 0;border:0;outline:none;flex:1;font-size:14px;line-height:21px}.all-divinations-search input::placeholder{color:var(--foreground-tertiary)}.all-divinations-scroll{overscroll-behavior:contain;flex:1;min-height:0;padding:0 4px 6px;overflow-y:auto}.all-divinations-group-label{color:var(--foreground-tertiary);padding:8px 8px 2px;font-size:12px;font-weight:400;line-height:17px}.all-divinations-row{position:relative}.all-divinations-item{width:100%;height:32px;color:var(--foreground-secondary);border-radius:8px;align-items:center;gap:8px;padding:0 2px;font-size:14px;line-height:21px;transition:background-color .12s,color .12s;display:flex}.all-divinations-item:hover{background:var(--df-hover);color:var(--foreground)}.all-divinations-item[aria-current=page]{background:var(--df-selected);color:var(--foreground)}.all-divinations-icon{flex-shrink:0;justify-content:center;align-items:center;width:28px;display:flex}.all-divinations-pin{width:24px;height:24px;color:var(--foreground-tertiary);opacity:0;background:0 0;border-radius:6px;justify-content:center;align-items:center;transition:opacity .12s,background-color .12s;display:flex;position:absolute;top:50%;right:4px;transform:translateY(-50%)}.all-divinations-row:hover .all-divinations-pin,.all-divinations-pin:focus-visible,.all-divinations-pin[data-pinned]{opacity:1}.all-divinations-pin:hover{background:var(--fill-ghost-hover);color:var(--foreground)}.all-divinations-pin[data-pinned]{color:var(--accent)}@media (hover:none){.all-divinations-pin{opacity:.7}}.all-divinations-fortune{border-top:1px solid var(--fill-field);flex-direction:column;gap:1px;padding:4px;display:flex}
