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

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

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

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

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

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

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 16px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

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

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

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

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

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

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

@media (max-width: 767px) {
  .brand img {
    height: 28px;
  }
  
  .brand-badge {
    display: none;
  }
  
  #btn-sign-out,
  .btn-nav-toggle {
    padding: 8px;
    width: 40px;
    height: 40px;
    justify-content: center;
  }
  
  .session-photo {
    width: 32px;
    height: 32px;
  }
  .btn,
  input,
  select {
    min-height: var(--touch-min, 44px);
  }
  .data-table td,
  .data-table th {
    padding: 8px 8px;
    font-size: 0.78125rem;
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

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

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

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

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

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


.header-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

body.hub-nav-open .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}

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

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

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

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

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

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

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

.btn-block {
  width: 100%;
}

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

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

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

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

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

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

.btn-danger:hover {
  background: #732828;
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border-color: transparent;
}

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

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

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

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


.page-gate {
  padding: 80px 0;
}

.gate-card {
  width: min(100% - 40px, 480px);
  margin: 0 auto;
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.gate-card h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
}

.gate-card p {
  margin: 0 0 24px;
  color: var(--color-text-secondary);
}


.form-group {
  margin-bottom: var(--space-3);
}

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

.form-group input,
.form-group select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-button);
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.form-group input[readonly] {
  background: var(--color-bg);
  color: var(--color-text-secondary);
}

.form-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 0;
  accent-color: var(--color-accent);
  flex: 0 0 auto;
}

.form-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.form-check label {
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.5;
  cursor: pointer;
}

.form-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

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

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

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

.form-stack {
  display: grid;
  gap: var(--space-2);
}


.hero {
  margin-bottom: var(--space-4);
}

.hero-copy {
  max-width: 640px;
}

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

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

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-lead {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}


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

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

@media (min-width: 600px) {
  .panel-head {
    padding: 24px 28px;
  }
}

.panel-head-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2);
}

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

.panel-head h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.panel-head p {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}


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

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 600px;
}

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

.data-table th {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  padding: 10px 16px;
}

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

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

.data-table .mono {
  font-family: var(--mono);
  font-size: 0.78125rem;
}

.data-table .label-cell {
  font-weight: 600;
}


.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-pill.is-active {
  color: var(--ok);
  background: #e5f0e7;
}

.status-pill.is-paused {
  color: var(--color-text-secondary);
  background: #ece9e3;
}

.status-pill.is-failing {
  color: var(--danger);
  background: #f3e4e1;
}

.status-pill.is-exhausted {
  color: var(--danger);
  background: #f3e4e1;
}


.notes-grid {
  display: grid;
  gap: var(--space-2);
}

@media (min-width: 800px) {
  .notes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.note-card {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-bg);
}

.note-card h3 {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.note-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.note-card code {
  font-family: var(--mono);
  font-size: 0.8125rem;
  word-break: break-all;
}


.secret-once {
  margin-top: var(--space-3);
  padding: var(--space-2);
  border: 1px solid var(--color-border-strong);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-button);
  background: var(--color-bg);
}

.secret-once p {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.secret-once code {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  word-break: break-all;
  line-height: 1.5;
}


.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: var(--space-4);
}

@media (min-width: 600px) {
  .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

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

.stat-card strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

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


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

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

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

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

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

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

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

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

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

.empty-state {
  text-align: center;
  padding: var(--space-4) var(--space-2);
  color: var(--color-text-secondary);
}

.empty-state p {
  margin: 0 0 var(--space-3) 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  background: var(--color-bg);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tag.is-ok {
  border-color: rgba(31, 92, 58, 0.35);
  background: rgba(31, 92, 58, 0.1);
  color: var(--ok);
}

.tag.is-wait {
  border-color: rgba(31, 75, 122, 0.3);
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.tag.is-danger {
  border-color: rgba(138, 47, 47, 0.32);
  background: rgba(138, 47, 47, 0.08);
  color: var(--danger);
}

.tag.is-muted {
  color: var(--color-text-secondary);
}

.tag-owner {
  margin-left: 6px;
}


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

.confirm-card {
  width: 100%;
  max-width: 460px;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-lift);
}

@media (min-width: 600px) {
  .confirm-card {
    padding: var(--space-4);
  }
}

.confirm-card h2 {
  margin: 0 0 8px;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.confirm-card p {
  margin: 0 0 var(--space-2);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.confirm-card input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  background: var(--color-surface);
  color: var(--color-text);
}

.confirm-card input:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

@media (prefers-reduced-motion: no-preference) {
  .confirm-card {
    animation: confirm-in 160ms ease both;
  }
}

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

.row-busy {
  opacity: 0.55;
}


.creds-layout {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 900px) {
  .creds-layout {
    grid-template-columns: 380px minmax(0, 1fr);
    align-items: start;
  }
}


.delete-warning {
  padding: 16px;
  margin-bottom: var(--space-3);
  background: rgba(138, 47, 47, 0.06);
  border: 1px solid rgba(138, 47, 47, 0.2);
  border-radius: var(--radius-button);
}

.delete-warning p {
  margin: 0 0 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--danger);
}

.delete-warning ul {
  margin: 0;
  padding-left: 20px;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.hx-count {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}

.hx-count[hidden] {
  display: none ;
}



.page-billing {
  background:
    linear-gradient(180deg, rgba(246, 248, 246, 0.98), rgba(239, 244, 242, 0.96)),
    radial-gradient(circle at 12% 8%, rgba(73, 111, 91, 0.12), transparent 34%);
}

.page-billing main {
  width: 100%;
  min-width: 0;
}

.bill-shell {
  padding: clamp(18px, 3vw, 34px) 0 clamp(48px, 7vw, 88px);
}

.bill-container {
  width: min(1320px, calc(100vw - 28px));
  margin-inline: auto;
  display: grid;
  gap: clamp(16px, 2vw, 26px);
  min-width: 0;
}

.bill-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 20px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(21, 45, 49, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(12, 32, 40, 0.98), rgba(33, 71, 70, 0.96)),
    linear-gradient(90deg, rgba(204, 224, 206, 0.12), transparent);
  color: #f8fbf8;
  box-shadow: 0 24px 70px rgba(17, 36, 40, 0.18);
}

.bill-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: min(520px, 70%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 235, 218, 0.6));
}

