:root {
  --graphite: #1f2937;
  --slate: #334155;
  --green: #22c55e;
  --green-strong: #35d46f;
  --green-soft: rgba(34, 197, 94, 0.14);
  --green-border: rgba(34, 197, 94, 0.26);
  --off-white: #f8fafc;
  --ink: #dbe6f2;
  --muted: #94a3b8;
  --panel: rgba(31, 41, 55, 0.86);
  --panel-soft: rgba(51, 65, 85, 0.42);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(148, 163, 184, 0.3);
  --danger-border: rgba(248, 113, 113, 0.34);
  --danger-soft: rgba(127, 29, 29, 0.24);
  --shadow: 0 30px 70px rgba(15, 23, 42, 0.42);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.28);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --content-width: min(1360px, calc(100vw - 2.5rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--off-white);
  background:
    radial-gradient(circle at top, rgba(34, 197, 94, 0.12), transparent 28%),
    radial-gradient(circle at 15% 20%, rgba(148, 163, 184, 0.08), transparent 24%),
    linear-gradient(180deg, #0f172a, #111827 48%, #0f172a);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.94rem;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 0),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 0);
  background-size: 76px 76px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 86%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

input[type="datetime-local"] {
  color-scheme: dark;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--off-white);
  letter-spacing: -0.05em;
  line-height: 1.04;
}

p {
  margin-top: 0;
}

.site-shell {
  width: 100%;
  padding-top: 4.75rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.site-header-inner {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 0.8rem;
  width: var(--content-width);
  margin-inline: auto;
  padding: 0.68rem 0;
}

.main {
  position: relative;
  width: var(--content-width);
  margin-inline: auto;
  padding: 2.2rem 0 5.8rem;
}

.main::after {
  content: "";
  display: block;
  clear: both;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.4fr) minmax(220px, 0.8fr);
  gap: 1.4rem;
  align-items: start;
  width: var(--content-width);
  margin: 0 auto 6.75rem;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--border);
  color: var(--ink);
}

.footer-wordmark {
  color: var(--off-white);
}

.footer-descriptor,
.footer-note {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.footer-wordmark {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.footer-descriptor {
  max-width: none;
  font-size: 0.52rem;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-nav {
  display: flex;
  gap: 0.8rem 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(34, 197, 94, 0.28);
  text-underline-offset: 0.22rem;
}

.footer-note {
  text-align: right;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.wordmark {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-descriptor,
.eyebrow {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  line-height: 1.35;
}

.brand-descriptor {
  max-width: none;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.38rem 0.62rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.84rem;
  white-space: nowrap;
  background: rgba(15, 23, 42, 0.42);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.nav-link:hover,
.nav-link.active {
  transform: translateY(-2px);
  border-color: var(--green-border);
  color: #c9f8d8;
  background: rgba(34, 197, 94, 0.1);
}

.auth {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
  color: var(--ink);
  justify-content: flex-end;
  text-align: right;
  font-size: 0.84rem;
  white-space: nowrap;
}

.auth a {
  color: var(--off-white);
  text-decoration: underline;
  text-decoration-color: rgba(34, 197, 94, 0.35);
  text-underline-offset: 0.24rem;
}

.auth-link {
  font-weight: 700;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
  z-index: 999;
}

.loading-card,
.panel,
.hero-panel,
.stat-card,
.debug-panel,
.modal-dialog,
pre {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%), radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 28%), rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow-soft);
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin-top: 1.6rem;
  padding-bottom: 0.55rem;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  min-width: 760px;
}

.loading-card::before,
.panel::before,
.hero-panel::before,
.stat-card::before,
.modal-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 0),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 96%);
  pointer-events: none;
}

.loading-card {
  min-width: 250px;
  padding: 1.7rem 1.85rem;
  text-align: center;
}

.loading-card p {
  margin: 0.9rem 0 0;
  color: var(--ink);
}

.spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border-radius: 50%;
  border: 4px solid rgba(148, 163, 184, 0.16);
  border-top-color: var(--green);
  animation: spin 0.8s linear infinite;
}

body.is-loading .loading-overlay {
  display: flex;
}

