/* Claimly console. Builds on claimly.css tokens. */
body.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; background: var(--bg); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.card { padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.box-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.box-head h2 { font-family: var(--font-ui); font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; max-width: none; }

/* Sidebar */
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 14px; background: var(--surface); border-right: 1px solid var(--line); }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; }
.side-brand span { font-family: var(--font-display); font-size: 23px; line-height: 1; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
@media (hover: hover) and (pointer: fine) { .side-nav a:hover { background: var(--bg); } }
.side-nav a[aria-current='page'] { background: var(--blue-soft); color: var(--blue-deep); }
.side-nav a[aria-current='page']::before { content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); }
.side-badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 11px; display: grid; place-items: center; font-weight: 600; }
.side-badge-red { background: var(--red); }
.side-badge[hidden] { display: none; }
.side-foot { margin-top: auto; display: grid; gap: 14px; padding: 0 4px; }
.side-org { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--bg); font-size: 13px; }
.side-org p { line-height: 1.3; }
.side-org .muted { font-size: 12px; }
.org-dot { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; }
.side-db { padding-left: 8px; color: var(--muted); }

/* Main */
.main { min-width: 0; padding: 16px clamp(16px, 3vw, 36px) 40px; }
.demo-banner { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; margin-bottom: 18px; padding: 6px 12px; border-radius: 8px; background: var(--amber-bg); color: var(--amber); font-size: 12.5px; font-weight: 500; }
.demo-banner svg { flex: none; }
.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.top-l { min-width: 0; }
.top-kicker { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.top-title { font-family: var(--font-display); font-weight: 400; font-size: 38px; line-height: 1.1; letter-spacing: -.015em; }
.top-actions { display: flex; gap: 10px; align-items: center; min-width: 0; }
.picker select { height: 40px; max-width: 100%; padding: 0 36px 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%230C1A33' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center / 12px no-repeat; appearance: none; -webkit-appearance: none; font-size: 14px; font-weight: 500; cursor: pointer; }
.picker select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.view[data-entering] { animation: viewIn 320ms var(--ease-out); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }

/* Queue */
.stages { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.stage-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: left; transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease, transform var(--t-press) var(--ease-out); min-width: 0; }
.stage-btn span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stage-btn b { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1; }
.stage-btn::before { content: ''; width: 18px; height: 3px; border-radius: 2px; background: var(--ink); }
.sb-docs::before { background: var(--amber-line); }
.sb-checked::before { background: var(--blue); }
.sb-ready::before { background: var(--green); }
.sb-submitted::before { background: var(--line-2); }
.sb-query::before { background: var(--red); }
@media (hover: hover) and (pointer: fine) { .stage-btn:hover { border-color: var(--line-2); } }
.stage-btn[aria-pressed='true'] { border-color: var(--blue); background: var(--blue-tint); box-shadow: inset 0 0 0 1px var(--blue); }
.q-tools { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); width: 340px; max-width: 100%; transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(27,75,191,.1); }
.search input { border: 0; outline: 0; background: none; width: 100%; font-size: 14px; color: var(--ink); min-width: 0; }
.q-note { font-size: 12.5px; color: var(--muted); }
.table-wrap { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: auto; }
.q-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.q-table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.q-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.q-table tr:last-child td { border-bottom: 0; }
.q-table tbody tr { cursor: pointer; transition: background-color 120ms ease; }
@media (hover: hover) and (pointer: fine) { .q-table tbody tr:hover { background: var(--blue-tint); } }
.q-table tbody tr:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.q-table .num { text-align: right; font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.q-table .nm { display: block; font-weight: 600; }
.q-table .meta { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.q-table td .meta.mono { font-size: 11.5px; }
.q-table .nowrap { white-space: nowrap; }
.q-table th.num { font-family: var(--font-ui); font-size: 12px; }
.flags { font-size: 13px; color: var(--muted); white-space: nowrap; }
.flags.has { color: var(--amber); font-weight: 600; }
.risk { color: var(--red); font-family: var(--font-ui); font-weight: 600; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* Claim detail */
.c-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; align-items: center; margin-bottom: 12px; }
.c-id { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.c-diag { font-family: var(--font-display); font-size: 24px; line-height: 1.2; }
.c-head-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.c-head-act [aria-disabled='true'] { opacity: .55; box-shadow: none; }
.c-reasons { grid-column: 1 / -1; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 13.5px; color: var(--ink-2); }
.done-note { font-size: 13.5px; color: var(--green); font-weight: 500; }
.policy-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; margin-bottom: 12px; border-radius: var(--r-lg); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.policy-strip > div { padding: 12px 14px; background: var(--surface); min-width: 0; }
.policy-strip span { display: block; font-size: 11.5px; color: var(--muted); }
.policy-strip b { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.policy-strip b.mono { font-weight: 500; font-size: 13.5px; }
.ps-note { grid-column: 1 / -1; padding: 6px 14px; background: var(--blue-tint); font-size: 11.5px; color: var(--blue-deep); }
.c-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 12px; align-items: start; }
.c-main, .c-side { display: grid; gap: 12px; min-width: 0; }
.c-side { position: sticky; top: 16px; }

.alert { display: flex; gap: 12px; padding: 14px 16px; }
.alert b { display: block; font-size: 14.5px; }
.alert p { font-size: 13.5px; margin-top: 2px; }
.alert-red { background: var(--red-soft); border-color: rgba(163,48,43,.25); color: var(--red); }
.alert-red p { color: #6E1F1B; }
.alert-info { background: var(--blue-tint); border-color: rgba(27,75,191,.18); color: var(--blue-deep); }
.alert-info p { color: var(--ink-2); }

.bill-card { padding-bottom: 8px; }
.bt-head { display: grid; grid-template-columns: minmax(0, 1fr) 110px 150px; gap: 12px; padding: 0 4px 8px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1.5px solid var(--ink); }
.bt-head span:nth-child(2) { text-align: right; }
.bt-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 150px; gap: 4px 12px; align-items: center; padding: 11px 4px; border-bottom: 1px dashed var(--line-2); }
.bt-row:last-child { border-bottom: 0; }
.bt-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.cat { font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; background: var(--bg); color: var(--muted); }
.bt-name { font-weight: 600; font-size: 14.5px; }
.bt-detail { flex-basis: 100%; font-size: 12.5px; color: var(--muted); }
.bt-amt { text-align: right; font-size: 13.5px; }
.bt-st { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 4px 9px 4px 7px; border-radius: 8px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.s-ok { background: var(--green-soft); color: var(--green); }
.s-flag { background: var(--amber-bg); color: var(--amber); }
.s-np { background: var(--red-soft); color: var(--red); }
.s-pending { background: var(--bg); color: var(--ink-2); border: 1px dashed var(--line-2); }
.bt-row[data-anim] .bt-st { animation: stIn 360ms var(--ease-out) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes stIn { from { opacity: 0; transform: translateX(-6px); } }
.bt-prop { grid-column: 1 / -1; padding: 6px 10px; border-radius: 8px; border-left: 3px solid var(--amber-line); background: rgba(253,241,216,.6); font-size: 12.5px; color: #5E3700; }
.bt-prop b { font-weight: 600; }
.bt-prop .mono { font-size: 12px; }
.bt-ok { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
.bt-why { grid-column: 1 / -1; display: grid; gap: 8px; margin-top: 4px; padding: 10px 12px; border-radius: 10px; border-left: 3px solid; font-size: 13.5px; }
.bt-why b { font-weight: 600; }
.w-flag { background: var(--amber-bg); border-color: var(--amber-line); color: #5E3700; }
.w-np { background: var(--red-soft); border-color: #D46A62; color: #6E1F1B; }
.w-pending { background: var(--bg); border-color: var(--line-2); color: var(--ink-2); }
.bt-ded { font-size: 12.5px; font-weight: 500; }
.rv { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mini { height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-press) var(--ease-out); justify-self: start; }
.mini:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .mini:hover { border-color: var(--ink); } }
.mini[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.rv-note { font-size: 12px; color: inherit; opacity: .85; }

.est-tag { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--amber-bg); color: var(--amber); }
.est-rows { display: grid; gap: 2px; margin: 0; }
.est-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.est-rows dt { color: var(--ink-2); min-width: 0; }
.est-rows dd { margin: 0; white-space: nowrap; }
.er-d dd { color: var(--amber); }
.er-p { margin-top: 6px; padding: 12px 14px !important; border-radius: 10px; background: var(--blue-soft); }
.er-p dt { font-weight: 600; color: var(--blue-deep); }
.er-p dd { font-size: 17px; font-weight: 500; color: var(--blue-deep); }
.er-note { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.er-red { color: var(--red); }

.docs { display: grid; gap: 6px; }
.docs li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: 13.5px; }
.docs .d-name { min-width: 0; font-weight: 500; }
.docs small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.d-ico { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; }
.docs .got .d-ico { background: var(--green-soft); color: var(--green); }
.docs .miss { background: var(--amber-bg); }
.docs .miss .d-ico { border: 1.5px dashed var(--amber-line); }
.docs .miss small { color: var(--amber); font-weight: 600; }

/* Form */
.f-bar { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; padding: 14px 18px; }
.f-prog { flex: 1; min-width: 200px; }
.f-prog p { font-size: 14px; margin-bottom: 6px; }
.progress { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--green); transform-origin: left; transform: scaleX(var(--p)); transition: transform 500ms var(--ease-out); }
.f-legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.lg { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line-2); background: var(--paper); }
.lg-conf { margin-left: 8px; background: var(--amber-bg); border-color: var(--amber-line); }
.f-sheet { padding: clamp(18px, 3vw, 32px); background: var(--paper); box-shadow: var(--shadow-paper); }
.f-title { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1.5px solid var(--ink); }
.f-kind { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.f-title h2 { font-size: 26px; max-width: none; margin-top: 4px; }
.f-note { font-size: 12.5px; color: var(--muted); max-width: 40ch; }
.f-sec { border: 0; margin: 0; padding: 18px 0 6px; min-width: 0; }
.f-sec legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.f-grid { clear: both; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fld { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); min-width: 0; transition: background-color 200ms ease, border-color 200ms ease; }
.fld > label { font-size: 12px; color: var(--muted); }
.fld input:not([type]) { width: 100%; min-width: 0; border: 0; border-bottom: 1px solid transparent; padding: 2px 0; background: transparent; font-size: 14.5px; font-weight: 500; outline: 0; transition: border-color var(--t-fast) ease; }
.fld input:not([type]):focus { border-bottom-color: var(--blue); }
.fld.needs { background: var(--amber-bg); border-color: var(--amber-line); }
.fld.needs > label:not(.chk)::after { content: ' · confirm'; color: var(--amber); font-weight: 600; }
.fld.is-conf { background: var(--green-soft); border-color: rgba(23,112,74,.35); }
.fld.is-conf > label:not(.chk)::after { content: ' · confirmed'; color: var(--green); font-weight: 600; }
.fld-why { font-size: 12px; color: var(--ink-2); }
.chk { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.chk input { width: 16px; height: 16px; margin: 0; accent-color: var(--green); }

/* Queries */
.qy-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 12px; align-items: start; }
.qy-list { display: grid; gap: 4px; padding: 6px; }
.qy-list button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 12px; border-radius: 12px; text-align: left; transition: background-color var(--t-fast) ease; }
.qy-list .nm { font-weight: 600; font-size: 14.5px; }
.qy-list .mono { grid-column: 1; }
.qy-list .st { grid-column: 2; grid-row: 1 / 3; align-self: center; }
@media (hover: hover) and (pointer: fine) { .qy-list button:hover { background: var(--bg); } }
.qy-list button[aria-selected='true'] { background: var(--blue-soft); }
.qy-main { display: grid; gap: 12px; min-width: 0; }
.qy-q { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.qy-from { font-size: 11.5px; letter-spacing: .04em; color: var(--on-navy-2); margin-bottom: 10px; }
.qy-q blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(19px, 2vw, 23px); line-height: 1.35; }
.qy-explain { color: var(--ink-2); font-size: 15px; max-width: 70ch; }
.qy-draft { width: 100%; padding: 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper); font-family: var(--font-mono); font-size: 13px; line-height: 1.6; resize: vertical; }
.qy-draft:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.qy-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* Checklists */
.ck-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 12px; width: fit-content; max-width: 100%; overflow-x: auto; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); scrollbar-width: none; }
.ck-tabs::-webkit-scrollbar { display: none; }
.ck-tabs button { flex: none; padding: 9px 14px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
.ck-tabs button[aria-selected='true'] { background: var(--blue); color: #fff; }
.ck-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.ck-list { display: grid; }
.ck-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.ck-list li:first-child { border-top: 0; }
.ck-n { font-size: 12px; color: var(--blue); padding-top: 2px; }
.ck-list b { font-weight: 600; font-size: 14.5px; }
.ck-list p { font-size: 13.5px; color: var(--muted); }
.ck-foot { margin-top: 10px; }
.ck-claims { display: grid; gap: 6px; }
.ck-claims li { padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.ck-claims a { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ck-claims .nm { font-weight: 600; font-size: 14.5px; }
@media (hover: hover) and (pointer: fine) { .ck-claims a:hover .nm { color: var(--blue); } }
.miss-line { margin-top: 4px; font-size: 12.5px; color: var(--amber); font-weight: 500; }
.ok-line { margin-top: 4px; font-size: 12.5px; color: var(--green); font-weight: 500; }

.demo-note { margin-top: 28px; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; text-align: center; font-size: 12.5px; color: var(--muted); }

/* Responsive */
@media (max-width: 1240px) {
  .c-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .policy-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .c-grid { grid-template-columns: 1fr; }
  .c-side { position: static; }
  .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  body.app { grid-template-columns: 1fr; padding-bottom: 76px; }
  .side { position: fixed; z-index: 60; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(12,26,51,.3); }
  .side-brand, .side-foot { display: none; }
  .side-nav { grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
  .side-nav a { flex-direction: column; gap: 3px; padding: 7px 2px; font-size: 11.5px; }
  .side-nav a[aria-current='page']::before { display: none; }
  .side-badge { position: absolute; top: 1px; right: calc(50% - 24px); min-width: 18px; height: 16px; font-size: 10px; }
  .qy-grid, .ck-grid { grid-template-columns: 1fr; }
  .qy-list { grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); overflow-x: auto; }
}
@media (max-width: 760px) {
  .top-title { font-size: 30px; }
  .top-actions, .picker, .picker select { width: 100%; }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-btn b { font-size: 24px; }
  .q-note { display: none; }
  .search { width: 100%; }
  .table-wrap { background: none; border: 0; overflow: visible; }
  .q-table thead { display: none; }
  .q-table, .q-table tbody { display: block; }
  .q-table tbody { display: grid; gap: 8px; }
  .q-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
  .q-table td { padding: 0; border: 0; min-width: 0; }
  .q-table td:first-child, .q-table td[data-l='Policy'] { grid-column: 1 / -1; }
  .q-table td[data-l='Type'], .q-table td[data-l='Billed'], .q-table td[data-l='Est. payable'] { font-size: 13px; }
  .q-table td[data-l]::before { content: attr(data-l); display: block; font-family: var(--font-ui); font-size: 11px; color: var(--muted); }
  .q-table td:first-child::before { display: none; }
  .q-table .num { text-align: left; }
  .c-head { grid-template-columns: 1fr; }
  .c-head-act { justify-content: flex-start; }
  .c-diag { font-size: 21px; }
  .policy-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bt-head { display: none; }
  .bt-row { grid-template-columns: minmax(0, 1fr) auto; }
  .bt-st { grid-column: 1 / -1; grid-row: 2; }
  .bt-amt { align-self: start; }
  .f-grid { grid-template-columns: 1fr; }
  .f-bar .btn { width: 100%; }
  .card { padding: 16px; }
}
@media (max-width: 400px) {
  .side-nav a { font-size: 10.5px; }
  .stage-btn { padding: 10px 12px; }
}
@media (max-width: 980px) {
  .toasts { bottom: calc(80px + env(safe-area-inset-bottom)); left: 12px; right: 12px; align-items: stretch; }
  .toast { min-width: 0; max-width: none; }
}
