.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-page {
  display: grid;
  align-items: center;
  min-height: 100vh;
  padding: 48px 24px;
  background: #eef2f0;
}

.login-shell {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 64px;
  align-items: center;
  margin: 0 auto;
}

.login-brand {
  min-width: 0;
}

.login-eyebrow {
  color: var(--gm-primary);
  font-size: 12px;
  font-weight: 900;
}

.login-brand h1 {
  max-width: 720px;
  margin: 12px 0 8px;
  color: #102019;
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: 0;
}

.login-brand > p {
  margin: 0;
  color: var(--gm-muted);
  font-size: 18px;
}

.login-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 42px 0 0;
  overflow: hidden;
  background: var(--gm-line);
  border: 1px solid var(--gm-line);
  border-radius: 6px;
}

.login-meta div {
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.login-meta dt {
  color: var(--gm-muted);
  font-size: 12px;
}

.login-meta dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--gm-ink);
  font-weight: 800;
}

.login-panel {
  overflow: hidden;
  background: var(--gm-surface);
  border: 1px solid var(--gm-line);
  border-radius: 7px;
  box-shadow: var(--gm-shadow);
}

.login-panel header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--gm-line);
}

.login-panel__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  color: #fff;
  background: var(--gm-sidebar);
  border-radius: 6px;
  font-weight: 900;
}

.login-panel header strong,
.login-panel header span {
  display: block;
}

.login-panel header strong {
  font-size: 17px;
}

.login-panel header div span {
  color: var(--gm-muted);
  font-size: 12px;
}

.login-panel form {
  display: grid;
  gap: 17px;
  padding: 24px;
}

.login-submit {
  width: 100%;
  min-height: 44px;
}

.login-panel footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  color: var(--gm-muted);
  background: var(--gm-surface-muted);
  border-top: 1px solid var(--gm-line);
  font-size: 12px;
}

.login-error {
  margin: 0;
  padding: 10px 12px;
  color: #812f2a;
  background: var(--gm-red-soft);
  border: 1px solid #e4bab7;
  border-radius: 5px;
}

.topbar-zone .gm-select {
  width: 172px;
  height: 36px;
}

.gm-app[aria-busy="true"] .gm-main {
  opacity: 0.58;
  pointer-events: none;
}

.compact-table {
  min-width: 680px;
}

.player-search {
  align-items: center;
}

.target-panel {
  align-self: start;
}

.target-summary {
  display: grid;
  gap: 14px;
}

.target-summary__identity strong,
.target-summary__identity span {
  display: block;
}

.target-summary__identity strong {
  font-size: 19px;
}

.target-summary__identity span {
  margin-top: 3px;
  color: var(--gm-muted);
}

.target-summary__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--gm-line);
  border: 1px solid var(--gm-line);
  border-radius: 5px;
}

.target-summary__stats div {
  min-width: 0;
  padding: 11px;
  background: var(--gm-surface-muted);
}

.target-summary__stats span,
.target-summary__stats strong {
  display: block;
  overflow-wrap: anywhere;
}

.target-summary__stats span {
  color: var(--gm-muted);
  font-size: 11px;
}

.target-summary__stats strong {
  margin-top: 2px;
}

.target-empty {
  min-height: 128px;
  display: grid;
  place-items: center;
  color: var(--gm-muted);
  text-align: center;
}

.catalog-results {
  max-height: 240px;
  display: none;
  overflow-y: auto;
  margin-top: 6px;
  background: #fff;
  border: 1px solid var(--gm-line-strong);
  border-radius: 5px;
}

.catalog-results.is-open {
  display: block;
}

.catalog-option {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 10px;
  color: var(--gm-ink);
  background: #fff;
  border-bottom: 1px solid var(--gm-line);
  cursor: pointer;
  text-align: left;
}

.catalog-option:last-child {
  border-bottom: 0;
}

.catalog-option:hover,
.catalog-option:focus {
  background: var(--gm-primary-soft);
}

.catalog-option span {
  color: var(--gm-muted);
  font-family: Consolas, monospace;
  font-size: 12px;
}

.player-assets {
  display: grid;
  gap: 2px;
  white-space: nowrap;
}

.player-assets small {
  margin: 0;
}

.status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.gm-table td:last-child .gm-actions {
  flex-wrap: nowrap;
}

.audit-reason {
  max-width: 220px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.service-row-note {
  font-family: Consolas, monospace;
}

.authorization-layout {
  align-items: start;
}

.portal-address {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-address code {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  color: var(--gm-ink);
  background: var(--gm-surface-muted);
  border: 1px solid var(--gm-line);
  border-radius: 5px;
  font-family: Consolas, monospace;
  font-size: 12px;
}

.portal-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  background: var(--gm-line);
  border: 1px solid var(--gm-line);
  border-radius: 5px;
}

.portal-metrics div {
  padding: 13px;
  background: var(--gm-surface-muted);
}

.portal-metrics span,
.portal-metrics strong {
  display: block;
}

.portal-metrics span {
  color: var(--gm-muted);
  font-size: 12px;
}

.portal-metrics strong {
  margin-top: 4px;
  font-size: 22px;
}

.cdk-list-panel {
  margin-top: 18px;
}

.cdk-output {
  min-height: 180px;
  color: var(--gm-ink);
  background: #f7faf8;
  font-family: Consolas, monospace;
}

@media (max-width: 920px) {
  .login-shell {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .login-brand {
    text-align: center;
  }

  .login-brand h1 {
    margin-left: auto;
    margin-right: auto;
    font-size: 34px;
  }

  .login-meta {
    margin-top: 28px;
    text-align: left;
  }
}

@media (max-width: 820px) {
  .topbar-zone .gm-select {
    width: 138px;
  }

  .target-panel {
    order: -1;
  }
}

@media (max-width: 560px) {
  .login-page {
    align-items: start;
    padding: 28px 14px;
  }

  .login-brand h1 {
    font-size: 28px;
  }

  .login-meta {
    grid-template-columns: 1fr;
  }

  .login-panel header,
  .login-panel form,
  .login-panel footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topbar-zone {
    display: none;
  }

  .target-summary__stats {
    grid-template-columns: 1fr;
  }

  .gm-table td:last-child .gm-actions {
    flex-wrap: wrap;
  }
}
