/*
 * Namanagement panel 3.1 · Destek talepleri (tickets.css)
 * Yalnızca style.css belirteçlerini kullanır; Discord önizlemeleri kendi --dc-* belirteçleriyle
 * koyu/açık temaya uyum sağlar. Tüm animasyonlar prefers-reduced-motion altında kapanır.
 */
:root {
  --dc-bg: #313338;
  --dc-bg2: #2b2d31;
  --dc-bg3: #1e1f22;
  --dc-hover: #2e3035;
  --dc-text: #dbdee1;
  --dc-head: #f2f3f5;
  --dc-muted: #949ba4;
  --dc-line: #3f4147;
  --dc-btn: #4e5058;
  --dc-btn-h: #6d6f78;
  --dc-blurple: #5865f2;
  --dc-link: #00a8fc;
  --dc-mention: #5865f23d;
  --dc-mention-t: #c9cdfb;
  --tk-star: #f5b82e;
  --tk-star0: color-mix(in srgb, var(--muted) 35%, transparent);
}
:root[data-theme="light"] {
  --dc-bg: #ffffff;
  --dc-bg2: #f2f3f5;
  --dc-bg3: #e3e5e8;
  --dc-hover: #f5f6f7;
  --dc-text: #313338;
  --dc-head: #060607;
  --dc-muted: #5c5e66;
  --dc-line: #e1e2e4;
  --dc-btn: #6d6f78;
  --dc-btn-h: #4e5058;
  --dc-link: #006ce7;
  --dc-mention: #5865f226;
  --dc-mention-t: #505cdc;
  --tk-star: #d99a0c;
}

/* ----- Sekmeler ------------------------------------------------------------------ */
.tk-tabs {
  margin-bottom: 18px;
}
.tk-tabs button {
  padding: 7px 14px;
}
.tk-tabn,
.tk-n {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--muted) 18%, transparent);
  color: var(--text2);
}
.tk-tabs button[aria-pressed="true"] .tk-tabn,
.seg button[aria-pressed="true"] .tk-n {
  background: var(--accent-soft);
  color: var(--accent2);
}
.tk-panel-body.tk-swap > * {
  animation: rise 0.36s var(--ease) backwards;
}
.tk-panel-body.tk-swap > :nth-child(2) {
  animation-delay: 40ms;
}
.tk-panel-body.tk-swap > :nth-child(3) {
  animation-delay: 80ms;
}

/* ----- Kurulum rehberi ----------------------------------------------------------- */
.tk-guide {
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--ok) 10%, transparent), transparent 55%),
    var(--card);
}
.tk-guide-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.tk-guide-head h2 {
  margin: 0;
}
.tk-guide-head .sub {
  margin: 3px 0 0;
}
.tk-guide-prog {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.tk-guide-prog b {
  font-size: 20px;
  color: var(--text);
}
.tk-steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  counter-reset: s;
}
.tk-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 10px 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card2);
  transition:
    border-color 0.25s,
    transform 0.25s var(--ease);
}
.tk-steps li > :last-child {
  grid-column: 1 / -1;
  justify-self: start;
}
.tk-steps li.cur {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
.tk-steps li.done {
  opacity: 0.85;
}
.tk-steps b {
  font-size: 14px;
}
.tk-steps p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.tk-stepn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  background: var(--card);
  border: 1px solid var(--line2);
  color: var(--muted);
}
.tk-stepn .ic {
  width: 15px;
  height: 15px;
}
.tk-steps li.cur .tk-stepn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.tk-steps li.done .tk-stepn {
  background: color-mix(in srgb, var(--ok) 18%, transparent);
  border-color: transparent;
  color: var(--ok);
}
.tk-guide.compact .tk-steps li {
  padding: 12px;
}

