.vt-asst {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  
  height: 100%;
}

.vt-asst.with-panel { grid-template-columns: 244px minmax(0, 1fr) 360px; }

.vt-page:has(> .vt-asst) { padding: 0; overflow: hidden; }

.vt-asst-side {
  display: flex; flex-direction: column; min-height: 0;
  border-right: 1px solid var(--vt-border);
  background: var(--vt-surface-alt, rgba(127,127,127,.03));
}

.vt-asst-side-head {
  display: flex; align-items: center; gap: .5rem;
  padding: .85rem 1rem; border-bottom: 1px solid var(--vt-border-soft);
  font-size: .74rem; font-weight: 650; text-transform: uppercase;
  letter-spacing: .05em; color: var(--vt-text-mute);
}

.vt-asst-side-body { flex: 1; min-height: 0; overflow-y: auto; padding: .5rem; }

.vt-asst-side-foot {
  padding: .6rem 1rem; border-top: 1px solid var(--vt-border-soft);
  font-size: .72rem; color: var(--vt-text-mute);
}

.vt-asst-item {
  display: block; width: 100%; text-align: left;
  padding: .7rem .85rem; border-radius: var(--vt-r);
  border: 1px solid transparent; background: transparent;
  cursor: pointer;
}

.vt-asst-item:hover { background: var(--vt-surface-alt, rgba(127,127,127,.06)); }

.vt-asst-item.active {
  background: var(--vt-accent-soft);
  border-color: var(--vt-accent-ring);
}

.vt-asst-item-name {
  font-size: .86rem; font-weight: 600;
  display: flex; align-items: center; gap: .35rem; min-width: 0;
}

.vt-asst-item-name > span:first-child {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.vt-asst-item-name .vt-badge { flex-shrink: 0; }

.vt-asst-item-sub  {
  font-size: .74rem; color: var(--vt-text-mute);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.vt-asst-main { min-width: 0; overflow-y: auto; padding: 0 1.25rem 2rem; }

.vt-asst-bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding: .9rem 0 .8rem;
  background: var(--vt-bg);
  border-bottom: 1px solid var(--vt-border-soft);
  margin-bottom: .9rem;
}

.vt-asst-drawer-head {
  display: flex; align-items: center; gap: .5rem;
  padding: .9rem 1rem; border-bottom: 1px solid var(--vt-border-soft);
}

.vt-asst-drawer-title { font-size: .9rem; font-weight: 650; margin: 0; }

.vt-asst-drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem; }

.vt-title-edit {
  background: none; border: 0; padding: 2px 4px; line-height: 1;
  color: var(--vt-text-mute); opacity: .55; cursor: pointer;
  border-radius: 6px;
}

.vt-title-edit:hover { opacity: 1; background: var(--vt-surface-2, rgba(127,127,127,.12)); }

.vt-title-edit svg { width: 15px; height: 15px; }

.vt-asst-item.passive .vt-asst-item-name,
.vt-asst-item.passive .vt-asst-item-sub { opacity: .45; }

.vt-asst-item.passive.active .vt-asst-item-name,
.vt-asst-item.passive.active .vt-asst-item-sub { opacity: .75; }

.vt-copy-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--vt-surface-2, rgba(127,127,127,.10));
  border-radius: 8px; padding: 8px 10px;
}

.vt-copy-row code { flex: 1; font-size: .9rem; word-break: break-all; }

@media (max-width: 1200px) {
  .vt-asst, .vt-asst.with-panel { grid-template-columns: minmax(0, 1fr); height: auto; }
  .vt-asst-side { border-right: 0; border-bottom: 1px solid var(--vt-border); }
  .vt-asst-side-body { max-height: 220px; }
  
      .vt-asst-main { overflow: visible; padding: 1rem .9rem 2rem; }
  
      .vt-page:has(> .vt-asst) { overflow-y: auto; }
}

.vt-timeline-item {
  position: relative;
  padding: .75rem 0 .75rem 1.5rem;
  border-bottom: 1px solid var(--vt-border-soft);
}

.vt-timeline-item:last-child { border-bottom: 0; }

.vt-timeline-item::before {
  content: "";
  position: absolute; left: 3px; top: 1.15rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--vt-accent);
  box-shadow: 0 0 0 3px var(--vt-accent-soft);
}

.vt-timeline-item::after {
  content: "";
  position: absolute; left: 7px; top: 1.9rem; bottom: -.4rem;
  width: 1px; background: var(--vt-border-soft);
}

.vt-timeline-item:last-child::after { display: none; }

.vt-row { cursor: pointer; }

.vt-asst-summary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem; padding: 1rem 1.4rem;
}

.vt-sum-label { font-size: .72rem; color: var(--vt-text-mute); text-transform: uppercase; letter-spacing: .04em; }

.vt-comp {
  display: flex; flex-direction: column;
  height: 100%;
  border: 1px solid var(--vt-border-soft); border-radius: var(--vt-r-lg);
  padding: .9rem 1rem; background: var(--vt-surface);
}

.vt-comp-metrics { margin-top: auto; }

.vt-comp-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .45rem; }

.vt-comp-kind { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--vt-text-mute); }

.vt-comp-name { font-size: .95rem; font-weight: 620; }

.vt-comp-metrics { display: flex; align-items: center; gap: 1.3rem; margin-top: .7rem; }

.vt-comp-metric-label { font-size: .68rem; color: var(--vt-text-mute); }

