/* ComplianceIQ 2027 design layer (2027.011): a premium finish over the base styles, light only.
   Depth from soft layered shadows on a tinted canvas instead of borders everywhere, a deep navy sidebar, a cobalt to
   violet brand accent, a firmer type scale, and motion that is quick and quiet (respects reduced motion).
   Loaded after base.css and the page's own styles, so it only refines; removing this file restores the previous look. */
:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f2f4f9;
  --line: #e6e9f2;
  --ink: #0b1226;
  --muted: #56607a;
  --faint: #98a1b8;
  --accent: #3652f5;
  --accent-2: #7b3ff2;
  --accent-ink: #ffffff;
  --accent-soft: #eef1ff;
  --grad: linear-gradient(135deg, #3652f5 0%, #5a46f4 55%, #7b3ff2 100%);
  --side: #0c1530;
  --side-2: #121d42;
  --side-ink: #c3cbe6;
  --side-faint: #7d88aa;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 6px rgba(16, 24, 40, .05);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 28px rgba(16, 24, 40, .10), 0 30px 70px rgba(16, 24, 40, .14);
  --ring: 0 0 0 4px rgba(54, 82, 245, .16);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

body { background: var(--bg); letter-spacing: -.005em; }
::selection { background: rgba(54, 82, 245, .18); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
* { scrollbar-width: thin; scrollbar-color: #c9cfdf transparent; }

/* ---------- Sidebar: deep navy ---------- */
.side { background: linear-gradient(180deg, var(--side) 0%, var(--side-2) 100%); border-right: 0; color: var(--side-ink); box-shadow: inset -1px 0 0 rgba(255, 255, 255, .04); }
.brand { color: #fff; }
.brand i { border: 0; background: conic-gradient(from 210deg, #7b3ff2, #3652f5, #36b9f5, #7b3ff2); position: relative; box-shadow: 0 0 18px rgba(91, 70, 244, .55); }
.brand i::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--side); }
.collapse { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .08); color: var(--side-ink); }
.collapse:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.new-btn { background: var(--grad); border: 0; color: #fff; box-shadow: 0 6px 18px rgba(80, 64, 240, .35); }
.new-btn:hover { filter: brightness(1.06); border: 0; }
.nav a { color: var(--side-ink); transition: background .15s, color .15s; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a[aria-current] { background: rgba(255, 255, 255, .09); color: #fff; }
.nav a[aria-current]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
html.collapsed .nav a[aria-current]::before { left: -10px; }
.side-l { color: var(--side-faint); }
.trail button { color: var(--side-ink); }
.trail button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.trail button.now { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; }
.trail .pi-ic { background: rgba(255, 255, 255, .08); color: var(--side-ink); }
.trail-empty { color: var(--side-faint); }
.side-foot { border-top-color: rgba(255, 255, 255, .08); }
.side-foot .who { color: #fff; }
.side-foot small { color: var(--side-faint); }
.pa { background: var(--grad); }
.side-foot .btn.ghost { color: var(--side-ink); }
.side-foot .btn.ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* ---------- Top bar: frosted ---------- */
.top { background: rgba(244, 246, 251, .78); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(230, 233, 242, .8); }
.top .prompt { --prompt-bg: #fff; box-shadow: var(--shadow-xs); border: 1px solid var(--line); }
.prompt:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.env { background: #fff; box-shadow: var(--shadow-xs); min-width: 0; flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; }
/* The top-bar box keeps a usable width; the spacer and the version tag give way first */
.top .prompt { flex: 3 1 340px; min-width: min(340px, 52%); }
.top .grow { flex: 0 1 auto; }
#fb-open { box-shadow: var(--shadow-xs); }

/* ---------- Type ---------- */
.s-title { font-weight: 800; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.035em; line-height: 1.12; }
.eyebrow { color: var(--accent); font-weight: 600; }
.s-head { margin-bottom: 26px; }
.card h3, .sec-h h2 { font: 700 15px var(--display); letter-spacing: -.01em; }
.dash-h h2, .week-h h2 { font-size: 26px; letter-spacing: -.035em; }

/* ---------- Surfaces ---------- */
.card { border: 1px solid rgba(15, 23, 42, .06); box-shadow: var(--shadow-sm); }
.card.flush { box-shadow: var(--shadow-sm); }
.kpi { background: #fff; border: 1px solid rgba(15, 23, 42, .06); box-shadow: var(--shadow-sm); padding: 16px 18px; position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--grad); opacity: .85; }
.kpi b { font-size: 32px; font-weight: 800; letter-spacing: -.04em; }
.kpi b.new-t, .kpi .new-t { color: var(--new); }
.kpi b.upd-t, .kpi .upd-t { color: var(--upd); }
.kpi.click { transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.kpi.click:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.dl, .fb-list, .grid-wrap { border: 1px solid rgba(15, 23, 42, .06); background: #fff; box-shadow: var(--shadow-sm); }
.dl-row, .fb-row { transition: background .12s; }
.dl-row:hover, a.fb-row:hover { background: #f7f9ff; }
.dl-t { font-weight: 650; }
.empty { border: 1px dashed #d5dbea; background: rgba(255, 255, 255, .6); border-radius: var(--radius); }

/* ---------- Buttons and controls ---------- */
.btn { border-radius: 10px; box-shadow: var(--shadow-xs); transition: border-color .15s, box-shadow .15s, transform .15s var(--ease), filter .15s; }
.btn:hover { border-color: #c9cfe0; box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad); border-color: transparent; box-shadow: 0 4px 14px rgba(80, 64, 240, .30); }
.btn.primary:hover { filter: brightness(1.06); box-shadow: 0 6px 20px rgba(80, 64, 240, .38); border-color: transparent; }
.btn.ghost { box-shadow: none; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.prompt .p-go { background: var(--grad); box-shadow: 0 4px 14px rgba(80, 64, 240, .3); }
.pill, .range, .seg { transition: background .15s; }
.pill { box-shadow: var(--shadow-xs); }
.pill[aria-pressed="true"] { background: var(--ink); box-shadow: 0 4px 12px rgba(11, 18, 38, .25); }
.pill.mat { border-color: #f3d3a6; }
.pill.mat[aria-pressed="true"] { background: #b45309; border-color: #b45309; color: #fff; box-shadow: 0 4px 12px rgba(180, 83, 9, .3); }
.range { background: #e9ecf5; }
.range button[aria-pressed="true"], .seg button[aria-pressed="true"] { box-shadow: 0 1px 3px rgba(16, 24, 40, .14), 0 0 0 1px rgba(16, 24, 40, .02); }
.fsel, .field input, .field select, .field textarea, .custom-dates input { border-color: #dde2ee; border-radius: 9px; transition: border-color .15s, box-shadow .15s; }
.fsel:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: var(--ring); outline: none; }
.toggle { transition: background .15s; }
.chip { font-weight: 650; letter-spacing: .01em; }
.chip.muted { background: #eef0f6; }
.chip.ai { background: linear-gradient(135deg, #eef1ff, #f3edff); color: #4b3ff0; }
.trychip { box-shadow: var(--shadow-xs); transition: border-color .15s, box-shadow .15s, transform .15s var(--ease); }
.trychip:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* ---------- Tabs: thicker indicator ---------- */
.tabs { border-bottom: 1px solid var(--line); gap: 6px; }
.tabs button { font-weight: 600; padding: 11px 14px; border-bottom: 3px solid transparent; transition: color .15s, border-color .15s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { border-image: var(--grad) 1; border-bottom-width: 3px; border-bottom-style: solid; }

/* ---------- Tables ---------- */
.tbl th { background: #f8f9fc; color: #7a839c; font-weight: 600; position: sticky; top: 0; z-index: 1; }
.tbl td { border-bottom-color: #eef0f6; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover td { background: #f7f9ff; }
.tbl td > b:first-child { white-space: nowrap; }

/* ---------- Home hero: soft glow ---------- */
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -40px; width: min(980px, 100%); height: 420px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(91, 70, 244, .16), rgba(54, 82, 245, .07) 55%, transparent 75%); filter: blur(10px); pointer-events: none; }
.hero h1 { background: linear-gradient(180deg, #0b1226 30%, #2b3560); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .prompt { border: 1px solid #dfe3f0; box-shadow: 0 2px 4px rgba(16, 24, 40, .04), 0 18px 50px rgba(54, 82, 245, .14); }
.hero .eyebrow { background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.week { border-top: 0; }

/* ---------- Pop-ups, menus, toasts ---------- */
.modal-wrap { background: rgba(11, 18, 38, .38); backdrop-filter: blur(6px); animation: ciq-fade .18s var(--ease); }
.modal { box-shadow: var(--shadow-lg); animation: ciq-pop .22s var(--ease); border: 1px solid rgba(15, 23, 42, .06); }
.pmenu, .dlmenu { box-shadow: var(--shadow-lg); border-color: rgba(15, 23, 42, .08); animation: ciq-pop .16s var(--ease); }
.pitem[aria-selected="true"], .dlmenu button:hover { background: #eef1ff; }

/* ---------- Loading: content-shaped placeholders instead of a spinner ---------- */
.loading { display: block; padding: 6px 0; }
.loading .spin { display: none; }
.skel { display: flex; flex-direction: column; gap: 10px; padding: 10px 0 4px; }
.skel i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #eceff6 0%, #f6f7fb 40%, #eceff6 80%); background-size: 300% 100%; animation: ciq-shimmer 1.3s ease-in-out infinite; }
.skel i:nth-child(1) { width: 62%; height: 16px; } .skel i:nth-child(2) { width: 92%; } .skel i:nth-child(3) { width: 84%; } .skel i:nth-child(4) { width: 70%; }
.loading .skel-l { display: block; margin-top: 6px; font-size: 12.5px; color: var(--faint); }

/* ---------- Motion ---------- */
#screen > * { animation: ciq-rise .28s var(--ease) both; }
@keyframes ciq-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ciq-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ciq-pop { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes ciq-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) {
  #screen > *, .modal, .modal-wrap, .pmenu, .dlmenu { animation: none; }
  .skel i { animation: none; }
  .btn, .kpi.click, .trychip { transition: none; }
}

/* ---------- "What changed" line under each policy in a list (filled by the AI summaries call) ---------- */
.dl-ai:empty { display: none; }
.dl-ai { display: flex; align-items: baseline; gap: 6px; margin-top: 7px; padding: 6px 10px; border-radius: 9px; background: linear-gradient(90deg, #f1f3ff, #f8f5ff 70%, transparent); font-size: 13px; line-height: 1.45; color: #2b3352; animation: ciq-fade .3s var(--ease); max-width: 900px; }
.dl-ai .chip { flex: none; font-size: 11px; }
.dl-ai-tag { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--accent); }
.dl-ai-tag svg { width: 12px; height: 12px; }
.dl-ai-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Policy page (2027.013): header card, AI reading, key facts, tab counts, versions timeline ---------- */
.doc-hero { position: relative; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 22px 24px 18px; margin-bottom: 18px; overflow: hidden; }
.doc-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.doc-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 28px; flex-wrap: wrap; }
.doc-hero-main { min-width: 0; flex: 1 1 420px; }
.doc-hero .s-title { margin: 6px 0 8px; font-size: clamp(21px, 2.3vw, 28px); line-height: 1.22; }
.doc-src { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.doc-payor { color: var(--accent); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; font-size: 11.5px; }
.doc-sep { color: var(--faint); }
.doc-hero .s-actions { align-items: center; justify-content: flex-end; flex: 0 1 auto; }
.doc-more { display: flex; flex-wrap: wrap; gap: 2px; width: 100%; justify-content: flex-end; }
.doc-ai { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 13px; background: linear-gradient(120deg, #f1f3ff, #f7f3ff 60%, #fbfbfe); border: 1px solid #e3e6fb; }
.doc-ai.on { display: block; animation: ciq-fade .3s var(--ease); }
.doc-ai-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #2b3352; text-transform: uppercase; letter-spacing: .04em; }
.doc-ai-h .chip { text-transform: none; letter-spacing: 0; }
.doc-ai-lead { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.doc-ai-sum { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: #3b4462; max-width: 980px; }
.doc-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 14px 0 0; }
.doc-facts > div { padding: 9px 12px; border-radius: 11px; background: #f6f7fc; border: 1px solid #edf0f7; min-width: 0; }
.doc-facts dt { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.doc-facts dd { margin: 3px 0 0; font-size: 15px; font-weight: 650; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab-n { display: inline-block; margin-left: 7px; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: #eef1ff; color: var(--accent); font-size: 11.5px; font-weight: 700; line-height: 17px; text-align: center; }
.tabs button[aria-selected="true"] .tab-n { background: var(--accent); color: #fff; }

#dbody .vlist { display: block; max-height: 520px; overflow-y: auto; }
#dbody .vrow { position: relative; min-width: 0; padding: 9px 4px 9px 30px; border-top: 0; border-radius: 10px; transition: background .15s; }
#dbody .vrow:hover { background: #f6f7fc; }
#dbody .vrow::before { content: ""; position: absolute; left: 11px; top: 0; bottom: 0; width: 2px; background: #e3e7f2; }
#dbody .vrow:first-of-type::before { top: 18px; }
#dbody .vrow:last-of-type::before { bottom: calc(100% - 18px); }
#dbody .vrow::after { content: ""; position: absolute; left: 6px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #c3cae0; box-sizing: border-box; }
#dbody .vrow.v-mat::after { border-color: #e08a1e; background: #fff4e5; }
#dbody .vrow.v-minor::after { border-color: #b7bfd4; background: #f1f3f9; }
#dbody .vrow.v-latest::after { border: 0; background: var(--grad); box-shadow: 0 0 0 4px rgba(54, 82, 245, .14); }
#dbody .vrow input { position: absolute; right: 8px; top: 12px; margin: 0; }
#dbody .vrow > span { display: block; padding-right: 26px; }
#dbody .vrow:has(input:checked) { background: #eef1ff; }

/* ---------- Comparing two versions: two documents side by side (stacked on narrow screens) ---------- */
.cmp-views { margin: 4px 0 12px; }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--muted); margin: 0 0 4px; }
.cmp-legend del { background: #fde2e1; color: #8a1c14; }
.cmp-legend ins { background: #dcf5e3; color: #14532d; text-decoration: none; }
.sx-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.sx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.sx-col { display: flex; flex-direction: column; min-width: 0; border-radius: 14px; border: 1px solid var(--line); background: #fff; overflow: hidden; box-shadow: var(--shadow-xs); }
.sx-col header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.sx-old header { background: #fff6f5; box-shadow: inset 4px 0 0 #dc4a3d; }
.sx-new header { background: #f3fbf5; box-shadow: inset 4px 0 0 #1f9d55; }
.sx-col header b { font-size: 14px; }
.sx-col header span { color: var(--muted); }
.sx-key { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.sx-key del, .sx-doc del { background: #fde2e1; color: #8a1c14; }
.sx-key ins, .sx-doc ins { background: #dcf5e3; color: #14532d; text-decoration: none; }
.sx-doc { position: relative; height: 68vh; overflow-y: auto; padding: 14px 18px 40vh; font-size: 13.5px; line-height: 1.65; color: #1d2333; overflow-wrap: anywhere; }
.sx-doc del, .sx-doc ins { border-radius: 3px; padding: 0 1px; }
.sx-gap { display: inline-block; width: 8px; height: 1.1em; vertical-align: text-bottom; border-left: 2px dashed #a8b0c6; margin: 0 2px; }
.sx-m.on { outline: 2px solid var(--accent); outline-offset: 1px; }
.sx-gap.on { border-left-color: var(--accent); }
@media (max-width: 900px) {
  .sx { grid-template-columns: minmax(0, 1fr); }
  .sx-doc { height: 40vh; padding-bottom: 20vh; }
}

/* ---------- Ask: what the AI is doing while it works ---------- */
.ask-prog { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.ask-prog::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: ciq-pulse 1.1s ease-in-out infinite; flex: none; }
@keyframes ciq-pulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .ask-prog::before { animation: none; } }

/* ---------- Last pass (2027.016): sortable tables, admin filter, empty screens, quieter row actions ---------- */
.tbl thead th { cursor: pointer; user-select: none; }
.tbl thead th:empty { cursor: default; }
.tbl thead th:hover { color: var(--ink); }
.tbl thead th[aria-sort]::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; vertical-align: middle; }
.tbl thead th[aria-sort="ascending"]::after { border-bottom-color: var(--accent); margin-top: -4px; }
.tbl thead th[aria-sort="descending"]::after { border-top-color: var(--accent); margin-top: 4px; }
.a-filter { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; box-shadow: var(--shadow-xs); color: var(--faint); min-width: 240px; }
.a-filter:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(54, 82, 245, .14); }
.a-filter input { border: 0; outline: 0; background: none; font: inherit; font-size: 13.5px; padding: 9px 0; width: 100%; color: var(--ink); }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 34px 24px; border: 1px dashed #d5dbea; border-radius: 16px; background: linear-gradient(180deg, #fbfcff, #f6f8fd); color: var(--muted); font-size: 14px; line-height: 1.55; }
.empty::before { content: ""; width: 38px; height: 38px; border-radius: 12px; margin-bottom: 4px; background: #eef1ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233652f5' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") center / 20px no-repeat; }
.tbl td .linkish, .tbl td .btn.ghost { opacity: .7; transition: opacity .15s; }
.tbl tr:hover td .linkish, .tbl tr:hover td .btn.ghost, .tbl td .linkish:focus, .tbl td .btn.ghost:focus { opacity: 1; }

/* Home: payors whose sources were not read lately */
.pbar.stale .pb-n { color: var(--muted); }
.pb-stale { display: inline-block; white-space: nowrap; font-size: 11px; font-weight: 600; color: #9a5b10; background: #fff4e5; border-radius: 999px; padding: 1px 8px; }
.pbar.stale { grid-template-columns: minmax(90px, 1fr) minmax(0, .6fr) auto; }

/* Payor sources: long source names wrap, so the table never runs off the page */
.tbl td.src-name { white-space: normal; min-width: 220px; max-width: 420px; }
.tbl td.src-name > b, .tbl td.src-name a { white-space: normal; overflow-wrap: anywhere; }
/* List of changes (2027.021): the page of each change, read from the PDFs */
.chg .pg { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--line); border-radius: 6px; padding: 0 6px; margin-right: 6px; white-space: nowrap; }
/* Add or edit a source (2027.021): a switch with its explanation under the label */
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; cursor: pointer; }
.check-row input { margin-top: 3px; flex: none; }
.check-row small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }

/* ---------- Phones (2027.018): nothing wider than the screen ---------- */
.ask-grid > *, .results-grid > *, .vgrid > *, .doc-hero-main, .main, #screen { min-width: 0; }
.ask-f-row .facet { min-width: 0; }
.ask-f-row .fsel { max-width: 100%; }
@media (max-width: 760px) {
  .env { display: none; }
  #fb-open { font-size: 0; gap: 0; padding: 0 10px; height: 34px; }
  #fb-open svg { margin: 0; }
  .top .prompt { flex: 1 1 auto; min-width: 0; }
  .main { overflow-x: clip; }
  .s-title { overflow-wrap: anywhere; }
  .s-head { flex-wrap: wrap; }
  .s-actions, .row-btns, .tabbar, .cmp-views, .sx-bar { flex-wrap: wrap; }
  .a-filter { min-width: 0; width: 100%; }
  .tbl { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .grid-wrap, .card.flush { overflow-x: auto; }
  .ask-f-row .facet { flex: 1 1 100%; }
  .ask-q, .ask-a { max-width: 100%; overflow-wrap: anywhere; }
  .doc-hero { padding: 18px 16px 14px; }
  .doc-hero .s-actions { justify-content: flex-start; }
  .doc-more { justify-content: flex-start; }
  .tabs { overflow-x: auto; }
  .sx-doc { padding: 12px 12px 20vh; }
}

/* ---------- Footer ---------- */
.foot { border-top: 0; color: var(--faint); }
/* Feedback attachments that are files, not images (2027.022) */
.shot .shot-file { display: flex; align-items: center; justify-content: center; text-align: center; width: 100%; height: 100%; min-height: 64px; padding: 8px; font-size: 12px; color: var(--ink); overflow-wrap: anywhere; background: var(--line); border-radius: 8px; }
/* Search within one payor, on its page (2027.023) */
.p-search { display: flex; flex-wrap: wrap; gap: 8px; }
/* Feedback 1022: the box keeps room for its whole hint ("Words or policy number"); the button goes below when narrow */
.p-search input { flex: 1 1 190px; min-width: 190px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
/* Feedback 1024: the page number box in a pager */
.pager .pg-go { width: 4.5em; padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; font: inherit; text-align: center; }
.custom-err { color: #b42318; font-size: 13px; align-self: center; }
/* Admin, Daily checks: one morning check per row, opened to show its lines */
.check-day { border-bottom: 1px solid var(--line); }
.check-day:last-child { border-bottom: 0; }
.check-day > summary { cursor: pointer; padding: 12px 16px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.check-day > summary .small { flex: 1 1 260px; min-width: 0; }
.check-body { padding: 0 16px 14px 32px; }
.check-body h4 { margin: 8px 0 4px; font-size: 13px; }
.check-lines { margin: 0 0 6px; padding-left: 18px; font-size: 13.5px; overflow-wrap: anywhere; }
.check-lines li { margin: 2px 0; }
.check-lines.warn li::marker { color: var(--upd); }
/* Feedback 1032: exact title matches above the word results */
.title-hits { margin-bottom: 6px; }
.title-hits .dl { margin-bottom: 16px; }
