/**
 * Support tickets in My Account.
 * Built on the theme's account tokens (--t4-*) and card language
 * (.t4-my-project, .t4-task-*), so it follows light and dark themes.
 */

.t4-tickets { display: grid; gap: 18px; min-width: 0; }
.t4-tickets .t4-ws-heading { margin: 0; }
.t4-tickets-head { align-items: flex-end; }

/* Buttons */
.t4-ticket-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 18px; border: 0; border-radius: 999px;
  background: linear-gradient(120deg, #1aa0e0, var(--t4-blue) 55%, #0b8f98);
  color: #fff !important; font-size: 13px; font-weight: 750; line-height: 1.4;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 0 12px 22px -16px #0078b8cc; transition: filter .2s ease, transform .2s ease;
}
.t4-ticket-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.t4-ticket-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.t4-ticket-btn > span[aria-hidden="true"]:first-child:not([class]) { font-size: 18px; line-height: 1; }
.t4-ticket-btn--ghost { background: var(--t4-soft); color: var(--t4-ink) !important; box-shadow: none; }
.t4-ticket-btn--wide { width: 100%; min-height: 48px; font-size: 14px; }
.t4-ticket-btn [class*="icon-"] { width: 17px; height: 17px; }

/* Notices */
.t4-ticket-notice {
  margin: 0; padding: 12px 16px; border-radius: 16px;
  background: color-mix(in srgb, #0f7a4a 12%, var(--t4-surface)); color: #0f6a42; font-weight: 700; font-size: 13px;
}
.t4-ticket-notice.is-error { background: color-mix(in srgb, #be123c 10%, var(--t4-surface)); color: #9f1239; }
.t4-ticket-notice ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; }
.t4-ticket-code {
  margin: 0; padding: 12px 16px; border: 1px dashed var(--t4-line); border-radius: 16px; font-weight: 700;
}
.t4-ticket-code code { font-size: 16px; letter-spacing: .12em; user-select: all; }

/* Status pill (shared markup with the team screens) */
.t4-ticket-pill {
  --t4-ticket-c: #64748b;
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--t4-ticket-c) 13%, var(--t4-surface));
  color: color-mix(in srgb, var(--t4-ticket-c) 78%, var(--t4-ink)); font-size: 11.5px; font-weight: 800; white-space: nowrap;
}
.t4-ticket-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--t4-ticket-c); }
.t4-ticket-pill--lg { padding: 7px 14px; font-size: 13px; }

/* Status cards */
.t4-ticket-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 10px; }
.t4-ticket-stats a {
  --t4-ticket-c: var(--t4-blue);
  display: grid; gap: 6px; padding: 14px; border-radius: 18px; text-decoration: none; color: var(--t4-ink);
  background: color-mix(in srgb, var(--t4-soft), var(--t4-surface) 28%);
  border: 1px solid transparent; transition: background .2s ease, border-color .2s ease;
}
.t4-ticket-stats a:hover { background: color-mix(in srgb, var(--t4-ticket-c) 8%, var(--t4-surface)); }
.t4-ticket-stats a.is-active { border-color: color-mix(in srgb, var(--t4-ticket-c) 45%, transparent); background: color-mix(in srgb, var(--t4-ticket-c) 9%, var(--t4-surface)); }
.t4-ticket-stats__label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--t4-muted); font-weight: 700; }
.t4-ticket-stats__label i { width: 8px; height: 8px; border-radius: 50%; background: var(--t4-ticket-c); }
.t4-ticket-stats b { font-size: 22px; line-height: 1; color: var(--t4-ticket-c); }

