/* Forms and portal bits layered on style.css (shared with the marketing sites). */
form.stack { display: grid; gap: 0.7rem; max-width: 30rem; margin: 0.75rem 0; }
form.inline { display: inline; margin: 0; }
form.row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-end; margin: 0.75rem 0; }
label { display: grid; gap: 0.25rem; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  font: inherit; font-size: 0.92rem; padding: 0.5rem 0.65rem; border: 1px solid var(--border);
  border-radius: 6px; background: var(--surface); color: var(--text); min-width: 12rem;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--pink-300); outline-offset: 1px; }
textarea { min-height: 5rem; width: 100%; font-family: var(--mono); font-size: 0.8rem; }
button.btn { border: none; cursor: pointer; font: inherit; font-weight: 700; }
button.btn.small, .btn.small { padding: 0.3rem 0.8rem; font-size: 0.8rem; box-shadow: none; }
button.btn.danger { background: var(--bad); }
.flash { padding: 0.65rem 1rem; border-radius: 6px; margin: 0.75rem 0; font-size: 0.9rem; }
.flash.ok { background: var(--good-bg); color: var(--good); }
.flash.error { background: var(--bad-bg); color: var(--bad); }
.secret { font-family: var(--mono); background: var(--plum-900); color: #fff; padding: 0.9rem 1rem;
  border-radius: 8px; word-break: break-all; font-size: 0.9rem; user-select: all; }
.status { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 99px; font-size: 0.75rem; font-weight: 700; }
.status.active, .status.valid, .status.approved { background: var(--good-bg); color: var(--good); }
.status.pending { background: var(--warn-bg); color: var(--warn); }
.status.expired, .status.suspended { background: var(--warn-bg); color: var(--warn); }
.status.revoked, .status.closed, .status.declined { background: var(--bad-bg); color: var(--bad); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; }
.crumbs { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.nowrap { white-space: nowrap; }
pre.cmd { background: var(--plum-900); color: #fff; padding: 0.8rem 1rem; border-radius: 8px; overflow-x: auto;
  font-size: 0.82rem; }

/* Narrow screens: wide tables scroll inside themselves instead of widening the page. */
main table { display: block; max-width: 100%; overflow-x: auto; }
/* The ghost button sits on the dark header in the portal nav. */
.site-header .btn.ghost, .site-header button.btn.ghost { color: #fff; border-color: rgba(255,255,255,0.55); background: transparent; }
.site-header .btn.ghost:hover { background: rgba(255,255,255,0.12); }
.site-header nav form { margin: 0; }

td code, th code { white-space: nowrap; }
