:root {
  --bg: oklch(15% 0.014 300);
  --bg-deep: oklch(12% 0.012 300);
  --surface: oklch(18.5% 0.016 300);
  --surface-raised: oklch(21.5% 0.018 300);
  --text: oklch(96% 0.008 300);
  --text-soft: oklch(76% 0.014 300);
  --text-muted: oklch(57% 0.014 300);
  --line: oklch(96% 0.008 300 / 0.1);
  --line-strong: oklch(96% 0.008 300 / 0.18);
  --accent: oklch(62% 0.2 295);
  --accent-hover: oklch(67% 0.19 295);
  --accent-soft: oklch(62% 0.2 295 / 0.14);
  --success: oklch(75% 0.14 165);
  --danger: oklch(70% 0.17 20);
  --radius: 6px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

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

html { color-scheme: dark; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { display: block; }
[hidden], .hidden { display: none !important; }

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 14px; font-size: 40px; line-height: 1.12; letter-spacing: 0; }
h2 { margin-bottom: 12px; font-size: 22px; line-height: 1.25; letter-spacing: 0; }
p { color: var(--text-soft); }
code { font-family: var(--mono); }

:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 17px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--text);
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms cubic-bezier(.25,1,.5,1), border-color 180ms cubic-bezier(.25,1,.5,1);
}

.button:hover { border-color: var(--accent-hover); background: var(--accent-hover); }
.button:disabled { border-color: var(--line); background: var(--surface); color: var(--text-muted); cursor: default; }
.button-secondary { border-color: var(--line-strong); background: transparent; color: var(--text-soft); }
.button-secondary:hover { border-color: var(--line-strong); background: var(--surface-raised); color: var(--text); }
.button-large { min-height: 48px; padding: 13px 22px; }
.button-small { min-height: 34px; padding: 7px 13px; font-size: 13px; }
.text-link { color: var(--text-soft); font-size: 14px; font-weight: 600; text-decoration: none; }
.text-link:hover { color: var(--text); }

.icon-button, .copy-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
}

.icon-button:hover, .icon-button.is-active, .copy-button:hover { background: var(--surface-raised); color: var(--text); }
.primary-icon { background: var(--accent); color: var(--text); }
.primary-icon:hover { background: var(--accent-hover); }
.danger-icon:hover { background: oklch(70% 0.17 20 / 0.12); color: var(--danger); }
.text-button { padding: 5px 0; border: 0; background: transparent; color: var(--text-muted); font-size: 12px; font-weight: 650; cursor: pointer; }
.text-button:hover { color: var(--text); }

label { display: grid; gap: 7px; color: var(--text-soft); font-size: 13px; font-weight: 600; }
label small { color: var(--text-muted); font-size: 12px; font-weight: 400; }
input, select, textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-deep);
  color: var(--text);
}
select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%23918b9a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 18px;
}

input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:hover, select:hover, textarea:hover { border-color: oklch(96% 0.008 300 / 0.26); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 0; }
textarea { resize: vertical; line-height: 1.55; }
input[type="checkbox"] { width: 16px; min-height: 16px; accent-color: var(--accent); }
.mono-input { color: oklch(79% 0.12 295); font-family: var(--mono); }
.form-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .55fr); gap: 16px; }
.stack-form { display: grid; gap: 18px; }
.check-row { display: flex; align-items: flex-start; gap: 9px; font-weight: 400; }
.check-row a, .form-between a, .auth-panel header a, .auth-back { color: oklch(78% 0.12 295); }
.form-between { display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 13px; }

.notice {
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 13px;
}
.notice-success { border-color: oklch(75% 0.14 165 / 0.32); color: var(--success); }
.notice-error { border-color: oklch(70% 0.17 20 / 0.35); color: oklch(79% 0.12 20); }
.notice a { text-decoration: underline; }

.toast-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000;
  display: grid;
  width: min(380px, calc(100vw - 36px));
  gap: 10px;
  pointer-events: none;
}

.app-toast {
  --toast-color: var(--accent-hover);
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 11px;
  align-items: start;
  overflow: hidden;
  padding: 13px 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: oklch(17% 0.017 300 / 0.97);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.42), inset 3px 0 0 var(--toast-color);
  opacity: 0;
  pointer-events: auto;
  transform: translateX(32px);
  transition: opacity 220ms cubic-bezier(.25,1,.5,1), transform 220ms cubic-bezier(.25,1,.5,1);
  backdrop-filter: blur(14px);
}

.app-toast.is-visible { opacity: 1; transform: translateX(0); }
.app-toast.is-leaving { opacity: 0; transform: translateX(24px); }
.app-toast-success { --toast-color: var(--success); }
.app-toast-error { --toast-color: var(--danger); }
.toast-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--toast-color), transparent 84%);
  color: var(--toast-color);
  font-size: 12px;
  font-weight: 800;
}
.app-toast-success .toast-icon::before {
  width: 8px;
  height: 4px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  transform: translateY(-1px) rotate(-45deg);
}
.toast-copy { min-width: 0; }
.toast-title { display: block; margin-bottom: 2px; font-size: 13px; }
.toast-message { margin: 0; color: var(--text-soft); font-size: 12px; line-height: 1.45; }
.toast-close {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.toast-close:hover { background: var(--surface-raised); color: var(--text); }
.toast-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--toast-color);
  transform-origin: left;
  animation: toast-progress var(--toast-duration, 5000ms) linear forwards;
}
@keyframes toast-progress { to { transform: scaleX(0); } }

