:root {
  --ink: #06184f;
  --muted: #5d6f91;
  --line: #d9e3f3;
  --green: #032b77;
  --paper: #f4f7fc;
  --amber: #986018;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  font-family: 'GamanLexend', Arial, sans-serif;
  color: var(--ink);
  font-size: 14px;
}
header {
  height: 80px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 36px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -2px;
}
.brand-dot {
  color: #256eb3;
}
.brand-label {
  font-size: 16px;
  letter-spacing: -0.3px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
  margin-left: 16px;
  font-weight: 600;
}
.local {
  font-size: 12px;
  color: var(--green);
}
main {
  max-width: 1600px;
  padding: 48px 4% 24px;
  margin: auto;
}
.intro {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 36px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 750;
  color: var(--green);
  margin: 0 0 13px;
}
h1 {
  font-size: 40px;
  letter-spacing: -1.6px;
  font-weight: 600;
  margin: 0 0 14px;
}
h2,
h3,
p {
  margin-top: 0;
}
.subtitle {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.version {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #7a89a3;
  white-space: nowrap;
}
.workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
}
aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card,
.table-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.card {
  padding: 24px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section-title h2 {
  font-size: 17px;
  margin: 0;
  letter-spacing: -0.3px;
}
.step {
  font-size: 10px;
  color: var(--green);
  border: 1px solid #cbdcf0;
  padding: 5px;
  border-radius: 5px;
}
.status-label {
  font-size: 12px;
  font-weight: 600;
  background: #eaf3ff;
  padding: 9px 10px;
  border-radius: 5px;
}
.muted,
.privacy {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}
.privacy {
  font-size: 11px;
  margin: 14px 0 0;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 650;
  margin: 15px 0 7px;
}
input {
  width: 100%;
  background: #fbfcff;
  color: var(--ink);
  border: 1px solid #cfdbed;
  border-radius: 6px;
  height: 42px;
  padding: 10px;
  font: inherit;
}
input:focus {
  outline: 2px solid #5bb7ff;
  outline-offset: 2px;
}
button,
a.export {
  font: inherit;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
}
button {
  width: 100%;
  padding: 12px;
  font-size: 12px;
  font-weight: 650;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.primary {
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
  display: flex;
  justify-content: space-between;
}
.primary:hover:enabled {
  background: #256eb3;
}
.secondary {
  background: #fff;
  color: var(--green);
  border: 1px solid #c5d8ef;
  margin-top: 18px;
}
.secondary:hover:enabled {
  background: #eaf3ff;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 11px;
  padding: 12px 0 0;
  text-align: left;
}
.years {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.years + p {
  margin: 16px 0;
}
.demo-area {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 17px;
  font-size: 11px;
  color: var(--muted);
}
.demo-area .text-button {
  font-weight: 700;
  padding-top: 8px;
}
.results-area {
  min-width: 0;
}
.progress-card {
  padding: 20px 24px;
  margin-bottom: 20px;
}
.progress-card > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.signal {
  width: 7px;
  height: 7px;
  background: #256eb3;
  border-radius: 50%;
  display: inline-block;
}
.signal.busy {
  background: #c89542;
  animation: pulse 1s infinite;
}
.progress-card p {
  margin: 9px 0 0 17px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 12px;
}
#error {
  color: #a13a2c;
}
.empty {
  min-height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed #cbd9ef;
  border-radius: 12px;
  padding: 40px;
  background: #f8fbff;
}
.empty-icon {
  width: 60px;
  height: 60px;
  border: 1px solid #d9e3f3;
  border-radius: 16px;
  background: #eaf3ff;
  color: #256eb3;
  font-size: 40px;
  margin-bottom: 26px;
}
.empty h2 {
  font-size: 27px;
  letter-spacing: -0.7px;
  font-weight: 500;
}
.empty > p:not(.eyebrow) {
  max-width: 370px;
  line-height: 1.7;
  color: var(--muted);
  font-size: 13px;
}
.empty-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.empty-tags span {
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 7px 10px;
  color: var(--muted);
}
.notice {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff3d9;
  border: 1px solid #ead6ac;
  border-radius: 8px;
  padding: 16px 20px;
  color: #83561a;
  font-size: 12px;
  margin-bottom: 26px;
}
.notice span {
  font-size: 11px;
  line-height: 1.5;
}
.result-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 28px 0 20px;
}
.result-heading h2 {
  font-size: 25px;
  letter-spacing: -0.7px;
  margin: 0 0 8px;
}
.result-heading .eyebrow {
  margin-bottom: 9px;
}
.result-heading p {
  margin-bottom: 0;
}
.exports {
  display: flex;
  gap: 8px;
}
.export {
  white-space: nowrap;
  color: var(--green);
  text-decoration: none;
  background: #fff;
  border: 1px solid #c5d8ef;
  padding: 10px 12px;
  font-size: 11px !important;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  margin-bottom: 24px;
  padding: 20px 0;
}
.metrics > div {
  padding: 0 23px;
  border-right: 1px solid var(--line);
}
.metrics > div:last-child {
  border: 0;
}
.metrics span,
.metrics strong,
.metrics small {
  display: block;
}
.metrics span {
  font-size: 11px;
  color: var(--muted);
}
.metrics strong {
  font-size: 31px;
  letter-spacing: -1px;
  margin: 10px 0 5px;
  font-weight: 550;
}
.metrics small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}
.table-card {
  overflow: hidden;
}
.table-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 20px;
}
.table-title h3 {
  font-size: 14px;
  margin: 0;
}
.table-title span {
  font-size: 10px;
  color: var(--green);
}
.scroll-hint {
  font-size: 10px;
  color: var(--muted);
  margin: 0 20px 12px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
th {
  text-align: right;
  color: #5d6f91;
  background: #f4f7fc;
  font-size: 10px;
  line-height: 1.6;
  font-weight: 600;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
th:first-child,
td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 1;
}
th:first-child {
  background: #f4f7fc;
}
td {
  text-align: right;
  padding: 18px 16px;
  border-bottom: 1px solid #edf2fa;
}
tr:last-child td {
  border: 0;
}
td:first-child {
  font-weight: 700;
}
td:nth-child(4) {
  font-weight: 750;
  color: var(--green);
}
tr.partial td {
  background: #fffcf4;
}
tr.partial td:first-child {
  background: #fff8e7;
}
.partial-label {
  display: block;
  font-size: 9px;
  font-weight: 500;
  color: var(--amber);
  margin-top: 4px;
}
.method {
  padding: 24px 4px 6px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
.method h3 {
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 10px;
}
.source {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 18px;
}
.pending {
  margin-top: 24px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.pending summary {
  cursor: pointer;
  font-weight: 600;
}
.pending p {
  margin-top: 12px;
  max-width: 800px;
}
footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  line-height: 1.7;
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid #5bb7ff;
  outline-offset: 3px;
}
@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}
@media (min-width: 1600px) {
  .workspace {
    grid-template-columns: 320px minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  main {
    padding: 32px 20px;
  }
  .version {
    display: none;
  }
  .workspace {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
  }
  .card {
    padding: 18px;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .metrics > div {
    border-right: 0;
    padding: 10px 20px;
  }
  .result-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .brand-label {
    font-size: 13px;
  }
  .local {
    font-size: 10px;
  }
}
@media (max-width: 650px) {
  header {
    height: 65px;
    padding: 0 20px;
  }
  .brand {
    font-size: 30px;
  }
  .brand-label {
    padding-left: 10px;
    margin-left: 8px;
  }
  .local {
    display: none;
  }
  h1 {
    font-size: 32px;
  }
  .workspace {
    display: block;
  }
  aside {
    margin-bottom: 20px;
  }
  .empty {
    min-height: 320px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .metrics > div {
    padding: 0 12px;
  }
  .metrics strong {
    font-size: 26px;
  }
  .metrics small {
    font-size: 9px;
  }
  .metrics span {
    font-size: 10px;
  }
  footer {
    flex-direction: column;
    gap: 5px;
  }
  .result-heading h2 {
    font-size: 23px;
  }
}
@font-face {
  font-family: GamanLexend;
  src: url('/fonts/GamanLexend-Light.ttf?v=28') format('truetype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: GamanLexend;
  src: url('/fonts/GamanLexend-Regular.ttf?v=28') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: GamanLexend;
  src: url('/fonts/GamanLexend-SemiBold.ttf?v=28') format('truetype');
  font-weight: 500 900;
  font-display: swap;
}
.brand {
  display: flex;
  align-items: center;
  letter-spacing: 0;
}
.brand img {
  width: 158px;
  height: auto;
}
.brand-label {
  font-weight: 500;
  color: #193362;
}
.header-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  height: 36px;
  width: 36px;
  display: grid;
  place-items: center;
  background: #eaf3ff;
  color: #032b77;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
}
.user-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
}
.user-copy small {
  font-size: 9px;
  color: var(--muted);
}
.logout-button {
  width: auto;
  padding: 9px 13px;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 11px;
}
.local {
  border: 1px solid #cbdcf0;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 9px;
  letter-spacing: 1px;
}
.intro {
  padding: 35px 36px;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(110deg, #032b77, #0b4da7 65%, #228fba);
  color: white;
  box-shadow: 0 14px 30px #032b771a;
  margin-top: -48px;
}
.intro .eyebrow,
.intro .subtitle {
  color: #d4eaff;
}
.intro h1 {
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 500;
}
.intro .version {
  color: #c8e6ff;
  font-size: 9px;
}
.primary {
  border-radius: 10px;
  box-shadow: 0 7px 18px #032b7718;
  justify-content: center;
  gap: 15px;
}
.card,
.table-card {
  border-radius: 16px;
}
.access .secondary {
  margin-top: 8px;
}
.status-label.configured {
  color: #17734c;
  background: #effaf3;
}
.table-scroll {
  scrollbar-color: #b7cce5 #f4f7fc;
  scrollbar-width: thin;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f4f7fc;
}
.login-art {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 8vw 6vw;
  background: radial-gradient(ellipse at 90% 20%, #1b7bb5aa, transparent 50%), linear-gradient(150deg, #032b77, #001a4c);
  overflow: hidden;
  color: white;
}
.login-art::after {
  content: '';
  width: 520px;
  height: 520px;
  border: 1px solid #ffffff13;
  border-radius: 50%;
  position: absolute;
  right: -250px;
  bottom: -140px;
  box-shadow:
    0 0 0 65px #ffffff04,
    0 0 0 130px #ffffff03;
}
.art-grid {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: linear-gradient(#ffffff18 1px, transparent 1px),
    linear-gradient(90deg, #ffffff18 1px, transparent 1px);
  background-size: 60px 60px;
}
.art-copy {
  z-index: 1;
  max-width: 500px;
}
.product-chip {
  display: inline-block;
  color: #c7e6ff;
  border: 1px solid #ffffff25;
  background: #ffffff09;
  border-radius: 24px;
  padding: 9px 14px;
  font-size: 9px;
  letter-spacing: 1.8px;
  margin-bottom: 36px;
}
.art-copy h1 {
  font-size: clamp(32px, 3.6vw, 55px);
  letter-spacing: -1.7px;
  line-height: 1.24;
  margin-bottom: 24px;
  font-weight: 400;
}
.art-copy > p {
  font-size: 14px;
  line-height: 1.8;
  color: #bccfee;
  max-width: 350px;
}
.art-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 38px;
  font-size: 10px;
  color: #cbe4ff;
}
.art-pill span {
  border: 1px solid #4b81af;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #91d8f8;
}
.art-footer {
  position: absolute;
  bottom: 30px;
  left: 6vw;
  font-size: 9px;
  color: #90add4;
  letter-spacing: 0.2px;
}
.login-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 36px;
  position: relative;
}
.login-card {
  width: 100%;
  max-width: 380px;
}
.login-logo {
  width: 200px;
  height: auto;
  display: block;
  margin-bottom: 48px;
}
.login-lock {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #e6effc;
  color: #256eb3;
  font-size: 25px;
  margin-bottom: 24px;
}
.login-card h2 {
  font-size: 27px;
  letter-spacing: -0.9px;
  font-weight: 500;
  margin-bottom: 16px;
}
.login-description {
  font-size: 13px;
  color: #6a7b99;
  line-height: 1.8;
  max-width: 345px;
  margin-bottom: 28px;
}
.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #c8d6ea;
  background: #fff;
  color: #193362;
  font-size: 12px;
  min-height: 48px;
  border-radius: 10px;
  font-weight: 500;
  box-shadow: 0 4px 12px #032b7705;
}
.google-button:hover:enabled {
  border-color: #256eb3;
  background: #fbfdff;
}
.login-security {
  display: flex;
  gap: 13px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 28px;
  color: #7a8ba4;
}
.login-security > span {
  font-size: 23px;
  color: #688eb8;
}
.login-security p {
  font-size: 10px;
  line-height: 1.8;
  margin: 0;
}
.login-security strong {
  font-weight: 500;
  color: #526486;
  font-size: 10px;
}
.login-help {
  font-size: 10px;
  line-height: 1.7;
  color: #7e8ca5;
  margin-top: 22px;
}
.login-bottom {
  position: absolute;
  bottom: 24px;
  font-size: 9px;
  color: #8c9ab1;
}
.login-error {
  font-size: 11px;
  line-height: 1.8;
  background: #fff0ed;
  border: 1px solid #f0ccc4;
  padding: 12px;
  border-radius: 8px;
  color: #a13a2c;
  margin-top: 18px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  width: min(480px, calc(100% - 32px));
  padding: 28px;
  box-shadow: 0 28px 100px #001a4c33;
}
dialog::backdrop {
  background: #001a4c66;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.dialog-header h2 {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin: 0;
}
.dialog-header .eyebrow {
  margin-bottom: 8px;
}
.dialog-close {
  border: 1px solid var(--line);
  background: #fff;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 22px;
  color: var(--muted);
}
#save-access {
  margin-top: 24px;
}
#admin-feedback {
  margin: 15px 0 0;
}
.danger-zone {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 10px;
}
.danger {
  color: #a13a2c;
}
.login-page ~ header[hidden] {
  display: none;
}
.login-page[hidden] {
  display: none;
}
@media (max-width: 900px) {
  .login-page {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .login-art {
    padding: 8vw 5vw;
  }
  .art-copy h1 {
    font-size: 35px;
  }
  .intro {
    margin-top: -32px;
    padding: 30px 26px;
  }
  .intro h1 {
    font-size: 28px;
  }
  .user-copy {
    display: none;
  }
}
@media (max-width: 650px) {
  .login-page {
    display: block;
  }
  .login-art {
    display: none;
  }
  .login-content {
    min-height: 100dvh;
    padding: 45px 28px 70px;
  }
  .login-logo {
    margin-bottom: 42px;
  }
  .login-card {
    max-width: 360px;
  }
  .login-card h2 {
    font-size: 27px;
  }
  .login-bottom {
    bottom: 20px;
  }
  .brand img {
    width: 120px;
  }
  .brand-label {
    font-size: 11px;
  }
  .header-user {
    gap: 8px;
  }
  .avatar {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }
  .user-copy,
  .header-user .local {
    display: none;
  }
  .intro {
    margin-left: -20px;
    margin-right: -20px;
    border-radius: 0 0 20px 20px;
  }
  .intro h1 {
    font-size: 28px;
  }
  .logout-button {
    padding: 8px 10px;
    font-size: 10px;
  }
}
/* Align branding and identity with the content, even on ultrawide monitors. */
header {
  padding: 0;
  display: block;
}
.header-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
main {
  max-width: 1440px;
  padding-left: 32px;
  padding-right: 32px;
}
.user-copy {
  max-width: 230px;
}
.user-copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.exports {
  flex-wrap: wrap;
}
.exports a:first-child {
  background: #032b77;
  color: white;
  border-color: #032b77;
}
dialog {
  width: min(660px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}
.admin-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  gap: 20px;
}
.admin-tabs button {
  border: 0;
  border-radius: 0;
  background: none;
  width: auto;
  padding: 12px 3px;
  color: var(--muted);
  font-weight: 500;
}
.admin-tabs button[aria-selected='true'] {
  color: var(--green);
  border-bottom: 2px solid #256eb3;
}
.monitor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.monitor-grid > div {
  border: 1px solid var(--line);
  background: #f8fbff;
  border-radius: 10px;
  padding: 12px;
}
.monitor-grid span {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.monitor-grid strong {
  display: block;
  font-size: 20px;
  font-weight: 500;
  margin-top: 8px;
}
.monitor-note {
  grid-column: 1/-1;
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin: 3px 0 0;
}
.user-add {
  display: flex;
  gap: 10px;
}
.user-add input {
  min-width: 0;
}
.user-add button {
  width: auto;
  white-space: nowrap;
  font-size: 11px;
}
.root-admin {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: #f4f8ff;
  border-radius: 10px;
  padding: 14px;
  margin: 24px 0 14px;
}
.root-admin strong,
.user-row strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.root-admin small,
.user-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.6;
}
.users-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.user-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}
.user-row > div {
  min-width: 0;
}
.user-toggle {
  width: auto;
  flex-shrink: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 10px;
  color: var(--green);
}
.user-toggle.danger {
  color: #a13a2c;
}
@media (max-width: 900px) {
  main {
    padding-left: 20px;
    padding-right: 20px;
  }
  .header-inner {
    padding: 0 20px;
  }
}
@media (max-width: 650px) {
  .header-inner {
    height: 65px;
    padding: 0 20px;
    gap: 8px;
  }
  .monitor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .user-add {
    flex-direction: column;
  }
  .user-row {
    align-items: flex-start;
    gap: 10px;
  }
  .user-row strong,
  .root-admin strong {
    font-size: 10px;
  }
  .user-toggle {
    padding: 8px;
    font-size: 9px;
  }
  dialog {
    padding: 22px;
  }
  .brand-label {
    margin-left: 8px;
    padding-left: 8px;
  }
}
/* User-defined comparison layout: year plus twelve requested columns. */
.table-scroll table {
  min-width: 1060px;
}
th {
  white-space: normal;
  min-width: 62px;
  max-width: 115px;
  line-height: 1.6;
}
th small {
  font-size: 8px;
  font-weight: 400;
}
th:first-child {
  min-width: 90px;
}
td:nth-child(4) {
  font-weight: 400;
  color: var(--ink);
}
td:nth-child(3) {
  font-weight: 750;
  color: var(--green);
}
td:nth-child(4),
td:nth-child(11),
td:nth-child(13) {
  white-space: nowrap;
}
.partial-label {
  white-space: nowrap;
  font-size: 8px;
}
.table-scroll table {
  min-width: 1000px;
  font-size: 11px;
}
.table-scroll th {
  padding: 12px 10px;
}
.table-scroll td {
  padding: 16px 10px;
}
tr.projection td {
  background: #edf5ff;
  border-top: 1px solid #b7d3f3;
  color: #17417c;
}
tr.projection td:first-child {
  background: #e5f0ff;
}
.projection-label {
  display: block;
  font-size: 8px;
  font-weight: 600;
  color: #125da2;
  margin-top: 4px;
  white-space: nowrap;
}
.projection-factor {
  display: block;
  font-size: 8px;
  font-weight: 400;
  color: #5d6f91;
  margin-top: 4px;
  white-space: nowrap;
}
#projection-note {
  padding: 12px 14px;
  border: 1px solid #c9ddf4;
  background: #eef6ff;
  border-radius: 8px;
  color: #28527d;
}
.analysis-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.analysis-actions button {
  width: auto;
}
.analysis-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 20px;
}
.analysis-card h2 {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.analysis-card section {
  border-top: 1px solid #e8eef7;
  padding-top: 18px;
  margin-top: 18px;
}
.analysis-card h3 {
  font-size: 13px;
  font-weight: 600;
}
.analysis-card p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}
.benchmark-card {
  margin-top: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}