@media (min-width: 800px) {
  .bill-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

.bill-eyebrow,
.bill-panel-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent, #315f55);
}

.bill-hero .bill-eyebrow {
  color: #d8ebda;
}

.bill-hero h1,
.bill-feature-copy h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1;
}

.bill-hero h1 {
  max-width: 760px;
  font-size: clamp(2.15rem, 6vw, 5.4rem);
  color: #ffffff;
}

.bill-hero .lead {
  margin: 16px 0 0;
  max-width: 780px;
  color: rgba(248, 251, 248, 0.78);
  font-size: clamp(0.98rem, 1.5vw, 1.15rem);
  line-height: 1.65;
}

.bill-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  z-index: 1;
}

.bill-hero-actions .btn {
  white-space: nowrap;
}

.bill-status {
  margin: 0;
  padding: 13px 16px;
  border: 1px solid rgba(21, 45, 49, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 36, 40, 0.08);
}

.bill-status.is-error {
  border-color: rgba(139, 54, 54, 0.28);
  background: #fff7f6;
}

.bill-status.is-ok {
  border-color: rgba(45, 111, 77, 0.28);
  background: #f5fbf6;
}

.bill-overview,
.bill-workspace,
.bill-side-stack,
.bill-panel,
.bill-feature-strip {
  min-width: 0;
}

.bill-stat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

@media (min-width: 620px) {
  .bill-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .bill-stat-grid {
    grid-template-columns: 1.25fr repeat(5, minmax(0, 1fr));
  }
}

.bill-stat {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(21, 45, 49, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(17, 36, 40, 0.08);
}

.bill-stat-plan {
  background: #f9fbf8;
}

.bill-stat-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text-secondary, #65736f);
}

