:root {
  color-scheme: light;
  font: 100%/1.45 "Century Gothic", "Avenir Next", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --navy: #20386b;
  --ink: #213451;
  --body: #344259;
  --muted: #556579;
  --line: #dce3eb;
  --soft: #f4f7fb;
  --blue: #205d98;
  --sky: #e8f1fc;
  --white: #fff;
  --sidebar: 254px;
  color: var(--body);
  background: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, select { touch-action: manipulation; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { opacity: .44; cursor: default; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); }
h1 { color: var(--navy); font-size: clamp(1.88rem, 2.7vw, 2.38rem); line-height: 1.15; font-weight: 660; letter-spacing: -.043em; }
h2 { font-size: 1.2rem; line-height: 1.35; font-weight: 660; letter-spacing: -.023em; }
h3 { font-size: 1.02rem; line-height: 1.4; letter-spacing: -.012em; }
a { color: var(--blue); }
svg { flex-shrink: 0; }
:where(button, a, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid #2670ae; outline-offset: 2px; }
.skip { position: fixed; z-index: 20; top: -90px; left: 1rem; background: white; padding: 12px; }
.skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.app { min-height: 100dvh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; border-right: 1px solid #d7e1ec; background: linear-gradient(164deg, #f9fbfe 5%, #f0f5fd 54%, #e6f0fc); z-index: 3; }
.brandbar, .topbar { height: 76px; min-height: 76px; background: white; border-top: 2px solid #74a8d6; border-bottom: 1px solid var(--line); }
.brandbar { display: flex; align-items: center; padding: 0 24px; }
.brand, .mobilebrand { display: inline-flex; padding: 0; align-items: center; min-height: 44px; }
.brand img { display: block; height: 35px; width: auto; }
.side-inner { overflow-y: auto; padding: 25px 16px 14px; }
.module-name { color: var(--navy); font-size: 1.2rem; line-height: 1.3; letter-spacing: -.025em; margin: 0 4px 17px; }
.navsearch, .grid-search { display: flex; align-items: center; gap: 8px; border: 1px solid #bfcedd; background: white; border-radius: 7px; color: #607389; }
.navsearch { margin-bottom: 16px; padding: 0 11px; }
.navsearch input, .grid-search input { width: 100%; min-width: 0; height: 42px; padding: 0; border: 0; outline-offset: 0; background: transparent; font-size: .9rem; }
.navsearch:focus-within, .grid-search:focus-within { outline: 2px solid #3279b3; outline-offset: 1px; }
.navsearch input:focus, .grid-search input:focus { outline: none; }
::placeholder { color: #68778a; opacity: 1; }
.tree { display: grid; gap: 14px; }
.grouphead, .navitem { display: flex; align-items: center; gap: 10px; min-height: 43px; width: 100%; border-radius: 6px; padding: 8px 11px; text-align: left; color: var(--ink); font-size: .94rem; }
.grouphead { font-weight: 640; }
.grouphead:hover, .navitem:hover { background: #e3edf9; }
.grouphead.current { background: var(--navy); color: white; }
.foldicon { margin-left: auto; display: grid; place-items: center; }
.branch { position: relative; margin: 4px 2px 0 17px; padding: 2px 0 2px 13px; border-left: 1px solid #b8cada; }
.branch .navitem { position: relative; border: 1px solid transparent; min-height: 40px; font-size: .9rem; }
.branch .navitem svg { width: 16px; color: #526c88; }
.branch .navitem.active { border-color: #bdcddd; background: #fff; color: #183f71; font-weight: 660; }
.branch .navitem.active::before { content: ""; position: absolute; top: calc(50% - 4px); left: -18px; background: var(--navy); width: 8px; height: 8px; border-radius: 50%; }
.side-end { margin-top: auto; border-top: 1px solid #cddbe8; padding: 12px 17px 14px; }
.side-end .navitem, .navempty { color: var(--muted); font-size: .875rem; }
.side-end .navitem.active { color: var(--navy); font-weight: 680; background: white; }
.navempty { padding: 5px; }
.shell { margin-left: var(--sidebar); }
.topbar { display: flex; align-items: center; justify-content: space-between; position: relative; gap: 10px; padding: 0 clamp(24px, 2.7vw, 44px); }
.topname, .topactions, .insthead, .avatarbtn, .searchlaunch { display: flex; align-items: center; }
.topname { gap: 12px; }
.rail-toggle { position: absolute; z-index: 4; left: 0; transform: translateX(-50%); display: grid; place-items: center; width: 27px; height: 28px; border-radius: 6px; border: 1px solid #b9cadb; background: white; color: var(--navy); }
.rail-toggle:hover { background: var(--soft); }
.rail-hidden .sidebar { display: none; }
.rail-hidden .shell { margin-left: 0; }
.rail-hidden .rail-toggle { position: static; transform: none; }
.rail-hidden .rail-toggle svg { transform: rotate(180deg); }
.rail-hidden .mobilebrand { display: inline-flex; }
.mobilebrand, .bottomnav { display: none; }
.mobilebrand img { width: auto; height: 30px; }
.insthead { gap: 8px; min-height: 44px; padding: 0 3px; color: var(--navy); }
.insthead b { font-size: .93rem; }
.instmark { display: grid; place-items: center; color: var(--navy); background: var(--sky); border: 1px solid #d5e5f5; border-radius: 7px; width: 31px; height: 31px; }
.topactions { gap: 13px; }
.searchlaunch { gap: 9px; color: var(--muted); border: 1px solid var(--line); min-height: 38px; padding: 0 10px 0 12px; border-radius: 7px; font-size: .875rem; }
.searchlaunch kbd { margin-left: 15px; padding: 0 4px; border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: .75rem; color: var(--muted); }
.iconbtn { width: 40px; height: 42px; display: inline-grid; place-items: center; border-radius: 6px; position: relative; color: #405976; }
.iconbtn:hover, .searchlaunch:hover { background: var(--soft); }
.notification-dot { width: 7px; height: 7px; position: absolute; top: 8px; right: 11px; background: #246db0; border: 1.5px solid white; border-radius: 50%; }
.avatarbtn { gap: 9px; padding: 0 0 0 13px; border-left: 1px solid var(--line); min-height: 44px; text-align: left; }
.avatar { background: #dae9f8; color: #204a76; border-radius: 50%; display: inline-grid; place-items: center; width: 35px; height: 35px; font-size: .8rem; font-weight: 680; }
.profile-text b, .profile-text small { display: block; }
.profile-text b { font-size: .875rem; color: var(--ink); }
.profile-text small { font-size: .76rem; color: var(--muted); }
.workspace { max-width: 1590px; margin: 0 auto; padding: 28px clamp(24px, 2.7vw, 44px) 48px; }
.pagehead, .recordhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.titleblock, .record-title { min-width: 0; }
.crumbs, .subtitle, .pageactions { display: flex; align-items: center; }
.crumbs { flex-wrap: wrap; gap: 6px; margin-top: 7px; font-size: .87rem; line-height: 1.5; color: #4d6078; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }
.crumbs .kicker { letter-spacing: .015em; }
.subtitle, .small, .muted { color: var(--muted); }
.subtitle { gap: 6px; flex-wrap: wrap; font-size: .875rem; }
.pageactions { justify-content: flex-end; gap: 17px; }
.btn, .row-action, .register-export { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; border-radius: 7px; padding: 8px 14px; font-size: .91rem; font-weight: 640; line-height: 1.4; text-decoration: none; }
.primary { background: var(--blue); border: 1px solid var(--blue); color: #fff; }
.primary:hover { background: #194b7e; }
.secondary, .row-action { background: white; border: 1px solid #b8cadc; color: var(--navy); }
.secondary:hover, .row-action:hover { background: #f1f6fb; border-color: #819ebd; }
.textbtn { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 620; color: var(--blue); min-height: 40px; padding: 5px 3px; }
.textbtn:hover { text-decoration: underline; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(112deg, #152e56 5%, #213e6a 62%, #2a507b); border: 1px solid #203f69; border-radius: 12px; min-height: 200px; display: flex; align-items: center; }
.hero-art { position: absolute; inset: 0 0 0 auto; width: 45%; height: 100%; object-fit: contain; object-position: 58% center; z-index: -1; pointer-events: none; filter: grayscale(1) sepia(.5) saturate(2.4) hue-rotate(164deg); opacity: .81; }
.herocopy { width: 65%; padding: 23px 28px 24px; }
.herotag { color: #c6e1ff; font-size: .77rem; font-weight: 660; letter-spacing: .095em; text-transform: uppercase; }
.hero h2 { color: white; font-size: clamp(1.55rem, 2.3vw, 2.04rem); line-height: 1.16; font-weight: 620; letter-spacing: -.035em; max-width: 535px; margin: 8px 0; }
.herometa, .herolower { display: flex; align-items: center; gap: 8px; }
.herometa { color: #e2ebf7; font-size: .89rem; }
.herolower { gap: 14px; margin-top: 18px; }
.herobtn { background: white; color: #183c63; }
.herobtn:hover { background: #e6f1ff; }
.heroid { color: #c8d9ec; font-size: .8rem; letter-spacing: .025em; }
.dashgrid { display: grid; grid-template-columns: minmax(0,1.68fr) minmax(235px,1fr); gap: 22px; margin: 24px 0; }
.sectiontitle, .sectiontitle h2, .boxhead, .rowline, .formrow, .flexwrap { display: flex; align-items: center; gap: 9px; }
.sectiontitle, .boxhead, .rowline { justify-content: space-between; }
.sectiontitle { min-height: 27px; margin-bottom: 10px; }
.sectiontitle h2 { color: var(--navy); }
.count { display: inline-grid; place-items: center; min-width: 23px; height: 23px; border-radius: 6px; padding: 0 5px; font-size: .77rem; color: #344f70; background: #eaf1f9; }
.panel, .grid-panel { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 9px; }
.attention-card { padding: 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.attention-card + .attention-card, .dateitem + .dateitem { border-top: 1px solid var(--line); }
.serviceicon { width: 36px; height: 36px; display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 8px; background: #eaf1fa; color: #355e89; }
.s-alert { background: #fff0dc; color: #89521c; }
.s-grant { background: #e7f2ee; color: #316959; }
.s-journal { background: #e9eef7; color: #546686; }
.s-event { background: #edf2f5; color: #486777; }
.attention-card h3 { font-size: .98rem; }
.recordname { margin-top: 2px; font-size: .88rem; color: #47576b; }
.meta { margin-top: 4px; font-size: .81rem; color: var(--muted); }
.row-action { min-height: 37px; padding: 6px 10px; font-size: .85rem; }
.upcoming { padding: 0 15px; }
.dateitem { display: flex; align-items: center; width: 100%; gap: 12px; padding: 10px 0; text-align: left; }
.datebox { width: 42px; min-width: 42px; display: grid; place-items: center; border: 1px solid #d8e4ef; border-radius: 6px; padding: 3px 0; background: #f5f8fc; color: #244c78; }
.datebox small { font-size: .75rem; font-weight: 650; line-height: 1.15; }
.datebox b { font-size: 1.1rem; line-height: 1.1; }
.dateitem strong { display: block; font-size: .9rem; font-weight: 640; }
.dateitem .small { font-size: .8rem; }
.sectiongap { margin-top: 24px; }
.casetable { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; }
.casetable th { font-size: .76rem; font-weight: 650; text-transform: uppercase; letter-spacing: .055em; color: #42556d; background: #f7f9fc; padding: 10px 15px; }
.casetable th:first-child { border-top-left-radius: 8px; }
.casetable th:last-child { border-top-right-radius: 8px; }
.casetable td { padding: 11px 15px; border-top: 1px solid var(--line); font-size: .9rem; }
.casetable tbody tr { cursor: pointer; }
.casetable tbody tr:hover { background: #f6faff; }
.caselink { display: flex; align-items: center; gap: 11px; text-align: left; padding: 0; min-height: 40px; font-size: .94rem; line-height: 1.35; }
.caselink b { display: block; font-weight: 610; color: var(--ink); }
.caselink small { display: block; margin-top: 3px; font-size: .78rem; font-weight: 450; letter-spacing: .02em; color: var(--muted); }
.caselink .serviceicon { width: 32px; height: 32px; border-radius: 6px; }
.endcol { width: 30px; }
.pill { display: inline-flex; align-items: center; max-width: 100%; border-radius: 5px; padding: 3px 8px; font-size: .8125rem; font-weight: 600; line-height: 1.4; background: #eaf1f9; color: #345477; }
.pill.caution { color: #884b13; background: #fff0db; }
.pill.green { color: #285e47; background: #e4f2e9; }
.pill.blue { color: #2d527d; background: #e8f1fc; }
.pill.gray { color: #46566a; background: #edf1f5; }
.register-meta, .entry-count, .entry-count label, .grid-tools, .register-footer, .pager { display: flex; align-items: center; gap: 10px; }
.register-meta, .grid-tools, .register-footer { justify-content: space-between; }
.register-meta { margin: 0 0 15px; }
.entry-count { font-size: .92rem; }
.total { border-left: 1px solid #c4d0de; padding-left: 11px; }
.entry-count select, .field select, .filterbar select { appearance: none; background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23365270' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; }
.entry-count select { min-height: 40px; border: 1px solid #c5d2de; border-radius: 6px; padding: 5px 28px 5px 10px; }
.filter-toggle b { background: #e4eef8; border-radius: 4px; padding: 0 5px; }
.grid-panel { overflow: hidden; }
.grid-panel > .panel { border: 0; border-radius: 0; }
.grid-panel .casetable th { border-radius: 0; }
.grid-panel .casetable td + td, .grid-panel .casetable th + th { border-left: 1px solid #e6ebf1; }
.grid-tools { padding: 12px 15px; background: #fafbfd; border-bottom: 1px solid var(--line); }
.grid-search { padding: 0 12px; width: min(380px, 82%); }
.grid-search input { height: 40px; }
.register-export { font-size: .875rem; min-height: 38px; color: var(--navy); border: 1px solid #c4d2e1; background: white; }
.register-export:hover { background: var(--sky); }
.register-footer { border-top: 1px solid var(--line); padding: 9px 14px; font-size: .83rem; color: var(--muted); }
.pager { gap: 5px; }
.pager button { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; color: #355879; }
.pager span { padding: 0 5px; }
.filterbar { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.filterbar .field { min-width: 145px; flex: 1; }
.case-filters { margin-bottom: 15px; padding: 3px 14px 4px; border: 1px solid var(--line); border-radius: 7px; background: #f7faff; }
.empty { padding: 23px; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.recordhead { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 0; padding-bottom: 15px; }
.recordhead h1 { font-size: clamp(1.68rem,2.6vw,2.22rem); }
.record-meta .subtitle { gap: 8px; }
.tabs { display: flex; gap: 5px; border-bottom: 1px solid var(--line); margin: 3px 0 20px; overflow-x: auto; scrollbar-width: thin; }
.tab { padding: 12px 16px; color: #496079; font-size: .92rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.tab:hover { background: #f1f6fc; }
.tab.active { color: #173c6a; font-weight: 650; border-color: #265f98; background: #eff5fc; }
.casegrid { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(230px,.8fr); gap: 18px; align-items: start; }
.stacked, .formgrid { display: grid; gap: 16px; }
.cardbody { padding: 22px; }
.cardbody h2 { margin-bottom: 12px; color: var(--navy); }
.cardbody h3 { margin: 10px 0 8px; }
.cardbody .formgrid { margin-top: 15px; }
.boxhead, .formrow, .flexwrap { flex-wrap: wrap; }
.formgrid { max-width: 750px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: .91rem; font-weight: 620; color: var(--ink); }
.field input:not([type=checkbox]), .field textarea, .field select { width: 100%; max-width: 100%; min-height: 44px; border: 1px solid #bbcbd9; border-radius: 6px; padding: 10px 12px; color: var(--ink); background-color: white; }
.field select { padding-right: 30px; }
.field textarea { resize: vertical; min-height: 84px; line-height: 1.55; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; min-height: 36px; font-size: .94rem; }
.checkbox input { width: 19px; height: 19px; flex-shrink: 0; accent-color: var(--blue); margin: 2px 0; }
.fieldhint, .saved { font-size: .8rem; line-height: 1.45; color: var(--muted); }
.saved { color: #396750; display: inline-flex; gap: 5px; align-items: center; }
.error { color: #822d21; background: #fff0ed; border: 1px solid #efc2b9; border-radius: 7px; padding: 9px 12px; font-size: .9rem; }
.fieldinvalid { border-color: #a94430 !important; }
.formerror:empty { display: none; }
.callout { padding: 13px 15px; border-radius: 7px; border: 1px solid #edcfab; border-left: 3px solid #be782e; background: #fff6e9; color: #6d4425; font-size: .94rem; line-height: 1.55; }
.callout b, .callout small { display: block; }
.callout small { font-size: .8rem; margin-top: 4px; }
.feedback-inline { margin: 2px 0 4px; }
.kv { display: grid; gap: 0; margin: 0; }
.kv > div, .itemlist > li, .listing { padding: 11px 0; border-bottom: 1px solid var(--line); }
.kv > div:last-child, .itemlist > li:last-child, .listing:last-child { border: 0; }
.kv dt { font-size: .8rem; color: var(--muted); }
.kv dd { margin: 2px 0 0; font-size: .94rem; overflow-wrap: anywhere; }
.otheractions { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
details summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: .9rem; min-height: 35px; padding-top: 4px; }
.actionlist { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.actionlist button { padding: 7px 10px; min-height: 38px; background: #edf4fa; color: #2c547d; border-radius: 5px; text-align: left; font-size: .875rem; }
.itemlist { list-style: none; margin: 0; padding: 0; }
.itemlist > li, .listing { overflow-wrap: anywhere; }
.listing { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.listing b, .itemlist b { font-size: .93rem; }
.itemlist p, .inline-note { margin: 5px 0; color: var(--muted); line-height: 1.55; font-size: .92rem; }
.inline-note { margin: 7px 0 13px; }
.small { font-size: .875rem; line-height: 1.5; }
.stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(205px,1fr)); gap: 12px; }
.metric { padding: 17px; text-align: left; display: flex; flex-direction: column; min-height: 111px; }
.metric span { color: var(--muted); font-size: .875rem; }
.metric b { color: var(--navy); font-size: 1.55rem; letter-spacing: -.035em; margin-top: 8px; }
.metric:hover, .democard:hover { border-color: #7896b7; background: #f8fbff; }
.metric[aria-pressed=true] { background: #eff6fc; border-color: #7299bf; }
.filterfold { padding: 12px 16px 7px; margin: 12px 0 18px; }
.demo-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(185px,1fr)); gap: 9px; }
.democard { border: 1px solid var(--line); border-radius: 7px; padding: 12px; text-align: left; background: #f9fbfd; }
.democard b, .democard small { display: block; }
.democard small { margin-top: 4px; color: var(--muted); }
.dialoghead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; gap: 12px; }
.dialoghead h2 { color: var(--navy); font-size: 1.28rem; }
dialog { border: 1px solid #c8d4e0; border-radius: 12px; box-shadow: 0 20px 80px #182f4f32; padding: 22px; width: min(94vw,550px); max-height: 84dvh; color: var(--ink); overscroll-behavior: contain; }
dialog::backdrop { background: #122b475c; }
dialog pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--soft); padding: 13px; border-radius: 7px; font: inherit; font-size: .94rem; line-height: 1.55; }
.searchresults { margin-top: 10px; }
.searchresult, .newchoice { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 5px; border-bottom: 1px solid var(--line); min-height: 48px; }
.searchresult:last-child, .newchoice:last-child { border: 0; }
.searchresult b, .newchoice b { font-size: .94rem; }
.searchresult small, .newchoice small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.resultbody { flex: 1; }
.section-title-gap, .spaced { margin-top: 16px; }
.flash { position: fixed; bottom: 22px; left: calc(50% + var(--sidebar)/2); transform: translateX(-50%); background: #1f3654; color: white; padding: 12px 17px; border-radius: 8px; box-shadow: 0 4px 16px #0002; font-size: .875rem; z-index: 15; max-width: min(90vw,620px); text-align: center; }
.rail-hidden .flash { left: 50%; }
.dangertext { color: #973d2b; }
.fullrow { width: 100%; text-align: left; }
.wait { display: flex; gap: 10px; align-items: center; color: #3a566f; background: #edf4f9; border-radius: 7px; padding: 12px 14px; font-size: .94rem; }
.safearea { overflow-wrap: anywhere; }
.loading { padding: 42px; }
.mobileonly { display: none; }
@media (min-width:1500px) {
  :root { --sidebar: 278px; }
  .hero { min-height: 218px; }
  .herocopy { padding: 28px 33px; }
  .attention-card { padding: 18px; }
}
@media (max-width:1160px) {
  :root { --sidebar: 215px; }
  .side-inner { padding-inline: 12px; }
  .workspace, .topbar { padding-inline: 22px; }
  .dashgrid { grid-template-columns: minmax(0,1.55fr) minmax(215px,1fr); gap: 15px; }
  .attention-card { grid-template-columns: auto 1fr; gap: 8px 10px; }
  .attention-card .row-action { grid-column: 2; justify-self: start; }
  .profile-text { display: none; }
  .casetable td, .casetable th { padding-inline: 10px; }
}
@media (max-width:850px) {
  :root { --sidebar: 0px; }
  .sidebar, .rail-toggle { display: none; }
  .shell { margin: 0; }
  .topbar { min-height: 60px; height: 60px; padding-inline: 18px; }
  .mobilebrand { display: inline-flex; }
  .insthead { border-left: 1px solid var(--line); padding-left: 12px; }
  .insthead .instmark { display: none; }
  .topactions { gap: 5px; }
  .avatarbtn { border: 0; padding: 0; }
  .avatarbtn > svg { display: none; }
  .workspace { padding-bottom: 88px; }
  .bottomnav { position: fixed; bottom: 0; inset-inline: 0; z-index: 4; display: flex; justify-content: space-around; background: #fffffff5; border-top: 1px solid #cad7e5; padding: 3px 5px max(3px,env(safe-area-inset-bottom)); backdrop-filter: blur(10px); }
  .bottomnav button { display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 60px; min-height: 48px; font-size: .76rem; color: #53657b; }
  .bottomnav button.active { color: #1b4e80; font-weight: 660; }
  .flash { bottom: 69px; left: 50%; }
  .mobileonly { display: block; }
}
@media (max-width:650px) {
  .topbar { padding-inline: 14px; }
  .topname { gap: 9px; }
  .mobilebrand img { height: 25px; }
  .insthead { gap: 3px; padding-left: 9px; }
  .insthead b { font-size: .83rem; }
  .searchlaunch { border: 0; justify-content: center; padding: 0; }
  .searchlaunch span, .searchlaunch kbd { display: none; }
  .topactions { gap: 0; }
  .topactions > button { min-height: 44px; min-width: 44px; }
  .avatarbtn { justify-content: center; }
  .avatar { width: 31px; height: 31px; }
  .workspace { padding: 19px 15px 85px; }
  .pagehead { align-items: start; flex-wrap: wrap; gap: 8px; padding-bottom: 13px; margin-bottom: 16px; }
  .pagehead .titleblock { flex: 1 1 auto; }
  .pageactions { gap: 6px; align-items: flex-end; }
  .pageactions:empty { display: none; }
  .pageactions .subtitle { font-size: .82rem; }
  .pagehead:has(.pageactions .subtitle) { display: grid; grid-template-columns: 1fr auto; }
  .pagehead:has(.pageactions .subtitle) .pageactions { display: contents; }
  .pagehead:has(.pageactions .subtitle) .subtitle { grid-column: 1 / -1; grid-row: 2; }
  .pagehead:has(.pageactions .subtitle) .pageactions .btn { grid-row: 1; grid-column: 2; align-self: start; }
  .crumbs { gap: 3px; margin-top: 5px; font-size: .8rem; line-height: 1.5; }
  .btn, .row-action { min-height: 44px; }
  .hero { min-height: 188px; border-radius: 9px; }
  .herocopy { padding: 17px; width: 84%; }
  .hero-art { width: 44%; height: 66%; inset: auto -9% -3% auto; object-position: right bottom; opacity: .58; }
  .hero h2 { font-size: 1.48rem; max-width: 255px; margin: 7px 0; }
  .herotag { font-size: .72rem; }
  .herometa { font-size: .83rem; gap: 5px; }
  .herolower { margin-top: 13px; }
  .heroid { display: none; }
  .dashgrid { display: flex; flex-direction: column; gap: 20px; margin: 20px 0; }
  .attention-card { padding: 12px; gap: 3px 9px; grid-template-columns: 31px minmax(0,1fr); align-items: start; }
  .attention-card .serviceicon { width: 31px; height: 33px; }
  .attention-card .row-action { grid-column: 2; padding: 4px 0; min-height: 44px; background: none; border: none; color: var(--blue); }
  .attention-card h3 { font-size: .97rem; }
  .sectiontitle { margin-bottom: 8px; }
  .sectiontitle h2 { font-size: 1.13rem; }
  .casetable, .casetable tbody { display: block; }
  .casetable thead { display: none; }
  .casetable tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 11px 12px; border-top: 1px solid var(--line); align-items: center; }
  .casetable tbody tr:first-child { border-top: 0; }
  .casetable td, .grid-panel .casetable td + td { display: block; padding: 0; border: 0; }
  .casetable td:first-child { grid-column: 1 / -1; }
  .casetable .servicecol, .casetable .endcol { display: none; }
  .casetable .stagecol { padding-left: 43px; }
  .casetable .duecol { font-size: .8rem; color: var(--muted); }
  .caselink { font-size: .94rem; min-height: 44px; }
  .casetable .pill { font-size: .76rem; white-space: normal; }
  .register-meta { margin-bottom: 10px; gap: 5px; }
  .entry-count, .entry-count label { gap: 5px; font-size: .83rem; }
  .total { padding-left: 6px; }
  .filter-toggle { padding-inline: 9px; }
  .case-filters .filterbar { display: grid; grid-template-columns: 1fr 1fr; }
  .filterbar .field { min-width: 0; }
  .case-filters .field select, .case-filters .field input { min-width: 0; }
  .grid-tools { padding: 9px; gap: 9px; }
  .register-export { min-width: 44px; min-height: 44px; padding: 8px; }
  .register-export span { display: none; }
  .grid-search { flex: 1; }
  .register-footer { padding: 5px 8px; }
  .pager button { height: 44px; width: 42px; }
  .casegrid { display: flex; flex-direction: column; }
  .casegrid > * { width: 100%; }
  .recordhead { gap: 9px; padding-bottom: 11px; }
  .tab { font-size: .87rem; min-height: 44px; padding: 10px; }
  .tabs { gap: 2px; margin-bottom: 14px; }
  .formgrid { gap: 13px; }
  .cardbody { padding: 15px; }
  .field input:not([type=checkbox]), .field select, .field textarea, .grid-search input { font-size: 1rem; }
  .buttonbar { position: sticky; bottom: 56px; z-index: 1; background: white; border-top: 1px solid var(--line); padding: 8px 0 3px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric { padding: 12px; min-height: 97px; }
  .metric b { font-size: 1.26rem; }
  .demo-cards { grid-template-columns: 1fr; }
  dialog { padding: 15px; }
}
@media (max-width:380px) {
  .workspace { padding-inline: 12px; }
  .topbar { padding-inline: 10px; }
  .tab { padding-inline: 8px; }
  .filters .field { min-width: 0; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.report-picker { max-width: 28rem; margin: 0 0 16px; }
.itemlist .selected-note { border-left: 3px solid var(--blue); background: #eff6fc; padding: 12px; }