.benchmark-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.benchmark-heading h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.7px;
  margin-bottom: 10px;
}
.benchmark-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr);
  gap: 24px;
}
.benchmark-fields textarea {
  width: 100%;
  resize: vertical;
  min-height: 120px;
  border: 1px solid #cfdbed;
  border-radius: 8px;
  background: #fbfcff;
  color: var(--ink);
  padding: 12px;
  font: inherit;
  font-size: 12px;
  line-height: 1.7;
}
.benchmark-fields button {
  margin-top: 12px;
}
.benchmark-disclaimer {
  font-size: 11px;
  line-height: 1.8;
  color: #687b98;
  background: #f4f8ff;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  padding: 13px 16px;
  margin: 22px 0 0;
}
.benchmark-card .table-scroll table {
  font-size: 11px;
  min-width: 1180px;
  width: 100%;
}
.benchmark-exclusions p {
  font-size: 11px;
  line-height: 1.8;
  color: #94611e;
  background: #fff7e9;
  border-radius: 7px;
  padding: 10px 12px;
  margin-top: 12px;
}
#benchmark-title {
  margin: 0 0 8px;
  font-size: 18px;
}
#benchmark-progress {
  margin: 18px 0;
}
#benchmark-error {
  margin-top: 18px;
}
@media (max-width: 650px) {
  .benchmark-fields {
    grid-template-columns: 1fr;
  }
  .benchmark-card {
    padding: 20px;
  }
  .benchmark-heading h2 {
    font-size: 22px;
  }
  .analysis-card {
    padding: 20px;
  }
  .analysis-actions button {
    width: 100%;
  }
}
.benchmark-card .table-scroll table {
  min-width: 1100px;
}

