@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');
@import url('https://cdn.hugeicons.com/font/hgi-stroke-rounded.css');

/* EnvVault foundations and production component styles. */
@font-face{font-family:"IBM Plex Sans";src:url("/static/fonts/IBM-Plex-Sans-400.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Sans";src:url("/static/fonts/IBM-Plex-Sans-500.ttf") format("truetype");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Sans";src:url("/static/fonts/IBM-Plex-Sans-600.ttf") format("truetype");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url("/static/fonts/IBM-Plex-Mono-400.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url("/static/fonts/IBM-Plex-Mono-500.ttf") format("truetype");font-weight:500;font-style:normal;font-display:swap}

:root,
[data-bs-theme="dark"] {
  color-scheme: dark;
  --ev-cyan: #08dff1;
  --ev-blue: #087ef5;
  --ev-steel: #c7d2de;
  --ev-steel-dark: #718195;
  --ev-brand-gradient: linear-gradient(145deg, #08dff1 0%, #08bde9 48%, #087ef5 100%);
  --ev-bg: #0b1016;
  --ev-surface: #111820;
  --ev-surface-elevated: #18222d;
  --ev-border: #2b3947;
  --ev-text: #f5f7fa;
  --ev-text-muted: #aebac8;
  --ev-text-quiet: #78889a;
  --ev-primary: #08dff1;
  --ev-primary-hover: #35e8f5;
  --ev-primary-pressed: #087ef5;
  --ev-on-primary: #062027;
  --ev-focus: #63eaf5;
  --ev-disabled: #4a5968;
  --ev-info: #2f8cff;
  --ev-info-fg: #8cc8ff;
  --ev-info-bg: #102a46;
  --ev-info-border: #1e5f9e;
  --ev-success: #22c98b;
  --ev-success-fg: #86e8be;
  --ev-success-bg: #0e2b24;
  --ev-success-border: #176b50;
  --ev-warning: #f5b942;
  --ev-warning-fg: #ffd985;
  --ev-warning-bg: #332710;
  --ev-warning-border: #8a651b;
  --ev-error: #f45b69;
  --ev-error-fg: #ffadb5;
  --ev-error-bg: #35171c;
  --ev-error-border: #8a2c38;
  --ev-neutral: #94a3b8;
  --ev-neutral-fg: #c7d2de;
  --ev-neutral-bg: #1b2430;
  --ev-neutral-border: #465568;

  --bs-body-bg: var(--ev-bg);
  --bs-body-color: var(--ev-text);
  --bs-body-font-family: "IBM Plex Sans", system-ui, sans-serif;
  --bs-body-font-size: 0.9375rem;
  --bs-body-line-height: 1.5;
  --bs-emphasis-color: var(--ev-text);
  --bs-secondary-color: var(--ev-text-muted);
  --bs-tertiary-color: var(--ev-text-quiet);
  --bs-heading-color: var(--ev-text);
  --bs-link-color: var(--ev-blue);
  --bs-link-hover-color: var(--ev-primary-hover);
  --bs-border-color: var(--ev-border);
  --bs-secondary-bg: var(--ev-surface);
  --bs-tertiary-bg: var(--ev-surface-elevated);
  --bs-primary: var(--ev-primary);
  --bs-primary-rgb: 8, 223, 241;
  --bs-link-color-rgb: 8, 126, 245;
  --bs-danger: var(--ev-error);
  --bs-danger-rgb: 244, 91, 105;
  --bs-success: var(--ev-success);
  --bs-success-rgb: 34, 201, 139;
  --bs-warning: var(--ev-warning);
  --bs-warning-rgb: 245, 185, 66;
  --bs-info: var(--ev-info);
  --bs-info-rgb: 47, 140, 255;
  --bs-font-monospace: "IBM Plex Mono", ui-monospace, monospace;
  --bs-border-radius: 0.375rem;
  --bs-border-radius-lg: 0.5rem;
  --bs-focus-ring-color: var(--ev-focus);
}

[data-bs-theme="light"] {
  color-scheme: light;
  --ev-steel: #3c4b5c;
  --ev-steel-dark: #5c6d80;
  --ev-bg: #f4f7fb;
  --ev-surface: #ffffff;
  --ev-surface-elevated: #e7eef6;
  --ev-border: #d3dde8;
  --ev-text: #0b1016;
  --ev-text-muted: #3c4b5c;
  --ev-text-quiet: #5c6d80;
  --ev-disabled: #9aa8b6;
  --ev-info-fg: #0b4f91;
  --ev-info-bg: #e7f2ff;
  --ev-info-border: #b9d7fb;
  --ev-success-fg: #0d6b45;
  --ev-success-bg: #e5f8f0;
  --ev-success-border: #b7e7d2;
  --ev-warning-fg: #7a5410;
  --ev-warning-bg: #fff6e0;
  --ev-warning-border: #f0d59a;
  --ev-error-fg: #8f2430;
  --ev-error-bg: #fdecef;
  --ev-error-border: #f5c2c8;
  --ev-neutral-fg: #3c4b5c;
  --ev-neutral-bg: #eef2f6;
  --ev-neutral-border: #d3dde8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ev-bg);
  color: var(--ev-text);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ev-text);
}

code, kbd, pre, samp, .mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

a { color: var(--ev-blue); }
a:hover { color: var(--ev-primary-hover); }

:focus-visible {
  outline: 3px solid var(--ev-focus);
  outline-offset: 3px;
}

::selection {
  background: var(--ev-blue);
  color: #fff;
}

.eyebrow,
.ev-kicker {
  margin: 0 0 0.5rem;
  color: var(--ev-text-quiet);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.ev-kicker {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ev-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--ev-text);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
}

.ev-brand:hover { color: var(--ev-text); }

.ev-brand img {
  display: block;
  width: 48px;
  height: 48px;
  -webkit-mask-image: radial-gradient(circle at center, #000 70%, transparent 86%);
  mask-image: radial-gradient(circle at center, #000 70%, transparent 86%);
}

.navbar {
  --bs-navbar-color: var(--ev-text-muted);
  --bs-navbar-hover-color: var(--ev-text);
  --bs-navbar-active-color: var(--ev-text);
  --bs-navbar-brand-color: var(--ev-text);
  --bs-navbar-brand-hover-color: var(--ev-text);
  --bs-navbar-toggler-border-color: var(--ev-border);
  background: var(--ev-bg);
}

.navbar .nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem;
}

.navbar .nav-link.active { color: var(--ev-text); }

.btn {
  --bs-btn-font-weight: 600;
  --bs-btn-padding-y: 0.375rem;
  --bs-btn-padding-x: 0.75rem;
  --bs-btn-font-size: 0.875rem;
  --bs-btn-border-radius: 0.375rem;
  font-weight: 600;
}

.btn-sm {
  --bs-btn-padding-y: 0.25rem;
  --bs-btn-padding-x: 0.5rem;
  --bs-btn-font-size: 0.8125rem;
}

.btn-primary {
  --bs-btn-color: var(--ev-on-primary);
  --bs-btn-bg: var(--ev-primary);
  --bs-btn-border-color: var(--ev-primary);
  --bs-btn-hover-color: var(--ev-on-primary);
  --bs-btn-hover-bg: var(--ev-primary-hover);
  --bs-btn-hover-border-color: var(--ev-primary-hover);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--ev-primary-pressed);
  --bs-btn-active-border-color: var(--ev-primary-pressed);
  --bs-btn-disabled-color: var(--ev-on-primary);
  --bs-btn-disabled-bg: var(--ev-disabled);
  --bs-btn-disabled-border-color: var(--ev-disabled);
}

.btn-primary:disabled,
.btn-primary.disabled { opacity: 1; }

.btn-outline-secondary {
  --bs-btn-color: var(--ev-steel);
  --bs-btn-border-color: var(--ev-border);
  --bs-btn-hover-color: var(--ev-text);
  --bs-btn-hover-bg: var(--ev-surface-elevated);
  --bs-btn-hover-border-color: var(--ev-steel-dark);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--ev-primary-pressed);
  --bs-btn-active-border-color: var(--ev-primary-pressed);
}

.btn-danger {
  --bs-btn-color: var(--ev-on-primary);
  --bs-btn-bg: var(--ev-error);
  --bs-btn-border-color: var(--ev-error);
  --bs-btn-hover-color: var(--ev-on-primary);
  --bs-btn-hover-bg: var(--ev-error-fg);
  --bs-btn-hover-border-color: var(--ev-error-fg);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--ev-error-border);
  --bs-btn-active-border-color: var(--ev-error-border);
}

.btn-outline-danger {
  --bs-btn-color: var(--ev-error-fg);
  --bs-btn-border-color: var(--ev-error-border);
  --bs-btn-hover-color: var(--ev-error-fg);
  --bs-btn-hover-bg: var(--ev-error-bg);
  --bs-btn-hover-border-color: var(--ev-error);
  --bs-btn-active-color: var(--ev-bg);
  --bs-btn-active-bg: var(--ev-error);
  --bs-btn-active-border-color: var(--ev-error);
}

.btn-link {
  --bs-btn-color: var(--ev-blue);
  --bs-btn-hover-color: var(--ev-primary-hover);
  --bs-btn-active-color: #fff;
  text-decoration: none;
}

.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  box-shadow: none;
  outline: 3px solid var(--ev-focus);
  outline-offset: 3px;
}

.card {
  --bs-card-bg: var(--ev-surface);
  --bs-card-border-color: var(--ev-border);
  --bs-card-color: var(--ev-text);
  --bs-card-cap-bg: transparent;
  --bs-card-cap-color: var(--ev-text);
  box-shadow: none;
}

.card-header,
.card-footer { border-color: var(--ev-border); }

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.form-control,
.form-select {
  background-color: var(--ev-surface-elevated);
  border-color: var(--ev-border);
  color: var(--ev-text);
  font-size: 0.875rem;
}

.form-control:focus,
.form-select:focus {
  background-color: var(--ev-surface-elevated);
  border-color: var(--ev-blue);
  color: var(--ev-text);
}

.form-control::placeholder { color: var(--ev-text-quiet); }

.form-control:disabled,
.form-select:disabled {
  background-color: var(--ev-surface);
  color: var(--ev-text-quiet);
}

.form-check-input {
  background-color: var(--ev-surface-elevated);
  border-color: var(--ev-border);
}

.form-check-input:checked {
  background-color: var(--ev-cyan);
  border-color: var(--ev-cyan);
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--ev-text);
  --bs-table-border-color: var(--ev-border);
  --bs-table-striped-color: var(--ev-text);
  --bs-table-hover-bg: var(--ev-surface-elevated);
  --bs-table-hover-color: var(--ev-text);
  margin-bottom: 0;
  font-size: 0.875rem;
}

.table > :not(caption) > * > * {
  padding: 0.5rem;
  background-color: transparent;
}