/* ----- Araç çubuğu ve liste -------------------------------------------------------- */
.tk-toolbar .seg button {
  padding: 6px 11px;
}
.tk-toolbar select {
  min-width: 170px;
  width: auto;
}
.tk-search {
  position: relative;
}
.tk-spin {
  position: absolute;
  right: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  border-right-color: transparent;
  opacity: 0;
  pointer-events: none;
  animation: spin 0.7s linear infinite;
  transition: opacity 0.15s;
}
.tk-search.loading .tk-spin {
  opacity: 1;
}
.tk-search.loading .hint {
  opacity: 0;
}
.tk-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  border: 0;
  padding: 0 2px 10px;
}
.tk-meta:empty {
  display: none;
}
.tk-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--warnc);
  font-weight: 600;
}
.tk-meta-chip .ic {
  width: 14px;
  height: 14px;
}
.tk-livetag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ok);
  font-weight: 600;
  margin-left: auto;
}
.tk-livetag .live-dot {
  display: inline-block;
}
.tk-listcard {
  overflow: visible;
}
.tk-skel {
  padding: 8px 16px;
}
.tk-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tk-row + .tk-row {
  border-top: 1px solid var(--line);
}
.tk-listcard.fresh .tk-row {
  animation: rise 0.42s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 22ms);
}
.tk-row.fresh {
  animation: tkFresh 1.6s var(--ease);
}
@keyframes tkFresh {
  0% {
    background: color-mix(in srgb, var(--ok) 18%, transparent);
  }
}
.tk-hit {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 12px 16px 12px 18px;
  position: relative;
  transition: background-color 0.15s;
}
.tk-row:first-child .tk-hit {
  border-radius: var(--radius) var(--radius) 0 0;
}
.tk-row:last-child .tk-hit {
  border-radius: 0 0 var(--radius) var(--radius);
}
.tk-hit:hover {
  background: var(--card2);
}
.tk-hit:focus-visible {
  outline-offset: -2px;
}
.tk-hit > .ic {
  width: 16px;
  height: 16px;
  color: var(--faint);
  transition: transform 0.2s var(--ease);
}
.tk-hit:hover > .ic {
  transform: translateX(3px);
  color: var(--text2);
}
.tk-row.sel .tk-hit {
  background: var(--accent-soft);
}
.tk-row.sel .tk-hit::before,
.tk-row.unanswered .tk-hit::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--warnc);
}
.tk-row.sel .tk-hit::before {
  background: var(--accent);
}
.tk-numcol {
  display: grid;
  gap: 5px;
  justify-items: start;
}
.tk-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  letter-spacing: -0.3px;
}
.tk-st .ic {
  width: 12px;
  height: 12px;
}
.tk-row.st-closed .tk-num,
.tk-row.st-deleted .tk-num {
  color: var(--muted);
}
.tk-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.tk-l1,
.tk-l2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-width: 0;
}
.tk-l2 {
  font-size: 12.5px;
  color: var(--muted);
}
.tk-l2 > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.tk-l2 .ic {
  width: 13px;
  height: 13px;
  color: var(--faint);
}
.tk-l3 {
  font-size: 12.5px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tk-claim.none {
  color: var(--faint);
}
.tk-topic {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 2px 9px 2px 7px;
  border-radius: 99px;
  border: 1px solid var(--line2);
  background: var(--card2);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text2);
  min-width: 0;
}
.tk-topic > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tk-topic.none {
  color: var(--faint);
  font-weight: 500;
}
.tk-emo {
  font-size: 14px;
  line-height: 1;
  flex: none;
}
img.tk-emo {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.tk-op {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 13.5px;
}
.tk-op b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: var(--text);
}
.tk-side {
  display: grid;
  justify-items: end;
  gap: 5px;
}
.tk-mc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.tk-mc .ic {
  width: 13px;
  height: 13px;
}
.tk-wait {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  color: var(--warnc);
  white-space: nowrap;
}
.tk-wait i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warnc);
  position: relative;
}
.tk-wait i::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--warnc);
  opacity: 0;
  animation: ping 2.2s var(--ease) infinite;
}
.tk-stars {
  display: inline-flex;
  gap: 1px;
  vertical-align: middle;
}
.tk-stars svg {
  width: var(--sz, 14px);
  height: var(--sz, 14px);
  display: block;
}
.tk-s0 {
  fill: var(--tk-star0);
}
.tk-s1 {
  fill: var(--tk-star);
}
.tk-morewrap {
  border-top: 1px solid var(--line);
}

