/* Support ticket pages. Inherits the theme's fonts and colours; light and dark both work
   because borders and tints are mixed from the current text colour. */
.ks-t { --ks-line: color-mix(in srgb, currentColor 22%, transparent); --ks-tint: color-mix(in srgb, currentColor 7%, transparent); max-width: 52rem; margin: 0 auto; font: inherit; color: inherit; }
.ks-t * { box-sizing: border-box; }
.ks-t label { display: block; font-weight: 600; }
.ks-t input[type=text], .ks-t input[type=email], .ks-t select, .ks-t textarea { display: block; width: 100%; margin-top: .25rem; padding: .5rem .6rem; font: inherit; color: inherit; background: transparent; border: 1px solid var(--ks-line); border-radius: 6px; }
.ks-t input[type=file] { display: block; margin-top: .25rem; font: inherit; }
.ks-t .ks-t-check { font-weight: 400; }
.ks-t .ks-t-check input { display: inline; width: auto; margin-right: .4rem; }
.ks-t-btn { display: inline-block; padding: .5rem 1rem; font: inherit; font-weight: 600; color: inherit; text-decoration: none; background: var(--ks-tint); border: 1px solid currentColor; border-radius: 6px; cursor: pointer; }
.ks-t-btn:hover { background: var(--ks-line); }
.ks-t-secondary { border-color: var(--ks-line); font-weight: 400; }
.ks-t-notice { margin: 0 0 1rem; padding: .6rem .8rem; border: 1px solid var(--ks-line); border-left-width: 4px; border-radius: 6px; }
.ks-t-ok { color: #124c29; background: #e5f5e9; border-color: #2e9e5b; }
.ks-t-err { color: #702020; background: #fdeaea; border-color: #d64545; }
.ks-t-empty { opacity: .75; }
.ks-t-badge { display: inline-block; padding: .1rem .5rem; font-size: .85em; border: 1px solid var(--ks-line); border-radius: 999px; background: var(--ks-tint); }
.ks-t-prio-urgent { border-color: #d64545; }
.ks-t-prio-high { border-color: #d98a1c; }
.ks-t-meta { margin: .3rem 0; opacity: .85; }
.ks-t-thread { margin: 1rem 0; }
.ks-t-msg { margin: 0 0 .75rem; padding: .6rem .8rem; border: 1px solid var(--ks-line); border-radius: 8px; }
.ks-t-msg.ks-t-engineer { background: var(--ks-tint); }
.ks-t-msg.ks-t-system { opacity: .7; font-size: .9em; border-style: dashed; }
.ks-t-msg.ks-t-internal { border-color: #d98a1c; border-style: dashed; }
.ks-t-who { font-weight: 600; margin-bottom: .2rem; }
.ks-t-who span { font-weight: 400; opacity: .65; font-size: .85em; margin-left: .4rem; }
.ks-t-body { overflow-wrap: anywhere; white-space: normal; }
.ks-t-files { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.ks-t-img { max-width: 14rem; max-height: 12rem; border: 1px solid var(--ks-line); border-radius: 6px; background: var(--ks-tint); min-width: 4rem; min-height: 3rem; }
.ks-t-list { list-style: none; margin: 1rem 0; padding: 0; }
.ks-t-list li { padding: .6rem 0; border-bottom: 1px solid var(--ks-line); }
.ks-t-when { opacity: .65; font-size: .85em; margin-left: .4rem; }
.ks-t-tabs { display: flex; gap: .5rem; margin: 0 0 1rem; border-bottom: 1px solid var(--ks-line); }
.ks-t-tabs a { padding: .5rem .9rem; text-decoration: none; color: inherit; border-bottom: 3px solid transparent; }
.ks-t-tabs a.ks-t-current { border-bottom-color: currentColor; font-weight: 700; }
.ks-t-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.ks-t-filters select { width: auto; }
.ks-t-queue { max-width: 70rem; }
.ks-t-table { width: 100%; border-collapse: collapse; }
.ks-t-table th, .ks-t-table td { padding: .5rem .6rem; text-align: left; border-bottom: 1px solid var(--ks-line); vertical-align: top; }
.ks-t-controls { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin: 1rem 0; padding: .75rem; border: 1px solid var(--ks-line); border-radius: 8px; }
.ks-t-controls form { margin: 0; }
.ks-t-controls select { display: inline-block; width: auto; }
@media (max-width: 640px) { .ks-t-table thead { display: none; } .ks-t-table td { display: block; border: 0; padding: .15rem .6rem; } .ks-t-table tr { display: block; border-bottom: 1px solid var(--ks-line); padding: .5rem 0; } }