body.is-loading button,
body.is-loading .button-link {
  pointer-events: none;
}

.banner,
.notice,
.danger {
  padding: 0.95rem 1.15rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.72);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.banner.ok {
  border-color: var(--green-border);
  background: rgba(34, 197, 94, 0.1);
  color: #c9f8d8;
}

.banner.warning,
.notice {
  border-color: var(--border-strong);
}

.danger {
  border-color: var(--danger-border);
  background: var(--danger-soft);
  color: #fecaca;
}

.renewal-banner {
  border-color: var(--green-border);
  background: rgba(34, 197, 94, 0.12);
  color: #c9f8d8;
}

.renewal-banner a {
  color: var(--off-white);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(34, 197, 94, 0.45);
  text-underline-offset: 0.22rem;
}

.hero-panel,
.panel {
  padding: clamp(2.35rem, 3.3vw, 3.35rem);
  overflow-wrap: anywhere;
}

.hero-panel {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2.35rem;
  margin-bottom: 2.5rem;
}

.hero-panel p,
.panel p {
  color: var(--ink);
}

.panel h2 + p,
.panel h3 + p,
.hero-panel h2 + p {
  margin-top: 1.1rem;
}

.hero-panel h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-start;
  margin-top: 2rem;
}

.grid {
  display: grid;
  gap: 2.65rem;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 2.7rem;
}

.stats-grid {
  display: grid;
  gap: 1.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 2.45rem;
}

.stat-card {
  padding: 1.8rem;
  overflow: hidden;
}

.stat-value {
  position: relative;
  z-index: 1;
  margin-bottom: 0.3rem;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.06em;
}

.stat-label {
  position: relative;
  z-index: 1;
  color: var(--ink);
}

.button-link,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.button-link:hover,
button:hover {
  transform: translateY(-2px);
}

.primary,
.button-link.primary {
  color: #04140a;
  background: var(--green);
  box-shadow: 0 16px 32px rgba(34, 197, 94, 0.22);
}

.primary:hover,
.button-link.primary:hover {
  background: var(--green-strong);
}

.secondary,
.button-link.secondary {
  color: var(--off-white);
  border-color: var(--border-strong);
  background: rgba(15, 23, 42, 0.42);
}

.secondary:hover,
.button-link.secondary:hover {
  border-color: var(--green-border);
  background: rgba(51, 65, 85, 0.56);
}

.danger-button {
  color: #fecaca;
  border-color: var(--danger-border);
  background: rgba(127, 29, 29, 0.2);
}

.danger-button:hover {
  background: rgba(127, 29, 29, 0.32);
}

.form-grid {
  display: grid;
  gap: 1.75rem 1.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel > form.form-grid:not(.top-gap),
.panel > .form-grid:not(.top-gap) {
  margin-top: 1.35rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(320px, 1.15fr);
  gap: 1.6rem;
  align-items: start;
}

.contact-info-card,
.contact-form {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.42);
}

.contact-info-card h3 {
  margin-bottom: 0.75rem;
}

.contact-info-card p {
  color: var(--ink);
  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.34);
  color: var(--ink);
}

.inline-check input {
  width: auto;
}

.terms-panel {
  max-width: 980px;
  margin-inline: auto;
}

.terms-document {
  max-height: min(58vh, 680px);
  overflow: auto;
  margin: 1.4rem 0;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: rgba(15, 23, 42, 0.5);
  white-space: pre-wrap;
  line-height: 1.55;
}

.terms-accept-form {
  display: grid;
  gap: 1rem;
}

.compact-notice {
  display: inline-block;
  margin-bottom: 0;
}

.botcheck-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-grid.narrow {
  max-width: 460px;
}

.form-grid label,
.meta div,
.field {
  display: grid;
  gap: 0.78rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.action-row {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  flex-wrap: wrap;
}

.checkbox-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.42);
}

.checkbox-panel strong {
  color: var(--off-white);
}

input,
select,
textarea {
  width: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--off-white);
  background: rgba(15, 23, 42, 0.62);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green-border);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

textarea {
  resize: vertical;
  min-height: 8rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
  min-width: 640px;
  font-size: 0.88rem;
}