/* Primary tools stay visible before any query. */
html {
  scroll-behavior: smooth;
}
.feature-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 26px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.feature-nav a {
  padding: 12px 16px;
  border-radius: 9px;
  background: #edf3fc;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.feature-nav a:hover {
  background: #dceafe;
}
.ilt-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 0 auto;
  font-size: 12px;
  cursor: pointer;
}
.ilt-toggle input {
  width: 18px;
  height: 18px;
  padding: 0;
}
.feature-panel {
  margin-top: 28px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  scroll-margin-top: 20px;
}
.feature-heading h2 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 500;
}
.analysis-actions {
  margin: 18px 0 0;
}
.analysis-card {
  margin-top: 22px;
}
.benchmark-card {
  scroll-margin-top: 20px;
}
.benchmark-cuit-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.remove-cuit {
  width: 42px;
  flex-shrink: 0;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  color: #5d6f91;
  font-size: 21px;
}
.benchmark-cuit-row input {
  min-width: 0;
}
#add-benchmark-cuit {
  margin-top: 0;
  width: auto;
  padding: 10px 15px;
}
th,
th:first-child,
td,
td:first-child {
  text-align: center;
}
th {
  white-space: normal;
  vertical-align: middle;
}
th small {
  display: none;
}
.table-title {
  justify-content: center;
}
.scroll-hint {
  text-align: center;
}
#show-ilt:checked {
  accent-color: #032b77;
}
@media (max-width: 650px) {
  .feature-nav a {
    flex: 1;
    text-align: center;
  }
  .ilt-toggle {
    margin: 8px 0;
  }
  .feature-panel {
    padding: 20px;
  }
}

