:root {
    color-scheme: light;
    --bg: #ffffff;
    --sidebar: #f6f6f5;
    --surface: #ffffff;
    --surface-soft: #f7f7f6;
    --surface-muted: #eeeeec;
    --text: #111111;
    --muted: #6f6f6b;
    --muted-strong: #4f4f4a;
    --line: #e3e3df;
    --line-strong: #d1d1cc;
    --accent: #092a5e;
    --accent-strong: #061b3a;
    --accent-soft: #eaf0f8;
    --danger: #c83b32;
    --capacity: #667085;
    --radius: 8px;
    --shadow: 0 1px 2px rgb(17 17 17 / 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.45;
}

a {
    color: inherit;
}

code {
    padding: 2px 5px;
    border-radius: 5px;
    background: var(--surface-soft);
    font-size: 0.92em;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.app-shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: 100dvh;
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100dvh;
    padding: 16px 10px 12px;
    border-right: 1px solid var(--line);
    background: var(--sidebar);
}

.sidebar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 0 10px;
    color: var(--text);
    font-weight: 650;
    text-decoration: none;
}

.sidebar__brand span:last-child {
    display: grid;
    min-width: 0;
    line-height: 1.1;
}

.sidebar__brand strong {
    font-size: 0.94rem;
}

.sidebar__brand small {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 500;
}

.brand-mark {
    display: inline-grid;
    width: 29px;
    height: 29px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    background: var(--surface);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1;
}

.sidebar-search {
    position: relative;
    padding: 0 6px;
}

.sidebar-search input {
    width: 100%;
    min-height: 34px;
    padding: 7px 52px 7px 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.87rem;
}

.sidebar-search input::placeholder {
    color: var(--muted);
}

.sidebar-search span {
    position: absolute;
    top: 7px;
    right: 13px;
    padding: 1px 5px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.35;
}

.sidebar__nav {
    display: grid;
    gap: 3px;
    margin-top: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: #4b4b47;
    font-size: 0.91rem;
    font-weight: 620;
    text-decoration: none;
}

.nav-icon {
    display: inline-grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 5px;
    color: var(--muted-strong);
    font-size: 0.66rem;
    font-weight: 750;
}

.nav-link:hover,
.nav-link.is-active {
    background: #ececea;
    color: var(--text);
}

.nav-link.is-active .nav-icon {
    background: var(--surface);
    color: var(--accent);
}

.sidebar__meta {
    position: relative;
    margin: auto 6px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.sidebar__dismiss {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 22px;
    height: 22px;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.sidebar__meta span,
.system-label {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.81rem;
}

.sidebar__meta strong {
    display: block;
    padding-right: 18px;
    font-size: 0.88rem;
}

.content-shell {
    min-width: 0;
}

.content-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
    padding: 0 28px;
    border-bottom: 1px solid var(--line);
    background: rgb(255 255 255 / 0.94);
    backdrop-filter: blur(14px);
}

.topbar-context {
    color: var(--muted);
    font-size: 0.82rem;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar__actions form {
    margin: 0;
}

.page {
    width: min(100% - 48px, 1540px);
    margin: 0 auto;
    padding: 32px 0 56px;
}

.report-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
    color: var(--muted-strong);
    font-size: 0.82rem;
    font-weight: 650;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb span::before {
    content: "/";
    margin-right: 7px;
    color: var(--line-strong);
}

.detail-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 14px;
}

.detail-hero h1 {
    font-size: clamp(1.9rem, 3.5vw, 2.45rem);
}

.eyebrow,
.section-kicker {
    display: block;
    margin: 0 0 7px;
    color: var(--muted-strong);
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 920px;
    margin-bottom: 6px;
    font-size: clamp(2.05rem, 3.5vw, 2.5rem);
    font-weight: 720;
    line-height: 1.08;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 680;
    line-height: 1.25;
    letter-spacing: 0;
}

.lead {
    max-width: 86ch;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.96rem;
}

.context-chips,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.context-chips span,
.detail-meta span,
.panel-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted-strong);
    font-size: 0.84rem;
}

.context-chips strong,
.detail-meta strong {
    margin-left: 6px;
    color: var(--text);
    font-weight: 650;
}

