@layer foundation {
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/studio/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/studio/fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/studio/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/studio/fonts/inter-700.woff2") format("woff2");
}
:root {
  --color-bg: #f4f3f0;
  --color-bg-deep: #eae8e3;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-secondary: #5c5c5c;
  --color-accent: #1f4b7a;
  --color-accent-hover: #163a5f;
  --color-accent-soft: rgba(31, 75, 122, 0.08);
  --color-border: #e2dfd8;
  --color-border-strong: #d2cec4;
  --shadow-soft: 0 1px 3px rgba(26, 26, 26, 0.06);
  --shadow-card: 0 2px 8px rgba(26, 26, 26, 0.06);
  --shadow-lift: 0 8px 24px rgba(26, 26, 26, 0.08);
  --focus-ring: rgba(31, 75, 122, 0.4);
  --radius-card: 12px;
  --radius-button: 8px;
  --font: "Inter", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --header-h: 64px;
  --danger: #8a2f2f;
  --ok: #1f5c3a;
  --grid-line: rgba(31, 75, 122, 0.06);
  --color-placeholder: #7a746c;
  --ok-tint: rgba(31, 92, 58, 0.1);
  --ok-line: rgba(31, 92, 58, 0.32);
  --ok-line-strong: rgba(31, 92, 58, 0.35);
  --danger-tint: rgba(138, 47, 47, 0.08);
  --danger-tint-strong: rgba(138, 47, 47, 0.09);
  --danger-line: rgba(138, 47, 47, 0.32);
  --scrim: rgba(26, 26, 26, 0.42);
  --shadow-sheet: rgba(26, 26, 26, 0.5);
  --touch-min: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  position: relative;
}

body.mode-auth {
  background: var(--color-bg);
}

body.mode-app .hub-frame {
  opacity: 0.45;
  mask-image: radial-gradient(ellipse 90% 60% at 70% -10%, #000 10%, transparent 70%);
}

.hub-frame {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 20%, transparent 75%);
  opacity: 1;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-hover);
}

button,
input,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-surface);
  color: var(--color-text);
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  z-index: 100;
}

.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
}

.container {
  width: 100%;
  padding: 0 20px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 4px rgba(26, 26, 26, 0.04);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--color-text);
  text-decoration: none;
}

.brand img {
  height: 32px;
  width: auto;
}

@media (max-width: 767px) {
  .brand img {
    height: 28px;
  }
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.brand-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  letter-spacing: 0.02em;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 720px) {
  .header-nav {
    display: flex;
  }
}

.header-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  min-height: 40px;
  border-radius: 8px;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}

.header-nav a[hidden] {
  display: none;
}

.header-nav a:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.header-nav a.is-active {
  background: var(--color-accent);
  color: #ffffff;
}

.header-nav a.is-active:hover {
  background: var(--color-accent-hover);
}


.header-nav a {
  justify-content: center;
  padding: 8px;
  width: 40px;
  height: 40px;
  gap: 0;
  min-height: 40px;
}

.header-nav a .nav-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  font-family: "Font Awesome 6 Free";
  font-size: 15px;
  line-height: 1;
  
  font-style: normal;
  font-weight: 900;
}

.header-actions {
  
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

@media (max-width: 575px) {
  
  #btn-sign-out {
    padding: 6px 10px;
  }
  #btn-sign-out .sign-out-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
}

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

.session-photo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  overflow: hidden;
  flex: 0 0 auto;
  transition: border-color 0.15s ease;
}

.session-photo[hidden] {
  display: none ;
}

.session-photo:hover {
  border-color: var(--color-accent);
}

.session-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.session-photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-accent);
}

.session-photo.has-photo .session-photo-fallback {
  display: none;
}

.session-photo:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

#btn-sign-out {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}

#btn-sign-out .sign-out-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  background-color: currentColor;
  
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2zM5 8h6a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2zM5 8h6a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}

.btn-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font);
}

@media (min-width: 720px) {
  .btn-nav-toggle {
    display: none;
  }
}

.btn-nav-toggle:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 14px;
}

.nav-toggle-icon span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .nav-toggle-icon span {
    transition: transform 140ms ease, opacity 140ms ease;
  }
}

body.hub-nav-open .nav-toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
body.hub-nav-open .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}
body.hub-nav-open .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

body.hub-nav-open {
  overflow: hidden;
}

body.hub-nav-open .header-nav:not(.is-hidden) {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  position: fixed;
  top: var(--header-h, 60px);
  left: 0;
  right: 0;
  z-index: 39;
  max-height: calc(100dvh - var(--header-h, 60px));
  overflow-y: auto;
  padding: 12px 16px;
  gap: 4px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.08);
}

body.hub-nav-open .header-nav a {
  width: auto;
  min-height: 48px;
  justify-content: flex-start;
  padding: 10px 16px;
  gap: 10px;
}

body.hub-nav-open .header-nav .nav-label {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: none;
  white-space: nowrap;
  border: 0;
  opacity: 1;
}

.nav-backdrop:not([hidden]) {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 38;
  background: rgba(26, 26, 26, 0.28);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 22px;
  border-radius: var(--radius-button);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  font-family: var(--font);
}

.btn-compact {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.btn:hover {
  transform: translateY(-1px);
}
.btn:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #ffffff;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.view {
  padding: 24px 0 48px;
  min-height: calc(100vh - var(--header-h) - 80px);
}

@media (min-width: 768px) {
  .view {
    padding: 32px 0 64px;
  }
}

.form-status {
  margin: 0 0 var(--space-2);
  padding: 12px 16px;
  border-radius: var(--radius-button);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.form-status.is-error {
  color: var(--danger);
  border-color: #e0c4c4;
  background: #fbf5f5;
}

.form-status.is-ok {
  color: var(--ok);
  border-color: #c7dbcf;
  background: #f4faf6;
}

.text-link {
  font-weight: 600;
  font-size: 0.9375rem;
}

.site-footer {
  margin-top: auto;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-inner p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-accent);
}

[hidden],
.is-hidden {
  display: none ;
}