.table thead th {
  color: var(--ev-text-quiet);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.list-group {
  --bs-list-group-bg: var(--ev-surface);
  --bs-list-group-color: var(--ev-text);
  --bs-list-group-border-color: var(--ev-border);
  --bs-list-group-action-hover-bg: var(--ev-surface-elevated);
  --bs-list-group-action-hover-color: var(--ev-text);
  --bs-list-group-action-active-bg: var(--ev-surface-elevated);
  --bs-list-group-action-active-color: var(--ev-text);
}

.offcanvas {
  --bs-offcanvas-bg: var(--ev-surface);
  --bs-offcanvas-color: var(--ev-text);
  --bs-offcanvas-border-color: var(--ev-border);
}

.ev-notice {
  margin: 0 0 1rem;
  padding: 0.5rem 0.75rem;
  color: var(--ev-neutral-fg);
  background: var(--ev-neutral-bg);
  border: 1px solid var(--ev-neutral-border);
  border-left-width: 4px;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.ev-notice strong { display: block; margin-bottom: 0.25rem; }
.ev-notice--info { color: var(--ev-info-fg); background: var(--ev-info-bg); border-color: var(--ev-info-border); }
.ev-notice--success { color: var(--ev-success-fg); background: var(--ev-success-bg); border-color: var(--ev-success-border); }
.ev-notice--warning { color: var(--ev-warning-fg); background: var(--ev-warning-bg); border-color: var(--ev-warning-border); }
.ev-notice--error { color: var(--ev-error-fg); background: var(--ev-error-bg); border-color: var(--ev-error-border); }
.ev-notice:empty,
#copy-status:empty,
#create-status:empty,
#save-status:empty,
#decrypt-error:empty { display: none; }

.ev-badge-neutral,
.ev-badge-success {
  border-radius: 2rem;
  font-weight: 600;
}

.ev-badge-neutral {
  color: var(--ev-neutral-fg);
  background: var(--ev-neutral-bg);
  border: 1px solid var(--ev-neutral-border);
}

.ev-badge-success {
  color: var(--ev-success-fg);
  background: var(--ev-success-bg);
  border: 1px solid var(--ev-success-border);
}

.ev-label {
  border-radius: 2rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.ev-label-production { color: var(--ev-error-fg); background: var(--ev-error-bg); border-color: var(--ev-error-border); }
.ev-label-staging { color: var(--ev-warning-fg); background: var(--ev-warning-bg); border-color: var(--ev-warning-border); }
.ev-label-development { color: var(--ev-on-primary); background: var(--ev-cyan); border-color: var(--ev-cyan); }
.ev-label-testing { color: var(--ev-info-fg); background: var(--ev-info-bg); border-color: var(--ev-info-border); }
.ev-label-local,
.ev-label-custom { color: var(--ev-neutral-fg); background: var(--ev-neutral-bg); border-color: var(--ev-neutral-border); }
.ev-label-shared { color: var(--ev-success-fg); background: var(--ev-success-bg); border-color: var(--ev-success-border); }

.ev-hero {
  position: relative;
  display: flex;
  justify-content: center;
  overflow: hidden;
  background: var(--ev-bg);
}
.ev-swirl {
  position: absolute;
  inset: -45% -6%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.ev-smoke {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transform-origin: center;
  animation: ev-swirl 72s ease-in-out infinite;
}
.ev-smoke--a {
  background-image: url("/static/brand/envvault-smoke-a.png");
  opacity: 0.36;
  filter: blur(10px);
}
.ev-smoke--b {
  background-image: url("/static/brand/envvault-smoke-b.png");
  opacity: 0.24;
  filter: blur(16px);
  animation-duration: 110s;
  animation-direction: reverse;
}
.ev-hero img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 36rem);
  height: auto;
}
@keyframes ev-swirl {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.12); }
  100% { transform: rotate(360deg) scale(1); }
}
.ev-lockup {
  width: min(100%, 16rem);
  height: auto;
  -webkit-mask-image: radial-gradient(ellipse 80% 74% at center, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 74% at center, #000 58%, transparent 100%);
}
.ev-marketing pre {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  color: var(--ev-text);
  background: var(--ev-surface);
  border: 1px solid var(--ev-border);
  border-radius: 0.375rem;
  font-size: 0.8125rem;
}
.ev-price { margin: 0 0 0.5rem; font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.ev-price small { font-size: 0.875rem; font-weight: 400; letter-spacing: 0; color: var(--ev-text-muted); }
.ev-back { display: inline-block; margin-bottom: 1rem; font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.ev-back:hover { text-decoration: underline; }
.ev-plaintext {
  margin: 0;
  padding: 0.5rem 0.75rem;
  color: var(--ev-text);
  background: var(--ev-bg);
  border: 1px solid var(--ev-border);
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ev-env { width: 100%; min-height: 16rem; resize: vertical; }
#store-label { max-width: 16rem; }
.ev-break { overflow-wrap: anywhere; }
.ev-role { width: 7.5rem; }

.ev-marketing h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

/* Public landing page */
.ev-landing-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--ev-border);
}
.ev-marketing h1.ev-display {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.ev-lead { font-size: 1.0625rem; max-width: 34rem; }
.ev-envelope { background: rgba(17, 24, 32, 0.88); backdrop-filter: blur(4px); box-shadow: 0 1.5rem 4rem rgba(8, 126, 245, 0.12); }
[data-bs-theme="light"] .ev-envelope { background: rgba(255, 255, 255, 0.94); }
.ev-marketing .ev-envelope pre { margin: 0; border: 0; border-radius: 0; background: transparent; color: var(--ev-cyan); font-size: 0.875rem; line-height: 1.6; }
.ev-section { padding-top: 3.5rem; padding-bottom: 0.5rem; }
.ev-section:last-child { padding-bottom: 3.5rem; }
.ev-section-title { font-size: clamp(1.25rem, 2.2vw, 1.75rem); letter-spacing: -0.02em; }
.ev-step {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--ev-brand-gradient);
  color: var(--ev-bg);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
}
.ev-ticks, .ev-crosses { padding-left: 0; list-style: none; }
.ev-ticks li, .ev-crosses li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; color: var(--ev-text-muted); }
.ev-ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ev-success); font-weight: 600; }
.ev-crosses li::before { content: "✕"; position: absolute; left: 0; color: var(--ev-error); font-weight: 600; }
.ev-feature { height: 100%; padding: 1rem 0 0; border-top: 2px solid var(--ev-border); }
.ev-feature h3 { color: var(--ev-text); }
.ev-cta { background: linear-gradient(120deg, rgba(8, 223, 241, 0.10), rgba(8, 126, 245, 0.10)), var(--ev-surface); border-color: rgba(8, 223, 241, 0.35); }
.ev-footer { background: var(--ev-surface); }
.ev-footer-legal { font-size: 0.75rem; }
.ev-footer .ev-brand { font-size: 1rem; }
.ev-footer ul li { margin-bottom: 0.25rem; }
.ev-footer a:not(.ev-brand) { color: var(--ev-text-muted); text-decoration: none; }
.ev-footer a:not(.ev-brand):hover { color: var(--ev-text); }

.app-frame { min-height: 100vh; background: var(--ev-bg); }
.ev-sidebar {
  position: sticky;
  top: 0;
  width: 14rem;
  height: 100vh;
  flex: 0 0 14rem;
  padding: 1rem;
  background: var(--ev-surface);
  border-right: 1px solid var(--ev-border);
}
.ev-app { min-width: 0; background: var(--ev-bg); }
.ev-page { width: 100%; max-width: 64rem; }
.ev-page-narrow { max-width: 40rem; }
.ev-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: var(--ev-surface);
}
#ev-menu { --bs-offcanvas-width: 16rem; }
.offcanvas-header .ev-brand { margin: 0; }

.ev-nav .nav-link {
  position: relative;
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: var(--ev-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}
.ev-nav .nav-link:hover {
  color: var(--ev-text);
  background: var(--ev-surface-elevated);
}
.ev-nav .nav-link.active {
  color: var(--ev-text);
  background: var(--ev-surface-elevated);
}
.ev-nav .nav-link.active::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0;
  width: 3px;
  border-radius: 2px;
  background: var(--ev-brand-gradient);
}
.ev-nav .ev-count { color: var(--ev-text-quiet); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.8125rem; }
.ev-nav .nav-link.active .ev-count { color: var(--ev-cyan); }
.ev-stat { font-size: 1.5rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.ev-sidebar-bottom .ev-user { min-width: 0; color: var(--ev-text-quiet); }
.ev-btn-signout {
  --bs-btn-color: var(--ev-error-fg);
  --bs-btn-bg: var(--ev-error-bg);
  --bs-btn-border-color: var(--ev-error-border);
  --bs-btn-hover-color: var(--ev-on-primary);
  --bs-btn-hover-bg: var(--ev-error);
  --bs-btn-hover-border-color: var(--ev-error);
  --bs-btn-active-color: var(--ev-on-primary);
  --bs-btn-active-bg: var(--ev-error-border);
  --bs-btn-active-border-color: var(--ev-error-border);
}
.ev-credit {
  padding: 0 0.5rem;
  color: var(--ev-text-quiet);
  font-size: 0.65rem;
  line-height: 1.3;
}
.ev-credit a { color: inherit; text-decoration: none; }
.ev-credit a:hover { color: var(--ev-text); }
.ev-audit-browser {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell h1 { margin: 0; font-size: 1.25rem; line-height: 1.3; }
.app-shell h2 { margin: 0 0 0.5rem; font-size: 1rem; }
.app-shell p { margin-bottom: 0.5rem; }
.app-shell td form,
.app-shell th form { margin: 0; }

details.card > summary {
  padding: 1rem;
  font-weight: 600;
  cursor: pointer;
}
details.card > .card-body { border-top: 1px solid var(--ev-border); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0ms !important;
    transition-duration: 0ms !important;
  }
  .ev-swirl { display: none; }
}

/* EnvVault application and marketing design system. */

:root {
  --bg: #0b1016;
  --bg-2: #0d131a;
  --surface: #111820;
  --surface-2: #151d27;
  --elev: #1a2430;
  --hover: #1d2834;
  --line: #1e2935;
  --line-2: #2b3947;
  --text: #f5f7fa;
  --muted: #aebac8;
  --quiet: #78889a;
  --cyan: #08dff1;
  --cyan-hover: #35e8f5;
  --cyan-ink: #031b20;
  --cyan-soft: rgba(8, 223, 241, 0.1);
  --cyan-line: rgba(8, 223, 241, 0.35);
  --blue: #4c7dff;
  --ok: #22c98b;
  --ok-soft: rgba(34, 201, 139, 0.12);
  --warn: #f5b942;
  --warn-soft: rgba(245, 185, 66, 0.12);
  --danger: #f2667a;
  --danger-soft: rgba(242, 102, 122, 0.12);
  --dev: #7aa7ff;
  --dev-soft: rgba(122, 167, 255, 0.13);
  --stg: #f5b942;
  --stg-soft: rgba(245, 185, 66, 0.13);
  --prd: #f2667a;
  --prd-soft: rgba(242, 102, 122, 0.13);
  --custom: #b59cff;
  --custom-soft: rgba(181, 156, 255, 0.13);
  --code-bg: #080c11;
  --shadow:
    0 1px 0 rgba(255, 255, 255, 0.03) inset,
    0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --r-xs: 4px;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --wrap: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

[data-theme='light'] {
  --bg: #f4f7fb;
  --bg-2: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --elev: #e7eef6;
  --hover: #eef3f9;
  --line: #e1e8f0;
  --line-2: #d3dde8;
  --text: #0b1016;
  --muted: #3c4b5c;
  --quiet: #5c6d80;
  --cyan: #0796a3;
  --cyan-hover: #067f8a;
  --cyan-ink: #ffffff;
  --cyan-soft: rgba(7, 150, 163, 0.09);
  --cyan-line: rgba(7, 150, 163, 0.4);
  --ok: #0f8a5c;
  --ok-soft: #e5f8f0;
  --warn: #9a6a10;
  --warn-soft: #fff6e0;
  --danger: #c2334a;
  --danger-soft: #fdecef;
  --dev: #2f5fd0;
  --dev-soft: #e8efff;
  --stg: #9a6a10;
  --stg-soft: #fff4dc;
  --prd: #c2334a;
  --prd-soft: #fdecef;
  --custom: #6d4fd6;
  --custom-soft: #f0ebff;
  --code-bg: #0b1016;
  --shadow:
    0 1px 2px rgba(11, 16, 22, 0.05), 0 18px 40px -24px rgba(11, 16, 22, 0.25);
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

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

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

code,
pre,
kbd,
.mono {
  font-family: var(--mono);
  font-feature-settings: 'zero' 1;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

::selection {
  background: var(--cyan);
  color: var(--cyan-ink);
}

[hidden] {
  display: none !important;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.hgi {
  line-height: 1;
  display: inline-block;
}

.tnum {
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--muted);
}

.quiet {
  color: var(--quiet);
}

.ok {
  color: var(--ok);
}

.danger {
  color: var(--danger);
}

.cyan {
  color: var(--cyan);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition:
    background 0.15s var(--ease),
    border-color 0.15s var(--ease),
    color 0.15s var(--ease),
    transform 0.1s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn .hgi {
  font-size: 17px;
}

.btn-primary {
  background: var(--cyan);
  color: var(--cyan-ink);
}

.btn-primary:hover {
  background: var(--cyan-hover);
}

.btn-secondary {
  --bs-btn-color: var(--text);
  --bs-btn-bg: var(--surface-2);
  --bs-btn-border-color: var(--line-2);
  --bs-btn-hover-color: var(--text);
  --bs-btn-hover-bg: var(--hover);
  --bs-btn-hover-border-color: var(--line-2);
  --bs-btn-active-color: var(--text);
  --bs-btn-active-bg: var(--elev);
  --bs-btn-active-border-color: var(--line-2);
  --bs-btn-disabled-color: var(--quiet);
  --bs-btn-disabled-bg: var(--surface-2);
  --bs-btn-disabled-border-color: var(--line);
  background: var(--surface-2);
  border-color: var(--line-2);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--hover);
  color: var(--text);
}

.btn-ghost {
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--hover);
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: transparent;
}

.btn-danger:hover {
  border-color: var(--danger);
}

.btn-sm {
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
  gap: 6px;
}

.btn-sm .hgi {
  font-size: 15px;
}

.btn-lg {
  height: 46px;
  padding: 0 22px;
  font-size: 15px;
}

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  color: var(--quiet);
  transition:
    background 0.15s,
    color 0.15s;
}

.icon-btn:hover {
  background: var(--hover);
  color: var(--text);
}

.icon-btn .hgi {
  font-size: 17px;
}

.icon-btn.is-done {
  color: var(--ok);
}

/* badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-xs);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--elev);
  color: var(--muted);
}

.badge .hgi {
  font-size: 13px;
}

.badge-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.label-development {
  background: var(--dev-soft);
  color: var(--dev);
}

.label-staging {
  background: var(--stg-soft);
  color: var(--stg);
}

.label-production {
  background: var(--prd-soft);
  color: var(--prd);
}

.label-custom {
  background: var(--custom-soft);
  color: var(--custom);
}

.badge-ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.badge-warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge-cyan {
  background: var(--cyan-soft);
  color: var(--cyan);
}

.kbd,
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-2);
  font-size: 11px;
  color: var(--quiet);
  font-family: var(--mono);
}

/* forms */
.field {
  display: grid;
  gap: 6px;
}

.field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.field-hint {
  font-size: 12.5px;
  color: var(--quiet);
}

.input,
.select,
.textarea {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  transition:
    border-color 0.15s,
    background 0.15s;
}

.textarea {
  height: auto;
  padding: 12px;
  resize: vertical;
  line-height: 1.6;
}

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

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--quiet);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: var(--surface);
}