.report-status,
.metric-card,
.data-panel,
.empty-state,
.report-link-card,
.filter-panel,
.usage-layout {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.usage-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    min-height: 330px;
    overflow: hidden;
}

.usage-main {
    min-width: 0;
    padding: 24px 24px 18px;
}

.usage-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.usage-heading h2 {
    margin: 0;
    font-size: 1.2rem;
}

.usage-total {
    min-width: 120px;
    color: var(--muted);
    text-align: right;
}

.usage-total span {
    display: block;
    font-size: 0.78rem;
}

.usage-total strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: 1.35rem;
    line-height: 1;
}

.usage-chart {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(96px, 1fr);
    align-items: end;
    gap: 24px;
    min-height: 226px;
    margin-top: 18px;
    padding: 10px 6px 0;
    background-image:
        linear-gradient(to right, transparent 0, transparent 100%),
        repeating-linear-gradient(to top, transparent 0 55px, var(--line) 56px);
}

.usage-chart--compact {
    grid-auto-columns: minmax(78px, 1fr);
}

.usage-bar {
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: end;
    justify-items: center;
    gap: 8px;
    height: 218px;
    min-width: 0;
}

.usage-bar__value {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 650;
    white-space: nowrap;
}

.usage-bar__line {
    display: block;
    width: min(72px, 70%);
    height: max(4px, var(--h));
    border-radius: 4px 4px 0 0;
    background: var(--accent);
}

.usage-bar--muted .usage-bar__line {
    background: #8090a6;
}

.usage-bar--capacity .usage-bar__line {
    background: var(--capacity);
}

.usage-bar strong {
    min-height: 30px;
    color: var(--muted-strong);
    font-size: 0.78rem;
    font-weight: 550;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
}

.axis-note {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.82rem;
}

.usage-rail {
    display: grid;
    align-content: start;
    border-left: 1px solid var(--line);
    background: var(--surface);
}

.rail-card {
    min-height: 82px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.rail-card:last-child {
    border-bottom: 0;
}

.rail-card span,
.metric-card span,
.report-link-card span {
    display: block;
    color: var(--muted-strong);
    font-size: 0.82rem;
    font-weight: 650;
}

.rail-card strong {
    display: block;
    margin-top: 6px;
    color: var(--text);
    font-size: 1.35rem;
    line-height: 1;
}

.rail-card small,
.metric-card small,
.report-link-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.rail-card--accent {
    background: #fafafa;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.metric-card {
    min-width: 0;
    min-height: 104px;
    padding: 16px;
}

.metric-card strong,
.report-link-card strong {
    display: block;
    margin-top: 10px;
    color: var(--text);
    font-size: clamp(1.75rem, 2.6vw, 2.18rem);
    line-height: 1;
    letter-spacing: 0;
}

.dashboard-grid,
.report-grid {
    display: grid;
    gap: 14px;
    margin-top: 14px;
    min-width: 0;
}

.dashboard-grid--hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr) minmax(280px, 1.15fr);
}

.dashboard-grid--chart {
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
}

.dashboard-grid--two,
.report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-grid--balanced {
    align-items: stretch;
}

.data-panel,
.empty-state,
.report-link-card {
    min-width: 0;
    padding: 16px;
}

.page > .data-panel:not(.detail-hero) {
    margin-top: 16px;
}

.data-panel--wide {
    min-height: 320px;
}

.report-link-card {
    color: var(--text);
    text-decoration: none;
}

.report-link-card:hover {
    border-color: var(--accent);
}

.panel-heading {
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
}

.panel-heading--inline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.panel-heading--toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.panel-heading p,
.panel-note,
.empty-state p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.panel-badge {
    min-height: 26px;
    padding: 4px 8px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 650;
    white-space: nowrap;
}

.panel-badge--neutral {
    background: var(--surface-soft);
    color: var(--muted-strong);
}

.panel-badge--danger {
    border-color: rgb(200 59 50 / 0.24);
    background: rgb(200 59 50 / 0.08);
    color: var(--danger);
}

.panel-footnote {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
}

.vertical-chart {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(68px, 1fr);
    align-items: end;
    gap: 22px;
    min-height: 210px;
    padding: 18px 16px 8px;
}

.vertical-chart--wide {
    grid-auto-columns: minmax(82px, 1fr);
}

.vertical-bar {
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: end;
    justify-items: center;
    gap: 8px;
    height: 210px;
    min-width: 0;
}