@media (max-width: 767px) {
  :root {
    --header-h: 56px;
  }
  .brand img {
    height: 28px;
  }
  
  .btn,
  input,
  select,
  .btn-nav-toggle,
  .hx-dialog-x {
    min-height: var(--touch-min, 44px);
  }
  .data-table td,
  .data-table th {
    padding: 10px 10px;
    font-size: 0.8125rem;
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .hx-pane {
    padding: 16px;
  }
  .hx-signin > .form-status {
    margin: 16px 16px 0;
  }
  .hx-dialog-card {
    max-width: 100%;
    margin: 0 12px;
    border-radius: 16px;
  }
  .hx-feed-actions {
    flex-wrap: wrap;
    gap: 6px;
  }
  .hx-feed-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 12px;
    font-size: 0.78125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
  .site-header {
    backdrop-filter: none;
  }
}


.hx-shell {
  padding-bottom: 8px;
}


.hx-hero {
  position: relative;
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  margin-bottom: 24px;
}

.hx-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hx-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--color-accent);
}

.hx-hero h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-text);
}

.hx-lead {
  margin: 10px 0 0;
  max-width: 60ch;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.hx-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}


.hx-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1023px) {
  .hx-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 539px) {
  .hx-metrics {
    grid-template-columns: 1fr;
  }
}

.hx-metric {
  position: relative;
  padding: 20px 22px;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hx-metric:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-lift);
}

.hx-metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  opacity: 0.5;
}

.hx-metric-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.hx-metric-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
}

.hx-metric-value.is-accent {
  color: var(--color-accent);
}

.hx-metric-value.is-ok {
  color: var(--ok);
}

.hx-metric-value.is-danger {
  color: var(--danger);
}

.hx-metric-sub {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}


.hx-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hx-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-lift);
}

.hx-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.hx-card-label {
  flex: 1;
  min-width: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.hx-card-meta {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}

.hx-card-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  background: var(--color-bg);
}

.hx-card-body {
  padding: 20px 22px;
}

.hx-card-intro {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
}


.hx-row {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 899px) {
  .hx-row {
    grid-template-columns: 1fr;
  }
}

.hx-section {
  margin-bottom: 24px;
}


.hx-stack {
  display: grid;
  gap: 10px;
}

.hx-doc {
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg);
}

.hx-doc h3 {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text);
}

.hx-doc p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.hx-doc code,
.hx-card-intro code {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-deep);
  font-family: var(--mono);
  font-size: 0.71875rem;
  color: var(--color-text);
}


.hx-table-wrap {
  overflow-x: auto;
}

.hx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.hx-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-strong);
  white-space: nowrap;
}

.hx-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  color: var(--color-text);
}

.hx-table tbody tr:last-child td {
  border-bottom: 0;
}

.hx-table tbody tr:hover td {
  background: var(--color-accent-soft);
}

.hx-table-empty {
  text-align: center;
  color: var(--color-text-secondary);
  padding: 28px 16px ;
}


.hx-keyvals {
  display: grid;
  margin: 0;
}

.hx-keyval {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.hx-keyval:last-child {
  border-bottom: 0;
}

.hx-keyval dt {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.hx-keyval dd {
  margin: 0;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
}


.hx-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 16px;
  border: 1px dashed var(--color-border-strong);
  border-radius: 10px;
  background: var(--color-bg);
  text-align: center;
}

.hx-empty p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

@media (max-width: 767px) {
  .hx-hero {
    padding: 24px 0 20px;
  }
  .hx-hero h1 {
    font-size: 1.4375rem;
  }
  .hx-metric {
    padding: 16px 18px;
  }
  .hx-metric-value {
    font-size: 1.625rem;
  }
  .hx-card-head {
    padding: 12px 16px;
  }
  .hx-card-body {
    padding: 16px;
  }
}


.hx-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;
}



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

.hx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--space-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hx-eyebrow-mark {
  width: 22px;
  height: 2px;
  background: var(--color-accent);
}

.hx-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.hx-kicker {
  margin: 0 0 2px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.hx-meta,
.hx-count {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}

.hx-count {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg);
  font-weight: 600;
}


body.mode-auth {
  background: var(--color-bg);
}

body.mode-auth .hub-frame {
  opacity: 0.28;
}

.hx-auth {
  width: 100%;
  padding: 48px 0 64px;
  min-height: calc(100vh - var(--header-h) - 96px);
}

@media (min-width: 900px) {
  .hx-auth {
    padding: 60px 0 80px;
  }
}

.hx-auth-shell {
  max-width: 880px;
}

.hx-auth-host {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}

.hx-auth-shell h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hx-auth-lead {
  margin: 0 0 32px;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.hx-signin {
  padding: 0;
  overflow: hidden;
}

.hx-signin > .form-status {
  margin: 24px 24px 0;
}

@media (min-width: 720px) {
  .hx-signin > .form-status {
    margin: 32px 32px 0;
  }
}

.hx-signin-panes {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hx-pane {
  padding: 24px 28px;
  min-width: 0;
}

@media (min-width: 720px) {
  .hx-pane {
    padding: 28px 32px;
  }
}

.hx-pane + .hx-pane {
  border-top: 1px solid var(--color-border);
}

.hx-pane h2 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hx-pane-copy {
  margin: 0 0 20px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.bp-mark {
  flex: 0 0 auto;
}

.hx-bp-device {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: var(--color-accent);
  font-weight: 500;
}

.hx-bp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.hx-text-btn {
  background: none;
  border: 0;
  color: var(--color-text-secondary);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.hx-text-btn:hover {
  color: var(--color-accent);
}

.text-link {
  font-weight: 600;
  font-size: 0.9375rem;
}

.hx-field {
  margin-bottom: var(--space-2);
}

.hx-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.hx-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-button);
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-surface);
}

.hx-field input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.hx-password {
  position: relative;
}

.hx-password input {
  padding-right: 70px;
}

.hx-reveal {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
}

.hx-reveal:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.hx-forgot {
  margin: 8px 0 0;
}

.hx-caps {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  color: var(--danger);
  font-weight: 500;
}

.hx-btn-label {
  position: relative;
}

.hx-signin-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.hx-signin-foot p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

@media (min-width: 720px) {
  .hx-signin-foot {
    padding: 16px 32px;
  }
}


.hx-console {
  padding: 24px 0 48px;
}

@media (min-width: 768px) {
  .hx-console {
    padding: 32px 0 64px;
  }
}

.hx-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 720px) {
  .hx-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.hx-bar-copy {
  max-width: 600px;
}

.hx-bar-copy h1 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hx-bar-lead {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.hx-bar-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hx-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
}

.hx-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border-strong);
  flex: 0 0 auto;
}

