/* Support tickets — shared by /support, the dashboard and the admin Support tab */
.tk-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.tk-pill.open { background: rgba(255,176,32,.15); color: var(--live); border-color: rgba(255,176,32,.3); }
.tk-pill.answered { background: rgba(53,214,143,.15); color: var(--good); border-color: rgba(53,214,143,.3); }
.tk-pill.closed { background: var(--surface-2); color: var(--ink-faint); border-color: var(--line-strong); }
.tk-pill.cat { background: var(--surface-2); color: var(--ink-dim); border-color: var(--line-strong); }
.tk-pill.esc { background: rgba(255,84,112,.14); color: var(--danger); border-color: rgba(255,84,112,.3); }
.tk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal-1); flex: none; box-shadow: 0 0 8px var(--signal-1); }
.tab-badge { display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; align-items: center; justify-content: center; }
.admin-select { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; color: var(--ink); font-size: 13.5px; outline: none; cursor: pointer; font-family: inherit; }

/* priority */
.tk-prio { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; border: 1px solid transparent; }
.tk-prio svg { width: 11px; height: 11px; }
.tk-prio.p-low { color: #8fb4ff; background: rgba(110,150,255,.12); border-color: rgba(110,150,255,.28); }
.tk-prio.p-normal { color: var(--signal-2, #00b5ad); background: rgba(0,181,173,.12); border-color: rgba(0,181,173,.28); }
.tk-prio.p-high { color: #ff8a4c; background: rgba(255,120,60,.14); border-color: rgba(255,120,60,.34); }

/* avatars */
.tk-av { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; display: inline-flex; flex: none; background: var(--surface-2); align-items: center; justify-content: center; }
.tk-av svg, .tk-av img { width: 100%; height: 100%; object-fit: cover; overflow: visible; }
.tk-av.letter { background: var(--signal-grad); color: #0a0714; font-weight: 700; font-size: 13px; }
.tk-av.lg { width: 44px; height: 44px; } .tk-av.lg.letter { font-size: 18px; }
.tk-av.xs { width: 20px; height: 20px; } .tk-av.xs.letter { font-size: 10px; }

/* ---------- layout ---------- */
.tk-layout { display: grid; grid-template-columns: minmax(290px, 370px) minmax(0, 1fr); gap: 16px; align-items: start; }
.tk-list-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tk-list { display: flex; flex-direction: column; gap: 8px; max-height: 72vh; overflow-y: auto; padding-right: 2px; }
.tk-item { position: relative; text-align: left; width: 100%; cursor: pointer; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 12px 14px 12px 18px; color: var(--ink); display: flex; flex-direction: column; gap: 6px; overflow: hidden; transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); font: inherit; }
.tk-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line-strong); }
.tk-item.pr-high::before { background: #ff8a4c; } .tk-item.pr-normal::before { background: var(--signal-2, #00b5ad); } .tk-item.pr-low::before { background: #6e96ff; }
.tk-item:hover { border-color: var(--line-strong); }
.tk-item.active { border-color: var(--signal-1); background: rgba(0,181,173,.07); }
.tk-item-top { display: flex; align-items: center; gap: 8px; }
.tk-item-subject { font-weight: 600; font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-item-prev { font-size: 12.5px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-item-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-faint); }
.tk-item-meta .grow { flex: 1; }
.tk-assignee { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-dim); font-weight: 600; }
.tk-assignee.none { color: var(--ink-faint); font-weight: 500; }
.tk-empty { padding: 36px 16px; text-align: center; color: var(--ink-faint); font-size: 13.5px; }

.tk-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tk-tab { cursor: pointer; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink-dim); font: inherit; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; transition: all var(--dur-fast) var(--ease-out); }
.tk-tab:hover { color: var(--ink); }
.tk-tab.on { color: #0a0714; background: var(--signal-grad); border-color: transparent; }
.tk-tab .n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: rgba(255,255,255,.1); font-size: 11.5px; display: inline-flex; align-items: center; justify-content: center; }
.tk-tab.on .n { background: rgba(10,7,20,.22); }
.tk-tab.t-high:not(.on) .n { background: rgba(255,120,60,.22); color: #ff9a5a; }
.tk-tab.t-esc:not(.on) .n { background: rgba(255,84,112,.22); color: var(--danger); }

/* ---------- chat panel ---------- */
.tk-view { min-width: 0; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.tk-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.02); }
.tk-head-main { flex: 1; min-width: 0; }
.tk-head-title { font-weight: 700; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-head-sub { font-size: 12.5px; color: var(--ink-faint); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.tk-back { display: none; }
.tk-thread { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; height: min(52vh, 520px); overflow-y: auto; background: radial-gradient(1200px 400px at 50% 0, rgba(0,181,173,.05), transparent); }
.tk-day { align-self: center; margin: 10px 0 6px; } .tk-day span { font-size: 11.5px; font-weight: 600; color: var(--ink-dim); background: var(--surface-2); border: 1px solid var(--line); padding: 3px 12px; border-radius: 999px; }
.tk-sys { align-self: center; margin: 8px 0; } .tk-sys span { font-size: 12px; color: var(--ink-faint); background: rgba(255,255,255,.04); padding: 4px 12px; border-radius: 999px; }
.tk-row { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; max-width: 100%; }
.tk-row.cont { margin-top: 2px; }
.tk-row.mine { justify-content: flex-end; }
.tk-av-slot { width: 30px; flex: none; }
.tk-bub { position: relative; max-width: min(78%, 520px); padding: 8px 12px 6px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; line-height: 1.45; word-break: break-word; }
.tk-row.theirs .tk-bub { border-bottom-left-radius: 5px; }
.tk-row.theirs.more .tk-bub { border-bottom-left-radius: 16px; }
.tk-row.theirs.cont .tk-bub { border-top-left-radius: 5px; }
.tk-row.mine .tk-bub { background: linear-gradient(135deg, rgba(0,181,173,.28), rgba(40,150,120,.2)); border-color: rgba(0,181,173,.4); border-bottom-right-radius: 5px; }
.tk-row.mine.more .tk-bub { border-bottom-right-radius: 16px; }
.tk-row.mine.cont .tk-bub { border-top-right-radius: 5px; }
.tk-bub.note { background: rgba(255,176,32,.08); border: 1px dashed rgba(255,176,32,.5); }
.tk-note-tag { font-size: 10.5px; font-weight: 700; color: var(--live); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.tk-who { font-size: 12.5px; font-weight: 700; color: var(--signal-1); margin-bottom: 2px; display: flex; gap: 6px; align-items: center; }
.tk-role { font-size: 10px; font-weight: 700; color: #0a0714; background: var(--signal-grad); padding: 1px 6px; border-radius: 6px; }
.tk-text { white-space: pre-wrap; unicode-bidi: plaintext; } .tk-text a { color: var(--signal-1); text-decoration: underline; }
.tk-meta { display: flex; justify-content: flex-end; align-items: center; gap: 5px; font-size: 10.5px; line-height: 1; color: var(--ink-faint); margin-top: 3px; }
.tk-ticks { display: inline-flex; align-items: center; color: var(--ink-faint); } .tk-ticks.seen { color: #4fd3ff; }
.tk-tick { width: 15px; height: 10px; display: block; }
.tk-view { position: relative; }
.tk-thread { position: relative; scroll-behavior: auto; }

/* albums + attachments */
.tk-album { display: grid; gap: 3px; margin: 2px 0 4px; border-radius: 12px; overflow: hidden; width: 340px; max-width: 100%; }
.tk-album.one { width: auto; display: block; }
.tk-bub .tk-file { width: 100%; box-sizing: border-box; }
.tk-controls .tk-assignee { font-size: 13px; }
.tk-album.n2 { grid-template-columns: 1fr 1fr; }
.tk-album.n3 { grid-template-columns: 1fr 1fr 1fr; }
.tk-album.n4 { grid-template-columns: 1fr 1fr; }
.tk-album.n5 { grid-template-columns: 1fr 1fr 1fr; }
.tk-img { display: block; padding: 0; border: none; background: rgba(0,0,0,.2); cursor: zoom-in; overflow: hidden; position: relative; line-height: 0; }
.tk-album:not(.one) .tk-img { aspect-ratio: 1; }
.tk-album:not(.one) .tk-img img { width: 100%; height: 100%; object-fit: cover; }
.tk-album.one .tk-img { border-radius: 12px; max-width: 100%; } .tk-album.one .tk-img img { height: auto; max-width: 340px; width: 100%; object-fit: cover; }
.tk-img img { display: block; max-width: 100%; max-height: 300px; transition: transform .2s; }
.tk-img:hover img { transform: scale(1.03); }
.tk-bub.img-only { padding: 4px 4px 6px; } .tk-bub.img-only .tk-meta { padding: 0 6px; } .tk-bub.img-only .tk-who, .tk-bub.img-only .tk-note-tag { padding: 3px 6px 0; }
.tk-file { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(0,0,0,.2); text-decoration: none; color: var(--ink); margin: 2px 0 4px; min-width: 210px; transition: background .15s; }
.tk-file:hover { background: rgba(0,0,0,.32); }
.tk-file-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--signal-grad); color: #0a0714; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; }
.tk-file-ic svg { width: 19px; height: 19px; }
.tk-file-ic.pdf { background: linear-gradient(135deg, #ff7a7a, #e0455a); color: #fff; }
.tk-file-ic.zip { background: linear-gradient(135deg, #ffd166, #f59e0b); }
.tk-file-ic.doc { background: linear-gradient(135deg, #7aa8ff, #4f7cf0); color: #fff; }
.tk-file-ic.xls { background: linear-gradient(135deg, #5be3a0, #20b26b); }
.tk-file-ic.media { background: linear-gradient(135deg, #c79bff, #8b5cf6); color: #fff; }
.tk-file-t { display: flex; flex-direction: column; min-width: 0; gap: 1px; } .tk-file-t b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 250px; } .tk-file-t small { color: var(--ink-faint); font-size: 11.5px; }

/* thread extras */
.tk-newdiv { align-self: stretch; display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; color: var(--signal-1); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.tk-newdiv::before, .tk-newdiv::after { content: ''; flex: 1; height: 1px; background: rgba(0,181,173,.35); }
.tk-jump { position: sticky; bottom: 6px; align-self: flex-end; margin: -40px 0 0; width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.4); z-index: 2; padding: 0; }
.tk-jump[hidden] { display: none; }
.tk-jump:hover { border-color: var(--signal-1); }
.tk-jump svg { width: 18px; height: 18px; display: block; }
.tk-jump-n { position: absolute; top: -7px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.tk-jump-n[hidden] { display: none; }
.tk-empty.big { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 70px 24px; }
.tk-empty.big b { color: var(--ink); font-size: 16px; } .tk-empty.big p { max-width: 340px; margin: 0 0 8px; line-height: 1.5; }
.tk-empty-ic { width: 54px; height: 54px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); color: var(--signal-1); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; } .tk-empty-ic svg { width: 24px; height: 24px; }

/* drop overlay */
.tk-view.tk-drop::after { content: 'Drop files to attach'; position: absolute; inset: 8px; z-index: 5; border: 2px dashed var(--signal-1); border-radius: 16px; background: rgba(8,12,16,.82); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; color: var(--signal-1); pointer-events: none; }

/* lightbox */
.tk-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(5,8,12,.92); display: flex; align-items: center; justify-content: center; padding: 56px 70px 70px; }
.tk-lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.tk-lb-btn { position: absolute; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: none; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s; }
.tk-lb-btn:hover { background: rgba(255,255,255,.24); }
.tk-lb-btn svg { width: 20px; height: 20px; display: block; }
.tk-lb-x { top: 14px; right: 14px; } .tk-lb-prev { left: 14px; top: 50%; margin-top: -22px; } .tk-lb-next { right: 14px; top: 50%; margin-top: -22px; }
.tk-lightbox.single .tk-lb-prev, .tk-lightbox.single .tk-lb-next { display: none; }
.tk-lb-bar { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; gap: 14px; align-items: center; justify-content: center; color: #cfd6df; font-size: 13px; padding: 0 16px; }
.tk-lb-name { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-lb-dl { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; text-decoration: none; font-weight: 600; } .tk-lb-dl:hover { background: rgba(255,255,255,.26); } .tk-lb-dl svg { width: 15px; height: 15px; }

/* composer */
.tk-comp { padding: 10px 14px 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; background: rgba(255,255,255,.02); transition: background var(--dur-fast); }
.tk-comp.note-mode { background: rgba(255,176,32,.07); }
.tk-comp.note-mode textarea { border-color: rgba(255,176,32,.5); }
.tk-comp-row { display: flex; gap: 8px; align-items: flex-end; }
.tk-comp textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 160px; resize: none; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 22px; padding: 11px 16px; color: var(--ink); font: inherit; font-size: 14px; outline: none; line-height: 1.4; display: block; box-sizing: border-box; }
.tk-comp textarea:focus { border-color: var(--signal-1); }
.tk-comp-btn, .tk-comp-send { width: 44px; height: 44px; padding: 0; border-radius: 50%; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; line-height: 0; }
.tk-comp-btn { background: var(--surface-2); color: var(--ink-dim); border: 1.5px solid var(--line); } .tk-comp-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.tk-comp-send { background: var(--signal-grad); color: #0a0714; } .tk-comp-send:disabled { opacity: .45; cursor: default; }
.tk-comp-btn svg, .tk-comp-send svg { width: 20px; height: 20px; display: block; }
.tk-comp-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-faint); align-items: center; }
.tk-quota-wrap { display: inline-flex; align-items: center; gap: 8px; }
.tk-quota { display: inline-block; width: 70px; height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; } .tk-quota i { display: block; height: 100%; background: var(--signal-grad); transition: width .2s; } .tk-quota.full i { background: var(--danger); }
.tk-comp.busy .tk-comp-row, .tk-comp.busy .tk-comp-foot { opacity: .65; pointer-events: none; }

/* staged files */
.tk-tray { display: flex; gap: 8px; flex-wrap: wrap; }
.tk-tray[hidden] { display: none; }
.tk-chipf { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 38px 6px 6px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-strong); max-width: 100%; min-width: 190px; overflow: hidden; }
.tk-chipf-th { width: 44px; height: 44px; border-radius: 9px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; flex: none; background: rgba(0,0,0,.25); }
.tk-chipf-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk-chipf-th .tk-file-ic { width: 44px; height: 44px; border-radius: 9px; }
.tk-chipf-t { display: flex; flex-direction: column; min-width: 0; gap: 2px; } .tk-chipf-t b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 190px; } .tk-chipf-t small { font-size: 11px; color: var(--ink-faint); }
.tk-chipf.prep .tk-chipf-th { animation: tkPulse 1s ease-in-out infinite; }
@keyframes tkPulse { 50% { opacity: .45; } }
.tk-x { position: absolute; top: 50%; right: 7px; margin-top: -13px; width: 26px; height: 26px; padding: 0; border-radius: 50%; border: none; background: rgba(255,255,255,.1); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; line-height: 0; transition: background .15s, color .15s; }
.tk-x:hover { background: var(--danger); color: #fff; }
.tk-x svg { width: 13px; height: 13px; display: block; }
.tk-prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--signal-grad); transition: width .15s; }
.tk-attach-row { margin-top: 8px; }
.tk-new .tk-tray { margin-bottom: 0; }
.tk-comp-chip { display: none; }
.tk-closed-note, .tk-lock { padding: 12px 18px; font-size: 13px; color: var(--ink-dim); border-top: 1px solid var(--line); background: rgba(255,176,32,.06); }

/* ---------- new ticket form ---------- */
.tk-new { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.tk-new h3 { margin: 0; }
.tk-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; }
.tk-cat-card { cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; border-radius: var(--radius-md); border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink-dim); font: inherit; font-size: 13px; font-weight: 600; text-align: left; transition: all var(--dur-fast) var(--ease-out); }
.tk-cat-card svg { width: 22px; height: 22px; color: var(--ink-faint); }
.tk-cat-card:hover { border-color: var(--line-strong); color: var(--ink); }
.tk-cat-card.on { border-color: var(--signal-1); color: var(--ink); background: rgba(0,181,173,.1); } .tk-cat-card.on svg { color: var(--signal-1); }
.tk-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; }
.tk-seg button { cursor: pointer; border: none; background: transparent; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink-faint); padding: 11px 8px; border-radius: 10px; display: inline-flex; gap: 7px; align-items: center; justify-content: center; transition: all var(--dur-fast) var(--ease-out); }
.tk-seg button svg { width: 15px; height: 15px; }
.tk-seg button:hover { color: var(--ink); }
.tk-seg button.on[data-p="low"] { background: rgba(110,150,255,.18); color: #8fb4ff; box-shadow: inset 0 0 0 1.5px rgba(110,150,255,.5); }
.tk-seg button.on[data-p="normal"] { background: rgba(0,181,173,.16); color: var(--signal-1); box-shadow: inset 0 0 0 1.5px rgba(0,181,173,.5); }
.tk-seg button.on[data-p="high"] { background: rgba(255,120,60,.18); color: #ff8a4c; box-shadow: inset 0 0 0 1.5px rgba(255,120,60,.55); }
.tk-seg.compact button { padding: 7px 8px; font-size: 12.5px; }
.tk-seg-hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.tk-attach-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- admin ---------- */
.tk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tk-stat { padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--line); }
.tk-stat b { display: block; font-family: var(--font-display); font-size: 22px; }
.tk-stat span { font-size: 11.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; }
.tk-customer { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tk-customer-info { flex: 1; min-width: 180px; } .tk-customer-info b { font-size: 15px; } .tk-customer-info div { font-size: 12.5px; color: var(--ink-dim); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.tk-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.tk-controls .sp { flex: 1; }
.tk-grant { display: none; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 18px; border-bottom: 1px solid var(--line); background: rgba(0,181,173,.05); }
.tk-grant.open { display: flex; }
.tk-customer-card-mini { font-size: 12.5px; }

@media (max-width: 900px) {
  .tk-layout { grid-template-columns: minmax(0, 1fr); }
  .tk-layout .tk-view { display: none; }
  .tk-layout.chat-open .tk-view { display: flex; }
  .tk-layout.chat-open .tk-list-col { display: none; }
  .tk-back { display: inline-flex; }
  .tk-bub { max-width: 86%; }
  .tk-thread { height: 56vh; }
}

.tk-head-sub > .tk-who-line { flex-basis: 100%; }
@media (max-width: 900px) {
  .tk-head { flex-wrap: wrap; padding: 12px 14px; }
  .tk-head-main { flex: 1 1 0; }
  .tk-head .btn { margin-left: auto; }
  .tk-head-title { white-space: normal; }
  .tk-customer, .tk-controls { padding-left: 14px; padding-right: 14px; }
  .tk-thread { padding: 12px 12px; }
}
@media (max-width: 900px) {
  .tk-head-main { flex: 1 1 100%; order: 3; }
  .tk-head .tk-back { order: 0; } .tk-head .tk-av { order: 1; } .tk-head .btn { order: 2; }
}

@media (max-width: 600px) {
  .tk-lightbox { padding: 56px 8px 70px; }
  .tk-lb-prev { left: 6px; } .tk-lb-next { right: 6px; }
  .tk-lb-name { display: none; }
  .tk-album { width: 100%; }
  .tk-file { min-width: 0; width: 100%; } .tk-file-t b { max-width: 180px; }
  .tk-chipf { min-width: 0; flex: 1 1 100%; }
  .tk-comp-foot .tk-hint { display: none; }
}
