.fd-dialog__panel.threads-dialog .bends-dialog__body{grid-template-columns:minmax(280px,1fr) minmax(700px,auto)}.threads-viewer{width:100%;height:100%;position:relative}.threads-viewer__reset{border:1px solid var(--fd-line);border-radius:var(--fd-r-control);background:var(--fd-bg);width:32px;height:32px;color:var(--fd-text-2);cursor:pointer;place-items:center;padding:0;display:grid;position:absolute;top:12px;right:12px}.threads-viewer__reset:hover{color:var(--fd-text-1);border-color:var(--fd-line-strong)}.bends-tag.bends-tag--set:not(.is-on){border-color:var(--fd-accent);color:var(--fd-accent)}.bends-tag.bends-tag--lead{position:relative}.bends-tag.bends-tag--lead:before{content:"";width:var(--lead-len,0);background:var(--fd-marker-line);transform-origin:0;height:1px;transform:rotate(var(--lead-rot,0deg))translateX(10px);pointer-events:none;position:absolute;top:50%;left:50%}.bends-tag.bends-tag--lead.is-on:before{background:var(--fd-accent)}.threads-table th,.threads-table td{vertical-align:middle;padding-left:12px;padding-right:12px}.threads-table td.bends-table__meta{white-space:nowrap}.threads-table tbody tr.threads-table__group,.threads-table tbody tr.threads-table__hole{cursor:pointer}.threads-table__sub{color:var(--fd-text-3);margin-left:8px}.threads-table__none{color:var(--fd-text-4)}.threads-table__times,.threads-table__holeno{color:var(--fd-text-2)}.threads-table tbody tr.threads-table__hole td{background:var(--fd-bg-subtle)}.threads-table tbody tr.threads-table__hole td.bends-table__idx{color:var(--fd-text-3)}.threads-each{all:unset;cursor:pointer;color:var(--fd-accent);margin-left:10px}.threads-each:hover{color:var(--fd-accent-hover)}.threads-each:focus-visible{outline:2px solid var(--fd-accent);outline-offset:2px;border-radius:var(--fd-r-xs)}.threads-pop{z-index:10001;width:max-content;min-width:min(420px,100vw - 16px);max-width:min(560px,100vw - 16px);display:flex;position:fixed}.threads-pop>.threads-picker{box-sizing:border-box;flex:1;min-height:0}.threads-depth{width:96px}.threads-pop.threads-pop--ends{min-width:0}.threads-ends{border:1px solid var(--fd-line);border-radius:var(--fd-r-card);background:var(--fd-bg);box-shadow:var(--fd-shadow-pop);flex-direction:column;gap:12px;padding:12px;display:flex}.threads-ends__seg{align-self:flex-start}.threads-ends__row{align-items:center;gap:8px;display:flex}.threads-ends__label{min-width:48px;color:var(--fd-text-2);white-space:nowrap}.threads-ends__flip{white-space:nowrap;margin-left:4px}.threads-select.threads-select--ends{min-width:0}.threads-depthwrap{display:inline-flex}.threads-depthwrap.is-over .bends-num,.threads-depthwrap.is-over .bends-num:focus-within{border-color:var(--status-danger)}.threads-depthwrap.is-short .bends-num,.threads-depthwrap.is-short .bends-num:focus-within{border-color:var(--status-warning)}.threads-table tbody tr.threads-table__fixrow td{border-top:0;padding-top:0}.threads-table tbody tr.threads-table__fixrow.is-sub td{background:var(--fd-bg-subtle)}.threads-fix{flex-wrap:wrap;align-items:center;gap:8px 12px;padding-bottom:4px;display:flex}.threads-fix__text{color:var(--fd-text-2);flex:240px}.threads-fix__actions{flex-wrap:wrap;gap:8px;display:inline-flex}.threads-fix__actions .threads-each{margin-left:0}.threads-gate{flex-direction:column;display:flex}.threads-gate__item{border-top:1px solid var(--fd-line-soft);flex-direction:column;gap:6px;padding:12px 0;display:flex}.threads-gate__item:first-child{border-top:0;padding-top:0}.threads-gate__what{color:var(--fd-text-1);font-variant-numeric:tabular-nums}.threads-gate__tag{font-weight:var(--fd-fw-medium);margin-right:8px}.threads-tip{z-index:10002;border:1px solid var(--fd-line);border-radius:var(--fd-r-control);background:var(--fd-bg);box-shadow:var(--fd-shadow-pop);font-size:var(--fd-fs-base);color:var(--fd-text-1);white-space:nowrap;pointer-events:none;padding:4px 8px;position:fixed;transform:translate(-100%)}.threads-tip.is-over{color:var(--status-danger)}.threads-table tbody tr.is-sel td{background:var(--fd-bg-muted)}.threads-table tbody tr.is-sel td.bends-table__idx{color:var(--fd-accent)}.threads-select{all:unset;box-sizing:border-box;cursor:pointer;border:1px solid var(--fd-line-strong);border-radius:var(--fd-r-control);background:var(--fd-bg);width:100%;min-width:136px;height:32px;color:var(--fd-text-1);font-size:var(--fd-fs-base);font-variant-numeric:tabular-nums;white-space:nowrap;justify-content:space-between;align-items:center;gap:8px;padding:0 8px;transition:border-color .12s;display:inline-flex}.threads-select:hover{border-color:var(--fd-btn2-hover-border)}.threads-select.is-open,.threads-select:focus-visible{border-color:var(--fd-accent)}.threads-select.is-empty span{color:var(--fd-placeholder)}.threads-select svg{color:var(--fd-text-3);flex:none}.threads-select.is-open svg{transform:rotate(180deg)}.threads-select.threads-select--class{width:84px;min-width:0}.threads-pop.threads-pop--menu{min-width:0}.threads-menu{border:1px solid var(--fd-line);border-radius:var(--fd-r-card);background:var(--fd-bg);min-width:120px;max-height:280px;box-shadow:var(--fd-shadow-pop);flex-direction:column;padding:4px;display:flex;overflow-y:auto}.threads-menu .threads-opt:focus-visible{background:var(--fd-bg-subtle)}.threads-picker{border:1px solid var(--fd-line);border-radius:var(--fd-r-card);background:var(--fd-bg);box-shadow:var(--fd-shadow-pop);flex-direction:column;gap:8px;padding:8px;display:flex}.threads-picker__search{box-sizing:border-box;border:1px solid var(--fd-line-strong);border-radius:var(--fd-r-control);width:100%;height:32px;font:inherit;font-size:var(--fd-fs-base);color:var(--fd-text-1);outline:none;padding:0 8px}.threads-picker__search:focus{border-color:var(--fd-accent)}.threads-picker__search::placeholder{color:var(--fd-placeholder)}.threads-picker__list{flex-direction:column;flex:auto;min-height:0;max-height:520px;display:flex;overflow-y:auto}.threads-picker__head,.threads-picker__sub{font-size:var(--fd-fs-base);font-weight:var(--fd-fw-medium);color:var(--fd-text-1);margin:8px 8px 6px}.threads-opt__check{color:var(--fd-accent);flex:none;margin-left:auto}.threads-picker__empty{color:var(--fd-text-3);margin:8px}.threads-opt{all:unset;box-sizing:border-box;cursor:pointer;border-radius:var(--fd-r-xs);font-size:var(--fd-fs-base);color:var(--fd-text-1);font-variant-numeric:tabular-nums;justify-content:space-between;align-items:center;gap:8px;padding:6px 8px;display:flex}.threads-opt:hover:not(:disabled){background:var(--fd-bg-subtle)}.threads-tiles{flex-wrap:wrap;gap:6px;padding:0 8px 4px;display:flex}.threads-tile{all:unset;box-sizing:border-box;cursor:pointer;border-radius:var(--fd-r-control);height:28px;font-size:var(--fd-fs-base);color:var(--fd-text-1);font-variant-numeric:tabular-nums;white-space:nowrap;background:#0000000a;align-items:center;padding:0 10px;display:inline-flex}.threads-tile:hover:not(:disabled){background:#00000014}.threads-tile:active:not(:disabled){background:#0000001f}.threads-tile:focus-visible{outline:2px solid var(--fd-accent);outline-offset:1px}.threads-tile.is-on{background:var(--fd-bg);box-shadow:inset 0 0 0 1px var(--fd-accent);color:var(--fd-accent)}.threads-tile:disabled{cursor:default;color:var(--fd-text-4)}.threads-picker__browse{border-top:1px solid var(--fd-line-soft);margin:4px 8px 0;padding-top:12px}.threads-opt.is-on{color:var(--fd-accent);background:var(--fd-bg-subtle)}.threads-opt.is-active{background:var(--fd-bg-subtle)}.threads-opt__meta{color:var(--fd-text-3);margin-left:auto}.threads-opt__meta+.threads-opt__check{margin-left:0}.threads-opt.is-on .threads-opt__meta{color:inherit}.threads-opt--custom{border-top:1px solid var(--fd-line-soft);background:var(--fd-bg);color:var(--fd-accent);border-radius:0;justify-content:flex-start;gap:0;margin-top:4px;position:sticky;bottom:0}.threads-opt--custom.is-active{background:var(--fd-bg-subtle)}.threads-cols{grid-template-columns:minmax(96px,max-content) minmax(0,1fr);gap:12px;padding:0 0 4px;display:grid}.threads-cols__left,.threads-cols__right{flex-direction:column;max-height:248px;display:flex;overflow-y:auto}.threads-col{all:unset;box-sizing:border-box;cursor:pointer;border-radius:var(--fd-r-xs);font-size:var(--fd-fs-base);color:var(--fd-text-1);font-variant-numeric:tabular-nums;white-space:nowrap;padding:6px 8px}.threads-col:hover{background:var(--fd-bg-subtle)}.threads-col.is-on{background:var(--fd-bg-muted);font-weight:var(--fd-fw-medium)}.threads-col--more{color:var(--fd-accent);margin-top:4px}.threads-select.is-misfit,.threads-select.is-misfit:hover{border-color:var(--status-danger)}@media (max-width:1100px){.fd-dialog__panel.threads-dialog .bends-dialog__body{grid-template-rows:280px auto;grid-template-columns:minmax(0,1fr);overflow-y:auto}.fd-dialog__panel.threads-dialog .bends-dialog__side{overflow:visible}}@media (max-width:860px){.threads-select{min-width:120px}}@media (max-width:600px){.threads-table .threads-fix{max-width:calc(100vw - 96px);position:sticky;left:12px}}