/* ----- İstatistik ------------------------------------------------------------------ */
.tk-statsbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.tk-statgrid {
  margin-top: 14px;
}
.tk-statgrid .statvalue {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.tk-of {
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0;
}
.tk-statgrid .statnote {
  gap: 8px;
  flex-wrap: wrap;
}
.tk-rc {
  color: var(--muted);
}
#tk-stats.tk-in > * {
  animation: rise 0.42s var(--ease) backwards;
}
#tk-stats.tk-in > :nth-child(2) {
  animation-delay: 60ms;
}
#tk-stats.tk-in > :nth-child(3) {
  animation-delay: 120ms;
}
#tk-stats .stagger > * {
  animation: rise 0.42s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.tk-chartcard {
  margin-bottom: 16px;
}
.tk-chartcard .cardhead {
  flex-wrap: wrap;
}
.tk-chartcard .legend {
  margin: 0;
}
.tk-lg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tk-key-o,
.tk-key-c {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
  background: var(--accent);
  flex: none;
}
.tk-key-c {
  background: var(--ok);
  border-radius: 50%;
}
.tk-chart {
  position: relative;
  margin-top: 14px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  padding-bottom: 24px;
}
.tk-chart:focus-visible {
  outline-offset: 4px;
}
.tk-plot {
  position: relative;
  min-width: 0;
}
.tk-chart svg {
  display: block;
  width: 100%;
  height: 200px;
  overflow: visible;
}
.tk-yax {
  position: relative;
}
.tk-yax span,
.tk-xax span {
  position: absolute;
  font-size: 11px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1;
}
.tk-yax span {
  right: 8px;
  transform: translateY(-50%);
}
.tk-xax {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 22px;
}
.tk-xax span {
  top: 8px;
  transform: translateX(-50%);
}
.tk-xax span.first {
  transform: none;
}
.tk-xax span.last {
  transform: translateX(-100%);
}
.tk-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tk-cdot {
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--card);
  border: 1.6px solid var(--ok);
  animation: fadeIn 0.4s 0.7s backwards;
}
.tk-grid {
  stroke: var(--line);
  stroke-dasharray: 3 4;
  vector-effect: non-scaling-stroke;
}
.tk-bar {
  fill: color-mix(in srgb, var(--accent) 78%, transparent);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: tkBar 0.7s var(--ease) backwards;
  animation-delay: var(--d, 0ms);
  transition:
    fill 0.15s,
    opacity 0.15s;
}
.tk-chart.hover .tk-bar {
  opacity: 0.45;
}
.tk-chart.hover .tk-bar.on {
  opacity: 1;
  fill: var(--accent);
}
@keyframes tkBar {
  from {
    transform: scaleY(0);
  }
}
.tk-cline {
  fill: none;
  stroke: var(--ok);
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: tkLine 1.1s 0.2s var(--ease) backwards;
}
@keyframes tkLine {
  from {
    stroke-dashoffset: 1;
  }
}
.tk-cursor {
  stroke: var(--line2);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transition: opacity 0.15s;
}
.tk-chart.hover .tk-cursor {
  opacity: 1;
}
.tk-zone {
  fill: transparent;
  cursor: crosshair;
}
.tk-ctip {
  position: absolute;
  top: -6px;
  z-index: 3;
  display: grid;
  gap: 3px;
  min-width: 150px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line2);
  box-shadow: var(--shadow-lg);
  font-size: 12.5px;
  pointer-events: none;
  animation: fadeIn 0.15s;
}
.tk-ctip b {
  font-size: 12.5px;
}
.tk-ctip span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text2);
}
.tk-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.tk-two > * {
  min-width: 0;
}
.tk-bars,
.tk-board {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.tk-bars li {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr) auto 38px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.tk-bl {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
}
.tk-bl span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tk-bt {
  height: 8px;
  border-radius: 99px;
  background: var(--card2);
  overflow: hidden;
}
.tk-bt i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform-origin: left;
  animation: tkGrow 0.8s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 60ms + 120ms);
}
.tk-bars li:nth-child(1) .tk-bt i {
  --i: 0;
}
@keyframes tkGrow {
  from {
    transform: scaleX(0);
  }
}
.tk-bars small {
  color: var(--faint);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.tk-bars b {
  font-variant-numeric: tabular-nums;
}
.tk-board li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  transition: background-color 0.15s;
}
.tk-board li:hover {
  background: var(--card2);
}
.tk-board .grow {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.tk-board b {
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tk-rank {
  width: 24px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.tk-rank.r1 {
  color: #e9b949;
}
.tk-rank.r2 {
  color: #b8c0cc;
}
.tk-rank.r3 {
  color: #d08c5a;
}
.tk-sbar {
  display: flex;
  height: 6px;
  border-radius: 99px;
  background: var(--card2);
  overflow: hidden;
}
.tk-sbar i {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--ok);
  animation: tkGrow 0.8s var(--ease) backwards;
  transform-origin: left;
}
.tk-sbar i.a {
  background: var(--accent);
}
.tk-sn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 44px;
  justify-content: flex-end;
}
.tk-sn .ic {
  width: 13px;
  height: 13px;
}

/* ----- Ayarlar ------------------------------------------------------------------- */
.tk-cfgskel {
  display: grid;
  gap: 16px;
}
.tk-warn {
  margin-bottom: 16px;
}
.tk-setup {
  margin-bottom: 18px;
}
.tk-setup .cardhead {
  flex-wrap: wrap;
}
.tk-tlist,
.tk-plist {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.tk-tlist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card2);
  transition:
    border-color 0.2s,
    transform 0.25s var(--ease);
  animation: rise 0.4s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 35ms);
}
.tk-tlist li:hover {
  border-color: var(--line2);
}
.tk-tlist li.tk-moved {
  animation: tkMoved 0.7s var(--ease);
}
@keyframes tkMoved {
  0% {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
  }
}
.tk-temoji {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 19px;
  flex: none;
}
.tk-temoji .ic {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.tk-temoji img {
  width: 22px;
  height: 22px;
}
.tk-tmain {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.tk-tmain b {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.tk-tmain > small {
  color: var(--muted);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.tk-tmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 3px;
  font-size: 12px;
  color: var(--faint);
}
.tk-tmeta > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.tk-tmeta .ic {
  width: 12px;
  height: 12px;
}
.tk-tmeta .tk-bad {
  color: var(--bad);
}
.tk-rdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rc);
  display: inline-block;
  margin-left: 2px;
}
.tk-tact {
  display: flex;
  flex: none;
}
.tk-tact .iconbtn,
.tk-pact .iconbtn,
.tk-qact .iconbtn {
  width: 32px;
  height: 32px;
}
.tk-tact .iconbtn .ic,
.tk-pact .iconbtn .ic,
.tk-qact .iconbtn .ic {
  width: 16px;
  height: 16px;
}
.iconbtn.tk-del:hover:not(:disabled) {
  color: var(--bad);
  background: var(--bad-bg);
}
.tk-plist li {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card2);
  animation: rise 0.4s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 40ms);
}
.tk-pmini {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--dc-bg2);
  color: var(--dc-text);
  border: 1px solid var(--dc-line);
  min-width: 0;
}
.tk-pmini > i {
  width: 4px;
  flex: none;
  border-radius: 3px;
  background: var(--pc);
}
.tk-pmini span {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.tk-pmini b {
  color: var(--dc-head);
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tk-pmini small {
  color: var(--dc-muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tk-pinfo {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.tk-pch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
  font-size: 13px;
  margin-right: 4px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.tk-pch .ic {
  width: 14px;
  height: 14px;
  color: var(--faint);
}
.tk-pact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.tk-pact .secondary,
.tk-pact .primary {
  min-height: 32px;
  padding: 6px 11px;
}
.tk-sform {
  margin-bottom: 8px;
}
.tk-sgroups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.tk-sg {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px 16px;
  margin: 0;
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}
.tk-sg legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 6px;
}
.tk-sg legend .ic {
  width: 15px;
  height: 15px;
}
.fields label.tk-check {
  align-items: flex-start;
}
.tk-check input {
  margin-top: 1px;
}
.tk-check span {
  display: grid;
  gap: 2px;
}
.tk-check small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 450;
}
.tk-unitwrap {
  position: relative;
  display: block;
}
.tk-unitwrap input {
  padding-right: 40px;
}
.tk-unit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12.5px;
  color: var(--faint);
  pointer-events: none;
}
.tk-phs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.tk-phs .chipbtn {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 3px 9px;
}

/* ----- Konu penceresi ------------------------------------------------------------ */
.tk-tf-grid,
.tk-pf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.tk-tf-main,
.tk-tf-side,
.tk-pf-main,
.tk-pf-side {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.tk-pf-side {
  position: sticky;
  top: 0;
  gap: 8px;
}
.tk-emorow {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.tk-emorow .grow {
  min-width: 0;
}
.tk-emofield {
  width: 92px;
  flex: none;
}
.tk-emofield input {
  text-align: center;
  font-size: 18px;
  padding: 6px 8px;
}
.tk-emopick {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: -6px;
}
.tk-emopick .chipbtn {
  font-size: 15px;
  padding: 2px 8px;
  line-height: 1.4;
}
.tk-qhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tk-qcount {
  color: var(--faint);
  font-weight: 500;
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}
.tk-qempty {
  margin: 0;
}
.tk-qs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.tk-qs:empty {
  display: none;
}
.tk-q {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card2);
}
.tk-q.tk-qin {
  animation: rise 0.32s var(--ease);
}
.tk-qn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent2);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 22px;
}
.tk-qf {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.tk-qgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}
.tk-qgrid label {
  font-size: 12.5px;
  gap: 4px;
}
.tk-qgrid input {
  padding: 7px 10px;
  font-size: 13.5px;
}
.tk-qopts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.tk-qopts label.checkline {
  font-size: 12.5px;
  gap: 8px;
}
.tk-qact {
  display: grid;
  align-content: start;
  gap: 2px;
}
.tk-fprevwrap {
  display: grid;
  gap: 8px;
}
.tk-noq {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0;
}
.tk-noq .ic {
  width: 15px;
  height: 15px;
}
/* Discord modal önizlemesi */
.dcm {
  background: var(--dc-bg);
  color: var(--dc-text);
  border-radius: 10px;
  padding: 16px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--dc-line);
  font-size: 13px;
}
.dcm-head {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--dc-head);
  font-size: 15px;
}
.dcm-ic {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--dc-blurple);
  color: #fff;
  display: grid;
  place-items: center;
}
.dcm-ic .ic {
  width: 14px;
  height: 14px;
}
.dcm-f {
  display: grid;
  gap: 6px;
}
.dcm-l {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--dc-muted);
  overflow-wrap: anywhere;
}
.dcm-l i {
  color: #f23f43;
  font-style: normal;
  margin-left: 3px;
}
.dcm-i {
  min-height: 36px;
  border-radius: 4px;
  background: var(--dc-bg3);
  padding: 9px 10px;
  color: var(--dc-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.dcm-i.long {
  min-height: 70px;
}
.dcm-foot {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  align-items: center;
  margin-top: 2px;
  font-size: 13px;
  color: var(--dc-text);
}
.dcm-ok {
  background: var(--dc-blurple);
  color: #fff;
  padding: 7px 16px;
  border-radius: 4px;
  font-weight: 600;
}

/* ----- Panel penceresi ve Discord mesaj önizlemesi --------------------------------- */
.tk-chwarn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--warnc);
}
.tk-chwarn .ic {
  width: 14px;
  height: 14px;
}
.tk-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.tk-colors input[type="color"] {
  width: 40px;
  height: 38px;
  padding: 3px;
  border-radius: 9px;
  border: 1px solid var(--line2);
  background: var(--input);
  cursor: pointer;
  flex: none;
}
.tk-colors input[name="color_hex"] {
  width: 104px;
  flex: none;
}
.tk-sw {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tk-sw button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sw);
  border: 2px solid var(--card);
  box-shadow: 0 0 0 1px var(--line2);
  transition: transform 0.15s var(--spring);
}
.tk-sw button:hover {
  transform: scale(1.15);
}
.tk-styleseg {
  display: inline-flex;
}
.tk-styleseg label {
  display: inline-flex;
  cursor: pointer;
  position: relative;
}
.tk-styleseg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tk-styleseg span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 560;
  color: var(--muted);
  transition:
    background-color 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}
