:root {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background: #f6f6f7;
  --plus-lilac: #e2cced;
  --plus-lilac-soft: #f6eff9;
  --plus-ink: #17131a;
}

* { box-sizing: border-box; }
body { margin: 0; }

.brand-lockup {
  color: var(--plus-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  width: fit-content;
}
.brand-lockup img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 1px 0 rgb(0 0 0 / 10%);
}
.brand-lockup span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-lockup strong {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.brand-lockup small {
  color: #6d7175;
  font-size: 11px;
  margin-top: 3px;
}
.login-brand {
  display: flex;
  justify-content: center;
  padding: 0 16px 18px;
}

.shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.nav {
  background: #1a1a1a;
  color: #fff;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav a, .nav button {
  color: #fff;
  text-decoration: none;
  background: none;
  border: 0;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}

.nav .brand-lockup--nav {
  color: #fff;
  margin: 0 8px 16px;
  padding: 0;
}
.nav .brand-lockup--nav:hover { background: transparent; }
.nav .brand-lockup--nav small { color: #b5b5b5; }
.nav .brand-lockup--nav img { box-shadow: none; }

.nav a:hover, .nav button:hover, .nav a.active {
  background: #333;
}

#app { padding: 24px; }
.login-wrap {
  max-width: 520px;
  margin: 6vh auto;
  padding-top: 24px;
  border-top: 4px solid var(--plus-lilac);
}
.portal-shell { max-width: 980px; margin: 0 auto; padding: 24px; }
.portal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.portal-top {
  padding-bottom: 16px;
  border-bottom: 1px solid #e3e3e3;
}
.link-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.link-row .mono { word-break: break-all; margin-top: 4px; }
.error { color: #b91c1c; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.card { background: #fff; border: 1px solid #e3e3e3; border-radius: 12px; padding: 16px; }
.card .label { color: #6d7175; font-size: 13px; }
.card .value { font-size: 28px; font-weight: 650; margin-top: 4px; }
.toolbar {
  margin-bottom: 16px;
}
form.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
}
.toolbar > input,
.toolbar > select,
s-grid.toolbar > input,
s-grid.toolbar > select {
  font: inherit;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #c9cccf;
  border-radius: 8px;
  padding: 8px 12px;
  min-height: 36px;
  width: 100%;
}
.toolbar > input:focus,
.toolbar > select:focus,
s-grid.toolbar > input:focus,
s-grid.toolbar > select:focus {
  outline: 2px solid #005bd3;
  outline-offset: 1px;
  border-color: #005bd3;
}
.table-status {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid #e3e3e3;
}
.table-status:empty { display: none; }
.chart-wrap { background: #fff; border: 1px solid #e3e3e3; border-radius: 12px; padding: 16px; margin: 16px 0; height: 320px; }
#breakdown { margin-top: 8px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.muted { color: #6d7175; }