.reading-notes {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-top: 20px;
  padding: 0 20px;
}
.reading-notes > summary {
  padding: 17px 0;
  color: var(--ink);
  font-size: 12px;
}
.reading-notes .method {
  padding: 2px 0 10px;
}
.reading-notes .method h3 {
  margin-top: 20px;
}
.reading-notes:not([open]) .method {
  display: none;
}

.table-title {
  position: relative;
  flex-wrap: wrap;
}
.table-title .ilt-toggle {
  margin: 0;
  position: absolute;
  right: 20px;
}
.benchmark-cuit-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) minmax(100px, 1fr) minmax(90px, 0.7fr) 36px;
  align-items: end;
  gap: 10px;
}
.benchmark-input-group label {
  margin: 0;
  font-size: 10px;
}
.benchmark-input-group input {
  margin-top: 7px;
}
.benchmark-fields {
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr);
}
.benchmark-input-help {
  margin: 10px 0 16px;
}
.reference-label {
  display: block;
  font-size: 8px;
  letter-spacing: 0.7px;
  color: #40628d;
  margin-top: 6px;
}
.metric-mejor {
  background: #e7f5ec;
  color: #17643c;
  font-weight: 700;
}
.metric-peor {
  background: #fff0ef;
  color: #a72b27;
  font-weight: 700;
}
.metric-indicator {
  font-size: 13px;
}
.benchmark-color-key {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin: 16px 0;
}
#benchmark-rows input {
  min-width: 95px;
  width: 120px;
  font-size: 11px;
}
#benchmark-rows input[type='number'] {
  width: 95px;
}
#save-benchmark-data {
  width: auto;
  margin: 10px 0;
}
#benchmark-save-status {
  margin-top: 10px;
}
.benchmark-card .table-scroll table {
  min-width: 1380px;
}
@media (max-width: 650px) {
  .table-title .ilt-toggle {
    position: static;
  }
  .benchmark-cuit-row {
    grid-template-columns: minmax(130px, 1fr) minmax(90px, 1fr) 36px;
  }
  .benchmark-input-group:nth-child(3) {
    grid-column: 1/3;
  }
  .benchmark-cuit-row > .remove-cuit {
    grid-column: 3;
    grid-row: 1/3;
  }
}