th,
td {
  text-align: left;
  padding: 1.05rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: inset 0 -1px 0 var(--border);
}

.audit-table {
  min-width: 780px;
  font-size: 0.8rem;
}

.audit-table th:first-child,
.audit-table td:first-child {
  min-width: 10.5rem;
}

.audit-table th:nth-child(2),
.audit-table td:nth-child(2) {
  min-width: 8.6rem;
}

.audit-table th:last-child,
.audit-table td:last-child {
  min-width: 8.8rem;
  white-space: nowrap;
}

tbody tr:hover {
  background: rgba(34, 197, 94, 0.04);
}

.meta {
  display: grid;
  gap: 1.1rem;
  margin: 1.45rem 0 1.9rem;
}

.roomy-meta {
  gap: 1.35rem;
}

.meta dt {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.meta dd {
  margin: 0;
  color: var(--off-white);
}

.activity {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity li {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.activity strong {
  color: var(--off-white);
}

.activity span,
.activity small {
  color: var(--ink);
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 1.55rem;
  align-items: end;
  margin-bottom: 2rem;
  min-width: 0;
}

.section-header > div {
  min-width: 0;
}

.section-header h2 + p {
  margin-top: 0.9rem;
}

.panel-help,
.page-help {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 3;
  width: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0;
  border-color: var(--border-strong);
  border-radius: 999px;
  color: var(--off-white);
  background: rgba(15, 23, 42, 0.62);
  font-weight: 700;
}

.page-help-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.page-help {
  position: static;
  top: auto;
  right: auto;
  float: none;
}

.modal-body {
  color: var(--ink);
  line-height: 1.75;
  white-space: pre-line;
}

.panel.has-help,
.hero-panel.has-help {
  padding-right: clamp(2.7rem, 4vw, 4.2rem);
}

.inline-form {
  display: inline-flex;
  gap: 1rem;
  align-items: center;
  margin: 0;
  flex-wrap: wrap;
}

.top-gap {
  margin-top: 1.95rem;
}

.top-section-gap {
  margin-top: 2.7rem;
}

pre {
  overflow: auto;
  padding: 1rem;
  color: var(--ink);
}

.debug-panel {
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}

.debug-panel summary {
  cursor: pointer;
  color: var(--off-white);
  font-weight: 600;
}

.steps {
  margin: 0;
  padding-left: 1.6rem;
  color: var(--ink);
}

.steps li {
  margin-bottom: 1.55rem;
  padding-left: 0.2rem;
  line-height: 1.78;
}

.muted-copy {
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.75;
}

.callout-card {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--green-border);
  border-radius: var(--radius-md);
  background: rgba(34, 197, 94, 0.08);
  box-shadow: var(--shadow-soft);
}

.callout-card p {
  margin: 0;
  color: var(--off-white);
}

.strong-callout {
  margin: 1.35rem 0 1.5rem;
}

code {
  font-family: SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #c9f8d8;
}

.toggle-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
  color: var(--ink);
}

.toggle-stack {
  display: inline-flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.toggle-inline input {
  width: auto;
  margin: 0;
  accent-color: var(--green);
}

.modal-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 2rem);
  margin: 0;
  padding: 0;
  overflow: auto;
  transform: translate(-50%, -50%);
  color: var(--off-white);
}