.input.is-invalid {
  border-color: var(--danger);
}

.select {
  appearance: none;
  padding-right: 32px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--quiet) 50%),
    linear-gradient(135deg, var(--quiet) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 16px,
    calc(100% - 12px) 16px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
}

.search .hgi {
  position: absolute;
  left: 11px;
  font-size: 16px;
  color: var(--quiet);
  pointer-events: none;
}

.search .input {
  padding-left: 34px;
}

.search .kbd {
  position: absolute;
  right: 9px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14px;
}

.check input {
  appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: var(--r-xs);
  border: 1.5px solid var(--line-2);
  background: var(--bg-2);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.check input:checked {
  background: var(--cyan);
  border-color: var(--cyan);
}

.check input:checked::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid var(--cyan-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.segmented button {
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-xs);
  font-size: 13px;
  color: var(--quiet);
  font-weight: 500;
}

.segmented button:hover {
  color: var(--text);
}

.segmented button[aria-selected='true'],
.segmented button[aria-pressed='true'] {
  background: var(--elev);
  color: var(--text);
}

/* code */
.code {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: #d8e1ea;
  overflow: hidden;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  color: #8796a8;
}

.code-head .icon-btn {
  color: #8796a8;
}

.code-head .icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.code pre {
  margin: 0;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  tab-size: 2;
}

.tok-k {
  color: #08dff1;
}

.tok-s {
  color: #9be3b5;
}

.tok-c {
  color: #66768a;
}

.tok-n {
  color: #f5b942;
}

.tok-p {
  color: #b59cff;
}

.tok-v {
  color: #f5f7fa;
}

/* table */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
}

.table-scroll {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table th {
  text-align: left;
  font-weight: 500;
  color: var(--quiet);
  font-size: 12.5px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  white-space: nowrap;
}

.table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

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

.table tbody tr:hover td {
  background: var(--surface-2);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--quiet);
  flex-wrap: wrap;
}

.pager-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pager-controls button {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pager-controls button:hover:not([disabled]) {
  background: var(--hover);
  color: var(--text);
}

.pager-controls button[aria-current='page'] {
  background: var(--elev);
  color: var(--text);
}

.pager-controls button[disabled] {
  opacity: 0.35;
  cursor: default;
}

/* avatar */
.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  color: #0b1016;
}

.avatar-lg {
  width: 36px;
  height: 36px;
  font-size: 13px;
}

.avatar-token {
  border-radius: var(--r-xs);
  background: var(--elev);
  color: var(--cyan);
}

.avatar-token .hgi {
  font-size: 14px;
}

/* toast */
.toast-region {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1300;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r);
  background: var(--elev);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  font-size: 13.5px;
  pointer-events: auto;
  animation: toast-in 0.25s var(--ease);
}

.toast .hgi {
  color: var(--ok);
  font-size: 17px;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ============ marketing ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 600;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  height: 62px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.site-nav a {
  padding: 6px 10px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 14px;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
}

.site-nav a[aria-current='page'] {
  background: var(--surface-2);
}

.site-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.menu-btn {
  display: none;
}

@media (max-width: 760px) {
  .site-nav,
  .site-actions .btn-ghost {
    display: none;
  }

  .menu-btn {
    display: inline-grid;
    margin-left: auto;
  }

  .site-actions {
    margin-left: 0;
  }

  .site-header.is-open .site-nav {
    display: grid;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    padding: 12px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .site-header.is-open .site-nav a {
    padding: 12px;
    font-size: 16px;
  }
}

.section {
  padding: 112px 0;
}

.section-tight {
  padding: 72px 0;
}

.display {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 54ch;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
}

.footer-grid h4 {
  font-size: 13px;
  color: var(--quiet);
  font-weight: 500;
  margin-bottom: 12px;
}

.footer-grid li + li {
  margin-top: 8px;
}

.footer-grid a {
  color: var(--muted);
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-base {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--quiet);
  font-size: 13px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* hero */
.hero {
  padding: 72px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero-top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}

.hero-top .display {
  max-width: 15ch;
}

.hero-side {
  display: grid;
  gap: 22px;
  padding-bottom: 6px;
}

.hero-side .lead {
  font-size: 17px;
}

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.spec-line {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--quiet);
}

.spec-line span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.spec-line .hgi {
  color: var(--cyan);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* boundary demo */
.boundary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.boundary-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.boundary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  min-height: 56px;
}

.boundary-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
}

.boundary-title .hgi {
  font-size: 18px;
  color: var(--quiet);
}

.boundary-title small {
  color: var(--quiet);
  font-weight: 400;
  font-size: 13px;
}

.env-editor {
  flex: 1;
  min-height: 260px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  resize: none;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text);
}

.env-editor:focus {
  outline: none;
  background: var(--surface-2);
}

.key-strip {
  margin: 0 14px 14px;
  padding: 12px 14px;
  border-radius: var(--r);
  background: var(--cyan-soft);
  border: 1px solid var(--cyan-line);
  display: grid;
  gap: 6px;
}

.key-strip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--cyan);
  font-weight: 500;
}

.key-strip-top span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.key-value {
  font-family: var(--mono);
  font-size: 13px;
  word-break: break-all;
  color: var(--text);
  letter-spacing: 0.02em;
}

.wire {
  position: relative;
  border-left: 1px dashed var(--line-2);
  border-right: 1px dashed var(--line-2);
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 7px,
    var(--line) 7px 8px
  );
  display: grid;
  place-items: end center;
  padding-bottom: 18px;
}

.wire-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--quiet);
  background: var(--surface);
  padding: 12px 4px;
  border-radius: var(--r-xs);
  letter-spacing: 0.04em;
}

.packet {
  position: absolute;
  left: 50%;
  top: 72px;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--cyan-line);
  display: grid;
  place-items: center;
  color: var(--cyan);
}

.packet .hgi {
  font-size: 16px;
}

.packet.is-moving {
  animation: packet 0.7s var(--ease);
}

@keyframes packet {
  0% {
    transform: translateX(-40px);
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: translateX(0);
  }
}

.envelope-view {
  flex: 1;
  margin: 0;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--muted);
}

.envelope-view .tok-k {
  color: var(--quiet);
}

.envelope-view .tok-s {
  color: var(--text);
}

.envelope-view .cipher {
  color: var(--cyan);
}

[data-theme='light'] .envelope-view .cipher {
  color: #067f8a;
}

.boundary-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--quiet);
  min-height: 54px;
  flex-wrap: wrap;
}

.meter {
  display: flex;
  gap: 16px;
  font-family: var(--mono);
}

.meter b {
  color: var(--text);
  font-weight: 500;
}

.verify-result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 900px) {
  .boundary {
    grid-template-columns: 1fr;
  }

  .wire {
    height: 56px;
    border: 0;
    border-top: 1px dashed var(--line-2);
    border-bottom: 1px dashed var(--line-2);
  }

  .wire {
    place-items: center;
    padding-bottom: 0;
  }

  .wire-label {
    writing-mode: horizontal-tb;
    transform: none;
    padding: 4px 10px;
  }

  .packet {
    display: none;
  }

  .boundary-title small {
    display: none;
  }

  .env-editor {
    min-height: 200px;
  }
}

/* path of a secret */
.journey {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  grid-template-areas: 'title stage' 'steps stage';
  gap: 0 56px;
  align-items: start;
}

.journey-title {
  grid-area: title;
  margin: 0 0 28px 16px;
  max-width: 14ch;
}

.journey-steps {
  grid-area: steps;
}

.journey-stage {
  grid-area: stage;
}

.journey-steps {
  display: grid;
  gap: 4px;
}

.journey-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  text-align: left;
  padding: 18px 16px;
  border-radius: var(--r);
  color: var(--quiet);
  transition:
    background 0.2s,
    color 0.2s;
  min-height: 40vh;
  align-content: start;
}

.journey-step:hover {
  color: var(--muted);
}

.journey-step.is-active {
  background: var(--surface);
  color: var(--text);
}

.journey-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 13px;
}

.journey-step.is-active .journey-num {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--cyan-ink);
}

.journey-step h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 3px 0 8px;
}