.benchmark-card .table-scroll th,
.benchmark-card .table-scroll td {
  padding-left: 9px;
  padding-right: 9px;
}
.benchmark-card .table-scroll table {
  min-width: 1240px;
}

.benchmark-card .table-scroll table {
  min-width: 1000px;
}

.analysis-card ul {
  padding-left: 22px;
  margin: 12px 0 0;
}
.analysis-card li {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  padding-left: 4px;
  margin: 0 0 13px;
}
.analysis-card li strong {
  color: var(--ink);
  font-weight: 600;
}
.analysis-card .analysis-takeaway {
  padding: 18px 20px;
  margin-top: 24px;
  background: #edf3fc;
  border-left: 3px solid #032b77;
  border-radius: 8px;
  color: var(--ink);
}

/* Benchmark highlights override generic positional table styles. */
#benchmark-rows td.metric-peor {
  background: #fff0ef;
  color: #a72b27;
  font-weight: 700;
}
#benchmark-rows td.metric-mejor {
  background: #e7f5ec;
  color: #17643c;
  font-weight: 700;
}
#benchmark-rows td.metric-peor .metric-indicator,
#benchmark-rows td.metric-mejor .metric-indicator {
  color: inherit;
  font-weight: inherit;
}

/* Administration follows the shared Gaman operating panel. */
[hidden],
[data-denied='true'] {
  display: none !important;
}
.admin-header-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
#admin-main {
  padding-top: 32px;
}
.admin-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.admin-sidebar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 16px;
  position: sticky;
  top: 24px;
  gap: 0;
}
.admin-sidebar h2 {
  font-size: 17px;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
.admin-sidebar nav {
  display: grid;
  gap: 7px;
  margin: 16px 0 24px;
}
.admin-sidebar nav button {
  background: transparent;
  border: 0;
  text-align: left;
  padding: 13px 14px;
  color: var(--muted);
  font-weight: 500;
}
.admin-sidebar nav button[aria-current='page'] {
  background: #edf3fc;
  color: var(--green);
  font-weight: 650;
}
.admin-back {
  font-size: 11px;
  color: var(--green);
  text-decoration: none;
  padding: 12px;
}
.admin-content {
  min-width: 0;
}
.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 8px 0 20px;
}
.admin-heading h1 {
  font-size: 30px;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}