.hx-live[data-state="live"] .hx-live-dot {
  background: var(--ok);
}

.hx-live[data-state="error"] .hx-live-dot {
  background: var(--danger);
}

.hx-live[data-state="live"] #live-label {
  color: var(--ok);
}

.hx-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease;
}

.hx-tool:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.hx-tool:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.hx-trial-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  margin-bottom: 24px;
  background: var(--color-accent-soft);
  border: 1px solid rgba(31, 75, 122, 0.2);
  border-radius: var(--radius-card);
}

.hx-trial-banner-copy p {
  margin: 0;
}

.hx-trial-banner-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
}

.hx-trial-banner-body {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}


.hx-kpis {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 480px) {
  .hx-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .hx-kpis {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.hx-kpi {
  min-width: 0;
  padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.hx-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.hx-kpi-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.hx-kpi-value {
  display: block;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.hx-kpi-value.is-text {
  font-size: 1.125rem;
}

.hx-kpi-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.hx-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hx-delta.is-up {
  color: var(--ok);
  background: rgba(31, 92, 58, 0.1);
}

.hx-delta.is-down {
  color: var(--danger);
  background: rgba(138, 47, 47, 0.08);
}


.hx-split {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}

@media (min-width: 900px) {
  .hx-split {
    grid-template-columns: 1fr 1fr;
  }
}

.hx-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 600px) {
  .hx-card-head {
    padding: 20px 24px;
  }
}

.hx-card-head-stack {
  flex-direction: column;
  align-items: stretch;
}

.hx-card-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.hx-outcome-pair {
  display: grid;
  gap: 12px;
  padding: 16px 20px;
}

@media (min-width: 600px) {
  .hx-outcome-pair {
    grid-template-columns: 1fr 1fr;
    padding: 20px 24px;
  }
}

.hx-outcome {
  min-width: 0;
  padding: 14px 16px;
  border-radius: var(--radius-card);
}

.hx-outcome.is-yes {
  border: 1px solid rgba(31, 92, 58, 0.32);
  background: rgba(31, 92, 58, 0.06);
}

.hx-outcome.is-no {
  border: 1px solid rgba(138, 47, 47, 0.32);
  background: rgba(138, 47, 47, 0.06);
}

.hx-outcome-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.hx-outcome strong {
  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.hx-outcome-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}


.hx-ratio {
  display: flex;
  height: 8px;
  margin: 0 20px 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--color-bg-deep);
}

@media (min-width: 600px) {
  .hx-ratio {
    margin: 0 24px 8px;
  }
}

.hx-ratio-yes {
  background: var(--ok);
  transition: width 0.3s ease;
}

.hx-ratio-no {
  background: var(--danger);
  transition: width 0.3s ease;
}

.hx-ratio-note {
  margin: 0 20px 16px;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

@media (min-width: 600px) {
  .hx-ratio-note {
    margin: 0 24px 16px;
  }
}


.hx-chart {
  padding: 0 20px 20px;
}

@media (min-width: 600px) {
  .hx-chart {
    padding: 0 24px 24px;
  }
}

#chart {
  width: 100%;
  height: 120px;
  display: block;
}

.hx-chart-empty {
  margin: 0;
  padding: 40px 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}


.hx-feed {
  margin-bottom: 24px;
}

.hx-feed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
}

@media (min-width: 600px) {
  .hx-feed-head {
    padding: 20px 24px;
  }
}

.hx-feed-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.hx-feed-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hx-seg-group {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.hx-seg {
  min-height: 34px;
  padding: 5px 12px;
  border: 0;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.hx-seg:not(:last-child) {
  border-right: 1px solid var(--color-border);
}

.hx-seg:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.hx-seg.is-active {
  background: var(--color-accent);
  color: #ffffff;
}

.hx-seg:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
}

#feed-filter {
  min-height: 34px;
  min-width: 160px;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.8125rem;
  color: var(--color-text);
  background: var(--color-surface);
}

#feed-filter:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--focus-ring);
}

.hx-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.hx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  min-width: 480px;
}

.hx-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  padding: 8px 16px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.hx-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.hx-table tbody tr:hover td {
  background: rgba(31, 75, 122, 0.03);
}

.hx-table tbody tr:last-child td {
  border-bottom: 0;
}

.hx-empty {
  text-align: center;
  padding: 32px 16px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.hx-error {
  color: var(--danger);
  font-weight: 500;
}

.hx-ok {
  color: var(--ok);
  font-weight: 500;
}

.hx-mono {
  font-family: var(--mono);
  font-size: 0.75rem;
  word-break: break-all;
}

.hx-time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-secondary);
}

.hx-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hx-badge.is-ok {
  color: var(--ok);
  background: #e5f0e7;
}

.hx-badge.is-error {
  color: var(--danger);
  background: #f3e4e1;
}

.hx-badge.is-idle {
  color: var(--color-text-secondary);
  background: #ece9e3;
}

.hx-feed-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--color-border);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.hx-feed-foot span {
  font-weight: 500;
}

.hx-credit {
  margin: 0;
  padding: 8px 0 0;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  text-align: center;
}

.hx-credit kbd {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  border: 1px solid var(--color-border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--color-bg);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-align: center;
}


.hx-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(26, 26, 26, 0.42);
}

.hx-sheet-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-lift);
  max-height: 90vh;
  overflow-y: auto;
}

.hx-sheet-card h2 {
  margin: 0 0 var(--space-2);
  font-size: 1.125rem;
  font-weight: 600;
}

.hx-dialog-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  border-radius: 6px;
}