.journey-step p {
  font-size: 15px;
  color: inherit;
  max-width: 42ch;
}

.journey-step.is-active p {
  color: var(--muted);
}

.journey-stage {
  position: sticky;
  top: 96px;
  min-height: 460px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stage-panel {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease),
    visibility 0.35s;
}

.stage-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.stage-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--quiet);
}

.stage-caption span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

@media (max-width: 900px) {
  .journey {
    grid-template-columns: 1fr;
    grid-template-areas: 'title' 'stage' 'steps';
    gap: 20px;
  }

  .journey-title {
    margin: 0;
  }

  .journey-step {
    min-height: 0;
  }

  .journey-stage {
    position: relative;
    top: 0;
    min-height: 560px;
  }
}

.mini-env {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 13px;
  overflow: hidden;
}

.mini-env-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  padding: 4px 0;
}

.mini-env-row > span:first-child {
  color: var(--quiet);
  text-align: right;
  padding-right: 10px;
  user-select: none;
}

.mini-env-row .k {
  color: var(--cyan);
}

.mini-env-row .v {
  color: var(--text);
}

.progress-line {
  height: 4px;
  border-radius: 2px;
  background: var(--elev);
  overflow: hidden;
}

.progress-line i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--cyan);
  transform-origin: left;
  animation: grow 1.6s var(--ease) both;
}

@keyframes grow {
  from {
    transform: scaleX(0);
  }
}

.key-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  padding: 22px;
  display: grid;
  gap: 16px;
}

.key-card-title {
  display: flex;
  gap: 12px;
  align-items: center;
}

.key-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  background: var(--cyan-soft);
  color: var(--cyan);
  display: grid;
  place-items: center;
}

.key-card-icon .hgi {
  font-size: 21px;
}

.key-box {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  padding: 16px;
  border-radius: var(--r);
  background: var(--bg);
  border: 1px dashed var(--cyan-line);
  word-break: break-all;
  text-align: center;
}

.notice {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r);
  font-size: 13.5px;
  line-height: 1.5;
  background: var(--elev);
  color: var(--muted);
}

.notice .hgi {
  font-size: 18px;
  flex: none;
  margin-top: 1px;
}

.notice-warn {
  background: var(--warn-soft);
  color: var(--text);
}

.notice-warn .hgi {
  color: var(--warn);
}

.notice-danger {
  background: var(--danger-soft);
  color: var(--text);
}

.notice-danger .hgi {
  color: var(--danger);
}

.notice-ok {
  background: var(--ok-soft);
  color: var(--text);
}

.notice-ok .hgi {
  color: var(--ok);
}

.notice-cyan {
  background: var(--cyan-soft);
  color: var(--text);
}

.notice-cyan .hgi {
  color: var(--cyan);
}

.db-row {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  font-size: 13px;
}

.db-row > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
}

.db-row > div:last-child {
  border-bottom: 0;
}

.db-row dt {
  color: var(--quiet);
  font-family: var(--mono);
}

.db-row dd {
  margin: 0;
  font-family: var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-lines {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
}

.terminal-lines .prompt {
  color: var(--cyan);
}

.terminal-lines .out {
  color: #8796a8;
}

/* inspector */
.inspector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

.inspector-table {
  min-width: 0;
}

.inspector .table-wrap {
  border: 0;
  border-radius: 0;
}

.inspector .table td:first-child {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 13px;
}

.inspector .value-cell {
  font-family: var(--mono);
  font-size: 13px;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspector tr.is-absent td {
  color: var(--quiet);
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 8px,
    var(--bg-2) 8px 9px
  );
}

.inspector tr.is-absent .value-cell {
  font-style: italic;
  font-family: var(--sans);
}

.readable {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  white-space: nowrap;
}

.readable .hgi {
  font-size: 16px;
}

.inspector-side {
  border-left: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--surface-2);
}

.tally {
  display: grid;
  gap: 4px;
}

.tally strong {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tally span {
  color: var(--muted);
  font-size: 14px;
}

.tally-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  gap: 2px;
}

.tally-bar i {
  display: block;
  height: 100%;
}

@media (max-width: 960px) {
  .inspector {
    grid-template-columns: 1fr;
  }

  .inspector-side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* product preview with hotspots */
.preview-shell {
  position: relative;
}

.preview-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  border-bottom: 0;
  overflow: hidden;
  background: var(--surface);
}

.legend-item {
  text-align: left;
  padding: 18px 20px;
  display: grid;
  gap: 6px;
  border-right: 1px solid var(--line);
  transition: background 0.2s;
}

.legend-item:last-child {
  border-right: 0;
}

.legend-item:hover,
.legend-item.is-active {
  background: var(--surface-2);
}

.legend-item strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.legend-item strong .hgi {
  font-size: 18px;
  color: var(--quiet);
  transition: color 0.2s;
}

.legend-item.is-active strong .hgi {
  color: var(--cyan);
}

.legend-item span {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .preview-legend {
    grid-template-columns: 1fr 1fr;
  }

  .legend-item:nth-child(2) {
    border-right: 0;
  }

  .legend-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

.mock {
  border: 1px solid var(--line-2);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  overflow: hidden;
  background: var(--bg);
  display: grid;
  grid-template-columns: 200px 300px minmax(0, 1fr);
  height: 560px;
  font-size: 13px;
  box-shadow: var(--shadow);
}

.mock [data-zone] {
  transition:
    box-shadow 0.25s var(--ease),
    opacity 0.25s;
  border-radius: var(--r-sm);
}

.mock.has-focus [data-zone] {
  opacity: 0.4;
}

.mock.has-focus [data-zone].is-lit {
  opacity: 1;
  box-shadow: 0 0 0 1.5px var(--cyan);
}

@media (max-width: 1000px) {
  .mock {
    grid-template-columns: 0 260px minmax(0, 1fr);
  }

  .mock > .mock-side {
    display: none;
  }
}

@media (max-width: 680px) {
  .mock {
    grid-template-columns: 1fr;
    height: auto;
  }

  .mock > .mock-list {
    display: none;
  }
}

.mock-side {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mock-list {
  border-right: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}

.mock-detail {
  padding: 22px 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* tabs for deploy */
.deploy {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.deploy-tabs {
  display: grid;
  gap: 2px;
}

.deploy-tab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  color: var(--muted);
  text-align: left;
}

.deploy-tab small {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--quiet);
}

.deploy-tab:hover {
  background: var(--surface);
  color: var(--text);
}

.deploy-tab[aria-selected='true'] {
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.deploy-panel[hidden] {
  display: none;
}

.deploy-panel {
  display: grid;
  gap: 14px;
}

.deploy-panel .code pre {
  max-height: 420px;
}

.cred-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  font-size: 13.5px;
}

.cred {
  padding: 12px 14px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  gap: 2px;
}

.cred code {
  font-size: 13px;
}

.cred span {
  color: var(--quiet);
  font-size: 12.5px;
}

.cred-pair > .hgi {
  color: var(--quiet);
  font-size: 18px;
}

@media (max-width: 860px) {
  .deploy {
    grid-template-columns: 1fr;
  }

  .deploy-tabs {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 4px;
  }

  .deploy-tab {
    flex: none;
    gap: 8px;
  }

  .deploy-tab small {
    display: none;
  }

  .cred-pair {
    grid-template-columns: 1fr;
  }

  .cred-pair > .hgi {
    display: none;
  }
}

/* pricing calc */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}

.calc-input {
  padding: 36px;
  display: grid;
  gap: 28px;
  align-content: start;
}

.calc-out {
  padding: 36px;
  background: var(--surface-2);
  border-left: 1px solid var(--line);
  display: grid;
  gap: 20px;
  align-content: start;
}

.people-count {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.people-count output {
  font-size: 64px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.people-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 34px;
}

.people-dots i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.9;
}

.people-dots i.is-free {
  background: var(--ok);
}

.range {
  width: 100%;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    var(--cyan) var(--fill, 10%),
    var(--elev) var(--fill, 10%)
  );
  cursor: pointer;
}

.range::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text);
  border: 4px solid var(--cyan);
  cursor: grab;
}

.range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text);
  border: 4px solid var(--cyan);
}

.range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--quiet);
  font-family: var(--mono);
  margin-top: 8px;
}