.admin-heading .eyebrow {
  margin-bottom: 9px;
}
.admin-heading button {
  width: auto;
  flex-shrink: 0;
}
.back-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.back-metrics > div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.back-metrics span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 14px;
}
.back-metrics strong {
  font-size: 30px;
  font-weight: 600;
}
.back-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.admin-content .card h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}
.back-usage > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #edf1f8;
  padding: 11px 0;
  font-size: 11px;
}
.back-usage span {
  color: var(--muted);
}
.back-usage strong {
  font-weight: 600;
}
.back-usage {
  margin-bottom: 18px;
}
.back-recent {
  margin-top: 20px;
}
.back-event {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid #edf1f8;
  font-size: 11px;
}
.back-event > div {
  flex: 1;
  min-width: 0;
}
.back-event strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
}
.back-event small {
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.back-event time {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.back-badge {
  display: inline-block;
  padding: 5px 8px;
  background: #e8f5ed;
  color: #17643c;
  font-size: 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.back-badge-off {
  background: #eef1f7;
  color: var(--muted);
}
.back-badge-error {
  background: #fff0ef;
  color: #a72b27;
}
.back-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.back-toolbar > input {
  flex: 1;
  min-width: 180px;
}
.back-toolbar button {
  width: auto;
}
.back-toolbar select {
  width: auto;
}
.back-toolbar label {
  margin: 0;
  font-size: 10px;
}
select {
  height: 42px;
  width: 100%;
  border: 1px solid #cfdbed;
  border-radius: 6px;
  background: #fbfcff;
  color: var(--ink);
  padding: 8px;
  font: inherit;
  font-size: 12px;
}
.back-table {
  overflow-x: auto;
  padding: 18px 20px;
}
.back-table table {
  width: 100%;
  min-width: 800px;
  font-size: 11px;
}
.back-table td {
  font-size: 10px;
  line-height: 1.6;
  padding: 17px 10px;
}
.back-table th {
  font-size: 9px;
  padding: 12px 10px;
  white-space: nowrap;
}
.back-table th:first-child,
.back-table td:first-child {
  text-align: left;
  min-width: 150px;
}
.back-table td small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.back-table td:nth-child(n) {
  font-weight: 400;
  color: var(--ink);
}
.back-table td strong {
  font-weight: 600;
}
.back-blocks {
  min-width: 170px;
  max-width: 230px;
}
.back-auto {
  width: auto !important;
}
.back-permission-title {
  font-size: 13px;
  margin-top: 25px;
}
.back-permissions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}
.back-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px;
  font-size: 11px;
}
.back-check input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--green);
}
#back-disconnect {
  margin-top: 24px;
}
.admin-content form .back-two label {
  margin-top: 0;
}
.back-toolbar input[type='date'] {
  margin-top: 6px;
}
#back-user-dialog .back-two {
  gap: 14px;
}
#back-user-dialog .back-toolbar {
  margin: 22px 0 0;
}
.back-permissions input:disabled {
  opacity: 0.5;
}
@media (max-width: 1000px) {
  .admin-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
  }
  .back-two {
    grid-template-columns: 1fr;
  }
  .back-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .back-event {
    flex-wrap: wrap;
  }
  .back-event time {
    margin-left: auto;
  }
}
@media (max-width: 700px) {
  .admin-layout {
    display: block;
  }
  .admin-sidebar {
    position: static;
    margin-bottom: 25px;
    padding: 16px;
  }
  .admin-sidebar nav {
    display: flex;
    overflow-x: auto;
    margin: 8px 0;
    gap: 3px;
  }
  .admin-sidebar nav button {
    width: auto;
    white-space: nowrap;
    font-size: 11px;
  }
  .admin-sidebar h2,
  .admin-sidebar > .muted,
  .admin-sidebar > .eyebrow {
    display: none;
  }
  .admin-back {
    display: block;
    padding: 9px;
  }
  .admin-heading h1 {
    font-size: 25px;
  }
  .back-metrics > div {
    padding: 17px;
  }
  .back-permissions {
    grid-template-columns: 1fr;
  }
  .admin-header-link {
    padding: 8px;
    font-size: 9px;
  }
  .header-user .avatar {
    display: none;
  }
  .back-event > div {
    flex-basis: 100%;
  }
}
.back-table td.back-blocks {
  white-space: normal;
  min-width: 150px;
  max-width: 220px;
}
.back-table td:first-child {
  overflow-wrap: anywhere;
  white-space: normal;
}
.back-table td:last-child {
  background: #fff;
}
.back-table button {
  white-space: nowrap;
}