.vt-comp-metric-value { font-size: .84rem; font-weight: 560; }

.vt-comp-edit {
  margin-left: auto; display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .6rem; font-size: .76rem; font-weight: 560;
  border: 1px solid var(--vt-border); border-radius: var(--vt-r-sm);
  background: transparent; color: var(--vt-text); cursor: pointer;
}

.vt-comp-edit:hover { background: var(--vt-accent-soft); border-color: var(--vt-accent-ring); color: var(--vt-accent); }

.vt-slider-end { font-size: .72rem; color: var(--vt-text-mute); white-space: nowrap; }

.vt-var-chips { display: flex; flex-direction: column; gap: .3rem; }

.vt-var-chip {
  display: flex; align-items: baseline; gap: .5rem;
  padding: .3rem .5rem; border-radius: var(--vt-r-sm);
  border: 1px solid var(--vt-border-soft);
  background: var(--vt-surface-alt, rgba(127,127,127,.04));
  cursor: pointer;
}

.vt-var-chip:hover { border-color: var(--vt-accent-ring); background: var(--vt-accent-soft); }

.vt-var-chip code { font-size: .76rem; color: var(--vt-accent); }

.vt-var-chip-label { font-size: .74rem; color: var(--vt-text-mute); }

.vt-src-tag {
  display: inline-block; margin-left: .35rem;
  padding: .05rem .4rem; border-radius: 999px;
  font-size: .68rem; font-weight: 600; line-height: 1.5;
  border: 1px solid var(--vt-border-soft);
  color: var(--vt-text-mute);
}

.vt-src-tag.asst    { border-color: var(--vt-accent-ring); color: var(--vt-accent); }
.vt-src-tag.company { border-color: var(--vt-border); }

.vt-var-chip.empty { opacity: .62; border-style: dashed; }

.vt-var-chip-warn {
  margin-left: auto; display: inline-flex; align-items: center;
  color: var(--vt-warning, #b8860b);
}

.vt-var-chip-warn svg { width: 14px; height: 14px; }

.vt-tpl-strip {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem .75rem;
  margin-bottom: .75rem;
  border: 1px solid var(--vt-border);
  border-radius: var(--vt-r);
  background: var(--vt-surface-2);
}

.vt-tpl-strip.empty {
  border-color: color-mix(in srgb, var(--vt-primary) 45%, transparent);
  background: color-mix(in srgb, var(--vt-primary) 8%, transparent);
}

.vt-tpl-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 9px;
  background: color-mix(in srgb, var(--vt-primary) 14%, transparent);
  color: var(--vt-primary);
}

.vt-tpl-title { font-size: .82rem; font-weight: 600; }

.vt-tpl-sub { font-size: .74rem; color: var(--vt-text-mute); }

.vt-tpl-new {
  display: flex; align-items: center; gap: .3rem;
  font-size: .74rem;
  color: var(--vt-warn);
}

.vt-tree-branch {
  display: inline-block; width: 1.4rem; margin-left: .3rem;
  color: var(--vt-text-mute); font-family: monospace;
}

.vt-viewer {
  position: fixed; inset: 0; z-index: 1055;
  display: flex; flex-direction: column;
  background: rgba(11, 20, 26, .96); color: #e9edef;
}
.vt-viewer-bar {
  display: flex; align-items: center; gap: .35rem;
  padding: .5rem .75rem; min-height: 3.25rem;
}
.vt-viewer-count { font-variant-numeric: tabular-nums; font-weight: 600; }
.vt-viewer-name {
  flex: 1; min-width: 0; margin-left: .5rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #aebac1; font-size: .85rem;
}
.vt-viewer-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%;
  background: transparent; color: inherit; text-decoration: none; font-size: 1.1rem;
}
.vt-viewer-btn:hover, .vt-viewer-btn.on { background: rgba(255, 255, 255, .12); color: inherit; }
.vt-viewer-btn:disabled, .vt-viewer-btn.disabled { opacity: .4; pointer-events: none; }
.vt-viewer-stage {
  position: relative; flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3.5rem; outline: none;
}
.vt-viewer-stage img {
  max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in;
}

.vt-viewer-stage.zoomed { overflow: auto; display: block; padding: 0; }
.vt-viewer-stage.zoomed img { max-width: none; max-height: none; cursor: zoom-out; }
.vt-viewer-wait { color: #aebac1; }

.vt-viewer-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff;
}
.vt-viewer-nav .vt-icon { width: 1.5rem; height: 1.5rem; }
.vt-viewer-nav.prev .vt-icon { transform: rotate(180deg); }
.vt-viewer-nav:hover { background: rgba(255, 255, 255, .26); }
.vt-viewer-nav.prev { left: .6rem; }
.vt-viewer-nav.next { right: .6rem; }
.vt-viewer-stage.zoomed .vt-viewer-nav { position: fixed; }
.vt-viewer-strip {
  display: flex; gap: .4rem; justify-content: safe center;
  padding: .6rem .75rem; overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.vt-viewer-thumb {
  flex: none; width: 3.5rem; height: 3.5rem; padding: 0;
  border: 2px solid transparent; border-radius: .35rem; overflow: hidden;
  background: rgba(255, 255, 255, .08); opacity: .6;
}
.vt-viewer-thumb.on { border-color: #fff; opacity: 1; }
.vt-viewer-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 575.98px) {
  .vt-viewer-stage { padding: 0; }
  .vt-viewer-thumb { width: 2.75rem; height: 2.75rem; }
}