.tk-styleseg span .ic {
  width: 15px;
  height: 15px;
}
.tk-styleseg input:checked + span {
  background: var(--card);
  color: var(--text);
  box-shadow:
    0 1px 3px #0003,
    0 0 0 1px var(--line2);
}
.tk-styleseg input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
.tk-ptopics .checkgrid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  max-height: 200px;
}
.tk-dcwrap {
  background: var(--dc-bg);
  border: 1px solid var(--dc-line);
  border-radius: 12px;
  padding: 14px 14px 16px 10px;
  color: var(--dc-text);
  font-size: 14px;
  overflow: hidden;
}
.dc-msg {
  display: flex;
  gap: 12px;
  min-width: 0;
}
.dc-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8a5cf6, #5865f2);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.dc-av .ic {
  width: 20px;
  height: 20px;
}
.dc-body {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.dc-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.dc-head b {
  color: var(--dc-head);
  font-weight: 600;
}
.dc-bot {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--dc-blurple);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px 1px 3px;
  border-radius: 4px;
  letter-spacing: 0.2px;
}
.dc-bot .ic {
  width: 10px;
  height: 10px;
  stroke-width: 3;
}
.dc-time {
  color: var(--dc-muted);
  font-size: 12px;
}
.dc-embed {
  display: grid;
  gap: 8px;
  max-width: 440px;
  background: var(--dc-bg2);
  border-left: 4px solid var(--ec);
  border-radius: 4px;
  padding: 10px 14px 12px 12px;
  transition: border-color 0.2s;
}
.dc-title {
  color: var(--dc-head);
  font-size: 15px;
  overflow-wrap: anywhere;
}
.dc-desc {
  font-size: 13.5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.dc-desc a,
.tk-mtext a,
.tk-embed a {
  color: var(--dc-link);
}
.dc-foot {
  font-size: 11.5px;
  color: var(--dc-muted);
}
.dc-comps {
  display: grid;
  gap: 6px;
  max-width: 440px;
}
.dc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 14px;
  border-radius: 4px;
  background: var(--dc-btn);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  max-width: 100%;
  animation: tkPop 0.3s var(--spring) backwards;
  transition: background-color 0.15s;
}
.dc-btn:hover {
  background: var(--dc-btn-h);
}
.dc-btn span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dc-bemo,
.dc-oemo {
  font-size: 15px;
  line-height: 1;
}
img.dc-bemo,
img.dc-oemo {
  width: 18px;
  height: 18px;
}
@keyframes tkPop {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
}
.dc-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px 8px 12px;
  border-radius: 4px;
  background: var(--dc-bg3);
  border: 1px solid var(--dc-bg3);
  color: var(--dc-muted);
  font-size: 14px;
  text-align: left;
  transition: border-color 0.15s;
}
.dc-select:hover {
  border-color: #000;
}
:root[data-theme="light"] .dc-select:hover {
  border-color: #c4c9ce;
}
.dc-select .ic {
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--ease);
}
.dc-select.open .ic {
  transform: rotate(180deg);
}
.dc-menu {
  border-radius: 4px;
  background: var(--dc-bg2);
  border: 1px solid var(--dc-bg3);
  padding: 4px 0;
  max-height: 260px;
  overflow: auto;
  animation: rise 0.22s var(--ease);
  box-shadow: 0 8px 16px #0000003d;
}
.dc-opt {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  font-size: 14px;
}
.dc-opt:hover {
  background: var(--dc-hover);
}
.dc-opt span {
  display: grid;
  min-width: 0;
}
.dc-opt b {
  font-weight: 500;
  color: var(--dc-head);
}
.dc-opt small {
  color: var(--dc-muted);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dc-empty {
  font-size: 12.5px;
  color: var(--dc-muted);
  font-style: italic;
}

/* ----- Çekmece ------------------------------------------------------------------- */
body.tk-lock {
  overflow: hidden;
}
.tk-wrap {
  position: fixed;
  inset: 0;
  z-index: 75;
}
.tk-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(4 4 10 / 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}
:root[data-theme="light"] .tk-backdrop {
  background: rgb(30 24 52 / 0.28);
}
.tk-dpanel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(720px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateX(104%);
  transition: transform 0.34s var(--ease);
  outline: none;
}
.tk-wrap.open .tk-backdrop {
  opacity: 1;
}
.tk-wrap.open .tk-dpanel {
  transform: none;
}
.tk-wrap.closing .tk-dpanel {
  transition-duration: 0.26s;
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}
.tk-dtop {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 10px 12px 10px 18px;
  border-bottom: 1px solid var(--line);
}
.tk-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.tk-kicker .ic {
  width: 15px;
  height: 15px;
}
.tk-dtop .iconbtn .ic {
  width: 18px;
  height: 18px;
}
.iconbtn.spinning .ic,
[data-tk-refresh].spinning .ic {
  animation: spin 0.8s linear infinite;
}
.tk-dbody {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 20px 28px;
}
.tk-dbody.tk-in > * {
  animation: rise 0.42s var(--ease) backwards;
}
.tk-dbody.tk-in > :nth-child(2) {
  animation-delay: 50ms;
}
.tk-dbody.tk-in > :nth-child(3) {
  animation-delay: 90ms;
}
.tk-dbody.tk-in > :nth-child(4) {
  animation-delay: 130ms;
}
.tk-dpad {
  display: grid;
  gap: 8px;
  padding-top: 10px;
}
.tk-dhead {
  display: grid;
  gap: 10px;
}
.tk-dtrow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tk-dtrow h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 26px;
  letter-spacing: -1px;
}
.tk-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 650;
  color: var(--ok);
  padding: 2px 9px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--ok) 13%, transparent);
}
.tk-dmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.tk-chname {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  color: var(--text2);
  min-width: 0;
  overflow-wrap: anywhere;
}
.tk-chname > .ic {
  width: 14px;
  height: 14px;
  color: var(--faint);
}
.tk-person {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  transition:
    border-color 0.2s,
    background-color 0.2s;
}
button.tk-person:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.tk-person .grow {
  display: grid;
  min-width: 0;
}
.tk-person b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tk-person small {
  font-size: 12px;
  color: var(--muted);
}
.tk-person > .ic {
  width: 16px;
  height: 16px;
  color: var(--faint);
}
.tk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 16px;
}
.tk-actions .primary,
.tk-actions .secondary {
  min-height: 34px;
  padding: 7px 12px;
}
.tk-actions .notice {
  width: 100%;
}
.tk-dtabs {
  margin-bottom: 14px;
}
.tk-dtabpanel.tk-swap {
  animation: rise 0.3s var(--ease);
}
.tk-cells {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.tk-cell {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
  min-width: 0;
}
.tk-cell small {
  font-size: 11.5px;
  color: var(--faint);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.tk-cell b {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tk-cell > span {
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tk-warnc {
  color: var(--warnc);
}
.tk-dsec {
  margin-top: 18px;
}
.tk-dsec h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin: 0 0 10px;
}
.tk-dsec h3 .ic {
  width: 15px;
  height: 15px;
}
.tk-answers {
  margin: 0;
  display: grid;
  gap: 8px;
}
.tk-answers > div {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--card2);
  border: 1px solid var(--line);
}
.tk-answers dt {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}
.tk-answers dd {
  margin: 3px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.tk-tl {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.tk-tl li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  position: relative;
  padding-bottom: 14px;
}
.tk-tl li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 13.5px;
  top: 28px;
  bottom: 0;
  width: 1px;
  background: var(--line2);
}
.tk-tldot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--tbg);
  color: var(--tone);
}
.tk-tldot .ic {
  width: 14px;
  height: 14px;
}
.tk-tl p {
  margin: 4px 0 0;
  font-size: 13.5px;
  overflow-wrap: anywhere;
}
.tk-tl small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.tk-tl time {
  font-size: 12px;
  color: var(--faint);
  margin-top: 5px;
  white-space: nowrap;
}