.price-big {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-big strong {
  font-size: 72px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.price-big span {
  color: var(--muted);
}

.per-person {
  display: grid;
  gap: 8px;
}

.per-person-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.per-person-row .bar {
  height: 8px;
  border-radius: 4px;
  background: var(--elev);
  overflow: hidden;
}

.per-person-row .bar i {
  display: block;
  height: 100%;
  background: var(--quiet);
  border-radius: 4px;
}

.per-person-row.is-you .bar i {
  background: var(--cyan);
}

.per-person-row.is-you {
  color: var(--text);
  font-weight: 500;
}

.per-person-row b {
  text-align: right;
  font-family: var(--mono);
  font-weight: 500;
}

@media (max-width: 860px) {
  .calc {
    grid-template-columns: 1fr;
  }

  .calc-out {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .calc-input,
  .calc-out {
    padding: 24px;
  }
}

/* trade-off */
.tradeoff {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.tradeoff-quote {
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 400;
}

.tradeoff-quote em {
  font-style: normal;
  color: var(--danger);
}

.mitigations {
  display: grid;
  gap: 2px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.mitigation {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
}

.mitigation .hgi {
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  background: var(--elev);
  color: var(--cyan);
}

.mitigation strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

.mitigation span {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .tradeoff {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.cta-band {
  border-top: 1px solid var(--line);
  padding: 72px 0;
}

.cta-band .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* page head for inner marketing pages */
.page-head {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--line);
}

.page-head .display {
  font-size: clamp(36px, 5vw, 60px);
  max-width: 18ch;
}

.page-head .lead {
  margin-top: 18px;
}

/* plans */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

.plan {
  padding: 32px;
  display: grid;
  gap: 22px;
  align-content: start;
}

.plan + .plan {
  border-left: 1px solid var(--line);
  background: var(--surface-2);
}

.plan-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  font-weight: 600;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan-price strong {
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.plan-price span {
  color: var(--muted);
}

.plan-list {
  display: grid;
  gap: 10px;
  font-size: 14.5px;
}

.plan-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.plan-list .hgi {
  color: var(--ok);
  font-size: 18px;
  margin-top: 1px;
}

@media (max-width: 760px) {
  .plans {
    grid-template-columns: 1fr;
  }

  .plan + .plan {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

.compare .table td:not(:first-child),
.compare .table th:not(:first-child) {
  text-align: center;
  width: 22%;
}

.compare .hgi {
  font-size: 18px;
}

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 500;
  font-size: 15.5px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .hgi {
  color: var(--quiet);
  transition: transform 0.2s;
  flex: none;
}

.faq details[open] summary .hgi {
  transform: rotate(45deg);
}

.faq details p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 60ch;
}

@media (max-width: 760px) {
  .faq {
    grid-template-columns: 1fr;
  }
}

/* security flow diagram */
.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.7fr) minmax(
      0,
      1fr
    ) minmax(120px, 0.7fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
}

.flow-node {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flow-node header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flow-node header .hgi {
  font-size: 20px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  background: var(--elev);
}

.flow-node.is-trusted header .hgi {
  background: var(--cyan-soft);
  color: var(--cyan);
}

.flow-node h3 {
  font-size: 15.5px;
  font-weight: 600;
}

.flow-node header small {
  display: block;
  color: var(--quiet);
  font-size: 12.5px;
}

.holds {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.holds li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 12.5px;
}

.holds li .hgi {
  font-size: 15px;
}

.holds li.no {
  color: var(--quiet);
  text-decoration: line-through;
  text-decoration-color: var(--line-2);
}

.flow-edge {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 0 10px;
  position: relative;
}

.flow-edge::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px dashed var(--line-2);
}

.edge-chip {
  position: relative;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 11.5px;
  white-space: nowrap;
}

.edge-chip.is-key {
  color: var(--danger);
  border-color: var(--danger-soft);
}

.edge-chip .hgi {
  font-size: 13px;
}

@media (max-width: 1000px) {
  .flow {
    grid-template-columns: 1fr;
  }

  .flow-edge {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 0;
  }

  .flow-edge::before {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 0;
    border-top: 0;
    border-left: 1px dashed var(--line-2);
  }
}

.threats .table td {
  vertical-align: top;
  padding: 16px 14px;
}

.threats .table td:first-child {
  font-weight: 500;
  width: 26%;
}

.threats .table td:nth-child(2) {
  width: 20%;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.spec-grid > div {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  gap: 4px;
}

.spec-grid > div:nth-child(3n) {
  border-right: 0;
}

.spec-grid > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.spec-grid dt {
  font-size: 12.5px;
  color: var(--quiet);
}

.spec-grid dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
}

@media (max-width: 760px) {
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .spec-grid > div {
    border-right: 0;
  }

  .spec-grid > div:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .spec-grid > div:last-child {
    border-bottom: 0;
  }
}

/* about scatter */
.scatter {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 80px minmax(0, 1fr);
  align-items: center;
  gap: 0;
}

.copies {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.copy-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 14px;
  display: grid;
  gap: 10px;
  font-size: 13px;
}

.copy-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 14px;
}

.copy-card header span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.copy-card header .hgi {
  font-size: 17px;
  color: var(--quiet);
}

.copy-card pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--danger);
  background: var(--danger-soft);
  padding: 8px 10px;
  border-radius: var(--r-sm);
  overflow: hidden;
  white-space: pre;
  text-overflow: ellipsis;
}

.scatter-arrow {
  display: grid;
  place-items: center;
  color: var(--quiet);
  font-size: 26px;
}

.one-copy {
  border: 1px solid var(--cyan-line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 20px;
  display: grid;
  gap: 12px;
}

.one-copy pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--cyan);
  background: var(--bg-2);
  padding: 12px;
  border-radius: var(--r-sm);
  white-space: pre-wrap;
  word-break: break-all;
}

@media (max-width: 900px) {
  .scatter {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .scatter-arrow {
    transform: rotate(90deg);
  }
}

.audience {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.audience > div {
  padding: 28px 28px 0 0;
  display: grid;
  gap: 10px;
  align-content: start;
}

.audience > div + div {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.audience .hgi {
  font-size: 24px;
  color: var(--cyan);
}

.audience p {
  color: var(--muted);
  font-size: 14.5px;
}

.audience .is-not .hgi {
  color: var(--quiet);
}

@media (max-width: 860px) {
  .audience {
    grid-template-columns: 1fr;
  }

  .audience > div,
  .audience > div + div {
    padding: 24px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* docs */
.docs {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  padding: 40px 0 96px;
}

.docs-nav {
  position: sticky;
  top: 86px;
  align-self: start;
  display: grid;
  gap: 18px;
  font-size: 14px;
}

.docs-nav h4 {
  font-size: 12.5px;
  color: var(--quiet);
  font-weight: 500;
  margin-bottom: 6px;
}

.docs-nav a {
  display: block;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  color: var(--muted);
}

.docs-nav a:hover {
  color: var(--text);
}

.docs-nav a.is-active {
  background: var(--surface-2);
  color: var(--text);
}

.doc-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 70px;
}

.doc-section:first-child {
  padding-top: 0;
}

.doc-text {
  display: grid;
  gap: 14px;
  align-content: start;
  font-size: 15px;
  color: var(--muted);
}

.doc-text h2 {
  font-size: 24px;
  color: var(--text);
  letter-spacing: -0.02em;
  font-weight: 600;
}

.doc-text code {
  font-size: 13px;
  padding: 1px 5px;
  border-radius: var(--r-xs);
  background: var(--elev);
  color: var(--text);
}

.doc-code {
  display: grid;
  gap: 14px;
  align-content: start;
  position: sticky;
  top: 86px;
}

.endpoint {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13.5px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  overflow-x: auto;
  white-space: nowrap;
}

.method {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--r-xs);
  background: var(--ok-soft);
  color: var(--ok);
}

.params {
  display: grid;
  border-top: 1px solid var(--line);
}

.params > div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.params dt code {
  background: none;
  padding: 0;
  color: var(--cyan);
}

.params dt small {
  display: block;
  color: var(--quiet);
  font-size: 12px;
}

.params dd {
  margin: 0;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.client-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
}

.client-grid a:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
}

.client-grid a .hgi {
  color: var(--quiet);
}

@media (max-width: 1080px) {
  .doc-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .doc-code {
    position: static;
  }
}

@media (max-width: 820px) {
  .docs {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .docs-nav {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
  }

  .docs-nav h4 {
    display: none;
  }

  .docs-nav > div {
    display: flex;
    gap: 4px;
  }

  .docs-nav a {
    white-space: nowrap;
  }

  .client-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* sign in */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.auth-main {
  padding: 32px 48px;
  display: flex;
  flex-direction: column;
}

.auth-card {
  margin: auto 0;
  max-width: 380px;
  display: grid;
  gap: 24px;
  padding: 40px 0;
}

.auth-side {
  background: var(--surface);
  border-left: 1px solid var(--line);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.btn-google {
  height: 46px;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  font-weight: 500;
}

.btn-google:hover {
  background: #f2f4f7;
}

.btn-google svg {
  width: 18px;
  height: 18px;
}

.locked-list {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--bg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.locked-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.locked-row:last-child {
  border-bottom: 0;
}

.locked-row .hgi {
  font-size: 17px;
}

.locked-row .secret-icon {
  width: 34px;
  height: 34px;
}

.redacted {
  display: inline-block;
  height: 8px;
  border-radius: 4px;
  background: var(--elev);
}

@media (max-width: 900px) {
  .auth {
    grid-template-columns: 1fr;
  }

  .auth-side {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 32px 24px;
  }

  .auth-main {
    padding: 24px;
  }
}

/* ============ app ============ */
.app {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.scrim {
  display: none;
}

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.vault-switch {
  margin: 10px;
  padding: 8px 10px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: background 0.15s;
}

.vault-switch:hover {
  background: var(--hover);
}

.vault-switch img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.vault-switch strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.vault-switch small {
  display: block;
  font-size: 12px;
  color: var(--quiet);
}

.vault-switch .hgi {
  margin-left: auto;
  color: var(--quiet);
}

.side-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 4px 10px 12px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.side-group h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--quiet);
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 14px;
  text-align: left;
  transition:
    background 0.12s,
    color 0.12s;
}

.side-link:hover {
  background: var(--hover);
  color: var(--text);
}

.side-link[aria-current='page'],
.side-link.is-active {
  background: var(--elev);
  color: var(--text);
  font-weight: 500;
}

.side-link .hgi {
  font-size: 17px;
  color: var(--quiet);
}

.side-link[aria-current='page'] .hgi,
.side-link.is-active .hgi {
  color: var(--cyan);
}

.side-link .count {
  margin-left: auto;
  font-size: 12px;
  color: var(--quiet);
  font-variant-numeric: tabular-nums;
}

.label-swatch {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  margin: 0 4px;
  flex: none;
}

.side-foot {
  border-top: 1px solid var(--line);
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.plan-meter {
  padding: 12px;
  border-radius: var(--r);
  background: var(--bg-2);
  display: grid;
  gap: 8px;
  font-size: 12.5px;
}

.plan-meter-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.plan-meter-top b {
  color: var(--text);
  font-weight: 500;
}

.seat-dots {
  display: flex;
  gap: 4px;
}

.seat-dots i {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--elev);
}

.seat-dots i.on {
  background: var(--cyan);
}

.me {
  display: grid;
  gap: 6px;
  padding: 6px 4px;
}

.me-user {
  min-width: 0;
}

.me strong {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
}

.me small {
  display: block;
  font-size: 12px;
  color: var(--quiet);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.me-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.side-credit {
  display: grid;
  gap: 2px;
  padding: 0 4px;
}

.side-credit small {
  display: block;
  font-size: 12px;
  white-space: nowrap;
}

.side-credit a {
  color: inherit;
}

.side-credit a:hover {
  color: var(--text);
}

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.topbar {
  height: 56px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.topbar .search {
  flex: 1;
  max-width: 560px;
}

.topbar .search .input {
  height: 34px;
  background: var(--surface);
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
}

.mobile-only {
  display: none !important;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--quiet);
}

.crumbs strong {
  color: var(--text);
  font-weight: 500;
}

.crumbs .hgi {
  font-size: 14px;
}

.content {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  position: relative;
}

.detail-pane,
.secret-list,
.table-wrap {
  position: relative;
}

.content-inner {
  padding: 28px 40px 64px;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.page-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title h1 {
  font-size: 26px;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.page-title p {
  color: var(--muted);
  margin-top: 4px;
  font-size: 14.5px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.panel-head h2 {
  font-size: 15.5px;
  font-weight: 600;
}

.panel-head p {
  font-size: 13px;
  color: var(--quiet);
  margin-top: 2px;
}

.panel-body {
  padding: 20px;
  min-width: 0;
}

.panel-body > *,
.done-grid > *,
.split-2 > * {
  min-width: 0;
}

body:has(> .app) {
  overflow: hidden;
}

.panel .table-wrap {
  border: 0;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  background: transparent;
}

.panel .table th {
  background: transparent;
}

.kv {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.kv:last-child {
  border-bottom: 0;
}

.kv dt {
  color: var(--quiet);
  font-size: 13.5px;
}

.kv dd {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kv dd.mono {
  font-size: 13.5px;
}

@media (max-width: 960px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 272px;
    z-index: 1210;
    transform: translateX(-100%);
    transition: transform 0.25s var(--ease);
  }

  .app.nav-open .sidebar {
    transform: none;
    box-shadow: var(--shadow);
  }

  .scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }

  .app.nav-open .scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-only {
    display: inline-grid !important;
  }

  .btn.mobile-only {
    display: inline-flex !important;
  }

  .content-inner {
    padding: 20px 16px 48px;
  }

  .kv {
    grid-template-columns: 1fr auto;
  }

  .kv dt {
    grid-column: 1 / -1;
  }
}

/* vault three pane */
.vault {
  flex: 1;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  min-height: 0;
}

.list-pane {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg-2);
}

.list-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.list-tools .select {
  height: 30px;
  width: auto;
  font-size: 13px;
  background-color: transparent;
  border-color: transparent;
}

.list-tools .select:hover {
  border-color: var(--line-2);
}

.list-filters {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--line-2);
  white-space: nowrap;
  flex: none;
}

.chip:hover {
  color: var(--text);
}

.chip[aria-pressed='true'] {
  background: var(--elev);
  color: var(--text);
  border-color: var(--elev);
}

.secret-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
}

.list-group-label {
  padding: 12px 10px 6px;
  font-size: 12px;
  color: var(--quiet);
  font-weight: 500;
}

.secret-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border-radius: var(--r);
  text-align: left;
  transition: background 0.12s;
}

.secret-row:hover {
  background: var(--hover);
}

.secret-row[aria-selected='true'] {
  background: var(--elev);
}

.secret-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--muted);
}

.secret-icon .hgi {
  font-size: 18px;
}

.secret-row strong {
  display: block;
  font-weight: 500;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.secret-row small {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12.5px;
  color: var(--quiet);
  overflow: hidden;
  white-space: nowrap;
}

.secret-row .meta-right {
  display: grid;
  justify-items: end;
  gap: 4px;
  font-size: 11.5px;
  color: var(--quiet);
  font-family: var(--mono);
}

.list-foot {
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--quiet);
  display: flex;
  justify-content: space-between;
}

.detail-pane {
  overflow-y: auto;
  min-height: 0;
}

.detail-inner {
  padding: 24px 40px 64px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.detail-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.detail-head .secret-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-lg);
  font-size: 15px;
}

.detail-head .secret-icon .hgi {
  font-size: 24px;
}

.detail-head h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.detail-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
  font-size: 13px;
  color: var(--quiet);
}

.detail-actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.tab {
  position: relative;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--quiet);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tab:hover {
  color: var(--text);
}

.tab[aria-selected='true'] {
  color: var(--text);
}

.tab[aria-selected='true']::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -1px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

.tab .count {
  font-size: 12px;
  color: var(--quiet);
  font-weight: 400;
}

.unlock {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  overflow: hidden;
}

.unlock-form {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.unlock-form h2 {
  font-size: 17px;
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: center;
}

.unlock-form h2 .hgi {
  color: var(--cyan);
  font-size: 20px;
}

.unlock-form > p {
  color: var(--muted);
  font-size: 14px;
  max-width: 52ch;
}

.unlock-row {
  display: flex;
  gap: 8px;
}

.unlock-row .input {
  font-family: var(--mono);
  font-size: 13.5px;
  height: 40px;
}

.unlock-row .btn {
  height: 40px;
}

.unlock-ghost {
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  padding: 18px;
  display: grid;
  gap: 9px;
  align-content: start;
  font-family: var(--mono);
  font-size: 12px;
}

.unlock-ghost div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  color: var(--quiet);
}

.form-error {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--danger);
  font-size: 13px;
}

.vars {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

.vars-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.vars-head .badge-ok {
  gap: 6px;
}

.var-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.4fr) auto;
  gap: 16px;
  align-items: center;
  padding: 8px 12px 8px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
}

.var-row:last-child {
  border-bottom: 0;
}

.var-row:hover {
  background: var(--surface-2);
}

.var-key {
  color: var(--cyan);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.var-val {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.var-val.is-masked {
  color: var(--quiet);
  letter-spacing: 0.12em;
}

.var-actions {
  display: flex;
  gap: 2px;
  opacity: 0.6;
}

.var-row:hover .var-actions,
.var-row:focus-within .var-actions {
  opacity: 1;
}

@media (max-width: 680px) {
  .var-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
  }

  .var-val {
    grid-column: 1;
    grid-row: 2;
  }

  .var-actions {
    grid-row: 1 / 3;
    grid-column: 2;
    opacity: 1;
  }
}

.meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.meta-grid > div {
  padding: 14px 16px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: grid;
  gap: 3px;
  min-width: 0;
}

.meta-grid > div:last-child {
  border-right: 0;
}

.meta-grid dt {
  font-size: 12.5px;
  color: var(--quiet);
}

.meta-grid dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .meta-grid > div:nth-child(2) {
    border-right: 0;
  }

  .meta-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

.timeline {
  display: grid;
}

.tl-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 0 0 0 4px;
  position: relative;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 30px;
  bottom: -2px;
  width: 1px;
  background: var(--line-2);
}

.tl-item:last-child::before {
  display: none;
}

.tl-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--quiet);
  position: relative;
  margin-top: 12px;
}

