/* Support conversations (Colin, 2026-10-29): Codex design docs/support-thread-design/concept.fragment.html, copied as is.
   Loads after client-support-desk.css. The few lines at the end are the live-data additions (real screenshot thumbnails, menu badges). */
/* Load after client-support-desk.css. Only additive st-* selectors belong to the product. */
.st-scope{--st-alert:#b42318;--st-alert-bg:#fff1f0;--st-alert-ink:#fff}
html[data-theme=dark] .st-scope{--st-alert:#fca5a5;--st-alert-bg:#3b1a24;--st-alert-ink:#28131a}
.st-scope [hidden]{display:none!important}
.st-scope .st-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.st-scope .st-thread{list-style:none;margin:0;display:grid;gap:22px}
.st-scope .st-message{min-width:0}
.st-scope .st-message-meta{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin-bottom:8px}
.st-scope .st-message-meta .sd-speaker{margin:0;font-size:12px}
.st-scope .st-message-meta time{color:var(--sd-muted);font-size:11px;line-height:1.6}
.st-scope .st-team .sd-speaker{color:var(--sd-purple)}
.st-scope .st-message .sd-bubble{margin:0}
.st-scope .st-message .sd-speaker small{font-size:11px;font-weight:500}
.st-scope .st-composer{display:grid;gap:12px;align-items:stretch}
.st-scope .st-composer label.st-label{font-size:12px;font-weight:650;color:var(--sd-ink)}
.st-scope .st-input{width:100%;min-height:104px;padding:12px;border:1px solid var(--sd-line);border-radius:10px;background:var(--sd-bg);color:var(--sd-ink);font:400 14px/1.65 Inter,sans-serif;resize:vertical}
.st-scope .st-input::placeholder{color:var(--sd-muted);opacity:1}
.st-scope .st-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.st-scope .st-send-group{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}
.st-scope .st-primary{border:0;border-radius:10px;padding:11px 18px;min-height:46px;background:linear-gradient(110deg,#7c3aed,#6d28d9);color:#fff;font:600 13px/1.4 Inter,sans-serif;cursor:pointer}
.st-scope .st-attach{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 13px;border:1px solid var(--sd-line);border-radius:9px;background:var(--sd-card);color:var(--sd-purple);font-size:12px;font-weight:600;cursor:pointer}
.st-scope .st-attach input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px}
.st-scope .st-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.st-scope .st-composer :disabled{cursor:wait;opacity:.6}
.st-scope .st-composer [aria-disabled=true]{opacity:.6}
.st-scope .st-composer p{max-width:none;margin:0}
.st-scope .st-composer-note{font-size:11px;color:var(--sd-muted);line-height:1.6}
.st-scope .st-notice{padding:12px 14px;border:1px solid var(--sd-line);border-radius:10px;background:var(--sd-bg);font-size:12px;line-height:1.65;margin-bottom:16px}
.st-scope .st-error{background:var(--st-alert-bg);color:var(--st-alert);border-color:var(--st-alert)}
.st-scope .st-feedback{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0}
.st-scope .st-feedback .sd-secondary{background:var(--sd-card)}
.st-scope .st-shot{display:flex;align-items:center;gap:12px;text-align:left;max-width:100%;min-height:64px;padding:8px;margin-top:10px;border:1px solid var(--sd-line);border-radius:10px;background:var(--sd-card);color:var(--sd-purple);font:600 12px/1.5 Inter,sans-serif;cursor:pointer}
.st-scope .st-shot svg{width:88px;height:56px;flex:none;border:1px solid var(--sd-line);border-radius:5px}
.st-scope .st-shot span{overflow-wrap:anywhere}
.st-scope .st-shot small{display:block;color:var(--sd-muted);font-size:11px;font-weight:400}
.st-scope .st-draft-attachment{display:flex;align-items:center;gap:8px;border:1px solid var(--sd-line);border-radius:10px;padding:8px}
.st-scope .st-draft-attachment .st-shot{border:0;padding:0;margin:0;flex:1}
.st-scope .st-marker{display:inline-flex;align-items:center;gap:5px;color:var(--st-alert);font-size:11px;font-weight:650;line-height:1.5}
.st-scope .st-dot{display:inline-block;width:8px;height:8px;flex:none;border-radius:50%;background:var(--st-alert)}
.st-scope .st-new-divider{display:flex;align-items:center;gap:10px;color:var(--sd-muted);font-size:11px;line-height:1.5}
.st-scope .st-new-divider::before,.st-scope .st-new-divider::after{content:"";height:1px;background:var(--sd-line);flex:1}
.st-scope .st-row-meta{flex-wrap:wrap;row-gap:8px}
.st-scope .st-client-name{display:block;font-size:11px;color:var(--sd-muted);margin:6px 0}
.st-scope .st-team-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:16px;padding-top:12px;border-top:1px solid var(--sd-line)}
.st-scope .st-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;margin-left:auto;border:0;border-radius:6px;background:var(--st-alert);color:var(--st-alert-ink);font:700 10px/1 Inter,sans-serif}
.st-scope .st-nav-more{position:relative}
.st-scope .st-nav-more .st-dot{position:absolute;top:6px;left:calc(50% + 8px);box-shadow:0 0 0 2px var(--sd-card)}
.st-scope .st-count[hidden],.st-scope .st-dot[hidden]{display:none!important}
.st-scope .st-target,.st-scope .st-composer .sd-secondary{min-height:44px}
.st-scope :is(button,a,input,textarea,select):focus-visible{outline:2px solid var(--sd-purple);outline-offset:3px}
.st-scope .st-attach:focus-within{outline:2px solid var(--sd-purple);outline-offset:3px}
.st-scope .st-email{max-width:600px;margin:0 auto;border:1px solid var(--sd-line);border-radius:12px;overflow:hidden;background:var(--sd-card)}
.st-scope .st-email-band{padding:24px;background:#7c3aed}
.st-scope .st-email-band img{display:block;width:160px;max-width:100%;height:auto}
.st-scope .st-email-body{padding:28px;font-size:14px;line-height:1.75;overflow-wrap:anywhere}
.st-scope .st-email-body h2{font-size:21px;line-height:1.4;margin:0 0 18px;letter-spacing:-.4px}
.st-scope .st-email-body blockquote{margin:18px 0;padding:0 0 0 16px;border-left:3px solid #7c3aed}
.st-scope .st-email-body a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;border-radius:8px;background:#7c3aed;color:#fff;padding:10px 18px;text-decoration:none;font-weight:600}
.st-scope .st-email-meta{max-width:600px;margin:0 auto 18px;color:var(--sd-muted);font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.st-scope .st-lightbox{width:min(700px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:20px;border:1px solid var(--sd-line);border-radius:16px;background:var(--sd-card);color:var(--sd-ink)}
.st-scope .st-lightbox::backdrop{background:#0f0d1870}
.st-scope .st-lightbox header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.st-scope .st-lightbox h2{margin:0;font-size:16px}
.st-scope .st-lightbox svg{display:block;width:100%;height:auto}
@media(max-width:700px){
 .st-scope .st-thread{gap:20px}
 .st-scope .st-message-meta{display:grid;gap:2px}
 .st-scope .st-message .sd-bubble{padding:13px 14px}
 .st-scope .st-input{font-size:16px}
 .st-scope .st-actions,.st-scope .st-send-group{display:grid;grid-template-columns:minmax(0,1fr);width:100%;margin:0}
 .st-scope .st-attach,.st-scope .st-primary{width:100%;min-height:46px}
 .st-scope .st-email-body{padding:20px}
 .st-scope .st-email-body a{width:100%}
}

/* Outrank the portal’s general button rule without changing shared controls. */
.st-scope .sd-desk .st-target,.st-scope .sd-desk .sd-back{min-height:44px}
.st-scope .sd-desk .st-composer :is(.st-primary,.sd-secondary){min-height:46px}
.st-scope .sd-desk .st-primary{background:linear-gradient(110deg,#7c3aed,#6d28d9);color:#fff}
.st-scope .sd-desk .st-shot{min-height:64px}
.st-scope .sd-detail-head a{display:inline-flex;align-items:center;min-height:44px;color:var(--sd-purple)}

/* Live additions: real screenshot thumbnails (the design's SVG stand-in → the uploaded image), one-line request rows, menu badges. */
.st-scope .st-shot{text-decoration:none}
.st-scope .st-shot img{width:88px;height:56px;flex:none;object-fit:cover;border:1px solid var(--sd-line);border-radius:5px;background:var(--sd-bg)}
.st-scope .st-draft-attachment .st-shot{cursor:default}
.st-scope .sd-request .st-marker{margin-left:auto}
.st-scope .st-message .sd-bubble{white-space:pre-wrap;overflow-wrap:anywhere}
/* The desk's footer is a space-between row; as the reply box's grid that shrank the column to its content: fill the width. */
.st-scope .sd-detail-foot.st-composer{justify-content:stretch;grid-template-columns:minmax(0,1fr)}
/* The portal makes every button a one-line inline row; request rows stack (type and date / message / status), as designed. */
.st-scope .sd-desk .sd-request{display:block;white-space:normal;text-align:left;width:100%}
.u2-item .st-count,.p2-menu-row .st-count{margin-left:auto}
.p2-menu-row .st-count{margin-right:6px}
.c2-nav .st-nav-more .st-dot,.c2-nav [data-c2-key=more].st-nav-more .st-dot{position:absolute;top:6px;left:calc(50% + 8px);box-shadow:0 0 0 2px var(--sd-card,#fff)}
