.tc{background:hsl(var(--secondary) / .6);border:1px solid hsl(var(--border) / .14);border-radius:var(--radius-md)}.tc--primary{background:hsl(var(--primary) / .05);border-color:hsl(var(--primary) / .18)}.tc--full{padding:1.125rem 1.25rem}.tc--compact{padding:.5rem .6rem}.tc__head{justify-content:space-between;align-items:baseline;gap:.5rem;margin-bottom:.4rem;display:flex}.tc__word{font-family:var(--font-prose);color:var(--color-accent-term,hsl(var(--primary)));font-weight:600}.tc--full .tc__word{font-size:1.05rem}.tc--compact .tc__word{font-size:.82rem}.tc__disamb{color:hsl(var(--muted-foreground));font-size:.85em;font-weight:400}.tc__auth{color:hsl(var(--accent));letter-spacing:1px;white-space:nowrap;font-size:11px}.tc__chips{flex-wrap:wrap;align-items:center;gap:.3rem;margin-bottom:.5rem;display:flex}.tc-chip{font-family:var(--font-ui);white-space:nowrap;color:hsl(var(--muted-foreground));background:hsl(var(--muted-foreground) / .12);border-radius:3px;padding:0 5px;font-size:10px;line-height:1.7}.tc-chip--role{color:hsl(var(--primary));background:hsl(var(--primary) / .12)}.tc-chip--lvl{color:hsl(var(--accent));background:hsl(var(--accent) / .14)}.tc-chip--ai{color:#fff;background:hsl(var(--dq-org-ai,262 52% 55%))}.tc__body{font-family:var(--font-prose);color:hsl(var(--foreground))}.tc--full .tc__body{padding:2px 6px;font-size:18px;line-height:1.9}.tc--compact .tc__body{font-size:.78rem;line-height:1.75}.tc--full .tc__body--en{font-family:var(--font-en-serif);font-size:16px;line-height:1.85}.tc__body mark{color:inherit;background:#ebb7476b;border-radius:3px;padding:0 1px}.tc__alias,.tc__rel{color:hsl(var(--muted-foreground));flex-wrap:wrap;align-items:baseline;gap:.25rem .5rem;margin-top:.5rem;font-size:11px;display:flex}.tc--full .tc__alias,.tc--full .tc__rel{font-size:12px}.tc__alias-label{opacity:.7}.tc__alias-item{font-family:var(--font-prose)}.tc__rel-item{font-family:var(--font-prose);white-space:nowrap}.tc__rel-kind{font-family:var(--font-ui);opacity:.68;margin-right:.2em;font-size:.85em}.tc__foot{border-top:1px solid hsl(var(--border) / .16);flex-wrap:wrap;align-items:center;gap:.4rem .6rem;margin-top:.6rem;padding-top:.5rem;display:flex}.tc--full .tc__foot{justify-content:space-between;margin-top:1rem;padding-top:.875rem}.tc__attr{flex-wrap:wrap;gap:.3rem;display:inline-flex}.tc-badge{font-family:var(--font-ui);color:hsl(var(--primary-foreground));background:hsl(var(--primary));cursor:help;border-radius:5px;padding:0 6px;font-size:10px;line-height:1.7}.tc--full .tc-badge{padding:1px 8px;font-size:12px}.tc__cite{color:hsl(var(--muted-foreground));font-size:11px}.tc--full .tc__cite{font-size:12px}.tc__entry{color:hsl(var(--primary));border-bottom:1px dotted;font-size:11px;text-decoration:none}.tc__entry:hover{color:hsl(var(--destructive))}.tc__quote{background:hsl(var(--card));border:1px solid hsl(var(--border) / .14);border-left:3px solid hsl(var(--accent));border-radius:0 var(--radius-md) var(--radius-md) 0;margin-top:.75rem;padding:.7rem .85rem}.tc__quote summary{color:hsl(var(--muted-foreground));cursor:pointer;font-size:11px;font-weight:600}.tc__quote-body{font-family:var(--font-prose);color:hsl(var(--foreground));margin-top:.5rem;font-size:15px;line-height:2}.tc--compact .tc__quote-body{font-size:.76rem;line-height:1.85}.tc--collapsible>.tc__sum{cursor:pointer;grid-template-columns:1fr auto;align-items:baseline;gap:.3rem;list-style:none;display:grid}.tc--collapsible>.tc__sum::-webkit-details-marker{display:none}.tc__preview{font-family:var(--font-prose);color:hsl(var(--muted-foreground));-webkit-line-clamp:1;-webkit-box-orient:vertical;grid-column:1/-1;font-size:.74rem;line-height:1.6;display:-webkit-box;overflow:hidden}.tc--collapsible[open]>.tc__sum{margin-bottom:.45rem}.tc--collapsible[open] .tc__preview{display:none}.tc--collapsible>.tc__sum:hover .tc__word{text-underline-offset:3px;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.tc__body--fade{-webkit-mask-image:linear-gradient(#000 calc(100% - 2.75em),#0000);mask-image:linear-gradient(#000 calc(100% - 2.75em),#0000)}.tc__clamp-toggle{font-family:var(--font-prose);color:hsl(var(--primary));cursor:pointer;background:0 0;border:none;margin-top:.25rem;padding:0;font-size:12px;display:block}.tc__clamp-toggle:hover{text-underline-offset:3px;text-decoration:underline}
.dq-tag{white-space:nowrap;border-radius:20px;align-items:center;padding:1px 7px;font-size:10px;font-weight:600;line-height:1.5;display:inline-flex}.dq-tag.type{color:hsl(var(--muted-foreground));background:hsl(var(--muted-foreground) / .13)}.dq-tag.type-concept{color:#2f75bc;background:#2f75bc21}.dq-tag.type-person{color:#c16e25;background:#c16e2524}.dq-tag.type-place{color:#32855c;background:#32855c21}.dq-tag.type-literature{color:#7c51b8;background:#7c51b821}.dq-tag.type-deity{color:#c63980;background:#c6398021}.dq-tag.type-school{color:#2f8293;background:#2f829321}.dq-tag.type-mantra{color:#a7841b;background:#a7841b26}.dq-tag.type-ritual{color:#c6542f;background:#c6542f21}.dq-tag.type-time{color:#636f88;background:#636f8821}.dq-idx-search input{width:100%;height:34px;font:inherit;color:hsl(var(--foreground));background:hsl(var(--input) / .06);border:1px solid hsl(var(--border) / .22);border-radius:var(--radius-sm);margin-bottom:.5rem;padding:0 .75rem}.dq-idx-search input:focus{border-color:hsl(var(--ring));box-shadow:0 0 0 3px hsl(var(--ring) / .12);outline:none}.dq-filters-toggle{font:inherit;color:hsl(var(--muted-foreground));cursor:pointer;background:0 0;border:none;align-items:center;gap:.25rem;padding:2px;font-size:11px;display:inline-flex}.dq-filters-toggle:hover{color:hsl(var(--foreground))}.dq-filters-toggle .dq-chevron{width:13px;height:13px;transition:transform .15s}.dq-filters-toggle.open .dq-chevron{transform:rotate(180deg)}.dq-filters-badge{min-width:15px;height:15px;color:hsl(var(--primary-foreground));background:hsl(var(--primary));border-radius:8px;justify-content:center;align-items:center;padding:0 3px;font-size:10px;font-weight:600;line-height:1;display:inline-flex}.dq-filters{flex-direction:column;gap:.4rem;display:flex}.dq-filter{align-items:center;gap:.5rem;min-height:28px;display:flex}.dq-filter-label{text-align:right;width:2.6em;color:hsl(var(--muted-foreground));flex-shrink:0;font-size:11px}.dq-filter-control{flex:1;align-items:center;gap:.35rem;min-width:0;display:flex}.dq-filter-control.dq-chips{flex-wrap:wrap}.dq-filter-select,.dq-filter-input{min-width:0;height:28px;font:inherit;color:hsl(var(--foreground));border:1px solid hsl(var(--border) / .22);border-radius:var(--radius-sm);flex:1;padding:0 .5rem;font-size:12px}.dq-filter-select{background:hsl(var(--secondary));cursor:pointer}.dq-filter-input{background:hsl(var(--input) / .06)}.dq-filter-select:focus,.dq-filter-input:focus{border-color:hsl(var(--ring));box-shadow:0 0 0 3px hsl(var(--ring) / .12);outline:none}.dq-chips button{font:inherit;border:1px solid hsl(var(--border) / .22);background:hsl(var(--secondary));color:hsl(var(--muted-foreground));cursor:pointer;border-radius:20px;padding:1px 8px;font-size:11px;line-height:1.6}.dq-chips button.on{color:hsl(var(--primary-foreground));background:hsl(var(--primary));border-color:hsl(var(--primary))}.dq-chip-clear{cursor:pointer;color:hsl(var(--muted-foreground));font:inherit;background:0 0;border:none;flex-shrink:0;padding:0 2px;font-size:12px}.dq-chip-clear:hover{color:hsl(var(--destructive))}.dq-content-toggle{color:hsl(var(--muted-foreground));cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:.4rem;font-size:12px;display:flex}.dq-content-toggle input{cursor:pointer;accent-color:hsl(var(--primary))}.dq-idx-count{color:hsl(var(--muted-foreground));justify-content:space-between;align-items:center;gap:.5rem;margin-top:.625rem;font-size:11px;display:flex}.dq-idx-count b{color:hsl(var(--foreground))}.dq-idx-count .dq-filters-toggle{flex-shrink:0}.dq-idx-list{flex:1;padding:.5rem;transition:opacity .15s;overflow-y:auto}.dq-idx-list.searching{opacity:.55;pointer-events:none}.dq-hint{color:hsl(var(--muted-foreground));text-align:center;padding:.5rem 0;font-size:11px}.dq-hint.dq-error{color:hsl(var(--destructive));padding:1rem .75rem}.dq-error-detail{color:hsl(var(--muted-foreground));word-break:break-all;max-height:6em;margin-top:.5rem;font-size:10px;overflow:hidden}.dq-term-card{text-align:left;border-radius:var(--radius-md);cursor:pointer;background:0 0;border:1px solid #0000;width:100%;margin-bottom:2px;padding:.625rem .75rem;transition:background .15s,border-color .15s}.dq-term-card:hover{background:hsl(var(--secondary))}.dq-term-card.active{background:hsl(var(--primary) / .08);border-color:hsl(var(--primary) / .3)}.dq-tc-head{font-family:var(--font-prose);color:hsl(var(--foreground));justify-content:space-between;align-items:baseline;gap:.5rem;display:flex}.dq-tc-head .dq-tc-name{overflow-wrap:anywhere;flex:1;min-width:0}.dq-tc-main{color:hsl(var(--foreground));font-size:16px;font-weight:600}.dq-tc-alt{color:hsl(var(--muted-foreground));margin-left:.45rem;font-size:12px;font-weight:400}.dq-tc-alt+.dq-tc-alt:before{content:"·";color:hsl(var(--muted-foreground) / .55);margin-right:.45rem;font-weight:400}.dq-tc-alt.tib{font-family:var(--font-tibetan);color:hsl(var(--primary) / .85);font-size:13px}.dq-tc-head .dq-tag{flex-shrink:0;align-self:flex-start;margin-top:2px}.dq-tc-head .suffix{color:hsl(var(--muted-foreground));margin-left:.3rem;font-size:12px;font-weight:400}.dq-tc-tags{flex-wrap:wrap;gap:4px;margin-top:.375rem;display:flex}.dq-tc-preview{color:hsl(var(--muted-foreground));-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-top:.375rem;font-size:12px;line-height:1.55;display:-webkit-box;overflow:hidden}.dq-more{text-align:center;color:hsl(var(--muted-foreground));padding:.625rem;font-size:12px}.dq-more-error{color:hsl(var(--destructive));margin-bottom:.4rem}.dq-more-btn{font:inherit;cursor:pointer;border-radius:var(--radius-sm);border:1px solid hsl(var(--border) / .4);background:hsl(var(--secondary));color:hsl(var(--primary));padding:.4rem .9rem;font-size:12px}.dq-more-btn:hover:not(:disabled){background:hsl(var(--primary) / .1);border-color:hsl(var(--primary) / .4)}.dq-more-btn:disabled{opacity:.6;cursor:default}.dq-hl{color:inherit;background:#ebb7476b;border-radius:3px;padding:0 1px}.dq-recents{padding:.25rem}.dq-recents-head{color:hsl(var(--primary));justify-content:space-between;align-items:center;padding:.25rem .5rem .5rem;font-size:12px;font-weight:600;display:flex}.dq-recents-clear{font:inherit;color:hsl(var(--muted-foreground));cursor:pointer;background:0 0;border:none;font-size:11px;font-weight:400}.dq-recents-clear:hover{color:hsl(var(--destructive))}.dq-recent{border-radius:var(--radius-md);border:1px solid #0000;align-items:stretch;margin-bottom:2px;display:flex}.dq-recent:hover{background:hsl(var(--secondary));border-color:hsl(var(--border) / .14)}.dq-recent-run{text-align:left;cursor:pointer;min-width:0;font:inherit;color:hsl(var(--foreground));background:0 0;border:none;flex:1;align-items:center;gap:.4rem;padding:.5rem .625rem;display:flex}.dq-recent-run .q{font-family:var(--font-prose);text-overflow:ellipsis;white-space:nowrap;font-size:15px;overflow:hidden}.dq-recent-tag{color:hsl(var(--muted-foreground));background:hsl(var(--muted-foreground) / .1);text-overflow:ellipsis;white-space:nowrap;border-radius:3px;flex-shrink:0;max-width:9em;padding:0 4px;font-size:10px;overflow:hidden}.dq-recent-x{cursor:pointer;color:hsl(var(--muted-foreground));opacity:0;background:0 0;border:none;flex-shrink:0;padding:0 .5rem;font-size:11px}.dq-recent:hover .dq-recent-x{opacity:1}.dq-recent-x:hover{color:hsl(var(--destructive))}