.hx-dialog-x:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.hx-dialog-x:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.hx-bp-help p {
  margin: 0 0 12px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.hx-bp-help p:last-child {
  margin-bottom: 0;
}

.hx-shortcuts {
  margin: 0 0 var(--space-3);
}

.hx-shortcuts > div {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.hx-shortcuts > div:last-child {
  border-bottom: 0;
}

.hx-shortcuts dt {
  flex: none;
  width: 56px;
}

.hx-shortcuts dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.hx-shortcuts kbd {
  display: inline-block;
  min-width: 20px;
  padding: 2px 7px;
  border: 1px solid var(--color-border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--color-bg);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-align: center;
}


.hx-offer {
  z-index: 70;
}

.hx-offer.is-arming {
  pointer-events: none;
}

.hx-offer.is-arming .hx-offer-card {
  pointer-events: auto;
}

.hx-offer-card {
  max-width: 440px;
  padding: 28px 32px 32px;
}

.hx-offer-card .hx-kicker {
  margin: 0 40px 8px 0;
}

.hx-offer-stat {
  margin: 0 0 8px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-text-secondary);
}

.hx-offer-stat strong {
  display: block;
  margin: 0 0 2px;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.hx-offer-card h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hx-offer-copy {
  margin: 0 0 24px;
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--color-text-secondary);
}

.hx-offer-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

@media (prefers-reduced-motion: no-preference) {
  .hx-offer:not(.is-hidden) .hx-offer-card {
    animation: hx-offer-in 180ms ease-out;
  }
}

@keyframes hx-offer-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    backdrop-filter: none;
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 56px;
  }
}




body.mode-auth {
  background: var(--color-bg);
}

body.mode-auth .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
}

body.mode-auth .hub-frame {
  opacity: 0.22;
}

.hx-auth {
  min-height: auto;
  padding: 0;
  display: block;
  align-items: stretch;
}


.hx-auth-redesign,
.hx-auth-shell {
  display: contents;
}

.hx-auth-intro {
  display: none;
}

.hx-auth-main {
  min-width: 0;
  width: 100%;
}