.tl-dot .hgi {
  font-size: 14px;
}

.tl-item.is-current .tl-dot {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--cyan-ink);
}

.tl-body {
  padding: 12px 0 18px;
  min-width: 0;
}

.tl-body strong {
  font-weight: 500;
  font-size: 14px;
}

.tl-body p {
  font-size: 13px;
  color: var(--quiet);
  margin-top: 2px;
}

.tl-diff {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tl-diff span {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 2px 7px;
  border-radius: var(--r-xs);
  background: var(--elev);
  color: var(--muted);
}

.tl-side {
  padding-top: 14px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  padding: 48px 24px;
  color: var(--muted);
}

.empty .hgi {
  font-size: 30px;
  color: var(--quiet);
}

.empty strong {
  color: var(--text);
  font-size: 15px;
}

@media (max-width: 1100px) {
  .vault {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .unlock {
    grid-template-columns: 1fr;
  }

  .unlock-ghost {
    display: none;
  }
}

@media (max-width: 760px) {
  .vault {
    grid-template-columns: 1fr;
  }

  .vault .detail-pane {
    display: none;
  }

  .vault.show-detail .detail-pane {
    display: block;
  }

  .vault.show-detail .list-pane {
    display: none;
  }

  .detail-inner {
    padding: 16px 16px 48px;
  }

  .detail-head {
    flex-wrap: wrap;
  }

  .detail-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
}

/* stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

.stat {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 6px;
  min-width: 0;
}

.stat:last-child {
  border-right: 0;
}

.stat dt {
  font-size: 13px;
  color: var(--quiet);
}

.stat dd {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stat dd strong {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat dd span {
  font-size: 12.5px;
  color: var(--quiet);
}

.spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 34px;
}

.spark i {
  flex: 1;
  background: var(--elev);
  border-radius: 2px 2px 0 0;
  min-height: 2px;
}

.spark i.hi {
  background: var(--cyan);
}

@media (max-width: 960px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.filters .select,
.filters .input {
  height: 32px;
  width: auto;
  font-size: 13px;
}

.filters .search {
  flex: 1;
  min-width: 200px;
}

.filters .search .input {
  width: 100%;
}

.who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.who strong {
  display: block;
  font-weight: 500;
  white-space: nowrap;
}

.who small {
  display: block;
  font-size: 12px;
  color: var(--quiet);
  white-space: nowrap;
}

.event {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.event .hgi {
  font-size: 16px;
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: var(--elev);
  color: var(--muted);
}

.event.ev-fetch .hgi {
  background: var(--cyan-soft);
  color: var(--cyan);
}

.event.ev-create .hgi {
  background: var(--ok-soft);
  color: var(--ok);
}

.event.ev-version .hgi {
  background: var(--dev-soft);
  color: var(--dev);
}

.event.ev-rollback .hgi {
  background: var(--warn-soft);
  color: var(--warn);
}

.event.ev-member .hgi {
  background: var(--custom-soft);
  color: var(--custom);
}

.event.ev-remove .hgi {
  background: var(--danger-soft);
  color: var(--danger);
}

.day-row td {
  background: var(--bg-2) !important;
  font-size: 12.5px;
  color: var(--quiet);
  padding: 7px 14px !important;
  font-weight: 500;
}

/* stepper (new secret) */
.steps {
  display: flex;
  gap: 0;
  align-items: center;
  font-size: 13.5px;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--quiet);
}

.steps li + li::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--line-2);
  margin: 0 12px;
}

.steps .n {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-family: var(--mono);
}

.steps li.is-current {
  color: var(--text);
  font-weight: 500;
}

.steps li.is-current .n {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--cyan-ink);
}

.steps li.is-done {
  color: var(--muted);
}

.steps li.is-done .n {
  background: var(--ok-soft);
  border-color: transparent;
  color: var(--ok);
}

@media (max-width: 640px) {
  .steps .t {
    display: none;
  }

  .steps li.is-current .t {
    display: inline;
  }

  .steps li + li::before {
    width: 16px;
    margin: 0 6px;
  }
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.editor-wrap {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

.editor-wrap:focus-within {
  border-color: var(--cyan);
}

.editor-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8px 8px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--quiet);
}

.editor-body {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 360px;
}

.gutter {
  padding: 14px 10px 14px 0;
  text-align: right;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--quiet);
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  user-select: none;
  overflow: hidden;
}

.editor-body textarea {
  border: 0;
  background: transparent;
  resize: none;
  padding: 14px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  min-height: 360px;
  white-space: pre;
  overflow-x: auto;
}

.editor-body textarea:focus {
  outline: none;
}

.drop-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--quiet);
}

.parse-list {
  display: grid;
  max-height: 300px;
  overflow-y: auto;
}

.parse-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  border-bottom: 1px solid var(--line);
}

.parse-row:last-child {
  border-bottom: 0;
}

.parse-row .hgi {
  font-size: 15px;
}

.parse-row small {
  font-family: var(--sans);
  color: var(--quiet);
  font-size: 12px;
}

.label-pick {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.label-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.label-pick label {
  cursor: pointer;
}

.label-pick label .badge {
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
  border: 1px solid transparent;
  background: var(--bg-2);
  color: var(--muted);
  transition:
    background 0.15s,
    color 0.15s;
}

.label-pick input:checked + .badge.label-development {
  background: var(--dev-soft);
  color: var(--dev);
  border-color: var(--dev);
}

.label-pick input:checked + .badge.label-staging {
  background: var(--stg-soft);
  color: var(--stg);
  border-color: var(--stg);
}

.label-pick input:checked + .badge.label-production {
  background: var(--prd-soft);
  color: var(--prd);
  border-color: var(--prd);
}

.label-pick input:checked + .badge.label-custom {
  background: var(--custom-soft);
  color: var(--custom);
  border-color: var(--custom);
}

.label-pick input:focus-visible + .badge {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.reveal-stage {
  max-width: 620px;
  margin: 24px auto;
  display: grid;
  gap: 20px;
}

.reveal-card {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.reveal-top {
  padding: 28px 28px 0;
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.reveal-top h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.reveal-top p {
  color: var(--muted);
  max-width: 46ch;
}

.vault-dial {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan-line);
  display: grid;
  place-items: center;
  background: radial-gradient(circle, var(--cyan-soft), transparent 70%);
  color: var(--cyan);
}

.vault-dial .hgi {
  font-size: 32px;
}

.reveal-key {
  margin: 22px 28px;
  display: grid;
  gap: 10px;
}

.reveal-key .key-box {
  font-size: 16px;
  position: relative;
  word-break: normal;
  overflow-wrap: normal;
}

.key-box.is-hidden {
  color: transparent;
  text-shadow: 0 0 9px var(--muted);
  user-select: none;
}

.reveal-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.reveal-confirm {
  border-top: 1px solid var(--line);
  padding: 20px 28px;
  display: grid;
  gap: 16px;
  background: var(--surface-2);
}

.done-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .composer,
  .done-grid {
    grid-template-columns: 1fr;
  }
}

.members .who strong {
  font-size: 14px;
}

.invite-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.invite-row .input {
  flex: 1;
  min-width: 220px;
}

.split-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 1000px) {
  .split-2 {
    grid-template-columns: 1fr;
  }
}

.token-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 13.5px;
}

.token-box span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmd-table td code {
  font-size: 12.5px;
}

.theme-toggle .hgi-sun-03 {
  display: none;
}

[data-theme='light'] .theme-toggle .hgi-sun-03 {
  display: inline-block;
}

[data-theme='light'] .theme-toggle .hgi-moon-02 {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ landing ============ */
.lp-hero {
  padding: 88px 0 0;
  text-align: center;
  position: relative;
}

.lp-hero .wrap {
  display: grid;
  justify-items: center;
  gap: 24px;
}

.lp-display {
  font-size: clamp(42px, 6.6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 400;
  max-width: 15ch;
}

.lp-display b {
  font-weight: 600;
  color: var(--cyan);
}

.lp-lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  max-width: 46ch;
  font-weight: 300;
  line-height: 1.5;
}

.lp-h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 400;
}