.bill-stat-value {
  display: block;
  min-width: 0;
  color: var(--color-text, #162321);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.bill-stat-value-sm {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.bill-stat-note {
  display: block;
  color: var(--color-text-secondary, #65736f);
  font-size: 0.78rem;
  line-height: 1.35;
}

.bill-feature-strip {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(21, 45, 49, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(17, 36, 40, 0.08);
}

@media (min-width: 900px) {
  .bill-feature-strip {
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
    align-items: center;
  }
}

.bill-feature-copy h2 {
  max-width: 680px;
  color: #152d31;
  font-size: clamp(1.65rem, 4vw, 3.6rem);
}

.bill-feature-copy p {
  margin: 12px 0 0;
  max-width: 760px;
  color: var(--color-text-secondary, #65736f);
  line-height: 1.6;
}

.bill-feature-grid {
  display: grid;
  gap: 10px;
}

.bill-feature-grid article {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(21, 45, 49, 0.1);
  border-radius: 8px;
  background: #f7faf8;
}

.bill-feature-grid strong {
  color: #152d31;
}

.bill-feature-grid span {
  color: var(--color-text-secondary, #65736f);
  font-size: 0.88rem;
  line-height: 1.45;
}

.bill-workspace {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

@media (min-width: 1120px) {
  .bill-workspace {
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    align-items: start;
  }
}

.bill-side-stack {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.bill-panel {
  overflow: hidden;
  border: 1px solid rgba(21, 45, 49, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(17, 36, 40, 0.08);
}

.bill-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(18px, 2.6vw, 26px);
  border-bottom: 1px solid rgba(21, 45, 49, 0.08);
}

.bill-panel-head-split {
  align-items: flex-end;
}

.bill-panel-head h2 {
  margin: 0;
  color: #152d31;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.bill-panel-intro {
  margin: 8px 0 0;
  max-width: 660px;
  color: var(--color-text-secondary, #65736f);
  font-size: 0.92rem;
  line-height: 1.5;
}

.bill-panel-body {
  padding: clamp(18px, 2.6vw, 26px);
}

.bill-empty {
  margin: 0;
  padding: 28px 18px;
  color: var(--color-text-secondary, #65736f);
  font-size: 0.9rem;
  text-align: center;
}

.bill-plan-list {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2.4vw, 24px);
}

@media (min-width: 720px) {
  .bill-plan-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.bill-plan-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(21, 45, 49, 0.1);
  border-radius: 8px;
  background: #fbfcfb;
}

.bill-plan-card.is-current {
  border-color: rgba(49, 95, 85, 0.42);
  background: #f4faf5;
}

.bill-plan-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.bill-plan-top h3 {
  margin: 0;
  color: #152d31;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.bill-plan-price {
  margin: 0;
  text-align: right;
  color: #315f55;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bill-plan-price span {
  display: block;
  margin-top: 4px;
  color: var(--color-text-secondary, #65736f);
  font-size: 0.72rem;
  font-weight: 600;
}

.bill-plan-blurb {
  margin: 0;
  color: var(--color-text-secondary, #65736f);
  font-size: 0.9rem;
  line-height: 1.55;
}

.bill-plan-features {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bill-plan-features li {
  position: relative;
  padding-left: 16px;
  color: var(--color-text, #162321);
  font-size: 0.84rem;
  line-height: 1.42;
}

.bill-plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #315f55;
}

.bill-plan-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}

.bill-tier-list {
  display: grid;
  gap: 0;
}

.bill-tier-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(21, 45, 49, 0.08);
  color: var(--color-text, #162321);
}

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

.bill-tier-row span {
  color: var(--color-text-secondary, #65736f);
}

.bill-tier-row strong {
  white-space: nowrap;
  color: #315f55;
}

.bill-key-list {
  display: grid;
  gap: 12px;
  padding: clamp(16px, 2.4vw, 22px);
}

.bill-key-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(21, 45, 49, 0.1);
  border-radius: 8px;
  background: #fbfcfb;
}

.bill-key-row {
  display: grid;
  grid-template-columns: minmax(72px, 30%) minmax(0, 1fr);
  gap: 8px 12px;
  align-items: baseline;
  min-width: 0;
}

.bill-key-row dt {
  margin: 0;
  color: var(--color-text-secondary, #65736f);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bill-key-row dd {
  margin: 0;
  min-width: 0;
  color: var(--color-text, #162321);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.bill-key-row dd.mono,
.bill-key-reveal code,
.bill-panel code {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
}

.bill-key-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bill-key-reveal {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(49, 95, 85, 0.28);
  border-left: 4px solid #315f55;
  border-radius: 8px;
  background: #f5fbf6;
  box-shadow: 0 14px 34px rgba(17, 36, 40, 0.08);
}

@media (min-width: 720px) {
  .bill-key-reveal {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

.bill-key-reveal-label {
  margin: 0 0 8px;
  color: #315f55;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.bill-key-reveal code {
  display: block;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(21, 45, 49, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: #162321;
  font-size: 0.82rem;
  line-height: 1.45;
  word-break: break-all;
}

.terms-gate .terms-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid rgba(21, 45, 49, 0.12);
  border-radius: 8px;
  background: #f7faf8;
}

.terms-gate .terms-check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #315f55;
}

.terms-gate .terms-check label {
  min-width: 0;
  color: var(--color-text, #162321);
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}

.terms-gate .terms-check.is-invalid {
  border-color: rgba(139, 54, 54, 0.45);
  background: #fff7f6;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(21, 45, 49, 0.12);
  border-radius: 999px;
  background: #eef4f0;
  color: #315f55;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.is-active {
  border-color: rgba(49, 95, 85, 0.28);
  background: #e8f5ea;
  color: #245347;
}

.status-pill.is-exhausted {
  border-color: rgba(139, 54, 54, 0.25);
  background: #fff0ee;
  color: #8b3636;
}

@media (max-width: 560px) {
  .bill-container {
    width: min(100% - 20px, 1320px);
  }

  .bill-hero-actions .btn,
  .bill-plan-foot .btn,
  #btn-new-key {
    width: 100%;
  }

  .bill-plan-top {
    grid-template-columns: 1fr;
  }

  .bill-plan-price {
    text-align: left;
  }

  .bill-key-row {
    grid-template-columns: 1fr;
  }
}


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




html,
body {
  overflow-x: hidden;
}


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

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

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

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

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

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


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

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

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

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

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

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


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


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


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


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

}