/* Shared public shell */
.site-shell { min-height: 100vh; }
.site-header, .footer-inner {
  display: flex;
  width: min(1160px, calc(100% - 40px));
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}
.site-header { display: grid; height: 66px; grid-template-columns: 1fr auto 1fr; border-bottom: 1px solid var(--line); }
.brand-link { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; }
.brand-wordmark { font-size: 18px; font-weight: 750; letter-spacing: 0; }
.brand-mark { flex: 0 0 auto; }
.site-actions { display: flex; align-items: center; gap: 16px; }
.site-actions { justify-self: end; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 8px 10px; border-radius: var(--radius); color: var(--text-muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-nav a.is-active { color: var(--text); }
.site-nav a.is-active { background: var(--surface-raised); }
.site-menu-button { display: none; }
.site-main { min-height: calc(100vh - 135px); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 220px; align-items: flex-start; padding: 42px 0; color: var(--text-muted); font-size: 13px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--text); }
.footer-brand { display: grid; gap: 20px; }
.footer-links { display: grid; grid-template-columns: repeat(4, minmax(90px, 1fr)); gap: 42px; }
.footer-links div { display: grid; align-content: start; gap: 8px; }
.footer-links strong { margin-bottom: 3px; color: var(--text-soft); font-size: 12px; }

/* Home */
.home-hero {
  display: grid;
  width: min(1160px, calc(100% - 40px));
  min-height: min(610px, calc(100svh - 105px));
  grid-template-columns: minmax(300px, .78fr) minmax(520px, 1.22fr);
  gap: 68px;
  align-items: center;
  margin: 0 auto;
  padding: 58px 0 64px;
}
.home-copy h1 { max-width: 520px; margin-bottom: 22px; font-size: 64px; line-height: 1.04; }
.home-copy p { max-width: 480px; margin-bottom: 30px; font-size: 18px; line-height: 1.6; }
.home-copy .home-note { display: block; margin-top: 13px; color: var(--text-muted); font-size: 12px; }
.product-preview {
  display: grid;
  min-width: 0;
  height: 430px;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 26px 70px oklch(5% 0.01 300 / 0.35);
}
.preview-list { min-width: 0; border-right: 1px solid var(--line); background: var(--bg-deep); }
.preview-bar, .preview-editor-head { display: flex; height: 58px; align-items: center; justify-content: space-between; padding: 0 17px; border-bottom: 1px solid var(--line); }
.preview-bar span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: var(--radius); background: var(--accent); font-size: 18px; }
.preview-search { margin: 13px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-muted); font-size: 11px; }
.preview-row { display: grid; gap: 5px; padding: 15px; border-top: 1px solid var(--line); }
.preview-row.is-selected { background: var(--accent-soft); }
.preview-row code { width: max-content; color: oklch(79% 0.12 295); font-size: 10px; }
.preview-row strong { font-size: 12px; }
.preview-row small { overflow: hidden; color: var(--text-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.preview-editor { min-width: 0; }
.preview-editor-head span { padding: 6px 10px; border-radius: var(--radius); background: var(--accent); font-size: 11px; font-weight: 650; }
.preview-editor > label { gap: 7px; padding: 17px 22px 0; color: var(--text-muted); font-size: 10px; }
.preview-editor > label > div { min-height: 39px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-soft); font-size: 12px; font-weight: 400; }
.preview-editor > label > .preview-content { min-height: 120px; }
.home-points { display: grid; width: min(1160px, calc(100% - 40px)); grid-template-columns: repeat(3, 1fr); margin: 0 auto; border-top: 1px solid var(--line); }
.home-points div { display: grid; gap: 4px; padding: 28px 0; }
.home-points div + div { padding-left: 34px; border-left: 1px solid var(--line); }
.home-points strong { font-size: 14px; }
.home-points span { color: var(--text-muted); font-size: 13px; }

/* Public pages */
.public-hero { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 100px 0 70px; text-align: center; }
.compact-hero h1 { max-width: 760px; margin-right: auto; margin-left: auto; font-size: 52px; }
.compact-hero > p:last-child { max-width: 610px; margin: 0 auto; font-size: 18px; }
.eyebrow { margin-bottom: 12px; color: oklch(78% 0.12 295); font-size: 12px; font-weight: 750; text-transform: uppercase; }
.public-band { width: min(1000px, calc(100% - 40px)); margin: 0 auto 94px; border-top: 1px solid var(--line); }
.feature-list article { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 26px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.feature-list article > span { color: var(--text-muted); font-family: var(--mono); font-size: 12px; }
.feature-list h2, .steps-list h2 { margin-bottom: 6px; font-size: 20px; }
.feature-list p, .steps-list p { max-width: 610px; margin: 0; }
.steps-list article { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 28px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.steps-list article > strong { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); color: oklch(78% 0.12 295); font-family: var(--mono); }
.public-cta { display: flex; width: min(1000px, calc(100% - 40px)); align-items: center; justify-content: space-between; gap: 24px; margin: 0 auto 94px; padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.public-cta h2 { margin: 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; gap: 0; }
.price-plan { display: flex; min-width: 0; min-height: 420px; flex-direction: column; padding: 28px; border: 1px solid var(--line); }
.price-plan + .price-plan { border-left: 0; }
.price-plan.is-featured { border-color: var(--accent); background: var(--surface); }
.price-plan header { min-height: 82px; }
.price-plan header h2 { margin-bottom: 5px; }
.price-plan header p { margin: 0; font-size: 13px; }
.price { display: grid; gap: 2px; margin: 25px 0; }
.price strong { font-size: 34px; }
.price span { color: var(--text-muted); font-size: 12px; }
.price-plan ul { display: grid; gap: 10px; flex: 1; margin: 0 0 28px; padding: 0; color: var(--text-soft); font-size: 13px; list-style: none; }
.price-plan li::before { content: "\2713"; margin-right: 8px; color: var(--success); }
.pricing-note { margin: -64px auto 90px; color: var(--text-muted); font-size: 12px; text-align: center; }
.article-list a { display: grid; gap: 7px; padding: 30px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.article-list a:hover h2 { color: oklch(82% 0.1 295); }
.article-list span { color: var(--text-muted); font-size: 12px; }
.article-list h2 { max-width: 700px; margin: 0; }
.article-list p { max-width: 660px; margin: 0; }
.blog-post { max-width: 720px; }
.blog-post > header { margin: 38px 0 55px; }
.blog-post > header h1 { font-size: 48px; }
.blog-post .post-intro { font-size: 19px; }
.blog-post section { margin-top: 35px; }

/* BlogHandy */
.blog-page { width: min(1000px, calc(100% - 40px)); min-height: calc(100svh - 135px); margin: 0 auto; padding: 88px 0 100px; }
.blog-page-head { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.blog-page-head h1 { margin: 0; font-size: 52px; }
.snipflux-blog { min-height: 280px; }
.snipflux-blog #bh-posts, .snipflux-blog .bh-engine { width: 100%; max-width: none; color: var(--text); font-family: var(--sans); }
.snipflux-blog .bh-engine { margin: 0; padding: 0; background: transparent; }

.snipflux-blog ul.bh-category-top-menu {
  display: flex;
  width: 100%;
  min-height: 66px;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 18px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.snipflux-blog ul.bh-category-top-menu li { margin: 0; padding: 0; }
.snipflux-blog ul.bh-category-top-menu li a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 650;
  opacity: 1;
  text-decoration: none;
}
.snipflux-blog ul.bh-category-top-menu li a:hover,
.snipflux-blog ul.bh-category-top-menu li a.current { border-color: var(--accent); background: var(--accent-soft); color: var(--text); text-decoration: none; }
.snipflux-blog #bh-search-form { display: flex; margin-left: auto; list-style: none; }
.snipflux-blog #bh-search-form > form { position: relative; width: 230px; max-width: 230px; margin: 0; }
.snipflux-blog #bh-search-form > form > input {
  width: 100%;
  min-height: 38px;
  padding: 8px 40px 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-deep);
  color: var(--text);
  font-size: 13px;
}
.snipflux-blog #bh-search-form > form > input::placeholder { color: var(--text-muted); font-size: 13px; }
.snipflux-blog #bh-search-form > form > button {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  color: var(--text-muted);
  cursor: pointer;
}
.snipflux-blog #bh-search-form > form > button:hover { color: var(--text); }
.snipflux-blog #bh-search-form svg path { stroke: currentColor; }

.snipflux-blog .bh-post-wrap { display: block; margin: 0; padding: 0; }
.snipflux-blog .bh-post-full { width: 100%; margin: 0; padding: 34px 0; border-bottom: 1px solid var(--line); }
.snipflux-blog .bh-post-text { margin: 8px 0 0; color: var(--text); text-align: left; }
.snipflux-blog .bh-meta-box { display: flex; align-items: center; gap: 8px; float: none; margin: 0; padding: 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.snipflux-blog .bh-post-text .bh-meta-box { float: none; margin: 15px 0 0; }
.snipflux-blog .bh-meta-dot { margin: 0 2px; color: var(--text-muted); }
.snipflux-blog .bh-post-full a,
.snipflux-blog .bh-meta-author a,
.snipflux-blog .bh-meta-categories a { display: inline; padding: 0; border: 0; color: var(--text-muted); text-decoration: none; }
.snipflux-blog .bh-meta-author a:hover,
.snipflux-blog .bh-meta-categories a:hover { color: var(--text-soft); }
.snipflux-blog .bh-post-title { max-width: 760px; margin: 0; font-size: 27px; line-height: 1.22; }
.snipflux-blog .bh-post-title a { color: var(--text); font-weight: 700; }
.snipflux-blog .bh-post-title a:hover { color: oklch(82% 0.1 295); }
.snipflux-blog #bh-template-t4 .bh-post-wrap { margin: 0; }
.snipflux-blog #bh-template-t4 .bh-post { margin: 0; padding: 34px 0; border-bottom: 1px solid var(--line); overflow: visible; }
.snipflux-blog #bh-template-t4 .bh-post-title { margin: 0 0 12px; font-size: 27px; line-height: 1.22; }
.snipflux-blog #bh-template-t4 .bh-post-title-link { color: var(--text); font-weight: 700; text-decoration: none; }
.snipflux-blog #bh-template-t4 .bh-post-title-link:hover { color: oklch(82% 0.1 295); }
.snipflux-blog #bh-template-t4 .bh-meta-author,
.snipflux-blog #bh-template-t4 .bh-meta-date { color: var(--text-muted); font-size: 12px; }
.snipflux-blog #bh-template-t4 .bh-meta-author a { color: var(--text-muted); font-weight: 600; }
.snipflux-blog #bh-template-t4 .bh-meta-author a:hover { color: var(--text-soft); }
.snipflux-blog .bh-post-featured-image,
.snipflux-blog .bh-post-featured-image img,
.snipflux-blog img.bh-post-featured-image { display: block; width: 100%; max-width: 100%; height: auto; margin: 0 0 24px; border-radius: var(--radius); }

.snipflux-blog .bh-single { padding-top: 50px; }
.snipflux-blog #bh-posts .bh-post-single { width: min(720px, 100%); margin: 0 auto; color: oklch(85% 0.012 300); font-size: 17px; line-height: 1.8; }
.snipflux-blog #bh-posts .bh-post-single .bh-post-title { max-width: none; margin: 0 0 17px; color: var(--text); font-size: 46px; line-height: 1.12; }
.snipflux-blog #bh-posts .bh-post-single .bh-meta-box { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 11px; margin: 0 0 30px; color: oklch(68% 0.014 300); font-size: 13px; line-height: 1.5; }
.snipflux-blog #bh-posts .bh-post-single .bh-meta-box br,
.snipflux-blog #bh-posts .bh-post-single .bh-meta-category-text:has(a:empty) { display: none; }
.snipflux-blog #bh-posts .bh-post-single .bh-meta-author a { color: oklch(76% 0.02 300); font-weight: 650; }
.snipflux-blog #bh-posts .bh-post-single .bh-meta-author a:hover { color: var(--text); }
.snipflux-blog #bh-posts .bh-post-single .bh-meta-date,
.snipflux-blog #bh-posts .bh-post-single .bh-meta-readtime { color: oklch(68% 0.014 300); white-space: nowrap; }
.snipflux-blog #bh-posts .bh-post-single .bh-meta-dot { width: 3px; height: 3px; margin: 0 1px; border-radius: 50%; background: oklch(68% 0.014 300); color: transparent; font-size: 0; }
.snipflux-blog #bh-posts .bh-post-single .bh-post-content { clear: both; margin: 0 0 28px; padding: 28px 0 0; border-top: 1px solid var(--line-strong); color: oklch(85% 0.012 300); }
.snipflux-blog .bh-post-content h2 { margin: 38px 0 12px; color: var(--text); font-size: 25px; }
.snipflux-blog .bh-post-content h3 { margin: 30px 0 10px; color: var(--text); font-size: 19px; }
.snipflux-blog .bh-post-content p { margin: 0 0 16px; color: oklch(85% 0.012 300); }
.snipflux-blog .bh-post-content > :last-child { margin-bottom: 0; }
.snipflux-blog .bh-post-content a { color: oklch(78% 0.12 295); text-decoration: underline; text-underline-offset: 3px; }
.snipflux-blog .bh-post-content ul,
.snipflux-blog .bh-post-content ol { margin: 0 0 20px; padding-left: 24px; }
.snipflux-blog .bh-post-content li { margin: 7px 0; }
.snipflux-blog .bh-post-content blockquote { margin: 26px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--text-soft); }
.snipflux-blog .bh-post-content img:not(.bh-borderless) { max-width: 100%; height: auto; margin: 26px 0; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; }
.snipflux-blog .bh-post-content pre { overflow-x: auto; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-deep); }
.snipflux-blog .bh-post-content table { width: 100%; margin: 24px 0; border-collapse: collapse; }
.snipflux-blog .bh-post-content th,
.snipflux-blog .bh-post-content td { padding: 10px 12px; border: 1px solid var(--line-strong); text-align: left; }
.snipflux-blog .bh-author { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.snipflux-blog .bh-author-name { color: var(--text); }
.snipflux-blog .bh-author-bio { color: var(--text-soft); }
.snipflux-blog .bh-post-back-link-bottom { display: inline-flex; margin-top: 8px; color: oklch(80% 0.09 295); font-weight: 650; text-decoration-color: oklch(80% 0.09 295 / 0.45); text-underline-offset: 4px; }
.snipflux-blog .bh-post-back-link-bottom:hover { color: oklch(87% 0.08 295); text-decoration-color: currentColor; }
.snipflux-blog .bh-sharing { display: flex; flex-wrap: wrap; gap: 8px; margin: 27px 0 0; }
.snipflux-blog .bh-sharing a { display: inline-grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: oklch(78% 0.014 300); transition: background 160ms cubic-bezier(.25,1,.5,1), border-color 160ms cubic-bezier(.25,1,.5,1), color 160ms cubic-bezier(.25,1,.5,1); }
.snipflux-blog .bh-sharing a:hover { border-color: oklch(72% 0.12 295 / 0.7); background: var(--accent-soft); color: var(--text); }
.snipflux-blog .bh-sharing .bh-share-button { display: grid; width: 100%; height: 100%; place-items: center; padding: 0; background: transparent !important; color: inherit; }
.snipflux-blog .bh-sharing .bh-share-icon { display: grid; width: 16px; height: 16px; place-items: center; }
.snipflux-blog .bh-sharing svg { width: 16px; height: 16px; }
.snipflux-blog .bh-sharing svg path { fill: currentColor !important; }
.snipflux-blog #bh-template-modern > div:last-child { margin-top: 42px; }
.snipflux-blog .bh-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 38px 0 26px; }
.snipflux-blog .bh-pagination a { padding: 9px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--text-soft); font-size: 13px; font-weight: 650; text-decoration: none; }
.snipflux-blog .bh-pagination a:hover { background: var(--surface-raised); color: var(--text); }
.snipflux-blog .bh-homepage-title,
.snipflux-blog .bh-category-title { margin: 42px 0 12px; color: var(--text); text-align: left; }
.snipflux-blog .powered_by { display: inline; padding: 0; color: var(--text-muted); font-size: 11px; text-decoration: none; }
.snipflux-blog .powered_by:hover { color: var(--text-soft); }
.about-page > p:not(.eyebrow) { font-size: 18px; line-height: 1.7; }
.about-page .button { margin-top: 14px; }