.hx-auth-main .hx-signin {
  height: auto;
  overflow: visible;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.hx-signin-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.hx-signin-head p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hx-signin-head h2 {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hx-auth-main .hx-signin > .form-status {
  margin: 16px 32px 0;
}


.hx-auth-main .hx-signin-panes {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: var(--color-surface);
}

.hx-auth-main .hx-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  padding: 24px 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hx-auth-main .hx-pane + .hx-pane {
  border-top: 1px solid var(--color-border);
}

.hx-auth-main .hx-pane:first-child,
.hx-auth-main .hx-pane:nth-child(2),
.hx-auth-main .hx-pane:last-child {
  border-right: 0;
  border-bottom: 0;
}


.hx-auth-main .hx-pane-primary {
  grid-column: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  min-height: 0;
  padding: 28px 32px;
  background: linear-gradient(180deg, var(--color-accent-soft), transparent 70%);
}

.hx-auth-main .hx-pane-primary::after,
.hx-auth-main .hx-pane-primary::before {
  content: none ;
  display: none ;
}

.hx-method-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hx-pane-copy-wrap,
.hx-pane-action,
.hx-auth-main .hx-pane form {
  min-width: 0;
  width: 100%;
}

.hx-auth-main .hx-pane h2 {
  margin: 0 0 6px;
  color: var(--color-text);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.hx-auth-main .hx-pane-copy {
  max-width: 42rem;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.55;
}

.hx-pane-action,
.hx-auth-main .hx-pane form {
  margin-top: 0;
}

.hx-auth-main .hx-pane-primary .hx-pane-action {
  margin-top: 4px;
}


.hx-auth-main .btn-boundproof,
.hx-auth-main #btn-boundproof {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.25;
  border-radius: var(--radius-button);
}

.hx-auth-main .btn-boundproof span,
.hx-auth-main #btn-boundproof span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.hx-auth-main .btn-block {
  min-height: 48px;
  border-radius: var(--radius-button);
}

.hx-auth-main .hx-field + .hx-field,
.hx-auth-main .hx-field + .btn,
.hx-auth-main .hx-password + .hx-forgot {
  margin-top: 14px;
}

.hx-auth-main input {
  min-height: 48px;
  border-radius: var(--radius-button);
  background: var(--color-surface);
}

.hx-auth-main .hx-signin-foot {
  padding: 18px 32px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.hx-auth-main .hx-signin-foot p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.hx-pane-agent {
  background: transparent;
}

#agent-code {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hx-bp-device {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  color: var(--color-accent);
  font-weight: 500;
}

@media (max-width: 760px) {
  .hx-signin-head,
  .hx-auth-main .hx-pane,
  .hx-auth-main .hx-pane-primary,
  .hx-auth-main .hx-signin-foot {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hx-auth-main .hx-signin > .form-status {
    margin-left: 20px;
    margin-right: 20px;
  }

  .hx-auth-main .hx-pane-copy {
    max-width: none;
  }
}


body.mode-auth .hx-auth {
  display: block;
  align-items: stretch;
  min-height: auto;
  padding: 0;
}


:root {
  --icon-stats: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M0 1.5A1.5 1.5 0 0 1 1.5 0h2A1.5 1.5 0 0 1 5 1.5v13a1.5 1.5 0 0 1-1.5 1.5h-2A1.5 1.5 0 0 1 0 14.5v-13zm6.5 4A1.5 1.5 0 0 1 8 4h2a1.5 1.5 0 0 1 1.5 1.5v9A1.5 1.5 0 0 1 10 16H8a1.5 1.5 0 0 1-1.5-1.5v-9zm6-5A1.5 1.5 0 0 1 14 0h2a1.5 1.5 0 0 1 1.5 1.5v14A1.5 1.5 0 0 1 16 17h-2a1.5 1.5 0 0 1-1.5-1.5v-14z'/%3E%3C/svg%3E");
  --icon-billing: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4zm2-1a1 1 0 0 0-1 1v1h14V4a1 1 0 0 0-1-1H2zm13 4H1v5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V7z'/%3E%3C/svg%3E");
  --icon-webhooks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 1A1.5 1.5 0 0 0 5 2.5v.885a4.74 4.74 0 0 1 .693-.348l.496-.224A1.5 1.5 0 1 0 6.5 1zM3.017 3.461A4.74 4.74 0 0 0 2.385 4.5H1.5A1.5 1.5 0 1 1 1.5 2h.885a4.74 4.74 0 0 1 .632 1.461zm.182 1.539c-.128.48-.21.973-.21 1.482v.069c0 .13.007.26.022.389l-1.194.21a1.5 1.5 0 1 0 .426 1.473l1.187-.268a4.14 4.14 0 0 1-.306-.804.478.478 0 0 1-.024-.176L1.154 8.749a1.5 1.5 0 1 0 .582 1.42l1.165-.443a3.96 3.96 0 0 0 .138.495l-.063.225a1.5 1.5 0 1 0 1.505-.01l.2-.765a4.74 4.74 0 0 0 .315-.656l.057-.18.69 3.24a1.5 1.5 0 1 0 1.047.25l-1.04-3.352a4.74 4.74 0 0 0 .37-.173l.5-.329a1.5 1.5 0 1 0 .128-1.02l-.436.287a4.6 4.6 0 0 0-.284.14l-.911-1.944a1.5 1.5 0 1 0-1.046.244l.718 1.724z'/%3E%3C/svg%3E");
  --icon-export: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5zm7.5-8a.5.5 0 0 1 .5.5v7.793l2.146-2.147a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 1 1 .708-.708L7.5 10.293V2.5a.5.5 0 0 1 .5-.5z'/%3E%3C/svg%3E");
  --icon-sso: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M12.5 16a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zm0-1a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5zm.5-2.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zm-9-7a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zm0-1a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
  --icon-analytics: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11 2a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V2zm-4 4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V6zm-4 4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-4z' fill-rule='evenodd'/%3E%3C/svg%3E");
  --icon-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M15 14s1 0 1-1-1-4-5-4-5 3-5 4 1 1 1 1h8zm-7.978-1L7 12.996c.001-.264.167-1.03.76-1.72C8.312 10.629 9.282 10 11 10c1.717 0 2.687.63 3.24 1.276.593.69.758 1.457.76 1.72l-.008.002-.014.002H7.022zM11 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm3-2a3 3 0 1 1-6 0 3 3 0 0 1 6 0zM6.936 9.28a5.88 5.88 0 0 0-1.23-.247A7.35 7.35 0 0 0 5 9c-4 0-5 3-5 4 0 .667.333 1 1 1h4.216A2.238 2.238 0 0 1 5 13c0-1.01.377-2.042 1.09-2.904.243-.294.526-.569.846-.816zM4.92 10A5.493 5.493 0 0 0 4 13H1c0-.26.164-1.03.76-1.724.545-.636 1.492-1.256 3.16-1.275zM1.5 5.5a3 3 0 1 1 6 0 3 3 0 0 1-6 0zm3-2a2 2 0 1 0 0 4 2 2 0 0 0 0-4z'/%3E%3C/svg%3E");
  --icon-admin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872l-.1-.34zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z'/%3E%3C/svg%3E");
  --icon-account: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0z'/%3E%3Cpath d='M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1z'/%3E%3C/svg%3E");
  --icon-blog: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 1.5A.5.5 0 0 1 2.5 1h11a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-1 0V2H3v12h3.5a.5.5 0 0 1 0 1h-4a.5.5 0 0 1-.5-.5v-13z'/%3E%3Cpath d='M5.5 10.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1H6a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1H6a.5.5 0 0 1-.5-.5zm6.5 0a.5.5 0 1 1 1 0v3a.5.5 0 0 1-1 0v-3zm-2 3a.5.5 0 1 1 1 0v1a.5.5 0 0 1-1 0v-1zm-2 1a.5.5 0 1 1 1 0v.5a.5.5 0 0 1-1 0v-.5z'/%3E%3C/svg%3E");
}




html,
body {
  overflow-x: hidden;
}


@media (max-width: 719px) {
  :root {
    
    --header-h: 56px;
  }

  .site-header,
  .header-inner {
    height: var(--header-h);
  }

  .header-inner {
    gap: 8px;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  
  .brand {
    gap: 8px;
    min-width: 0;
    flex: 0 1 auto;
  }
  .brand img {
    width: auto;
    max-width: 40vw;
    flex: 0 0 auto;
  }
  .brand-lockup {
    min-width: 0;
  }
  .brand-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40vw;
  }
  .brand-badge {
    display: none;
  }

  
  .header-actions {
    flex: 0 0 auto;
    gap: 4px;
    min-width: 0;
  }
  #btn-sign-out,
  .btn-nav-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    flex: 0 0 auto;
  }
  .btn-nav-toggle {
    margin-left: 2px;
  }
  .session-photo {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
  }

  
  .nav-toggle-text,
  #btn-sign-out .sign-out-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
}


@media (min-width: 720px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .header-inner > .brand {
    grid-column: 1;
    justify-self: start;
    
    min-width: 0;
    overflow: hidden;
  }

  .header-inner > .header-nav {
    grid-column: 2;
    justify-self: center;
  }

  .header-inner > .header-actions {
    grid-column: 3;
    justify-self: end;
    
    margin-left: 0;
    min-width: 0;
  }

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

  .brand-name {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}


@media (min-width: 720px) and (max-width: 899px) {
  .brand-badge {
    display: none;
  }
}


@media (min-width: 720px) and (max-width: 767px) {
  #btn-sign-out {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    flex: 0 0 auto;
  }
  #btn-sign-out .sign-out-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
}


@media (max-width: 360px) {
  .brand-name {
    display: none;
  }
}


@media (max-width: 719px) {
  body.hub-nav-open .header-nav:not(.is-hidden) {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 12px;
    gap: 8px;
    
    justify-content: center;
  }
  body.hub-nav-open .header-nav a {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    min-width: 0;
    min-height: 48px;
    padding: 0;
    gap: 0;
    justify-content: center;
    white-space: nowrap;
  }
  
  body.hub-nav-open .header-nav a .nav-icon {
    width: 20px;
    height: 20px;
    font-size: 17px;
  }
  body.hub-nav-open .header-nav .nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
    opacity: 1;
  }
}


.dash-view { padding: 0 0 56px; }
.dash-container { max-width: none; width: 100%; margin: 0 auto; padding: 0 24px; }
@media (max-width: 767px) { .dash-container { padding: 0 16px; } }

