:root {
  --hn-navy-900: #102a43;
  --hn-navy-700: #243b53;
  --hn-navy-500: #334e68;
  --hn-accent: #0b6e4f;
  --hn-accent-hover: #095c42;
  --hn-text: #1a2332;
  --hn-muted: #5c6b7a;
  --hn-line: #d8dee6;
  --hn-danger: #b42318;
}

html, body { font-family: Inter, "Segoe UI", Roboto, sans-serif; }

.hn-appbar .hn-brand { letter-spacing: .2px; }
.hn-brand-sub { font-weight: 400; opacity: .75; }
.hn-user-chip { color: inherit !important; }
.hn-drawer { border-right: 1px solid var(--mud-palette-lines-default); }
.hn-nav-section { color: var(--mud-palette-text-secondary); display: block; letter-spacing: .08em; }

.hn-page-header { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.hn-page-header h1 { margin: 0; }
.hn-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hn-toolbar .mud-input-control { min-width: 180px; max-width: 280px; }
.hn-stat-value { font-size: 1.9rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hn-stat-label { color: var(--mud-palette-text-secondary); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.hn-mono { font-family: Consolas, "Cascadia Mono", monospace; }
.hn-code-box { font-family: Consolas, "Cascadia Mono", monospace; font-size: 1.35rem; letter-spacing: .12em; background: #0f1720; color: #e6edf3; padding: 14px 18px; border-radius: 8px; text-align: center; user-select: all; }
.hn-table .mud-table-cell { white-space: nowrap; }
.hn-wrap { white-space: normal !important; word-break: break-word; }
.hn-json { white-space: pre-wrap; font-family: Consolas, monospace; font-size: .78rem; max-height: 320px; overflow: auto; }

/* Login (static SSR) — mirrors the reference gateway UX: navy gradient + centered card */
.hn-auth-shell {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: linear-gradient(160deg, var(--hn-navy-900) 0%, var(--hn-navy-700) 55%, var(--hn-navy-500) 100%);
}
.hn-auth-card {
  width: 100%; max-width: 400px; background: #fff; border-radius: 12px; padding: 28px 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25); color: var(--hn-text);
}
.hn-auth-logo { width: 44px; height: 44px; border-radius: 10px; background: var(--hn-navy-900); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; }
.hn-auth-card h1 { font-size: 1.5rem; margin: 0 0 4px; }
.hn-auth-sub { color: var(--hn-muted); margin: 0 0 18px; }
.hn-auth-card label { display: block; font-weight: 600; font-size: .9rem; margin: 12px 0 6px; }
.hn-auth-card input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--hn-line); border-radius: 6px; font-size: 1rem; }
.hn-auth-card input:focus { outline: 2px solid #8fb3d9; border-color: #8fb3d9; }
.hn-password { position: relative; }
.hn-password input { padding-right: 72px; }
.hn-password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--hn-navy-500); font-weight: 600; cursor: pointer; padding: 6px 8px; }
.hn-auth-submit { display: block; width: 100%; margin-top: 18px; padding: 11px; border: 0; border-radius: 6px; background: var(--hn-accent); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; text-align: center; text-decoration: none; }
.hn-auth-submit:hover { background: var(--hn-accent-hover); }
.hn-auth-error { background: #fef3f2; color: var(--hn-danger); border: 1px solid #fecdca; border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; }
.hn-auth-foot { color: var(--hn-muted); font-size: .8rem; margin: 16px 0 0; text-align: center; }
