/*
 * The operator area: sign-in, profile and the installation list.
 *
 * A second stylesheet rather than an append to style.css, because these rules
 * are needed by a handful of private pages and there is no bundler -- appending
 * would put them on every marketing page load for nothing. It is loaded
 * alongside style.css, so the shared tokens, the brand, the header, the footer,
 * .button, .text-link, .eyebrow and the focus ring all come from there and only
 * what is genuinely new lives here.
 */

/* The public pages are one long landing page; these are documents. */
.console h1 {
  font-size: clamp(30px, 3.4vw, 42px);
  letter-spacing: -1.4px;
  margin: 24px 0 8px;
}
.console h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
  margin: 0 0 14px;
}
.console-main {
  padding: 24px 0 64px;
}
.console .lead {
  max-width: none;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
}
.card-narrow {
  max-width: 460px;
}

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0 6px;
}
input {
  width: 100%;
  padding: 12px 13px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
}
input:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}
input:disabled {
  color: var(--muted);
  cursor: not-allowed;
}
.field-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
}
form .button {
  margin-top: 22px;
}
.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 20px 0 0;
}
.card-links .text-link {
  text-decoration: underline;
  color: var(--mint);
}

.notice-ok {
  border-color: var(--mint);
  color: var(--mint);
}
.notice-bad {
  border-color: var(--danger);
  color: var(--danger-ink);
}

/* A wide table on a narrow screen scrolls sideways inside its own box rather
   than widening the page; the caption row stays readable at any width. */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 20px 0;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  white-space: nowrap;
}
.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.data-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.data-table .numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.data-table .text-link {
  text-decoration: underline;
  color: var(--mint);
}
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.badge-approved {
  border-color: var(--mint);
  color: var(--mint);
}
.badge-revoked {
  border-color: var(--danger);
  color: var(--danger-ink);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.inline-form {
  display: inline-flex;
  margin: 0;
}
.inline-form .button {
  margin-top: 0;
}
.button-small {
  background: transparent;
  color: var(--mint);
  border: 1px solid var(--mint);
  border-radius: 7px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.button-small:hover:not(:disabled) {
  background: var(--mint);
  color: var(--accent-ink);
}
.button-small:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.button-danger {
  background: transparent;
  color: var(--danger-ink);
  border: 1px solid var(--danger);
}
.button-danger:hover:not(:disabled) {
  background: var(--danger);
  color: #3a1b12;
}

.fields {
  display: grid;
  grid-template-columns: minmax(140px, 240px) 1fr;
  gap: 10px 24px;
  margin: 0;
  font-size: 14px;
}
.fields dt {
  color: var(--muted);
}
.fields dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.footer .inline-form .text-link {
  background: none;
  border: 0;
  color: var(--mint);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 760px) {
  .console-main {
    padding-bottom: 40px;
  }
  .card {
    padding: 18px;
  }
  .fields {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }
  .fields dd {
    margin-bottom: 12px;
  }
}
