.vt {
  --vt-bg: var(--surface, #fff);
  --vt-text: var(--ink, #20252b);
  --vt-muted: var(--muted, #626b74);
  --vt-border: var(--border, #d9dee5);
  --vt-accent: var(--brand-ink, var(--brand, #087f5b));
  --vt-on-accent: var(--vt-bg);
  color: var(--vt-text);
  min-width: 0;
}
.vt button { font: inherit; }
.vt :is(button, input, a):focus-visible { outline: 2px solid var(--vt-accent); outline-offset: 3px; }
.vt-toolbar, .vt-filters, .vt-footer, .vt-pages, .vt-choices {
  display: flex;
  align-items: center;
  gap: .45rem;
}
.vt-toolbar { margin-block-end: .55rem; }
.vt-input, .vt-button {
  min-height: 2.65rem;
  border: 1px solid var(--vt-border);
  border-radius: .55rem;
  background: var(--vt-bg);
  color: var(--vt-text);
}
.vt-input { padding-inline: .7rem; width: min(100%, 32rem); min-width: 0; }
.vt-button { padding: .25rem .8rem; cursor: pointer; }
.vt-button:disabled { opacity: .48; cursor: default; }
.vt-button.vt-primary { background: var(--vt-accent); color: var(--vt-on-accent); font-weight: 650; border-color: transparent; }
.vt-button.vt-icon { min-width: 2.65rem; padding: 0 .35rem; font-size: 1.2rem; line-height: 1; }
.vt-filters { gap: .35rem 1.05rem; flex-wrap: wrap; padding: .3rem .7rem .6rem; margin: 0; border: 1px solid var(--vt-border); border-radius: .55rem; }
.vt-filters legend { padding-inline: .25rem; color: var(--vt-muted); font-size: .85rem; }
.vt-filters label { display: inline-flex; gap: .35rem; align-items: center; cursor: pointer; }
.vt-filters input { accent-color: var(--vt-accent); }
.vt-status:not(:empty), .vt-choices:not(:empty) { margin-block: .75rem; }
.vt-choices { flex-wrap: wrap; }
.vt-layout { margin-block-start: .75rem; display: grid; gap: .75rem; grid-template-columns: minmax(0, 2fr) minmax(14rem, 1fr); }
.vt [hidden] { display: none; }
.vt-canvas, .vt-details { border: 1px solid var(--vt-border); border-radius: .8rem; background: var(--vt-bg); min-width: 0; }
.vt-stage { position: relative; height: clamp(19rem, 49vh, 29rem); overflow: hidden; isolation: isolate; }
.vt-scene, .vt-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.vt-lines { pointer-events: none; overflow: visible; }
.vt-lines path { fill: none; stroke: color-mix(in srgb, var(--vt-sense, var(--vt-accent)) 45%, var(--vt-border)); stroke-width: 1.75; }
.vt-lines .vt-selected { stroke: var(--vt-accent); stroke-width: 3; }
.vt [data-sense="1"] { --vt-sense: #2765a5; }
.vt [data-sense="2"] { --vt-sense: #955117; }
.vt [data-sense="3"] { --vt-sense: #7744a5; }
.vt [data-sense="4"] { --vt-sense: #a83d63; }
.vt :is(.vt-word, .vt-link) {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 999px;
}
.vt .vt-word {
  z-index: 2;
  min-height: 2.5rem;
  width: max-content;
  max-width: 8.3rem;
  padding: .32rem .7rem;
  border: 1px solid color-mix(in srgb, var(--vt-sense, var(--vt-accent)) 30%, transparent);
  color: var(--vt-text);
  background: color-mix(in srgb, var(--vt-sense, var(--vt-accent)) 15%, var(--vt-bg));
  font-weight: 650;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.vt-word bdi { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-word[data-root] { background: var(--vt-accent); color: var(--vt-on-accent); z-index: 3; }
.vt-word:is([data-dragging], :focus-visible) { z-index: 4; }
.vt-word[data-dragging] { cursor: grabbing; }
.vt-link {
  z-index: 1;
  width: 2.05rem;
  height: 2.05rem;
  border: 1px solid color-mix(in srgb, var(--vt-sense, var(--vt-accent)) 45%, var(--vt-border));
  color: var(--vt-text);
  background: var(--vt-bg);
  cursor: pointer;
}
.vt-link:is([aria-pressed="true"], :hover, :focus-visible) { z-index: 3; }
.vt-link[aria-pressed="true"] { background: var(--vt-accent); color: var(--vt-on-accent); border-color: transparent; }
.vt-link svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.vt-footer { padding: .65rem; align-items: center; flex-wrap: wrap; }
.vt-footer p { flex: 1 1 12rem; margin: 0; color: var(--vt-muted); font-size: .83rem; }
.vt-pages { padding: 0 .65rem .65rem; }
.vt-details { padding: 1rem; max-height: min(37rem, 70vh); overflow: auto; }
.vt-details h2 { margin: .55rem 0; word-break: break-word; }
.vt-details h3 { margin: 0 0 .4rem; font-size: 1.04rem; }
.vt-part { font-size: .8rem; color: var(--vt-muted); }
.vt-kind { color: var(--vt-accent); font-weight: 650; }
.vt-sense { border-block-start: 1px solid var(--vt-border); padding-block: .6rem; }
.vt-sense p { margin: .25rem 0; }
.vt-examples { padding-inline-start: 1.15rem; margin: .35rem 0 0; color: var(--vt-muted); font-style: italic; }
.vt-dialog { width: min(74rem, calc(100% - 1.25rem)); max-height: calc(100% - 1.25rem); overflow: auto; padding: 1rem; border: 1px solid var(--border, #d9dee5); border-radius: .8rem; background: var(--surface, #fff); color: var(--ink, #20252b); }
.vt-dialog::backdrop { background: rgb(12 19 24 / 55%); }
.vt-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-block-end: .75rem; }
.vt-dialog-header h2 { margin: 0; }
@media (max-width: 740px) {
  .vt-layout { grid-template-columns: minmax(0, 1fr); }
  .vt-details { max-height: none; }
  .vt .vt-word { max-width: 6.65rem; padding-inline: .45rem; font-size: .875rem; }
}