.vertical-bar strong {
    color: var(--text);
    font-size: 0.86rem;
    white-space: nowrap;
}

.vertical-bar span {
    display: block;
    width: min(56px, 80%);
    height: max(8px, var(--h));
    border-radius: 4px 4px 0 0;
    background: var(--accent);
}

.vertical-bar:nth-child(2) span {
    background: #8090a6;
}

.vertical-bar:nth-child(3) span,
.vertical-bar:nth-child(4) span {
    background: var(--capacity);
}

.vertical-bar--danger span,
.vertical-bar--danger:nth-child(2) span,
.vertical-bar--danger:nth-child(3) span,
.vertical-bar--danger:nth-child(4) span {
    background: var(--danger);
}

.vertical-bar small {
    min-height: 34px;
    color: var(--muted-strong);
    font-size: 0.78rem;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
}

.donut-card {
    display: grid;
    grid-template-columns: minmax(150px, 1fr);
    gap: 20px;
    align-items: center;
    justify-items: center;
    padding: 10px 4px 2px;
}

.donut {
    position: relative;
    display: grid;
    width: 168px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--c1) 0 var(--a), var(--c2) var(--a) 100%);
}

.donut::after {
    content: "";
    position: absolute;
    width: 50%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
}

.donut strong {
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
}

.legend-list {
    display: grid;
    gap: 8px;
    width: 100%;
}

.legend-list div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-strong);
    font-size: 0.88rem;
}

.legend-list strong {
    margin-left: auto;
    color: var(--text);
}

.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: var(--accent);
}

.legend-dot--1 {
    background: var(--accent);
}

.legend-dot--2,
.legend-dot--danger {
    background: var(--danger);
}

.legend-dot--3,
.legend-dot--4 {
    background: var(--capacity);
}

.bar-list {
    display: grid;
    gap: 10px;
}

.bar-row {
    display: grid;
    grid-template-columns: minmax(118px, 0.8fr) minmax(150px, 1.4fr) minmax(68px, auto);
    align-items: center;
    gap: 12px;
    min-height: 27px;
}

.bar-row--wide {
    grid-template-columns: minmax(190px, 1fr) minmax(170px, 1.2fr) minmax(68px, auto);
}

.bar-row--pressure {
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 1.35fr) minmax(150px, auto);
}

.bar-row__meta {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.78rem;
}

.bar-row span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 0.86rem;
}

.bar-row strong {
    text-align: right;
    white-space: nowrap;
    font-size: 0.86rem;
}

.bar {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #eeeeec;
}

.bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}

.bar--danger span {
    background: var(--danger);
}

.bar--pressure span {
    background: var(--accent);
}

.bar--reference span {
    background: var(--capacity);
}

.table-wrap {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
}