/* Toolbar */
.t4-ticket-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.t4-ticket-boxes { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--t4-soft); }
.t4-ticket-boxes a { padding: 7px 14px; border-radius: 999px; color: var(--t4-muted); font-size: 12px; font-weight: 750; text-decoration: none; }
.t4-ticket-boxes a.is-active { background: var(--t4-surface); color: var(--t4-ink); box-shadow: 0 6px 14px -10px #102e3c66; }
.t4-ticket-boxes small { opacity: .7; }
.t4-ticket-search { display: flex; gap: 8px; flex: 1 1 280px; max-width: 520px; }
.t4-ticket-search input, .t4-ticket-search select {
  min-width: 0; border: 1px solid var(--t4-line); border-radius: 12px; background: var(--t4-surface); color: var(--t4-ink); padding: 9px 12px;
}
.t4-ticket-search input { flex: 1; }
.t4-ticket-search button { border: 0; border-radius: 12px; padding: 9px 16px; background: var(--t4-blue); color: #fff; font-weight: 800; cursor: pointer; }

/* List */
.t4-ticket-list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 6px; border: 1px solid var(--t4-line); border-radius: 22px; background: var(--t4-surface); box-shadow: 0 16px 36px #102e3c0c; }
.t4-ticket-row {
  --t4-ticket-c: var(--t4-blue);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 40px; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 16px; transition: background .2s ease;
}
.t4-ticket-row::before { content: ""; position: absolute; inset-inline-start: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 99px; background: var(--t4-ticket-c); }
.t4-ticket-row:hover { background: color-mix(in srgb, var(--t4-soft), var(--t4-surface) 40%); }
.t4-ticket-row__main { display: grid; gap: 3px; min-width: 0; color: var(--t4-ink); text-decoration: none; padding-inline-start: 6px; }
.t4-ticket-row__main strong { font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t4-ticket-row__main small { color: var(--t4-muted); font-size: 12px; }
.t4-ticket-row__main em { font-style: normal; color: var(--t4-blue); font-weight: 700; }
.t4-ticket-row__id { color: var(--t4-muted); font-size: 11px; font-weight: 800; }
.t4-ticket-row__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.t4-ticket-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; background: var(--t4-soft); color: var(--t4-muted); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.t4-ticket-chip [class*="icon-"] { width: 13px; height: 13px; }
.t4-ticket-chip--star { color: #b45309; background: color-mix(in srgb, #f59e0b 14%, var(--t4-surface)); }
.t4-ticket-empty { display: grid; justify-items: center; gap: 12px; padding: 36px 18px; border: 1px dashed var(--t4-line); border-radius: 22px; text-align: center; color: var(--t4-muted); }
.t4-ticket-empty > [class*="icon-"] { width: 40px; height: 40px; opacity: .5; }
.t4-ticket-empty p { margin: 0; }

/* View */
.t4-ticket-banner { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(120deg, color-mix(in srgb, var(--t4-blue) 16%, var(--t4-surface)), color-mix(in srgb, var(--t4-teal, #08a4a7) 12%, var(--t4-surface))); color: var(--t4-ink); font-weight: 700; }
.t4-ticket-banner p { margin: 0; line-height: 1.9; }
.t4-ticket-banner [class*="icon-"] { flex: none; width: 20px; height: 20px; color: var(--t4-blue); margin-top: 3px; }
.t4-ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.t4-ticket-thread { display: grid; gap: 12px; min-width: 0; }
.t4-ticket-side { display: grid; gap: 12px; position: sticky; top: 96px; }
.t4-ticket-msg { display: grid; gap: 10px; padding: 16px 18px; border: 1px solid var(--t4-line); border-radius: 20px; background: var(--t4-surface); box-shadow: 0 10px 24px #102e3c08; }
.t4-ticket-msg.is-team { border-color: color-mix(in srgb, var(--t4-blue) 28%, var(--t4-line)); background: color-mix(in srgb, var(--t4-blue) 5%, var(--t4-surface)); }
.t4-ticket-msg > header { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.t4-ticket-msg > header img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.t4-ticket-msg > header strong { display: block; font-size: 13px; }
.t4-ticket-msg > header div span { color: var(--t4-muted); font-size: 11px; }
.t4-ticket-msg.is-team > header div span { color: var(--t4-blue); font-weight: 750; }
.t4-ticket-msg time { color: var(--t4-muted); font-size: 11.5px; white-space: nowrap; }
.t4-ticket-msg__body { line-height: 2; font-size: 14px; color: var(--t4-ink); overflow-wrap: anywhere; }
.t4-ticket-msg__body > :first-child { margin-top: 0; }
.t4-ticket-msg__body > :last-child { margin-bottom: 0; }
.t4-ticket-msg__body img { max-width: 100%; height: auto; border-radius: 12px; }
.t4-ticket-msg__body a { color: var(--t4-blue); }
.t4-ticket-voices { display: grid; gap: 6px; }
.t4-ticket-voices audio { width: 100%; max-width: 420px; height: 38px; }
.t4-ticket-files { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.t4-ticket-files a { display: inline-flex; align-items: center; gap: 8px; max-width: 260px; padding: 6px 10px 6px 12px; border-radius: 12px; background: var(--t4-soft); color: var(--t4-ink); font-size: 12px; font-weight: 700; text-decoration: none; }
.t4-ticket-files a:hover { background: color-mix(in srgb, var(--t4-blue) 10%, var(--t4-surface)); }
.t4-ticket-files a > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t4-ticket-files img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.t4-ticket-files [class*="icon-"] { flex: none; width: 15px; height: 15px; color: var(--t4-muted); }
.t4-ticket-divider { display: flex; align-items: center; gap: 12px; color: var(--t4-muted); font-size: 12px; font-weight: 750; }
.t4-ticket-divider::before, .t4-ticket-divider::after { content: ""; flex: 1; height: 1px; background: var(--t4-line); }
.t4-ticket-closed { margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--t4-soft); color: var(--t4-muted); font-weight: 700; }
.t4-ticket-closed a { color: var(--t4-blue); }

/* Compose */
.t4-ticket-compose { border: 1px solid color-mix(in srgb, var(--t4-blue) 30%, var(--t4-line)); border-radius: 20px; background: var(--t4-surface); overflow: hidden; }
.t4-ticket-compose > summary { display: flex; align-items: center; gap: 8px; padding: 14px 18px; cursor: pointer; list-style: none; font-weight: 800; color: var(--t4-blue); }
.t4-ticket-compose > summary::-webkit-details-marker { display: none; }
.t4-ticket-compose > summary [class*="icon-"] { width: 18px; height: 18px; }
.t4-ticket-compose[open] > summary { border-bottom: 1px solid var(--t4-line); }
.t4-ticket-compose form { display: grid; gap: 12px; padding: 16px 18px 18px; }
.t4-ticket-compose textarea, .t4-ticket-form textarea {
  width: 100%; min-height: 130px; border: 1px solid var(--t4-line); border-radius: 14px; background: var(--t4-surface); color: var(--t4-ink); padding: 12px 14px; line-height: 1.9; resize: vertical;
}
.t4-ticket-compose textarea:focus, .t4-ticket-form :is(input, select, textarea):focus { outline: 2px solid color-mix(in srgb, var(--t4-blue) 45%, transparent); outline-offset: 1px; border-color: var(--t4-blue); }
.t4-ticket-compose__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* Attach */
.t4-ticket-attach { display: grid; gap: 10px; }
.t4-ticket-drop {
  position: relative; display: grid !important; justify-items: center; gap: 4px !important; padding: 18px; border: 1.5px dashed var(--t4-line); border-radius: 16px;
  background: color-mix(in srgb, var(--t4-soft), var(--t4-surface) 50%); color: var(--t4-muted); text-align: center; cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.t4-ticket-drop:hover, .t4-ticket-drop.is-over { border-color: var(--t4-blue); background: color-mix(in srgb, var(--t4-blue) 7%, var(--t4-surface)); }
.t4-ticket-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; padding: 0 !important; border: 0 !important; }
.t4-ticket-drop [class*="icon-"] { width: 26px; height: 26px; color: var(--t4-blue); }
.t4-ticket-drop small { font-size: 11px; opacity: .85; line-height: 1.8; }
.t4-ticket-picked { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.t4-ticket-picked:empty { display: none; }
.t4-ticket-picked li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 10px; border-radius: 999px; background: var(--t4-soft); font-size: 12px; font-weight: 700; color: var(--t4-ink); }
.t4-ticket-picked li.is-error { background: color-mix(in srgb, #be123c 12%, var(--t4-surface)); color: #9f1239; padding-inline: 12px; }
.t4-ticket-picked button, .t4-tk-recording button { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--t4-surface); color: var(--t4-muted); cursor: pointer; line-height: 1; }
.t4-ticket-voice { display: grid; gap: 8px; }
.t4-tk-rec { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--t4-line); border-radius: 999px; background: var(--t4-surface); color: var(--t4-ink); font-weight: 750; font-size: 12.5px; cursor: pointer; }
.t4-tk-rec__dot { width: 10px; height: 10px; border-radius: 50%; background: #e11d48; }
.t4-tk-rec.is-recording { border-color: #e11d48; color: #e11d48; }
.t4-tk-rec.is-recording .t4-tk-rec__dot { animation: t4-tk-pulse 1s infinite; }
.t4-tk-rec__time { font-variant-numeric: tabular-nums; direction: ltr; }
.t4-tk-rec:disabled { opacity: .7; cursor: not-allowed; }
.t4-tk-recordings { display: grid; gap: 6px; }
.t4-tk-recording { display: flex; align-items: center; gap: 8px; }
.t4-tk-recording audio { height: 36px; max-width: 100%; }
@keyframes t4-tk-pulse { 50% { opacity: .25; } }

/* Side cards */
.t4-ticket-card { padding: 18px; gap: 14px; }
.t4-ticket-card dl { display: grid; gap: 10px; margin: 0; }
.t4-ticket-card dl div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid color-mix(in srgb, var(--t4-line), transparent 30%); }
.t4-ticket-card dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.t4-ticket-card dt { color: var(--t4-muted); font-size: 12px; }
.t4-ticket-card dd { margin: 0; font-weight: 750; font-size: 13px; text-align: end; }
.t4-ticket-answers { padding-top: 12px; border-top: 1px dashed var(--t4-line); }
.t4-ticket-product { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--t4-soft); }
.t4-ticket-product img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.t4-ticket-product small { display: block; color: var(--t4-muted); font-size: 11px; }
.t4-ticket-product a { color: var(--t4-ink); font-weight: 800; text-decoration: none; }
.t4-ticket-order { margin: 0; }
.t4-ticket-order a { color: var(--t4-blue); font-weight: 750; font-size: 13px; }
.t4-ticket-prio[data-priority="high"] { color: #be123c; }
.t4-ticket-prio[data-priority="low"] { color: var(--t4-muted); }
.t4-ticket-rate p { margin: 0; color: var(--t4-muted); font-size: 13px; line-height: 1.9; }
.t4-ticket-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin: 0; padding: 0; border: 0; }
[dir="rtl"] .t4-ticket-stars { flex-direction: row; }
.t4-ticket-stars input { position: absolute; opacity: 0; pointer-events: none; }
.t4-ticket-stars label { font-size: 30px; line-height: 1; color: color-mix(in srgb, var(--t4-muted) 35%, var(--t4-surface)); cursor: pointer; transition: color .15s ease, transform .15s ease; }
.t4-ticket-stars label:hover, .t4-ticket-stars label:hover ~ label, .t4-ticket-stars input:checked ~ label { color: #f59e0b; }
.t4-ticket-stars input:focus-visible + label { outline: 2px solid var(--t4-blue); border-radius: 4px; }
.t4-ticket-rated { margin: 0; font-weight: 750; }
.t4-ticket-rated span { color: #f59e0b; letter-spacing: 2px; }
.t4-ticket-cancel { margin: 0; }
.t4-ticket-cancel button { display: inline-flex; align-items: center; gap: 6px; width: 100%; justify-content: center; padding: 10px 14px; border: 1px solid color-mix(in srgb, #be123c 30%, var(--t4-line)); border-radius: 14px; background: transparent; color: #be123c; font-weight: 750; cursor: pointer; }
.t4-ticket-cancel button:hover { background: color-mix(in srgb, #be123c 8%, var(--t4-surface)); }
.t4-ticket-cancel [class*="icon-"] { width: 16px; height: 16px; }

/* New ticket form */
.t4-ticket-help { padding: 20px; }
.t4-ticket-faqs { display: grid; gap: 8px; }
.t4-ticket-faqs h3 { margin: 0 0 4px; font-size: 14px; font-weight: 800; }
.t4-ticket-faqs details { border: 1px solid var(--t4-line); border-radius: 14px; padding: 10px 14px; background: color-mix(in srgb, var(--t4-soft), var(--t4-surface) 60%); }
.t4-ticket-faqs summary { cursor: pointer; font-weight: 750; font-size: 13px; }
.t4-ticket-faqs details div { margin-top: 8px; color: var(--t4-muted); font-size: 13px; line-height: 2; }
.t4-ticket-form { display: grid; gap: 16px; }
.t4-ticket-step { display: grid; gap: 14px; margin: 0; padding: 20px; border: 1px solid var(--t4-line); border-radius: 22px; background: var(--t4-surface); box-shadow: 0 12px 28px #102e3c08; min-width: 0; }
.t4-ticket-step legend { display: inline-flex; align-items: center; gap: 8px; padding: 0 6px; font-size: 14px; font-weight: 800; color: var(--t4-ink); }
.t4-ticket-step legend span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--t4-blue); color: #fff; font-size: 12px; }
.t4-ticket-desc { margin: 0; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--t4-blue) 7%, var(--t4-surface)); color: var(--t4-ink); font-size: 13px; line-height: 1.9; }
.t4-ticket-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.t4-ticket-field:has(textarea), .t4-ticket-field:has(fieldset) { grid-column: 1 / -1; }
.t4-ticket-field fieldset { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; border: 0; }
.t4-ticket-field legend { width: 100%; margin-bottom: 6px; color: var(--t4-muted); font-size: 12px; font-weight: 750; }
.t4-ticket-req { color: #be123c; }
.t4-ticket-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.t4-ticket-links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--t4-soft); color: var(--t4-ink); font-size: 12px; font-weight: 700; text-decoration: none; }
.t4-ticket-links [class*="icon-"] { width: 14px; height: 14px; color: var(--t4-blue); }
.t4-ticket-track form { max-width: 440px; }
.t4-ticket-alt { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }

/* Bought products shortcode */
.t4-ticket-products { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.t4-ticket-products li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--t4-line); border-radius: 16px; background: var(--t4-surface); }
.t4-ticket-products img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.t4-ticket-products strong { flex: 1; }

/* Shortcode wrapper outside My Account */
.t4-ticket-shortcode { max-width: 1100px; margin-inline: auto; }

[data-theme="dark"] .t4-ticket-notice { color: #bff3da; }
[data-theme="dark"] .t4-ticket-notice.is-error { color: #ffd1dc; }
[data-theme="dark"] .t4-ticket-msg, [data-theme="dark"] .t4-ticket-list, [data-theme="dark"] .t4-ticket-step { box-shadow: none; }

@media (max-width: 1024px) {
  .t4-ticket-layout { grid-template-columns: minmax(0, 1fr); }
  .t4-ticket-side { position: static; order: -1; }
}
@media (max-width: 640px) {
  .t4-tickets-head { flex-direction: column; align-items: stretch; }
  .t4-tickets-head .t4-ticket-btn { justify-content: center; }
  .t4-ticket-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .t4-ticket-stats b { font-size: 18px; }
  .t4-ticket-toolbar { flex-direction: column; align-items: stretch; }
  .t4-ticket-boxes { justify-content: space-between; }
  .t4-ticket-search { max-width: none; flex-wrap: wrap; }
  .t4-ticket-search input { flex: 1 1 100%; }
  .t4-ticket-row { grid-template-columns: minmax(0, 1fr) 36px; }
  .t4-ticket-row__meta { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; padding-inline-start: 6px; }
  .t4-ticket-fields { grid-template-columns: minmax(0, 1fr); }
  .t4-ticket-step { padding: 16px; }
  .t4-ticket-msg { padding: 14px; }
  .t4-ticket-msg > header { grid-template-columns: 30px minmax(0, 1fr); }
  .t4-ticket-msg time { grid-column: 2; }
}

/* Support allowance of the customer's subscriptions (tik4-license). */
.t4-support-allowance { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--t4-line, #d8e0dd); border-radius: var(--t4-radius, 12px); background: var(--t4-surface, #fff); }
.t4-support-allowance__title { margin: 0 0 10px; font-size: 12px; font-weight: 700; color: var(--t4-muted, #576b72); }
.t4-support-allowance ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.t4-support-allowance li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.t4-support-allowance__name { display: grid; min-width: 0; }
.t4-support-allowance__name strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t4-support-allowance__name small { color: var(--t4-muted, #576b72); font-size: 11px; }
.t4-support-allowance__state { font-size: 12px; color: var(--t4-ink, #182f3a); text-align: end; }
.t4-support-allowance__bar { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: var(--t4-soft, #eaf1ee); overflow: hidden; }
.t4-support-allowance__bar i { display: block; height: 100%; border-radius: inherit; background: var(--t4-teal, #08a4a7); }
.t4-support-allowance li.is-warn .t4-support-allowance__bar i { background: #e0a100; }
.t4-support-allowance li.is-off .t4-support-allowance__bar i { background: #c62f45; }
.t4-support-allowance li.is-off .t4-support-allowance__state { color: #b8294b; }
.t4-support-allowance__renew { grid-column: 1 / -1; justify-self: start; font-size: 12px; font-weight: 700; color: var(--t4-blue, #0078b8); }

/* =====================================================================
   v2 — inline icons, search toolbar, the step-by-step new ticket form,
   and phones. (The pages used Iconify classes the theme build lacks.)
   ===================================================================== */

.t4-tickets [hidden] { display: none !important; }
.t4-tickets .t4-tk-ico { flex: none; width: 18px; height: 18px; }
.t4-ticket-btn .t4-tk-ico { width: 17px; height: 17px; }
.t4-ticket-chip .t4-tk-ico { width: 13px; height: 13px; }
.t4-ticket-files .t4-tk-ico { width: 15px; height: 15px; color: var(--t4-muted); }
.t4-ticket-banner .t4-tk-ico { width: 20px; height: 20px; margin-top: 3px; color: var(--t4-blue); }
.t4-ticket-cancel .t4-tk-ico { width: 16px; height: 16px; }
.t4-ticket-links .t4-tk-ico { width: 14px; height: 14px; color: var(--t4-blue); }
.t4-task-icon .t4-tk-ico { width: 17px; height: 17px; }
.t4-ticket-empty__ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: color-mix(in srgb, var(--t4-blue) 10%, var(--t4-surface)); color: var(--t4-blue); }
.t4-ticket-empty__ico .t4-tk-ico { width: 28px; height: 28px; }

/* ---------- Search toolbar ---------- */
.t4-tk-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.t4-tk-find { display: flex; flex: 1 1 420px; gap: 8px; min-width: 0; max-width: 640px; margin: 0; }
.t4-tk-find__box {
  position: relative; display: flex; flex: 1 1 auto; align-items: center; min-width: 0; height: 50px; padding-inline: 46px 5px;
  border: 1px solid var(--t4-line); border-radius: 999px; background: var(--t4-surface);
  box-shadow: 0 12px 28px -22px #102e3c66; transition: border-color .2s ease, box-shadow .2s ease;
}
.t4-tk-find__box:focus-within { border-color: var(--t4-blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--t4-blue) 14%, transparent), 0 12px 28px -22px #102e3c66; }
.t4-tk-find__icon { position: absolute; inset-inline-start: 17px; top: 50%; color: var(--t4-muted); pointer-events: none; transform: translateY(-50%); transition: color .2s ease; }
.t4-tk-find__box:focus-within .t4-tk-find__icon { color: var(--t4-blue); }
.t4-tickets .t4-tk-find__box input[type="search"] {
  flex: 1 1 auto; width: auto; min-width: 0; height: 100%; margin: 0; padding: 0 4px; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; outline: 0; color: var(--t4-ink); font: inherit; font-size: 14px; -webkit-appearance: none; appearance: none;
}
.t4-tk-find__box input[type="search"]::-webkit-search-cancel-button,
.t4-tk-find__box input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.t4-tk-find__box input::placeholder { color: color-mix(in srgb, var(--t4-muted) 80%, transparent); }
.t4-tk-find__clear { display: grid; flex: none; place-items: center; width: 32px; height: 32px; margin-inline-end: 4px; border-radius: 50%; background: var(--t4-soft); color: var(--t4-muted); text-decoration: none; transition: background .2s ease, color .2s ease; }
.t4-tk-find__clear:hover { background: color-mix(in srgb, #be123c 12%, var(--t4-surface)); color: #be123c; }
.t4-tk-find__clear .t4-tk-ico { width: 15px; height: 15px; }
.t4-tk-find__go {
  display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 6px; height: 40px; margin: 0; padding: 0 20px; border: 0; border-radius: 999px;
  background: linear-gradient(120deg, #1aa0e0, var(--t4-blue) 55%, #0b8f98); color: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 20px -14px #0078b8cc; transition: filter .2s ease, transform .2s ease;
}
.t4-tk-find__go:hover { filter: brightness(1.06); }
.t4-tk-find__go:active { transform: scale(.96); }
.t4-tk-find__go .t4-tk-ico { display: none; }
.t4-tk-find__sort {
  position: relative; display: flex !important; flex: none; align-items: center; height: 50px; margin: 0; padding-inline: 40px 4px;
  border: 1px solid var(--t4-line); border-radius: 999px; background: var(--t4-surface); color: var(--t4-muted); cursor: pointer;
}
.t4-tk-find__sort:focus-within { border-color: var(--t4-blue); }
.t4-tk-find__sort > .t4-tk-ico { position: absolute; inset-inline-start: 15px; width: 17px; height: 17px; pointer-events: none; }
.t4-tickets .t4-tk-find__sort select { width: auto; height: 100%; min-height: 0; margin: 0; padding-block: 0; padding-inline: 4px 26px; border: 0 !important; border-radius: 999px; background-color: transparent !important; box-shadow: none !important; outline: 0; color: var(--t4-ink); font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.t4-tk-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--t4-soft); }
.t4-tk-seg a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 999px; color: var(--t4-muted); font-size: 12.5px; font-weight: 750; text-decoration: none; white-space: nowrap; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.t4-tk-seg a:hover { color: var(--t4-ink); }
.t4-tk-seg a small { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: color-mix(in srgb, var(--t4-muted) 12%, transparent); font-size: 11px; }
.t4-tk-seg a.is-active { background: var(--t4-surface); color: var(--t4-ink); box-shadow: 0 6px 14px -10px #102e3c66; }
.t4-tk-seg a.is-active small { background: color-mix(in srgb, var(--t4-blue) 14%, transparent); color: var(--t4-blue); }
.t4-tk-result { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -6px 0 0; color: var(--t4-muted); font-size: 13px; font-weight: 700; }
.t4-tk-result a { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 999px; background: var(--t4-soft); color: var(--t4-ink); font-size: 12px; text-decoration: none; }
.t4-tk-result .t4-tk-ico { width: 13px; height: 13px; }

/* ---------- New ticket: header and help ---------- */
.t4-tk-newhead h2 { margin-top: 2px; }
.t4-tk-newhead p { margin: 6px 0 0; color: var(--t4-muted); font-size: 13.5px; line-height: 1.9; }
.t4-tk-back { display: inline-flex; align-items: center; gap: 2px; }
.t4-tk-back .t4-tk-ico { width: 16px; height: 16px; }
.t4-tk-help { overflow: hidden; border: 1px solid var(--t4-line); border-radius: 20px; background: var(--t4-surface); }
.t4-tk-help > summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; list-style: none; cursor: pointer; }
.t4-tk-help > summary::-webkit-details-marker { display: none; }
.t4-tk-help__ico { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: color-mix(in srgb, #f59e0b 14%, var(--t4-surface)); color: #b45309; }
.t4-tk-help > summary > span:nth-child(2) { display: grid; flex: 1; gap: 2px; min-width: 0; }
.t4-tk-help > summary strong { color: var(--t4-ink); font-size: 14px; font-weight: 800; }
.t4-tk-help > summary small { color: var(--t4-muted); font-size: 12px; }
.t4-tk-help__caret { color: var(--t4-muted); transition: transform .2s ease; }
.t4-tk-help[open] .t4-tk-help__caret { transform: rotate(-90deg); }
.t4-tk-help__body { display: grid; gap: 12px; padding: 0 16px 16px; }
.t4-tk-help__text { color: var(--t4-muted); font-size: 13px; line-height: 2; }
.t4-tk-help__text > :first-child { margin-top: 0; }
.t4-tk-help__text > :last-child { margin-bottom: 0; }

/* ---------- Stepper ---------- */
.t4-tk-stepper { padding: 14px; border: 1px solid var(--t4-line); border-radius: 22px; background: var(--t4-surface); box-shadow: 0 12px 28px #102e3c08; }
.t4-tk-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.t4-tk-steps li { margin: 0; }
.t4-tk-steps button { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 6px; border: 0; border-radius: 14px; background: transparent; color: var(--t4-muted); font: inherit; text-align: start; cursor: pointer; transition: background .2s ease; }
.t4-tk-steps button:hover { background: color-mix(in srgb, var(--t4-soft), var(--t4-surface) 40%); }
.t4-tk-steps__n { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--t4-soft); color: var(--t4-muted); font-size: 14px; font-weight: 800; transition: background .25s ease, color .25s ease, box-shadow .25s ease; }
.t4-tk-steps__n .t4-tk-ico { display: none; width: 18px; height: 18px; stroke-width: 2.6; }
.t4-tk-steps li.is-current .t4-tk-steps__n { background: var(--t4-blue); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--t4-blue) 16%, transparent); }
.t4-tk-steps li.is-done .t4-tk-steps__n { background: color-mix(in srgb, #0f9d63 14%, var(--t4-surface)); color: #0f8a56; }
.t4-tk-steps li.is-done .t4-tk-steps__n > span { display: none; }
.t4-tk-steps li.is-done .t4-tk-steps__n .t4-tk-ico { display: block; }
.t4-tk-steps__t { display: grid; min-width: 0; line-height: 1.45; }
.t4-tk-steps__t strong { color: var(--t4-ink); font-size: 13.5px; font-weight: 800; }
.t4-tk-steps li.is-current .t4-tk-steps__t strong { color: var(--t4-blue); }
.t4-tk-steps__t small { overflow: hidden; color: var(--t4-muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.t4-tk-progress { height: 4px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: var(--t4-soft); }
.t4-tk-progress i { display: block; width: 33%; height: 100%; border-radius: inherit; background: linear-gradient(270deg, #1aa0e0, var(--t4-blue) 60%, #0b8f98); transition: width .4s cubic-bezier(.2, .7, .2, 1); }

/* ---------- Steps ---------- */
/* Outranks the account page's bare fieldset rule (padding 25px 0 0). */
.t4-tickets .t4-ticket-form .t4-ticket-step { margin: 0; padding: 20px; border: 1px solid var(--t4-line); border-radius: 22px; }
.t4-tickets .t4-ticket-form .t4-ticket-step > legend { float: inline-start; width: 100%; margin: 0; padding: 0; font-size: 15px; }
.t4-tickets .t4-ticket-form .t4-ticket-step > legend span { width: 26px; height: 26px; }
.t4-tickets .t4-ticket-form .t4-ticket-step > legend + * { clear: both; }
/* Fields sit inside bold labels; typed text stays regular. */
.t4-tickets .t4-ticket-form :is(input, select, textarea),
.t4-tickets .t4-ticket-compose textarea { color: var(--t4-ink); font-weight: 500; line-height: 1.9; }
.t4-tickets .t4-ticket-form :is(input, textarea)::placeholder { color: color-mix(in srgb, var(--t4-muted) 75%, transparent); font-weight: 400; }
.t4-tickets .t4-ticket-form :is(input:not([type="checkbox"], [type="radio"], [type="file"]), select) { min-height: 48px; }
/* The page's back-to-top button would sit on the step bar. */
body:has(.t4-ticket-form.is-wizard) .t4-scroll-progress { display: none; }
.t4-ticket-form.is-wizard .t4-tk-native { display: none; }
.t4-ticket-form.is-wizard .t4-ticket-step { scroll-margin-top: 110px; outline: 0; }
.t4-ticket-form.is-wizard .t4-ticket-step.is-entering { animation: t4-tk-in .32s cubic-bezier(.2, .7, .2, 1); }
@keyframes t4-tk-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.t4-tk-lead { margin: -4px 0 0; color: var(--t4-muted); font-size: 13px; }
.t4-tk-label { margin: 0 0 8px; padding: 0; color: var(--t4-muted); font-size: 12px; font-weight: 750; }
.t4-tk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.t4-tk-card {
  position: relative; display: flex; align-items: flex-start; gap: 12px; width: 100%; min-height: 76px; margin: 0; padding: 14px;
  border: 1.5px solid var(--t4-line); border-radius: 18px; background: var(--t4-surface); color: var(--t4-ink); font: inherit; text-align: start; cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.t4-tk-card:hover { border-color: color-mix(in srgb, var(--t4-blue) 45%, var(--t4-line)); transform: translateY(-1px); }
.t4-tk-card:focus-visible { outline: 2px solid var(--t4-blue); outline-offset: 2px; }
.t4-tk-card.is-on { border-color: var(--t4-blue); background: color-mix(in srgb, var(--t4-blue) 6%, var(--t4-surface)); box-shadow: 0 14px 28px -20px color-mix(in srgb, var(--t4-blue) 85%, transparent); }
.t4-tk-card__ico { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: color-mix(in srgb, var(--t4-blue) 10%, var(--t4-surface)); color: var(--t4-blue); transition: background .2s ease, color .2s ease; }
.t4-tk-card.is-on .t4-tk-card__ico { background: var(--t4-blue); color: #fff; }
.t4-tk-card__txt { display: grid; flex: 1; gap: 3px; min-width: 0; padding-inline-end: 24px; }
.t4-tk-card__txt strong { font-size: 14px; font-weight: 800; line-height: 1.6; }
.t4-tk-card__txt small { color: var(--t4-muted); font-size: 12px; line-height: 1.75; }
.t4-tk-card__check { position: absolute; top: 12px; inset-inline-end: 12px; display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--t4-line); border-radius: 50%; background: var(--t4-surface); color: transparent; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.t4-tk-card__check .t4-tk-ico { width: 13px; height: 13px; stroke-width: 3; }
.t4-tk-card.is-on .t4-tk-card__check { border-color: var(--t4-blue); background: var(--t4-blue); color: #fff; }
.t4-tk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.t4-tk-chip { min-height: 42px; margin: 0; padding: 0 16px; border: 1.5px solid var(--t4-line); border-radius: 999px; background: var(--t4-surface); color: var(--t4-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.t4-tk-chip:hover { border-color: color-mix(in srgb, var(--t4-blue) 45%, var(--t4-line)); }
.t4-tk-chip.is-on { border-color: var(--t4-blue); background: var(--t4-blue); color: #fff; }
.t4-tk-error { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, #be123c 9%, var(--t4-surface)); color: #9f1239; font-size: 13px; font-weight: 700; animation: t4-tk-in .25s ease; }
.t4-tk-error .t4-tk-ico { width: 17px; height: 17px; }
.t4-tk-count { justify-self: end; color: var(--t4-muted); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.t4-tk-count:empty { display: none; }
.t4-tk-count.is-near { color: #b45309; }
.t4-tk-prio { min-width: 0; margin: 0; padding: 0; border: 0; }
.t4-tk-prio__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: var(--t4-soft); }
.t4-ticket-form .t4-tk-prio__opt { position: relative; display: block; margin: 0; color: inherit; cursor: pointer; }
.t4-ticket-form .t4-tk-prio .t4-tk-prio__opt input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.t4-tk-prio__opt span { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 10px; border-radius: 12px; color: var(--t4-muted); font-size: 13px; font-weight: 750; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.t4-tk-prio__opt i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--t4-muted)); }
.t4-tk-prio__opt[data-priority="low"] { --c: #64748b; }
.t4-tk-prio__opt[data-priority="medium"] { --c: var(--t4-blue); }
.t4-tk-prio__opt[data-priority="high"] { --c: #e11d48; }
.t4-tk-prio__opt[data-priority="urgent"], .t4-tk-prio__opt[data-priority="critical"] { --c: #b91c1c; }
.t4-tk-prio__opt input:checked + span { background: var(--t4-surface); color: var(--t4-ink); box-shadow: 0 6px 14px -10px #102e3c66; }
.t4-tk-prio__opt input:focus-visible + span { outline: 2px solid var(--t4-blue); outline-offset: 1px; }
.t4-ticket-drop__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: color-mix(in srgb, var(--t4-blue) 10%, var(--t4-surface)); color: var(--t4-blue); }
.t4-ticket-drop__ico .t4-tk-ico, .t4-ticket-drop > .t4-tk-ico { width: 24px; height: 24px; color: var(--t4-blue); }
.t4-ticket-drop__txt strong { color: var(--t4-blue); }
.t4-ticket-compose .t4-ticket-drop { grid-auto-flow: column; justify-content: center; align-items: center; gap: 10px !important; padding: 14px; }
.t4-tk-links .t4-tk-label { margin-bottom: 6px; }
.t4-tk-review { padding: 14px 16px; border: 1px dashed var(--t4-line); border-radius: 18px; background: color-mix(in srgb, var(--t4-soft), var(--t4-surface) 35%); }
.t4-tk-review dl { display: grid; margin: 0; }
.t4-tk-review dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--t4-line), transparent 30%); }
.t4-tk-review dl > div:last-child { border-bottom: 0; }
.t4-tk-review dt { color: var(--t4-muted); font-size: 12px; }
.t4-tk-review dd { margin: 0; color: var(--t4-ink); font-size: 13px; font-weight: 750; overflow-wrap: anywhere; }
.t4-tk-review__edit { margin: 0; padding: 5px 9px; border: 0; border-radius: 9px; background: transparent; color: var(--t4-blue); font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.t4-tk-review__edit:hover { background: color-mix(in srgb, var(--t4-blue) 9%, var(--t4-surface)); }

/* ---------- Step navigation ---------- */
.t4-tk-nav { display: flex; align-items: center; gap: 10px; }
.t4-tk-nav__where { flex: 1; color: var(--t4-muted); font-size: 12.5px; font-weight: 700; text-align: center; }
.t4-tk-nav .t4-ticket-btn { min-height: 48px; }
.t4-tk-nav__next, .t4-tk-nav__send { margin-inline-start: auto; padding-inline: 24px; }
.t4-ticket-form.is-wizard .t4-tk-nav {
  position: sticky; bottom: 12px; z-index: 6; padding: 10px; border: 1px solid var(--t4-line); border-radius: 22px;
  background: color-mix(in srgb, var(--t4-surface) 92%, transparent); box-shadow: 0 18px 40px -22px #102e3c66;
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.t4-ticket-form.is-wizard .t4-tk-nav__send { width: auto; flex: 0 1 auto; }

/* ---------- Phones ---------- */
@media (max-width: 782px) {
  /* 16px fields: iPhone never zooms in on focus. */
  .t4-tickets :is(input:not([type="checkbox"], [type="radio"], [type="file"], [type="hidden"]), select, textarea),
  .woocommerce-MyAccount-content :is(input:not([type="checkbox"], [type="radio"], [type="file"], [type="hidden"]), select, textarea) {
    font-size: 16px !important;
  }
}

@media (max-width: 640px) {
  .t4-ticket-stats { display: flex; gap: 8px; margin-inline: -2px; padding: 2px 2px 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .t4-ticket-stats::-webkit-scrollbar { display: none; }
  .t4-ticket-stats a { flex: 0 0 auto; min-width: 104px; padding: 12px 14px; scroll-snap-align: start; }

  .t4-tk-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .t4-tk-find { flex: 1 1 auto; max-width: none; }
  .t4-tk-find__box { height: 50px; padding-inline-start: 44px; }
  .t4-tk-find__go { width: 40px; padding: 0; }
  .t4-tk-find__go span { display: none; }
  .t4-tk-find__go .t4-tk-ico { display: block; width: 18px; height: 18px; }
  .t4-tk-find__sort { width: 50px; padding: 0; justify-content: center; }
  .t4-tk-find__sort > .t4-tk-ico { position: static; }
  .t4-tickets .t4-tk-find__sort select { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; opacity: 0; }
  .t4-tk-seg { display: flex; }
  .t4-tk-seg a { flex: 1 1 0; padding: 0 8px; }

  .t4-tickets .t4-ticket-form .t4-ticket-step { padding: 16px; border-radius: 20px; }
  .t4-tk-stepper { padding: 10px; border-radius: 18px; }
  .t4-tk-steps { gap: 4px; }
  .t4-tk-steps button { flex-direction: column; gap: 6px; padding: 6px 2px; text-align: center; }
  .t4-tk-steps__n { width: 34px; height: 34px; font-size: 13px; }
  .t4-tk-steps__t small { display: none; }
  .t4-tk-steps__t strong { font-size: 12.5px; }
  .t4-tk-progress { margin-top: 8px; }

  .t4-tk-cards { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .t4-tk-card { min-height: 0; padding: 12px; }
  .t4-tk-card__ico { width: 38px; height: 38px; }
  .t4-tk-chip { flex: 1 1 auto; }
  .t4-tk-prio__row { grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); }

  .t4-tk-review dl > div { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
  .t4-tk-review dt { grid-column: 1; }
  .t4-tk-review dd { grid-column: 1; }
  .t4-tk-review__edit { grid-column: 2; grid-row: 1 / span 2; }

  .t4-ticket-form.is-wizard .t4-tk-nav { bottom: 8px; padding: 8px; border-radius: 20px; }
  .t4-tk-nav__where { display: none; }
  .t4-tk-nav__prev { flex: none; width: 48px; padding: 0 !important; }
  .t4-tk-nav__prev span { display: none; }
  .t4-tk-nav__next, .t4-ticket-form.is-wizard .t4-tk-nav__send { flex: 1 1 auto; margin-inline-start: 0; }

  .t4-ticket-row__main strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .t4-ticket-compose .t4-ticket-drop { grid-auto-flow: row; }
  .t4-ticket-compose__foot { flex-direction: column; align-items: stretch; }
  .t4-ticket-compose__foot .t4-ticket-btn { width: 100%; min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .t4-ticket-form.is-wizard .t4-ticket-step.is-entering, .t4-tk-error { animation: none; }
  .t4-tk-progress i, .t4-tk-card { transition: none; }
}
