/*! © 2026 Cengiz Ilerler. All rights reserved. https://cengiz.ilerler.info/ */
.tool-box.ct { width: 100%; position: relative; font-family: var(--sans); }
.ct [hidden] { display: none !important; }
.ct-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ct-top { margin: 0 0 20px; }
.ct-modes { flex: none; }
.ct-modes button { display: inline-flex; align-items: center; gap: 7px; }
.ct-modes svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ct-sec { margin: 0 0 8px; font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.ct-table { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto 1fr; grid-template-areas: "ctl det" "res det"; column-gap: 32px; row-gap: 12px; align-items: start; }
.ct-ctl { grid-area: ctl; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ct-res { grid-area: res; min-width: 0; }
.ct-det { grid-area: det; position: sticky; top: calc(var(--nav-h) + 16px); padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--deep); min-width: 0; }
.ct-sbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ct-search { position: relative; flex: 1 1 320px; display: block; min-width: 0; }
.ct-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--mist); stroke-width: 1.7; stroke-linecap: round; pointer-events: none; }
.ct-search input { width: 100%; height: 46px; padding: 0 14px 0 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--abyss); color: var(--foam); font: 400 15px/1 var(--sans); outline: none; }
.ct-search input:focus { border-color: var(--sea); }
.ct-search input::placeholder { color: var(--mist); opacity: .7; }
.ct-groups { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-gc { height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--tide); color: var(--body); font: 500 13px/1 var(--sans); white-space: nowrap; cursor: pointer; transition: color .15s, background-color .15s, border-color .15s; }
.ct-gc:hover { color: var(--foam); border-color: var(--hair-3); }
.ct-gc[aria-pressed="true"] { background: var(--foam); border-color: var(--foam); color: var(--abyss); cursor: default; }
.ct-gc:focus-visible, .ct-cell:focus-visible, .ct-line:focus-visible, .ct-cp:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.ct-count { margin: 0; font: 400 13px/1.4 var(--sans); color: var(--mist); }
.ct-chip { display: inline-block; padding: 3px 5px; border: 1px dashed currentColor; border-radius: 5px; font: 600 10px/1 var(--mono); letter-spacing: .02em; color: var(--sea); white-space: nowrap; }
.ct-chip.is-invisible, .ct-mk.is-invisible, .ct-k.is-invisible i { color: var(--amber); }
.ct-chip.is-space, .ct-mk.is-space, .ct-k.is-space i { color: var(--sea); }
.ct-chip.is-control, .ct-mk.is-control, .ct-k.is-control i { color: var(--mist); }
.ct-chip.is-error, .ct-mk.is-error, .ct-k.is-error i { color: var(--coral); }
.ct-chip.is-other, .ct-k.is-other i { color: var(--dusk); }
.ct-k.is-ok i { color: var(--seaglass); }
.ct-res.is-grid .ct-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 6px; }
.ct-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 72px; padding: 6px 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--deep); color: var(--foam); cursor: pointer; transition: border-color .12s, background-color .12s; min-width: 0; }
.ct-cell:hover { border-color: var(--hair-3); }
.ct-cell.is-on { border-color: var(--sea); background: var(--tide); }
.ct-g { font: 400 24px/1.1 var(--sans); max-width: 100%; overflow: hidden; white-space: nowrap; }
.ct-h { font: 500 10px/1 var(--mono); color: var(--mist); }
.ct-lhead, .ct-line { display: grid; grid-template-columns: 52px 88px 64px 104px 118px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 12px; }
.ct-lhead { padding-top: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.ct-line { width: 100%; border: 0; border-bottom: 1px solid var(--hair); background: none; color: var(--body); text-align: left; cursor: pointer; font: 400 13.5px/1.3 var(--mono); transition: background-color .12s; }
.ct-line:hover { background: var(--deep); }
.ct-line.is-on { background: var(--tide); box-shadow: inset 3px 0 0 var(--sea); }
.ct-lg { font: 400 20px/1 var(--sans); color: var(--foam); text-align: center; overflow: hidden; white-space: nowrap; }
.ct-lc { color: var(--foam); }
.ct-le { color: var(--seaglass); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-lhead .ct-le { color: var(--mist); }
.ct-ln { font: 500 12px/1.35 var(--sans); letter-spacing: .02em; color: var(--body); overflow-wrap: anywhere; }
.ct-more { display: block; margin: 16px auto 0; }
.ct-other { display: block; margin: 12px 0 0; padding: 0; border: 0; background: none; color: var(--sea); font: 500 13.5px/1.4 var(--sans); cursor: pointer; text-align: left; }
.ct-other:hover { color: var(--foam); }
.ct-dtop { display: flex; align-items: center; gap: 16px; }
.ct-big { flex: none; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 12px; background: var(--tide); font: 400 52px/1 var(--sans); color: var(--foam); overflow: hidden; }
.ct-big .ct-chip { padding: 6px 8px; font-size: 15px; }
.ct-dname { min-width: 0; }
.ct-eye { margin: 0 0 6px; font: 600 10.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.ct-nm { margin: 0; font: 500 15.5px/1.35 var(--sans); color: var(--foam); overflow-wrap: anywhere; }
.ct-nm.is-none { font-weight: 400; font-size: 14px; color: var(--mist); }
.ct-meta { margin: 6px 0 0; font: 400 13px/1.4 var(--sans); color: var(--mist); }
.ct-forms { margin: 16px 0 0; }
.ct-f { display: grid; grid-template-columns: 100px minmax(0, 1fr) 30px; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--hair); }
.ct-f dt { font: 600 10px/1.25 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.ct-f dd { margin: 0; min-width: 0; }
.ct-f code { font: 400 14px/1.4 var(--mono); color: var(--foam); overflow-wrap: anywhere; }
.ct-also { display: block; margin-top: 2px; font: 400 12px/1.4 var(--sans); color: var(--mist); }
.ct-also code { font-size: 12px; color: var(--body); }
.ct-cp { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--tide); color: var(--mist); cursor: pointer; transition: color .12s, border-color .12s; }
.ct-cp:hover { color: var(--foam); border-color: var(--sea); }
.ct-cp svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ct-ta { display: block; width: 100%; min-height: 168px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--abyss); color: var(--foam); font: 400 14px/1.55 var(--mono); outline: none; resize: vertical; }
.ct-ta:focus { border-color: var(--sea); }
.ct-ta::placeholder { color: var(--mist); opacity: .7; font-family: var(--sans); }
.ct-ibar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 12px 0; }
.ct-kinds { flex: 1 1 320px; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; min-width: 0; }
.ct-k { display: inline-flex; align-items: center; gap: 7px; font: 400 13.5px/1.35 var(--sans); color: var(--body); }
.ct-k i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ct-sw { display: inline-flex; align-items: center; gap: 10px; font: 400 13.5px/1.35 var(--sans); color: var(--body); cursor: pointer; }
.ct-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ct-sw i { flex: none; position: relative; width: 38px; height: 22px; border-radius: 99px; background: var(--tide); border: 1px solid var(--hair-3); transition: background-color .15s; }
.ct-sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--mist); transition: transform .15s, background-color .15s; }
.ct-sw input:checked + i { background: var(--foam); border-color: var(--foam); }
.ct-sw input:checked + i::after { transform: translateX(16px); background: var(--abyss); }
.ct-sw input:focus-visible + i { outline: 2px solid var(--sea); outline-offset: 2px; }
.ct-ibtn { display: inline-flex; gap: 10px; margin-left: auto; }
.ct-clean { min-height: 40px; height: 40px; padding: 0 16px; font-size: 14px; }
.ct-clean:disabled { opacity: .4; cursor: default; }
.ct-moji { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--amber); border-radius: 0 10px 10px 0; background: var(--trench); font: 400 14px/1.5 var(--sans); color: var(--foam); }
.ct-moji span { flex: 1 1 280px; }
.ct-moji .btn-2 { min-height: 36px; height: 36px; padding: 0 14px; font-size: 13.5px; }
.ct-view { max-height: 420px; overflow: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--trench); font: 400 14px/1.75 var(--mono); color: var(--body); white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 4; }
.ct-ws { color: var(--hair-3); user-select: none; }
.ct-mk { display: inline-block; margin: 0 1px; padding: 0 4px; border: 1px dashed currentColor; border-radius: 4px; background: transparent; font: 600 11px/1.45 var(--mono); vertical-align: 1px; user-select: none; }
.ct-na { background: rgba(202, 179, 246, .16); border-bottom: 1px dotted var(--dusk); color: var(--foam); }
.ct-finds { margin-top: 18px; }
.ct-ft { width: auto; max-width: 100%; border-collapse: collapse; font: 400 13px/1.4 var(--sans); }
.ct-ft th { padding: 0 22px 8px 0; font: 600 10.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); text-align: left; white-space: nowrap; }
.ct-ft td { padding: 9px 22px 9px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.ct-ft tr:hover td { background: rgba(238, 244, 246, .03); }
.ct-ft td:last-child, .ct-ft th:last-child { padding-right: 0; }
.ct-fc, .ct-fx { white-space: nowrap; }
.ct-fg { font-size: 15px; }
.ct-fc { font: 500 13px/1 var(--mono); color: var(--foam); }
.ct-fn { font: 500 12.5px/1.35 var(--sans); color: var(--foam); overflow-wrap: anywhere; }
.ct-fx { font: 500 13px/1 var(--mono); color: var(--mist); }
.ct-fa { font-size: 12.5px; color: var(--mist); }
.ct-show { padding: 0; border: 0; background: none; color: var(--sea); font: 500 13px/1.3 var(--sans); cursor: pointer; text-align: left; white-space: nowrap; }
.ct-show:hover { color: var(--foam); }
.ct-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(4, 11, 17, .72); }
.ct-dlg { width: min(500px, 100%); padding: 22px 24px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--deep); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 14px; }
.ct-dlg h2 { margin: 0; font: 400 25px/1.2 var(--serif); color: var(--foam); }
.ct-dlg p { margin: 0; font: 400 15px/1.55 var(--sans); color: var(--body); }
.ct-dlg-f { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.ct-dlg-f .btn, .ct-dlg-f .btn-2 { min-height: 42px; height: 42px; padding: 0 18px; font-size: 14px; }
.ct-toast { position: fixed; left: 50%; bottom: 24px; z-index: 500; transform: translateX(-50%); max-width: min(520px, calc(100% - 32px)); margin: 0; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--tide); box-shadow: 0 12px 32px rgba(0, 0, 0, .5); font: 400 14px/1.45 var(--sans); color: var(--foam); }
.ct-toast.is-bad { border-color: var(--coral); }
@media (max-width: 899px) {
  .ct-table { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ctl" "det" "res"; }
  .ct-det { position: static; padding: 14px; }
  .ct-groups { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .ct-groups::-webkit-scrollbar { display: none; }
  .ct-big { width: 76px; height: 76px; font-size: 42px; }
}
@media (max-width: 640px) {
  .ct-lhead, .ct-line { grid-template-columns: 40px 78px minmax(0, 1fr); gap: 10px; padding: 8px 6px; }
  .ct-ld, .ct-lu, .ct-le { display: none; }
  .ct-res.is-grid .ct-items { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
  .ct-forms { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; align-items: start; }
  .ct-f { grid-template-columns: minmax(0, 1fr) 30px; grid-template-areas: "t c" "v v"; row-gap: 4px; }
  .ct-f dt { grid-area: t; } .ct-f dd { grid-area: v; } .ct-f .ct-cp { grid-area: c; width: 26px; height: 26px; }
  .ct-f code { font-size: 13px; }
  .ct-ft, .ct-ft tbody { display: block; } .ct-ft thead { display: none; }
  .ct-fr { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "g c x" "n n n" "a a a" "s s s"; row-gap: 4px; padding: 9px 0; border-top: 1px solid var(--line); }
  .ct-ft td { display: block; padding: 0; border: 0; }
  .ct-fg { grid-area: g; } .ct-fc { grid-area: c; } .ct-fx { grid-area: x; justify-self: end; } .ct-fn { grid-area: n; } .ct-fa { grid-area: a; } .ct-fs { grid-area: s; }
}
