.env-chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #043672;
  background: #deeaf8;
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
}

.school-login {
  display: flex;
  min-height: 100vh;
  background: #fff;
  font-family: var(--font);
}
.login-side {
  width: 214px;
  flex-shrink: 0;
  justify-content: flex-start;
}
.login-side-copy {
  margin: 0 20px;
  color: var(--navy-deep);
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.72;
}
.login-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 48px 32px;
  border-left: 2px solid var(--navy-deep);
}
.login-card {
  width: min(100%, 400px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-card h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy-deep);
}
.login-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.login-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-deep);
}
.login-card input {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.login-error {
  margin: 0;
  color: #92223d;
  font-size: 13px;
}

.content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.accounts-lead {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.accounts-head h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.accounts-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.accounts-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.issuer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  min-width: 0;
  flex: 1;
}
.accounts-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.issuer-tab {
  appearance: none;
  border: 0;
  background: var(--card);
  color: var(--navy-deep);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.issuer-tab.is-active {
  background: var(--navy-deep);
  color: #fff;
}
.lab-btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: #163a6a;
  color: #fff;
}
.lab-btn.secondary {
  background: #fff;
  color: #163a6a;
  box-shadow: inset 0 0 0 1px #163a6a;
}
.lab-btn:disabled { opacity: 0.5; cursor: wait; }
.accounts-card { overflow: auto; min-width: 0; }
.accounts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.accounts-table th,
.accounts-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.accounts-table th {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.accounts-table .col-check {
  width: 40px;
  padding-left: 4px;
  padding-right: 4px;
}
.accounts-table .num { font-variant-numeric: tabular-nums; }
.concept-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.concept-cell .concept-name {
  color: var(--text);
}
.concept-cell .pill {
  white-space: nowrap;
}
.accounts-empty,
.accounts-wait {
  color: var(--muted);
  font-size: 13px;
}

.row-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  cursor: pointer;
}
.row-check input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: inherit;
}
.row-check-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid #163a6a;
  background: #fff;
  color: #fff;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: background 0.14s ease, border-color 0.14s ease;
}
.row-check-box svg {
  width: 12px;
  height: 12px;
  opacity: 0;
}
.row-check input:checked + .row-check-box {
  background: #163a6a;
  border-color: #163a6a;
}
.row-check input:checked + .row-check-box svg { opacity: 1; }
.row-check input:focus-visible + .row-check-box {
  outline: 2px solid #163a6a;
  outline-offset: 2px;
}
.row-check input:indeterminate + .row-check-box {
  background: #163a6a;
  border-color: #163a6a;
}
.row-check input:indeterminate + .row-check-box svg { opacity: 0; }
.row-check input:indeterminate + .row-check-box::after {
  content: "";
  width: 8px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}
.row-check.is-disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}
.pill.ok { background: #e6f4ee; color: #0e5b3d; }
.pill.wait { background: #fdf0dc; color: #8a5104; }
.pill.done { background: #deeaf8; color: #043672; }
.pill.mix { background: #e4e5e8; color: var(--navy); }
.accounts-banner {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #e6f4ee;
  color: #0e5b3d;
  font-size: 13px;
}
.accounts-banner.is-error {
  background: #fdecee;
  color: #92223d;
}
.invoice-preview iframe {
  width: 100%;
  min-height: 720px;
  border: 0;
  background: #fff;
  border-radius: 12px;
}
.preview-actions { display: flex; gap: 8px; padding: 0 0 12px; }
.accounts-aside h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
}
.accounts-aside p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.accounts-aside h3 {
  margin: 18px 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.accounts-legend {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}
.accounts-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lab-tech summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
}
.lab-tech summary::-webkit-details-marker { display: none; }
.lab-tech summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
  transition: transform 0.16s ease;
  flex-shrink: 0;
}
.lab-tech[open] summary::after {
  transform: rotate(225deg);
  margin-top: 6px;
}
.lab-tech-copy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.lab-tech-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 4px;
}
.lab-tech-tab {
  appearance: none;
  border: 0;
  background: var(--card);
  color: var(--navy-deep);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.lab-tech-tab.is-active {
  background: var(--navy-deep);
  color: #fff;
}
.lab-tech-tab:focus-visible {
  outline: 2px solid #163a6a;
  outline-offset: 2px;
}
.lab-tech-panel h3 {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.lab-tech-items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lab-tech-items li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: var(--text);
  line-height: 1.4;
}
.lab-tech-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 14px;
  margin: 14px 0 0;
  font-size: 12px;
}
.lab-tech-dl dt {
  color: var(--muted);
  font-weight: 600;
}
.lab-tech-dl dd {
  margin: 0;
  color: var(--text);
  font-family: ui-monospace, "IBM Plex Mono", Menlo, monospace;
  font-size: 11.5px;
  word-break: break-word;
}
.lab-tech-reset {
  margin-top: 16px;
  width: 100%;
}

@media (max-width: 900px) {
  .accounts-toolbar { align-items: stretch; }
  .accounts-actions { margin-left: 0; }
}

.beta-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #043672;
  background: #deeaf8;
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 6px;
}

