@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/dm-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/dm-mono-500.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/manrope-latin.woff2") format("woff2");
}

:root {
  --ink: #17232f;
  --ink-soft: #2d3a46;
  --slate: #64717d;
  --muted: #94a0aa;
  --line: #dfe5e8;
  --line-strong: #cbd4da;
  --paper: #f5f7f8;
  --white: #ffffff;
  --orange: #f47b20;
  --orange-dark: #d65e0f;
  --amber: #f6b84b;
  --teal: #39a795;
  --blue: #4d86e8;
  --green: #2b9c75;
  --red: #cf5b5b;
  --shadow-sm: 0 0.2rem 0.75rem rgba(31, 50, 63, 0.05);
  --shadow-drawer: -1rem 0 3rem rgba(24, 40, 52, 0.18);
  --sidebar-width: 16rem;
}

* { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 20rem;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", "PingFang SC", "Microsoft YaHei", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 0.1875rem solid rgba(244, 123, 32, 0.28); outline-offset: 0.125rem; }
i[data-lucide] { width: 1rem; height: 1rem; stroke-width: 1.8; flex: 0 0 auto; }
.is-hidden { display: none !important; }
.mobile-only { display: none !important; }

.login-screen {
  display: grid;
  min-height: 100vh;
  background: var(--white);
}

.login-visual {
  position: relative;
  display: flex;
  min-height: 25rem;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 2rem 1.5rem 1.5rem;
  color: var(--white);
  background: var(--ink);
}

.login-visual::before,
.login-visual::after {
  position: absolute;
  display: block;
  content: "";
  pointer-events: none;
}

.login-visual::before {
  width: 28rem;
  height: 28rem;
  right: -12rem;
  bottom: -15rem;
  border: 1px solid rgba(246, 184, 75, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 0 2.2rem rgba(246, 184, 75, 0.05), 0 0 0 4.4rem rgba(246, 184, 75, 0.05), 0 0 0 6.6rem rgba(246, 184, 75, 0.05);
}

.login-visual::after {
  width: 4px;
  height: 4px;
  left: 60%;
  top: 26%;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 4.25rem 4.5rem 0 1px rgba(246, 184, 75, 0.8), -7rem 8rem 0 1px rgba(57, 167, 149, 0.7);
}

.login-visual__topline, .login-visual__footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 0.65rem; color: #b4c0c9; font-family: "DM Mono", monospace; font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; }
.status-dot, .online-dot { width: 0.4rem; height: 0.4rem; display: inline-block; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0.25rem rgba(57, 167, 149, 0.12); }
.login-visual__body { position: relative; z-index: 1; max-width: 43rem; padding: 2rem 0; }
.client-lockup { display: flex; align-items: center; gap: 0.7rem; }
.client-lockup--hero { align-items: flex-end; margin-bottom: 3rem; }
.client-mark { display: grid; width: 2.4rem; height: 2.4rem; flex: 0 0 auto; place-items: center; color: var(--white); background: var(--orange); font-family: "DM Mono", monospace; font-size: 0.78rem; font-weight: 500; letter-spacing: -0.08em; }
.client-mark--large { width: 3.25rem; height: 3.25rem; font-size: 1rem; background: var(--orange); box-shadow: 0.45rem 0.45rem 0 rgba(246, 184, 75, 0.52); }
.overline { display: block; color: var(--slate); font-family: "DM Mono", monospace; font-size: 0.625rem; font-weight: 500; letter-spacing: 0.12em; line-height: 1.35; text-transform: uppercase; }
.overline--orange { color: var(--orange); }
.client-name { margin: 0; color: var(--white); font-size: 0.9rem; font-weight: 700; letter-spacing: -0.02em; }
.client-name--hero { font-size: 1.05rem; }
.client-type { margin: 0.12rem 0 0; color: #a2afb8; font-family: "DM Mono", monospace; font-size: 0.55rem; letter-spacing: 0.1em; }
.login-visual h1 { max-width: 27rem; margin: 0; font-size: clamp(2.25rem, 8vw, 4.8rem); letter-spacing: -0.075em; line-height: 1.02; }
.login-visual h1 em { color: var(--amber); font-style: normal; }
.login-lede { max-width: 28rem; margin: 1.5rem 0 0; color: #bdc7ce; font-size: 0.9rem; line-height: 1.8; }
.login-metrics { display: flex; gap: 1.6rem; margin-top: 2.4rem; }
.login-metrics div { display: grid; gap: 0.22rem; }
.login-metrics strong { color: var(--white); font-family: "DM Mono", monospace; font-size: 1.08rem; font-weight: 500; }
.login-metrics span { color: #91a0ab; font-size: 0.7rem; }
.footer-rule { width: 3rem; height: 1px; background: #576674; }

.login-panel { position: relative; display: flex; min-height: 100vh; flex-direction: column; padding: 1.5rem; }
.login-panel__top { display: flex; align-items: center; justify-content: space-between; }
.product-lockup { display: flex; align-items: center; gap: 0.75rem; }
.product-mark { display: flex; align-items: center; gap: 0.55rem; color: var(--ink); font-size: 0.95rem; font-weight: 800; letter-spacing: -0.04em; }
.product-mark__slash { width: 0.5rem; height: 1.1rem; background: var(--orange); transform: skew(-22deg); }
.product-provider { display: flex; align-items: center; gap: 0.35rem; padding-left: 0.75rem; border-left: 1px solid var(--line); color: var(--muted); font-size: 0.55rem; white-space: nowrap; }
.product-provider img { width: 3.6rem; height: 1.5rem; object-fit: contain; }
.language-button { display: inline-flex; min-height: 2.75rem; align-items: center; gap: 0.32rem; padding: 0.35rem 0.2rem 0.35rem 0.7rem; border: 0; color: var(--slate); background: transparent; font-size: 0.75rem; }
.language-button i { width: 0.85rem !important; height: 0.85rem !important; }
.login-form-wrap { width: min(100%, 28rem); margin: auto; padding: 3.5rem 0; }
.login-form-wrap h2 { margin: 0.6rem 0 0.4rem; font-size: clamp(1.7rem, 5vw, 2.15rem); letter-spacing: -0.06em; line-height: 1.08; }
.login-subtitle { margin: 0; color: var(--slate); font-size: 0.84rem; }
.login-form { display: grid; gap: 0.55rem; margin-top: 2rem; }
.field-label { margin-top: 0.5rem; color: var(--ink-soft); font-size: 0.76rem; font-weight: 700; }
.input-wrap { display: flex; min-height: 3.1rem; align-items: center; gap: 0.65rem; padding: 0 0.85rem; border: 1px solid var(--line-strong); background: var(--white); transition: border-color 160ms ease, box-shadow 160ms ease; }
.input-wrap:focus-within { border-color: var(--orange); box-shadow: 0 0 0 0.2rem rgba(244, 123, 32, 0.1); }
.input-wrap > i { color: var(--muted); }
.input-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 0.84rem; }
.input-wrap input::placeholder { color: #a8b2b8; }
.input-action { display: grid; width: 2rem; height: 2rem; flex: 0 0 auto; place-items: center; padding: 0; border: 0; color: var(--muted); background: transparent; }
.input-action:hover { color: var(--ink); }
.form-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0.55rem 0 1rem; }
.check-label { display: flex; align-items: center; gap: 0.4rem; color: var(--slate); font-size: 0.72rem; }
.check-label input { accent-color: var(--orange); width: 0.9rem; height: 0.9rem; margin: 0; }
.text-button, .inline-link, .light-link, .panel-link, .filter-reset { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0; border: 0; color: var(--orange-dark); background: transparent; font-size: 0.72rem; font-weight: 700; }
.text-button:hover, .inline-link:hover, .panel-link:hover { color: var(--orange); }
.primary-button, .secondary-button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; gap: 0.65rem; padding: 0.7rem 1rem; border: 1px solid transparent; font-size: 0.78rem; font-weight: 800; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease; }
.primary-button { color: var(--white); background: var(--orange); }
.primary-button:hover { background: var(--orange-dark); transform: translateY(-1px); }
.primary-button--full { width: 100%; }
.secondary-button { color: var(--ink); border-color: var(--line-strong); background: var(--white); }
.secondary-button:hover { border-color: var(--orange); color: var(--orange-dark); }
.provider-signature { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.provider-signature__copy { display: grid; gap: 0.15rem; color: var(--muted); font-size: 0.65rem; line-height: 1.2; text-align: right; }
.provider-signature__copy strong { color: var(--ink-soft); font-size: 0.72rem; }
.provider-logo { display: grid; width: 4.2rem; height: 2.4rem; overflow: hidden; place-items: center; background: var(--white); }
.provider-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.provider-logo--light { width: 5.6rem; height: 2.6rem; border: 1px solid var(--line); }

.dashboard-shell { display: flex; min-height: 100vh; background: var(--paper); }
.sidebar { position: fixed; z-index: 20; display: flex; width: var(--sidebar-width); height: 100vh; flex-direction: column; padding: 1.6rem 1rem 1.1rem; color: #dce4e8; background: var(--ink); }
.sidebar__brand { padding: 0 0.45rem 1.45rem; border-bottom: 1px solid rgba(220, 228, 232, 0.13); }
.brand-strip { display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 0.82fr); align-items: center; gap: 0.55rem; }
.brand-strip .client-lockup { min-width: 0; gap: 0.52rem; }
.brand-strip .client-mark { width: 2.3rem; height: 2.3rem; font-size: 0.7rem; }
.brand-strip .client-name { overflow: hidden; font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; }
.brand-divider { width: 1px; height: 2.35rem; background: rgba(220, 228, 232, 0.22); }
.provider-brand { display: grid; min-width: 0; justify-items: center; gap: 0.24rem; }
.provider-brand .provider-logo { width: 4.35rem; height: 1.72rem; }
.provider-brand p { margin: 0; overflow: hidden; color: #8797a1; font-family: "DM Mono", monospace; font-size: 0.46rem; letter-spacing: 0.04em; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__section-label { margin: 1.7rem 0 0.55rem 0.7rem; color: #73818b; font-family: "DM Mono", monospace; font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; }
.sidebar-nav { display: grid; gap: 0.18rem; }
.nav-item { position: relative; display: flex; min-height: 2.85rem; align-items: center; gap: 0.7rem; padding: 0 0.7rem; border: 0; color: #aebbc3; background: transparent; font-size: 0.78rem; text-align: left; }
.nav-item i { width: 1.05rem; height: 1.05rem; color: #7d8b94; }
.nav-item kbd { margin-left: auto; color: #6c7b86; font-family: "DM Mono", monospace; font-size: 0.58rem; }
.nav-item:hover { color: var(--white); background: rgba(255, 255, 255, 0.05); }
.nav-item.is-active { color: var(--white); background: #263640; box-shadow: inset 0.18rem 0 var(--orange); }
.nav-item.is-active i { color: var(--amber); }
.nav-dot { width: 0.35rem; height: 0.35rem; margin-left: auto; border-radius: 50%; background: var(--orange); }
.sidebar__bottom { margin-top: auto; }
.service-card { display: grid; gap: 0.25rem; margin: 0.4rem 0 1.2rem; padding: 0.8rem 0.75rem; border: 1px solid rgba(220, 228, 232, 0.12); background: rgba(255, 255, 255, 0.035); }
.service-card__head { display: flex; align-items: center; gap: 0.4rem; color: #94a4ae; font-size: 0.63rem; }
.service-card strong { color: #f0f5f6; font-size: 0.72rem; }
.service-card > span:last-child { color: #788993; font-size: 0.59rem; }
.user-menu { display: flex; width: 100%; min-height: 3.3rem; align-items: center; gap: 0.55rem; padding: 0.45rem 0.25rem; border: 0; border-top: 1px solid rgba(220, 228, 232, 0.13); color: var(--white); background: transparent; text-align: left; }
.user-menu:hover { background: rgba(255, 255, 255, 0.04); }
.user-menu[aria-expanded="true"] { background: rgba(255, 255, 255, 0.08); }
.avatar, .topbar-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; color: var(--ink); background: var(--amber); font-family: "DM Mono", monospace; font-size: 0.6rem; font-weight: 500; }
.user-menu__copy { display: grid; flex: 1; gap: 0.1rem; }
.user-menu__copy strong { font-size: 0.7rem; font-weight: 700; }
.user-menu__copy small { color: #84939d; font-size: 0.57rem; }

.dashboard-main { width: calc(100% - var(--sidebar-width)); min-width: 0; margin-left: var(--sidebar-width); }
.topbar { display: flex; height: 4.25rem; align-items: center; justify-content: space-between; padding: 0 2.5rem; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.8); }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.72rem; }
.breadcrumb i { width: 0.82rem; height: 0.82rem; }
.breadcrumb strong { color: var(--ink); font-weight: 700; }
.topbar__actions { display: flex; align-items: center; gap: 1rem; }
.sync-state { display: flex; align-items: center; gap: 0.45rem; color: var(--slate); font-size: 0.67rem; }
.sync-state .online-dot { width: 0.35rem; height: 0.35rem; }
.icon-button { position: relative; display: inline-grid; min-width: 2.75rem; min-height: 2.75rem; place-items: center; padding: 0; border: 1px solid transparent; color: var(--slate); background: transparent; }
.icon-button:hover { border-color: var(--line); color: var(--ink); background: var(--white); }
.notification-dot { position: absolute; top: 0.55rem; right: 0.55rem; width: 0.32rem; height: 0.32rem; border: 1px solid var(--white); border-radius: 50%; background: var(--orange); }
.topbar-avatar { width: 2.2rem; height: 2.2rem; padding: 0; border: 0; }
.topbar-avatar:hover, .topbar-avatar[aria-expanded="true"] { box-shadow: 0 0 0 0.2rem rgba(246, 184, 75, 0.2); }
.dashboard-content { width: min(100%, 90rem); margin: 0 auto; padding: 2.45rem 2.5rem 2rem; }
.page-view { min-height: calc(100vh - 4.25rem); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.eyebrow-row { display: flex; align-items: center; gap: 0.7rem; }
.heading-line { width: 2rem; height: 1px; background: var(--line-strong); }
.muted-label { color: var(--muted); font-size: 0.66rem; }
.page-heading h1 { margin: 0.6rem 0 0.35rem; font-size: clamp(1.85rem, 3vw, 2.6rem); letter-spacing: -0.075em; line-height: 1.1; }
.page-heading h1 em { color: var(--muted); font-size: 0.58em; font-style: normal; font-weight: 500; letter-spacing: -0.04em; }
.heading-mark { color: var(--orange); font-family: "DM Mono", monospace; font-weight: 400; }
.page-heading p { margin: 0; color: var(--slate); font-size: 0.78rem; }
.filter-bar { display: flex; min-height: 4.15rem; align-items: center; gap: 0.6rem; margin-top: 2.2rem; padding: 0.7rem 0.8rem; border: 1px solid var(--line); background: var(--white); }
.filter-label { display: flex; align-items: center; gap: 0.45rem; padding: 0 0.75rem 0 0.45rem; border-right: 1px solid var(--line); color: var(--ink); font-size: 0.7rem; font-weight: 800; white-space: nowrap; }
.filter-label i { color: var(--orange); }
.select-field { position: relative; display: grid; min-width: 10rem; flex: 1; gap: 0.12rem; padding: 0 0.8rem; border-right: 1px solid var(--line); }
.select-field span { color: var(--muted); font-size: 0.59rem; }
.select-field select { width: calc(100% - 0.8rem); appearance: none; border: 0; outline: 0; color: var(--ink-soft); background: transparent; font-size: 0.75rem; font-weight: 700; }
.select-field > i { position: absolute; right: 0.75rem; bottom: 0.22rem; width: 0.8rem; height: 0.8rem; color: var(--slate); pointer-events: none; }
.select-field--small { min-width: 6rem; flex: 0 1 7.5rem; }
.filter-reset { min-height: 2.5rem; padding: 0 0.65rem; color: var(--slate); white-space: nowrap; }
.filter-reset:hover { color: var(--orange-dark); }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem; margin-top: 1rem; }
.stat-card { min-height: 10.3rem; display: flex; flex-direction: column; justify-content: space-between; padding: 1.1rem 1.1rem 1rem; border: 1px solid var(--line); background: var(--white); }
.stat-card--primary { border-top: 0.2rem solid var(--orange); padding-top: 0.9rem; }
.stat-card--dark { border-color: var(--ink); color: var(--white); background: var(--ink); }
.stat-card__top, .stat-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.stat-card__top { color: var(--slate); font-size: 0.69rem; font-weight: 700; }
.stat-card--dark .stat-card__top, .stat-card--dark .stat-card__foot { color: #9baab2; }
.stat-card__top > i { color: var(--muted); }
.stat-card strong { margin-top: 0.65rem; color: var(--ink); font-family: "DM Mono", monospace; font-size: clamp(1.35rem, 2.5vw, 1.8rem); font-weight: 500; letter-spacing: -0.06em; white-space: nowrap; }
.stat-card--dark strong { color: var(--white); }
.stat-card strong small { font-family: "Manrope", sans-serif; font-size: 0.62rem; font-weight: 600; letter-spacing: 0; }
.stat-card__foot { margin-top: 0.5rem; color: var(--muted); font-size: 0.63rem; }
.trend-up { display: inline-flex; align-items: center; gap: 0.15rem; color: var(--green); font-weight: 700; }
.trend-up i { width: 0.8rem !important; height: 0.8rem !important; }
.tag { display: inline-flex; align-items: center; min-height: 1.35rem; padding: 0 0.4rem; font-family: "DM Mono", monospace; font-size: 0.57rem; font-weight: 500; }
.tag--orange { color: var(--orange-dark); background: #fff1e7; }
.tag--light { color: var(--amber); background: rgba(246, 184, 75, 0.13); }
.light-link { color: var(--amber); }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 0.9fr); gap: 0.85rem; margin-top: 0.85rem; }
.panel { border: 1px solid var(--line); background: var(--white); }
.chart-panel, .breakdown-panel, .invoice-panel { padding: 1.35rem 1.45rem; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.panel-heading h2 { margin: 0.3rem 0 0; font-size: 1rem; letter-spacing: -0.04em; }
.legend { display: flex; align-items: center; gap: 0.35rem; color: var(--slate); font-size: 0.6rem; white-space: nowrap; }
.legend-dot { width: 0.42rem; height: 0.42rem; margin-left: 0.4rem; border-radius: 50%; }
.legend-dot--orange { background: var(--orange); }
.legend-dot--pale { background: #f9d7a5; }
.chart-summary { display: flex; align-items: baseline; gap: 0.7rem; margin: 1.2rem 0 0.7rem 3rem; }
.chart-summary strong, .breakdown-total strong { font-family: "DM Mono", monospace; font-size: 1.4rem; font-weight: 500; letter-spacing: -0.06em; }
.chart-summary__trend { display: inline-flex; align-items: center; gap: 0.15rem; color: var(--green); font-family: "DM Mono", monospace; font-size: 0.63rem; }
.chart-summary__trend i { width: 0.8rem; height: 0.8rem; }
.chart-summary__trend small { color: var(--muted); font-family: "Manrope", sans-serif; font-size: 0.59rem; }
.bar-chart { display: flex; min-height: 15.5rem; padding-top: 0.5rem; }
.chart-y-axis { display: flex; width: 2.5rem; flex-direction: column; justify-content: space-between; padding: 0 0 1.8rem; color: var(--muted); font-family: "DM Mono", monospace; font-size: 0.58rem; text-align: right; }
.chart-plot { position: relative; display: flex; flex: 1; min-width: 0; }
.chart-grid-lines { position: absolute; inset: 0 0 1.8rem; display: flex; flex-direction: column; justify-content: space-between; }
.chart-grid-lines i { display: block; width: 100%; height: 1px; background: #e9eef0; }
.chart-bars { position: relative; z-index: 1; display: grid; width: 100%; height: calc(100% - 1.8rem); grid-template-columns: repeat(6, 1fr); align-items: end; justify-items: center; gap: 0.6rem; padding: 0 0.4rem; }
.chart-bar-group { display: flex; width: 100%; height: 100%; align-items: end; justify-content: center; gap: 0.2rem; position: relative; }
.chart-bar-group span { position: absolute; bottom: -1.7rem; color: var(--muted); font-family: "DM Mono", monospace; font-size: 0.59rem; }
.chart-bar { width: min(1.2rem, 38%); min-height: 0.4rem; transition: height 500ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.chart-bar--pale { background: #f9d7a5; }
.chart-bar--solid { background: var(--orange); }
.chart-bar-group.is-active .chart-bar--solid { background: var(--ink); }
.chart-bar-group.is-active span { color: var(--ink); font-weight: 700; }
.chart-note { display: flex; align-items: center; gap: 0.45rem; margin-top: 1.9rem; padding-top: 0.75rem; border-top: 1px solid var(--line); color: var(--slate); font-size: 0.65rem; }
.pulse-line { width: 1.25rem; height: 0.35rem; border-top: 2px solid var(--teal); border-radius: 50%; transform: skew(-25deg); }
.breakdown-panel { display: flex; min-height: 23.1rem; flex-direction: column; }
.breakdown-total { display: flex; align-items: baseline; gap: 0.45rem; margin: 1.35rem 0 1.2rem; }
.breakdown-total span { color: var(--muted); font-size: 0.65rem; }
.breakdown-list { display: grid; gap: 1.1rem; }
.breakdown-item { display: grid; gap: 0.55rem; }
.breakdown-item__label { display: flex; align-items: center; gap: 0.55rem; }
.breakdown-item__label > span:nth-child(2) { display: grid; min-width: 0; flex: 1; gap: 0.08rem; }
.breakdown-item__label strong { overflow: hidden; color: var(--ink-soft); font-size: 0.7rem; text-overflow: ellipsis; white-space: nowrap; }
.breakdown-item__label small { color: var(--muted); font-size: 0.6rem; }
.breakdown-item__label b { color: var(--slate); font-family: "DM Mono", monospace; font-size: 0.67rem; font-weight: 500; }
.service-icon { display: grid; width: 1.8rem; height: 1.8rem; flex: 0 0 auto; place-items: center; border-radius: 0.2rem; font-family: "DM Mono", monospace; font-size: 0.65rem; font-weight: 500; }
.service-icon--azure { color: var(--blue); background: #ebf2ff; }
.service-icon--aws { color: #b56b09; background: #fff3df; font-size: 0.48rem; }
.service-icon--gcp { color: var(--teal); background: #e5f6f2; }
.progress { height: 0.35rem; overflow: hidden; background: #edf0f2; }
.progress i { display: block; height: 100%; }
.panel-link { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--ink-soft); }
.panel-link i { width: 0.82rem; height: 0.82rem; }

.invoice-panel { margin-top: 0.85rem; }
.invoice-page-filter { margin-top: 2rem; }
.invoice-page-panel { margin-top: 1rem; }
.invoice-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; margin-top: 2rem; }
.invoice-summary-card { min-height: 8.5rem; display: flex; flex-direction: column; justify-content: space-between; padding: 1rem 1.1rem; border: 1px solid var(--line); background: var(--white); }
.invoice-summary-card strong { color: var(--ink); font-family: "DM Mono", monospace; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.06em; }
.invoice-summary-card > div { color: var(--slate); font-size: 0.64rem; }
.invoice-summary-card--dark { border-color: var(--ink); color: var(--white); background: var(--ink); }
.invoice-summary-card--dark strong { color: var(--white); }
.invoice-summary-card--dark > div { color: #aab7be; }
.summary-dot { display: inline-block; width: 0.4rem; height: 0.4rem; margin-right: 0.2rem; border-radius: 50%; }
.summary-dot--green { background: var(--green); }
.summary-dot--orange { background: var(--orange); }

.account-health-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; margin-top: 2rem; }
.health-card { display: flex; align-items: center; gap: 0.8rem; min-height: 5.2rem; padding: 0.9rem 1rem; border: 1px solid var(--line); background: var(--white); }
.health-card__icon { display: grid; width: 2.25rem; height: 2.25rem; flex: 0 0 auto; place-items: center; }
.health-card__icon i { width: 1.05rem; height: 1.05rem; }
.health-card__icon--green { color: var(--green); background: #e8f6ef; }
.health-card__icon--blue { color: var(--blue); background: #ebf2ff; }
.health-card__icon--orange { color: var(--orange-dark); background: #fff1e7; }
.health-card div:last-child { display: grid; gap: 0.1rem; }
.health-card strong { color: var(--ink); font-family: "DM Mono", monospace; font-size: 1rem; font-weight: 500; }
.health-card span { color: var(--slate); font-size: 0.64rem; }
.account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; margin-top: 0.85rem; }
.account-grid--single { grid-template-columns: minmax(20rem, 40rem); }
.account-card { display: flex; min-height: 25rem; flex-direction: column; padding: 1.2rem; }
.account-card--azure { border-top: 0.2rem solid var(--blue); }
.account-card--aws { border-top: 0.2rem solid var(--amber); }
.account-card--gcp { border-top: 0.2rem solid var(--teal); }
.account-card__top, .account-card__title, .account-progress > div, .account-meta > div { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.account-card__top { margin-bottom: 1.2rem; }
.status-pill--connected { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--green); background: #e8f6ef; }
.status-pill--connected .online-dot { width: 0.32rem; height: 0.32rem; box-shadow: none; }
.account-card__title { align-items: flex-start; }
.account-card__title h2 { margin: 0.3rem 0 0; color: var(--ink); font-size: 1.1rem; letter-spacing: -0.04em; }
.account-card__amount { display: grid; gap: 0.25rem; margin-top: 1.5rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.account-card__amount span { color: var(--muted); font-size: 0.65rem; }
.account-card__amount strong { color: var(--ink); font-family: "DM Mono", monospace; font-size: 1.55rem; font-weight: 500; letter-spacing: -0.06em; }
.account-progress { display: grid; gap: 0.55rem; margin-top: 1.15rem; }
.account-progress > div:first-child { color: var(--muted); font-size: 0.62rem; }
.account-progress b { color: var(--ink-soft); font-family: "DM Mono", monospace; font-size: 0.64rem; font-weight: 500; }
.account-meta { display: grid; gap: 0.62rem; margin: 1.2rem 0 0; }
.account-meta dt { color: var(--muted); font-size: 0.6rem; }
.account-meta dd { margin: 0; color: var(--ink-soft); font-family: "DM Mono", monospace; font-size: 0.61rem; }
.account-card .panel-link { margin-top: auto; }
.account-table-panel { margin-top: 0.85rem; padding: 1.25rem 1.45rem; }
.permission-row { display: flex; align-items: center; gap: 0.7rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.avatar--small { width: 2.2rem; height: 2.2rem; }
.permission-row > div:nth-child(2) { display: grid; flex: 1; gap: 0.1rem; }
.permission-row strong { color: var(--ink); font-size: 0.72rem; }
.permission-row div span, .permission-date { color: var(--muted); font-size: 0.61rem; }
.permission-chip { padding: 0.3rem 0.45rem; color: var(--orange-dark); background: #fff1e7; font-size: 0.6rem; font-weight: 700; }

.notification-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.75fr); gap: 0.85rem; margin-top: 2rem; }
.notification-panel { padding: 1.25rem 1.45rem; }
.notification-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.notification-tabs { display: flex; align-items: center; gap: 0.35rem; }
.notification-tab { display: inline-flex; min-height: 2.4rem; align-items: center; gap: 0.3rem; padding: 0 0.7rem; border: 1px solid transparent; color: var(--muted); background: transparent; font-size: 0.68rem; font-weight: 700; }
.notification-tab b { min-width: 1.1rem; padding: 0.08rem 0.25rem; color: var(--slate); background: #eef1f3; font-family: "DM Mono", monospace; font-size: 0.55rem; font-weight: 500; }
.notification-tab:hover { color: var(--ink); background: var(--paper); }
.notification-tab.is-active { border-color: var(--line-strong); color: var(--ink); background: var(--paper); }
.notification-tab.is-active b { color: var(--orange-dark); background: #fff1e7; }
.notification-list { display: grid; }
.notification-item { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) 2.4rem; align-items: flex-start; gap: 0.75rem; padding: 1rem 0.15rem; border-bottom: 1px solid var(--line); }
.notification-item:last-child { border-bottom: 0; }
.notification-item.is-unread { margin-right: -0.3rem; margin-left: -0.3rem; padding-right: 0.45rem; padding-left: 0.45rem; background: #fffaf4; }
.notification-item__icon { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; }
.notification-item__icon i { width: 1.05rem; height: 1.05rem; }
.notification-item__icon--orange { color: var(--orange-dark); background: #fff1e7; }
.notification-item__icon--blue { color: var(--blue); background: #ebf2ff; }
.notification-item__icon--green { color: var(--green); background: #e8f6ef; }
.notification-item__icon--slate { color: var(--slate); background: #eef1f3; }
.notification-item__body { min-width: 0; }
.notification-item__heading { display: flex; align-items: center; gap: 0.45rem; }
.notification-item__heading strong { color: var(--ink); font-size: 0.75rem; }
.notification-item__body p { margin: 0.3rem 0 0.4rem; color: var(--slate); font-size: 0.68rem; line-height: 1.6; }
.notification-time { color: var(--muted); font-family: "DM Mono", monospace; font-size: 0.57rem; }
.notification-unread-dot { width: 0.38rem; height: 0.38rem; border-radius: 50%; background: var(--orange); }
.notification-read-action { align-self: center; min-width: 2.4rem; min-height: 2.4rem; border-color: transparent; }
.notification-read-action:hover { border-color: var(--line); }
.notification-side { display: grid; align-content: start; gap: 0.85rem; }
.attention-panel, .notification-help-panel { padding: 1.25rem 1.35rem; }
.attention-panel > .panel-heading > i { color: var(--orange); }
.attention-date { display: flex; align-items: center; gap: 0.7rem; margin: 1.4rem 0 0.8rem; }
.attention-date strong { color: var(--ink); font-family: "DM Mono", monospace; font-size: 2.4rem; font-weight: 500; letter-spacing: -0.08em; line-height: 1; }
.attention-date span { color: var(--orange-dark); font-family: "DM Mono", monospace; font-size: 0.58rem; font-weight: 500; line-height: 1.35; }
.attention-panel p { margin: 0; color: var(--slate); font-size: 0.68rem; line-height: 1.7; }
.attention-panel .panel-link { margin-top: 1.25rem; }
.notification-help-panel { color: var(--white); background: var(--ink); }
.notification-help-panel__icon { display: grid; width: 2.3rem; height: 2.3rem; margin-bottom: 1.1rem; place-items: center; color: var(--amber); background: rgba(246, 184, 75, 0.13); }
.notification-help-panel h2 { margin: 0.35rem 0 0.5rem; color: var(--white); font-size: 1rem; letter-spacing: -0.04em; }
.notification-help-panel p { margin: 0; color: #aab7be; font-size: 0.68rem; line-height: 1.65; }
.notification-help-panel .text-button { margin-top: 1.1rem; color: var(--amber); }

.help-search-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 2rem; padding: 1.3rem 1.45rem; color: var(--white); background: var(--ink); }
.help-search-copy { flex: 0 0 auto; }
.help-search-copy .overline { color: var(--amber); }
.help-search-copy h2 { margin: 0.35rem 0 0; color: var(--white); font-size: 1.1rem; letter-spacing: -0.04em; }
.help-search { display: flex; min-width: min(100%, 31rem); flex: 1; align-items: center; gap: 0.6rem; padding: 0.3rem 0.3rem 0.3rem 0.85rem; background: var(--white); }
.help-search > i { color: var(--muted); }
.help-search input { width: 100%; min-width: 0; height: 2.5rem; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 0.72rem; }
.help-search input::placeholder { color: #a8b2b8; }
.help-search .primary-button { min-height: 2.5rem; padding: 0.5rem 0.8rem; }
.help-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; margin-top: 0.85rem; }
.help-category-card { display: grid; grid-template-columns: 2.35rem minmax(0, 1fr) 1.2rem; align-items: center; gap: 0.7rem; min-height: 5.6rem; padding: 0.9rem; border: 1px solid var(--line); color: var(--ink); background: var(--white); text-align: left; }
.help-category-card:hover, .help-category-card.is-active { border-color: var(--orange); box-shadow: inset 0 0.15rem var(--orange); }
.help-category-card > span:nth-child(2) { display: grid; min-width: 0; gap: 0.2rem; }
.help-category-card strong { font-size: 0.72rem; }
.help-category-card small { overflow: hidden; color: var(--muted); font-size: 0.6rem; text-overflow: ellipsis; white-space: nowrap; }
.help-category-card > i { color: var(--muted); }
.help-category-icon { display: grid; width: 2.3rem; height: 2.3rem; place-items: center; }
.help-category-icon i { width: 1.05rem; height: 1.05rem; }
.help-category-icon--orange { color: var(--orange-dark); background: #fff1e7; }
.help-category-icon--blue { color: var(--blue); background: #ebf2ff; }
.help-category-icon--green { color: var(--green); background: #e8f6ef; }
.help-content-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.75fr); gap: 0.85rem; margin-top: 0.85rem; }
.faq-panel { padding: 1.25rem 1.45rem; }
.faq-list { margin-top: 1rem; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; min-height: 3.5rem; align-items: center; justify-content: space-between; gap: 1rem; color: var(--ink); font-size: 0.74rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: var(--muted); transition: transform 160ms ease; }
.faq-item[open] summary i { transform: rotate(180deg); }
.faq-item p { max-width: 65ch; margin: -0.15rem 2rem 1rem 0; color: var(--slate); font-size: 0.68rem; line-height: 1.7; }
.help-contact-card { display: flex; min-height: 17rem; flex-direction: column; padding: 1.35rem; color: var(--white); background: var(--ink); }
.help-contact-card__top { display: flex; align-items: center; justify-content: space-between; color: var(--amber); }
.help-contact-card__top > i { width: 1.2rem; height: 1.2rem; }
.help-contact-card h2 { margin: 2rem 0 0.55rem; color: var(--white); font-size: 1.1rem; letter-spacing: -0.04em; }
.help-contact-card > p { margin: 0; color: #aab7be; font-size: 0.68rem; line-height: 1.7; }
.support-contact { display: grid; gap: 0.15rem; margin: 1.2rem 0; padding: 0.8rem 0; border-top: 1px solid rgba(220, 228, 232, 0.16); border-bottom: 1px solid rgba(220, 228, 232, 0.16); }
.support-contact span { color: #82929b; font-size: 0.59rem; }
.support-contact strong { color: var(--white); font-size: 0.72rem; }
.support-contact small { color: var(--amber); font-size: 0.62rem; }
.help-contact-card .primary-button { margin-top: auto; }
.panel-heading--invoices { align-items: center; }
.panel-heading__actions { display: flex; align-items: center; gap: 0.9rem; }
.panel-heading__actions .text-button { color: var(--ink-soft); }
.invoice-table { margin-top: 1rem; overflow-x: auto; }
.invoice-row { display: grid; min-width: 46rem; grid-template-columns: 1.15fr 1fr 1.25fr 0.9fr 0.8fr 2.75rem; align-items: center; gap: 0.75rem; padding: 0.85rem 0.2rem; border-top: 1px solid var(--line); }
.invoice-row--header { padding-top: 0; border-top: 0; color: var(--muted); font-family: "DM Mono", monospace; font-size: 0.57rem; letter-spacing: 0.04em; }
.invoice-cell { color: var(--slate); font-size: 0.68rem; }
.invoice-cell strong { color: var(--ink); font-family: "DM Mono", monospace; font-size: 0.68rem; font-weight: 500; }
.invoice-cell small { display: block; margin-top: 0.12rem; color: var(--muted); font-size: 0.58rem; }
.status-pill { display: inline-flex; width: fit-content; min-height: 1.35rem; align-items: center; padding: 0 0.45rem; font-size: 0.59rem; font-weight: 700; }
.status-pill--paid { color: var(--green); background: #e8f6ef; }
.status-pill--pending { color: #b87510; background: #fff4df; }
.row-action { display: inline-grid; min-width: 2.4rem; min-height: 2.4rem; place-items: center; padding: 0; border: 1px solid var(--line); color: var(--slate); background: var(--white); }
.row-action:hover { border-color: var(--orange); color: var(--orange-dark); }
.row-action i { width: 0.85rem; height: 0.85rem; }
.dashboard-footnote { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin: 1.3rem 0 0; color: var(--muted); font-size: 0.59rem; text-align: center; }
.dashboard-footnote span { width: 0.22rem; height: 0.22rem; border-radius: 50%; background: var(--line-strong); }

.account-menu { position: fixed; z-index: 40; top: 4.9rem; right: 1.5rem; display: grid; width: 16rem; padding: 0.55rem; border: 1px solid var(--line); background: var(--white); box-shadow: 0 0.9rem 2.5rem rgba(24, 40, 52, 0.16); animation: menu-in 160ms ease-out; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-0.35rem); } to { opacity: 1; transform: translateY(0); } }
.account-menu__user { display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 0.55rem 0.7rem; }
.account-menu__user > div { display: grid; gap: 0.12rem; min-width: 0; }
.account-menu__user strong { color: var(--ink); font-size: 0.73rem; }
.account-menu__user small { overflow: hidden; color: var(--muted); font-size: 0.59rem; text-overflow: ellipsis; white-space: nowrap; }
.account-menu__divider { height: 1px; margin: 0 0.45rem 0.35rem; background: var(--line); }
.account-menu__item { display: flex; width: 100%; min-height: 2.75rem; align-items: center; gap: 0.6rem; padding: 0 0.55rem; border: 0; color: var(--ink-soft); background: transparent; font-size: 0.7rem; text-align: left; }
.account-menu__item:hover { background: var(--paper); color: var(--ink); }
.account-menu__item > i:first-child { color: var(--slate); }
.account-menu__item--danger { color: var(--red); }
.account-menu__item--danger > i:first-child { color: var(--red); }
.account-menu__arrow { width: 0.8rem !important; height: 0.8rem !important; margin-left: auto; }

.mobile-nav { display: none; }
.mobile-backdrop { display: none; }
.mobile-backdrop.is-visible { display: block; }
.drawer-backdrop { position: fixed; z-index: 15; inset: 0; background: rgba(15, 26, 34, 0.46); }
.detail-drawer { position: fixed; z-index: 30; top: 0; right: 0; display: flex; width: min(100%, 26rem); height: 100vh; flex-direction: column; overflow-y: auto; padding: 1.6rem; box-shadow: var(--shadow-drawer); background: var(--white); animation: drawer-in 220ms ease-out; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.detail-drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.detail-drawer__head h2 { margin: 0.35rem 0 0; font-family: "DM Mono", monospace; font-size: 1.2rem; font-weight: 500; letter-spacing: -0.05em; }
.drawer-status { display: flex; align-items: center; justify-content: space-between; margin-top: 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); color: var(--muted); font-family: "DM Mono", monospace; font-size: 0.6rem; }
.drawer-amount { display: grid; gap: 0.2rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.drawer-amount span, .drawer-amount small { color: var(--muted); font-size: 0.66rem; }
.drawer-amount strong { margin: 0.25rem 0; color: var(--ink); font-family: "DM Mono", monospace; font-size: 2rem; font-weight: 500; letter-spacing: -0.08em; }
.drawer-block { display: grid; gap: 0.8rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.drawer-block dl { display: grid; gap: 0.75rem; margin: 0; }
.drawer-block dl > div, .drawer-services > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.drawer-block dt, .drawer-services span { color: var(--muted); font-size: 0.66rem; }
.drawer-block dd, .drawer-services strong { margin: 0; color: var(--ink-soft); font-size: 0.69rem; font-weight: 700; text-align: right; }
.drawer-services { display: grid; gap: 0.8rem; }
.detail-drawer > .primary-button { margin-top: 1.5rem; }
.drawer-help { margin: auto 0 0; padding-top: 1.2rem; color: var(--muted); font-size: 0.63rem; line-height: 1.6; }
.toast { position: fixed; z-index: 50; right: 1.25rem; bottom: 1.25rem; display: flex; align-items: center; gap: 0.55rem; min-height: 2.9rem; padding: 0.7rem 0.9rem; border: 1px solid #bfe2d4; color: #197354; background: #effaf5; box-shadow: var(--shadow-sm); font-size: 0.7rem; transform: translateY(1rem); opacity: 0; pointer-events: none; transition: opacity 160ms ease, transform 160ms ease; }
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast i { width: 1rem; height: 1rem; }

@media (min-width: 48rem) {
  .login-screen { grid-template-columns: minmax(0, 1fr) minmax(25rem, 0.72fr); }
  .login-visual { min-height: 100vh; padding: 2.25rem 3.5rem 1.8rem; }
  .login-panel { padding: 2.25rem 3.5rem 1.8rem; }
  .login-panel .provider-signature { position: absolute; right: 3.5rem; bottom: 1.8rem; left: 3.5rem; }
}

@media (min-width: 64rem) {
  .login-visual { padding-right: 5.5rem; padding-left: 5.5rem; }
  .login-panel { padding-right: 5.5rem; padding-left: 5.5rem; }
  .login-panel .provider-signature { right: 5.5rem; left: 5.5rem; }
}

@media (max-width: 75rem) {
  :root { --sidebar-width: 14rem; }
  .topbar, .dashboard-content { padding-right: 1.7rem; padding-left: 1.7rem; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { min-height: 9.1rem; }
  .account-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 63.99rem) {
  .overview-grid { grid-template-columns: 1fr; }
  .breakdown-panel { min-height: auto; }
  .breakdown-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panel-link { margin-top: 1.3rem; }
  .account-grid { grid-template-columns: 1fr; }
  .notification-layout, .help-content-grid { grid-template-columns: 1fr; }
  .notification-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 47.99rem) {
  .mobile-only { display: inline-grid !important; }
  .login-screen { display: block; }
  .login-visual { min-height: auto; padding: 1.4rem 1.2rem 1.6rem; }
  .login-visual__body { padding: 2.8rem 0 2.2rem; }
  .client-lockup--hero { margin-bottom: 2.3rem; }
  .login-visual h1 { font-size: clamp(2.25rem, 12vw, 3.5rem); }
  .login-lede { margin-top: 1rem; font-size: 0.78rem; }
  .login-metrics { gap: 1.4rem; margin-top: 1.5rem; }
  .login-visual__footer { display: none; }
  .login-panel { min-height: auto; padding: 1.2rem; }
  .login-form-wrap { padding: 3.1rem 0 3rem; }
  .provider-signature { justify-content: flex-start; padding-bottom: 0.3rem; }
  .product-lockup { gap: 0.45rem; }
  .product-provider { gap: 0.2rem; padding-left: 0.45rem; }
  .product-provider img { width: 3rem; }
  .product-provider span { font-size: 0.48rem; }
  .provider-signature__copy { text-align: left; }
  .dashboard-shell { display: block; padding-bottom: 4.85rem; }
  .sidebar { left: 0; width: min(17rem, calc(100vw - 3rem)); transform: translateX(-102%); transition: transform 200ms ease; }
  .sidebar.is-open { transform: translateX(0); }
  .dashboard-main { width: 100%; margin-left: 0; }
  .topbar { height: 3.8rem; padding: 0 0.9rem; }
  .breadcrumb { font-size: 0.66rem; }
  .breadcrumb span { display: none; }
  .sync-state { display: none; }
  .topbar__actions { gap: 0.25rem; }
  .topbar-avatar { width: 2rem; height: 2rem; }
  .account-menu { top: 4.35rem; right: 0.7rem; width: min(16rem, calc(100vw - 1.4rem)); }
  .dashboard-content { padding: 1.45rem 0.9rem 1.2rem; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 1.2rem; }
  .page-heading h1 { font-size: 1.9rem; }
  .page-heading p { font-size: 0.72rem; }
  .page-heading .secondary-button { width: 100%; }
  .page-view { min-height: calc(100vh - 3.8rem); }
  .filter-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 0.35rem; }
  .filter-label { grid-column: 1 / -1; min-height: 2.2rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .select-field, .select-field--small { min-width: 0; min-height: 3.5rem; padding: 0.5rem 0.65rem; border-right: 0; }
  .select-field:nth-of-type(2) { border-left: 1px solid var(--line); }
  .select-field--small { border-top: 1px solid var(--line); border-left: 0 !important; }
  .filter-reset { min-height: 2.5rem; justify-content: flex-end; padding-right: 0.75rem; border-top: 1px solid var(--line); }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.55rem; }
  .stat-card { min-height: 8.9rem; padding: 0.85rem; }
  .stat-card strong { font-size: 1.25rem; }
  .stat-card__top { font-size: 0.62rem; }
  .stat-card__foot { display: grid; align-items: end; gap: 0.2rem; font-size: 0.58rem; }
  .overview-grid { gap: 0.55rem; margin-top: 0.55rem; }
  .invoice-summary-grid, .account-health-grid { grid-template-columns: 1fr; gap: 0.55rem; margin-top: 1.4rem; }
  .invoice-summary-card { min-height: 7.5rem; }
  .invoice-page-filter { margin-top: 1.4rem; }
  .account-grid { grid-template-columns: 1fr; gap: 0.55rem; }
  .account-card { min-height: 23rem; }
  .account-table-panel { padding: 1.05rem; }
  .permission-row { align-items: flex-start; flex-wrap: wrap; }
  .permission-row > div:nth-child(2) { min-width: 8rem; }
  .permission-chip { margin-left: 2.9rem; }
  .permission-date { width: 100%; margin-left: 2.9rem; }
  .notification-layout, .help-content-grid { gap: 0.55rem; margin-top: 1.4rem; }
  .notification-panel, .faq-panel { padding: 1.05rem; }
  .notification-toolbar { align-items: flex-start; }
  .notification-tabs { flex-wrap: wrap; gap: 0.15rem; }
  .notification-tab { min-height: 2.2rem; padding: 0 0.5rem; }
  .notification-item { grid-template-columns: 2.2rem minmax(0, 1fr) 2.2rem; gap: 0.55rem; }
  .notification-side { grid-template-columns: 1fr; gap: 0.55rem; }
  .help-search-panel { align-items: stretch; flex-direction: column; gap: 1rem; margin-top: 1.4rem; padding: 1.1rem; }
  .help-search { min-width: 0; width: 100%; }
  .help-search .primary-button span { display: none; }
  .help-search .primary-button { min-width: 2.75rem; }
  .help-category-grid { grid-template-columns: 1fr; gap: 0.55rem; margin-top: 0.55rem; }
  .help-category-card { min-height: 4.8rem; }
  .help-contact-card { min-height: 19rem; }
  .chart-panel, .breakdown-panel, .invoice-panel { padding: 1.05rem; }
  .panel-heading { gap: 0.5rem; }
  .panel-heading h2 { font-size: 0.9rem; }
  .legend { display: none; }
  .chart-summary { margin-left: 2.35rem; }
  .chart-summary strong { font-size: 1.2rem; }
  .chart-summary__trend small { display: none; }
  .bar-chart { min-height: 13.2rem; }
  .chart-y-axis { width: 2rem; }
  .chart-bars { gap: 0.2rem; padding: 0 0.15rem; }
  .chart-bar { width: min(0.85rem, 38%); }
  .chart-note { font-size: 0.6rem; }
  .breakdown-list { grid-template-columns: 1fr; gap: 0.85rem; }
  .breakdown-total { margin: 1rem 0; }
  .invoice-row { min-width: 0; grid-template-columns: 1.1fr 0.9fr; gap: 0.5rem 0.8rem; padding: 1rem 0.1rem; }
  .invoice-row--header { display: none; }
  .invoice-cell { display: grid; gap: 0.14rem; font-size: 0.65rem; }
  .invoice-cell::before { color: var(--muted); content: attr(data-label); font-family: "DM Mono", monospace; font-size: 0.52rem; text-transform: uppercase; }
  .invoice-cell:nth-child(4), .invoice-cell:nth-child(5) { align-items: end; text-align: right; }
  .invoice-cell:nth-child(6) { grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: center; }
  .invoice-cell:nth-child(6)::before { display: none; }
  .panel-heading--invoices { align-items: flex-start; }
  .panel-heading__actions .text-button { font-size: 0.65rem; }
  .dashboard-footnote { display: block; line-height: 1.7; }
  .dashboard-footnote span { display: inline-block; margin: 0 0.4rem; }
  .mobile-nav { position: fixed; z-index: 12; right: 0; bottom: 0; left: 0; display: grid; height: 4.35rem; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: var(--white); box-shadow: 0 -0.35rem 1.2rem rgba(31, 50, 63, 0.06); }
  .mobile-nav button { display: grid; min-height: 4.35rem; place-items: center; align-content: center; gap: 0.18rem; padding: 0.45rem 0.2rem; border: 0; color: var(--muted); background: transparent; font-size: 0.58rem; }
  .mobile-nav button i { width: 1.05rem; height: 1.05rem; }
  .mobile-nav button.is-active { color: var(--orange-dark); }
  .mobile-nav button.is-active i { color: var(--orange); }
  .detail-drawer { width: min(100%, 22rem); padding: 1.2rem; }
  .toast { right: 0.8rem; bottom: 5.1rem; left: 0.8rem; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@page { size: A4; margin: 14mm; }

@media print {
  html, body { min-height: 0; background: #fff; }
  body { overflow: visible !important; }
  .app-root, .dashboard-shell { display: block !important; min-height: 0; background: #fff; }
  .app-root > :not(.dashboard-shell),
  .dashboard-shell > :not(.detail-drawer) { display: none !important; }
  .detail-drawer {
    position: static;
    display: block !important;
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    box-shadow: none;
    animation: none;
  }
  .detail-drawer__head .icon-button,
  .detail-drawer > .primary-button { display: none !important; }
  .drawer-amount, .drawer-block { break-inside: avoid; page-break-inside: avoid; }
  .drawer-help { margin-bottom: 0; }
}