.dash-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--color-border); background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%); margin-bottom: 20px; }
.dash-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--color-accent) 0%, #6ea3d8 55%, var(--color-accent) 100%); opacity: .85; }
.dash-hero::after { content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(31,75,122,.10) 0%, rgba(31,75,122,0) 68%); pointer-events: none; }
.dash-hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding-top: 34px; padding-bottom: 26px; }
.dash-eyebrow { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 10px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent); }
.dash-eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 4px var(--color-accent-soft); }
.dash-greeting { margin: 0; font-size: 1.9rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.12; color: var(--color-text); text-align: center; text-wrap: balance; }
.dash-hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 72ch; }
.dash-account-info { margin: 8px auto 0; font-size: .875rem; color: var(--color-text-secondary); max-width: 62ch; text-align: center; text-wrap: balance; }
.dash-hero-side { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.dash-plan-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--color-border-strong); border-radius: 999px; background: #fff; font-size: .8125rem; font-weight: 600; color: var(--color-text); font-variant-numeric: tabular-nums; box-shadow: var(--shadow-soft); }
.dash-plan-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); flex: none; }
.dash-plan-dot.is-live { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-tint); }
.dash-plan-dot.is-trial { background: #d4a017; box-shadow: 0 0 0 3px rgba(212,160,23,.16); }
.dash-plan-dot.is-danger { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-tint); }
.dash-live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-bg); font-size: .75rem; font-weight: 600; color: var(--color-text-secondary); font-variant-numeric: tabular-nums; }
.dash-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #b9b4a8; flex: none; }
.dash-live-dot.is-live { background: var(--ok); animation: dash-pulse 2s infinite; }
.dash-live-dot.is-idle { background: #b9b4a8; }
.dash-live-dot.is-paused { background: #d4a017; }
.dash-live-dot.is-error { background: var(--danger); }
@keyframes dash-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(31,92,58,.35); } 50% { box-shadow: 0 0 0 5px rgba(31,92,58,0); } }
.dash-main { display: grid; gap: 18px; }

.dash-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 18px; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-soft); }
.dash-actions-hint { margin: 0; font-size: .8rem; color: var(--color-text-secondary); }
.dash-actions-hint kbd { display: inline-block; min-width: 18px; padding: 1px 6px; border: 1px solid var(--color-border-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--color-bg); font-family: var(--mono); font-size: .7rem; text-align: center; }
.dash-actions-btns { display: flex; gap: 8px; }
.dash-btn { padding: 8px 16px; border: 1px solid var(--color-accent); border-radius: var(--radius-button); background: var(--color-accent); color: #fff; font-size: .8rem; font-weight: 600; cursor: pointer; transition: background .15s, transform .15s; min-height: 38px; }
.dash-btn:hover { background: var(--color-accent-hover); transform: translateY(-1px); }
.dash-btn[aria-pressed="true"] { background: #d4a017; border-color: #d4a017; }
.dash-btn.is-ghost { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border-strong); }
.dash-btn.is-ghost:hover { border-color: var(--color-accent); color: var(--color-accent); background: var(--color-surface); }

.dash-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1023px) { .dash-metrics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 539px) { .dash-metrics { grid-template-columns: 1fr; } }
.dash-metric-card { position: relative; padding: 20px 22px 18px; border-radius: var(--radius-card); border: 1px solid var(--color-border); background: var(--color-surface); box-shadow: var(--shadow-card); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.dash-metric-card:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.dash-metric-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--color-border-strong); opacity: .7; }
.dash-metric-card.is-primary { border-color: rgba(31,75,122,.35); }
.dash-metric-card.is-primary::before { background: linear-gradient(90deg, var(--color-accent), #6ea3d8); opacity: 1; }
.dash-metric-card.is-primary .dash-metric-value { color: var(--color-accent); }
.dash-metric-label { display: block; margin: 0 0 8px; font-size: .6875rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--color-text-secondary); }
.dash-metric-value { display: block; font-size: 2.1rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--color-text); }
.dash-metric-value.is-text { font-size: 1.45rem; letter-spacing: -.02em; }
.dash-metric-sub { display: block; margin-top: 6px; font-size: .76rem; color: var(--color-text-secondary); }

.dash-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .dash-grid-2 { grid-template-columns: 1fr; } }
.dash-card { border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-card); overflow: hidden; }
.dash-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--color-border); background: linear-gradient(180deg, #fdfcfb 0%, var(--color-surface) 100%); }
.dash-card-label { display: block; font-size: .95rem; font-weight: 700; letter-spacing: -.01em; color: var(--color-text); }
.dash-card-sub { display: block; margin-top: 2px; font-size: .76rem; color: var(--color-text-secondary); }
.dash-card-badge, .dash-card-count { display: inline-flex; align-items: center; padding: 3px 12px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-bg); font-size: .72rem; font-weight: 700; color: var(--color-text-secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-card-badge { color: var(--color-accent); border-color: rgba(31,75,122,.3); background: var(--color-accent-soft); }

.dash-quota-vis { padding: 20px; }
.dash-quota-bar { position: relative; height: 12px; border-radius: 999px; background: var(--color-bg-deep); border: 1px solid var(--color-border); overflow: hidden; }
.dash-quota-bar-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--color-accent) 0%, #4d84bd 100%); transition: width .6s ease; }
.dash-quota-over { position: absolute; top: 0; bottom: 0; width: 0; background: repeating-linear-gradient(-45deg, var(--danger) 0 6px, #a84444 6px 12px); transition: width .6s ease; }
.dash-quota-labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 0; padding: 0; }
.dash-quota-stat { padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-bg); text-align: left; }
.dash-quota-stat dt { font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--color-text-secondary); }
.dash-quota-stat dd { margin: 4px 0 0; font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--color-text); }
.dash-quota-stat dd small { font-size: .7rem; font-weight: 500; color: var(--color-text-secondary); }

.dash-plan-detail { padding: 8px 20px 16px; }
.dash-plan-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--color-border); }
.dash-plan-row:last-child { border-bottom: 0; }
.dash-plan-row-label { font-size: .78rem; font-weight: 600; color: var(--color-text-secondary); }
.dash-plan-row-value { font-size: .88rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--color-text); text-align: right; }
.dash-plan-row-value.is-accent { color: var(--color-accent); }