.lp-h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.stage {
  --g1: #08dff1;
  --g2: #1f8ff0;
  --g3: #2c55db;
  position: relative;
  border-radius: 28px;
  background: radial-gradient(
    120% 100% at 50% 0%,
    var(--g1) 0%,
    var(--g2) 42%,
    var(--g3) 100%
  );
  overflow: hidden;
  isolation: isolate;
}

.stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 120%,
      transparent 38%,
      rgba(255, 255, 255, 0.16) 38.2%,
      transparent 38.6%
    ),
    radial-gradient(
      circle at 50% 120%,
      transparent 54%,
      rgba(255, 255, 255, 0.12) 54.2%,
      transparent 54.6%
    ),
    radial-gradient(
      circle at 50% 120%,
      transparent 70%,
      rgba(255, 255, 255, 0.09) 70.2%,
      transparent 70.6%
    );
  z-index: -1;
}

.hero-stage {
  margin-top: 56px;
  padding: 56px 56px 0;
  width: 100%;
}

.shot {
  position: relative;
  margin: 0 auto;
  max-width: 1180px;
  border-radius: 14px 14px 0 0;
  background: var(--bg);
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.14);
  overflow: hidden;
  text-align: left;
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.shot-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line-2);
}

.shot-url {
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 6px;
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--quiet);
}

.shot-frame {
  position: relative;
  aspect-ratio: 1440 / 860;
  overflow: hidden;
}

.shot-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  height: 860px;
  border: 0;
  transform-origin: 0 0;
  pointer-events: none;
}

.float-card {
  position: absolute;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  padding: 16px;
  display: grid;
  gap: 10px;
  text-align: left;
  font-size: 13px;
  width: 340px;
}

.float-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.float-card header span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.float-card pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-all;
}

.float-key {
  left: 18px;
  bottom: 48px;
}

.float-env {
  right: 18px;
  top: 230px;
}

@media (max-width: 1100px) {
  .float-card {
    display: none;
  }
}

@media (max-width: 760px) {
  .hero-stage {
    padding: 28px 16px 0;
    border-radius: 20px;
  }
}

.lp-hero .wrap.works-with,
.works-with {
  padding-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 28px;
  color: var(--quiet);
  font-size: 14px;
}

.works-with strong {
  color: var(--muted);
  font-weight: 500;
}

.works-with span {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--muted);
}

/* steps on gradient */
.steps2 {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: stretch;
}

.steps2-list {
  display: grid;
  align-content: center;
  gap: 0;
}

.steps2-list h2 {
  margin-bottom: 32px;
}

.step2 {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 12px;
  text-align: left;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--quiet);
}

.step2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.step2.is-active::after {
  transform: scaleX(1);
}

.step2 .num {
  font-family: var(--mono);
  font-size: 14px;
  padding-top: 5px;
}

.step2 h3 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.step2 p {
  grid-column: 2;
  font-size: 15px;
  color: var(--muted);
  max-width: 44ch;
  display: none;
}

.step2.is-active {
  color: var(--text);
}

.step2.is-active .num {
  color: var(--cyan);
}

.step2.is-active p {
  display: block;
}

.steps2-stage {
  min-height: 520px;
  padding: 40px;
  display: grid;
}

.steps2-stage .stage-panel {
  inset: 40px;
  padding: 0;
  justify-content: center;
}

.stage-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 20px;
  display: grid;
  gap: 14px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55);
}

