:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  color: #24292c;
  background: #f7f6f2;
  --surface: #fff;
  --background: #f7f6f2;
  --ink: #23292c;
  --muted: #59646b;
  --line: #e4e6e5;
  --blue: #244ed8;
  --dark-blue: #1d40b5;
  --sidebar: #22282b;
  --radius: 13px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-width: 280px; }
button, select, input, textarea { font: inherit; }
button, select, summary { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled, select:disabled { cursor: not-allowed; opacity: .58; }
button, input, select, textarea { color: var(--ink); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #6186ff; outline-offset: 3px; }
h1:focus { outline: none; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 20; padding: 12px 16px; border-radius: 6px; background: white; color: var(--blue); }

.app-shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.sidebar { display: flex; flex-direction: column; min-width: 0; color: #e9ebec; background: var(--sidebar); position: sticky; top: 0; height: 100dvh; padding: 27px 15px 15px; overflow-y: auto; overflow-x: hidden; }
.brand { display: inline-flex; gap: 11px; align-items: center; width: fit-content; color: #fff; }
.sidebar .brand { margin: 0 0 32px 9px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: #365ee7; color: #fff; }
.brand strong { display: block; font-size: 21px; line-height: 1.12; letter-spacing: -.035em; font-weight: 750; }
.brand small { display: block; margin-top: 5px; font-size: 9px; font-weight: 650; color: #c1cbd2; letter-spacing: .048em; line-height: 1.1; }
.main-nav { display: grid; gap: 22px; }
.nav-group { display: grid; gap: 3px; }
.nav-label { color: #a4afb5; font-size: 10px; font-weight: 680; letter-spacing: .105em; margin: 0 0 6px 12px; }
.nav-link { display: flex; gap: 11px; align-items: center; min-height: 41px; padding: 8px 11px; border-radius: 8px; color: #e0e5e8; font-size: .9rem; font-weight: 550; }
.nav-link svg { color: #b7c1c8; flex: 0 0 auto; }
.nav-link:hover { background: #333b40; color: #fff; }
.nav-link[aria-current] { background: #365ee7; color: #fff; }
.nav-link[aria-current] svg { color: #fff; }
.sidebar-bottom { margin-top: auto; padding-top: 24px; }
.profile { display: grid; grid-template-columns: 34px minmax(0, 1fr) 30px; gap: 9px; align-items: center; border-top: 1px solid #40494e; padding: 16px 3px 4px; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #e2e8ff; background: #3a4873; font-size: .77rem; font-weight: 700; }
.profile strong, .profile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile strong { font-size: .83rem; }
.profile small { margin-top: 2px; color: #b2bcc2; font-size: .72rem; }
.profile .icon-button { min-width: 30px; min-height: 34px; color: #c9d1d6; }
.profile .icon-button:hover { background: #384249; }
.workspace { min-width: 0; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 34px; border-bottom: 1px solid var(--line); background: #fbfaf7; }
.topbar-title, .top-actions, .top-date { display: flex; align-items: center; gap: 10px; font-size: .84rem; }
.topbar-title svg, .topbar-home, .top-date { color: var(--muted); }
.topbar-title strong { font-weight: 650; }
.top-date { gap: 7px; white-space: nowrap; }
.demo-tag { padding: 5px 8px; border-radius: 5px; background: #e9edfc; color: #3452aa; font-size: .72rem; font-weight: 650; white-space: nowrap; }
.content { max-width: 1620px; margin: 0 auto; padding: 30px 34px 46px; }
.menu-button, .nav-overlay { display: none !important; }

.dashboard-intro, .head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; }
.dashboard-intro { margin: 8px 0 24px; }
.dashboard-intro h1, .page-head h1 { font-size: clamp(2rem, 3.1vw, 3.15rem); line-height: 1.06; font-weight: 730; letter-spacing: -.047em; overflow-wrap: anywhere; }
.dashboard-intro p, .page-head p { color: var(--muted); margin-top: 9px; line-height: 1.55; }
.eyebrow { color: #3a53a1; font-size: .72rem; letter-spacing: .125em; font-weight: 720; margin-bottom: 10px; }
.page-head { margin: 7px 0 23px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex-shrink: 0; }
.head-row .actions, .dashboard-intro .actions { justify-content: flex-end; max-width: 54%; }
.button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; border: 1px solid transparent; border-radius: 7px; font-size: .88rem; font-weight: 630; line-height: 1.25; text-align: center; }
.button svg { flex: 0 0 auto; }
.button.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.button.primary:hover:not(:disabled) { background: var(--dark-blue); border-color: var(--dark-blue); }
.button.secondary { background: var(--surface); border-color: #dce0e3; color: #283438; }
.button.secondary:hover:not(:disabled) { background: #f0f3ff; border-color: #b9c9fa; color: var(--dark-blue); }
.button.small { font-size: .78rem; min-height: 34px; padding: 6px 9px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 38px; padding: 3px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; }
.icon-button:hover { background: #e8ebf2; }
.text-link { color: var(--dark-blue); font-weight: 620; font-size: .89rem; }
.text-link:hover, .row-link:hover, .context-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.row-link { font-weight: 650; color: #222b30; }
.context { min-height: 23px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; color: var(--muted); font-size: .84rem; }
.context-link { color: var(--dark-blue); font-weight: 585; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 19px; }
.metric { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; gap: 5px; padding: 15px 17px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 2px 3px #20292506; }
.metric:hover { border-color: #aebffc; background: #fcfcff; }
.metric-top { display: flex; width: 100%; justify-content: space-between; align-items: center; color: #637078; margin-bottom: 5px; }
.soft-icon { display: inline-grid; place-items: center; width: 35px; height: 35px; border-radius: 8px; background: #edf0f3; color: #43515a; flex: 0 0 auto; }
.soft-icon.blue { background: #edf1ff; color: #264dcc; }
.soft-icon.purple { background: #f2edfc; color: #6447a6; }
.soft-icon.amber { background: #fff1d9; color: #805910; }
.soft-icon.green { background: #e7f3ed; color: #27604b; }
.metric-label { font-size: .9rem; font-weight: 650; }
.metric strong { font-size: clamp(1.35rem, 2.45vw, 2.16rem); line-height: 1.18; letter-spacing: -.035em; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric small { font-size: .76rem; line-height: 1.4; color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(0, 1fr); gap: 17px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); gap: 17px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 4px #20292504; margin-bottom: 17px; min-width: 0; overflow: clip; }
.panel-head { min-height: 62px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 17px 18px 13px; }
.panel-head h2 { font-size: 1.06rem; line-height: 1.3; letter-spacing: -.015em; font-weight: 720; }
.panel-head p { color: var(--muted); font-size: .84rem; line-height: 1.45; margin-top: 4px; }
.panel-head .actions { flex-shrink: 1; justify-content: end; align-self: center; min-width: max-content; }
.panel-body { padding: 0 18px 17px; }
.panel-body p { line-height: 1.55; }
.chart-summary { padding: 0 18px 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.chart-summary strong { display: block; font-size: 1.65rem; line-height: 1.25; letter-spacing: -.035em; }
.chart-summary small, .chart-legend { color: var(--muted); font-size: .76rem; }
.chart-legend { display: flex; gap: 11px; flex-wrap: wrap; }
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.chart-legend i { width: 8px; height: 8px; background: var(--blue); border-radius: 2px; }
.chart-legend span:last-child i { background: #e4ac73; }
.chart { margin: 4px 18px 10px; }
.chart svg { width: 100%; display: block; max-height: 245px; }
.chart text { fill: #556269; font-family: inherit; font-size: 14px; }
.chart line { stroke: #e7eaec; stroke-width: 1; }
.chart .bar { fill: #a7b9f5; }
.chart .current { fill: #3158d9; }
.chart .expense { fill: #e4ac73; }
.timeline { list-style: none; padding: 0 17px 10px; margin: 0; }
.timeline li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 10px 0; border-top: 1px solid #eceeed; }
.timeline a { font-size: .85rem; }
.timeline small { color: var(--muted); display: block; margin-top: 3px; font-size: .75rem; }
.timeline time { background: #f0f2f3; color: #47535a; padding: 5px 7px; border-radius: 5px; font-weight: 620; font-size: .74rem; }
.timeline time.late { background: #f8e6e5; color: #8b332c; }

.tabs { display: flex; flex-wrap: wrap; gap: 16px; border-bottom: 1px solid #dfe3e3; margin-bottom: 16px; }
.tabs a { padding: 8px 2px 10px; color: var(--muted); font-size: .92rem; font-weight: 640; border-bottom: 2px solid transparent; }
.tabs a[aria-current] { color: var(--dark-blue); border-bottom-color: var(--blue); }
.tabs a:hover { color: var(--dark-blue); }
.toolbar { padding: 2px 18px 14px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.search-form { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.search-box { display: flex; align-items: center; gap: 8px; color: var(--muted); background: #fff; border: 1px solid #d8dddf; border-radius: 7px; padding: 0 9px; }
.search-box input { width: min(250px, 42vw); min-height: 36px; border: 0; background: transparent; font-size: .88rem; padding: 0 3px; }
.search-box:focus-within { outline: 3px solid #6186ff; outline-offset: 2px; }
.search-box input:focus { outline: none; }
.filter { display: grid; gap: 4px; color: var(--muted); font-size: .74rem; font-weight: 620; }
.filter select, .field select { appearance: none; padding-right: 28px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23576570' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-position: right 8px center; background-repeat: no-repeat; background-size: 16px; }
.filter select { min-height: 39px; max-width: 250px; padding: 6px 9px; border: 1px solid #d8dddf; border-radius: 7px; background-color: #fff; font-size: .85rem; }
.table-shell { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .88rem; }
th, td { padding: 11px 13px; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 18px; }
th:last-child, td:last-child { padding-right: 18px; }
th { font-weight: 650; font-size: .77rem; color: #536068; background: #f5f6f5; border-top: 1px solid #edf0ef; border-bottom: 1px solid #edf0ef; white-space: nowrap; }
td { border-bottom: 1px solid #edf0ef; color: #39434a; line-height: 1.35; overflow-wrap: anywhere; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbff; }
.table-profile { display: flex; align-items: center; gap: 9px; }
.main-cell { min-width: 90px; }
.main-cell small { display: block; margin-top: 3px; color: var(--muted); font-size: .77rem; }
.main-cell strong { color: var(--ink); }
.amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 3px 7px; border-radius: 5px; background: #eef0f1; color: #465158; font-size: .75rem; font-weight: 650; line-height: 1.25; }
.status.green { background: #e5f3e9; color: #276047; }
.status.amber { background: #fbefd5; color: #735212; }
.status.blue { background: #eaf0ff; color: #294ea5; }
.status.red { background: #f9e9e7; color: #93362c; }
.dot { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.facts { padding: 0 18px 13px; }
.facts > div { display: grid; grid-template-columns: minmax(80px, .75fr) minmax(0, 1.25fr); gap: 9px; padding: 10px 0; border-top: 1px solid #edf0ef; font-size: .88rem; }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 565; overflow-wrap: anywhere; }
.stack-links { display: flex; flex-wrap: wrap; gap: 9px; align-items: flex-start; }
.stack-links .text-link { flex-basis: 100%; }
.checklist { display: grid; gap: 2px; padding: 0 18px 14px; }
.checklist label, .choice-list label, .wide-check { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; line-height: 1.4; }
input[type="checkbox"] { accent-color: var(--blue); width: 17px; height: 17px; flex: 0 0 auto; margin: 2px 0 0; }
.empty { display: grid; justify-items: center; gap: 8px; min-height: 105px; padding: 23px 15px; text-align: center; color: var(--muted); }
.empty svg { color: #687c9c; }
.empty strong { color: var(--ink); font-size: .95rem; }
.empty p { font-size: .85rem; max-width: 55ch; }
.empty .button { margin-top: 3px; }
.muted { color: var(--muted); }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.announcement, .statement-unit { padding: 15px 18px; border-top: 1px solid var(--line); }
.announcement p { margin-top: 7px; line-height: 1.5; }
.statement-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.statement-title .actions { flex-shrink: 1; }
.statement-title h3, .announcement h3 { font-size: 1rem; letter-spacing: -.01em; }
.statement-title p, .announcement small { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.summary-strip { display: flex; flex-wrap: wrap; gap: 13px; margin: 11px 0; padding: 10px 12px; background: #f3f5fc; border-radius: 7px; font-size: .78rem; color: var(--muted); }
.summary-strip strong { display: block; margin-top: 3px; color: var(--ink); font-size: .94rem; }
details summary { width: fit-content; padding: 6px 2px; color: var(--dark-blue); font-size: .86rem; font-weight: 620; }
.meter-export .actions { margin-top: 4px; }
.meter-due { display: inline-block; margin: 3px 0; }
.messages { display: grid; gap: 9px; padding: 0 18px 18px; }
.message { width: min(84%, 680px); background: #f3f4f4; border-radius: 9px; padding: 12px 14px; }
.message.sent { justify-self: end; background: #eef2ff; }
.message > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 9px; color: var(--muted); font-size: .8rem; }
.message p { margin: 6px 0; line-height: 1.5; }
.message .button { margin: 5px 4px 0 0; }

.initial { min-height: 125px; display: grid; justify-content: center; justify-items: center; align-content: center; gap: 9px; color: var(--muted); }
#app > .initial { min-height: 100dvh; }
.loader { width: 26px; height: 26px; border: 3px solid #e0e5ee; border-top-color: var(--blue); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert, .form-error { padding: 10px 12px; border-radius: 6px; line-height: 1.5; font-size: .9rem; }
.alert.error, .form-error { background: #f9e8e7; color: #862d27; }
.alert.info { color: #314b96; background: #ebf0ff; }
.alert ul { padding-left: 22px; margin: 6px 0 0; }
.notice { position: fixed; z-index: 10; right: 24px; bottom: 23px; max-width: min(420px, 90vw); padding: 11px 16px; border-radius: 8px; background: #242c30; color: #fff; box-shadow: 0 5px 22px #19242d3c; display: none; }
.notice.visible { display: block; }
dialog { padding: 0; width: min(610px, calc(100vw - 24px)); max-height: 94dvh; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); box-shadow: 0 20px 70px #11213f45; }
dialog::backdrop { background: #17223083; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 1.25rem; letter-spacing: -.025em; }
.dialog-body { padding: 17px 20px; }
.dialog-body > p { line-height: 1.5; margin-bottom: 13px; }
.dialog-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); background: #fafaf9; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 15px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: .88rem; font-weight: 630; min-width: 0; }
.field-help { color: var(--muted); font-size: .8rem; font-weight: 450; line-height: 1.4; }
.field input:not([type="checkbox"]), .field select, .field textarea { min-height: 41px; width: 100%; padding: 8px 10px; background-color: #fff; border: 1px solid #ccd3d9; border-radius: 7px; font-size: .93rem; font-weight: 450; }
.field textarea { resize: vertical; min-height: 78px; }
.field input[type="file"] { max-width: 100%; }
fieldset.field { border: 1px solid #dce0e3; padding: 5px 10px 8px; border-radius: 7px; margin: 0; }
.field legend { padding: 0 3px; }
.choice-list { max-height: 170px; overflow: auto; }
.choice-list label { padding: 4px 0; font-weight: 500; }
.choice-list p { font-weight: 450; line-height: 1.4; margin: 4px 0; }
.required { color: #943d31; }
.form-error { margin-top: 12px; }

.auth-layout { min-height: 100dvh; display: grid; grid-template-columns: minmax(310px, .87fr) minmax(380px, 1.13fr); }
.auth-brand { background: var(--sidebar); color: white; padding: clamp(28px, 6vw, 80px); display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; min-height: 100%; overflow: hidden; }
.auth-brand > div { min-width: 0; width: 100%; }
.auth-brand .eyebrow { color: #c0cffd; }
.auth-brand p { font-size: clamp(2.1rem, 4.2vw, 4.4rem); line-height: 1.01; letter-spacing: -.05em; font-weight: 700; }
.auth-grid { height: 115px; display: flex; align-items: flex-end; gap: 7px; margin-top: 34px; border-bottom: 1px solid #576577; }
.auth-grid i { width: 13%; height: 70%; background: #3b53a1; border-radius: 7px 7px 0 0; }
.auth-grid i:nth-child(2) { height: 46%; background: #627cdc; }
.auth-grid i:nth-child(3) { height: 92%; background: #395fe5; }
.auth-grid i:nth-child(4) { height: 65%; background: #4b67c5; }
.auth-grid i:nth-child(5) { height: 82%; background: #9dafef; }
.auth-main { display: grid; place-items: center; padding: 36px 22px; }
.auth-card { width: min(440px, 100%); }
.auth-card .page-head h1 { font-size: clamp(2rem, 3.4vw, 3rem); }
.auth-card .field input { font-size: 1rem; min-height: 44px; }
.auth-submit { width: 100%; margin-top: 18px; min-height: 44px; }
.auth-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }

@media (min-width: 1450px) {
  .app-shell { grid-template-columns: 244px minmax(0, 1fr); }
  .sidebar { padding-right: 19px; padding-left: 19px; }
  .content { padding: 35px 40px 50px; }
  .topbar { padding-right: 40px; padding-left: 40px; }
  .metric { padding: 17px 20px 19px; }
  .metrics { gap: 17px; }
}
@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 203px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .content, .topbar { padding-inline: 21px; }
  .panel-head { flex-wrap: wrap; }
  .panel-head .actions { min-width: 0; }
  .metric { padding: 13px; }
  .metrics { gap: 10px; }
  th, td { padding: 9px 10px; }
  th:first-child, td:first-child { padding-left: 13px; }
  th:last-child, td:last-child { padding-right: 13px; }
}
@media (max-height: 760px) {
  .sidebar { padding-top: 20px; }
  .sidebar .brand { margin-bottom: 24px; }
  .main-nav { gap: 15px; }
  .nav-link { min-height: 37px; }
  .sidebar-bottom { padding-top: 18px; }
}
@media (max-width: 975px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; position: fixed; inset: 0 auto 0 0; width: min(270px, 82vw); z-index: 5; }
  .menu-open .sidebar { display: flex; }
  .menu-button { display: inline-flex !important; }
  .menu-open .nav-overlay { display: block !important; position: fixed; inset: 0; background: #19242b79; border: 0; z-index: 4; width: 100%; }
}
@media (max-width: 720px) {
  .content { padding: 19px 14px 36px; }
  .topbar { padding-inline: 10px 14px; height: 54px; }
  .topbar-title { gap: 5px; }
  .topbar-home, .topbar-title > svg, .top-date { display: none; }
  .dashboard-intro, .head-row { align-items: flex-start; flex-direction: column; gap: 13px; }
  .dashboard-intro { margin-bottom: 17px; }
  .head-row .actions, .dashboard-intro .actions { max-width: none; justify-content: flex-start; }
  .dashboard-intro h1, .page-head h1 { font-size: clamp(1.85rem, 7.3vw, 2.8rem); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid, .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .chart text { font-size: 17px; }
  .button.small { min-height: 38px; }
  .auth-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .auth-brand { padding: 16px 21px; }
  .auth-brand > div { display: none; }
  .auth-main { place-items: start center; padding-top: 36px; }
  .panel-head .actions { justify-content: start; }
}
@media (max-width: 510px) {
  .table-shell, table, tbody { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { display: grid; padding: 9px 13px; border-top: 1px solid var(--line); }
  tbody td { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(0, 1.4fr); gap: 8px; align-items: baseline; padding: 5px 0 !important; border: 0; min-width: 0; }
  td::before { content: attr(data-label); color: var(--muted); font-size: .75rem; }
  td:first-child, td[data-label=""] { grid-template-columns: minmax(0, 1fr); }
  td:first-child::before, td[data-label=""]::before, td:empty { display: none; }
  td .status { justify-self: start; }
  td .button { width: fit-content; }
  .main-cell { min-width: 0; }
  .panel-head { padding-inline: 13px; }
  .toolbar { padding-inline: 13px; }
  .search-form { flex-wrap: nowrap; width: 100%; }
  .search-box { flex: 1; min-width: 0; }
  .search-box input { width: 100%; min-width: 0; }
  .filter { min-width: 0; max-width: 100%; }
  .filter select { max-width: 100%; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .dialog-head, .dialog-body, .dialog-footer { padding-inline: 14px; }
  .statement-title { flex-direction: column; }
  .message { width: min(96%, 680px); }
}
@media (prefers-reduced-motion: reduce) { .loader { animation: none; } }
