/* IT-016 — Hội thoại (R3/R4/R9/R10), ngữ cảnh vấn đề trong hội thoại (R5/R11), Vấn đề AI (R6/R12), dòng Tổng quan (R7), trạng thái (R8).
   Chỉ token --ux-*; không đụng vùng chat FROZEN (các khối mới nằm ngoài .chat-panel hoặc thay chỗ #workspace). */

/* ---------------------------------------------------------------- S1: rail có nhãn chữ + huy hiệu Vấn đề AI */
@media (min-width: 761px) {
  body #app-screen #shell-nav { padding: 0 4px; gap: 4px; }
  body #app-screen #shell-nav button[data-view] { position: relative; width: 48px !important; height: auto !important; min-height: 50px; padding: 7px 0 5px !important; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 10px; }
  body #app-screen #shell-nav button[data-view] span { position: static !important; width: auto !important; height: auto !important; clip-path: none !important; overflow: visible !important; font-size: 10px; line-height: 11px; font-weight: 600; text-align: center; white-space: normal; max-width: 46px; }
  body #app-screen #shell-nav button[data-view].active { width: 48px !important; }
}
#shell-nav .s3-nav-n { position: absolute; top: 2px; right: 1px; min-width: 18px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--ux-primary); color: var(--ux-on-primary); font: 700 9.5px/15px system-ui, sans-serif; font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--shell-rail-bg, var(--ux-surface)); }
#shell-nav .s3-nav-n[hidden] { display: none; }

