.st-tools { display:grid; gap:20px; min-width:0; }
.st-card { min-width:0; padding:20px; border:1px solid var(--line,#dce5dc); border-radius:16px; background:var(--surface,#fff); }
.st-intro,.st-empty,.st-loading,.st-count,.st-next-heading { text-align:center; }
.st-intro h2,.st-intro p { margin:0 0 10px; }
.st-hint { color:var(--muted,#607066); font-size:.83rem; line-height:1.55; white-space:pre-line; }
.page-heading.st-queue-heading { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:20px 24px; margin-bottom:28px; }
.page-heading.st-queue-heading > :first-child { min-width:0; }
.page-heading.st-queue-heading > .st-heading-intro { grid-column:1 / -1; grid-row:2; display:grid; gap:6px; padding:13px 14px; background:#f7faf4; border-color:#dce7d6; }
.page-heading.st-queue-heading .st-heading-intro h2 { margin:0; font-size:1.5rem; line-height:1.25; }
.page-heading.st-queue-heading .st-heading-intro p { margin:0; font-size:.86rem; line-height:1.55; text-wrap:pretty; }
.page-heading.st-queue-heading > #company-filter-group { grid-column:2; grid-row:1; margin:0; }
@media(min-width:1600px) {
  .page-heading.st-queue-heading { grid-template-columns:minmax(300px,.9fr) minmax(360px,1.65fr) auto; }
  .page-heading.st-queue-heading > .st-heading-intro { grid-column:2; grid-row:1; }
  .page-heading.st-queue-heading > #company-filter-group { grid-column:3; }
}
@media(max-width:650px) {
  .page-heading.st-queue-heading { grid-template-columns:minmax(0,1fr); gap:16px; margin-bottom:24px; }
  .page-heading.st-queue-heading > #company-filter-group { grid-column:1; grid-row:2; justify-self:start; max-width:100%; }
  .page-heading.st-queue-heading > .st-heading-intro { grid-column:1; grid-row:3; padding:12px 14px; }
}
.st-filters { display:grid; grid-template-columns:minmax(180px,2fr) repeat(2,minmax(140px,1fr)) auto; gap:12px; align-items:end; }
.st-tools label,.st-case-tools label,.st-evidence-nav label { display:grid; gap:8px; min-width:0; font-size:.82rem; font-weight:600; }
.st-tools input,.st-tools select,.st-tools textarea,.st-case-tools input,.st-case-tools select,.st-case-tools textarea,.st-evidence-nav input { box-sizing:border-box; min-width:0; width:100%; max-width:100%; font:inherit; }
.st-cases,.st-timeline,.st-evidence-results { display:grid; gap:12px; padding:0; margin:12px 0; list-style:none; }
.st-case { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:14px; align-items:center; padding:16px; border:1px solid var(--line,#dce5dc); border-radius:12px; }
.st-case.st-next { border-color:#8ba983; background:#f5faf3; }
.st-case h3 { margin:0 0 5px; font-size:1rem; overflow-wrap:anywhere; }
.st-case p { margin:4px 0; overflow-wrap:anywhere; }
.st-case .st-contact { display:flex; flex-wrap:wrap; gap:6px 14px; }
.st-case .button,.st-pager .button { align-self:center; min-height:40px; }
.st-pager { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; align-items:center; }
.st-status { white-space:pre-line; overflow-wrap:anywhere; }
.st-status:empty { display:none; }
.st-case-tools { display:grid; gap:14px; min-width:0; }
.st-case-tools>h3 { margin:0; }
.st-case-tools .st-accordion { border:1px solid var(--line,#dce5dc); border-radius:12px; padding:0; min-width:0; background:var(--surface,#fff); }
.st-accordion > summary { display:grid; grid-template-columns:20px minmax(0,1fr) 8px; gap:12px; align-items:center; padding:16px 18px; border-radius:11px; font-size:.88rem; line-height:1.45; font-weight:650; cursor:pointer; list-style:none; }
.st-accordion > summary::-webkit-details-marker { display:none; }
.st-accordion > summary:hover { background:#e7f0dd; color:#28482d; }
.st-accordion > summary:focus-visible { outline:2px solid #6a8e5b; outline-offset:-3px; }
.st-case-tools .st-accordion[open] { border-color:#93b579; }
.st-accordion[open] > summary { background:#e2efd5; color:#25442a; border-radius:11px 11px 0 0; font-weight:700; }
.st-accordion[open] > summary:hover { background:#d4e8c2; }
.st-accordion[open] > summary .st-section-icon { color:#3d6934; }
.st-section-icon { display:block; width:20px; height:20px; color:#587a4c; }
.st-section-title { min-width:0; overflow-wrap:anywhere; }
.st-section-arrow { width:7px; height:7px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); margin-top:-4px; color:#6d8065; }
.st-accordion[open] > summary .st-section-arrow { transform:rotate(225deg); margin-top:4px; }
.st-section-body { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; padding:18px; border-top:1px solid var(--line,#dce5dc); min-width:0; }
.st-section-body > .st-hint,.st-section-body > .st-status { margin:0; }
.st-section-body > .button,.st-form > .button { justify-self:start; max-width:100%; white-space:normal; }
.st-section-body label > :is(input,select,textarea),.st-evidence-nav label > input { margin-top:0; }
.st-form { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; margin:0; }
.st-form-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.st-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:10px; }
.st-case-tools .st-actions { margin-top:0; }
.st-case-tools .st-actions:has(> .st-snooze-save) { justify-content:flex-end; }
.st-case-tools .st-actions:has(> .st-snooze-save) > .button { flex:0 1 auto; }
.st-case-tools .st-section-body > .st-template-copy { justify-self:end; }
.st-case-tools .st-actions > .button,.st-evidence-nav .st-actions > .button { max-width:100%; white-space:normal; }
.st-case-tools textarea { min-height:150px; padding:12px; resize:vertical; line-height:1.65; font-weight:400; }
.st-timeline { gap:0; margin:0; }
.st-timeline li { display:grid; gap:7px; padding:16px 0; border-bottom:1px solid var(--line,#dce5dc); min-width:0; }
.st-timeline li:first-child { padding-top:0; }
.st-timeline li:last-child { padding-bottom:0; border-bottom:0; }
.st-timeline strong { font-size:.86rem; font-weight:650; }
.st-timeline p { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.65; font-size:.86rem; }
.st-timeline small { display:block; font-size:.75rem; line-height:1.5; color:var(--muted,#607066); overflow-wrap:anywhere; }
.st-timeline .button { justify-self:start; max-width:100%; white-space:normal; margin-top:3px; }
.st-timeline-summary { container-type:inline-size; min-width:0; margin-top:7px; }
.st-timeline-summary .case-summary-languages:has(> .case-summary-language + .case-summary-language) { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; }
.st-timeline-summary .case-summary-language { min-width:0; }
.st-timeline-summary .case-summary-language + .case-summary-language { margin:0; padding-block-start:18px; padding-inline-start:0; border-block-start:1px solid var(--line,#dce5dc); border-inline-start:0; }
.st-timeline-summary .case-summary-language-title { display:flex; align-items:center; gap:8px; margin:0 0 14px; color:#355841; font-size:.86rem; font-weight:700; line-height:1.5; }
.st-timeline-summary .case-summary-heading { margin:0 0 5px; font-size:.84rem; font-weight:700; line-height:1.5; color:#28452f; }
.st-timeline-summary .case-summary-section + .case-summary-section { margin-top:14px; }
.st-timeline-summary > .case-summary-intro { margin-bottom:16px; }
.st-timeline-summary .case-summary-text { white-space:pre-wrap; overflow-wrap:anywhere; }
.st-timeline-summary .case-summary-flag { width:22px; height:16px; border:0; border-radius:0; box-shadow:none; object-fit:cover; }
@container (min-width:700px) {
  .st-timeline-summary .case-summary-languages:has(> .case-summary-language + .case-summary-language) { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .st-timeline-summary .case-summary-language + .case-summary-language { padding-block-start:0; padding-inline-start:18px; border-block-start:0; border-inline-start:1px solid var(--line,#dce5dc); }
}
.st-evidence-results { max-height:330px; overflow:auto; min-width:0; margin:0; }
.st-evidence-results:empty { display:none; }
.st-evidence-results .button { width:100%; justify-content:flex-start; text-align:left; white-space:normal; overflow-wrap:anywhere; height:auto; min-height:40px; padding:10px 12px; line-height:1.5; }
.st-evidence-target { outline:2px solid #6a8e5b; outline-offset:4px; }
.transcript > li.st-evidence-target { background:#fff4ce; border-left-color:#ab7c19; box-shadow:inset 3px 0 0 #ab7c19; outline-color:#ab7c19; color:#30402b; }
.st-evidence-match { background:#ffe082; color:inherit; border-radius:3px; box-shadow:0 0 0 2px #ffe082; font-weight:inherit; }
.st-evidence-nav { display:grid; grid-template-columns:minmax(0,1fr); gap:14px; margin:16px 0 0; padding:18px; min-width:0; background:#f5f8f3; border:1px solid var(--line,#dce5dc); border-radius:12px; container-type:inline-size; container-name:evidence-sources; }
.st-evidence-nav > strong { font-size:.88rem; line-height:1.5; }
.st-evidence-nav > .st-hint { margin:0; }
.st-evidence-nav > .st-actions { margin:0; }
.st-evidence-nav > .st-actions:empty { display:none; }
.st-evidence-nav input { min-height:40px; font-weight:400; }
.st-evidence-nav > .st-evidence-controls { display:flex; align-items:center; gap:10px; flex-wrap:wrap; min-width:0; }
.st-evidence-controls > .button { flex:0 0 auto; min-height:44px; margin:0; }
.st-evidence-controls > .st-evidence-search { flex:1 1 260px; width:auto; min-width:0; min-height:44px; margin:0; }
@container evidence-sources (max-width:650px) {
  .st-evidence-nav > .st-evidence-controls { flex-direction:column; align-items:stretch; }
  .st-evidence-controls > .button,.st-evidence-controls > .st-evidence-search { flex:0 1 auto; width:100%; }
}
@media(max-width:900px) { .st-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:540px) { .st-card { padding:14px; } .st-filters,.st-form-row,.st-case { grid-template-columns:minmax(0,1fr); } .st-case>.button { justify-self:start; } .st-actions>.button { flex:1 1 auto; } .st-accordion > summary { padding:14px; gap:10px; } .st-section-body,.st-evidence-nav { padding:14px; gap:14px; } .st-case-tools textarea { min-height:160px; } }

/* Compact queue rows keep direct contact actions separate from the case opener. */
.st-cases { container-type:inline-size; container-name:staff-queue; gap:10px; }
.st-case { grid-template-columns:minmax(170px,1.2fr) minmax(140px,.85fr) minmax(180px,1.15fr) minmax(220px,1.3fr); gap:12px 20px; padding:14px 18px; min-width:0; cursor:pointer; transition:background .15s,border-color .15s; }
.st-case > div { min-width:0; }
.st-case:hover { background:#f5f9f2; border-color:#9fb595; }
.st-case:focus-within { border-color:#6a8e5b; box-shadow:0 0 0 2px #6a8e5b33; }
.st-case h3 { margin:0 0 4px; font-size:.9rem; line-height:1.4; }
.st-case p { margin:0; font-size:.83rem; line-height:1.5; }
.st-case .st-hint { font-size:.76rem; }
.st-case-open { display:inline; padding:0; border:0; border-radius:3px; background:transparent; color:inherit; font:inherit; font-weight:700; text-align:left; white-space:normal; overflow-wrap:anywhere; cursor:pointer; }
.st-case-open:focus-visible { outline:2px solid #6a8e5b; outline-offset:3px; }
.st-case-open:hover { text-decoration:underline; text-underline-offset:3px; }
.st-case-contact { display:grid; gap:4px; }
.st-case-label { color:var(--muted,#607066); font-size:.68rem; line-height:1.2; }
.st-case-context { display:grid; justify-items:start; gap:3px; }
.st-case .st-next-heading { display:inline-block; padding:2px 8px; margin:0 0 2px; border-radius:20px; background:#e4f0db; color:#3f6433; font-size:.68rem; line-height:1.4; font-weight:600; text-align:left; }
@container staff-queue (max-width:850px) { .st-case { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 18px; } .st-case-identity { grid-column:1; grid-row:1; } .st-case-context { grid-column:2; grid-row:1; } }
@container staff-queue (max-width:500px) { .st-case { grid-template-columns:minmax(0,1fr); padding:14px; gap:10px; } .st-case-identity,.st-case-context { grid-column:auto; grid-row:auto; } }
