.character-tag-browser{--tb-ground:var(--qp-ground,#fafafd);--tb-surface:var(--qp-surface,#fff);--tb-surface-2:var(--qp-surface-2,#f3f3f7);--tb-surface-3:var(--qp-surface-3,#e6e5ec);--tb-line:var(--qp-line,#e6e5ec);--tb-ink:var(--qp-ink,#141318);--tb-ink-2:var(--qp-ink-2,#55545f);--tb-ink-3:var(--qp-ink-3,#74737e);--tb-accent:var(--qp-accent,#672afb);--tb-accent-hover:var(--qp-accent-hover,#5519d4);--tb-soft:var(--qp-accent-soft,#f6f6ff);--tb-accent-ink:var(--qp-accent-ink,#5519d4);--tb-on-accent:var(--qp-on-accent,#fff);--tb-scrim:var(--qp-scrim,#0c0c0f7a);--tb-pop:var(--qp-pop,0 0 0 1px #e6e5ec,0 6px 18px #1e143c1a);color:var(--tb-ink);width:100%;min-width:0;font-family:Pretendard,CharacterChat,sans-serif}.character-tag-browser.tag-dark{--tb-ground:var(--qp-ground,#0c0c0f);--tb-surface:var(--qp-surface,#141318);--tb-surface-2:var(--qp-surface-2,#1d1c22);--tb-surface-3:var(--qp-surface-3,#26252d);--tb-line:var(--qp-line,#26252d);--tb-ink:var(--qp-ink,#fafafd);--tb-ink-2:var(--qp-ink-2,#d1d0d8);--tb-ink-3:var(--qp-ink-3,#9e9da8);--tb-accent:var(--qp-accent,#7553ff);--tb-accent-hover:var(--qp-accent-hover,#968cff);--tb-soft:var(--qp-accent-soft,#211b36);--tb-accent-ink:var(--qp-accent-ink,#b6b4ff);--tb-scrim:var(--qp-scrim,#0000009e);--tb-pop:var(--qp-pop,0 0 0 1px #26252d,0 6px 18px #0006)}.character-tag-browser,.character-tag-browser *{box-sizing:border-box}.character-tag-browser button,.character-tag-browser input{font:inherit;color:inherit}.character-tag-browser button{cursor:pointer;background:0 0;border:0;flex-shrink:0;justify-content:center;align-items:center;margin:0;display:inline-flex}.character-tag-browser button:focus-visible{outline:2px solid var(--tb-accent);outline-offset:2px}.character-tag-browser svg{flex-shrink:0}.tag-browser-row{align-items:center;column-gap:12px;width:100%;min-width:0;display:flex}.character-tag-browser .tag-browser-search-button{background:var(--tb-ink);height:32px;color:var(--tb-ground);white-space:nowrap;border-radius:9px;column-gap:6px;padding:0 12px 0 10px;font-size:14px;font-weight:500;line-height:20px}.character-tag-browser .tag-browser-search-button:hover{opacity:.88}.tag-browser-count{background:var(--tb-accent);min-width:18px;height:18px;color:var(--tb-on-accent);border-radius:9px;place-items:center;margin-left:6px;padding:0 5px;font-size:12px;font-weight:650;line-height:18px;display:inline-grid}.tag-browser-rail{flex:1;min-width:0;position:relative}.tag-browser-strip{scrollbar-width:none;overscroll-behavior-x:contain;column-gap:6px;min-width:0;display:flex;overflow-x:auto}.tag-browser-strip::-webkit-scrollbar{display:none}.character-tag-browser .tag-browser-chip{background:var(--tb-surface-2);height:32px;color:var(--tb-ink-2);white-space:nowrap;border-radius:9px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px}.character-tag-browser .tag-browser-chip:hover{background:var(--tb-surface-3)}.character-tag-browser .tag-browser-chip[aria-pressed=true]{background:var(--tb-soft);color:var(--tb-accent-ink);font-weight:650}.character-tag-browser .tag-browser-arrow{background:var(--tb-surface);width:32px;height:32px;color:var(--tb-ink);box-shadow:var(--tb-pop);border-radius:9px;position:absolute;top:0}.character-tag-browser .tag-browser-arrow.is-prev{left:0}.character-tag-browser .tag-browser-arrow.is-next{right:0}.tag-browser-backdrop{z-index:1000;background:var(--tb-scrim);overscroll-behavior:contain;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.tag-browser-dialog{background:var(--tb-surface);width:420px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);color:var(--tb-ink);box-shadow:var(--tb-pop);border-radius:9px;flex-direction:column;row-gap:12px;padding:20px;display:flex;overflow-y:auto}.tag-browser-heading{justify-content:space-between;align-items:center;column-gap:12px;display:flex}.tag-browser-heading h2{align-items:center;margin:0;font-size:17px;font-weight:650;line-height:24px;display:flex}.character-tag-browser .tag-browser-close{width:32px;height:32px;color:var(--tb-ink-3);border-radius:6px}.character-tag-browser .tag-browser-close:hover{background:var(--tb-surface-2);color:var(--tb-ink)}.tag-browser-input-wrap{flex-shrink:0;align-items:center;height:36px;display:flex;position:relative}.tag-browser-input-wrap>svg{color:var(--tb-ink-3);pointer-events:none;position:absolute;left:10px}.tag-browser-input-wrap input{background:var(--tb-surface-2);border:0;border-radius:6px;outline:none;width:100%;min-width:0;height:36px;padding:0 36px 0 34px;font-size:14px;line-height:20px}.tag-browser-input-wrap input:focus{box-shadow:inset 0 0 0 1px var(--tb-accent)}.tag-browser-input-wrap input::placeholder{color:var(--tb-ink-3)}.character-tag-browser .tag-browser-clear{width:24px;height:24px;color:var(--tb-ink-3);border-radius:3px;position:absolute;right:6px}.tag-browser-hint{color:var(--tb-ink-3);margin:0;font-size:12px;line-height:18px}.tag-browser-picked{border-bottom:1px solid var(--tb-line);flex-wrap:wrap;gap:6px;padding-bottom:12px;display:flex}.character-tag-browser .tag-browser-picked-tag{background:var(--tb-soft);height:28px;color:var(--tb-accent-ink);border-radius:6px;column-gap:4px;padding:0 8px 0 10px;font-size:12px;font-weight:650;line-height:18px}.tag-browser-choices{overscroll-behavior:contain;flex-wrap:wrap;align-content:flex-start;gap:6px;height:260px;min-height:80px;display:flex;overflow-y:auto}.character-tag-browser .tag-browser-choice{background:var(--tb-surface-2);height:32px;color:var(--tb-ink-2);white-space:nowrap;border-radius:9px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px}.character-tag-browser .tag-browser-choice:hover{background:var(--tb-surface-3)}.character-tag-browser .tag-browser-choice[aria-pressed=true]{background:var(--tb-soft);color:var(--tb-accent-ink);font-weight:650}.tag-browser-empty{text-align:center;width:100%;color:var(--tb-ink-3);margin:24px 0 0;font-size:14px}.tag-browser-footer{border-top:1px solid var(--tb-line);flex-shrink:0;justify-content:space-between;align-items:center;column-gap:12px;padding-top:12px;display:flex}.character-tag-browser .tag-browser-reset{height:32px;color:var(--tb-ink-2);border-radius:6px;padding:0 8px;font-size:14px;font-weight:500;line-height:20px}.character-tag-browser .tag-browser-reset:hover{background:var(--tb-surface-2)}.character-tag-browser .tag-browser-reset:disabled{opacity:.4;cursor:default;background:0 0}.character-tag-browser .tag-browser-apply{background:var(--tb-accent);height:36px;color:var(--tb-on-accent);border-radius:6px;padding:0 16px;font-size:14px;font-weight:650;line-height:20px}.character-tag-browser .tag-browser-apply:hover{background:var(--tb-accent-hover)}@media (prefers-reduced-motion:reduce){.tag-browser-strip{scroll-behavior:auto}}