.dash-tput-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 6px 0; border-bottom: 1px solid var(--color-border); }
@media (max-width: 767px) { .dash-tput-strip { grid-template-columns: repeat(2, 1fr); } }
.dash-tput-stat { padding: 14px 20px; border-left: 1px solid var(--color-border); }
.dash-tput-stat:first-child { border-left: 0; }
@media (max-width: 767px) { .dash-tput-stat { border-left: 0; border-top: 1px solid var(--color-border); padding: 12px 16px; } .dash-tput-stat:nth-child(-n+2) { border-top: 0; } }
.dash-tput-stat-label { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--color-text-secondary); }
.dash-tput-stat-value { display: block; margin-top: 4px; font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--color-text); }
.dash-tput-stat-value.is-ok { color: var(--ok); }
.dash-tput-stat-value.is-bad { color: var(--danger); }
.dash-chart-area { position: relative; padding: 20px 20px 8px; }
.dash-chart-svg { display: block; width: 100%; height: 210px; border: 1px solid var(--color-border); border-radius: 10px; background: linear-gradient(180deg, #fbfaf8 0%, #ffffff 70%); }
.dash-chart-bar { fill: url(#dash-chart-grad); }
.dash-chart-bar.is-error { fill: url(#dash-chart-grad-red); }
.dash-chart-base { stroke: var(--color-border-strong); stroke-width: 1; }
.dash-chart-axis { display: flex; justify-content: space-between; padding: 8px 4px 0; font-size: .7rem; color: var(--color-text-secondary); font-variant-numeric: tabular-nums; }
.dash-chart-empty { position: absolute; inset: 20px 20px 8px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--color-border-strong); border-radius: 10px; background: rgba(255,255,255,.75); font-size: .82rem; color: var(--color-text-secondary); }
.dash-tput-methods { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 20px 18px; }
.dash-tput-methods-label { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--color-text-secondary); }
.dash-tput-methods-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-tput-method-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 6px 4px 12px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-bg); font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--color-text); }
.dash-tput-method-count { padding: 2px 9px; border-radius: 999px; background: var(--color-accent); color: #fff; font-variant-numeric: tabular-nums; }

.dash-feed-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 20px; border-bottom: 1px solid var(--color-border); background: var(--color-bg); }
.dash-feed-filter { flex: 1 1 220px; max-width: 340px; padding: 9px 14px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-button); background: var(--color-surface); font-size: .82rem; color: var(--color-text); }
.dash-feed-filter:focus { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: var(--color-accent); }
.dash-segmented { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); }
.dash-seg { padding: 6px 16px; border: 0; border-radius: 999px; background: transparent; font-size: .76rem; font-weight: 700; color: var(--color-text-secondary); cursor: pointer; }
.dash-seg:hover { color: var(--color-text); }
.dash-seg.is-active { background: var(--color-text); color: #fff; }
.dash-table-wrap { overflow-x: auto; max-height: 420px; overflow-y: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.dash-table thead th { position: sticky; top: 0; z-index: 1; padding: 10px 16px; text-align: left; font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--color-text-secondary); background: var(--color-bg); border-bottom: 1px solid var(--color-border-strong); white-space: nowrap; }
.dash-table tbody td { padding: 11px 16px; border-bottom: 1px solid var(--color-border); vertical-align: middle; color: var(--color-text); }
.dash-table tbody tr:last-child td { border-bottom: 0; }
.dash-table tbody tr:hover td { background: var(--color-accent-soft); }
.dash-table tbody tr.is-new td { animation: dash-row-in .5s ease; }
@keyframes dash-row-in { from { background: var(--color-accent-soft); } to { background: transparent; } }
.dash-time { white-space: nowrap; color: var(--color-text-secondary); font-size: .75rem; font-variant-numeric: tabular-nums; }
.dash-mono { font-family: var(--mono); }
.dash-method { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: .68rem; font-weight: 700; font-family: var(--mono); letter-spacing: .03em; background: var(--color-accent-soft); color: var(--color-accent); border: 1px solid rgba(31,75,122,.25); }
.dash-path { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: .74rem; }
.dash-status { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: .7rem; font-weight: 700; font-family: var(--mono); background: var(--ok-tint); color: var(--ok); border: 1px solid var(--ok-line); }
.dash-status.is-bad { background: var(--danger-tint); color: var(--danger); border-color: var(--danger-line); }
.dash-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.dash-pill.is-yes { background: var(--ok-tint); color: var(--ok); border: 1px solid var(--ok-line); }
.dash-pill.is-no { background: var(--danger-tint); color: var(--danger); border: 1px solid var(--danger-line); }
.dash-pill.is-warn { background: rgba(212,160,23,.12); color: #8a6a0e; border: 1px solid rgba(212,160,23,.35); }
.dash-key { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: .74rem; }
.dash-empty td { text-align: center; padding: 40px 16px; color: var(--color-text-secondary); font-size: .82rem; }
.dash-skel td { padding: 8px 14px; }
.dash-skel td span { display: block; height: 12px; border-radius: 4px; background: linear-gradient(90deg, var(--color-border) 25%, var(--color-bg-deep) 50%, var(--color-border) 75%); background-size: 200% 100%; animation: dash-shimmer 1.2s infinite; }
@keyframes dash-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (max-width: 767px) { .dash-hero-inner { padding-top: 24px; padding-bottom: 22px; gap: 14px; } .dash-greeting { font-size: 1.45rem; } .dash-metric-value { font-size: 1.6rem; } .dash-card-header { padding: 14px 16px; } .dash-quota-vis { padding: 16px; } .dash-quota-labels { grid-template-columns: 1fr; } .dash-feed-toolbar { padding: 10px 16px; } .dash-table thead th, .dash-table tbody td { padding: 8px 10px; font-size: .74rem; } .dash-path { max-width: 120px; } }
@media (prefers-reduced-motion: reduce) { .dash-live-dot.is-live, .dash-table tbody tr.is-new td, .dash-skel td span { animation: none; } .dash-metric-card:hover, .dash-btn:hover { transform: none; } }

@media (min-width: 768px) {
  main { width: 75%; margin-inline: auto; }
  body { overflow-x: clip; }
  #view-app .dash-hero {
    width: 100dvw;
    max-width: 100dvw;
    margin-left: calc(50% - 50dvw);
    margin-right: calc(50% - 50dvw);
  }
  #view-app .dash-hero-inner {
    max-width: none;
    width: 100%;
    padding-left: 32px;
    padding-right: 32px;
  }
  #view-app .dash-main {
    max-width: none;
    width: 100%;
  }
}



