/*
 * Sepo Help Desk — the "Get help" form and "My tickets".
 * Uses the same colour tokens as the docs (docs.css).
 */
.shd-tk { box-sizing: border-box; width: min(820px, calc(100% - 32px)); max-width: 820px; margin: 1.5em auto; }
/* Centred on full-width pages, with room at the screen edges. */
.shd-tk .shd-f { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; font-size: .92rem; font-weight: 600; }
.shd-tk .shd-f > span { color: inherit; }
.shd-tk :is(input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], input[type="url"], input[type="search"], select, textarea) { width: 100%; min-height: 46px; margin: 0; padding: 10px 14px; border: 1px solid var(--shd-line-2); border-radius: 12px; background: var(--shd-bg); color: inherit; font: inherit; font-size: 1rem; font-weight: 400; box-shadow: none; }
.shd-tk textarea { line-height: 1.55; resize: vertical; }
.shd-tk :is(input, select, textarea):focus { border-color: var(--shd-accent-ink); outline: 2px solid color-mix(in srgb, var(--shd-accent) 25%, transparent); outline-offset: 0; }
.shd-tk select option { background: var(--shd-bg); color: var(--shd-ink); }
.shd-tk :is(input, textarea)::placeholder { color: var(--shd-muted); opacity: 1; }
.shd-tk [aria-invalid="true"] { border-color: #c0392b; }
.shd-tk-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0 14px; }
.shd-tk-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.shd-tk-err { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, #c0392b 12%, transparent); font-size: .92rem; }
.shd-tk-err[hidden] { display: none; }

/* Suggested articles while typing */
.shd-tk-suggest { margin: -6px 0 18px; padding: 14px 16px; border-radius: 14px; background: var(--shd-tint); }
.shd-tk-suggest[hidden] { display: none; }
.shd-tk-suggest > p { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: .86rem; font-weight: 700; }
.shd-tk-suggest ul { margin: 0; padding: 0; list-style: none; }
.shd-tk-suggest li { margin: 0; }
.shd .shd-tk-suggest a { display: block; padding: 6px 0; color: var(--shd-accent-ink); font-weight: 600; text-decoration: none; }
.shd .shd-tk-suggest a:hover { text-decoration: underline; text-underline-offset: 3px; }
.shd-tk-suggest small { display: block; color: var(--shd-muted); font-weight: 400; font-size: .84rem; }

/* Files */
.shd-tk-files { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 18px; }
.shd .shd-tk-attach { position: relative; overflow: hidden; cursor: pointer; }
.shd-tk-attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.shd-tk-attach:focus-within { outline: 2px solid var(--shd-accent-ink); outline-offset: 2px; }
.shd-tk-files > small { color: var(--shd-muted); font-size: .82rem; }
.shd-tk-chosen { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; margin: 0; padding: 0; list-style: none; }
.shd-tk-chosen:empty { display: none; }
.shd-tk-chosen li { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--shd-soft); font-size: .86rem; }
.shd-tk-chosen button { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.shd-tk-chosen button:hover { background: var(--shd-hover); }

/* Sent */
.shd-tk-done { padding: 32px 28px; border-radius: 18px; background: color-mix(in srgb, #1f8a54 10%, transparent); text-align: center; }
.shd-tk-done[hidden] { display: none; }
.shd-tk-done h2 { margin: 10px 0 6px; font-size: 1.4rem; }
.shd-tk-done p { margin: 0 auto 18px; max-width: 460px; color: var(--shd-muted); }
.shd-tk-done .shd-ok { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, #1f8a54 18%, transparent); color: #1f8a54; }
.shd.is-dark .shd-tk-done .shd-ok { color: #6fd39d; }
.shd-tk-done:focus { outline: none; }

/* Not signed in */
.shd-tk-gate { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 24px; border: 1px solid var(--shd-line); border-radius: 18px; text-align: center; }
.shd-tk-gate h2 { margin: 6px 0 0; font-size: 1.3rem; }
.shd-tk-gate p { margin: 0 0 10px; max-width: 420px; color: var(--shd-muted); }
.shd-tk-gate svg { color: var(--shd-accent-ink); }
.shd-tk-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* My tickets */
.shd-tk-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.shd-tk-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--shd-soft); }
.shd .shd-tk-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 9px; color: inherit; font-size: .92rem; font-weight: 600; text-decoration: none; }
.shd .shd-tk-tabs a[aria-current="page"] { background: var(--shd-bg); }
.shd-tk-tabs span { color: var(--shd-muted); font-weight: 500; }
.shd-tk-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--shd-line); }
.shd-tk-list li { margin: 0; border-bottom: 1px solid var(--shd-line); }
.shd .shd-tk-item { display: flex; align-items: center; gap: 12px; padding: 14px 6px; color: inherit; text-decoration: none; }
.shd .shd-tk-item:hover { background: var(--shd-soft); }
.shd-tk-item-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.shd-tk-item-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.shd-tk-item.is-unread strong { font-weight: 750; }
.shd-tk-item-main small { color: var(--shd-muted); font-size: .84rem; }
.shd-tk-new { padding: 2px 9px; border-radius: 999px; background: var(--shd-tint); color: var(--shd-accent-ink); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.shd-tk-none { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 0; color: var(--shd-muted); text-align: center; }
.shd-tk-none p { margin: 0; }

/* Status pills */
.shd-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--shd-soft); font-size: .78rem; font-weight: 650; white-space: nowrap; }
.shd-pill.is-new { background: color-mix(in srgb, var(--shd-accent) 14%, transparent); color: var(--shd-accent-ink); }
.shd-pill.is-open { background: color-mix(in srgb, #b7791f 16%, transparent); color: color-mix(in srgb, #8a5a12 85%, currentColor); }
.shd-pill.is-waiting { background: color-mix(in srgb, #7b4bb3 14%, transparent); color: color-mix(in srgb, #6a3da3 85%, currentColor); }
.shd-pill.is-solved { background: color-mix(in srgb, #1f8a54 14%, transparent); color: color-mix(in srgb, #17673f 85%, currentColor); }
.shd.is-dark .shd-pill.is-open { color: #f2c27a; }
.shd.is-dark .shd-pill.is-waiting { color: #cfb2f2; }
.shd.is-dark .shd-pill.is-solved { color: #8fdcb2; }

/* One ticket */
.shd .shd-tk-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; color: inherit; font-size: .9rem; text-decoration: none; opacity: .85; }
.shd .shd-tk-back:hover { opacity: 1; text-decoration: underline; }
.shd-tk-thead { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin: 0 0 18px; padding: 0 0 16px; border-bottom: 1px solid var(--shd-line); }
.shd-tk-thead h2 { margin: 0 0 4px; font-size: 1.45rem; line-height: 1.3; }
.shd-tk-thead .shd-meta { margin: 0; }
.shd-tk-thread { display: flex; flex-direction: column; gap: 14px; margin: 0 0 22px; padding: 0; list-style: none; }
.shd-msg { margin: 0; padding: 16px 18px; border: 1px solid var(--shd-line); border-radius: 16px; }
.shd-msg.is-staff { border-color: transparent; background: var(--shd-tint); }
.shd-msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.shd-msg-head time { margin-left: auto; color: var(--shd-muted); font-size: .82rem; }
.shd-av { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: hsl(var(--h, 210) 55% 50% / .2); font-size: .78rem; font-weight: 700; }
.shd-badge { padding: 1px 8px; border-radius: 999px; background: var(--shd-bg); font-size: .72rem; font-weight: 700; }
.shd-msg-body { overflow-wrap: anywhere; }
.shd-msg-body > :first-child { margin-top: 0; }
.shd-msg-body > :last-child { margin-bottom: 0; }
.shd .shd-msg-body a { color: var(--shd-accent-ink); }
.shd-msg-files { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.shd-msg-files li { margin: 0; }
.shd .shd-msg-files a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--shd-line-2); border-radius: 10px; background: var(--shd-bg); color: inherit; font-size: .86rem; text-decoration: none; }
.shd .shd-msg-files a:hover { border-color: var(--shd-accent-ink); }
.shd-msg-files small { color: var(--shd-muted); }
.shd-tk-reply { padding: 18px; border: 1px solid var(--shd-line); border-radius: 16px; }
.shd-tk-closed { padding: 14px 18px; border-radius: 14px; background: var(--shd-soft); }
.shd .shd-tk-closed a { color: var(--shd-accent-ink); font-weight: 600; }

/* Rating */
.shd-tk-rate { margin: 0 0 20px; padding: 18px 20px; border-radius: 16px; background: var(--shd-tint); }
.shd-tk-rate fieldset { margin: 0 0 12px; padding: 0; border: 0; }
.shd-tk-rate legend { margin: 0 0 6px; padding: 0; font-weight: 700; }
.shd-stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.shd-stars label { position: relative; cursor: pointer; color: color-mix(in srgb, currentColor 30%, transparent); }
.shd-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.shd-stars label:hover, .shd-stars label:hover ~ label, .shd-stars label:has(input:checked), .shd-stars label:has(input:checked) ~ label { color: #d59b16; }
.shd-stars label:has(input:checked) svg, .shd-stars label:has(input:checked) ~ label svg, .shd-stars label:hover svg, .shd-stars label:hover ~ label svg { fill: currentColor; }
.shd-stars label:focus-within { outline: 2px solid var(--shd-accent-ink); outline-offset: 2px; border-radius: 6px; }
.shd-tk-rated { display: flex; align-items: center; gap: 4px; margin: 0 0 18px; color: #d59b16; }
.shd-tk-rated svg { fill: currentColor; }
.shd-tk-rated span { margin-left: 8px; color: var(--shd-muted); font-size: .9rem; }

@media (max-width: 600px) {
  .shd-tk-thead { flex-direction: column; }
  .shd-msg { padding: 14px; }
  .shd-msg-head time { width: 100%; margin-left: 40px; }
}

/* Plan, extra questions, alerts and answers */
.shd-tk-plan { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--shd-tint); font-size: .92rem; }
.shd-tk .shd-f[hidden], .shd-tk [hidden].shd-f { display: none; }
.shd-tk .shd-f small { color: var(--shd-muted); font-weight: 400; }
.shd-tk-alerts { margin: 0 0 16px; padding: 0; border: 0; }
.shd-tk-check { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .95rem; cursor: pointer; }
.shd-tk-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--shd-accent); }
.shd-tk input[type="tel"], .shd-tk input[type="url"], .shd-tk input[type="number"] { width: 100%; min-height: 46px; margin: 0; padding: 10px 14px; border: 1px solid var(--shd-line-2); border-radius: 12px; background: var(--shd-bg); color: inherit; font: inherit; font-size: 1rem; }
.shd-tk-answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px 16px; margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: var(--shd-soft); }
.shd-tk-answers div { margin: 0; }
.shd-tk-answers dt { color: var(--shd-muted); font-size: .8rem; font-weight: 600; }
.shd-tk-answers dd { margin: 0; overflow-wrap: anywhere; }

/* Timelines: how it works, and a ticket's progress */
.shd-tl-box { container-type: inline-size; margin: 0 0 22px; }
.shd-tl { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.shd-tl li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; padding: 0 8px; color: var(--shd-muted); font-size: 14px; line-height: 1.4; text-align: center; }
.shd-tl li:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: calc(50% + 20px); right: calc(-50% + 20px); height: 2px; border-radius: 2px; background: var(--shd-line-2, var(--shd-line)); }
.shd-tl b { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 2px solid var(--shd-accent); border-radius: 50%; background: var(--shd-bg); color: var(--shd-accent-ink, var(--shd-accent)); font-size: 13px; font-weight: 700; }
.shd-tl li > span { color: var(--shd-text, inherit); }
/* Progress states */
.shd-tk-progress .shd-tl li > span { color: var(--shd-muted); }
.shd-tk-progress .shd-tl b { border-color: var(--shd-line-2, var(--shd-line)); color: var(--shd-muted); }
.shd-tk-progress .shd-tl li.is-done b { border-color: #1a8a4f; background: #1a8a4f; color: #fff; }
.shd-tk-progress .shd-tl li.is-done:not(:last-child)::after { background: #1a8a4f; }
.shd-tk-progress .shd-tl li.is-done > span { color: var(--shd-text, inherit); }
.shd-tk-progress .shd-tl li.is-on b { border-color: var(--shd-accent); background: var(--shd-accent); color: #fff; }
.shd-tk-progress .shd-tl li.is-on > span { color: var(--shd-text, inherit); font-weight: 700; }
.shd-tk-progress { padding: 18px 16px 16px; border-radius: 14px; background: var(--shd-tint); }
.shd-tk-progress .shd-tl b { background: var(--shd-bg); }
.shd-tk-progress > p { margin: 14px 0 0; font-size: 15px; text-align: center; }
/* Narrow: the timeline runs down the page. */
@container (max-width: 520px) {
  .shd-tl { grid-template-columns: minmax(0, 1fr); }
  .shd-tl li { flex-direction: row; align-items: center; gap: 12px; padding: 0 0 16px; text-align: left; }
  .shd-tl li:last-child { padding-bottom: 0; }
  .shd-tl li:not(:last-child)::after { top: 30px; bottom: 0; left: 14px; right: auto; width: 2px; height: auto; }
  .shd-tk-progress > p { text-align: left; }
}

/* Code for people without an account */
.shd-tk-codebox { margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; background: var(--shd-tint); }
.shd-tk-codebox[hidden] { display: none; }
.shd-tk-codebox p { margin: 0 0 10px; font-size: .92rem; }
.shd-tk-codebox .shd-f { max-width: 220px; margin-bottom: 8px; }
.shd-tk-codebox input { letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.shd-tk-trackcode { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; margin: 6px 0 4px; padding: 12px 16px; border-radius: 12px; background: var(--shd-tint); }
.shd-tk-trackcode span { width: 100%; color: var(--shd-muted); font-size: .84rem; font-weight: 600; text-align: center; }
.shd-tk-trackcode strong { font-size: 1.5rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.shd-tk-hint { margin: 4px 0 12px; color: var(--shd-muted); font-size: .88rem; }

/* Notices: closed periods and announcements */
.shd-tk-notice, .shd-announce { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--shd-tint); font-size: .94rem; }
.shd-tk-notice svg, .shd-announce svg { flex: none; margin-top: 2px; color: var(--shd-accent-ink); }
.shd-tk-notice p, .shd-announce p { margin: 0; }
.shd-announce.is-warning { background: color-mix(in srgb, #d68910 16%, transparent); }
.shd-announce.is-warning svg { color: color-mix(in srgb, #b9770e 80%, currentColor); }
.shd-announce.is-urgent { background: color-mix(in srgb, #c0392b 14%, transparent); }
.shd-announce.is-urgent svg { color: color-mix(in srgb, #c0392b 80%, currentColor); }
.shd-announces { margin: 0 0 6px; }

/* Language */
.shd-tk-lang { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: 0 0 10px; }
.shd-tk-lang label { display: inline-flex; color: var(--shd-muted); }
.shd-tk .shd-tk-lang select { width: auto; min-height: 38px; padding: 6px 12px; font-size: .9rem; }

/* Anonymous report and Follow a request */
.shd-note-box { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: var(--shd-tint); }
.shd-note-box svg { flex: none; color: var(--shd-accent-ink); }
.shd-note-box p { margin: 0; }
.shd-tk-trackform .shd-tk-gate input { max-width: 260px; text-align: center; letter-spacing: .08em; text-transform: uppercase; }
.shd-tk-trackform .shd-tk-gate .shd-f { align-items: center; width: 100%; }
.shd-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Appointments */
.shd-tk-appt { margin: 22px 0; padding: 16px 18px; border: 1px solid var(--shd-line); border-radius: 16px; }
.shd-tk-appt h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1.05rem; }
.shd-tk-appts { margin: 0 0 10px; padding: 0; list-style: none; }
.shd-tk-appts:empty { display: none; }
.shd-tk-appts li { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--shd-line); }
.shd-tk-appts li:last-child { border-bottom: 0; }
.shd-tk-book > summary { display: inline-flex; list-style: none; cursor: pointer; }
.shd-tk-book > summary::-webkit-details-marker { display: none; }
.shd-tk-bookf { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0 14px; }
.shd-tk-slots { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.shd-tk-slots[aria-busy="true"] { opacity: .6; }
.shd .shd-slot { min-height: 40px; padding: 6px 14px; border: 1px solid var(--shd-line-2); border-radius: 10px; background: var(--shd-bg); color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.shd .shd-slot:hover { border-color: var(--shd-accent-ink); background: var(--shd-tint); }
.shd .shd-slot[aria-busy="true"] { opacity: .6; cursor: progress; }
.shd-tk-bookf .shd-tk-err { grid-column: 1 / -1; margin-top: 10px; }

/* Light version link */
.shd-lite { margin: 18px 0 0; font-size: .88rem; text-align: center; }
.shd .shd-lite a, .shd-lite a { color: var(--shd-accent-ink, inherit); }