/* ---------------------------------------------------------------- landing frame: thay #account-overview + cột danh sách cũ */
#app-screen[data-s3-land] > .sidebar { width: 0 !important; min-width: 0 !important; padding: 0; border-right: 0; overflow: visible; }
#app-screen[data-s3-land] .sidebar-hero > :not(#shell-nav),
#app-screen[data-s3-land] .sidebar-scroll { display: none !important; }
#app-screen[data-s3-land] .chat-panel,
#app-screen[data-s3-land] #info-panel,
#app-screen[data-s3-land] .s3-conv,
#app-screen[data-s3-land] #work-insights { display: none !important; }
body #app-screen[data-s3-land] .workspace { display: flex !important; flex-direction: column; flex: 1; min-width: 0; min-height: 0; padding: 0; overflow: hidden; background: var(--ux-bg); }
.s3-land-grid { flex: 1; min-height: 0; display: flex; }
.s3-land .lc { width: 390px; flex: none; display: flex; flex-direction: column; min-height: 0; background: var(--ux-surface); border-right: 1px solid var(--ux-border); }
.s3-land .lc .hd { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--ux-border); }
.s3-land .lc h1 { font-size: 18px; line-height: 24px; font-weight: 700; }
.s3-land .lc .ls { flex: 1; min-height: 0; overflow: auto; }
.s3-land .lc .ft { padding: 10px 16px; border-top: 1px solid var(--ux-border); display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: none; }
.s3-land .rc { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.s3-land .s3-body { padding-top: 4px; }
.s3-land-ph { height: auto; min-height: 64px; padding: 12px 24px 8px; }
.s3-land-ph h1 { font-size: 20px; line-height: 26px; }
.s3-pad { padding: 16px; }
.s3-scopebtn { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: center; text-align: left; padding: 6px 12px; min-height: 46px; width: 100%; border: 1px solid var(--ux-primary); background: var(--ux-sel); border-radius: 8px; color: var(--ux-text); min-width: 0; }
.s3-scopebtn .k { font-size: 11px; color: var(--ux-muted); grid-column: 1; line-height: 14px; }
.s3-scopebtn .v { font-weight: 600; grid-column: 1; line-height: 20px; }
.s3-scopebtn svg { grid-column: 2; grid-row: 1 / 3; }
.s3-land-q { height: 38px; }
.s3-in kbd { border: 1px solid var(--ux-border-strong); border-radius: 5px; padding: 0 5px; font: 11px/16px system-ui, sans-serif; color: var(--ux-muted); background: transparent; }
.s3-land-type { width: 100%; }
.s3-land-type button { flex: 1; justify-content: center; }
.s3-land .lc .s3-fc { height: 38px; }
.s3-land-fbtn { display: none; }
.s3-land-fbtn .n, .s3-land-mf .n { font-size: 11px; background: var(--ux-primary); color: var(--ux-on-primary); border-radius: 9px; padding: 0 6px; }
.s3-land-mhot, .s3-land-mf { display: none; }
mark { background: #FDE68A; color: inherit; border-radius: 2px; padding: 0 1px; }
:root[data-theme="dark"] mark, html[data-theme="dark"] mark { background: #7A5A0E; color: #fff; }

/* conversation row (real link; R3 / R4 / R5) */
.s3-cv { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--ux-border); color: var(--ux-text); text-decoration: none; position: relative; min-width: 0; }
.s3-cv:hover { background: var(--ux-hover); text-decoration: none; }
.s3-cv:focus-visible { outline: 2px solid var(--ux-primary); outline-offset: -2px; }
.s3-cv.sel { background: var(--ux-sel); box-shadow: inset 3px 0 0 var(--ux-primary); }
.s3-cv .av, .s3-hit .av { width: 32px; height: 32px; border-radius: 50%; background: var(--ux-ai-soft); color: var(--ux-ai); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.s3-cv .av.g { border-radius: 10px; }
.s3-hit .av.sm { width: 26px; height: 26px; font-size: 10px; }
.s3-cv .bd { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.s3-cv .r1 { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.s3-cv .nm { flex: 1; font-size: 13.5px; font-weight: 650; }
.s3-cv .tm { font-size: 11px; color: var(--ux-muted); flex: none; }
.s3-cv .lm { font-size: 12px; color: var(--ux-text-2); }
.s3-cv .bg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; min-width: 0; }
.s3-cv .op { display: none; }
.s3-cv.opening { opacity: .85; pointer-events: none; }
.s3-cv.opening .op { display: block; position: absolute; right: 16px; bottom: 12px; color: var(--ux-muted); }
.s3-cv.sk { pointer-events: none; }
.s3-cv.sk .av { background: var(--ux-hover); }
.s3-cv.sk .bd { gap: 8px; padding-top: 2px; }
.s3-chip.acc { background: var(--ux-surface-2); color: var(--ux-text-2); box-shadow: inset 0 0 0 1px var(--ux-border); font-weight: 600; }

/* R8: năm trạng thái AI = chữ + ký hiệu, không chỉ màu */
.s3-ais { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11.5px; font-weight: 650; white-space: nowrap; max-width: 100%; }
.s3-ais .sy { font-size: 10px; line-height: 1; }
.s3-ais.issue { background: var(--ux-danger-soft); color: var(--ux-danger); }
.s3-ais.monitor { background: var(--ux-ai-soft); color: var(--ux-ai); }
.s3-ais.clear { background: var(--ux-ok-soft); color: var(--ux-ok); }
.s3-ais.none { background: transparent; color: var(--ux-text-2); box-shadow: inset 0 0 0 1px var(--ux-border-strong); }
.s3-ais.stale { background: var(--ux-warn-soft); color: var(--ux-warn); }

/* discovery (R3 right) */
.s3-disc { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.s3-disc-wide { grid-column: 1 / -1; }
.s3-disc .s3-ch { padding: 14px 16px 8px; }
.s3-disc .s3-ch h3 { font-size: 15px; }
.s3-disc-row.s3-hot { grid-template-columns: 116px minmax(0, 1fr) 64px; padding: 10px 16px; }
.s3-chg, .s3-due { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border: 0; border-top: 1px solid var(--ux-border); background: none; width: 100%; text-align: left; color: var(--ux-text); min-width: 0; }
.s3-chg:first-child, .s3-due:first-child { border-top: 0; }
.s3-chg:hover, .s3-due:hover { background: var(--ux-hover); }
.s3-due { align-items: center; }
.s3-chg .tg { flex: none; width: 104px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; border-radius: 5px; padding: 2px 6px; background: var(--ux-hover); color: var(--ux-text-2); text-align: center; }
.s3-chg .tg.hi { background: var(--ux-danger-soft); color: var(--ux-danger); }
.s3-chg .tg.ai { background: var(--ux-ai-soft); color: var(--ux-ai); }
.s3-chg .tg.ok { background: var(--ux-ok-soft); color: var(--ux-ok); }
.s3-chg .tg.wn { background: var(--ux-warn-soft); color: var(--ux-warn); }
.s3-covbar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--ux-hover); margin: 2px 0 8px; }
.s3-covbar i { display: block; height: 100%; }
.s3-covbar i.issue { background: var(--ux-danger); } .s3-covbar i.monitor { background: var(--ux-ai); } .s3-covbar i.clear { background: var(--ux-ok); }
.s3-covbar i.none { background: var(--ux-border-strong); } .s3-covbar i.stale { background: var(--ux-attn); }
.s3-covrow { display: flex; align-items: center; gap: 10px; padding: 4px 0; min-width: 0; }
.s3-accs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.s3-acc { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: left; padding: 10px 12px; border: 1px solid var(--ux-border); border-radius: 10px; background: var(--ux-surface); color: var(--ux-text); min-width: 0; }
.s3-acc:hover { border-color: var(--ux-border-strong); background: var(--ux-hover); }
.s3-acc > * { max-width: 100%; }

/* R4: filters + results */
.s3-land-filters { overflow: auto; }
.s3-fp { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.s3-fp-t { font-size: 16px; font-weight: 700; }
.s3-fp-g { display: flex; flex-direction: column; gap: 6px; }
.s3-fp-g.off { opacity: .55; }
.s3-ck { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 13px; color: var(--ux-text); cursor: pointer; min-height: 28px; }
.s3-ck input { width: 16px; height: 16px; margin: 0; accent-color: var(--ux-primary); flex: none; }
.s3-sevpick { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 1px; border-radius: 13px; color: var(--ux-text); }
.s3-sevpick.on { box-shadow: 0 0 0 2px var(--ux-primary); }
.s3-sevpick[disabled] { cursor: default; }
.s3-land-pick { width: 320px; padding: 10px 14px; gap: 2px; }
.s3-land-pick .s3-fp-g { margin-top: 6px; }
.s3-land-sheet { width: 420px; max-height: min(720px, calc(100dvh - 24px)); overflow: auto; }
.s3-sheet-ft { position: sticky; bottom: 0; padding: 12px 16px; border-top: 1px solid var(--ux-border); background: var(--ux-surface); display: flex; }
.s3-sheet-ft .s3-btn { flex: 1; justify-content: center; height: 44px; }
.s3-land-search { padding: 16px 24px; gap: 12px; overflow: auto; }
.s3-land-big { height: 44px; border-color: var(--ux-primary); }
.s3-land-big input { font-size: 14px !important; }
.s3-land-res .s3-card { overflow: hidden; }
.s3-land-res .s3-cv { padding: 12px 18px; }
.s3-land-res .s3-cv:last-child { border-bottom: 0; }
.s3-hit { display: flex; gap: 10px; align-items: flex-start; padding: 10px 18px; border-top: 1px solid var(--ux-border); min-width: 0; }
.s3-hit:first-child { border-top: 0; }
.s3-hit .s3-lnk { flex: none; padding-top: 2px; }

/* ---------------------------------------------------------------- R5: chip quay lại + danh sách nguồn ở cột trái */
.s3-ctx { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 0; }
.s3-ctx[hidden] { display: none; }
.s3-back { align-self: flex-start; height: 32px; padding: 0 12px; border: 1px solid var(--ux-border-strong); border-radius: 16px; background: var(--ux-surface); color: var(--ux-text); font-weight: 600; font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s3-back:hover { background: var(--ux-hover); }
.s3-ctx .s3-seg { align-self: flex-start; }
.s3-ctx .ls { margin: 0 -12px; border-top: 1px solid var(--ux-border); }
.s3-ctx .ft { display: flex; align-items: center; gap: 10px; padding: 8px 0 10px; border-top: 1px solid var(--ux-border); margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
#app-screen[data-s3-ctx] #conversation-list,
#app-screen[data-s3-ctx] .conv-toolbar,
#app-screen[data-s3-ctx] #conv-all-hint,
#app-screen[data-s3-ctx] .conv-section > .section-title { display: none !important; }

/* R5 panel */
.s3-conv-hd { padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 6px; }
.s3-conv .s3-conv-t { font-size: 14px; line-height: 20px; font-weight: 700; overflow-wrap: anywhere; }
.s3-ib { width: 26px; height: 26px; display: inline-grid; place-items: center; border: 1px solid var(--ux-border); border-radius: 6px; background: var(--ux-surface); color: var(--ux-link); font-weight: 700; padding: 0; }
.s3-ib:hover { background: var(--ux-hover); }
.s3-ev { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; padding: 8px 12px; border-radius: 8px; background: var(--ux-ai-soft); border: 1px solid transparent; overflow-wrap: anywhere; }
.s3-ev.on { border: 2px solid var(--ux-primary); background: var(--ux-surface); }
.s3-ev.saved { background: var(--ux-surface-2); border: 1px dashed var(--ux-border-strong); }
.s3-conv-oth { display: flex; align-items: center; gap: 8px; padding: 4px 0; border: 0; background: none; text-align: left; width: 100%; color: var(--ux-text); min-width: 0; }
.s3-conv-oth:hover .s3-lnk { text-decoration: underline; }
.s3-state.wn { background: var(--ux-warn-soft); border-color: transparent; }
.s3-state.wn b { color: var(--ux-warn); }

/* ---------------------------------------------------------------- R7: dòng vấn đề ở Tổng quan */
.s3-hotw { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-top: 1px solid var(--ux-border); position: relative; }
.s3-hotw:first-child { border-top: 0; }
.s3-hotw > .s3-hot { border-top: 0; grid-template-columns: 116px minmax(0, 1fr) 120px; color: var(--ux-text); text-decoration: none; }
.s3-hotw > .s3-hot:hover { text-decoration: none; }
.s3-hotw:hover, .s3-hotw.sel { background: var(--ux-hover); }
.s3-hotw.sel { background: var(--ux-sel); }
.s3-hotw > .s3-hot:hover { background: transparent; }
.s3-hotw > .s3-hot:focus-visible { outline: 2px solid var(--ux-primary); outline-offset: -2px; }
.s3-prof { margin-right: 12px; height: 28px; padding: 0 10px; border: 1px solid var(--ux-border-strong); border-radius: 7px; background: var(--ux-surface); color: var(--ux-text); font-size: 12px; font-weight: 600; opacity: 0; white-space: nowrap; }
.s3-hotw:hover .s3-prof, .s3-hotw:focus-within .s3-prof, .s3-hotw.failed .s3-prof { opacity: 1; }
@media (hover: none) { .s3-prof { opacity: 1; } }
.s3-hotw.opening > .s3-hot { opacity: .85; pointer-events: none; }
.s3-hotw.opening .w { color: var(--ux-text-2); }
.s3-hotw.failed .w { color: var(--ux-danger); }
.s3-hotw.back { outline: 2px solid var(--ux-primary); outline-offset: -2px; }
.s3-upd { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; background: var(--ux-ai-soft); color: var(--ux-ai); }

/* ---------------------------------------------------------------- R6: Vấn đề AI */
.s3-iss-ph { height: auto; min-height: 64px; padding: 12px 24px; }
.s3-iss-ph h1 { font-size: 20px; line-height: 26px; }
.s3-tabs { width: 100%; }
.s3-tabs button { flex: 1; justify-content: center; padding: 0 8px; }
.s3-iss-ctl .s3-fc { height: 38px; }
.s3-iss-ctl .s3-in { height: 38px; }
.s3-irow { border-top: 1px solid var(--ux-border); }
.s3-irow:first-child { border-top: 0; }
.s3-irow > .s3-hot { border-top: 0; }
.s3-irow.sel { background: var(--ux-sel); }
.s3-irow.sel > .s3-hot { background: transparent; }
.s3-irow .acts { display: flex; gap: 8px; padding: 0 14px 10px 130px; }
.s3-irow .acts .s3-btn { height: 30px; }
.s3-d-acts { margin-top: 4px; }

/* ---------------------------------------------------------------- 1366 */
@media (max-width: 1400px) {
  .s3-land .lc { width: 360px; }
  .s3-disc { gap: 12px; }
}
@media (max-width: 1280px) {
  .s3-disc { grid-template-columns: minmax(0, 1fr); }
  .s3-irow .acts { padding-left: 122px; }
}

/* ---------------------------------------------------------------- mobile (R9–R12) */
@media (max-width: 760px) {
  body #app-screen[data-s3-land] { flex-direction: column; height: 100dvh; }
  body #app-screen[data-s3-land] > .sidebar { width: 100% !important; height: auto; flex: none; border: 0; display: block !important; }
  body #app-screen[data-s3-land] .sidebar-hero { padding: 0; background: var(--ux-surface); }
  body #app-screen[data-s3-land] #shell-nav { display: flex; flex-flow: row nowrap; align-items: center; gap: 12px; height: 44px; padding: 0 14px; margin: 0; overflow-x: auto; scrollbar-width: none; background: var(--ux-surface); border-bottom: 1px solid var(--ux-border); }
  body #app-screen[data-s3-land] #shell-nav > :not(button[data-view], #rail-utils) { display: none; }
  body #app-screen[data-s3-land] #rail-utils { display: none; }
  body #app-screen[data-s3-land] #shell-nav button[data-view] { width: auto; height: 44px; padding: 0 2px; flex: none; background: transparent; border: 0; border-radius: 0; box-shadow: none; color: var(--ux-text-2); font-size: 12px; font-weight: 500; border-bottom: 2px solid transparent; position: relative; }
  body #app-screen[data-s3-land] #shell-nav button[data-view] .nav-icon { display: none; }
  body #app-screen[data-s3-land] #shell-nav button[data-view] span { position: static !important; width: auto !important; height: auto !important; clip-path: none !important; overflow: visible !important; }
  body #app-screen[data-s3-land] #shell-nav button[data-view].active { color: var(--ux-primary); font-weight: 650; border-bottom-color: var(--ux-primary); }
  body #app-screen[data-s3-land] #shell-nav .s3-nav-n { position: static; margin-left: 4px; box-shadow: none; display: inline-block; }
  body #app-screen[data-s3-land] #shell-nav button[data-view] { display: inline-flex; align-items: center; }
  .s3-land .lc { width: 100%; border-right: 0; }
  .s3-land .rc.s3-land-disc { display: none; }
  .s3-land[data-mode="search"] .lc { display: none; }
  .s3-land .lc .hd > .s3-fx:has([data-l-pick]) [data-l-pick] { display: none; }
  .s3-land-fbtn { display: inline-flex; height: 44px; }
  .s3-land .lc .hd > .s3-fx:has([data-l-pick]) { justify-content: flex-start; }
  .s3-land-q { height: 44px; }
  .s3-land-mhot { display: flex; align-items: center; gap: 8px; margin: 8px 12px 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--ux-border); background: var(--ux-surface); width: calc(100% - 24px); text-align: left; color: var(--ux-text); min-height: 44px; }
  .s3-land-mf { display: inline-flex; height: 44px; }
  .s3-land-search { padding: 12px; }
  .s3-land-search .s3-fresh { display: none; }
  .s3-land-type button { height: 36px; }
  .s3-cv { min-height: 64px; }
  .s3-land .lc .ft .s3-lnk, .s3-hit .s3-lnk { min-height: 44px; display: inline-flex; align-items: center; }
  .s3-land-sheet { width: auto; }
  .s3-irow .acts { padding: 0 12px 10px; }
  .s3-irow .acts .s3-btn { height: 44px; flex: 1; justify-content: center; }
  .s3-hotw > .s3-hot { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .s3-hotw > .s3-hot > .s3-tr { display: none; }
  .s3-prof { height: 44px; }
}

/* R11: thanh ngữ cảnh AI trên di động (ngoài vùng chat; chỉ khi hội thoại có ngữ cảnh / vấn đề) */
#s3-mstrip { display: none; }
@media (max-width: 1100px) {
  body.mobile-chat #s3-mstrip:not([hidden]), body:not(.role-user) #app-screen[data-view="conversations"]:has(#chat-active:not(.hidden)) #s3-mstrip:not([hidden]) { display: flex; }
}
#s3-mstrip { align-items: center; gap: 8px; padding: 6px 12px; background: var(--ux-surface); border-bottom: 1px solid var(--ux-border); flex: none; min-height: 44px; }
#s3-mstrip .s3-back { height: 32px; }
#s3-mstrip .s3-mchip { margin-left: auto; height: 32px; border: 0; border-radius: 16px; padding: 0 12px; font-weight: 650; font-size: 12.5px; background: var(--ux-danger-soft); color: var(--ux-danger); }
#s3-mstrip .s3-mchip.ok { background: var(--ux-hover); color: var(--ux-text-2); }
.s3-msheet { padding: 14px 16px 16px; gap: 10px; max-height: 70dvh; overflow: auto; }
.s3-msheet .acts { display: flex; gap: 8px; }
.s3-msheet .acts .s3-btn { flex: 1; justify-content: center; height: 44px; }
.s3-fp .s3-scopebtn .k { display: none; }
.s3-ctx .ft { position: sticky; bottom: 0; background: var(--ux-surface); z-index: 1; }
@media (max-width: 760px) {
  body #app-screen[data-s3-land] #shell-nav button[data-view].active { box-shadow: none !important; background: transparent !important; }
}
.s3-iss-ctl { flex-wrap: wrap; }
.s3-iss-ctl .s3-in { flex: 1 1 170px; }
@media (max-width: 600px) {
  .s3-tabs { flex-wrap: wrap; overflow: visible; }
  .s3-tabs button { flex: 1 1 30%; height: 34px; padding: 0 6px; }
}
@media (max-width: 760px) {
  /* AC-15: mục tiêu chạm ≥ 44px trên di động */
  #s3-mstrip .s3-back, #s3-mstrip .s3-mchip, .s3-ctx .s3-back { height: 44px; border-radius: 22px; }
  .s3-land .lc .s3-scopebtn, .s3-land-type button, .s3-sheet-ft .s3-btn { min-height: 44px; }
  .s3-ck { min-height: 44px; }
  .s3-msheet .s3-ib, .s3-conv .s3-ib { width: 44px; height: 44px; }
}
@media (max-width: 600px) {
  #app-screen:is([data-view="overview"], [data-view="issues"]):has(.s3-page) #shell-nav .s3-nav-n { position: static; margin-left: 4px; box-shadow: none; display: inline-block; }
  #app-screen:is([data-view="overview"], [data-view="issues"]):has(.s3-page) #shell-nav button[data-view] { display: inline-flex; align-items: center; }
}

/* ---------------------------------------------------------------- IT-016 QA remediation */
/* n1: the "Vấn đề AI" count sits on the label line ("AI 215"), never over the icon of the 56px rail. */
@media (min-width: 761px) {
  body #app-screen #shell-nav button[data-view] span .s3-nav-n { position: static; display: inline-block; margin-left: 3px; vertical-align: 0; box-shadow: none; }
}
/* n5: the phone tab strip scrolls; the fade at the right edge says so instead of a hard cut. */
@media (max-width: 760px) {
  body #app-screen[data-s3-land] #shell-nav,
  #app-screen:is([data-view="overview"], [data-view="issues"]):has(.s3-page) #shell-nav { gap: 10px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
}

/* Dashboard "Bỏ qua" (per viewer) and the "Đã bỏ qua" list */
.s3-prof.s3-skip { margin-left: -6px; color: var(--ux-text-2, var(--ux-text)); }
.s3-hotw.s3-dis .s3-hot { cursor: default; opacity: .8; }