.table-filter-form {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.table-filter-form input[type="search"] {
    width: min(300px, 36vw);
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.86rem;
}

table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

th,
td {
    padding: 10px 9px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

td {
    font-size: 0.86rem;
}

.num {
    text-align: right;
    white-space: nowrap;
}

tr:last-child td {
    border-bottom: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.button:hover {
    border-color: var(--accent);
}

.button--primary {
    border-color: var(--accent-strong);
    background: var(--accent-strong);
    color: #ffffff;
}

.button--primary:hover {
    background: #020f23;
}

.button--ghost {
    background: transparent;
}

.button--secondary {
    background: var(--surface);
    color: var(--text);
}

.button--secondary:hover {
    background: var(--accent-soft);
}

.button.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.button--full {
    width: 100%;
    min-height: 48px;
    border-radius: 999px;
}

.filter-panel {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
    color: var(--muted-strong);
    font-size: 0.86rem;
}

.form-field {
    display: grid;
    gap: 6px;
}

.autocomplete {
    position: relative;
    display: block;
    min-width: 0;
}

.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 40;
    max-height: 360px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 18px 40px rgb(17 17 17 / 0.14);
}

.autocomplete-option {
    display: grid;
    gap: 2px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.autocomplete-option:hover,
.autocomplete-option.is-active {
    background: var(--surface-soft);
}

.autocomplete-option strong {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.autocomplete-option span {
    display: block;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-field label,
.form-field > span {
    color: var(--muted-strong);
    font-size: 0.82rem;
    font-weight: 650;
}

.form-field input,
.form-field select {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.detail-meta {
    margin: -4px 0 16px;
}

.detail-meta span,
.table-action {
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted-strong);
    font-size: 0.82rem;
    font-weight: 650;
}

.table-action {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    text-decoration: none;
}

.table-action:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.big-ratio {
    margin: 10px 0 8px;
    color: var(--accent);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 750;
    line-height: 1;
}

.insight-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.login-page {
    display: grid;
    min-height: 100dvh;
    place-items: center;
    padding: 48px 22px;
    background: #ffffff;
}

.login-shell {
    display: grid;
    gap: 64px;
    width: min(1120px, 100%);
}

.login-card {
    width: min(440px, 100%);
    margin: 0 auto;
    text-align: center;
}

.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    font-weight: 700;
}

.login-logo {
    display: block;
    width: min(260px, 100%);
    height: auto;
    margin: 24px auto 0;
    opacity: 0.9;
    mix-blend-mode: multiply;
}

.login-card h1 {
    margin-bottom: 12px;
    font-size: clamp(1.8rem, 4vw, 2.08rem);
    line-height: 1.08;
}

.login-card p {
    margin-bottom: 0;
    color: var(--muted-strong);
}

.login-card form {
    display: grid;
    gap: 13px;
    margin-top: 28px;
    text-align: left;
}

.login-card .form-field input {
    min-height: 48px;
    border-radius: 999px;
    padding-inline: 18px;
}

.login-card .form-field label {
    padding-left: 6px;
}

.login-resource-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.login-resource-grid article {
    min-height: 132px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.login-resource-grid strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.login-resource-grid span {
    color: var(--muted-strong);
    font-size: 0.9rem;
}

.form-field input:focus,
.form-field select:focus,
.sidebar-search input:focus,
.table-filter-form input:focus,
.autocomplete-option:focus-visible,
.button:focus-visible,
.nav-link:focus-visible,
.report-link-card:focus-visible,
.table-action:focus-visible {
    outline: 3px solid var(--accent-soft);
    outline-offset: 2px;
}

.form-error {
    padding: 10px 12px;
    border: 1px solid rgb(200 59 50 / 0.28);
    border-radius: var(--radius);
    background: rgb(200 59 50 / 0.08);
    color: var(--danger);
    text-align: left;
}

@media (max-width: 1180px) {
    .usage-layout,
    .dashboard-grid--hero,
    .dashboard-grid--chart,
    .dashboard-grid--two,
    .report-grid {
        grid-template-columns: 1fr;
    }

    .usage-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .rail-card:nth-child(odd) {
        border-right: 1px solid var(--line);
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        padding: 12px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .sidebar__nav {
        display: flex;
        flex-wrap: wrap;
    }

    .sidebar__meta {
        display: none;
    }

    .content-topbar {
        position: static;
        align-items: stretch;
        flex-direction: column;
        padding: 12px 14px;
    }

    .topbar__actions {
        flex-wrap: wrap;
    }

    .page {
        width: min(100% - 28px, 1540px);
        padding-top: 22px;
    }

    .report-header {
        display: grid;
    }

    .usage-chart {
        grid-auto-columns: minmax(72px, 1fr);
        overflow-x: auto;
    }

    .login-resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14px;
    }

    .metric-grid,
    .filter-grid,
    .usage-rail,
    .login-resource-grid {
        grid-template-columns: 1fr;
    }

    .usage-main {
        padding: 18px 14px;
    }

    .usage-heading,
    .axis-note {
        display: grid;
        text-align: left;
    }

    .usage-total {
        text-align: left;
    }

    .rail-card:nth-child(odd) {
        border-right: 0;
    }

    .vertical-chart {
        grid-auto-columns: minmax(64px, 1fr);
        gap: 14px;
        overflow-x: auto;
        padding-inline: 6px;
    }

    .bar-row,
    .bar-row--wide,
    .bar-row--pressure {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .bar-row strong {
        text-align: left;
    }

    .panel-heading--inline,
    .panel-heading--toolbar,
    .panel-footnote {
        display: grid;
    }

    .table-filter-form {
        justify-content: stretch;
    }

    .table-filter-form input[type="search"] {
        width: 100%;
    }

    .pagination {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .donut {
        width: 150px;
    }
}
