/* Employment Tribunal – staff CMS. Lagoon tokens with GOV.UK Design System patterns (as in CasePro):
   caption + heading, summary lists with Change links, task lists with status tags, notification banners,
   44px targets and the yellow GOV.UK focus state. Light sidebar, rounded cards, soft shadows. */
.cms { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; background: var(--bg); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 12px; font-weight: 800; flex: none; }

/* sidebar */
.cms-side { background: #fff; border-inline-end: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.cms-brand { display: flex; gap: 12px; align-items: center; padding: 18px 18px 14px; color: var(--text) !important; }
.cms-brand img { width: 40px; height: 40px; }
.cms-brand b { display: block; font-weight: 800; font-size: 15.5px; line-height: 1.3; }
.cms-brand small { display: block; font-size: 11px; font-weight: 700; color: var(--accent-text); letter-spacing: .06em; }
.cms-side nav { padding: 4px 12px 16px; display: grid; gap: 2px; }
.cms-h { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 16px 12px 6px; }
html[lang="dv"] .cms-h { text-transform: none; letter-spacing: 0; font-size: 13px; }
.cms-side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; color: var(--text-2) !important; font-size: 14.5px; font-weight: 600; border-radius: var(--r-sm); min-height: 42px; }
.cms-side nav a svg { color: var(--muted); }
html[lang="dv"] .cms-side nav a { font-family: var(--display); font-size: 15.5px; }
.cms-side nav a:hover { background: var(--tint-2); color: var(--text) !important; }
.cms-side nav a.on { background: var(--tint); color: var(--primary-dark) !important; }
.cms-side nav a.on svg { color: var(--primary); }
.cms-side nav a span { flex: 1; }
.cms-side nav a em { font-size: 11px; font-weight: 800; font-style: normal; background: var(--primary); color: #fff; padding: 0 8px; border-radius: 9px; }
.cms-side nav a em.red { background: var(--danger); }
.cms-me { margin: auto 12px 12px; display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: var(--r-md); background: var(--tint-2); border: 1px solid var(--border); }
.cms-me b { display: block; font-size: 13.5px; }
.role { display: inline-block; font-size: 11px; font-weight: 700; padding: 0 8px; margin-top: 2px; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent-text); }