@media (max-width: 900px) {
  .steps2 {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .steps2-stage {
    min-height: 560px;
    padding: 20px;
  }

  .steps2-stage .stage-panel {
    inset: 20px;
  }
}

/* bento */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.tile {
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tile-visual {
  flex: 1;
  padding: 28px 28px 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 260px;
  background: radial-gradient(
    90% 80% at 50% 100%,
    rgba(8, 223, 241, 0.1),
    transparent 70%
  );
}

.tile-visual > div {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  padding: 14px;
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.tile-text {
  padding: 24px 28px 28px;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.tile-text p {
  color: var(--muted);
  font-size: 15px;
  max-width: 44ch;
}

.t-versions,
.t-audit {
  grid-column: span 7;
}

.t-labels,
.t-users {
  grid-column: span 5;
}

.mini-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
}

.mini-row:nth-child(odd) {
  background: var(--surface);
}

.mini-row strong {
  font-weight: 500;
  display: block;
}

.mini-row small {
  color: var(--quiet);
  font-size: 12px;
}

.mini-row .secret-icon {
  width: 32px;
  height: 32px;
  font-size: 11px;
  border-radius: 8px;
}

@media (max-width: 960px) {
  .t-versions,
  .t-labels,
  .t-users,
  .t-audit {
    grid-column: span 12;
    grid-row: auto;
  }
}

.final-stage {
  padding: 80px 56px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 24px;
  color: #fff;
}

.final-stage .lp-h2 {
  max-width: 18ch;
}

.final-stage p {
  font-size: 18px;
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
}

.btn-white {
  background: #fff;
  color: #0b1016;
}

.btn-white:hover {
  background: #e9f6ff;
}

.btn-outline-white {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 760px) {
  .final-stage {
    padding: 48px 20px;
  }
}

/* inner pages */
.page-head .lp-display {
  font-size: clamp(38px, 5.4vw, 72px);
}

.about-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 48px;
  align-items: center;
}

.about-lockup {
  width: 100%;
  max-width: 360px;
  height: auto;
  justify-self: end;
  border-radius: 24px;
}

.ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.plan-list.never .hgi {
  color: var(--danger);
}

.four-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.four-steps li {
  padding: 24px 24px 0 0;
  display: grid;
  gap: 10px;
  align-content: start;
}

.four-steps li + li {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.four-steps .num {
  font-family: var(--mono);
  color: var(--cyan);
  font-size: 14px;
}

.four-steps h3 {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.four-steps p {
  color: var(--muted);
  font-size: 14.5px;
}

.about-int {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.spacetent {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.spacetent img {
  width: 72px;
  height: auto;
}

.spacetent strong {
  display: block;
  font-weight: 500;
  font-size: 16px;
}

.spacetent small {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 12.5px;
}

.target-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.target-grid li {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
}

.footer-spacetent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-spacetent img {
  width: 22px;
  height: auto;
}

@media (max-width: 900px) {
  .about-head,
  .about-int,
  .ledger {
    grid-template-columns: 1fr;
  }

  .about-lockup {
    justify-self: start;
    max-width: 220px;
  }

  .spacetent {
    justify-self: start;
  }

  .four-steps {
    grid-template-columns: 1fr 1fr;
    gap: 24px 0;
  }

  .four-steps li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .four-steps {
    grid-template-columns: 1fr;
  }

  .four-steps li,
  .four-steps li + li {
    padding: 20px 0 0;
    border-left: 0;
  }

  .target-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pull {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.pull-side {
  display: grid;
  gap: 20px;
}

@media (max-width: 900px) {
  .pull {
    grid-template-columns: 1fr;
  }
}

.page-head .display {
  font-weight: 400;
  letter-spacing: -0.035em;
}

.page-head .lead {
  font-weight: 300;
}

.plans-note {
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
}

.t-caption {
  font-size: 12px;
}

.t-body {
  font-size: 15px;
}

.t-title {
  font-size: 19px;
  font-weight: 500;
}

.ic-md {
  font-size: 17px;
}

.ic-lg {
  font-size: 20px;
}

.icon-list {
  display: grid;
  gap: 12px;
}

.icon-list li {
  display: flex;
  gap: 10px;
}

.ledger-title {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lang-tabs {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}

.lang-tabs button {
  height: 26px;
  padding: 0 10px;
  border-radius: var(--r-xs);
  font-size: 12.5px;
  color: #8796a8;
}

.lang-tabs button:hover {
  color: #fff;
}

.lang-tabs button[aria-selected='true'] {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
/* Production templates keep their form actions and controls; these rules give them
   the spacing, surfaces and typography of the supplied redesign. */
:root { --bs-body-color: var(--text); --bs-body-bg: var(--bg); --bs-border-color: var(--line); --bs-secondary-color: var(--muted); --bs-tertiary-color: var(--quiet); --bs-emphasis-color: var(--text); --bs-heading-color: var(--text); }
[data-bs-theme="light"] { --bs-body-color: var(--text); --bs-body-bg: var(--bg); --bs-border-color: var(--line); --bs-secondary-color: var(--muted); --bs-tertiary-color: var(--quiet); --bs-emphasis-color: var(--text); --bs-heading-color: var(--text); }
body { background: var(--bg); color: var(--text); }
a { color: inherit; }
a:hover { color: var(--cyan); }
h1,h2,h3,h4,h5,h6 { color: var(--text); }
[data-theme="light"] .text-body-secondary { color: var(--muted)!important; }
[data-theme="light"] .text-body-tertiary { color: var(--quiet)!important; }
.site-header .menu-btn { display: none; }
.ev-page { width: 100%; max-width: 1440px; margin: 0 auto; padding: 28px 40px 64px !important; }
.ev-page-narrow { max-width: 1050px; }
.ev-page h1 { font-size: clamp(25px,3vw,32px); letter-spacing:-.025em; font-weight:600; }
.ev-page h2 { font-size:17px; font-weight:600; }
.ev-page .eyebrow { font-size:12px; text-transform:uppercase; letter-spacing:.09em; color:var(--quiet); }
.ev-page .ev-back { display:inline-block; margin-bottom:20px; color:var(--muted); font-size:14px; }
.ev-page .card,.ev-marketing .card { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); color:var(--text); box-shadow:none; overflow:hidden; }
.ev-page .card-header,.ev-marketing .card-header { background:var(--surface); border-color:var(--line); }
.ev-page .card-body { padding:20px !important; }
.ev-page .table-responsive { border-radius:var(--r-lg); }
.ev-page .table { --bs-table-color:var(--text); --bs-table-bg:transparent; --bs-table-border-color:var(--line); --bs-table-hover-color:var(--text); --bs-table-hover-bg:var(--hover); margin-bottom:0; }
.ev-page .table th { font-size:11px; font-weight:500; text-transform:uppercase; letter-spacing:.08em; color:var(--quiet); padding:12px 18px; white-space:nowrap; }
.ev-page .table td { padding:14px 18px; border-color:var(--line); }
.ev-page .table td a { color:var(--text); }
.ev-page .table td a:hover { color:var(--cyan); }
.ev-page .form-control,.ev-page .form-select { color:var(--text); background:var(--bg-2); border:1px solid var(--line-2); border-radius:var(--r-sm); min-height:42px; }
.ev-page .form-control:focus,.ev-page .form-select:focus { color:var(--text); background:var(--surface); border-color:var(--cyan); box-shadow:0 0 0 3px var(--cyan-soft); }
.ev-page .form-label { font-size:13px; font-weight:500; color:var(--muted); }
.ev-page .list-group-item { background:var(--surface); border-color:var(--line); color:var(--text); padding:16px 20px; }
.ev-page .list-group-item:hover { background:var(--hover); }
.ev-page .ev-env { background:var(--code-bg); color:var(--text); border:1px solid var(--line-2); min-height:300px; }
.ev-page .ev-plaintext { background:var(--code-bg); color:var(--text); border:1px solid var(--line); border-radius:var(--r-sm); padding:16px; overflow:auto; }
.ev-page .ev-stat { font-size:34px; font-weight:600; color:var(--text); }
.ev-page .badge { border-radius:4px; }
.ev-page .ev-label { border:0; }
.ev-page .btn-outline-secondary,.ev-marketing .btn-outline-secondary { border:1px solid var(--line-2); background:var(--surface); color:var(--text); }
.ev-page .btn-outline-secondary:hover,.ev-marketing .btn-outline-secondary:hover { background:var(--hover); color:var(--text); }
.ev-page .btn-outline-danger { color:var(--danger); border:1px solid var(--danger); }
.ev-page .btn-outline-danger:hover { background:var(--danger-soft); color:var(--danger); }
.ev-page .btn-primary,.ev-marketing .btn-primary { background:var(--cyan); color:var(--cyan-ink); border-color:var(--cyan); }
.ev-page .btn-primary:hover,.ev-marketing .btn-primary:hover { background:var(--cyan-hover); border-color:var(--cyan-hover); color:var(--cyan-ink); }
.ev-page .btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.ev-page .ev-notice { border-radius:var(--r-sm); padding:12px 16px; }
.ev-page summary { padding:16px 20px; cursor:pointer; }
.ev-page .form-check-input { background-color:var(--bg-2); border-color:var(--line-2); }
.ev-page .form-check-input:checked { background-color:var(--cyan); border-color:var(--cyan); }
.ev-marketing .container-xl { max-width:1200px; }
.ev-marketing .ev-landing-hero { padding:96px 0 80px; text-align:center; background:radial-gradient(circle at 50% 85%, rgba(8,223,241,.08), transparent 48%),var(--bg); }
.ev-marketing .ev-landing-hero .row { justify-content:center; }
.ev-marketing .ev-landing-hero .col-lg-6 { width:100%; max-width:1100px; }
.ev-marketing .ev-landing-hero .ev-display { max-width:900px; margin:auto; font-size:clamp(44px,6vw,76px); line-height:1.08; letter-spacing:-.055em; }
.ev-marketing .ev-landing-hero .ev-lead { max-width:650px; margin:20px auto 26px; font-size:18px; }
.ev-marketing .ev-landing-hero .d-flex { justify-content:center; }
.ev-marketing .ev-landing-hero .ev-envelope { max-width:800px; margin:50px auto 0 !important; text-align:left; box-shadow:var(--shadow); }
.ev-marketing .ev-section { padding-top:72px; padding-bottom:72px; }
.ev-marketing .ev-section-title { font-size:clamp(28px,3vw,42px); letter-spacing:-.035em; }
.ev-marketing .ev-feature { border:1px solid var(--line); background:var(--surface); padding:22px; border-radius:var(--r-lg); height:100%; }
.ev-marketing .ev-cta { background:linear-gradient(140deg,var(--surface),var(--bg-2)); }
.ev-marketing main.container-xl { padding-top:64px !important; padding-bottom:90px !important; }
.ev-marketing main.container-xl h1 { font-size:clamp(36px,5vw,60px); letter-spacing:-.045em; }
.ev-marketing main.container-xl h2 { font-size:21px; }
.ev-marketing main.container-xl p,.ev-marketing main.container-xl li { color:var(--muted); }
.ev-marketing pre { background:var(--code-bg); color:var(--text); padding:20px; border-radius:var(--r-sm); overflow:auto; }
.ev-marketing .ev-footer { background:var(--surface); border-color:var(--line)!important; }
.ev-marketing .ev-footer a { color:var(--muted); }
.ev-marketing .ev-footer a:hover { color:var(--cyan); }
.ev-marketing .ev-footer ul { padding:0; list-style:none; }
.ev-marketing .ev-footer li { margin-bottom:7px; }
.ev-marketing .ev-footer .ev-brand { display:inline-flex; align-items:center; gap:8px; color:var(--text); }
.ev-marketing .ev-footer .ev-brand img { width:30px; height:30px; }
.ev-marketing .ev-footer-legal { border-color:var(--line)!important; }
.ev-marketing .ev-lockup { max-width:150px; height:auto; }
.ev-marketing .ev-price { font-size:42px; font-weight:600; color:var(--text); }
.ev-marketing .ev-price small { font-size:14px; color:var(--muted); }
@media(max-width:960px) { .ev-page { padding:24px 20px 60px !important; } .site-header .menu-btn { display:flex; } }
@media(max-width:680px) { .ev-page { padding:20px 16px 48px !important; } .ev-page .table th,.ev-page .table td { padding:10px 12px; } .ev-marketing .ev-landing-hero { padding:70px 0 50px; } }
.content:has(> .ev-vault-page) { display:flex; flex-direction:column; }
.ev-vault-page { width:100%; min-height:100%; }
.ev-vault-page .list-pane .badge { font-size:11px; padding:3px 6px; }
.ev-vault-page .list-pane .secret-row { color:var(--text); }
.ev-vault-page .list-pane .secret-row:hover { color:var(--text); }
.ev-vault-page .detail-inner { max-width:none; }
.ev-vault-page h1 { font-size:28px; margin-bottom:8px; }
.ev-vault-page .panel { overflow:hidden; }
.ev-vault-page .form-control,.ev-vault-page .form-select { color:var(--text); background:var(--bg-2); border:1px solid var(--line-2); border-radius:var(--r-sm); min-height:42px; }
.ev-vault-page .form-control:focus,.ev-vault-page .form-select:focus { color:var(--text); background:var(--surface); border-color:var(--cyan); box-shadow:0 0 0 3px var(--cyan-soft); }
.ev-vault-page .form-label { display:block; color:var(--muted); font-size:13px; margin-bottom:6px; }
.ev-vault-page .ev-env { background:var(--code-bg); color:var(--text); min-height:300px; font-family:var(--mono); }
.ev-vault-page .ev-detail-tabs { display:flex; gap:28px; border-bottom:1px solid var(--line); color:var(--quiet); font-size:14px; }
.ev-vault-page .ev-detail-tabs > * { padding:10px 4px; }
.ev-vault-page .ev-detail-tabs [aria-current="page"] { color:var(--text); border-bottom:2px solid var(--cyan); }
.ev-vault-page .table { --bs-table-color:var(--text); --bs-table-bg:transparent; --bs-table-border-color:var(--line); width:100%; }
.ev-vault-page .ev-back { display:block; color:var(--muted); font-size:13px; margin-bottom:6px; }
.ev-vault-page .detail-head .secret-icon { text-transform:uppercase; }
.ev-vault-page .badge { display:inline-block; }
.ev-pricing-stage { padding:40px; }
.ev-auth-page { min-height:70vh; }
.ev-auth-page .auth-main { width:55%; }
.ev-auth-page .auth-side { width:45%; }
.ev-auth-page .auth-card { max-width:480px; }
.ev-auth-page .auth-side h2 { font-size:24px; line-height:1.3; }
@media(max-width:960px) { .ev-vault-page { display:block; overflow:auto; } .ev-vault-page .list-pane { min-height:220px; max-height:35vh; border-bottom:1px solid var(--line); } .ev-vault-page .detail-inner { padding:24px 20px 60px; } .ev-auth-page .auth-main { width:100%; } .ev-auth-page .auth-side { display:none; } }
.ev-vault-preview { width:100%; height:auto; display:block; border-radius:var(--r-lg) var(--r-lg) 0 0; }
.ev-envelope-caption { border-top:1px solid var(--line); }
.ev-marketing .ev-envelope { max-width:980px !important; }
.ev-security-stage { padding:40px; }
.ev-marketing .flow-node h3 { font-size:16px; }
.ev-marketing .flow-node .holds { list-style:none; }
.ev-marketing .docs .doc-section pre { margin:0; }
.ev-marketing .docs-nav a { color:var(--muted); }
.ev-marketing .docs-nav a:hover { color:var(--cyan); }
.ev-new-page { max-width:1450px; }
.ev-new-page .composer { grid-template-columns:minmax(0,1.55fr) minmax(310px,.8fr); align-items:start; }
.ev-new-page .ev-new-side { display:grid; gap:16px; }
.ev-new-page .editor-wrap { min-height:580px; }
.ev-new-page .editor-body { grid-template-columns:minmax(0,1fr); min-height:510px; }
.ev-new-page .editor-body textarea { width:100%; min-height:510px; }
.ev-new-page .panel .field-label { display:block; margin-bottom:6px; }
.ev-new-page .panel .input,.ev-new-page .panel .select { width:100%; }
.ev-new-page .panel textarea.input { min-height:72px; }
.ev-new-page .panel .notice { margin-top:12px; }
@media(max-width:900px) { .ev-new-page .composer { grid-template-columns:1fr; } .ev-new-page .editor-wrap,.ev-new-page .editor-body,.ev-new-page .editor-body textarea { min-height:330px; } }
.ev-login .auth { min-height:100vh; min-height:100dvh; }
.ev-login .auth-main { position:relative; display:flex; flex-direction:column; justify-content:center; padding:100px clamp(28px,4vw,72px) 70px; }
.ev-login .ev-auth-top { position:absolute; top:38px; left:clamp(28px,4vw,72px); right:clamp(28px,4vw,72px); display:flex; align-items:center; justify-content:space-between; }
.ev-login .auth-card { width:100%; max-width:530px; }
.ev-login .auth-card h1 { font-size:clamp(28px,3vw,38px); }
.ev-login .auth-card .btn-google { display:flex; align-items:center; justify-content:center; gap:12px; }
.ev-google-mark { font-family:Arial,sans-serif; font-weight:700; font-size:24px; background:conic-gradient(#4285f4 0 25%,#34a853 25% 50%,#fbbc05 50% 75%,#ea4335 75%); -webkit-background-clip:text; background-clip:text; color:transparent; }
.ev-login .ev-auth-foot { position:absolute; bottom:38px; left:clamp(28px,4vw,72px); font-size:12px; }
.ev-login .auth-side { display:flex; align-items:center; padding:clamp(28px,4vw,72px); }
.ev-login .ev-auth-side-inner { max-width:620px; display:grid; gap:26px; }
.ev-login .ev-auth-side-inner h2 { font-size:25px; line-height:1.3; }
.ev-login .locked-list { width:100%; }
.ev-login .locked-row { display:flex; align-items:center; gap:14px; }
.ev-login .locked-row .quiet { margin-left:auto; }
@media(max-width:900px) { .ev-login .auth-main { min-height:100vh; } .ev-login .auth-side { display:none; } }
.topbar .ev-secret-search { flex:1; max-width:560px; }
.topbar .ev-secret-search .input { height:36px; width:100%; }
.ev-vault-page .list-filters .chip { cursor:pointer; }
.ev-vault-page .list-filters .chip[aria-pressed="true"] { background:var(--elev); color:var(--text); }
.app,.app .main,.app .content,.app .topbar { min-width:0; }
.app .content { overflow-x:hidden; }
.ev-new-page .composer,.ev-new-page .composer > *,.ev-new-page .editor-wrap,.ev-new-page .editor-body,.ev-new-page .editor-body textarea { min-width:0; max-width:100%; }
.ev-page .page-title > * { min-width:0; }
@media(max-width:680px) {
  .app .topbar { padding:0 12px; gap:8px; }
  .app .topbar .ev-secret-search { min-width:0; flex:1; }
  .app .topbar .ev-secret-search .input { width:100%; min-width:0; font-size:13px; }
  .app .topbar .topbar-actions { flex:none; }
  .app .topbar .topbar-actions .btn { width:36px; height:36px; padding:0; }
  .app .topbar .topbar-actions .new-secret-text { display:none; }
  .app .topbar .crumbs { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:12px; }
  .ev-vault-page .list-pane { width:100%; }
  .ev-vault-page .secret-list { width:100%; }
  .ev-vault-page .list-foot { gap:8px; }
  .ev-vault-page .list-foot span { white-space:nowrap; }
  .ev-new-page .page-title { display:block; }
  .ev-new-page .page-title p { overflow-wrap:anywhere; }
  .ev-new-page .editor-wrap,.ev-new-page .editor-body,.ev-new-page .editor-body textarea { width:100%; }
}