.bp-admin-card {
  margin: 0 0 28px ;
  border: 1px solid rgba(22, 45, 73, .14) ;
  border-radius: 14px ;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%) ;
  box-shadow: 0 18px 46px rgba(23, 36, 52, .10) ;
  overflow: hidden ;
}
.bp-admin-card .dash-card-header {
  padding: 18px 22px ;
  background: #ffffff ;
  border-bottom: 1px solid rgba(22, 45, 73, .10) ;
}
.bp-admin-card .dash-card-label {
  font-size: 1rem ;
  font-weight: 800 ;
  color: #172434 ;
}
.bp-admin-card .dash-card-sub {
  margin-top: 4px ;
  color: #566273 ;
}
.bp-admin-grid {
  display: grid ;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr) ;
  gap: 28px ;
  padding: 24px ;
  align-items: start ;
}
.bp-admin-summary h2 {
  margin: 0 0 10px ;
  font-size: clamp(1.35rem, 2.2vw, 2.05rem) ;
  line-height: 1.08 ;
  color: #152333 ;
}
.bp-admin-summary p {
  margin: 0 0 20px ;
  max-width: 62ch ;
  color: #536174 ;
  font-size: .98rem ;
  line-height: 1.55 ;
}
.bp-admin-kpis {
  display: grid ;
  grid-template-columns: repeat(4, minmax(0, 1fr)) ;
  gap: 12px ;
}
.bp-admin-kpis span {
  display: grid ;
  align-content: center ;
  gap: 7px ;
  min-height: 92px ;
  padding: 16px ;
  border: 1px solid rgba(31, 75, 122, .14) ;
  border-radius: 12px ;
  background: #ffffff ;
  box-shadow: 0 8px 24px rgba(20, 35, 55, .06) ;
}
.bp-admin-kpis strong {
  display: block ;
  font-size: 1.85rem ;
  line-height: 1 ;
  font-weight: 850 ;
  color: #17324f ;
}
.bp-admin-kpis em {
  display: block ;
  font-style: normal ;
  font-size: .78rem ;
  font-weight: 750 ;
  color: #637184 ;
  text-transform: uppercase ;
  letter-spacing: .04em ;
}
.bp-admin-controls {
  display: grid ;
  gap: 14px ;
  padding: 18px ;
  border: 1px solid rgba(31, 75, 122, .12) ;
  border-radius: 12px ;
  background: #ffffff ;
}
.bp-admin-buttons {
  display: flex ;
  flex-wrap: wrap ;
  gap: 10px ;
}
.bp-admin-controls label {
  font-size: .78rem ;
  font-weight: 800 ;
  color: #526174 ;
}
.bp-admin-controls input {
  width: 100% ;
  min-height: 42px ;
  box-sizing: border-box ;
  padding: 10px 12px ;
  border: 1px solid rgba(31, 75, 122, .22) ;
  border-radius: 10px ;
  background: #f8fafc ;
}
.bp-admin-recent {
  list-style: none ;
  margin: 4px 0 0 ;
  padding: 0 ;
  display: grid ;
  gap: 8px ;
}
.bp-admin-recent li {
  display: grid ;
  grid-template-columns: minmax(0, 1fr) auto auto ;
  align-items: center ;
  gap: 12px ;
  padding: 11px 12px ;
  border: 1px solid rgba(31, 75, 122, .10) ;
  border-radius: 10px ;
  background: #f9fbfd ;
}
.bp-admin-recent .bp-event-path {
  min-width: 0 ;
  overflow: hidden ;
  text-overflow: ellipsis ;
  white-space: nowrap ;
  color: #2e3c4e ;
  font-size: .9rem ;
}
.bp-admin-recent strong {
  display: inline-flex ;
  align-items: center ;
  min-width: 42px ;
  justify-content: center ;
  padding: 3px 8px ;
  border-radius: 999px ;
  background: rgba(31, 75, 122, .10) ;
  color: #174c82 ;
  font-size: .76rem ;
}
.bp-admin-recent small {
  color: #6a7685 ;
  font-size: .78rem ;
}
@media (max-width: 980px) {
  .bp-admin-grid { grid-template-columns: 1fr ; }
  .bp-admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) ; }
}
@media (max-width: 560px) {
  .bp-admin-grid { padding: 16px ; }
  .bp-admin-kpis { grid-template-columns: 1fr ; }
  .bp-admin-recent li { grid-template-columns: 1fr auto ; }
  .bp-admin-recent small { grid-column: 1 / -1 ; }
}


.bp-admin-recent .bp-event-path b {
  display: block ;
  overflow: hidden ;
  text-overflow: ellipsis ;
  white-space: nowrap ;
  color: #203246 ;
  font-size: .92rem ;
}
.bp-admin-recent .bp-event-path em {
  display: block ;
  margin-top: 2px ;
  overflow: hidden ;
  text-overflow: ellipsis ;
  white-space: nowrap ;
  font-style: normal ;
  color: #6c7888 ;
  font-size: .76rem ;
}
.bp-admin-recent li.is-warning {
  border-color: rgba(156, 68, 35, .22) ;
  background: #fff8f4 ;
}
.bp-admin-recent li.is-warning strong {
  background: rgba(156, 68, 35, .12) ;
  color: #8f3f20 ;
}


.bp-admin-recent li.is-warning .bp-event-path b::after {
  content: "Protected";
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(156, 68, 35, .12);
  color: #8f3f20;
  font-size: .66rem;
  font-weight: 800;
  vertical-align: 1px;
}



.dash-sample-proof { margin-bottom: 18px; border-color: rgba(143,163,122,.55); background: linear-gradient(180deg, #f7faf3 0%, var(--color-surface) 42%); }
.dash-sample-body { padding: 16px 20px 20px; }
.dash-sample-lead { margin: 0 0 14px; color: var(--color-text-secondary); font-size: .9rem; line-height: 1.55; max-width: 70ch; }
.dash-sample-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dash-sample-result { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--color-border); }
.dash-sample-result.is-hidden { display: none ; }
.dash-sample-dl { display: grid; gap: 8px; margin: 0; }
.dash-sample-dl > div { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 8px; align-items: start; }
.dash-sample-dl dt { margin: 0; font-size: .75rem; font-weight: 700; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: .04em; }
.dash-sample-dl dd { margin: 0; font-size: .86rem; color: var(--color-text); word-break: break-all; }
.dash-sample-dl code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; }
.dash-sample-footnote { margin: 14px 0 0; color: var(--color-text-secondary); font-size: .8rem; line-height: 1.5; }
.dash-sample-proof[hidden] { display: none ; }
@media (max-width: 640px) {
  .dash-sample-dl > div { grid-template-columns: 1fr; gap: 2px; }
}


}
