/*! © 2026 Cengiz Ilerler. All rights reserved. https://cengiz.ilerler.info/ */
.tool-box.tv { position: relative; width: 100%; }
.tv :not(.ibtn) > svg { width: var(--s-4); height: var(--s-4); flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tv-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.tv-facts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); min-width: 0; }
.tv-facts .chip svg { width: var(--s-3); height: var(--s-3); }
.chip.tv-ok { --ph: var(--seaglass); }
.chip.tv-bad { --ph: var(--coral); }
.chip.tv-mono { font-family: var(--mono); }
.tv-sel { width: auto; max-width: 100%; }
.tv-id { max-width: 100%; }
.tv .tool-msg[data-bad] { margin-top: var(--s-3); }
.tv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin: var(--s-4) 0; }
.input.tv-f { width: min(100%, 340px); }
.tv-g { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.tv-g.has-det { grid-template-columns: minmax(0, 1fr) 380px; }
.tv-g[hidden] { display: none; }
.tv-wf, .tv-det { overflow: hidden; }
.tv-scroll { overflow-x: auto; }
.tv-tbl { min-width: 640px; }
.tv-row { display: grid; grid-template-columns: minmax(200px, 38%) minmax(0, 1fr); min-height: var(--h-md); border-bottom: 1px solid var(--line); cursor: pointer; outline: none; }
.tv-row:hover { background: rgba(var(--foam-rgb), .04); }
.tv-row.is-sel { background: var(--tide); box-shadow: inset 2px 0 0 var(--foam); }
.tv-row:focus-visible { box-shadow: inset 0 0 0 2px var(--sea); }
.tv-row.is-off .tv-b { opacity: .22; }
.tv-row.is-off .tv-name, .tv-row.is-off .tv-d { opacity: .5; }
.tv-head { min-height: var(--h-sm); cursor: default; }
.tv-head:hover { background: none; }
.tv-head .tv-name { font: 500 var(--t-small)/1 var(--mono); color: var(--mist); }
.tv-name { display: flex; align-items: center; gap: var(--s-2); min-width: 0; padding: 0 var(--s-3) 0 calc(var(--s-2) + var(--d, 0) * 18px); border-right: 1px solid var(--line); font: 400 var(--t-control)/1.3 var(--sans); color: var(--foam); }
.tv-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-svc { flex: none; font: 400 var(--t-small)/1 var(--sans); color: var(--mist); }
.tv-dot { flex: none; width: 9px; height: 9px; border-radius: 2px; background: var(--c); }
.tv-fold, .tv-nofold { flex: none; display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: var(--r-mark); background: none; color: var(--mist); cursor: pointer; }
.tv-fold svg { width: var(--s-3); height: var(--s-3); transition: transform var(--dur); }
.tv-fold[aria-expanded="true"] svg { transform: rotate(90deg); }
.tv-fold:hover { color: var(--foam); background: var(--tide); }
.tv-bang { flex: none; display: grid; place-items: center; width: var(--s-4); height: var(--s-4); border-radius: 50%; background: var(--coral); color: var(--abyss); font: 700 var(--t-label)/1 var(--sans); }
.tv-row.is-err .tv-nm { color: var(--coral); }
.tv-time { position: relative; margin: 0 56px 0 var(--s-2); background-image: linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line)); background-size: 1px 100%; background-repeat: no-repeat; background-position: 25% 0, 50% 0, 75% 0; }
.tv-head .tv-time span { position: absolute; top: 50%; transform: translate(-50%, -50%); font: 400 var(--t-small)/1 var(--mono); color: var(--mist); white-space: nowrap; }
.tv-head .tv-time span:first-child { transform: translate(0, -50%); }
.tv-head .tv-time span:last-child { transform: translate(-100%, -50%); }
.tv-b { position: absolute; top: 50%; height: var(--s-4); transform: translateY(-50%); border-radius: var(--r-mark); background: var(--c); }
.tv-row.is-err .tv-b { box-shadow: inset 0 -3px 0 var(--coral); }
.tv-d { position: absolute; top: 50%; transform: translateY(-50%); font: 400 var(--t-small)/1 var(--mono); color: var(--mist); white-space: nowrap; }
.tv-d.is-in { color: var(--abyss); font-weight: 500; }
.tv-none { margin: 0; padding: var(--s-4); }
.tv-dim { color: var(--mist); }
.tv-cnote { border-bottom: 1px solid var(--line); color: var(--mist); }
.tv-cnote:empty { display: none; }
.field-label.tv-wh { margin: 0; padding: var(--s-4) var(--s-4) var(--s-2); }
.tv-wr { display: grid; grid-template-columns: minmax(120px, 30%) minmax(0, 1fr) 76px 64px; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-4); border-top: 1px solid var(--line); font: 400 var(--t-control)/1.3 var(--sans); color: var(--body); }
.tv-wn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-wn i { display: inline-block; width: 9px; height: 9px; margin-right: var(--s-2); border-radius: 2px; background: var(--c); vertical-align: 0; }
.tv-wb .meter-fill { min-width: var(--s-1); background: var(--c); }
.tv-wm { font: 500 var(--t-small)/1 var(--mono); color: var(--foam); text-align: right; }
.tv-wc { font-size: var(--t-small); color: var(--mist); text-align: right; }
.tv-det[hidden] { display: none; }
.tv-dn { min-width: 0; overflow-wrap: anywhere; }
.tv-pills { display: flex; flex-wrap: wrap; gap: var(--s-2); border-bottom: 1px solid var(--line); }
.field-label.tv-h3 { margin: 0; padding: var(--s-4) var(--s-4) var(--s-2); }
.tool-box .tv-kv th { width: 45%; white-space: normal; overflow-wrap: anywhere; font: 400 var(--t-small)/1.45 var(--mono); color: var(--harbor); vertical-align: top; }
.tool-box .tv-kv td { font-size: var(--t-small); color: var(--body); vertical-align: top; }
.tool-box .tv-ev { margin: var(--s-2) var(--s-4); }
.tv-ev p { margin: 0 0 var(--s-1); }
.tv-ev > p:first-child > svg { display: inline-block; width: var(--s-4); height: var(--s-4); margin-right: var(--s-2); vertical-align: -3px; stroke: var(--ac); }
.tv-ev > p:first-child > svg .fill { fill: var(--ac); stroke: none; }
.tool-box .tv-ev .tv-kv th, .tool-box .tv-ev .tv-kv td { padding: var(--s-1) 0; border: 0; }
.tool-box .tv-ev .tv-kv th { width: 40%; padding-right: var(--s-2); }
pre.tv-st { margin: var(--s-2) 0 0; font: 400 var(--t-small)/1.55 var(--mono); color: var(--body); }
.tv-st summary { color: var(--sea); cursor: pointer; }
.tv-acts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tv-cp, .tv-acts .btn-2 { display: inline-flex; align-items: center; gap: var(--s-2); }
.tv-empty { padding: var(--s-7) var(--s-4); text-align: center; }
.tv-empty[hidden], .tv-drop[hidden] { display: none; }
.tv-drop { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; border: 2px dashed var(--sea); border-radius: var(--r-card); background: rgba(var(--abyss-rgb), .88); font: 500 var(--t-field)/1.3 var(--sans); color: var(--foam); pointer-events: none; }
@media (max-width: 1100px) { .tv-g.has-det { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .input.tv-f { width: 100%; }
  .tv-bar > .keys { flex-basis: 100%; }
  .tv-wr { grid-template-columns: minmax(0, 1fr) 70px 56px; }
  .tv-wb { grid-column: 1 / -1; grid-row: 2; }
}
@media (pointer: coarse) { .card-b.tv-acts, .tv-top { row-gap: var(--s-4); } }