.back-api-card {
  margin-bottom: 22px;
}
.back-api-card .back-metrics > div {
  background: #f8faff;
}
.back-api-card .back-metrics {
  margin: 16px 0;
}
.back-api-card .back-metrics strong {
  font-size: 25px;
}
.back-cost-overview {
  margin-bottom: 22px;
}
.back-cost-overview h2 {
  margin: 0 !important;
  flex: 1;
}
.back-cost-overview .back-toolbar {
  justify-content: space-between;
}
.back-cost-overview .back-metrics {
  margin-bottom: 14px;
}
.back-cost-overview .back-metrics strong {
  font-size: 26px;
  letter-spacing: -0.7px;
}
.back-cost-overview .back-metrics > div {
  background: #f8faff;
}
.back-cost-table table {
  min-width: 720px;
  white-space: normal;
}
.back-cost-table th {
  white-space: normal;
  max-width: none;
  line-height: 1.5;
}
.back-cost-table td {
  white-space: normal;
}
.back-cost-table td:nth-child(6) {
  font-weight: 650;
  color: var(--green);
  white-space: nowrap;
}
.back-cost-shared td {
  background: #f7f9fd !important;
  color: var(--muted) !important;
}
.back-cost-total td {
  font-weight: 650 !important;
  border-top: 2px solid var(--line) !important;
}
.back-cost-overview input[type='month'] {
  margin-top: 6px;
}
.back-cost-overview label {
  margin: 0;
}
.back-cost-table .cost-muted {
  font-weight: 400 !important;
  color: var(--muted) !important;
}
.admin-heading {
  flex-wrap: wrap;
}
.admin-heading > div {
  flex: 1;
  min-width: 220px;
}
.back-period-filter {
  max-width: 160px;
  margin: 0;
  font-size: 10px;
}
.back-period-filter input {
  margin-top: 6px;
}
.back-cost-overview .back-metrics strong {
  font-size: clamp(16px, 2.5vw, 26px);
}