/* ----- Döküm görüntüleyici ---------------------------------------------------------- */
.tk-ttools {
  position: sticky;
  top: -18px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 -20px;
  padding: 10px 20px;
  background: color-mix(in srgb, var(--bg2) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.tk-tsearch {
  flex: 1 1 200px;
  max-width: 300px;
}
.tk-tsearch input {
  padding-top: 7px;
  padding-bottom: 7px;
  font-size: 13.5px;
}
.tk-ttools .secondary {
  min-height: 34px;
  padding: 6px 11px;
}
.tk-tcount {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.tk-livebtn {
  color: var(--ok) !important;
}
.tk-livebtn .live-dot {
  display: inline-block;
}
.tk-tnote {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 10px 0 0;
}
.tk-tnote .ic {
  width: 14px;
  height: 14px;
}
.tk-chat {
  margin: 12px -8px 0;
  padding: 6px 0 12px;
  border-radius: 12px;
  background: var(--dc-bg);
  color: var(--dc-text);
  border: 1px solid var(--dc-line);
  font-size: 14.5px;
  line-height: 1.42;
}
.tk-chat > .emptystate,
.tk-chat > .emptystate strong {
  color: var(--dc-muted);
}
.tk-daysep {
  display: flex;
  align-items: center;
  margin: 14px 14px 4px;
  color: var(--dc-muted);
  font-size: 11.5px;
  font-weight: 600;
}
.tk-daysep::before,
.tk-daysep::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--dc-line);
}
.tk-daysep span {
  padding: 0 8px;
}
.tk-msg {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 14px;
  padding: 2px 14px 2px 14px;
  margin-top: 12px;
  position: relative;
  transition: background-color 0.1s;
}
.tk-msg.cont {
  margin-top: 0;
}
.tk-msg:hover {
  background: var(--dc-hover);
}
.tk-msg.tk-new {
  animation: tkMsgIn 1.4s var(--ease);
}
@keyframes tkMsgIn {
  0% {
    background: color-mix(in srgb, var(--dc-blurple) 22%, transparent);
    transform: translateY(6px);
  }
  30% {
    transform: none;
  }
}
.tk-msg .tk-reply {
  grid-column: 1 / -1;
}
.tk-mav {
  grid-column: 1;
  padding-top: 2px;
}
.tk-mav .av {
  width: 40px;
  height: 40px;
}
.tk-side-time {
  grid-column: 1;
  font-size: 10.5px;
  color: var(--dc-muted);
  text-align: right;
  padding-top: 3px;
  opacity: 0;
  font-variant-numeric: tabular-nums;
}
.tk-msg.cont:hover .tk-side-time {
  opacity: 1;
}
.tk-mbody {
  grid-column: 2;
  min-width: 0;
}
.tk-mhead {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.tk-author {
  color: var(--dc-head);
  font-weight: 600;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.tk-msg.staff .tk-author {
  color: #c9b3ff;
}
:root[data-theme="light"] .tk-msg.staff .tk-author {
  color: #6a3dd6;
}
.tk-bottag,
.tk-optag {
  align-self: center;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--dc-blurple);
  color: #fff;
  letter-spacing: 0.2px;
}
.tk-optag {
  background: color-mix(in srgb, var(--ok) 22%, transparent);
  color: var(--ok);
  text-transform: none;
}
.tk-mhead time {
  font-size: 12px;
  color: var(--dc-muted);
}
.tk-mtext {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tk-mtext mark,
.tk-embed mark,
.tk-att mark,
.tk-author mark {
  background: color-mix(in srgb, #f0b232 45%, transparent);
  color: inherit;
  border-radius: 2px;
}
.tk-edited {
  font-size: 11px;
  color: var(--dc-muted);
}
.tk-mtext code,
.tk-embed code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--dc-bg2);
  border: 1px solid var(--dc-line);
  padding: 0 4px;
  border-radius: 4px;
}
.tk-code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--dc-bg2);
  border: 1px solid var(--dc-line);
  border-radius: 6px;
  padding: 8px 10px;
  margin: 4px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 560px;
}
.tk-mention {
  background: var(--dc-mention);
  color: var(--dc-mention-t);
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 500;
}
.tk-cemoji {
  width: 20px;
  height: 20px;
  vertical-align: -4px;
  object-fit: contain;
}
.tk-reply {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--dc-muted);
  padding-left: 54px;
  margin-bottom: 2px;
  min-width: 0;
}
.tk-reply .ic {
  width: 14px;
  height: 14px;
  flex: none;
  transform: scaleY(-1);
}
.tk-reply b {
  color: var(--dc-head);
  font-weight: 600;
  white-space: nowrap;
}
.tk-reply span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tk-atts {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  max-width: 440px;
}
.tk-att {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--dc-bg2);
  border: 1px solid var(--dc-line);
  color: var(--dc-link);
  text-decoration: none;
  min-width: 0;
}
.tk-att .grow {
  display: grid;
  min-width: 0;
}
.tk-att b {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tk-att small {
  color: var(--dc-muted);
  font-size: 12px;
}
.tk-att > .ic {
  width: 20px;
  height: 20px;
  color: var(--dc-muted);
  flex: none;
}
a.tk-att:hover {
  border-color: var(--dc-muted);
}
.tk-attimg img {
  display: block;
  max-width: 100%;
  max-height: 240px;
  border-radius: 8px;
}
.tk-embed {
  margin-top: 6px;
  max-width: 480px;
  padding: 8px 12px 10px;
  border-radius: 4px;
  background: var(--dc-bg2);
  border-left: 4px solid var(--accent);
  font-size: 13.5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tk-embed b {
  display: block;
  color: var(--dc-head);
  margin-bottom: 4px;
  font-size: 14px;
}
.tk-embed strong {
  color: var(--dc-head);
}

/* ----- Duyarlı düzen ---------------------------------------------------------------- */
@media (max-width: 1100px) {
  .tk-two {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 860px) {
  .tk-sgroups,
  .tk-tf-grid,
  .tk-pf-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tk-pf-side {
    position: static;
  }
  .tk-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .tk-cells {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .tk-toolbar .seg {
    width: 100%;
  }
  .tk-toolbar .seg button {
    flex: 1;
    justify-content: center;
  }
  .tk-toolbar select {
    flex: 1 1 100%;
  }
  .tk-search {
    max-width: none;
    flex-basis: 100%;
  }
  .tk-tabs {
    display: flex;
  }
  .tk-tabs button {
    flex: 1;
    justify-content: center;
    padding: 7px 8px;
  }
  .tk-hit {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 12px 14px;
  }
  .tk-numcol {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .tk-hit > .ic {
    display: none;
  }
  .tk-side {
    align-self: end;
  }
  .tk-bars li {
    grid-template-columns: minmax(0, 1fr) auto 34px;
  }
  .tk-bars .tk-bt {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .tk-tlist li {
    flex-wrap: wrap;
  }
  .tk-tact {
    width: 100%;
    justify-content: flex-end;
    margin-top: -4px;
  }
  .tk-dbody {
    padding: 14px 14px 24px;
  }
  .tk-ttools {
    margin: 0 -14px;
    padding: 10px 14px;
    top: -14px;
  }
  .tk-tsearch {
    max-width: none;
    flex-basis: 100%;
  }
  .tk-chat {
    margin: 12px -6px 0;
  }
  .tk-msg {
    column-gap: 10px;
    padding: 2px 10px;
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .tk-mav .av {
    width: 34px;
    height: 34px;
  }
  .tk-reply {
    padding-left: 44px;
  }
  .tk-qgrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tk-qn {
    margin-top: 0;
  }
  .tk-cells {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tk-dtrow h2 {
    font-size: 22px;
  }
  .tk-pact .grow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tk-dpanel,
  .tk-backdrop,
  .tk-bar,
  .tk-cline,
  .tk-msg,
  .dc-btn,
  .tk-tlist li,
  .tk-plist li,
  .tk-row,
  .tk-wait i::after,
  .tk-spin {
    animation: none !important;
    transition: none !important;
  }
}