/* Auth and content pages */
.auth-page { display: grid; min-height: calc(100svh - 135px); place-items: center; padding: 56px 20px 72px; }
.auth-panel { width: min(420px, 100%); }
.auth-panel header { margin-bottom: 30px; }
.auth-panel h1 { margin-bottom: 7px; font-size: 34px; }
.auth-panel header p { margin: 0; }
.auth-panel .button { width: 100%; }
.auth-back { display: inline-block; margin-top: 22px; font-size: 13px; }
.content-page { width: min(680px, calc(100% - 40px)); min-height: calc(100svh - 135px); margin: 0 auto; padding: 88px 0; }
.content-page > p { max-width: 65ch; }
.contact-page > a { color: oklch(78% 0.12 295); font-size: 20px; font-weight: 650; }
.legal-page h2 { margin: 34px 0 8px; font-size: 18px; }
.legal-page p { line-height: 1.75; }
.page-date { color: var(--text-muted); font-size: 13px; }
.not-found-page .button { margin-top: 14px; }

/* Signed-in shell */
.app-shell { min-height: 100dvh; }
.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  height: 64px;
  grid-template-columns: auto minmax(180px, 260px) 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.app-nav { display: flex; align-items: center; gap: 6px; }
.app-nav a { padding: 8px 11px; border-radius: var(--radius); color: var(--text-muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.app-nav a:hover { color: var(--text); }
.app-nav a.is-active { background: var(--surface-raised); color: var(--text); }
.app-header-actions { display: flex; justify-content: flex-end; gap: 4px; }
.workspace-switcher { display: flex; min-width: 0; align-items: center; gap: 4px; }
.workspace-switcher label { min-width: 0; flex: 1; }
.workspace-switcher select { min-height: 36px; padding: 7px 34px 7px 10px; overflow: hidden; background-color: var(--surface); font-size: 12px; font-weight: 650; text-overflow: ellipsis; }
.app-content { min-height: calc(100dvh - 64px); }

/* Snippet library */
.route-snippets { overflow: hidden; }
.route-snippets .app-content { height: calc(100dvh - 64px); min-height: 0; }
.library-layout { display: grid; height: 100%; grid-template-columns: 330px minmax(0, 1fr); }
.snippet-browser { display: flex; min-width: 0; min-height: 0; flex-direction: column; border-right: 1px solid var(--line); background: var(--bg-deep); }
.browser-head { display: flex; min-height: 68px; align-items: center; justify-content: space-between; padding: 0 16px; }
.browser-head > div { display: flex; align-items: baseline; gap: 9px; }
.browser-head h1 { margin: 0; font-size: 20px; }
.browser-head span { color: var(--text-muted); font-size: 12px; }
.search-box { position: relative; display: flex; margin: 0 12px 8px; }
.search-box .icon { position: absolute; top: 12px; left: 11px; color: var(--text-muted); }
.search-box input { padding-left: 37px; background: var(--surface); }
.folder-filter { margin: 0 12px 12px; }
.folder-filter select { min-height: 36px; padding: 7px 34px 7px 10px; background-color: var(--surface); font-size: 12px; }
.snippet-list { flex: 1; min-height: 0; overflow-y: auto; border-top: 1px solid var(--line); }
.snippet-row { position: relative; border-bottom: 1px solid var(--line); }
.snippet-row:hover, .snippet-row.is-selected { background: var(--surface); }
.snippet-row.is-selected { box-shadow: inset 2px 0 0 var(--accent); }
.snippet-row > a { display: grid; gap: 5px; padding: 14px 16px; text-decoration: none; }
.snippet-row > a > span { display: flex; min-width: 0; align-items: center; gap: 8px; }
.snippet-row code { color: oklch(79% 0.12 295); font-size: 11px; }
.snippet-row small { overflow: hidden; color: var(--text-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.snippet-row strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.snippet-row p { overflow: hidden; margin: 0; color: var(--text-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { display: grid; justify-items: start; gap: 10px; padding: 34px 18px; }
.empty-state h2 { margin: 0; font-size: 16px; }
.empty-state p { margin: 0; font-size: 13px; }

.snippet-editor { min-width: 0; min-height: 0; background: var(--bg); }
.snippet-editor > form:first-child { display: flex; height: 100%; min-height: 0; flex-direction: column; }
.editor-head { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 18px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.editor-head h2 { overflow: hidden; margin: 0; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.editor-actions { display: flex; gap: 6px; }
.editor-fields { display: grid; width: min(920px, 100%); gap: 22px; overflow-y: auto; padding: 28px 30px 64px; }
.editor-content-field { display: grid; gap: 7px; }
.field-label { color: var(--text-soft); font-size: 13px; font-weight: 600; }
.editor-content-field .tox-tinymce {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-deep);
  box-shadow: none;
  transition: border-color 160ms cubic-bezier(.25,1,.5,1);
}
.editor-content-field .tox-tinymce:focus-within { border-color: var(--accent); }
.editor-content-field .tox .tox-editor-header,
.editor-content-field .tox .tox-toolbar-overlord,
.editor-content-field .tox .tox-toolbar__primary { background: var(--surface) !important; }
.editor-content-field .tox .tox-editor-header { padding: 0 !important; border-bottom: 1px solid var(--line) !important; box-shadow: none !important; }
.editor-content-field .tox .tox-toolbar__primary { padding: 5px 7px; }
.editor-content-field .tox .tox-toolbar__group { margin: 0 !important; padding: 0 5px !important; border: 0 !important; }
.editor-content-field .tox .tox-toolbar__group:first-child { padding-left: 0 !important; }
.editor-content-field .tox .tox-toolbar__group:not(:last-child) { border-right: 1px solid var(--line) !important; }
.editor-content-field .tox .tox-tbtn {
  height: 32px;
  margin: 0 1px !important;
  border-radius: 4px;
  background: transparent !important;
  color: var(--text-soft) !important;
}
.editor-content-field .tox .tox-tbtn svg { fill: var(--text-soft) !important; }
.editor-content-field .tox .tox-tbtn:hover { background: var(--surface-raised) !important; color: var(--text) !important; }
.editor-content-field .tox .tox-tbtn:hover svg { fill: var(--text) !important; }
.editor-content-field .tox .tox-tbtn--enabled,
.editor-content-field .tox .tox-tbtn--enabled:hover { background: var(--accent-soft) !important; color: var(--text) !important; }
.editor-content-field .tox .tox-tbtn--enabled svg { fill: var(--text) !important; }
.editor-content-field .tox .tox-tbtn--bespoke {
  width: 112px;
  padding: 0 8px !important;
  border: 1px solid var(--line) !important;
  background: var(--bg-deep) !important;
}
.editor-content-field .tox .tox-tbtn--bespoke:hover { border-color: var(--line-strong) !important; background: var(--surface-raised) !important; }
.editor-content-field .tox .tox-edit-area::before { border: 0 !important; }
.editor-content-field .tox .tox-edit-area__iframe { background: #100f13 !important; }

.tox.tox-tinymce-aux .tox-menu,
.tox.tox-tinymce-aux .tox-collection--list,
.tox.tox-tinymce-aux .tox-swatches__picker-btn {
  border-color: var(--line-strong) !important;
  background: var(--surface) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .42) !important;
}
.tox.tox-tinymce-aux .tox-collection__item { color: var(--text-soft) !important; }
.tox.tox-tinymce-aux .tox-collection__item:hover,
.tox.tox-tinymce-aux .tox-collection__item--active { background: var(--surface-raised) !important; color: var(--text) !important; }
.tox.tox-tinymce-aux .tox-collection__item-checkmark svg,
.tox.tox-tinymce-aux .tox-collection__item-icon svg { fill: var(--text-soft) !important; }
.tox .tox-dialog-wrap__backdrop { background: rgba(7, 6, 12, .74) !important; backdrop-filter: blur(4px); }
.tox .tox-dialog {
  border: 1px solid var(--line-strong) !important;
  border-radius: 8px !important;
  background: var(--surface) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .58) !important;
}
.tox .tox-dialog__header,
.tox .tox-dialog__body,
.tox .tox-dialog__footer { background: var(--surface) !important; color: var(--text) !important; }
.tox .tox-dialog__header { padding: 20px 20px 13px !important; }
.tox .tox-dialog__title { color: var(--text) !important; font-size: 18px !important; font-weight: 650 !important; }
.tox .tox-dialog__body { padding: 0 20px 20px !important; }
.tox .tox-dialog__footer { padding: 13px 16px !important; border-top: 1px solid var(--line) !important; }
.tox .tox-label,
.tox .tox-form__group label { color: var(--text-soft) !important; }
.tox .tox-textfield,
.tox .tox-listboxfield .tox-listbox--select,
.tox .tox-textarea {
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--radius) !important;
  background: var(--bg-deep) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}
.tox .tox-textfield:focus,
.tox .tox-listboxfield .tox-listbox--select:focus,
.tox .tox-textarea:focus { border-color: var(--accent) !important; box-shadow: none !important; }
.tox .tox-dialog__body-nav-item { color: var(--text-muted) !important; }
.tox .tox-dialog__body-nav-item:hover { background: transparent !important; color: var(--text) !important; }
.tox .tox-dialog__body-nav-item--active { border-bottom-color: var(--accent) !important; background: transparent !important; color: var(--text) !important; }
.tox .tox-button:not(.tox-button--naked) {
  border-color: var(--accent) !important;
  border-radius: var(--radius) !important;
  background: var(--accent) !important;
  color: var(--text) !important;
}
.tox .tox-button:not(.tox-button--naked):hover { border-color: var(--accent-hover) !important; background: var(--accent-hover) !important; }
.tox .tox-button--secondary:not(.tox-button--naked) { border-color: var(--line-strong) !important; background: transparent !important; color: var(--text-soft) !important; }
.tox .tox-button--secondary:not(.tox-button--naked):hover { background: var(--surface-raised) !important; color: var(--text) !important; }
.tox .tox-button--naked { color: var(--text-soft) !important; }
.tox .tox-button--naked svg { fill: var(--text-soft) !important; }
.organization-grid { display: grid; grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr); gap: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.organization-field { display: grid; align-content: start; gap: 10px; }
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.field-heading strong { color: var(--text-soft); font-size: 13px; }
.field-action { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; }
.field-action .icon { width: 14px; height: 14px; }
.field-empty { margin: 0; color: var(--text-muted); font-size: 12px; }
.more-options { border-top: 1px solid var(--line); padding-top: 16px; }
.more-options summary { width: max-content; color: var(--text-soft); font-size: 13px; font-weight: 650; cursor: pointer; }
.more-options-body { display: grid; gap: 18px; padding-top: 20px; }
.label-fieldset { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.label-fieldset legend { width: 100%; margin-bottom: 8px; color: var(--text-soft); font-size: 13px; font-weight: 600; }
.label-fieldset legend.sr-only { width: 1px; height: 1px; margin: 0; }
.label-option { position: relative; display: inline-flex; width: auto; cursor: pointer; }
.label-option input { position: absolute; width: 1px; min-height: 1px; opacity: 0; }
.label-option span { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text-soft); font-size: 12px; font-weight: 600; transition: background-color 160ms cubic-bezier(.25,1,.5,1), border-color 160ms cubic-bezier(.25,1,.5,1), color 160ms cubic-bezier(.25,1,.5,1); }
.label-option span::before { width: 7px; height: 7px; border-radius: 50%; background: var(--label-color); content: ""; }
.label-option:hover span { border-color: color-mix(in srgb, var(--label-color), var(--line-strong) 45%); color: var(--text); }
.label-option input:checked + span { border-color: color-mix(in srgb, var(--label-color), transparent 34%); background: color-mix(in srgb, var(--label-color), transparent 86%); color: var(--text); }
.label-option input:focus-visible + span { outline: 2px solid var(--accent-hover); outline-offset: 2px; }

.app-dialog {
  width: min(470px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
}
.app-dialog::backdrop { background: rgba(7, 6, 12, 0.68); backdrop-filter: blur(5px); }
.app-dialog[open] { animation: dialog-in 180ms cubic-bezier(.25,1,.5,1); }
.app-dialog > form { display: grid; gap: 20px; padding: 22px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dialog-head h2 { margin: 0; font-size: 18px; }
.dialog-head p { margin: 0; font-size: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 2px; }
.color-fieldset { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; padding: 0; border: 0; }
.color-fieldset legend { flex-basis: 100%; margin-bottom: -1px; color: var(--text-soft); font-size: 13px; font-weight: 600; }
.color-swatch { display: block; width: auto; cursor: pointer; }
.color-swatch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.color-swatch > span:not(.sr-only) { display: block; width: 26px; height: 26px; border: 3px solid var(--surface); border-radius: 50%; background: var(--swatch-color); box-shadow: 0 0 0 1px var(--line-strong); }
.color-swatch input:checked + span { box-shadow: 0 0 0 2px var(--text), 0 0 0 4px var(--surface); }
.color-swatch input:focus-visible + span { outline: 2px solid var(--accent-hover); outline-offset: 3px; }
.custom-color-picker { position: relative; display: block; width: 30px; height: 30px; cursor: pointer; }
.custom-color-picker::after { position: absolute; right: -3px; bottom: -3px; display: grid; width: 14px; height: 14px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface-raised); color: var(--text); font-size: 12px; font-weight: 700; line-height: 1; content: "+"; pointer-events: none; }
.custom-color-picker input[type="color"] { width: 30px; height: 30px; min-height: 30px; padding: 3px; border-color: var(--line-strong); border-radius: 50%; background: var(--surface); cursor: pointer; }
.custom-color-picker input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.custom-color-picker input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.custom-color-picker input[type="color"]::-moz-color-swatch { border: 0; border-radius: 50%; }
.color-fieldset.is-custom .custom-color-picker input { box-shadow: 0 0 0 2px var(--text), 0 0 0 4px var(--surface); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }

/* Organize and onboarding */
.simple-page { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 52px 0 80px; }
.simple-page-head { margin-bottom: 32px; }
.simple-page-head h1 { margin-bottom: 6px; font-size: 32px; }
.simple-page-head p { margin: 0; }
.organize-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.simple-section h2 { margin-bottom: 16px; font-size: 17px; }
.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-bottom: 18px; }
.label-create-form { display: grid; grid-template-columns: minmax(150px, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 18px; }
.label-create-form .color-fieldset { grid-column: 1 / -1; }
.compact-color-fieldset { flex-wrap: nowrap; gap: 8px; }
.compact-color-fieldset .color-swatch > span:not(.sr-only) { width: 22px; height: 22px; }
.compact-color-fieldset .custom-color-picker,
.compact-color-fieldset .custom-color-picker input[type="color"] { width: 26px; height: 26px; min-height: 26px; }
.simple-list { border-top: 1px solid var(--line); }
.simple-list > div { display: flex; min-height: 46px; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); color: var(--text-soft); font-size: 13px; }
.simple-list .icon { color: var(--text-muted); }
.simple-list i { width: 9px; height: 9px; border-radius: 50%; background: var(--label-color); }
.simple-list > p { margin: 18px 0; color: var(--text-muted); font-size: 13px; }
.onboarding-page { width: min(620px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0; }
.onboarding-page header { margin-bottom: 32px; }
.onboarding-page header h1 { margin-bottom: 7px; font-size: 32px; }
.onboarding-page header p { margin: 0; }
.onboarding-page form { display: grid; gap: 20px; }
.onboarding-page form > .button { justify-self: start; }

/* Workspaces, account, team, and billing */
.workspace-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 54px; }
.workspace-list { border-top: 1px solid var(--line); }
.workspace-row { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.workspace-row.is-current { box-shadow: inset 2px 0 0 var(--accent); }
.workspace-row > div { display: flex; min-width: 0; align-items: center; gap: 12px; padding-left: 12px; }
.workspace-row > div > .icon { color: var(--text-muted); }
.workspace-row > div span, .member-person > span:last-child, .session-row > div span { display: grid; min-width: 0; gap: 3px; }
.workspace-row strong, .member-person strong, .session-row strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-row small, .member-person small, .session-row small { overflow: hidden; color: var(--text-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.status-label, .role-label { padding: 4px 7px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-muted); font-size: 10px; font-weight: 700; }
.choice-group { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.choice-group legend { margin-bottom: 7px; color: var(--text-soft); font-size: 13px; font-weight: 650; }
.choice-group label { display: flex; align-items: flex-start; gap: 10px; padding: 11px; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; }
.choice-group input { width: 15px; min-height: 15px; margin: 3px 0 0; accent-color: var(--accent); }
.choice-group label > span { display: grid; gap: 2px; }
.choice-group small { color: var(--text-muted); font-weight: 400; }
.rename-workspace { max-width: 520px; margin-top: 55px; padding-top: 32px; border-top: 1px solid var(--line); }

.settings-sections { display: grid; gap: 0; border-top: 1px solid var(--line); }
.settings-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.settings-page-head h1 { margin-bottom: 6px; }
.settings-page-head p { margin-bottom: 0; }
.settings-section { display: grid; grid-template-columns: 220px minmax(0, 460px); gap: 48px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.settings-section > header h2 { margin-bottom: 5px; font-size: 17px; }
.settings-section > header p { margin: 0; font-size: 12px; }
.settings-section .stack-form > .button { justify-self: start; }
.sessions-section { grid-template-columns: 220px minmax(0, 1fr); }
.session-list { border-top: 1px solid var(--line); }
.session-row { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.session-row > div { display: flex; min-width: 0; align-items: center; gap: 11px; }
.session-row > div > .icon { color: var(--text-muted); }

.empty-panel { display: grid; max-width: 520px; justify-items: start; gap: 12px; padding: 34px 0; border-top: 1px solid var(--line); }
.empty-panel > div { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--text-muted); }
.empty-panel h2, .empty-panel p { margin: 0; }
.team-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.team-summary > div { display: grid; gap: 3px; padding: 20px 0; }
.team-summary > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.team-summary strong { font-size: 19px; }
.team-summary span { color: var(--text-muted); font-size: 11px; }
.team-invite { margin-bottom: 52px; }
.team-invite > header { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.team-invite > header p { margin: 0; font-size: 12px; }
.invite-form { display: grid; grid-template-columns: minmax(240px, 1fr) 150px auto; align-items: end; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.team-members + .team-members { margin-top: 42px; }
.member-list { border-top: 1px solid var(--line); }
.member-row { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.member-person { display: flex; min-width: 0; align-items: center; gap: 11px; }
.avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--text-soft); font-size: 10px; font-weight: 750; }
.muted-avatar { color: var(--text-muted); }
.member-actions { display: flex; align-items: center; gap: 8px; }
.member-actions select { width: 110px; min-height: 34px; padding: 5px 32px 5px 8px; background-color: var(--surface); font-size: 11px; }
.leave-team { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 54px; padding: 25px 0; border-top: 1px solid var(--line); }
.leave-team h2 { margin-bottom: 4px; font-size: 16px; }
.leave-team p { margin: 0; font-size: 12px; }

.billing-summary { display: flex; align-items: center; gap: 34px; margin-bottom: 35px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.billing-summary > div { display: grid; min-width: 105px; gap: 3px; }
.billing-summary > div span { color: var(--text-muted); font-size: 10px; }
.billing-summary > div strong { font-size: 13px; }
.billing-summary > form { margin-left: auto; }
.status-active, .status-trialing { color: var(--success); }
.status-past_due, .status-canceled { color: var(--danger); }
.billing-controls { display: flex; width: max-content; margin: 0 0 18px auto; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-deep); }
.billing-controls a { padding: 6px 11px; border-radius: 4px; color: var(--text-muted); font-size: 11px; font-weight: 650; text-decoration: none; }
.billing-controls a.is-active { background: var(--surface-raised); color: var(--text); }
.billing-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.billing-plans.one-plan { max-width: 470px; grid-template-columns: 1fr; }
.billing-plan { display: flex; min-height: 390px; flex-direction: column; padding: 26px; border: 1px solid var(--line); }
.billing-plan + .billing-plan { border-left: 0; }
.billing-plan.is-current { border-color: var(--accent); background: var(--surface); }
.billing-plan header > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.billing-plan h2 { margin: 0; }
.billing-plan header p { min-height: 42px; margin: 7px 0 0; font-size: 12px; }
.billing-plan ul { display: grid; gap: 9px; flex: 1; margin: 0 0 25px; padding: 0; color: var(--text-soft); font-size: 12px; list-style: none; }
.billing-plan li::before { content: "\2713"; margin-right: 8px; color: var(--success); }
.billing-plan form .button, .billing-plan > .button { width: 100%; }
.billing-note { margin: 15px 0 0; color: var(--text-muted); font-size: 12px; }
.local-note { margin-top: 14px; color: var(--text-muted); font-size: 11px; }

/* Client downloads */
.client-downloads { border-top: 1px solid var(--line); }
.client-download-row { display: flex; min-height: 108px; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); }
.client-download-copy { display: flex; min-width: 0; align-items: center; gap: 15px; }
.client-download-copy > svg { flex: 0 0 auto; }
.client-download-copy h2 { margin: 0 0 3px; font-size: 16px; }
.client-download-copy p { margin: 0; color: var(--text-muted); font-size: 12px; }
.client-download-row > .button { flex: 0 0 auto; }

@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; gap: 42px; padding: 60px 0; }
  .home-copy { max-width: 620px; }
  .product-preview { max-width: 720px; }
  .app-header { grid-template-columns: auto minmax(150px, 1fr) auto; gap: 8px; height: auto; min-height: 64px; padding: 10px 14px; }
  .app-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; border-top: 1px solid var(--line); padding-top: 8px; }
  .app-header-actions { grid-column: 3; grid-row: 1; }
  .workspace-switcher { grid-column: 2; grid-row: 1; }
  .app-content { min-height: calc(100dvh - 112px); }
  .route-snippets .app-content { height: calc(100dvh - 112px); }
}

@media (max-width: 700px) {
  h1 { font-size: 34px; }
  .site-header, .footer-inner, .home-hero, .home-points { width: min(100% - 28px, 1160px); }
  .site-header { height: 60px; }
  .site-header { grid-template-columns: 1fr auto auto; gap: 7px; }
  .site-menu-button { display: inline-grid; }
  .site-nav { position: absolute; top: 60px; right: 14px; z-index: 50; display: none; width: 190px; align-items: stretch; padding: 8px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); box-shadow: 0 18px 45px oklch(5% 0.01 300 / 0.4); }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 10px; }
  .site-actions { gap: 11px; }
  .site-actions .button { min-height: 34px; padding: 7px 11px; }
  .home-hero { min-height: auto; gap: 34px; padding: 48px 0 52px; }
  .home-copy h1 { font-size: 44px; }
  .home-copy p { font-size: 16px; }
  .product-preview { height: 350px; grid-template-columns: 150px minmax(0, 1fr); }
  .preview-bar, .preview-editor-head { height: 48px; padding: 0 11px; }
  .preview-search { margin: 9px; }
  .preview-row { padding: 11px; }
  .preview-row small { display: none; }
  .preview-editor > label { padding: 13px 14px 0; }
  .preview-editor > label > .preview-content { min-height: 90px; }
  .home-points { grid-template-columns: 1fr; }
  .home-points div { padding: 18px 0; }
  .home-points div + div { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .footer-inner { min-height: 0; flex-direction: column; gap: 34px; padding: 35px 0; }
  .footer-links { width: 100%; grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .compact-hero h1 { font-size: 38px; }
  .public-hero { padding: 70px 0 50px; }
  .public-band { width: min(100% - 32px, 1000px); margin-bottom: 65px; }
  .public-cta { width: min(100% - 32px, 1000px); align-items: flex-start; flex-direction: column; margin-bottom: 65px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-plan { min-height: 360px; }
  .price-plan + .price-plan { border-top: 0; border-left: 1px solid var(--line); }
  .price-plan.is-featured { border-top: 1px solid var(--accent); }
  .pricing-note { margin-top: -42px; }
  .blog-post > header h1 { font-size: 36px; }
  .blog-page { width: min(100% - 32px, 1000px); padding: 58px 0 70px; }
  .blog-page-head { padding-bottom: 25px; }
  .blog-page-head h1 { font-size: 38px; }
  .snipflux-blog ul.bh-category-top-menu { align-items: stretch; flex-direction: column; gap: 10px; padding: 14px 0 18px; }
  .snipflux-blog ul.bh-category-top-menu li a { width: 100%; justify-content: center; }
  .snipflux-blog #bh-search-form { width: 100%; margin-left: 0; }
  .snipflux-blog #bh-search-form > form { width: 100%; max-width: none; }
  .snipflux-blog .bh-post-full { padding: 27px 0; }
  .snipflux-blog .bh-post-title { font-size: 23px; }
  .snipflux-blog #bh-template-t4 .bh-post { padding: 27px 0; }
  .snipflux-blog #bh-template-t4 .bh-post-title { font-size: 23px; }
  .snipflux-blog .bh-single { padding-top: 34px; }
  .snipflux-blog #bh-posts .bh-post-single { font-size: 16px; line-height: 1.75; }
  .snipflux-blog #bh-posts .bh-post-single .bh-post-title { margin-bottom: 16px; font-size: 35px; }
  .snipflux-blog #bh-posts .bh-post-single .bh-meta-box { gap: 5px 10px; margin-bottom: 24px; font-size: 12px; }
  .snipflux-blog #bh-posts .bh-post-single .bh-post-content { margin-bottom: 24px; padding-top: 23px; }
  .snipflux-blog .bh-sharing { margin-top: 24px; }
  .snipflux-blog .bh-post-content h2 { font-size: 22px; }
  .auth-page { min-height: calc(100svh - 153px); padding: 44px 18px 60px; }
  .form-between { align-items: flex-start; flex-direction: column; gap: 10px; }
  .content-page { width: min(100% - 32px, 680px); padding: 60px 0; }

  .app-header { padding: 10px; }
  .app-brand .brand-wordmark { display: none; }
  .app-nav { justify-content: center; }
  .app-nav a { padding: 8px 9px; }
  .route-snippets { overflow: auto; }
  .route-snippets .app-content { height: auto; min-height: calc(100dvh - 112px); }
  .library-layout { display: block; height: auto; }
  .snippet-browser { max-height: 360px; border-right: 0; border-bottom: 1px solid var(--line); }
  .snippet-list { max-height: 230px; }
  .snippet-editor { min-height: 610px; }
  .editor-head { padding: 0 16px; }
  .editor-fields { padding: 22px 16px 52px; }
  .form-split { grid-template-columns: 1fr; }
  .organization-grid { grid-template-columns: 1fr; gap: 20px; }
  .toast-stack { top: 10px; right: 10px; width: calc(100vw - 20px); }
  .field-heading { align-items: flex-start; }
  .simple-page { width: min(100% - 32px, 900px); padding: 40px 0 64px; }
  .settings-page-head { align-items: flex-start; }
  .organize-grid { grid-template-columns: 1fr; gap: 44px; }
  .onboarding-page { width: min(100% - 32px, 620px); padding: 48px 0; }
  .workspace-layout { grid-template-columns: 1fr; gap: 45px; }
  .settings-section, .sessions-section { grid-template-columns: 1fr; gap: 20px; }
  .invite-form { grid-template-columns: 1fr; align-items: stretch; }
  .team-invite > header { align-items: flex-start; flex-direction: column; gap: 4px; }
  .team-summary > div + div { padding-left: 14px; }
  .member-row { align-items: flex-start; padding: 14px 0; }
  .member-actions { align-items: flex-end; flex-direction: column; }
  .leave-team { align-items: flex-start; flex-direction: column; }
  .billing-summary { align-items: flex-start; flex-wrap: wrap; gap: 20px; }
  .billing-summary > form { width: 100%; margin-left: 0; }
  .billing-plans { grid-template-columns: 1fr; }
  .billing-plan + .billing-plan { border-top: 0; border-left: 1px solid var(--line); }
  .client-download-row { align-items: flex-start; flex-direction: column; gap: 15px; padding: 22px 0; }
}

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