@font-face {
  font-family: Schibsted;
  src: url("./assets/schibsted-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --rail: #111;
  --canvas: #191919;
  --surface: #242424;
  --raised: #2d2d2d;
  --hover: #303030;
  --ink: #f1f1f1;
  --muted: #aaa;
  --line: #373737;
  --button: #f0f0f0;
  --button-ink: #171717;
  --shadow: 0 24px 100px #0005;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font:
    14px/1.5 Schibsted,
    system-ui,
    sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --rail: #f2f2f2;
  --canvas: #fff;
  --surface: #f4f4f4;
  --raised: #eaeaea;
  --hover: #e6e6e6;
  --ink: #1a1a1a;
  --muted: #626262;
  --line: #e0e0e0;
  --button: #1c1c1c;
  --button-ink: #fff;
  --shadow: 0 24px 100px #0002;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--rail);
  color: var(--ink);
}
html {
  scrollbar-width: none;
}
body::-webkit-scrollbar {
  display: none;
}
[hidden] {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
a {
  color: inherit;
}
button,
input,
select,
textarea,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
button svg,
.icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.6;
  flex-shrink: 0;
  pointer-events: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -1.05px;
  line-height: 1.23;
  font-weight: 600;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.45px;
  font-weight: 550;
  line-height: 1.35;
}
h3 {
  font-size: 14px;
  font-weight: 550;
}
p {
  line-height: 1.75;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.tiny {
  font-size: 11px;
}
.grow {
  flex: 1;
  min-width: 0;
}
.row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.wrap {
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 18px;
}
.spacer {
  flex: 1;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  padding: 12px 20px;
  z-index: 100;
  background: var(--button);
  color: var(--button-ink);
  border-radius: 99px;
}
.skip-link:focus {
  top: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 11px 19px;
  border-radius: 99px;
  white-space: nowrap;
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  transition:
    background 0.18s,
    transform 0.18s var(--ease);
}
.btn:hover:not(:disabled) {
  background: var(--hover);
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn.primary {
  background: var(--button);
  color: var(--button-ink);
}
.btn.primary:hover:not(:disabled) {
  background: var(--button);
  opacity: 0.86;
}
.btn.ghost {
  background: none;
}
.btn.ghost:hover {
  background: var(--surface);
}
.btn.small {
  min-height: 35px;
  padding: 8px 13px;
  font-size: 11px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  transition: background 0.18s;
}
.icon-btn:hover {
  background: var(--hover);
}
.pill,
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--raised);
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.pill svg,
.status svg {
  width: 12px;
  height: 12px;
}
.status[data-state="suspended"],
.status[data-state="reconciliation_required"] {
  outline: 1px dashed var(--muted);
  outline-offset: -1px;
}
.status[data-state="active"],
.status[data-state="settled"] {
  color: var(--ink);
}
.shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  padding: 29px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  background: var(--rail);
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  text-decoration: none;
}
.brand img {
  width: 30px;
  height: 34px;
  object-fit: contain;
}
.brand strong {
  font-size: 26px;
  letter-spacing: -1.2px;
  font-weight: 600;
}
.brand span {
  font-size: 10px;
  color: var(--muted);
  margin-left: 4px;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  padding: 13px 17px;
  border-radius: 99px;
  color: var(--muted);
  font-size: 13px;
  transition:
    background 0.2s,
    color 0.2s;
}
.nav button:hover {
  background: var(--surface);
  color: var(--ink);
}
.nav button.active {
  background: var(--button);
  color: var(--button-ink);
}
.sidebar-note {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  padding: 0 17px;
  max-width: 194px;
}
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 12px;
}
.owner {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
}
.owner .avatar {
  width: 31px;
  height: 31px;
  font-size: 10px;
}
.owner strong {
  font-size: 12px;
  display: block;
  max-width: 144px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.owner small {
  font-size: 10px;
  color: var(--muted);
}
.sidebar-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}
.main {
  grid-column: 2;
  min-width: 0;
  margin: 9px 9px 9px 0;
  border-radius: 27px;
  background: var(--canvas);
  min-height: calc(100dvh - 18px);
  overflow: hidden;
}
.topbar {
  height: 77px;
  padding: 0 35px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-title {
  font-size: 12px;
  font-weight: 500;
}
.topbar .pill {
  margin-left: auto;
}
.menu-toggle {
  display: none;
}
.page {
  max-width: 1440px;
  margin: auto;
  padding: 22px 46px 48px;
  animation: page-in 0.24s var(--ease);
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 8px 0 32px;
}
.page-heading p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}
.page-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.surface {
  background: var(--surface);
  border-radius: 24px;
  padding: 26px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 33px 0 18px;
}
.section-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.section-heading .btn {
  flex-shrink: 0;
}
.overview-top {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 20px;
}
.balance-card {
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 252px;
  position: relative;
  overflow: hidden;
}
.balance-card .balance-value {
  font-size: 54px;
  line-height: 1.2;
  letter-spacing: -2px;
  font-weight: 500;
  margin: 14px 0 9px;
  font-variant-numeric: tabular-nums;
}
.balance-card .balance-title {
  font-size: 12px;
  color: var(--muted);
}
.balance-card .balance-foot {
  display: flex;
  gap: 30px;
  margin-top: auto;
  padding-top: 25px;
  width: 100%;
  align-items: end;
}
.balance-foot strong {
  display: block;
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.balance-foot span {
  font-size: 10px;
  color: var(--muted);
}
.balance-foot .btn span {
  color: inherit;
}
.balance-card > .icon {
  position: absolute;
  right: 29px;
  top: 29px;
  width: 21px;
  height: 21px;
  color: var(--muted);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.metric {
  padding: 23px 25px;
  border-radius: 24px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
  min-height: 118px;
}
.metric strong {
  font-size: 31px;
  letter-spacing: -0.8px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.metric span {
  color: var(--muted);
  font-size: 11px;
}
.chart-card {
  padding: 27px 28px;
}
.chart-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 158px;
  margin-top: 27px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.chart-bar {
  flex: 1;
  display: flex;
  align-items: flex-end;
  height: 100%;
  min-width: 4px;
}
.chart-bar > span {
  display: block;
  background: var(--ink);
  opacity: 0.65;
  border-radius: 6px 6px 2px 2px;
  width: 100%;
  min-height: 2px;
  animation: bar-in 0.5s var(--ease);
  transform-origin: bottom;
}
.chart-bar:hover > span {
  opacity: 1;
}
.chart-caption {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 12px;
}
.chart-empty {
  display: flex;
  gap: 18px;
  align-items: center;
  min-height: 174px;
}
.chart-empty > .icon {
  width: 42px;
  height: 42px;
  color: var(--muted);
}
.chart-empty h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.chart-empty p {
  font-size: 12px;
  color: var(--muted);
}
.table-wrap {
  position: relative;
  max-width: 100%;
  overflow: auto;
  border-radius: 24px;
  background: var(--surface);
  scrollbar-width: thin;
  scrollbar-color: var(--raised) transparent;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 710px;
  white-space: nowrap;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  padding: 18px 22px;
}
td {
  padding: 17px 22px;
  border-top: 1px solid var(--line);
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}
td small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
td strong {
  font-weight: 500;
}
td .row {
  gap: 10px;
}
td.numeric,
th.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
td .btn {
  margin: -5px -8px;
}
.table-scroll-hint {
  font-size: 10px;
  color: var(--muted);
  margin: 10px 3px 0;
  display: none;
}
.record-note {
  max-width: 330px;
  white-space: normal;
}
.empty {
  border-radius: 24px;
  background: var(--surface);
  padding: 46px 30px;
  min-height: 255px;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  gap: 12px;
}
.empty > .icon {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
  color: var(--muted);
}
.empty h2 {
  font-size: 21px;
}
.empty p {
  max-width: 400px;
  color: var(--muted);
  font-size: 13px;
}
.empty .btn {
  margin-top: 8px;
}
.empty.inline {
  min-height: 150px;
  padding: 30px;
}
.empty.error {
  min-height: 320px;
}
.page-loading {
  min-height: 550px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
}
.page-loading img {
  width: 60px;
  height: 66px;
  object-fit: contain;
  animation: breathe 2s ease-in-out infinite;
}
.page-loading h2 {
  color: var(--ink);
  font-size: 20px;
}
.loader-line {
  width: 75px;
  height: 3px;
  border-radius: 99px;
  background: var(--surface);
  overflow: hidden;
  margin-top: 6px;
}
.loader-line:after {
  content: "";
  display: block;
  width: 50%;
  height: 100%;
  background: var(--muted);
  border-radius: 99px;
  animation: loading 1.3s ease-in-out infinite;
}
.filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 25px;
}
.filters .field {
  min-width: 145px;
  flex: 1;
}
.filters .field:first-child {
  flex: 1.7;
}
.filters > .btn {
  margin-bottom: 1px;
}
.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.field > span,
.field > label {
  font-size: 12px;
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--surface);
  padding: 13px 15px;
  outline: none;
  font-size: 13px;
}
.field textarea {
  resize: vertical;
  min-height: 96px;
}
.field small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.dialog .field input,
.dialog .field select,
.dialog .field textarea,
.auth .field input {
  background: var(--raised);
}
.search-field {
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 460px;
  background: var(--surface);
  padding: 0 17px;
  border-radius: 99px;
  min-height: 45px;
}
.search-field .icon {
  color: var(--muted);
  width: 17px;
  height: 17px;
}
.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 0;
  outline: none;
  font-size: 12px;
}
.company-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.company-tools > .search-field {
  flex: 1;
}
.segmented {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.segmented button {
  padding: 9px 14px;
  border-radius: 99px;
  font-size: 11px;
  color: var(--muted);
}
.segmented button.active {
  background: var(--button);
  color: var(--button-ink);
}
.company-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.company-card {
  border-radius: 24px;
  background: var(--surface);
  padding: 25px;
  display: grid;
  gap: 24px;
  transition:
    background 0.2s,
    transform 0.2s var(--ease);
}
.company-card:hover {
  background: var(--hover);
  transform: translateY(-2px);
}
.company-card h2 {
  font-size: 18px;
  overflow-wrap: anywhere;
}
.company-card .company-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.company-card .row {
  flex-wrap: wrap;
}
.company-card .grow {
  min-width: 110px;
}
.company-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}
.company-card-foot strong {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.company-card-foot small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--raised);
  font-size: 12px;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.company-identity {
  display: flex;
  gap: 18px;
  align-items: center;
}
.company-identity .avatar {
  width: 52px;
  height: 52px;
  font-size: 15px;
}
.company-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.company-header h1 {
  overflow-wrap: anywhere;
}
.company-header p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.company-balances {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.company-balances .metric {
  min-height: 110px;
}
.company-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 25px 0 22px;
}
.company-tabs button {
  font-size: 12px;
  padding: 10px 17px;
  border-radius: 99px;
  color: var(--muted);
}
.company-tabs button.active {
  color: var(--button-ink);
  background: var(--button);
}
.detail-info {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.pagination span {
  font-size: 11px;
  color: var(--muted);
}
.usage-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.usage-metrics .metric {
  min-height: 112px;
}
.back-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  padding: 0;
  margin-bottom: 25px;
}
.back-link:hover {
  color: var(--ink);
}
.auth {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 90px;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  padding: 70px 35px;
}
.auth-welcome {
  max-width: 440px;
}
.auth-welcome > img {
  width: 100px;
  height: 112px;
  object-fit: contain;
  margin-bottom: 30px;
}
.auth-welcome h1 {
  font-size: 46px;
  font-weight: 500;
  letter-spacing: -1.8px;
  line-height: 1.18;
}
.auth-welcome > p {
  color: var(--muted);
  margin-top: 24px;
  font-size: 14px;
  max-width: 360px;
}
.auth-welcome .pill {
  margin-top: 30px;
}
.auth-card {
  background: var(--canvas);
  border-radius: 28px;
  padding: 36px;
}
.auth-card h2 {
  font-size: 28px;
  letter-spacing: -0.8px;
}
.auth-card > .muted {
  font-size: 13px;
  margin: 10px 0 26px;
}
.auth-card form {
  display: grid;
  gap: 19px;
}
.auth-card form > .btn {
  margin-top: 8px;
  width: 100%;
  min-height: 47px;
}
.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 26px;
  font-size: 10px;
  color: var(--muted);
}
.auth-denied {
  margin: 0 auto;
  grid-column: 1/-1;
  max-width: 500px;
  text-align: center;
}
.auth-denied > img {
  width: 68px;
  height: 76px;
  object-fit: contain;
  margin-bottom: 20px;
}
.auth-denied h1 {
  font-size: 30px;
}
.auth-denied p {
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0 24px;
}
.notice {
  padding: 15px 17px;
  background: var(--raised);
  border-radius: 17px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
.notice > .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.notice.error {
  color: var(--ink);
  border: 1px solid var(--line);
}
.form-error {
  font-size: 12px;
  line-height: 1.7;
  padding: 13px 15px;
  border-radius: 15px;
  background: var(--raised);
  overflow-wrap: anywhere;
}
.form-error:empty {
  display: none;
}
.inline-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
}
.inline-check input {
  accent-color: var(--ink);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
}
.inline-check small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.dialog {
  margin: auto;
  padding: 0;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  border-radius: 28px;
  width: min(590px, calc(100% - 24px));
  max-height: calc(100dvh - 40px);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: dialog-in 0.2s var(--ease);
}
.dialog::backdrop {
  background: #0007;
  backdrop-filter: blur(7px);
}
.dialog > form,
.dialog > .dialog-frame {
  padding: 29px;
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 21px;
}
.dialog-head h2 {
  font-size: 24px;
  letter-spacing: -0.7px;
  padding-top: 4px;
}
.dialog-head .icon-btn {
  margin: -2px -7px 0 0;
}
.dialog-body {
  display: grid;
  gap: 18px;
  min-height: 0;
  overflow: auto;
  padding: 4px 4px 5px;
  margin: 0 -4px;
}
.dialog-body > p {
  font-size: 13px;
  color: var(--muted);
}
.dialog-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-top: 23px;
}
.dialog .segmented {
  background: var(--raised);
  padding: 4px;
  border-radius: 99px;
  width: fit-content;
  margin-bottom: 2px;
}
.review-company {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--raised);
  border-radius: 20px;
  padding: 19px;
}
.review-company strong {
  font-size: 15px;
}
.review-company small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.review-amount {
  background: var(--raised);
  border-radius: 20px;
  padding: 24px;
  display: grid;
  gap: 6px;
}
.review-amount strong {
  font-size: 41px;
  font-weight: 500;
  letter-spacing: -1px;
}
.review-amount small {
  color: var(--muted);
  font-size: 11px;
}
.review-reason {
  padding: 0 3px;
  overflow-wrap: anywhere;
}
.review-reason h3 {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.review-reason p {
  font-size: 13px;
  white-space: pre-wrap;
}
.success-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--raised);
  border-radius: 18px;
}
.success-mark .icon {
  width: 25px;
  height: 25px;
}
.toast {
  position: fixed;
  z-index: 90;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 13px 21px;
  border-radius: 99px;
  background: var(--button);
  color: var(--button-ink);
  box-shadow: var(--shadow);
  font-size: 12px;
  text-align: center;
  animation: toast-in 0.2s var(--ease);
  pointer-events: none;
}
.boot {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
}
.boot img {
  width: 55px;
  height: 60px;
  object-fit: contain;
}
.noscript {
  padding: 30px;
}
.nav-backdrop {
  display: none;
}
.app-error {
  max-width: 580px;
  margin: 15vh auto;
  padding: 35px;
}
.scope-note {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 22px;
}
@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes bar-in {
  from {
    transform: scaleY(0.05);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes breathe {
  50% {
    opacity: 0.5;
    transform: translateY(-3px);
  }
}
@keyframes loading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(200%);
  }
}
@keyframes toast-in {
  from {
    opacity: 0;
    bottom: 17px;
  }
  to {
    opacity: 1;
    bottom: 24px;
  }
}
@media (min-width: 1700px) {
  .shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .sidebar {
    width: 260px;
    padding: 35px 22px;
  }
  .page {
    padding-top: 32px;
  }
  .topbar {
    padding: 0 44px;
  }
}
@media (max-width: 1180px) {
  .page {
    padding: 20px 28px 40px;
  }
  .overview-top {
    grid-template-columns: 1fr;
  }
  .balance-card {
    min-height: 236px;
  }
  .metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .metric {
    padding: 20px;
  }
  .metric strong {
    font-size: 27px;
  }
  .company-grid {
    grid-template-columns: 1fr;
  }
  .usage-metrics,
  .company-balances {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .auth {
    gap: 50px;
    max-width: 1000px;
  }
  .auth-welcome h1 {
    font-size: 40px;
  }
  .company-card-foot strong {
    font-size: 28px;
  }
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 196px minmax(0, 1fr);
  }
  .sidebar {
    width: 196px;
    padding: 26px 13px;
  }
  .brand {
    padding-left: 12px;
    gap: 8px;
  }
  .brand span {
    display: none;
  }
  .owner strong {
    max-width: 114px;
  }
  .sidebar-note {
    padding: 0 14px;
    font-size: 10px;
  }
  .page {
    padding: 15px 25px 36px;
  }
  .topbar {
    padding: 0 23px;
    height: 65px;
  }
  .page-heading {
    flex-wrap: wrap;
    gap: 18px;
  }
  .page-actions {
    justify-content: flex-start;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric {
    min-height: 105px;
  }
  .company-tools {
    flex-wrap: wrap;
  }
  .company-tools .search-field {
    flex-basis: 100%;
    max-width: none;
  }
  .auth {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 24px;
    max-width: 500px;
  }
  .auth-welcome {
    text-align: center;
  }
  .auth-welcome > img {
    width: 62px;
    height: 67px;
    margin-bottom: 15px;
  }
  .auth-welcome h1 {
    font-size: 30px;
  }
  .auth-welcome h1 br {
    display: none;
  }
  .auth-welcome > p,
  .auth-welcome .pill {
    display: none;
  }
  .auth-card {
    padding: 30px;
  }
  .chart-card {
    padding: 24px;
  }
  .table-scroll-hint {
    display: block;
  }
  .filters .field {
    min-width: 135px;
  }
  .company-identity {
    align-items: flex-start;
  }
  .company-identity h1 {
    font-size: 25px;
  }
}
@media (max-width: 700px) {
  .brand {
    min-height: 44px;
  }
  .icon-btn {
    width: 44px;
    height: 44px;
  }
  .btn,
  .btn.small,
  .segmented button,
  .company-tabs button {
    min-height: 44px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-105%);
    width: 246px;
    transition: transform 0.24s var(--ease);
    box-shadow: var(--shadow);
  }
  .sidebar.open {
    transform: none;
  }
  .back-link,
  .search-field input {
    min-height: 44px;
  }
  .sidebar .brand span {
    display: block;
  }
  .sidebar-note {
    max-width: 200px;
  }
  .owner strong {
    max-width: 165px;
  }
  .main {
    margin: 5px;
    border-radius: 24px;
    min-height: calc(100dvh - 10px);
  }
  .topbar {
    height: 63px;
    padding: 0 18px;
    gap: 10px;
  }
  .menu-toggle {
    display: inline-grid;
  }
  .topbar .pill {
    font-size: 9px;
  }
  .page {
    padding: 17px 19px 34px;
  }
  .page-heading {
    margin-top: 2px;
    margin-bottom: 27px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .page-actions {
    gap: 7px;
  }
  .page-actions .btn {
    font-size: 11px;
    padding: 10px 15px;
  }
  .balance-card {
    padding: 25px;
    min-height: 230px;
  }
  .balance-card .balance-value {
    font-size: 48px;
  }
  .balance-card .balance-foot {
    gap: 24px;
    flex-wrap: wrap;
  }
  .metric-grid {
    gap: 12px;
  }
  .metric {
    border-radius: 22px;
    padding: 21px;
  }
  .metric strong {
    font-size: 29px;
  }
  .section-heading {
    margin-top: 28px;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .chart-card {
    padding: 24px 21px;
  }
  .chart {
    height: 134px;
    gap: 4px;
  }
  .chart-empty {
    align-items: flex-start;
    padding-top: 10px;
    min-height: 150px;
  }
  .chart-empty > .icon {
    width: 30px;
    height: 30px;
  }
  .company-card {
    padding: 23px;
    gap: 22px;
  }
  .company-card h2 {
    font-size: 18px;
  }
  .company-header .page-actions {
    width: 100%;
  }
  .company-balances {
    gap: 12px;
  }
  .company-balances .metric {
    min-height: 100px;
  }
  .company-tabs {
    gap: 4px;
  }
  .company-tabs button {
    font-size: 11px;
    padding: 9px 13px;
  }
  .company-identity .avatar {
    width: 44px;
    height: 44px;
    font-size: 13px;
  }
  .company-identity {
    gap: 14px;
  }
  .usage-metrics {
    gap: 11px;
  }
  .usage-metrics .metric {
    min-height: 96px;
  }
  .usage-metrics .metric strong {
    font-size: 26px;
  }
  .filters {
    gap: 12px;
  }
  .filters .field:first-child {
    flex-basis: 100%;
  }
  .filters .field {
    min-width: calc(50% - 12px);
  }
  .filters > .btn {
    width: 100%;
  }
  .empty {
    padding: 38px 23px;
    min-height: 265px;
  }
  .empty h2 {
    font-size: 20px;
  }
  .empty p {
    font-size: 12px;
  }
  .page-loading {
    min-height: 470px;
  }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 29;
    background: #0006;
    backdrop-filter: blur(4px);
  }
  .dialog > form,
  .dialog > .dialog-frame {
    padding: 24px;
  }
  .dialog-head h2 {
    font-size: 22px;
  }
  .dialog-actions .btn {
    flex: 1;
  }
  .dialog-body {
    gap: 17px;
  }
  .review-amount strong {
    font-size: 37px;
  }
  .auth {
    padding: 29px 18px;
    gap: 24px;
  }
  .auth-card {
    padding: 29px 24px;
    border-radius: 26px;
  }
  .auth-card h2 {
    font-size: 27px;
  }
  .auth-welcome h1 {
    font-size: 28px;
  }
  .auth-footer {
    gap: 10px;
  }
  .auth-denied {
    padding: 35px 25px;
  }
  .auth-denied h1 {
    font-size: 28px;
  }
  .toast {
    font-size: 11px;
    padding: 13px 18px;
  }
  .pagination {
    gap: 12px;
  }
  .pagination .btn {
    font-size: 11px;
  }
  .pagination > .row {
    gap: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .company-card:hover {
    transform: none;
  }
}
