:root {
  --ink: #122019;
  --muted: #68756e;
  --paper: #f2f4f0;
  --surface: #fff;
  --green: #0d513b;
  --green2: #147b59;
  --lime: #b9ef63;
  --line: #d9e0da;
  --shadow: 0 18px 44px rgba(16, 40, 29, .08);
}

html { scroll-behavior: smooth; }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out .16s ease both; }
::view-transition-new(root) { animation: page-in .32s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes page-out { to { opacity: 0; transform: scale(.995); } }
@keyframes page-in { from { opacity: 0; transform: translateY(7px); } }
body {
  min-height: 100vh;
  background: radial-gradient(circle at 90% 5%, #e5eee8 0, transparent 25rem), var(--paper);
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -.01em;
}
.skip-link { position: fixed; top: -4rem; left: 1rem; z-index: 200; background: #fff; color: #000; padding: .75rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.app-main { max-width: 1800px; margin: 0 auto; padding-top: 2rem !important; }
.eyebrow { font-size: .68rem; letter-spacing: .17em; font-weight: 850; }
.surface { border-color: rgba(19, 46, 34, .11); border-radius: 18px; box-shadow: 0 3px 12px rgba(16, 40, 29, .035); }
.surface h2 { font-weight: 780; letter-spacing: -.035em; }
.section-heading p { color: var(--muted); margin: .25rem 0 0; }
.text-link { color: var(--green); font-weight: 750; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.app-nav { height: 76px; position: sticky; top: 0; z-index: 100; padding: 0 2rem; gap: 2rem; background: rgba(10, 37, 27, .97); border-bottom: 1px solid rgba(255, 255, 255, .09); backdrop-filter: blur(18px); }
.brand { min-width: 172px; gap: .7rem; flex: 0 0 auto; }
.brand-mark { width: 38px !important; height: 38px !important; border-radius: 12px !important; background: var(--lime) !important; color: #143221 !important; }
.brand-copy { display: flex !important; flex-direction: column; justify-content: center; width: auto !important; height: auto !important; background: transparent !important; color: inherit !important; border-radius: 0 !important; }
.brand-copy strong { font-size: 1.08rem; line-height: 1; }
.brand-copy small { margin-top: .25rem; color: #8eb3a3; font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; }
.nav-content { display: flex; align-items: center; min-width: 0; flex: 1; height: 100%; }
.nav-links { gap: .25rem; }
.nav-links > a, .tools-menu > summary { height: 100%; display: flex; align-items: center; padding: 0 1rem; color: #abc3b9; text-decoration: none; list-style: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer; font-size: .9rem; font-weight: 650; transition: color .18s, border-color .18s; }
.nav-links > a:hover, .tools-menu > summary:hover, .nav-links > a.active, .tools-menu > summary.active { color: #fff; border-bottom-color: var(--lime); }
.tools-menu { height: 100%; position: relative; }
.tools-menu > summary::-webkit-details-marker { display: none; }
.tools-menu > summary span { margin-left: .45rem; font-size: .7rem; }
.tools-popover { position: absolute; top: calc(100% + .5rem); left: 0; width: 290px; padding: .55rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px rgba(5, 24, 16, .24); }
.tools-menu[open] .tools-popover { transform-origin: top left; animation: popover-in .22s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes popover-in { from { opacity: 0; transform: translateY(-7px) scale(.98); } }
.tools-popover a { display: block; padding: .8rem .9rem; border-radius: 9px; text-decoration: none; color: var(--ink); }
.tools-popover a:hover { background: #eef5f0; }
.tools-popover strong, .tools-popover small { display: block; }
.tools-popover small { margin-top: .15rem; color: var(--muted); font-size: .72rem; }
.nav-context { margin-left: auto; display: flex; align-items: center; gap: .8rem; }
.office-switcher { margin: 0; }
.office-switcher label { display: flex; flex-direction: column; }
.office-switcher label > span { color: #7fa394; font-size: .56rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 .15rem .65rem; }
.office-switcher select { width: 190px; max-width: 190px; padding: .38rem 2rem .38rem .65rem; background: #163e30; border-color: #426759; color: #fff; }
.user-menu { display: flex; align-items: center; gap: .55rem; padding: .25rem; border: 0; background: transparent; color: #fff; }
.user-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #dff6e9; color: var(--green); font-weight: 850; }
.user-copy { display: flex; flex-direction: column; text-align: left; max-width: 110px; }
.user-copy strong { font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-copy small { font-size: .58rem; color: #86a899; }
.local-badge { display: flex; align-items: center; gap: .4rem; margin: 0; color: #91d7b6; }
.local-badge span { width: 6px; height: 6px; border-radius: 50%; background: #6de59e; box-shadow: 0 0 0 4px rgba(109, 229, 158, .12); }
.nav-toggle { display: none; }

.work-command { position: relative; min-height: 285px; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; padding: 2.5rem; border-radius: 24px; background: linear-gradient(118deg, #092f22 0%, #12553e 58%, #1b7153 100%); color: #fff; box-shadow: 0 20px 54px rgba(10, 59, 42, .2); }
.work-command::before { content: ""; position: absolute; width: 360px; height: 360px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; right: 18%; top: -65%; }
.work-command::after { content: ""; position: absolute; width: 240px; height: 240px; border: 1px solid rgba(255, 255, 255, .11); border-radius: 50%; right: 8%; top: -38%; }
.work-command > * { position: relative; z-index: 1; }
.work-command .eyebrow { color: #aee0c5; }
.work-command h1 { max-width: 900px; margin: .5rem 0 .65rem; font-size: clamp(2.6rem, 4.4vw, 4.5rem); font-weight: 820; line-height: .94; letter-spacing: -.06em; text-wrap: balance; }
.work-command-copy > p { color: #c7ddd3; font-size: 1.05rem; }
.work-command-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.command-primary, .command-secondary { border: 0; padding: .9rem 1.2rem; border-radius: 10px; font-weight: 800; }
.command-primary { background: var(--lime); color: #18301f; }
.command-primary:hover { background: #cbfa80; transform: translateY(-2px); }
.command-secondary { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .23); color: #fff; }
.command-secondary:hover { background: #fff; color: var(--green); }
.hero-work-total { flex: 0 0 260px; display: flex; flex-direction: column; padding: 1.45rem; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .19); backdrop-filter: blur(12px); color: #fff; text-decoration: none; transition: .2s; }
.hero-work-total:hover { color: #fff; background: rgba(255, 255, 255, .16); transform: translateY(-3px); }
.hero-work-number { font-size: 4.6rem; font-weight: 850; line-height: .9; letter-spacing: -.08em; }
.hero-work-total strong { margin-top: .45rem; font-size: 1.1rem; }
.hero-work-total small { margin-top: 1.1rem; padding-top: .8rem; border-top: 1px solid rgba(255, 255, 255, .16); color: #c5dfd2; }
.hero-work-total small span { float: right; }

.work-lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.work-lane { min-height: 155px; display: grid; grid-template-columns: 44px 1fr 28px; gap: .8rem; align-items: start; padding: 1.3rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.work-lane:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow); border-color: #9dbbaa; }
.lane-index { color: #91a098; font-size: .72rem; font-weight: 800; }
.lane-label { display: block; margin-bottom: .55rem; color: var(--green2); font-size: .65rem; font-weight: 850; letter-spacing: .14em; }
.work-lane strong, .work-lane small { display: block; }
.work-lane strong { font-size: 1.25rem; letter-spacing: -.03em; }
.work-lane small { margin-top: .35rem; color: var(--muted); line-height: 1.35; }
.lane-arrow { justify-self: end; font-size: 1.35rem; color: var(--green2); }
.lane-claims { background: #eff8f2; }
.lane-payments { background: #f6f3eb; }
.work-list-surface { padding: 1.7rem; }
.operational-task-list article { padding: 1.15rem .2rem; }
.operational-task-list article > div:first-of-type { flex: 0 0 86px; }
.work-priority { width: 86px; height: 52px; display: flex; align-items: flex-start; justify-content: center; flex-direction: column; padding: .55rem .7rem; border-radius: 10px; }
.work-priority small { font-size: .52rem !important; letter-spacing: .08em; }
.work-priority strong { font-size: .78rem; }
.priority-critical { background: #fee4e2; color: #9d2419; }
.priority-high { background: #fff1d6; color: #895400; }
.priority-normal { background: #e7f0ff; color: #175cd3; }
.priority-low { background: #eef1ef; color: #59645f; }
.compact-empty { display: flex; flex-direction: column; padding: 1.4rem 0; color: var(--muted); }
.compact-empty strong { color: var(--ink); }
.intake-card > p { color: var(--muted); }
.intake-card .payment-batch-link { flex-direction: row; align-items: center; justify-content: space-between; }
.quick-task-panel > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.quick-task-panel > summary::-webkit-details-marker { display: none; }
.quick-task-panel > summary .eyebrow { display: block; }
.quick-task-panel > summary > span:last-child { font-size: 1.5rem; color: var(--green); }
.quick-task-panel[open] > summary > span:last-child { transform: rotate(45deg); }
.quick-task-panel > summary > span:last-child { transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.quick-task-panel[open] form { animation: panel-in .3s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(-8px); } }
.queue-command-head h1 { font-size: clamp(2.3rem, 4vw, 4.2rem); line-height: .95; letter-spacing: -.055em; }
.queue-command-actions { display: flex; align-items: center; gap: .65rem; }
.queue-actions-menu { position: relative; }
.queue-actions-menu > summary { list-style: none; }
.queue-actions-menu > summary::-webkit-details-marker { display: none; }
.queue-actions-menu > div { position: absolute; z-index: 20; right: 0; top: calc(100% + .5rem); width: 250px; padding: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.queue-actions-menu > div a { display: block; padding: .7rem .8rem; border-radius: 7px; color: var(--ink); text-decoration: none; }
.queue-actions-menu > div a:hover { background: #eef5f0; }
.queue-pills { padding: .35rem; border-radius: 999px; background: rgba(255, 255, 255, .65); border: 1px solid rgba(19, 46, 34, .08); width: max-content; max-width: 100%; }
.queue-pills a { border: 0; background: transparent; }
.queue-pills a.active { background: var(--green); }
.queue-search { grid-template-columns: 130px minmax(280px, 820px); }
.claim-row { border-radius: 15px; padding-top: 1.15rem; padding-bottom: 1.15rem; }
.claim-row:hover .row-arrow, .work-lane:hover .lane-arrow, .metric-link:hover small { transform: translateX(4px); }
.row-arrow, .lane-arrow, .metric-link small { transition: transform .22s cubic-bezier(.16, 1, .3, 1); }
.queue-actions-menu[open] > div { transform-origin: top right; animation: popover-in .22s cubic-bezier(.16, 1, .3, 1) both; }
.action-dialog[open] { animation: dialog-in .28s cubic-bezier(.16, 1, .3, 1) both; }
.action-dialog[open]::backdrop { animation: backdrop-in .22s ease both; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(.975); } }
@keyframes backdrop-in { from { opacity: 0; } }

.claim-workspace-shell { max-width: 1500px; margin: 0 auto; padding-bottom: 5rem; }
.claim-workspace-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 1.4rem; }
.claim-workspace-header h1 { margin: .25rem 0 0; font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 820; line-height: .95; letter-spacing: -.055em; }
.claim-workspace-header p { margin: .55rem 0 0; color: var(--muted); }
.claim-header-actions { display: flex; gap: .55rem; }
.workspace-section-nav { position: sticky; top: 88px; z-index: 30; display: flex; width: max-content; max-width: 100%; gap: .3rem; margin-bottom: 2.5rem; padding: .35rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(16, 40, 29, .07); }
.workspace-section-nav a { padding: .65rem .9rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 750; }
.workspace-section-nav a:hover { background: #eaf4ee; }
.workspace-section-nav span { color: var(--green2); font-size: .65rem; margin-right: .25rem; }
.workspace-stage { scroll-margin-top: 155px; margin-bottom: 3rem; }
.stage-label { display: flex; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; }
.stage-label > span { color: #99a69f; font-weight: 800; font-size: .75rem; }
.stage-label h2 { margin: 0; font-size: 1.65rem; font-weight: 800; letter-spacing: -.04em; }
.stage-label > small { margin-left: auto; color: var(--muted); }
.understand-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, .8fr); gap: 1rem; }
.workspace-recommendation { margin: 0; min-height: 225px; display: flex; flex-direction: column; justify-content: center; }
.recommendation-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.balance-focus { display: flex; flex-direction: column; justify-content: center; padding: 1.7rem; }
.balance-focus > small { color: var(--muted); font-weight: 800; letter-spacing: .08em; }
.balance-focus > strong { margin: .4rem 0; font-size: 2.8rem; line-height: 1; letter-spacing: -.06em; }
.balance-focus > span { color: var(--muted); }
.balance-focus > div { display: flex; justify-content: space-between; gap: .5rem; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); font-weight: 700; font-size: .82rem; }
.claim-facts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-top: 1rem; }
.claim-facts small { display: block; color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .07em; }
.claim-facts strong, .claim-facts span { display: block; }
.claim-facts strong { margin-top: .3rem; }
.claim-facts span { color: var(--muted); font-size: .78rem; }
.action-workbench { padding: 1.2rem; }
.primary-action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.primary-action-grid .quick-action { min-height: 105px; flex-wrap: wrap; align-content: center; }
.primary-action-grid .quick-action > span { width: 38px; height: 38px; }
.primary-action-grid .quick-action strong { font-size: 1rem; }
.primary-action-grid .quick-action small { flex: 0 0 100%; margin-left: 48px; color: var(--muted); font-weight: 500; }
.timeline-workspace { padding: 1.3rem 1.6rem; }
.timeline-toolbar { display: flex; gap: .6rem; max-width: 620px; margin-bottom: .4rem; }
.timeline-entry-head { display: flex; justify-content: space-between; gap: 1rem; }
.timeline-entry-head time { color: var(--muted); font-size: .72rem; }
.timeline-workspace:not(.notes-expanded) blockquote { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.draft-status { float: right; color: var(--green2); opacity: 0; font-size: .68rem; transition: opacity .2s; }
.draft-status.visible { opacity: 1; }
.action-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.action-form-footer > div { display: flex; gap: .5rem; }
kbd { padding: .15rem .35rem; border: 1px solid #cbd4ce; border-bottom-width: 2px; border-radius: 4px; background: #fff; color: var(--ink); font-family: inherit; }
.working-dock { position: fixed; z-index: 60; left: 50%; bottom: 1rem; transform: translateX(-50%); width: min(820px, calc(100% - 2rem)); display: flex; align-items: center; gap: .65rem; padding: .65rem .7rem .65rem 1rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: 15px; background: rgba(9, 46, 33, .95); color: #fff; box-shadow: 0 20px 55px rgba(6, 30, 21, .3); backdrop-filter: blur(15px); }
.working-dock > div { display: grid; grid-template-columns: 14px auto; align-items: center; margin-right: auto; }
.working-dock small { grid-column: 2; color: #a9c9bb; }
.working-pulse { grid-row: 1 / 3; width: 8px; height: 8px; margin-right: .5rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(185, 239, 99, .12); }
.toast-stack { position: fixed; z-index: 180; top: 92px; right: 1.2rem; width: min(390px, calc(100% - 2rem)); }
.app-toast { display: flex; align-items: center; gap: .8rem; padding: .9rem; border: 1px solid #afd6c0; border-radius: 13px; background: #fff; box-shadow: 0 18px 45px rgba(11, 40, 27, .18); animation: toast-in .35s cubic-bezier(.16, 1, .3, 1) both; }
.app-toast.toast-leaving { animation: toast-out .25s ease both; pointer-events: none; }
.toast-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #dff6e9; color: var(--green); font-weight: 900; }
.app-toast > div { display: flex; flex-direction: column; flex: 1; }
.app-toast > div span { color: var(--muted); font-size: .8rem; }
.app-toast > button { border: 0; background: transparent; color: var(--muted); font-size: 1.2rem; }
@keyframes toast-in { from { opacity: 0; transform: translateX(18px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(18px) scale(.98); } }
.friendly-error { max-width: 720px; margin: 8vh auto; padding: 3rem; text-align: center; }
.friendly-error .error-code { color: #d4ddd7; font-size: 5rem; font-weight: 900; line-height: 1; }
.friendly-error h1 { font-weight: 820; letter-spacing: -.05em; }
.friendly-error p { color: var(--muted); font-size: 1.05rem; }
.error-actions { display: flex; justify-content: center; gap: .6rem; margin: 1.5rem 0; }
.friendly-error > small { color: var(--muted); }

.motion-ready .reveal-on-scroll { opacity: 0; transform: translateY(18px); filter: blur(3px); }
.motion-ready .reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); transition: opacity .5s cubic-bezier(.16, 1, .3, 1) var(--reveal-delay, 0ms), transform .5s cubic-bezier(.16, 1, .3, 1) var(--reveal-delay, 0ms), filter .4s ease var(--reveal-delay, 0ms); }

.metric-link, .claim-row, .waiting-link, .aging-grid a, .payment-batch-link { transition: transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s, border-color .2s; }
.btn { transition: transform .18s, background-color .18s, border-color .18s; }
.btn:active { transform: scale(.98); }
.form-control, .form-select { border-color: #cfd8d1; border-radius: 9px; }
.form-control:focus, .form-select:focus { border-color: var(--green2); box-shadow: 0 0 0 .2rem rgba(20, 123, 89, .12); }

@media (max-width: 1200px) {
  .app-nav { padding: 0 1.2rem; }
  .nav-links > a, .tools-menu > summary { padding: 0 .7rem; }
  .user-copy, .local-badge { display: none; }
  .work-command { min-height: 285px; }
  .work-lanes { grid-template-columns: 1fr 1fr; }
  .work-lane:first-child { grid-column: 1 / -1; }
}
@media (max-width: 850px) {
  .app-nav { height: 68px; align-items: center; }
  .brand { margin-right: auto; }
  .nav-toggle { width: 42px; height: 42px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid #557467; border-radius: 10px; background: transparent; }
  .nav-toggle > span:not(.visually-hidden) { width: 20px; height: 2px; background: #fff; transition: .2s; }
  .nav-toggle.open > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open > span:nth-child(2) { opacity: 0; }
  .nav-toggle.open > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-content { display: none; position: fixed; top: 68px; left: 0; right: 0; height: auto; max-height: calc(100vh - 68px); overflow: auto; align-items: stretch; flex-direction: column; padding: 1rem; background: #0b2f23; box-shadow: 0 22px 40px rgba(0, 0, 0, .25); }
  .nav-content.open { display: flex; }
  .nav-links { display: flex; flex-direction: column; align-items: stretch; }
  .nav-links > a, .tools-menu > summary { height: 52px; padding: 0 .8rem; border: 0; border-radius: 8px; }
  .nav-links > a.active, .tools-menu > summary.active { background: #174936; }
  .tools-menu { height: auto; }
  .tools-popover { position: static; width: auto; margin: .25rem 0; background: #113e2e; border-color: #2e5a49; box-shadow: none; }
  .tools-popover a { color: #fff; }
  .tools-popover a small { color: #97b3a7; }
  .tools-popover a:hover { background: #1a503c; }
  .nav-context { width: 100%; margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid #315547; align-items: flex-end; }
  .office-switcher { flex: 1; }
  .office-switcher select { width: 100%; max-width: none; }
  .user-copy { display: flex; }
  .work-command { min-height: 0; align-items: stretch; flex-direction: column; padding: 1.6rem; }
  .work-command h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .hero-work-total { flex-basis: auto; }
  .hero-work-number { font-size: 3.5rem; }
  .work-lanes { grid-template-columns: 1fr; }
  .work-lane:first-child { grid-column: auto; }
  .app-main { padding-top: 1.2rem !important; }
  .queue-command-head { align-items: stretch; }
  .queue-command-actions { justify-content: space-between; }
  .claim-workspace-header { align-items: stretch; flex-direction: column; }
  .workspace-section-nav { top: 76px; }
  .understand-grid { grid-template-columns: 1fr; }
  .claim-facts { grid-template-columns: repeat(2, 1fr); }
  .primary-action-grid { grid-template-columns: 1fr; }
  .stage-label { align-items: flex-start; }
  .stage-label > small { display: none; }
  .working-dock small { display: none; }
  .action-form-footer { align-items: stretch; flex-direction: column; }
  .action-form-footer > div { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal-on-scroll { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* Claim coverage and submission preflight */
.form-section-heading { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.form-section-heading > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e3f3eb; color: var(--green); font-weight: 900; }
.form-section-heading > div { display: flex; flex-direction: column; }
.form-section-heading small { color: var(--muted); }
.subscriber-toggle { display: flex; align-items: center; gap: .75rem; width: fit-content; padding: .75rem 1rem; border: 1px solid #bcd9cb; border-radius: 12px; background: #f1faf5; cursor: pointer; }
.subscriber-toggle input { width: 19px; height: 19px; accent-color: var(--green); }
.subscriber-toggle span { display: flex; flex-direction: column; }
.subscriber-toggle small { color: var(--muted); }
.field-linked { opacity: .66; }
.coverage-stage { scroll-margin-top: 150px; }
.coverage-grid { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 1rem; margin-bottom: 1rem; }
.coverage-card, .readiness-card { padding: 1.25rem; }
.coverage-card h3, .readiness-card h3, .procedures-workspace h3, .exception-card h3 { margin: .35rem 0 .8rem; font-size: 1.15rem; font-weight: 800; }
.coverage-card dl { display: grid; gap: .55rem; margin: 0; }
.coverage-card dl > div { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid #edf1ee; padding-top: .5rem; }
.coverage-card dt { color: var(--muted); font-weight: 500; }
.coverage-card dd { margin: 0; text-align: right; font-weight: 700; }
.verified-check { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #daf4e6; color: var(--green); font-size: .8rem; }
.readiness-badge { align-self: center; padding: .45rem .7rem; border-radius: 999px; background: #f3e7bd; color: #6b4d00; font-size: .72rem; font-weight: 900; letter-spacing: .05em; }
.readiness-ready-to-submit, .readiness-submitted { background: #dcf5e7; color: #075f3d; }
.readiness-needs-verification { background: #fee8c7; color: #7d4600; }
.readiness-card ul { margin-bottom: 1rem; color: #6d4d00; }
.submission-inline { display: grid; gap: .5rem; }
.exception-card { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1rem 0; padding: 1.2rem; border: 1px solid #efc374; border-radius: 14px; background: #fff8e9; }
.denial-advice { display: block; border-color: #e4b2ad; background: #fff6f5; }
.denial-advice-head { display: flex; justify-content: space-between; gap: 1rem; }
.denial-advice-head > span { white-space: nowrap; color: #8c342c; font-weight: 800; }
.attachment-tags, .procedure-docs { display: flex; flex-wrap: wrap; gap: .35rem; }
.attachment-tags span, .procedure-docs span { padding: .3rem .5rem; border-radius: 999px; background: #f0e5dc; color: #65452c; font-size: .72rem; font-weight: 700; }
.procedures-workspace { padding: 1.25rem; }
.procedure-list { display: grid; gap: .6rem; }
.procedure-row { display: grid; grid-template-columns: minmax(180px, 1fr) 100px minmax(240px, 1.3fr) auto; align-items: center; gap: 1rem; padding: .85rem; border: 1px solid var(--line); border-radius: 11px; }
.procedure-row > div:first-child, .procedure-row > div:nth-child(2) { display: flex; flex-direction: column; }
.procedure-row small { color: var(--muted); }
.add-procedure { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.add-procedure > summary { color: var(--green); font-weight: 800; cursor: pointer; }
.empty-inline { padding: 1rem; border-radius: 10px; background: #f7f8f7; color: var(--muted); }
@media (max-width: 1000px) { .coverage-grid { grid-template-columns: 1fr 1fr; } .readiness-card { grid-column: 1 / -1; } .procedure-row { grid-template-columns: 1fr 100px; } .procedure-docs { grid-column: 1 / -1; } }
@media (max-width: 650px) { .coverage-grid { grid-template-columns: 1fr; } .readiness-card { grid-column: auto; } .exception-card, .denial-advice-head { align-items: stretch; flex-direction: column; } .procedure-row { grid-template-columns: 1fr; } .procedure-docs { grid-column: auto; } }

/* Office credential vault */
.vault-locked { border-left: 4px solid var(--orange); }
.vault-command { margin: .85rem 0 .5rem; padding: .7rem .9rem; border-radius: 10px; background: #f7f8f7; font-size: .88rem; }
.vault-note { padding: .9rem 1.15rem; border-left: 4px solid var(--green); font-size: .9rem; }
.credential-list { display: grid; gap: .85rem; }
.credential-card { padding: 1.25rem; }
.credential-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.credential-head h3 { margin: .2rem 0 .2rem; }
.credential-head p { margin: 0; color: var(--muted); font-size: .88rem; }
.credential-kind { display: inline-block; padding: .2rem .55rem; border-radius: 999px; background: #eaf5ef; color: var(--green); font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.credential-fields { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1rem 0 .5rem; }
.credential-fields dt { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.credential-fields dd { margin: 0; font-weight: 600; }
.credential-secrets { display: grid; gap: .5rem; margin-top: .5rem; }
.credential-secret { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.credential-secret > span { min-width: 190px; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.secret-slot, .revealed-secret { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.secret-mask, .revealed-secret code { padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: #f7f8f7; font-size: .9rem; }
.revealed-secret code { user-select: all; border-color: var(--green2); background: #f2faf6; }
.revealed-secret small { color: var(--muted); font-size: .74rem; }
.credential-notes { margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.credential-notes strong { display: block; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.credential-notes p { margin: .25rem 0 0; }
.credential-edit, .credential-add { margin-top: 1rem; }
.credential-edit > summary, .credential-add > summary { color: var(--green); font-weight: 800; cursor: pointer; }
.credential-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem 1rem; }
.credential-form > label { display: flex; flex-direction: column; gap: .25rem; font-size: .74rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.credential-notes-field { grid-column: 1 / -1; }
.credential-actions { grid-column: 1 / -1; }
.credential-danger { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .credential-form { grid-template-columns: 1fr; } .credential-head { flex-direction: column; } }

/* Claim ownership: who is on which claim */
.working-badge { display: inline-block; margin-top: .3rem; padding: .2rem .55rem; border-radius: 999px; background: #fff4e5; color: #8a5300; font-size: .7rem; font-weight: 800; }
.working-badge.mine { background: #eaf5ef; color: var(--green); }
.held-banner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; padding: .95rem 1.2rem; border: 1px solid #efc374; border-radius: 14px; background: #fff8e9; }
.held-banner.mine { border-color: #a8d8bf; background: #eff8f3; }
.held-banner strong { display: block; }
.held-banner span { color: var(--muted); font-size: .88rem; }

/* Queue filtering: ranges, sorting, and what the current slice adds up to */
.filter-panel > summary { display: flex; align-items: center; gap: .6rem; }
.filter-count { padding: .15rem .5rem; border-radius: 999px; background: var(--green); color: #fff; font-size: .72rem; font-weight: 800; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem 1rem; }
.filter-grid > label { display: flex; flex-direction: column; gap: .25rem; font-size: .76rem; font-weight: 700; letter-spacing: .02em; color: var(--muted); text-transform: uppercase; }
.filter-grid .form-control, .filter-grid .form-select { font-size: .9rem; }
.filter-actions { grid-column: 1 / -1; display: flex; gap: .5rem; padding-top: .35rem; }
.queue-result-summary { margin: 0 0 .9rem; color: var(--muted); font-size: .9rem; }
.queue-result-summary strong { color: var(--ink); }
@media (max-width: 1100px) { .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .filter-grid { grid-template-columns: 1fr; } }

/* Case file: consult, attached claim documents, and the appeal narrative */
.case-consult { padding: 1.25rem; border-left: 4px solid var(--green); }
.case-consult.consult-urgent { border-left-color: #b3392f; }
.consult-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.consult-head h3 { margin: .1rem 0 .35rem; }
.consult-head p { margin: 0; color: var(--muted); }
.consult-confidence { white-space: nowrap; font-weight: 800; color: var(--muted); }
.consult-deadline { margin-top: .9rem; padding: .6rem .85rem; border-radius: 10px; background: #f7f8f7; font-weight: 600; }
.consult-deadline.urgent { background: #fff6f5; color: #8c342c; }
.consult-argument { margin-top: 1rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fbfbfa; }
.consult-argument strong { display: block; margin-bottom: .35rem; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.consult-argument p { margin: 0; line-height: 1.6; }
.consult-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.15rem; }
.consult-columns strong { display: block; margin-bottom: .4rem; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.consult-columns ul { margin: 0; padding-left: 1.05rem; }
.consult-columns li { margin-bottom: .35rem; font-size: .88rem; line-height: 1.5; }
.consult-columns li.muted { color: var(--muted); list-style: none; margin-left: -1.05rem; }
.consult-evidence { margin-top: 1.1rem; }
.consult-evidence > summary { color: var(--green); font-weight: 800; cursor: pointer; }
.consult-evidence ul { margin: .5rem 0 0; padding-left: 1.05rem; font-size: .86rem; }
.consult-model-notes { margin: .75rem 0 0; padding-left: 1.05rem; font-size: .82rem; color: var(--muted); }
@media (max-width: 900px) { .consult-columns { grid-template-columns: 1fr; } .consult-head { flex-direction: column; } }

.case-documents, .narrative-workspace { padding: 1.25rem; }
.attachment-gap { margin: .75rem 0 1rem; padding: .85rem 1rem; border: 1px solid #efc374; border-radius: 12px; background: #fff8e9; }
.attachment-gap strong { display: block; margin-bottom: .45rem; font-size: .82rem; }
.document-list { display: grid; gap: .6rem; }
.document-row { display: grid; grid-template-columns: minmax(220px, 1.6fr) minmax(160px, 1fr) auto; align-items: center; gap: 1rem; padding: .85rem; border: 1px solid var(--line); border-radius: 11px; }
.document-row > div:first-child, .document-row > div:nth-child(2) { display: flex; flex-direction: column; }
.document-row small { color: var(--muted); }
.document-note { font-style: italic; }
.document-row-actions { display: flex; align-items: center; gap: .5rem; }
.add-document { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.add-document > summary { color: var(--green); font-weight: 800; cursor: pointer; }
.narrative-notes { margin: .75rem 0 1rem; padding: .85rem 1rem; border: 1px solid #e4b2ad; border-radius: 12px; background: #fff6f5; }
.narrative-notes strong { display: block; margin-bottom: .35rem; font-size: .82rem; }
.narrative-notes ul { margin: 0; padding-left: 1.1rem; }
.narrative-text { min-height: 16rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86rem; line-height: 1.6; }
.narrative-final { margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 11px; background: #f7f8f7; white-space: pre-wrap; font-size: .88rem; line-height: 1.65; }
.narrative-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .85rem; }
.narrative-approve { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.narrative-rebuild { margin-top: .75rem; }
.narrative-history > summary { color: var(--green); font-weight: 800; cursor: pointer; }
.narrative-version { margin-top: .85rem; padding: .85rem; border: 1px solid var(--line); border-radius: 11px; }
.narrative-version small { display: block; margin-bottom: .5rem; color: var(--muted); }
.narrative-version pre { margin: 0; white-space: pre-wrap; font-size: .82rem; }
@media (max-width: 900px) { .document-row { grid-template-columns: 1fr; } }

/* Office playbook: daily routines and standing reminders */
.reminder-strip { border-left: 4px solid var(--green2); }
.reminder-strip .reminder-list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .5rem; }
.reminder-strip .reminder-list li { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; align-items: baseline; }
.reminder-office { font-weight: 800; color: var(--green); font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
.routine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.routine-card { padding: 1.1rem 1.25rem; }
.routine-card-done { border-color: var(--green2); background: linear-gradient(180deg, #f4fbf6, #fff); }
.routine-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; }
.routine-card-head strong { font-size: 1.02rem; }
.routine-progress { font-weight: 800; color: var(--green); font-size: .85rem; }
.routine-items { display: grid; gap: .35rem; }
.routine-item { margin: 0; }
.routine-item label { display: flex; align-items: center; gap: .55rem; margin: 0; cursor: pointer; padding: .3rem .2rem; border-radius: 8px; }
.routine-item label:hover { background: #f4f7f4; }
.routine-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--green2); }
.routine-item-done span { text-decoration: line-through; color: var(--muted); }
.routine-manage { display: inline-block; margin-top: .8rem; font-size: .85rem; }
.playbook-profile { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.reminder-pinned { border-left: 3px solid var(--green2); padding-left: .6rem; }
@media (max-width: 640px) { .reminder-strip .reminder-list li { grid-template-columns: 1fr; gap: .1rem; } }
.routine-cadence { font-style: normal; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--green2); background: #eaf6ee; padding: .05rem .3rem; border-radius: 5px; margin-left: .2rem; }

/* Who ticked a routine off, so a shared office does not get it done twice */
.routine-by { font-style: normal; font-size: .68rem; font-weight: 700; color: var(--muted); margin-left: .35rem; }
.routine-by::before { content: "✓ "; color: var(--green2); }