/* top bar */
.cms-main { min-width: 0; display: flex; flex-direction: column; }
.cms-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.cms-burger { display: none; width: 42px; height: 42px; border: 1px solid var(--border); background: #fff; cursor: pointer; place-items: center; border-radius: var(--r-sm); }
.cms-find { position: relative; flex: 1; max-width: 480px; display: flex; align-items: center; gap: 8px; background: var(--tint-2); border: 1px solid var(--border); padding: 8px 14px; border-radius: var(--pill); }
.cms-find:focus-within { background: #fff; border-color: var(--primary); }
.cms-find input { border: 0; outline: none; flex: 1; background: none; font-size: 14.5px; min-width: 0; }
.cms-find-res { position: absolute; top: calc(100% + 6px); inset-inline: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-lg); z-index: 30; display: none; max-height: 60vh; overflow: auto; padding: 6px; }
.cms-find-res:not(:empty) { display: block; }
.cms-find-res a { display: block; padding: 9px 12px; font-size: 14px; border-radius: var(--r-sm); color: var(--text) !important; }
.cms-find-res a:hover { background: var(--tint); }
.cms-find-res small { display: block; font-size: 11px; color: var(--primary); font-weight: 800; }
.cms-tools { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.cms-ic { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 12px; font-weight: 800; color: var(--text) !important; border-radius: 50%; }
.cms-ic:hover { background: var(--tint); }
.cms-ic[lang="dv"] { font-family: "MV Waheed", sans-serif; font-size: 15px; }
.cms-ic em { position: absolute; top: -4px; inset-inline-end: -4px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 800; font-style: normal; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }

/* body */
.cms-body { padding: 24px 28px 48px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: start; font-size: 16px; }
@media (min-width: 641px) { .cms-body { font-size: 17px; } }
.cms-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.cms-head h1 { font-size: 32px; font-weight: 800; }
.cms-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; max-width: 760px; }
.cms-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.ck-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ck { padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; color: var(--text) !important; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-sm); position: relative; overflow: hidden; }
.ck::before { content: ""; position: absolute; inset-inline-start: 0; inset-block: 0; width: 4px; background: var(--primary); }
.ck b { font-size: 36px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ck span { font-size: 14px; color: var(--muted); }
.ck:hover { box-shadow: var(--sh-md); }
.ck.warn::before { background: var(--warn); } .ck.warn b { color: var(--warn); }
.ck.bad::before { background: var(--danger); } .ck.bad b { color: var(--danger); }
.cms-grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.cms-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.cms-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px 22px; min-width: 0; box-shadow: var(--sh-sm); }
.cc-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.cc-h h2 { font-size: 19px; }
.row-item { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--text) !important; }
.row-item:last-child { border-bottom: 0; }
.row-item .grow { flex: 1; min-width: 0; }
.row-item .grow b { display: block; font-weight: 700; }
.row-item .grow small { color: var(--muted); font-size: 13px; }
.wd { min-width: 52px; height: 52px; border-radius: var(--r-sm); background: var(--tint); color: var(--primary-dark); display: grid; place-content: center; text-align: center; font-size: 20px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.wd small { display: block; font-size: 9.5px; font-weight: 700; margin-top: 2px; }
.wd.bad { background: #fde9e7; color: var(--danger); } .wd.warn { background: #fdf3df; color: #8a5a10; }

/* case workspace */
.sheet { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sheet td { padding: 10px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.sheet td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); width: 140px; direction: ltr; }
html[dir="rtl"] .sheet td:first-child, html[dir="rtl"] td.hash { text-align: right; }
.sheet .auto, .sheet .man { font-size: 10.5px; font-weight: 800; padding: 1px 8px; margin-inline-start: 8px; border-radius: var(--pill); }
.sheet .auto { color: var(--primary-dark); background: var(--tint); }
.sheet .man { color: #5a3fa8; background: #efeafb; }
.chat { display: grid; gap: 10px; max-height: 380px; overflow: auto; padding: 4px; }
.msg { max-width: 80%; background: var(--tint-2); border: 1px solid var(--border); padding: 9px 14px; font-size: 14.5px; border-radius: 16px 16px 16px 4px; }
.msg.me { justify-self: end; background: var(--tint); border-color: #b9dcd6; border-radius: 16px 16px 4px 16px; }
.msg small { display: block; color: var(--muted); font-size: 11.5px; }
.chat-in { display: flex; gap: 8px; margin-top: 10px; }
.chat-in input { flex: 1; border: 1px solid var(--border-strong); padding: 9px 14px; border-radius: var(--pill); min-height: 44px; min-width: 0; }
.chk { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.chk li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; padding: 9px 12px; border-radius: var(--r-sm); background: #e6f5ec; color: #134a2b; }
.chk li.warn { background: #fdf3df; color: #5b3d06; }
.chk li.bad { background: #fde9e7; color: #6e1a15; }
.chk li svg { flex: none; }
.clash { border-radius: var(--r-sm); background: #fde9e7; padding: 12px 16px; font-size: 14.5px; color: #6e1a15; }
.clash ul { margin: 6px 0 0; padding-inline-start: 18px; }
.ok-box { border-radius: var(--r-sm); background: #e6f5ec; padding: 12px 16px; font-size: 14.5px; color: #134a2b; display: flex; gap: 8px; align-items: center; }
.letter { background: #fff; border: 1px solid var(--border); padding: 34px 40px; font-size: 15px; line-height: 1.9; position: relative; border-radius: var(--r-sm); box-shadow: var(--sh-sm); }
.letter .lh { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--primary); padding-bottom: 12px; margin-bottom: 18px; }
.letter .lh img { width: 48px; }
.letter .sig { margin-top: 28px; display: flex; gap: 18px; align-items: center; }
.letter .stamp { width: 96px; height: 96px; border-radius: 50%; border: 3px double var(--primary); color: var(--primary-dark); display: grid; place-items: center; text-align: center; font-size: 9px; font-weight: 800; line-height: 1.3; transform: rotate(-8deg); padding: 10px; }
.letter .dsig { font-size: 11.5px; color: var(--muted); border-inline-start: 3px solid var(--accent); padding-inline-start: 10px; font-variant-numeric: tabular-nums; }
.cal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.cal-day { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); min-height: 220px; overflow: hidden; }
.cal-day h3 { font-size: 13.5px; font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; background: var(--tint-2); }
.cal-day.hol { background: repeating-linear-gradient(45deg, #fff, #fff 7px, #f3f7f7 7px, #f3f7f7 14px); }
.cal-day.today { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(14, 130, 119, .2); }
.cal-day.today h3 { background: var(--primary); color: #fff; }
.cal-ev { margin: 8px; padding: 8px 10px; border-inline-start: 4px solid var(--primary); background: var(--tint); font-size: 13px; cursor: pointer; display: block; border-radius: var(--r-xs); color: var(--text) !important; }
.cal-ev.cmc { border-color: var(--info); background: #e7efff; }
.cal-ev.conciliation { border-color: var(--violet); background: #efeafb; }
.cal-ev b { font-size: 12px; display: block; font-variant-numeric: tabular-nums; }
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: start; }
.yes { color: var(--success); } .no { color: #b7c6c8; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 170px 1fr 40px; gap: 10px; align-items: center; font-size: 14px; }
.bar > span:nth-child(2) { background: var(--tint-2); border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 12px; background: linear-gradient(90deg, var(--primary), #19a597); border-radius: 6px; }
.bar span:last-child { text-align: end; font-weight: 700; font-variant-numeric: tabular-nums; }
.int { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.int:last-child { border-bottom: 0; }
.int .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); flex: none; box-shadow: 0 0 0 4px #e2f4e9; }
.int .dot.amber { background: var(--warn); box-shadow: 0 0 0 4px #fdf3df; } .int .dot.grey { background: #a9bcbe; box-shadow: 0 0 0 4px #eef3f3; }
.hash { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; direction: ltr; }
.crumbs { font-size: 14px; color: var(--muted); }

/* sign-in */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-art { background: radial-gradient(800px 400px at 90% 0%, rgba(255, 122, 89, .25), transparent 60%), linear-gradient(150deg, var(--primary-dark), var(--primary)); color: #e6f5f2; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.login-art h1 { font-size: 46px; font-weight: 800; color: #fff; max-width: 14ch; }
.login-art img { width: 60px; }
.login-form { padding: 56px; display: flex; flex-direction: column; justify-content: center; max-width: 580px; }
.login-form .row-item { border: 1px solid var(--border) !important; border-radius: var(--r-md); background: #fff; padding: 12px 14px !important; }
.login-form .row-item:hover { border-color: var(--primary) !important; box-shadow: var(--sh-md); }

/* ---------- GOV.UK patterns ---------- */
.cms :focus-visible { outline: 3px solid transparent; background-color: #ffdd00; box-shadow: 0 -2px #ffdd00, 0 4px #0b0c0c; color: #0b0c0c !important; text-decoration: none; }
.cms :is(input, select, textarea):focus-visible { background-color: #fff; outline: 3px solid #ffdd00; outline-offset: 0; box-shadow: inset 0 0 0 2px #0b0c0c; }
.cms .btn:focus-visible { background: #ffdd00; border-color: #ffdd00; color: #0b0c0c !important; box-shadow: 0 2px 0 #0b0c0c; }
.caption { display: block; color: var(--muted); font-size: 16px; margin-bottom: 2px; }
.caption .mono { color: var(--primary); }
.gs-h2 { font-size: 21px; margin: 6px 0 12px; }
.gs-summary { margin: 0 0 8px; background: #fff; border: 1px solid var(--border); padding: 2px 22px; border-radius: var(--r-md); box-shadow: var(--sh-sm); }
.gs-summary .r { display: grid; grid-template-columns: 32% 1fr auto; gap: 4px 20px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.gs-summary .r:last-child { border-bottom: 0; }
.gs-summary dt { font-weight: 700; }
.gs-summary dd { margin: 0; overflow-wrap: anywhere; }
.gs-summary .act { text-align: end; }
.gs-summary .act button, .gs-summary .act a { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-size: 15px; }
.gs-tasks { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-sm); overflow: hidden; }
.gs-tasks li { display: flex; justify-content: space-between; align-items: center; gap: 4px 16px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.gs-tasks li:last-child { border-bottom: 0; }
.gs-tasks li small { display: block; color: var(--muted); font-size: 13.5px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 11px; border-radius: var(--pill); font-size: 13.5px; font-weight: 700; line-height: 1.6; background: #e7efff; color: #1d3f8a; white-space: nowrap; }
.tag.grey { background: #e9eeef; color: #34474b; } .tag.green { background: #e2f4e9; color: #17603a; } .tag.yellow { background: #fdf3df; color: #6b4708; } .tag.red { background: #fde9e7; color: #8e231e; } .tag.purple { background: #efeafb; color: #4a3290; }
.gs-banner { border-radius: var(--r-md); overflow: hidden; border: 2px solid var(--info); box-shadow: var(--sh-sm); }
.gs-banner .h { color: #fff; background: var(--info); padding: 6px 18px; font-weight: 700; font-size: 15px; }
.gs-banner .b { background: #fff; padding: 14px 18px; font-size: 17px; font-weight: 600; }
.gs-banner.ok { border-color: var(--success); }
.gs-banner.ok .h { background: var(--success); }
.gs-inset { border-inline-start: 5px solid var(--primary); background: #fff; border-radius: var(--r-sm); padding: 10px 16px; margin: 0; color: var(--text-2); box-shadow: var(--sh-sm); }
.gs-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.gs-cols aside { display: grid; gap: 20px; }
.gs-head { display: grid; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--sh-sm); position: relative; overflow: hidden; }
.gs-head::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.gs-head h1 { font-size: 30px; font-weight: 800; overflow-wrap: anywhere; }
.gs-head .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gs-head .acts { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .cms { grid-template-columns: minmax(0, 1fr); }
  .cms-side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 280px; z-index: 60; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--sh-lg); }
  html[dir="rtl"] .cms-side { transform: translateX(100%); }
  .cms.nav-open .cms-side { transform: none; }
  .cms-burger { display: grid; }
  .cms-grid2, .cms-grid3, .gs-cols { grid-template-columns: minmax(0, 1fr); }
  .ck-row { grid-template-columns: 1fr 1fr; }
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 32px; }
  .cal { grid-template-columns: 1fr; }
  .cal-day { min-height: 0; }
}
@media (max-width: 640px) {
  .cms-body { padding: 18px 16px 40px; }
  .cms-top { padding: 10px 16px; }
  .cms-tools .btn { display: none; }
  .letter { padding: 22px; }
  .bar { grid-template-columns: 110px 1fr 34px; }
  .login-form { padding: 28px 16px; }
  .gs-summary .r { grid-template-columns: 1fr; }
  .gs-summary .act { text-align: start; }
  .gs-head { padding: 18px; }
}

/* ---------- screening: triage inbox (queue + selected claim) ---------- */
.scr-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.scr-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.scr-q { min-width: 230px; background: #fff; }
.scr-tools .field { width: auto; min-height: 42px; border-radius: var(--pill); font-size: 14px; }
.tabs em.red { background: var(--danger); color: #fff; }
.scr { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 18px; align-items: start; }
.scr-list { list-style: none; margin: 0; padding: 6px; display: grid; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-sm); position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow: auto; }
.scr-list li { padding: 12px 14px; border-radius: var(--r-sm); cursor: pointer; border: 1px solid transparent; position: relative; }
.scr-list li:hover { background: var(--tint-2); }
.scr-list li.on { background: var(--tint); border-color: #b9dcd6; }
.scr-list li.on::before { content: ""; position: absolute; inset-inline-start: -1px; inset-block: 10px; width: 4px; border-radius: 4px; background: var(--primary); }
.scr-list .r1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 2px; }
.scr-list .r1 .mono { font-size: 13px; color: var(--primary-dark); }
.scr-list .r1 .tag { font-size: 12px; padding: 0 8px; }
.scr-list b { display: block; font-size: 15.5px; line-height: 1.4; }
.scr-list li > small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.scr-list .r3 { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 12px; font-weight: 700; }
.scr-list .r3 > span { display: inline-flex; gap: 4px; align-items: center; padding: 1px 8px; border-radius: var(--pill); background: var(--tint-2); color: var(--text-2); }
.scr-list .sla { background: var(--tint) !important; color: var(--primary-dark) !important; }
.scr-list .sla.warn { background: #fdf3df !important; color: #6b4708 !important; }
.scr-list .sla.bad { background: #fde9e7 !important; color: #8e231e !important; }
.scr-list .iss { background: #fdf3df !important; color: #6b4708 !important; }
.scr-list .iss.ok { background: #e2f4e9 !important; color: #17603a !important; }
.scr-detail { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-sm); overflow: clip; display: flex; flex-direction: column; min-width: 0; }
.scr-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding: 22px 24px 16px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #f6fbfa, #fff); }
.scr-head h2 { font-size: 24px; margin: 2px 0 10px; }
.scr-head .row { display: flex; gap: 6px; flex-wrap: wrap; }
.scr-sla { flex: none; text-align: center; min-width: 104px; padding: 10px 12px; border-radius: var(--r-md); background: var(--tint); color: var(--primary-dark); }
.scr-sla b { display: block; font-size: 34px; font-weight: 800; line-height: 1; }
.scr-sla small { display: block; font-size: 12px; font-weight: 700; margin-top: 4px; }
.scr-sla span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.scr-sla.warn { background: #fdf3df; color: #6b4708; }
.scr-sla.bad { background: #fde9e7; color: #8e231e; }
.scr-detail > .gs-inset { margin: 16px 24px 0; }
.scr-body { padding: 18px 24px 24px; }
.scr-chk { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.scr-chk li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid; }
.scr-chk li svg { flex: none; margin-top: 3px; }
.scr-chk li b { display: block; font-size: 15px; }
.scr-chk li small { display: block; font-size: 14px; line-height: 1.5; }
.scr-chk li.bad { background: #fde9e7; border-color: #f4c7c3; color: #6e1a15; }
.scr-chk li.warn { background: #fdf5e6; border-color: #f1dcae; color: #5b3d06; }
.scr-chk li.ok { background: #fff; border-color: var(--border); color: var(--text); }
.scr-chk li.ok svg { color: var(--success); }
.scr-chk li.ok small { color: var(--muted); }
.scr-passed { margin-top: 10px; }
.scr-passed summary { cursor: pointer; font-weight: 700; color: var(--primary); padding: 6px 0; font-size: 15px; }
.scr-passed .scr-chk { margin-top: 6px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.scr-actions { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.scr-actions { position: sticky; bottom: 0; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-top: 1px solid var(--border); padding: 14px 24px; display: grid; gap: 10px; }
.scr-will { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--text-2); }
.scr-will svg { color: var(--info); flex: none; }
.scr-actions .btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.scr-actions .sp { flex: 1; }
.btn.ghost.danger { color: var(--danger) !important; border-color: #eab3ae; }
.btn.ghost.danger:hover { background: #fde9e7; border-color: var(--danger); }
@media (max-width: 1000px) {
  .scr { grid-template-columns: minmax(0, 1fr); }
  .scr-list { position: static; max-height: none; }
  .scr-actions { position: static; }
}
@media (max-width: 640px) {
  .scr-head { flex-direction: column; padding: 18px; }
  .scr-sla { display: flex; gap: 8px; align-items: baseline; min-width: 0; padding: 8px 12px; }
  .scr-sla b { font-size: 22px; }
  .scr-body { padding: 16px 18px 20px; }
  .scr-actions { padding: 12px 18px; }
  .scr-actions .sp { display: none; }
  .scr-q { min-width: 0; flex: 1; }
}

/* ---------- screening v2: full-width table + drawer from the inline end ---------- */
.scr-tbl tbody tr { cursor: pointer; transition: background .12s; }
.scr-tbl tbody tr:hover { background: #f4faf9; }
.scr-tbl tbody tr:focus-visible { outline: 3px solid #ffdd00; outline-offset: -3px; background: #fffbe0; box-shadow: none; color: inherit !important; }
.scr-tbl tbody tr.on { background: var(--tint); box-shadow: inset 4px 0 0 var(--primary); }
html[dir="rtl"] .scr-tbl tbody tr.on { box-shadow: inset -4px 0 0 var(--primary); }
.scr-tbl td { vertical-align: middle; }
.scr-tbl .ref { display: block; color: var(--primary-dark); font-size: 13.5px; white-space: nowrap; }
.scr-tbl .st { display: block; margin-top: 4px; }
.scr-tbl .st .tag { font-size: 12px; padding: 0 8px; }
.scr-tbl td:nth-child(2) { min-width: 200px; }
.scr-tbl td b { font-weight: 700; }
.scr-tbl .sub { display: flex; gap: 4px; align-items: center; }
.scr-tbl .c-go { width: 36px; color: var(--muted); }
.scr-tbl tbody tr:hover .c-go { color: var(--primary); }
.chip-sla, .chip-chk { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: var(--pill); white-space: nowrap; background: var(--tint); color: var(--primary-dark); }
.chip-sla.warn, .chip-chk.warn { background: #fdf3df; color: #6b4708; }
.chip-sla.bad, .chip-chk.bad { background: #fde9e7; color: #8e231e; }
.chip-chk.ok { background: #e2f4e9; color: #17603a; }
.scr-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(7, 32, 36, .38); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.scr-drawer { position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 71; width: min(780px, 100vw); background: #fff; display: flex; flex-direction: column; box-shadow: -24px 0 60px rgba(7, 32, 36, .25); }
html[dir="rtl"] .scr-drawer { box-shadow: 24px 0 60px rgba(7, 32, 36, .25); }
.scr-scrim.enter { animation: scrFade .2s ease-out; }
.scr-drawer.enter { animation: scrIn .24s cubic-bezier(.2, .8, .2, 1); }
html[dir="rtl"] .scr-drawer.enter { animation-name: scrInRtl; }
@keyframes scrFade { from { opacity: 0; } }
@keyframes scrIn { from { transform: translateX(40px); opacity: 0; } }
@keyframes scrInRtl { from { transform: translateX(-40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scr-scrim.enter, .scr-drawer.enter { animation: none; } }
.dr-nav { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--border); background: var(--tint-2); flex: none; }
.dr-nav .pos { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.dr-nav .sp { flex: 1; }
.dr-scroll { flex: 1; overflow: auto; overscroll-behavior: contain; }
.dr-scroll > .gs-inset { margin: 16px 24px 0; }
.dr-scroll .scr-head { border-radius: 0; }
@media (max-width: 1100px) { .scr-tbl .c-type, .scr-tbl .c-who { display: none; } }
@media (max-width: 760px) {
  .scr-tbl .c-filed, .scr-tbl .c-go { display: none; }
  .scr-tbl td:nth-child(2) { min-width: 0; }
  .scr-tbl table, .scr-tbl tbody, .scr-tbl tr { display: block; }
  .scr-tbl thead { display: none; }
  .scr-tbl tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .scr-tbl td { display: block; padding: 0; border: 0; }
  .scr-tbl td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .scr-tbl td:nth-child(5) { grid-column: 1; grid-row: 3; }
  .scr-tbl td:nth-child(6) { grid-column: 2; grid-row: 3; justify-self: end; }
  .scr-drawer { width: 100vw; }
  .dr-nav { padding: 10px 14px; }
  .dr-nav .btn { padding-inline: 10px; }
}