.modal-dialog::backdrop {
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.dialog-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.dialog-header h2 {
  margin-top: 0.35rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.icon-button {
  white-space: nowrap;
}

.secret-row {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.secret-toggle {
  min-height: 2.5rem;
  min-width: 2.5rem;
  padding: 0.55rem;
}

.secret-toggle svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.password-match-hint {
  margin: 0;
  color: var(--muted);
}

.password-match-hint[data-state="match"] {
  color: #c9f8d8;
}

.password-match-hint[data-state="mismatch"] {
  color: #fecaca;
}

button:disabled,
select:disabled,
input:disabled,
textarea:disabled {
  background: rgba(51, 65, 85, 0.34) !important;
  border-color: var(--border) !important;
  color: var(--muted) !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 1;
}

button:disabled:hover,
.button-link[aria-disabled="true"]:hover {
  transform: none;
}

.bottom-console {
  position: fixed;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 70;
  display: grid;
  justify-items: end;
  pointer-events: none;
}

.console-toggle {
  box-shadow: var(--shadow-soft);
  pointer-events: auto;
}

.console-panel {
  display: none;
  width: min(920px, calc(100vw - 2.4rem));
  height: 220px;
  max-height: calc(100vh - 7rem);
  margin-bottom: 0.85rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 0.65rem;
  background: #050505;
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.console-panel.open {
  display: block;
}

.terminal-surface {
  display: flex;
  min-height: 13rem;
  height: 100%;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 0.65rem;
  background: #050505;
  color: #dbeafe;
  font-family: SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.console-output {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #dbeafe;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.console-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}

.console-prompt {
  flex: 0 0 auto;
  color: #93c5fd;
  font-family: inherit;
  font-size: 0.82rem;
  white-space: nowrap;
}

.console-input {
  flex: 1;
  min-height: 1.7rem;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent !important;
  color: #f8fafc !important;
  font-family: inherit;
  font-size: 0.82rem;
  box-shadow: none;
}

.console-input::placeholder {
  color: rgba(219, 234, 254, 0.46);
}

.ssh-console-panel {
  max-width: 980px;
  margin-inline: auto;
}

.ssh-console-panel .terminal-surface {
  min-height: 24rem;
}

.terminal-window-body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  background: #050505;
  color: #dbeafe;
}

.ssh-console-screen {
  width: 100vw;
  height: 100vh;
  padding: 0;
  background: #050505;
}

.ssh-console-screen .terminal-surface {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0.9rem;
  border: 0;
  border-radius: 0;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}

.check-grid {
  display: grid;
  gap: 0.6rem;
  max-height: 11rem;
  overflow: auto;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.42);
}

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1.2rem;
  color: var(--ink);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1120px) {
  .site-header-inner {
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    gap: 0.55rem;
  }

  .nav {
    gap: 0.22rem;
  }

  .nav-link {
    padding-inline: 0.5rem;
    font-size: 0.8rem;
  }

  .brand-descriptor {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .site-shell {
    padding-top: 4.85rem;
  }

  .site-header-inner,
  .main,
  .site-footer {
    width: min(100vw - 1rem, var(--content-width));
  }

  .hero-panel,
  .two-up,
  .stats-grid,
  .form-grid,
  .contact-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .footer-note {
    text-align: left;
  }

  .hero-panel {
    align-items: start;
  }

  .section-header,
  .dialog-header {
    flex-direction: column;
    align-items: stretch;
  }

  .auth {
    justify-content: flex-start;
    text-align: left;
  }

  .table-wrap table {
    min-width: 700px;
  }
}

@media (max-width: 720px) {
  .site-shell {
    padding-top: 9.1rem;
  }

  .site-header-inner {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 0.8rem 0;
    gap: 0.75rem;
  }

  .main {
    padding: 1.7rem 0 3.4rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nav-link {
    min-height: 2.35rem;
    padding-inline: 0.7rem;
    font-size: 0.84rem;
  }

  .auth {
    justify-content: flex-start;
    text-align: left;
    flex-wrap: wrap;
  }

  .hero-panel,
  .panel,
  .stat-card,
  .loading-card,
  .dialog-form {
    padding: 1.5rem;
  }

  .button-link,
  button {
    width: 100%;
  }

  .panel-help,
  .page-help {
    width: 2.15rem;
    min-width: 2.15rem;
  }

  .page-help {
    position: static;
    float: none;
    width: 2.15rem;
    margin-bottom: 0;
  }

  .page-help-row {
    justify-content: flex-start;
  }

  .table-wrap {
    width: calc(100% + 1.5rem);
    margin-inline: -0.75rem;
    padding-inline: 0.75rem;
  }

  .table-wrap table {
    min-width: 620px;
    font-size: 0.78rem;
  }

  th,
  td {
    padding: 0.78rem 0.62rem;
  }

  .action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .bottom-console {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
  }

  .console-panel {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
