/* =========================================================
   Black Sistem – پنل کاربری › تیکت و پشتیبانی
   Builds on main.css tokens + .acct / .field / .control /
   .btn-outline / .toast from dashboard.css.
   RTL · light + dark · responsive (320px → 4K)
   ========================================================= */

.tk-page { --art: var(--accent); --soft-ic: var(--accent); display: flex; flex-direction: column; gap: var(--dash-gap); min-width: 0; }
:root[data-theme="dark"] .tk-page { --art: #a78bfa; --soft-ic: #c8b2ff; }

.tk-card { position: relative; isolation: isolate; overflow: hidden; min-width: 0; }
:root[data-theme="dark"] .tk-card { background: linear-gradient(180deg, rgba(76, 29, 149, .14), #080720 38%); }

/* ---------- Card head (title + neon art) ---------- */
.tk-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 96px; margin-bottom: 1.1rem; }
.tk-head__title { position: relative; z-index: 1; min-width: 0; }
.tk-head__title h2 { font-size: clamp(1.1rem, 2.2vw, 1.3rem); font-weight: 800; line-height: 1.5; color: var(--text-strong); }
.tk-head__title p { font-size: .85rem; color: var(--muted); }
.tk-head .acct__icon::after { bottom: -.7rem; }
.tk-head__art {
  flex: none; width: clamp(150px, 22vw, 270px); height: auto; margin-block: -.5rem; color: var(--art); pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18%); mask-image: linear-gradient(to right, transparent 0, #000 18%);
}
.tk-head__art--faq { width: clamp(130px, 18vw, 220px); }
:root[data-theme="dark"] .tk-head__art { filter: drop-shadow(0 0 12px rgba(139, 92, 246, .55)); }

/* ---------- Form ---------- */
.tk-form { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.tk-form[hidden], .tk-done[hidden] { display: none !important; }
.tk-panel { margin: 0; min-width: 0; padding: 1.1rem clamp(1rem, 2vw, 1.4rem) 1.2rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
:root[data-theme="dark"] .tk-panel { background: rgba(14, 11, 40, .55); }
.tk-panel .frow .field { margin-bottom: 0; }

.tk-page .field > label { display: flex; align-items: center; gap: .5rem; }
.tk-page .field > label > .i { color: var(--accent); }
:root[data-theme="dark"] .tk-page .field > label > .i { color: #b79bff; }

/* select + textarea share the input look */
.tk-page .control > select,
.tk-page .control > textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text);
  font-size: .92rem; transition: border-color .18s, box-shadow .18s, background-color .18s;
}
:root[data-theme="dark"] .tk-page .control > select,
:root[data-theme="dark"] .tk-page .control > textarea { background: rgba(6, 5, 24, .8); }
.tk-page .control > select:hover,
.tk-page .control > textarea:hover { border-color: var(--accent-2); }
.tk-page .control > select:focus,
.tk-page .control > textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.tk-page .control > select {
  height: 50px; padding: 0 1rem 0 2.8rem; appearance: none; -webkit-appearance: none; cursor: pointer; text-overflow: ellipsis;
}
.tk-page .control > select:invalid { color: var(--muted); }
.tk-page .control > select option { color: var(--text); background: var(--surface); }
.tk-page .control--select > .i--chev { left: .95rem; width: 18px; height: 18px; color: var(--muted); }
.tk-page .control--select:focus-within > .i--chev { color: var(--accent); }

.tk-page .control > textarea { display: block; min-height: 132px; padding: .85rem 1rem 2.3rem; line-height: 1.9; resize: vertical; }
.tk-page .control > textarea::placeholder { color: var(--muted); opacity: .75; }
.tk-count { position: absolute; left: .9rem; bottom: .55rem; font-size: .76rem; color: var(--muted); direction: ltr; unicode-bidi: isolate; pointer-events: none; }
.tk-count.is-near { color: #f59e0b; }
.tk-count.is-max { color: #ff4d6d; }

.tk-page .field.has-error .control > select,
.tk-page .field.has-error .control > textarea { border-color: #ff4d6d; box-shadow: 0 0 0 3px rgba(255, 77, 109, .14); }
.tk-page .field.has-error .tk-drop { border-color: #ff4d6d; box-shadow: 0 0 0 3px rgba(255, 77, 109, .14); }
.tk-page .field { scroll-margin-block: calc(var(--dash-h) + 20px) 96px; }

/* ---------- Upload + submit row ---------- */
.tk-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.tk-actions .field { margin-bottom: 0; }
.tk-submit { order: -1; }          /* RTL: first = right side, like the design */

.tk-drop {
  position: relative; display: grid; place-items: center; min-height: 104px; padding: .9rem 1rem; text-align: center;
  border: 1.5px dashed var(--line); border-radius: 12px; background: var(--surface-2); color: var(--muted);
  transition: border-color .18s, background-color .18s, box-shadow .18s;
}
:root[data-theme="dark"] .tk-drop { background: rgba(21, 18, 54, .4); border-color: rgba(139, 92, 246, .55); }
.tk-drop input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.tk-drop:hover, .tk-drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.tk-drop:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tk-drop__idle { display: grid; justify-items: center; gap: .1rem; pointer-events: none; }
.tk-drop__idle .i { width: 26px; height: 26px; margin-bottom: .2rem; color: var(--accent); }
:root[data-theme="dark"] .tk-drop__idle .i { color: #b79bff; }
.tk-drop__idle strong { font-size: .9rem; font-weight: 700; color: var(--text-strong); }
.tk-drop__idle small { font-size: .74rem; line-height: 1.8; color: var(--muted); }
.tk-drop__file { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: .6rem; max-width: 100%; }
.tk-drop__file > .i { width: 24px; height: 24px; color: var(--accent); }
.tk-drop__name { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; font-weight: 600; color: var(--text-strong); direction: ltr; unicode-bidi: plaintext; }
.tk-drop__remove { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: 50%; background: rgba(255, 77, 109, .14); color: #ff4d6d; }
.tk-drop__remove:hover { background: #e11d48; color: #fff; }
.tk-drop.has-file { border-style: solid; border-color: var(--accent); }
.tk-drop.has-file input { pointer-events: none; }

.tk-submit {
  display: flex; align-items: center; justify-content: center; gap: .7rem; width: 100%; height: 52px; padding-inline: 1.2rem;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: var(--btn-bg); color: #fff;
  font-size: 1rem; font-weight: 700; box-shadow: var(--btn-shadow); transition: filter .18s, transform .18s, opacity .18s;
}
.tk-submit .i { width: 20px; height: 20px; transform: scaleX(-1); }
.tk-submit:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.tk-submit:disabled { opacity: .6; cursor: progress; }
.tk-submit.is-loading .i { animation: tk-pulse 1s ease-in-out infinite; }
@keyframes tk-pulse { 50% { opacity: .35; } }

/* ---------- Alert + success ---------- */
.tk-alert {
  display: flex; align-items: flex-start; gap: .6rem; margin-bottom: 1rem; padding: .8rem 1rem; border-radius: 12px;
  border: 1px solid #ff4d6d; background: rgba(255, 77, 109, .1); color: #e11d48; font-size: .88rem; line-height: 1.8;
}
:root[data-theme="dark"] .tk-alert { color: #ff8da1; }
.tk-alert .i { margin-top: .25rem; width: 18px; height: 18px; }

.tk-done { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 2rem 1rem 1.6rem; text-align: center; border: 1px dashed var(--line); border-radius: var(--r-md); background: var(--accent-soft); }
.tk-done__ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: #22c55e; border: 2px solid #22c55e; background: rgba(34, 197, 94, .12); }
.tk-done__ic .i { width: 32px; height: 32px; stroke-width: 2; }
.tk-done h3 { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--text-strong); }
.tk-done h3:focus { outline: 0; }
.tk-done p { max-width: 42ch; font-size: .88rem; line-height: 1.9; color: var(--muted); }
.tk-done__code b { color: var(--text-strong); font-family: var(--latin); letter-spacing: .04em; }
.tk-done .btn-outline { margin-top: .5rem; }

/* ---------- FAQ ---------- */
.tk-faq__state { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: 1rem; font-size: .84rem; color: var(--muted); }
.tk-faq__state[hidden] { display: none !important; }
.tk-faq__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; align-items: start; padding: clamp(.6rem, 1.4vw, 1rem); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.tk-faq__grid:empty { display: none; }
:root[data-theme="dark"] .tk-faq__grid { background: rgba(14, 11, 40, .55); }
.tk-faq__col { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.tk-faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
:root[data-theme="dark"] .tk-faq details { background: rgba(8, 7, 32, .85); }
.tk-faq details:hover { border-color: var(--accent-2); }
.tk-faq details[open] { border-color: var(--accent); box-shadow: var(--shadow); }
.tk-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; padding: .7rem 1rem; font-size: .88rem; font-weight: 600; line-height: 1.7; color: var(--text-strong); cursor: pointer; list-style: none; }
.tk-faq summary::-webkit-details-marker { display: none; }
.tk-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 12px; }
.tk-faq summary .i { width: 18px; height: 18px; color: var(--muted); transition: transform .2s, color .2s; }
.tk-faq details[open] summary .i { transform: rotate(180deg); color: var(--accent); }
.tk-faq details p { padding: 0 1rem 1rem; font-size: .84rem; line-height: 2; color: var(--muted); }
.tk-faq details p a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
:root[data-theme="dark"] .tk-faq details p a { color: #b79bff; }

.tk-faq__all {
  display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 46px; margin-top: 1rem; padding: .5rem 1rem;
  border: 1px solid var(--accent); border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: .88rem; font-weight: 600;
  transition: background-color .18s, color .18s;
}
:root[data-theme="dark"] .tk-faq__all { color: #d8ccff; border-color: rgba(139, 92, 246, .8); background: rgba(124, 58, 237, .1); }
.tk-faq__all .i { transition: transform .18s; }
.tk-faq__all:hover { background: var(--accent); color: #fff; }
.tk-faq__all:hover .i { transform: translateX(-4px); }

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 1800px) {
  .tk-head__art { width: 300px; }
  .tk-page .control > textarea { min-height: 150px; }
}

@media (max-width: 900px) {
  .tk-head__art { width: clamp(120px, 24vw, 200px); }
}

@media (max-width: 760px) {
  .tk-page .frow { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .tk-actions { grid-template-columns: minmax(0, 1fr); }
  .tk-submit { order: 0; height: 54px; }
  .tk-faq__grid { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
}

@media (max-width: 560px) {
  .tk-head { min-height: 0; margin-bottom: .9rem; }
  /* art becomes a soft watermark behind the title instead of taking a column */
  .tk-head__art { position: absolute; inset-inline-end: -12px; top: -10px; width: 150px; margin: 0; opacity: .38; }
  .tk-head__art--faq { width: 130px; }
  .tk-head .acct__icon::after { bottom: -.5rem; }
  .tk-page .control > select, .tk-page .control > textarea { font-size: 1rem; }   /* no iOS zoom on focus */
  .tk-faq summary { font-size: .86rem; padding-inline: .9rem; }
  .tk-faq details p { padding-inline: .9rem; }
  .tk-done { padding-block: 1.6rem 1.3rem; }
}

@media (max-width: 360px) {
  .tk-card { padding: .85rem; }
  .tk-panel { padding: .85rem; }
  .tk-drop__idle small { font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tk-submit, .tk-faq__all, .tk-faq__all .i, .tk-faq summary .i { transition: none; }
  .tk-submit.is-loading .i { animation: none; }
}

/* =========================================================
   تیکت‌های من – لیست، مکالمه و پاسخ
   ========================================================= */
.tk-history__count {
  flex: none; padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface-2); color: var(--muted); font-size: .8rem; font-weight: 600;
}
.tk-history__count[hidden], .tk-history[hidden], .tk-empty[hidden], .tk-pager[hidden],
.tk-thread[hidden], .tk-thread__loading[hidden], .tk-badge[hidden] { display: none !important; }

.tk-history { display: flex; flex-direction: column; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.tk-item { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; transition: border-color .18s, box-shadow .18s; }
:root[data-theme="dark"] .tk-item { background: rgba(8, 7, 32, .85); }
.tk-item:hover { border-color: var(--accent-2); }
.tk-item.is-open { border-color: var(--accent); box-shadow: var(--shadow); }

.tk-item__head {
  display: flex; align-items: center; gap: .9rem; width: 100%; min-height: 54px; padding: .85rem 1rem;
  border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer;
}
.tk-item__head:hover { background: var(--accent-soft); }
.tk-item__head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 12px; }
.tk-item__main { display: flex; flex-direction: column; gap: .3rem; flex: 1; min-width: 0; }
.tk-item__top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.tk-code { font-family: var(--latin); font-size: .76rem; font-weight: 600; color: var(--muted); direction: ltr; unicode-bidi: isolate; letter-spacing: .04em; }
.tk-item__subject { font-size: .95rem; font-weight: 700; color: var(--text-strong); }
.tk-item__excerpt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .83rem; color: var(--muted); }
.tk-item__meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .74rem; color: var(--muted); }
.tk-item__new { color: #17b26a; font-weight: 600; }
.tk-item__chev { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform .2s, color .2s; }
.tk-item.is-open .tk-item__chev { transform: rotate(180deg); color: var(--accent); }

/* وضعیت و اولویت */
.tk-badge {
  display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .55rem; border: 1px solid;
  border-radius: 999px; font-size: .72rem; font-weight: 600; line-height: 1.9; white-space: nowrap;
}
.tk-badge--open { color: #2e8bff; border-color: rgba(46, 139, 255, .5); background: rgba(46, 139, 255, .1); }
.tk-badge--in_progress { color: #b45309; border-color: rgba(245, 158, 11, .55); background: rgba(245, 158, 11, .12); }
.tk-badge--answered { color: #15803d; border-color: rgba(23, 178, 106, .55); background: rgba(23, 178, 106, .12); }
.tk-badge--closed { color: var(--muted); border-color: var(--line); background: var(--surface-2); }
.tk-badge--prio { font-weight: 500; color: var(--muted); border-color: var(--line); background: var(--surface-2); }
.tk-badge--prio-high { color: #c2410c; border-color: rgba(249, 115, 22, .5); background: rgba(249, 115, 22, .1); }
.tk-badge--prio-urgent { color: #be123c; border-color: rgba(255, 77, 109, .6); background: rgba(255, 77, 109, .12); }
:root[data-theme="dark"] .tk-badge--open { color: #5aa8ff; }
:root[data-theme="dark"] .tk-badge--in_progress { color: #fbbf24; }
:root[data-theme="dark"] .tk-badge--answered { color: #35d894; }
:root[data-theme="dark"] .tk-badge--prio-high { color: #fb923c; }
:root[data-theme="dark"] .tk-badge--prio-urgent { color: #ff8da1; }

/* مکالمه */
.tk-thread {
  display: flex; flex-direction: column; gap: .8rem; padding: 1rem; border-top: 1px solid var(--line);
  background: var(--surface-2);
}
:root[data-theme="dark"] .tk-thread { background: rgba(14, 11, 40, .55); }
.tk-thread__loading { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .9rem; font-size: .82rem; color: var(--muted); }
.tk-spinner { width: 18px; height: 18px; flex: none; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: tk-spin .8s linear infinite; }
@keyframes tk-spin { to { transform: rotate(360deg); } }

.tk-thread__messages { display: flex; flex-direction: column; gap: .7rem; max-height: 460px; overflow-y: auto; padding-inline-end: .15rem; scrollbar-width: thin; }
.tk-msg { max-width: min(88%, 720px); padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
:root[data-theme="dark"] .tk-msg { background: rgba(8, 7, 32, .9); }
.tk-msg--staff { align-self: flex-end; border-color: rgba(124, 58, 237, .35); background: var(--accent-soft); }
:root[data-theme="dark"] .tk-msg--staff { background: rgba(124, 58, 237, .16); border-color: rgba(139, 92, 246, .45); }
.tk-msg__head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .35rem; }
.tk-msg__author { font-size: .78rem; font-weight: 700; color: var(--text-strong); }
.tk-msg__time { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.tk-msg__body { font-size: .88rem; line-height: 1.95; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.tk-msg__file {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .55rem; font-size: .78rem; font-weight: 600;
  color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
}
:root[data-theme="dark"] .tk-msg__file { color: #b79bff; }

/* فرم پاسخ */
.tk-reply { display: flex; flex-direction: column; gap: .55rem; padding-top: .8rem; border-top: 1px dashed var(--line); }
.tk-reply__input {
  width: 100%; min-height: 84px; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit; font-size: .88rem; line-height: 1.9; resize: vertical;
}
.tk-reply__input::placeholder { color: var(--muted); opacity: .75; }
.tk-reply__input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tk-reply__row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.tk-reply__file {
  position: relative; display: inline-flex; align-items: center; gap: .4rem; min-height: 42px; padding: .3rem .8rem;
  border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: .8rem; cursor: pointer;
  transition: border-color .18s, color .18s;
}
.tk-reply__file:hover, .tk-reply__file:focus-within { border-color: var(--accent); color: var(--accent); }
.tk-reply__file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tk-reply__name { min-width: 0; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; color: var(--muted); direction: ltr; unicode-bidi: plaintext; }
.tk-reply__send {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 42px; margin-inline-start: auto;
  padding: .3rem 1.3rem; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; background: var(--btn-bg);
  color: #fff; font-size: .86rem; font-weight: 700; box-shadow: var(--btn-shadow); transition: filter .18s, opacity .18s;
}
.tk-reply__send:hover:not(:disabled) { filter: brightness(1.1); }
.tk-reply__send:disabled { opacity: .6; cursor: progress; }
.tk-reply__error { margin: 0; font-size: .8rem; line-height: 1.8; color: #e11d48; }
.tk-reply__error[hidden] { display: none !important; }
:root[data-theme="dark"] .tk-reply__error { color: #ff8da1; }

.tk-thread__closed {
  padding: .7rem .9rem; border: 1px dashed var(--line); border-radius: 10px;
  font-size: .82rem; line-height: 1.9; color: var(--muted); text-align: center;
}
.tk-thread__actions { display: flex; justify-content: flex-end; }
.tk-close-btn {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .3rem .9rem;
  border: 1px solid rgba(240, 56, 79, .45); border-radius: 10px; background: transparent;
  color: #e11d48; font-size: .8rem; font-weight: 600; transition: background-color .18s, color .18s;
}
.tk-close-btn:hover:not(:disabled) { background: #e11d48; color: #fff; }
.tk-close-btn:disabled { opacity: .55; cursor: progress; }
:root[data-theme="dark"] .tk-close-btn { color: #ff8da1; }

/* حالت خالی و صفحه‌بندی */
.tk-empty { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.8rem 1rem 1.4rem; text-align: center; border: 1px dashed var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.tk-empty__art { width: 46px; height: 46px; color: var(--accent); opacity: .85; }
:root[data-theme="dark"] .tk-empty__art { color: #b79bff; }
.tk-empty h3 { margin: 0; font-size: .98rem; font-weight: 800; color: var(--text-strong); }
.tk-empty p { max-width: 46ch; font-size: .84rem; line-height: 1.9; color: var(--muted); }

.tk-pager { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: 1rem; }
.tk-pager__btn {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .3rem .9rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text);
  font-size: .82rem; font-weight: 600; transition: border-color .18s, color .18s;
}
.tk-pager__btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.tk-pager__btn:disabled { opacity: .45; cursor: not-allowed; }
.tk-pager__info { font-size: .8rem; color: var(--muted); }

@media (max-width: 760px) {
  .tk-thread { padding: .85rem; }
  .tk-msg { max-width: 100%; }
  .tk-reply__send { margin-inline-start: 0; width: 100%; }
  .tk-item__head { padding: .8rem .85rem; gap: .6rem; }
}

@media (max-width: 420px) {
  .tk-item__excerpt { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .tk-reply__name { max-width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .tk-spinner { animation: none; }
}
