/* Neutral zinc design system for the website and private workspace. */
:root {
  color-scheme: dark;
  --ink: #f4f4f5;
  --green: #f4f4f5;
  --brand: #f4f4f5;
  --brand-hover: #a1a1aa;
  --line: #27272a;
  --muted: #a1a1aa;
  --surface: #09090b;
  background: #09090b;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
}
body {
  background: #09090b;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
body,
input,
select,
textarea,
button {
  font-family: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #18181b;
  color: #e4e4e7;
  font-size: 13px;
  padding: 11px 16px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition:
    background 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
button:disabled {
  cursor: not-allowed;
}
button.primary,
.button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fafafa;
  box-shadow: 0 4px 20px #71717a20;
}
button.quiet {
  background: transparent;
  border-color: transparent;
}
button.small {
  padding: 7px 10px;
  font-size: 12px;
}
a {
  color: #a1a1aa;
  text-decoration: none;
}
a:hover {
  color: #d4d4d8;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #a1a1aa;
  outline-offset: 4px;
}
input,
select,
textarea {
  background: #18181b;
  color: #fafafa;
  border-color: #27272a;
  border-radius: 10px;
  padding: 12px 14px;
}
input::placeholder,
textarea::placeholder {
  color: #71717a;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #a1a1aa70;
  outline-offset: 1px;
  border-color: #a1a1aa;
}
input[readonly] {
  color: #a1a1aa;
  background: #18181b;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--brand);
}
label {
  color: #d4d4d8;
  font-size: 12px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 26px 0 0;
  min-width: 0;
}
legend {
  margin-bottom: 12px;
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 600;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3 {
  color: #f4f4f5;
}
h1 {
  letter-spacing: -1.1px;
}
.ui-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fafafa;
  letter-spacing: -0.65px;
  font-size: 20px;
  font-weight: 720;
  margin: 0;
  white-space: nowrap;
}
.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 10px;
}
.brand:hover {
  color: white;
}
.eyebrow {
  color: #a1a1aa;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.muted,
small,
.subtitle {
  color: var(--muted);
}
.panel,
.card {
  border: 1px solid var(--line);
  background: #09090b;
  box-shadow: 0 1px 0 #fafafa03;
  border-radius: 16px;
}
.card:hover {
  border-color: #3f3f46;
}
.icon,
.flow-avatar {
  border: 1px solid #71717a30;
  color: #a1a1aa;
  background: #71717a16;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.badge {
  font-size: 9px;
  letter-spacing: 0.055em;
  border: 1px solid #71717a30;
  background: #71717a12;
  color: #a1a1aa;
  line-height: 1.35;
  padding: 5px 8px;
}
.badge.gray {
  border-color: #fafafa09;
  background: #27272a;
  color: #a1a1aa;
}
.badge.red {
  color: #d4d4d8;
  background: #71717a14;
  border-color: #71717a30;
}
.notice {
  background: #71717a10;
  border: 1px solid #71717a33;
  color: #d4d4d8;
}
.notice.error {
  background: #71717a12;
  border-color: #71717a33;
  color: #d4d4d8;
}
.danger {
  color: #a1a1aa !important;
}
pre {
  background: #09090b;
  color: #d4d4d8;
  border: 1px solid #27272a;
  padding: 18px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
code {
  color: #d4d4d8;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
}
summary {
  cursor: pointer;
  color: #d4d4d8;
  line-height: 1.6;
}
.details-url {
  color: #71717a;
  font-size: 12px;
}
.empty {
  background: #09090b;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.empty .empty-robot {
  display: block;
  width: 100px;
  height: 115px;
  object-fit: contain;
  margin: 0 auto 5px;
}
.empty.compact {
  padding: 24px 25px 32px;
}
.empty.compact h3 {
  font-size: 16px;
  margin: 8px 0;
}
.empty.compact p {
  max-width: 335px;
  margin: 8px auto 20px;
  font-size: 13px;
}
.count {
  color: #a1a1aa;
  background: #27272a;
  font-size: 10px;
  font-weight: 500;
}
/* Public website */
.public-site {
  min-height: 100vh;
  background:
    radial-gradient(
      ellipse 65% 650px at 50% -250px,
      #52525bb0,
      transparent 85%
    ),
    #09090b;
}
.site-header {
  position: relative;
  z-index: 20;
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #fafafa0b;
}
.site-header > nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  font-weight: 500;
}
.site-header nav > a:not(.button) {
  color: #a1a1aa;
}
.site-header nav > a:hover,
.site-header nav > a[aria-current="page"] {
  color: white;
}
.site-header .primary {
  border-radius: 999px;
  background: #f4f4f5;
  color: #09090b;
  border-color: #f4f4f5;
  padding: 11px 19px;
}
.nav-divider {
  height: 18px;
  border-left: 1px solid #fafafa15;
}
.mobile-menu {
  display: none;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}
.feature-grid article > svg {
  color: #a1a1aa;
  width: 22px;
  height: 22px;
  margin-bottom: 18px;
}
.feature-grid h3 {
  font-size: 14px;
  margin: 0 0 10px;
}
.feature-grid p {
  color: #a1a1aa;
  font-size: 12px;
  line-height: 1.85;
  margin: 0;
}
.feature-grid.standalone {
  margin: 45px 0 25px;
  gap: 30px;
}
.feature-grid.standalone article {
  border: 1px solid #fafafa12;
  background: #09090b;
  border-radius: 18px;
  padding: 30px;
}
.site-footer {
  border-top: 1px solid #fafafa0e;
  background: #09090b;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 26px;
  padding: 40px 24px;
}
.site-footer .brand {
  font-size: 17px;
  color: #a1a1aa;
}
.site-footer .brand img {
  width: 25px;
  height: 25px;
  opacity: 0.7;
}
.site-footer > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}
.site-footer a {
  color: #71717a;
  font-size: 12px;
}
.site-footer a:hover {
  color: #f4f4f5;
}
.site-footer p {
  color: #71717a;
  font-size: 10px;
  margin: 0;
}
.site-container {
  max-width: 1216px;
  margin: auto;
  padding: 64px 32px 85px;
  min-height: 70vh;
}
.page-hero {
  max-width: 900px;
  margin-bottom: 45px;
}
.page-hero h1 {
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin: 20px 0 25px;
}
.page-hero p {
  max-width: 670px;
  font-size: 16px;
  line-height: 1.8;
  color: #a1a1aa;
}
.reading-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.reading-guide {
  position: sticky;
  top: 24px;
  display: grid;
  padding: 24px 14px;
  background: #09090b;
  border: 1px solid #fafafa15;
  border-radius: 16px;
}
.reading-guide h3 {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  padding: 0 12px;
  margin-bottom: 15px;
  color: #a1a1aa;
}
.reading-guide a {
  color: #a1a1aa;
  padding: 10px 12px;
  font-size: 12px;
  border-radius: 6px;
}
.reading-guide a:hover {
  color: white;
  background: #fafafa08;
}
.legal-date {
  font-size: 11px;
  color: #71717a;
  margin: -25px 0 35px;
}
.legal-content {
  padding: 35px 40px;
  border: 1px solid #fafafa15;
  border-radius: 18px;
  background: #09090b;
}
.legal-content section {
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid #fafafa0e;
  scroll-margin-top: 25px;
}
.legal-content section:last-child {
  border: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.section-number {
  color: #71717a;
  font:
    10px ui-monospace,
    monospace;
}
.legal-content h2 {
  font-size: 21px;
  margin: 10px 0 14px;
}
.legal-content p {
  color: #a1a1aa;
  font-size: 13px;
  line-height: 1.9;
}
.showcase-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 75px;
  border: 1px solid #fafafa15;
  border-radius: 24px;
  padding: 40px 50px;
  background:
    radial-gradient(ellipse at left, #3f3f4630, transparent 65%), #09090b;
}
.showcase-panel img {
  width: 180px;
  height: 240px;
  object-fit: contain;
}
.showcase-panel > div {
  max-width: 460px;
}
.showcase-panel h2 {
  font-size: 32px;
  line-height: 1.14;
  margin: 15px 0;
}
.showcase-panel p {
  color: #a1a1aa;
  font-size: 14px;
  margin-bottom: 25px;
}
.edition-card {
  max-width: 540px;
  margin: 0 auto;
  padding: 40px;
  background: #09090b;
  border: 1px solid #71717a55;
  border-radius: 24px;
}
.edition-card h2 {
  margin-top: 16px;
}
.edition-price {
  font-size: 32px;
  color: #f4f4f5;
  font-weight: 600;
  margin: 25px 0 0;
  letter-spacing: -1px;
}
.edition-card ul {
  padding: 25px 0;
  list-style: none;
  display: grid;
  gap: 16px;
  font-size: 13px;
  border-top: 1px solid var(--line);
  margin-top: 25px;
}
.edition-card li {
  display: flex;
  gap: 12px;
  align-items: center;
}
.edition-card li svg {
  color: #a1a1aa;
}
.edition-card .button {
  display: flex;
}
.edition-card > p:last-child {
  font-size: 11px;
  margin-top: 20px;
}
/* Account entry and onboarding */
.auth-page,
.onboarding-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 700px 500px at 50% -150px, #71717a30, transparent),
    #09090b;
}
.auth-layout {
  max-width: 440px;
  margin: 0 auto;
  padding: 55px 18px;
}
.auth-brand {
  display: flex;
  justify-content: center;
  margin: 0 0 30px;
}
.auth-card {
  padding: 32px;
  border: 1px solid #fafafa12;
  border-radius: 24px;
  background: #09090bcc;
  box-shadow: 0 20px 65px #09090b66;
}
.auth-card h1 {
  font-size: 34px;
  letter-spacing: -1.4px;
  line-height: 1.08;
  margin: 15px 0;
}
.auth-card h1 span {
  color: #a1a1aa;
}
.auth-card > p {
  font-size: 13px;
  margin-bottom: 28px;
}
.auth-card form > label {
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-card input {
  font-size: 13px;
}
.auth-card form > button {
  width: 100%;
  margin-top: 24px;
}
.auth-card #change-email {
  font-size: 9px;
  padding: 0;
  color: #a1a1aa;
}
.auth-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 25px;
  font-size: 11px;
  color: #a1a1aa;
}
.auth-switch a {
  font-weight: 600;
}
.auth-benefits {
  display: flex;
  justify-content: center;
  gap: 20px;
  border-top: 1px solid #fafafa0d;
  margin-top: 25px;
  padding-top: 22px;
  font-size: 10px;
  color: #71717a;
}
.auth-benefits span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.auth-benefits svg {
  width: 13px;
  height: 13px;
  color: #a1a1aa;
}
.auth-footer {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
  font-size: 10px;
  color: #71717a;
}
.auth-footer a {
  color: #71717a;
}
.local-login {
  display: flex;
  margin: 18px auto 0;
  color: #71717a;
  font-size: 10px !important;
}
.input-help {
  font-size: 10px;
  line-height: 1.6;
  color: #71717a;
}
.form-error {
  border: 1px solid #a1a1aa40;
  background: #a1a1aa14;
  color: #d4d4d8;
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 12px;
  margin: 0 0 18px;
  line-height: 1.6;
}
.onboarding-wrap {
  max-width: 1020px;
  margin: auto;
  padding: 40px 24px;
}
.onboarding-brand {
  text-align: center;
}
.onboarding-brand p {
  color: #71717a;
  font-size: 12px;
  margin: 10px 0 22px;
}
.onboarding-progress {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 36px;
  padding: 0;
  margin: 0 0 26px;
}
.onboarding-progress li {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #71717a;
  font-size: 11px;
}
.onboarding-progress li > span {
  border: 1px solid #3f3f46;
  border-radius: 50%;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.onboarding-progress .current {
  color: #e4e4e7;
}
.onboarding-progress .current > span {
  background: #71717a;
  border-color: #71717a;
  color: white;
}
.onboarding-progress .complete {
  color: #d4d4d8;
}
.onboarding-progress .complete > span {
  border-color: #71717a60;
  background: #71717a20;
}
.onboarding-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border: 1px solid #fafafa16;
  border-radius: 24px;
  overflow: hidden;
  background: #09090b;
  box-shadow: 0 25px 100px #09090b55;
}
.onboarding-panel form {
  min-width: 0;
  padding: 38px;
}
.onboarding-panel h1 {
  font-size: 29px;
  line-height: 1.12;
  margin: 15px 0;
}
.onboarding-panel form > .muted {
  font-size: 13px;
}
.onboarding-panel .actions {
  margin-top: 28px;
  justify-content: space-between;
}
.terms-panel {
  max-width: 760px;
  margin: auto;
  grid-template-columns: 1fr;
}
.onboarding-terms {
  max-height: 290px;
  overflow-y: auto;
  padding: 22px;
  border: 1px solid #fafafa14;
  border-radius: 12px;
  margin: 25px 0 20px;
  background: #09090b;
  overscroll-behavior: contain;
}
.onboarding-terms section {
  margin-bottom: 24px;
}
.onboarding-terms h2 {
  font-size: 15px;
  margin: 7px 0;
}
.onboarding-terms p {
  font-size: 12px;
  color: #a1a1aa;
  line-height: 1.85;
}
.acceptance {
  display: flex;
  align-items: start;
  gap: 12px;
  border: 1px solid #71717a50;
  border-radius: 12px;
  background: #71717a14;
  padding: 16px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
}
.acceptance input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}
.acceptance small {
  display: block;
  color: #a1a1aa;
  font-size: 10px;
  margin-top: 4px;
}
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.choice-card {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 17px 15px;
  margin: 0;
  border: 1px solid #27272a;
  border-radius: 13px;
  background: #18181b;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.choice-card:has(input:checked) {
  border-color: #a1a1aa85;
  background: #71717a16;
  box-shadow: 0 0 0 1px #71717a16;
}
.choice-card input {
  width: 15px;
  margin: 2px 0 0;
  flex-shrink: 0;
}
.choice-card strong {
  display: block;
  color: #f4f4f5;
  font-size: 12px;
}
.choice-card small {
  display: block;
  color: #a1a1aa;
  font-size: 11px;
  line-height: 1.65;
  margin-top: 6px;
  font-weight: 400;
}
.onboarding-coach {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 35%, #52525b30, transparent 70%), #18181b;
  border-left: 1px solid #fafafa09;
}
.onboarding-coach img {
  width: 145px;
  height: 190px;
  object-fit: contain;
  align-self: center;
  margin-bottom: 16px;
}
.onboarding-coach .eyebrow {
  font-size: 9px;
}
.onboarding-coach h2 {
  font-size: 28px;
  letter-spacing: -1px;
  line-height: 1.14;
  margin: 15px 0;
}
.onboarding-coach p {
  color: #a1a1aa;
  font-size: 12px;
  line-height: 1.9;
}
.coach-note {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #a1a1aa;
  margin-top: 20px;
}
.coach-note svg {
  width: 14px;
}
.start-options {
  display: grid;
  gap: 12px;
  margin-top: 27px;
}
.start-options .choice-card {
  align-items: center;
}
.choice-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: #71717a12;
  color: #a1a1aa;
  border-radius: 8px;
  flex-shrink: 0;
}
/* Studio's top navigation and split dashboard */
.studio-page {
  background:
    radial-gradient(ellipse at top, #71717a12, transparent 600px), #18181b;
}
.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.studio-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 19px 32px;
  background: #18181beb;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #fafafa09;
}
.studio-header .brand {
  font-size: 18px;
}
.studio-header .brand img {
  width: 31px;
  height: 31px;
  border-radius: 9px;
}
.global-search {
  position: relative;
  max-width: 460px;
  min-width: 100px;
  flex: 1;
  margin: 0 auto;
}
.global-search > svg {
  position: absolute;
  left: 15px;
  top: 13px;
  color: #71717a;
  width: 16px;
}
.global-search input {
  height: 42px;
  border-radius: 999px;
  background: #09090b90;
  border-color: #fafafa0e;
  padding: 10px 36px 10px 42px;
  font-size: 12px;
}
.global-search kbd {
  position: absolute;
  right: 14px;
  top: 12px;
  color: #71717a;
  font-size: 10px;
  border: 1px solid #3f3f46;
  border-radius: 4px;
  padding: 1px 5px;
}
.header-tools {
  display: flex;
  gap: 9px;
  align-items: center;
}
.header-tools > button {
  border-radius: 999px;
  font-size: 11px;
  height: 39px;
  padding: 9px 14px;
  white-space: nowrap;
}
.header-tool {
  background: #27272a;
  border-color: #fafafa06;
  color: #a1a1aa;
}
.header-tool.active {
  color: #d4d4d8;
  border-color: #71717a50;
  background: #71717a12;
}
.header-tools .ui-icon {
  width: 15px;
  height: 15px;
}
.account-menu {
  position: relative;
}
.account-menu summary {
  list-style: none;
  display: flex;
  align-items: center;
}
.account-menu summary::-webkit-details-marker {
  display: none;
}
.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #27272a;
  color: #d4d4d8;
  font-weight: 600;
  font-size: 12px;
  border-radius: 50%;
  border: 1px solid #3f3f46;
}
.account-dropdown {
  position: absolute;
  top: 48px;
  right: 0;
  width: 256px;
  padding: 12px;
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 14px;
  box-shadow: 0 15px 50px #09090b88;
  display: grid;
  gap: 3px;
}
.account-dropdown strong,
.account-dropdown small {
  padding: 0 14px 0 calc(14px + 20px + 12px);
  overflow-wrap: anywhere;
  font-size: 12px;
}
.account-dropdown small {
  margin-bottom: 12px;
  color: #71717a;
  font-size: 10px;
}
.account-dropdown button,
.account-dropdown a {
  width: 100%;
  min-height: 42px;
  padding: 11px 14px;
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: #a1a1aa;
  border-radius: 7px;
  font-size: 12px;
  text-align: left;
  line-height: 1.4;
  transition:
    background 0.18s,
    color 0.18s;
}
.account-dropdown button:hover,
.account-dropdown a:hover,
.account-dropdown button:focus-visible,
.account-dropdown a:focus-visible {
  background: #fafafa07;
  color: white !important;
}
.content {
  width: 100%;
  max-width: 1640px;
  min-width: 0;
  margin: 0 auto;
  padding: 35px 40px 55px;
  flex: 1;
}
.dashboard-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 37px;
}
.dashboard-welcome h1 {
  font-size: 27px;
  margin: 10px 0 7px;
  letter-spacing: -0.85px;
}
.dashboard-welcome p {
  font-size: 12px;
  margin: 0;
}
.help-link {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: #a1a1aa;
}
.help-link svg {
  width: 15px;
}
.dashboard-columns {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 32px;
}
.marketplace-column {
  border-left: 0;
  padding-left: 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
}
.section-heading h2 {
  font-size: 19px;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.section-hint {
  font-size: 10px;
  color: #71717a;
}
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  min-height: 30px;
}
.filter-tabs button {
  border: 1px solid transparent;
  padding: 6px 13px;
  font-size: 10px;
  border-radius: 999px;
  background: #27272a;
  color: #a1a1aa;
}
.filter-tabs button.active {
  color: #d4d4d8;
  border-color: #71717a40;
  background: #71717a16;
}
.flow-grid {
  gap: 13px;
}
.flow-grid .card {
  padding: 20px;
}
.flow-card-top {
  display: flex;
  gap: 13px;
  align-items: start;
  min-width: 0;
}
.flow-card-title {
  min-width: 0;
  flex: 1;
}
.flow-grid .card h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.1px;
  margin: 2px 0 7px;
}
.flow-card-title small {
  font-size: 10px;
  color: #71717a;
}
.flow-avatar {
  width: 39px;
  height: 39px;
  flex-shrink: 0;
}
.flow-avatar .ui-icon {
  width: 19px;
}
.flow-card-top .badge {
  margin-left: auto;
  text-align: center;
}
.flow-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  color: #71717a;
  font-size: 10px;
  margin: 16px 0;
  align-items: center;
}
.flow-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.flow-stats svg {
  width: 12px;
  height: 12px;
  color: #71717a;
}
.flow-schema {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 15px 0;
}
.flow-schema span {
  font-size: 9px;
  border: 1px solid #71717a25;
  border-radius: 5px;
  padding: 4px 7px;
  font-family: ui-monospace, monospace;
}
.input-chip {
  color: #a1a1aa;
  background: #71717a09;
}
.output-chip {
  color: #a1a1aa;
  background: #71717a09;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 13px;
  border-top: 1px solid #fafafa08;
  margin-top: 13px;
}
.card-bottom .buttons {
  margin: 0;
  padding: 0;
}
.card-bottom > small {
  font-size: 9px;
  color: #71717a;
}
.card-bottom .flow-stats {
  margin: 0;
  gap: 5px;
}
.card-bottom button {
  font-size: 10px;
}
.card-bottom button svg {
  width: 12px;
  height: 12px;
}
.shared-note {
  color: #a1a1aa;
  font-size: 9px;
  margin-top: 12px;
}
.market-search {
  position: relative;
  margin-bottom: 14px;
}
.market-search > svg {
  position: absolute;
  top: 12px;
  left: 13px;
  color: #71717a;
  width: 14px;
}
#marketplace-search {
  margin-bottom: 0;
  font-size: 11px;
  padding: 11px 14px 11px 37px;
  background: #18181b;
  border-color: #fafafa0d;
}
.market-card {
  background: #09090b;
}
.market-description {
  color: #a1a1aa;
  line-height: 1.8;
  font-size: 12px;
  margin: 17px 0;
}
.studio-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 40px;
  border-top: 1px solid #fafafa08;
  background: #18181b60;
  color: #71717a;
  font-size: 9px;
}
.studio-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.status-dot {
  width: 5px;
  height: 5px;
  background: #a1a1aa;
  border-radius: 50%;
}
.studio-footer > div {
  display: flex;
  align-items: center;
  gap: 19px;
}
.studio-footer a,
.studio-footer button {
  color: #71717a;
  font-size: 9px;
}
.studio-footer button {
  padding: 4px 0;
}
.topline {
  margin-bottom: 28px;
}
.topline h1 {
  font-size: 29px;
  margin-top: 12px;
}
.topline .subtitle {
  font-size: 12px;
}
.account-facts {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px 16px;
  margin-top: 25px;
  font-size: 12px;
}
.account-facts dt {
  color: #71717a;
}
.account-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.account-coach {
  text-align: center;
}
.account-coach img {
  width: 100px;
  height: 130px;
  object-fit: contain;
}
/* Dialogs and the existing recorder */
.dialog-backdrop {
  background: #09090bbb;
  backdrop-filter: blur(6px);
  z-index: 100;
  padding: 25px;
}
.dialog {
  background: #09090b;
  border: 1px solid #3f3f46;
  border-radius: 20px;
  box-shadow: 0 35px 100px #09090bbb;
  padding: 0;
  max-height: calc(100dvh - 50px);
  width: min(560px, 100%);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 22px 27px;
  border-bottom: 1px solid #fafafa0d;
  background: #18181b;
  border-radius: 20px 20px 0 0;
}
.dialog-header .eyebrow {
  font-size: 8px;
  color: #a1a1aa;
}
.dialog-header h2 {
  font-size: 19px;
  margin: 8px 0 0;
}
.dialog-close {
  color: #a1a1aa;
  font-size: 23px;
  padding: 3px 8px;
}
.dialog > form {
  padding: 25px 27px;
}
.dialog p {
  font-size: 12px;
  line-height: 1.8;
}
.dialog label {
  margin-top: 20px;
  font-size: 11px;
}
.dialog input,
.dialog textarea,
.dialog select {
  font-size: 12px;
}
.dialog .actions {
  border-top: 1px solid #fafafa0d;
  padding-top: 19px;
  margin-top: 25px;
}
.dialog .actions button {
  font-size: 12px;
}
.dialog-coach {
  display: flex;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid #fafafa0d;
  padding-bottom: 18px;
}
.dialog-coach img {
  width: 70px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}
.dialog-coach .eyebrow {
  font-size: 9px;
}
.dialog-coach p {
  font-size: 11px;
  color: #a1a1aa;
  margin: 8px 0 0;
}
.dialog .checkbox-label {
  align-items: start;
}
.dialog .checkbox-label input {
  margin-top: 4px;
}
.dialog pre {
  max-height: 320px;
  overflow-y: auto;
}
.field-dialog {
  background: transparent;
  backdrop-filter: none;
}
.field-dialog .dialog {
  border-radius: 16px;
}
.field-dialog .dialog-header {
  border-radius: 16px 16px 0 0;
  padding: 16px 20px;
}
.field-dialog .dialog > form {
  padding: 16px 20px;
}
.browser {
  background: #09090b;
  border-color: #27272a;
}
.browserbar,
.browserfoot {
  background: #18181b;
  border-color: #27272a;
}
.browser-screen {
  background: #09090b;
}
.browser-screen:focus {
  outline-color: #a1a1aa;
}
.step {
  border-color: #27272a;
}
.step .num {
  color: #a1a1aa;
  background: #71717a14;
  border-color: #71717a25;
}
.step .info small {
  color: #a1a1aa;
}
.tools button {
  background: #18181b;
  border-color: #3f3f46;
  color: #a1a1aa;
}
.list-guide {
  background: #71717a0d;
  border-color: #71717a30;
}
.list-guide h3 {
  color: #e4e4e7;
}
.list-guide p {
  color: #a1a1aa;
}
.output-fields li {
  background: #18181b;
  border-color: #3f3f46;
}
.field-coverage {
  color: #a1a1aa;
}
.guide-actions button {
  white-space: normal;
}
th {
  color: #71717a;
  border-color: #27272a;
}
td {
  color: #d4d4d8;
  border-color: #27272a;
}
#toast {
  font-size: 12px;
  width: max-content;
  max-width: min(560px, calc(100vw - 32px));
  min-width: 0;
  overflow-wrap: anywhere;
  border: 1px solid #fafafa1a;
  border-radius: 12px;
  box-shadow: 0 10px 35px #09090b88;
  z-index: 200;
}

@media (max-width: 1150px) {
  .studio-header {
    padding: 17px 24px;
    gap: 22px;
  }
  .header-tools > .header-tool {
    width: 38px;
    padding: 0;
  }
  .header-tool > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .content {
    padding: 30px;
  }
  .dashboard-columns {
    gap: 24px;
  }
}
@media (max-width: 850px) {
  .site-header {
    padding: 20px 24px;
  }
  .site-header > nav {
    gap: 18px;
  }
  .site-header .brand {
    font-size: 18px;
  }
  .site-header .brand img {
    width: 28px;
    height: 28px;
  }
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
  .marketplace-column {
    padding-top: 16px;
    border-top: 0;
  }
  .onboarding-panel {
    grid-template-columns: 1fr 0.7fr;
  }
  .onboarding-panel.terms-panel {
    grid-template-columns: 1fr;
  }
  .onboarding-panel form {
    padding: 28px;
  }
  .onboarding-coach {
    padding: 25px;
  }
  .onboarding-coach h2 {
    font-size: 24px;
  }
  .onboarding-coach img {
    width: 110px;
  }
  .reading-layout {
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 20px;
  }
  .legal-content {
    padding: 28px;
  }
  .global-search {
    max-width: none;
  }
  .studio-header .brand span {
    display: none;
  }
  .showcase-panel {
    gap: 35px;
    padding: 35px;
  }
  .showcase-panel img {
    width: 130px;
  }
}
@media (max-width: 650px) {
  .site-header {
    padding: 17px 22px;
  }
  .site-header > nav {
    display: none;
  }
  .mobile-menu {
    display: block;
    position: relative;
  }
  .mobile-menu summary {
    list-style: none;
    border: 1px solid #fafafa18;
    border-radius: 50%;
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    font-size: 18px;
  }
  .mobile-menu nav {
    position: absolute;
    right: 0;
    top: 45px;
    width: 220px;
    border: 1px solid #27272a;
    background: #09090b;
    padding: 15px;
    border-radius: 14px;
    display: grid;
    gap: 15px;
    box-shadow: 0 20px 40px #09090b88;
  }
  .mobile-menu nav a {
    font-size: 13px;
    padding: 5px 7px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .feature-grid article > svg {
    margin-bottom: 10px;
  }
  .feature-grid h3 {
    font-size: 16px;
  }
  .feature-grid p {
    font-size: 13px;
  }
  .site-container {
    padding: 40px 20px 55px;
  }
  .page-hero h1 {
    font-size: 40px;
  }
  .page-hero p {
    font-size: 14px;
  }
  .reading-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .reading-guide {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 18px 12px;
  }
  .reading-guide h3 {
    grid-column: 1/-1;
  }
  .reading-guide a {
    font-size: 10px;
    padding: 7px 10px;
  }
  .legal-content {
    padding: 26px 22px;
  }
  .showcase-panel {
    gap: 15px;
    padding: 25px;
    flex-direction: column;
    align-items: start;
  }
  .showcase-panel img {
    width: 85px;
    height: 115px;
    align-self: center;
  }
  .showcase-panel h2 {
    font-size: 28px;
  }
  .edition-card {
    padding: 27px;
  }
  .auth-layout {
    padding-top: 32px;
  }
  .auth-card {
    padding: 28px;
  }
  .auth-card h1 {
    font-size: 32px;
  }
  .onboarding-wrap {
    padding: 25px 16px;
  }
  .onboarding-progress {
    gap: 20px;
    margin-bottom: 22px;
  }
  .onboarding-progress li {
    font-size: 10px;
    gap: 6px;
  }
  .onboarding-panel {
    grid-template-columns: 1fr;
  }
  .onboarding-panel form {
    padding: 25px 22px;
  }
  .onboarding-panel h1 {
    font-size: 25px;
  }
  .onboarding-coach {
    display: none;
  }
  .onboarding-terms {
    max-height: 230px;
    padding: 18px;
  }
  .onboarding-panel .actions {
    flex-wrap: wrap;
    gap: 12px;
  }
  .onboarding-panel .actions button {
    font-size: 11px;
    padding: 11px;
  }
  .acceptance {
    padding: 13px;
    font-size: 11px;
  }
  .choice-card {
    padding: 14px 12px;
  }
  .studio-header {
    flex-wrap: wrap;
    gap: 13px;
    padding: 13px 18px;
  }
  .studio-header .brand {
    margin-right: auto;
  }
  .studio-header .brand span {
    display: block;
    font-size: 16px;
  }
  .studio-header .brand img {
    width: 28px;
    height: 28px;
  }
  .global-search {
    order: 3;
    flex-basis: 100%;
  }
  .global-search input {
    height: 36px;
    font-size: 11px;
  }
  .global-search > svg {
    top: 10px;
  }
  .global-search kbd {
    top: 9px;
  }
  .header-tools {
    gap: 6px;
  }
  .header-tools > button {
    width: 30px;
    height: 30px;
    padding: 0;
  }
  .header-tools > .primary > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .avatar {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }
  .content {
    padding: 25px 18px 35px;
  }
  .dashboard-welcome {
    margin-bottom: 29px;
  }
  .dashboard-welcome .eyebrow {
    font-size: 8px;
  }
  .dashboard-welcome h1 {
    font-size: 23px;
  }
  .dashboard-welcome p {
    font-size: 11px;
  }
  .help-link {
    display: none;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .section-hint {
    font-size: 8px;
  }
  .flow-grid .card {
    padding: 17px;
  }
  .flow-card-top {
    gap: 10px;
  }
  .flow-card-top .badge {
    font-size: 7px;
    padding: 4px 6px;
    max-width: 78px;
    white-space: normal;
  }
  .flow-avatar {
    width: 33px;
    height: 33px;
  }
  .flow-grid .card h3 {
    font-size: 13px;
  }
  .flow-card-top .details-url {
    font-size: 10px;
  }
  .card-bottom {
    flex-wrap: wrap;
  }
  .studio-footer {
    padding: 14px 18px;
    flex-wrap: wrap;
    font-size: 8px;
  }
  .studio-footer > div {
    gap: 15px;
  }
  .dialog-backdrop {
    padding: 12px;
  }
  .dialog {
    max-height: calc(100dvh - 24px);
    border-radius: 16px;
  }
  .dialog-header {
    padding: 17px 20px;
    border-radius: 16px 16px 0 0;
  }
  .dialog-header h2 {
    font-size: 18px;
  }
  .dialog > form {
    padding: 20px;
  }
  .dialog .actions {
    flex-wrap: wrap;
  }
  .account-facts {
    grid-template-columns: 90px 1fr;
  }
  .topline h1 {
    font-size: 25px;
  }
  .row.wrap {
    gap: 8px;
  }
  .row.wrap > button {
    font-size: 11px;
    padding: 9px 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Quiet surfaces,
familiar workspace navigation,
and restrained typography. */
:root {
  --ink: #f4f4f5;
  --green: #f4f4f5;
  --brand: #f4f4f5;
  --brand-hover: #d4d4d8;
  --line: #3f3f46;
  --muted: #a1a1aa;
  --surface: #27272a;
  --canvas: #18181b;
  background: var(--canvas);
}
body,
.public-site,
.auth-page,
.onboarding-page,
.studio-page {
  background: var(--canvas);
}
button,
.button {
  font-weight: 500;
  box-shadow: none;
}
button.primary,
.button.primary {
  background: #f4f4f5;
  border-color: #f4f4f5;
  color: #18181b;
  box-shadow: none;
  border-radius: 999px;
}
a {
  color: #d4d4d8;
}
a:hover {
  color: #fafafa;
}
input,
select,
textarea {
  background: transparent;
  border-color: #52525b;
}
input:focus,
select:focus,
textarea:focus {
  outline: 1px solid #a1a1aa;
  border-color: #a1a1aa;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: #e4e4e7;
}
.brand {
  font-weight: 600;
  letter-spacing: -0.5px;
}
.brand img {
  filter: grayscale(1);
}
.eyebrow {
  color: #a1a1aa;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 400;
}
h1,
h2,
h3 {
  font-weight: 550;
}
.panel,
.card,
.empty,
.market-card,
.legal-content,
.edition-card,
.reading-guide {
  background: transparent;
  border-color: #3f3f46;
  box-shadow: none;
}
.icon,
.flow-avatar,
.choice-icon {
  background: #27272a;
  color: #d4d4d8;
  border-color: #3f3f46;
}
.badge,
.badge.red,
.badge.gray {
  color: #d4d4d8;
  background: #27272a;
  border-color: #3f3f46;
}
.notice,
.notice.error,
.form-error {
  background: #27272a;
  color: #e4e4e7;
  border-color: #52525b;
}
.danger {
  color: #d4d4d8 !important;
}
pre {
  background: #09090b;
  color: #d4d4d8;
}
code {
  color: #e4e4e7;
}
.site-header {
  max-width: none;
  padding: 20px 32px;
  border: 0;
}
.site-header .brand {
  font-size: 19px;
}
.site-header .brand img {
  width: 28px;
  height: 28px;
}
.site-header > nav {
  gap: 25px;
}
.site-header .primary {
  padding: 9px 18px;
}
.site-footer {
  background: transparent;
  border-color: #27272a;
  padding: 30px 24px;
  gap: 22px;
}
.site-footer .brand {
  display: none;
}
.site-footer p {
  font-size: 11px;
  color: #a1a1aa;
}
.workspace-intro {
  max-width: 760px;
  min-height: min(690px, calc(100svh - 90px));
  margin: auto;
  padding: 80px 24px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.intro-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  color: #d4d4d8;
}
.intro-mark svg {
  width: 30px;
  height: 30px;
}
.workspace-intro h1 {
  font-size: clamp(29px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -1.2px;
  margin: 0 0 12px;
}
.workspace-intro > p {
  color: #a1a1aa;
  font-size: 15px;
  margin: 0 0 32px;
}
.start-composer {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  padding: 22px 20px 14px 24px;
  border: 1px solid #3f3f46;
  border-radius: 26px;
  background: #27272a;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.start-composer:hover {
  background: #27272a;
  border-color: #71717a;
}
.composer-label {
  font-size: 16px;
  color: #e4e4e7;
}
.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}
.composer-bottom > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a1a1aa;
  font-size: 12px;
}
.composer-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #18181b;
  background: #f4f4f5;
}
.composer-arrow svg {
  transform: rotate(-90deg);
}
.intro-shortcuts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.intro-shortcuts a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  border: 1px solid #3f3f46;
  padding: 11px 16px;
  border-radius: 999px;
  color: #d4d4d8;
}
.intro-shortcuts a:hover {
  background: #27272a;
}
.intro-shortcuts svg {
  width: 16px;
  height: 16px;
}
.intro-note {
  color: #a1a1aa;
  font-size: 11px;
  margin-top: 28px;
}
.simple-features {
  max-width: 980px;
  padding: 42px 30px 58px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  border-top: 1px solid #27272a;
}
.simple-features article > span {
  color: #a1a1aa;
  font-size: 11px;
}
.simple-features h2 {
  font-size: 15px;
  margin: 15px 0 10px;
  letter-spacing: 0;
}
.simple-features p {
  font-size: 13px;
  color: #a1a1aa;
  margin: 0;
  line-height: 1.8;
}
.page-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -1.5px;
  line-height: 1.16;
}
.page-hero h1 > span {
  color: inherit;
}
.showcase-panel {
  background: #27272a;
  border-color: #3f3f46;
  justify-content: start;
  padding: 40px;
}
.showcase-panel > div {
  max-width: 650px;
}
.showcase-panel h2 {
  font-size: 28px;
}
.feature-grid.standalone article {
  background: transparent;
}
.reading-guide {
  border: 0;
}
.reading-guide h3 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}
.legal-content {
  border: 0;
}
.auth-layout {
  max-width: 430px;
  padding-top: 65px;
}
.auth-brand {
  margin-bottom: 50px;
}
.auth-card {
  background: transparent;
  padding: 15px;
  border: 0;
  box-shadow: none;
}
.auth-card > .eyebrow {
  display: none;
}
.auth-card h1 {
  font-size: 32px;
  font-weight: 500;
  text-align: center;
  letter-spacing: -0.8px;
  line-height: 1.2;
}
.auth-card h1 br {
  display: none;
}
.auth-card h1 span {
  color: inherit;
}
.auth-card > p {
  text-align: center;
  font-size: 14px;
}
.auth-card form > label {
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.auth-card input {
  padding: 16px;
  font-size: 14px;
  border-radius: 14px;
}
.auth-card form > button {
  padding: 14px;
  font-size: 14px;
}
.auth-benefits {
  display: none;
}
.auth-switch {
  font-size: 12px;
}
.auth-footer a,
.local-login {
  color: #a1a1aa;
}
.onboarding-wrap {
  max-width: 760px;
}
.onboarding-brand p {
  font-size: 13px;
}
.onboarding-panel,
.onboarding-panel.terms-panel {
  grid-template-columns: minmax(0, 1fr);
  background: transparent;
  border: 0;
  box-shadow: none;
}
.onboarding-coach {
  display: none;
}
.onboarding-panel h1 {
  font-weight: 500;
  font-size: 29px;
}
.onboarding-panel form {
  padding: 30px 24px;
}
.onboarding-terms {
  background: #27272a;
  border-color: #3f3f46;
}
.onboarding-progress .current {
  color: #f4f4f5;
}
.onboarding-progress .current > span {
  background: #f4f4f5;
  border-color: #f4f4f5;
  color: #18181b;
}
.onboarding-progress .complete {
  color: #d4d4d8;
}
.acceptance,
.choice-card {
  background: transparent;
  border-color: #3f3f46;
}
.choice-card:has(input:checked) {
  background: #27272a;
  border-color: #a1a1aa;
  box-shadow: none;
}
.choice-card strong {
  font-size: 13px;
  font-weight: 500;
}
.choice-card small {
  font-size: 12px;
}
.layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
}
.studio-sidebar {
  grid-column: 1;
  grid-row: 1 / 4;
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 26px 14px 18px;
  background: #09090b;
  overflow-y: auto;
  z-index: 45;
}
.sidebar-brand {
  padding: 0 10px 28px;
}
.sidebar-brand .brand {
  font-size: 18px;
}
.sidebar-brand .brand img {
  width: 28px;
  height: 28px;
}
.workspace-nav {
  display: grid;
  gap: 3px;
}
.workspace-nav button,
.sidebar-bottom a {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 12px;
  background: transparent;
  border: 0;
  padding: 12px;
  font-size: 13px;
  font-weight: 400;
  color: #d4d4d8;
  border-radius: 9px;
}
.workspace-nav button.active,
.sidebar-recents a:hover,
.sidebar-recents a.active,
.sidebar-bottom a:hover {
  background: #27272a;
  color: #fafafa;
}
.sidebar-recents {
  display: grid;
  gap: 2px;
  padding-top: 30px;
}
.sidebar-recents p {
  padding: 0 12px;
  color: #a1a1aa;
  font-size: 12px;
  margin: 0 0 12px;
}
.sidebar-recents > span {
  font-size: 12px;
  color: #71717a;
  padding: 0 12px;
  line-height: 1.8;
}
.sidebar-recents a {
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 35px;
}
.sidebar-bottom a {
  font-size: 12px;
}
.sidebar-private {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #71717a;
  font-size: 11px;
  padding: 18px 12px 0;
}
.sidebar-private svg {
  width: 13px;
}
.studio-header {
  grid-column: 2;
  padding: 18px 28px;
  background: var(--canvas);
  border: 0;
  backdrop-filter: none;
  gap: 24px;
}
.studio-header .brand img {
  display: none;
}
.studio-header .brand span {
  display: block;
  font-size: 17px;
  font-weight: 500;
  color: #d4d4d8;
}
.global-search {
  max-width: 390px;
}
.global-search input {
  background: transparent;
  border-color: #3f3f46;
}
.global-search > svg {
  color: #a1a1aa;
}
.header-tools > button {
  font-size: 12px;
}
.sidebar-toggle {
  display: none;
}
.content {
  grid-column: 2;
  max-width: 1400px;
  padding: 50px 40px;
}
.dashboard-welcome {
  margin-bottom: 48px;
}
.dashboard-welcome h1 {
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.8px;
  margin-top: 0;
}
.dashboard-welcome p {
  font-size: 14px;
  margin-top: 10px;
}
.section-heading h2 {
  font-size: 18px;
  font-weight: 500;
}
.section-hint {
  color: #a1a1aa;
}
.dashboard-columns {
  gap: 28px;
}
.filter-tabs button {
  background: transparent;
  color: #a1a1aa;
  font-size: 12px;
  padding: 7px 12px;
}
.filter-tabs button.active {
  background: #3f3f46;
  border-color: transparent;
  color: #f4f4f5;
}
.flow-grid .card {
  border-radius: 14px;
  padding: 20px;
  gap: 8px;
}
.flow-grid .card:hover {
  background: #27272a;
  border-color: #52525b;
}
.flow-grid .card h3 {
  font-size: 15px;
  font-weight: 500;
}
.flow-stats {
  color: #a1a1aa;
  font-size: 11px;
}
.flow-schema span {
  border-color: #3f3f46;
  color: #d4d4d8;
  background: #27272a;
}
.card-bottom button {
  font-size: 11px;
}
.empty.compact {
  padding: 42px 25px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-style: dashed;
}
.empty.compact h3 {
  font-weight: 500;
}
#marketplace-search {
  background: transparent;
  border-color: #3f3f46;
  font-size: 12px;
}
.studio-footer {
  grid-column: 2;
  background: transparent;
  border: 0;
  padding: 18px 40px;
}
.avatar {
  background: #3f3f46;
  color: #e4e4e7;
  border: 0;
}
.account-dropdown {
  background: #27272a;
  border-color: #52525b;
}
.dialog {
  background: #27272a;
  border-color: #52525b;
  border-radius: 24px;
  box-shadow: 0 20px 80px #0005;
}
.dialog-backdrop {
  background: #09090b99;
  backdrop-filter: blur(3px);
}
.dialog-header {
  background: transparent;
  border: 0;
  padding-bottom: 0;
}
.dialog-header .eyebrow {
  display: none;
}
.dialog-header h2 {
  font-weight: 500;
  margin: 0;
  font-size: 21px;
}
.dialog > form {
  padding-top: 18px;
}
.dialog-coach {
  border: 0;
  padding: 0;
}
.dialog-coach .eyebrow {
  display: none;
}
.dialog-coach p {
  font-size: 13px;
  margin-top: 0;
}
.dialog label {
  font-size: 12px;
  font-weight: 400;
}
.dialog input,
.dialog select,
.dialog textarea {
  font-size: 13px;
  background: #27272a;
}
.dialog .actions {
  border: 0;
  padding-top: 5px;
}
.field-dialog {
  background: transparent;
  backdrop-filter: none;
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .content {
    padding: 36px 24px;
  }
  .studio-header {
    padding: 18px 24px;
    gap: 15px;
  }
  .studio-header > .brand {
    display: none;
  }
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
  .recorder {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .studio-header,
  .content,
  .studio-footer {
    grid-column: 1;
  }
  .studio-sidebar {
    display: none;
    position: static;
    height: auto;
    grid-column: 1;
    grid-row: 2;
    padding: 12px 18px 20px;
  }
  .navigation-open .studio-sidebar {
    display: flex;
  }
  .navigation-open .content {
    grid-row: 3;
  }
  .navigation-open .studio-footer {
    grid-row: 4;
  }
  .sidebar-brand,
  .sidebar-recents,
  .sidebar-bottom {
    display: none;
  }
  .workspace-nav {
    grid-template-columns: 1fr 1fr;
  }
  .sidebar-toggle {
    display: inline-flex;
    padding: 8px;
  }
  .studio-header {
    grid-row: 1;
    flex-wrap: wrap;
    padding: 14px 18px;
    gap: 10px;
  }
  .studio-header > .brand {
    display: inline-flex;
    margin-right: auto;
  }
  .global-search {
    flex-basis: 100%;
    order: 3;
    max-width: none;
  }
  .global-search input {
    height: 38px;
    font-size: 12px;
  }
  .header-tools > button {
    width: auto;
    height: 34px;
    padding: 7px 12px;
  }
  .header-tools > .primary > span {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
  }
  .content {
    padding: 30px 20px;
  }
  .dashboard-welcome {
    margin-bottom: 32px;
  }
  .dashboard-welcome h1 {
    font-size: 25px;
  }
  .studio-footer {
    padding: 18px 20px;
  }
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
  .section-hint {
    font-size: 10px;
  }
  .onboarding-wrap {
    padding: 25px 16px;
  }
  .onboarding-panel form {
    padding: 20px 4px;
  }
  .site-header {
    padding: 18px 22px;
  }
}
@media (max-width: 650px) {
  .workspace-intro {
    min-height: 590px;
    padding: 55px 20px;
  }
  .workspace-intro h1 {
    font-size: 29px;
    letter-spacing: -0.8px;
  }
  .workspace-intro > p {
    font-size: 14px;
    max-width: 290px;
  }
  .start-composer {
    padding: 20px 17px 13px;
  }
  .composer-label {
    font-size: 15px;
  }
  .composer-bottom > span:first-child {
    font-size: 11px;
  }
  .intro-shortcuts {
    gap: 8px;
  }
  .intro-shortcuts a {
    font-size: 11px;
    padding: 9px 12px;
  }
  .simple-features {
    grid-template-columns: 1fr;
    gap: 28px;
    margin: 0 24px;
    padding: 32px 0;
  }
  .simple-features h2 {
    margin-top: 10px;
  }
  .site-footer > div {
    gap: 18px;
  }
  .page-hero h1 {
    font-size: 34px;
  }
  .auth-layout {
    padding-top: 38px;
  }
  .auth-brand {
    margin-bottom: 30px;
  }
  .auth-card {
    padding: 15px;
  }
  .dialog-backdrop {
    padding: 15px;
  }
  .dialog-header {
    padding: 22px 22px 0;
  }
  .dialog > form {
    padding: 20px 22px;
  }
}
.choice-card {
  transition: none;
}
.tools button.active {
  background: #3f3f46;
  border-color: #a1a1aa;
  color: #fafafa;
}
.record-dot {
  background: #d4d4d8;
}

/* Benefit-led copy keeps the same quiet zinc presentation. */
.workspace-intro h1 {
  font-size: clamp(29px, 3.7vw, 40px);
}
.workspace-intro > p {
  max-width: 650px;
  line-height: 1.8;
}
.outcome-cta {
  max-width: 1120px;
  margin: 15px auto 65px;
  padding: 32px;
  border: 1px solid #3f3f46;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.outcome-cta > div {
  max-width: 680px;
}
.outcome-cta h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 12px;
}
.outcome-cta p {
  margin: 0;
  font-size: 14px;
  color: #a1a1aa;
  line-height: 1.8;
}
.outcome-cta .button {
  flex-shrink: 0;
}
.dashboard-welcome p {
  max-width: 600px;
  line-height: 1.7;
}
@media (max-width: 1200px) {
  .outcome-cta {
    margin-left: 30px;
    margin-right: 30px;
  }
}
@media (max-width: 760px) {
  .outcome-cta {
    margin: 10px 20px 40px;
    padding: 25px;
    flex-direction: column;
    align-items: start;
    gap: 22px;
  }
  .outcome-cta h2 {
    font-size: 21px;
  }
  .workspace-intro > p br {
    display: none;
  }
  .workspace-intro > p {
    max-width: 360px;
  }
  .dashboard-welcome p {
    font-size: 13px;
  }
}
.intro-positioning {
  color: #a1a1aa;
  font-size: 12px;
  margin: -5px 0 20px;
}
.capability-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 0 60px;
}
.capability-heading h2 {
  font-size: 30px;
  font-weight: 500;
  margin: 14px 0;
}
.capability-heading > p {
  color: #a1a1aa;
  font-size: 14px;
}
.capability-section .feature-grid {
  margin: 28px 0;
  gap: 20px;
}
.capability-section .feature-grid article {
  padding: 25px;
}
.capability-section .feature-grid h3 {
  font-size: 15px;
  line-height: 1.5;
}
.capability-section .feature-grid p {
  font-size: 13px;
}
.deterministic-note {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  align-items: center;
  gap: 35px;
  border-top: 1px solid #3f3f46;
  padding: 28px 0;
}
.deterministic-note h3 {
  font-size: 21px;
  margin: 12px 0 0;
}
.deterministic-note p {
  font-size: 14px;
  line-height: 1.8;
  color: #a1a1aa;
  margin: 0;
}
.integration-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.integration-labels > span {
  padding: 10px 15px;
  border: 1px solid #3f3f46;
  border-radius: 9px;
  font-size: 13px;
}
.integration-labels a {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  font-size: 13px;
}
.integration-steps {
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.9;
  color: #d4d4d8;
}
.integration-steps li {
  padding-left: 5px;
  margin: 14px 0;
}
@media (max-width: 1200px) {
  .capability-section {
    margin: 0 30px;
  }
}
@media (max-width: 760px) {
  .capability-section {
    margin: 0 24px;
    padding: 30px 0 40px;
  }
  .deterministic-note {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .integration-labels a {
    margin: 8px 0 0;
    flex-basis: 100%;
  }
  .intro-positioning {
    font-size: 11px;
  }
}
.capability-section .feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 650px) {
  .capability-section .feature-grid {
    grid-template-columns: 1fr;
  }
}
.community-intro {
  max-width: 1120px;
  margin: 0 auto 50px;
  padding: 40px 0;
  border-top: 1px solid #3f3f46;
}
.community-intro h2 {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.3;
  margin: 15px 0 20px;
}
.community-intro p {
  max-width: 760px;
  color: #a1a1aa;
  font-size: 14px;
  line-height: 1.9;
}
.hero-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 25px;
  font-size: 13px;
}
.bot-categories {
  margin-top: 50px;
}
@media (max-width: 1200px) {
  .community-intro {
    margin-left: 30px;
    margin-right: 30px;
  }
}
@media (max-width: 650px) {
  .community-intro {
    margin: 0 24px 25px;
    padding: 30px 0;
  }
  .community-intro h2 {
    font-size: 26px;
  }
}
.auth-community {
  font-size: 12px !important;
  text-align: center;
  color: #a1a1aa;
  margin: 22px 0 0 !important;
  line-height: 1.8;
}
.auth-community a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Outcome-first destinations: real use cases before the detailed manual. */
.sales-page {
  max-width: 1220px;
  padding-top: 35px;
}
.sales-hero {
  padding: 40px 0 50px;
  max-width: 940px;
}
.sales-hero > .eyebrow {
  display: block;
  margin-bottom: 22px;
}
.sales-hero h1 {
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.055em;
  margin: 0 0 24px;
}
.sales-hero > p {
  color: #a1a1aa;
  font-size: 17px;
  line-height: 1.85;
  max-width: 680px;
  margin: 0;
}
.sales-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
  font-size: 13px;
}
.sales-actions .primary {
  padding: 14px 23px;
}
.sales-reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 25px;
  color: #a1a1aa;
  font-size: 11px;
}
.sales-reassurance span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.sales-reassurance svg {
  width: 14px;
  height: 14px;
}
.sales-section {
  padding: 55px 0;
  border-top: 1px solid #3f3f46;
}
.section-lead {
  max-width: 700px;
  margin-bottom: 30px;
}
.section-lead h2 {
  font-size: clamp(27px, 3.3vw, 40px);
  line-height: 1.18;
  letter-spacing: -1px;
  font-weight: 500;
  margin: 14px 0 18px;
}
.section-lead p {
  color: #a1a1aa;
  line-height: 1.8;
  font-size: 14px;
  max-width: 610px;
  margin: 0;
}
.sales-demo {
  margin: 0;
}
.example-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.example-tabs label {
  position: relative;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}
.example-tabs input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.example-tabs label > span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a1a1aa;
  padding: 12px 18px;
  border: 1px solid #3f3f46;
  border-radius: 999px;
  font-size: 13px;
}
.example-tabs input:checked + span {
  color: #18181b;
  background: #f4f4f5;
  border-color: #f4f4f5;
}
.example-tabs input:focus-visible + span {
  outline: 2px solid #a1a1aa;
  outline-offset: 4px;
}
.example-tabs svg {
  width: 16px;
  height: 16px;
}
.example-panel {
  display: none;
  border: 1px solid #3f3f46;
  border-radius: 20px;
  background: #27272a;
  overflow: hidden;
}
.sales-demo:has(input[value="leads"]:checked) [data-example="leads"],
.sales-demo:has(input[value="market"]:checked) [data-example="market"],
.sales-demo:has(input[value="tasks"]:checked) [data-example="tasks"] {
  display: block;
}
.example-intro {
  padding: 30px 32px 25px;
}
.example-intro .eyebrow {
  font-size: 11px;
}
.example-intro h3 {
  font-size: 23px;
  font-weight: 500;
  line-height: 1.4;
  margin: 12px 0 10px;
}
.example-intro p {
  color: #a1a1aa;
  font-size: 13px;
  margin: 0;
}
.example-process {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr 1fr;
  gap: 22px;
  padding: 10px 32px 30px;
}
.process-label {
  font-size: 10px;
  color: #a1a1aa;
  display: block;
  margin: 0 0 18px;
}
.example-input > div {
  border: 1px solid #52525b;
  border-radius: 12px;
  padding: 18px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.example-input strong {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}
.example-process p {
  color: #a1a1aa;
  font-size: 12px;
  line-height: 1.8;
}
.example-actions ol {
  list-style: none;
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0 0 18px;
}
.example-actions li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  line-height: 1.5;
}
.example-actions svg {
  width: 14px;
  height: 14px;
  color: #d4d4d8;
}
.example-caption {
  color: #a1a1aa;
  font-size: 10px;
}
.example-result {
  border-left: 1px solid #52525b;
  padding-left: 22px;
}
.example-result h4 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 14px;
}
.example-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.example-fields span {
  border: 1px solid #52525b;
  background: #18181b;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 10px;
}
.example-footer {
  border-top: 1px solid #3f3f46;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 32px;
}
.example-footer > span {
  color: #a1a1aa;
  font-size: 10px;
}
.example-footer .button {
  font-size: 12px;
}
.sales-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding: 12px 0;
}
.sales-three article > span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid #52525b;
  font-size: 11px;
  color: #d4d4d8;
  margin-bottom: 24px;
}
.sales-three h3 {
  font-size: 19px;
  line-height: 1.45;
  font-weight: 500;
  margin: 0 0 12px;
}
.sales-three p {
  color: #a1a1aa;
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
}
.sales-three article > svg {
  margin: 0 0 20px;
}
.sales-handoff {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 50px 0;
  border-top: 1px solid #3f3f46;
}
.sales-handoff h2 {
  font-size: clamp(26px, 3.2vw, 37px);
  font-weight: 500;
  line-height: 1.2;
  margin: 15px 0 20px;
}
.sales-handoff p {
  font-size: 14px;
  color: #a1a1aa;
  line-height: 1.9;
  margin-bottom: 20px;
}
.sales-handoff a {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.handoff-path {
  display: grid;
  text-align: center;
}
.handoff-path > span {
  border: 1px solid #3f3f46;
  border-radius: 14px;
  padding: 20px;
  background: #27272a;
  font-size: 14px;
}
.handoff-path small {
  display: block;
  font-size: 11px;
  margin-top: 8px;
}
.handoff-path > i {
  font-style: normal;
  color: #71717a;
  padding: 10px;
}
.sales-ready {
  padding: 45px;
  text-align: center;
  background: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 20px;
  margin: 30px 0;
}
.sales-ready h2 {
  font-size: 29px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 15px;
}
.sales-ready p {
  font-size: 14px;
  color: #a1a1aa;
  margin-bottom: 24px;
}
.sales-ready .sales-actions {
  justify-content: center;
}
.build-guide {
  padding-top: 65px;
}
.build-guide .reading-guide {
  top: 20px;
}
.build-guide .legal-content {
  padding-top: 0;
}
#first-result,
#bot-ideas,
#build-guide {
  scroll-margin-top: 28px;
}
.community-showcase {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 45px 0 65px;
}
.community-showcase h2 {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 500;
  margin: 16px 0 22px;
}
.community-showcase p {
  font-size: 14px;
  line-height: 1.9;
  color: #a1a1aa;
}
.community-checks {
  list-style: none;
  padding: 0;
  margin-top: 22px;
  display: grid;
  gap: 14px;
  font-size: 12px;
}
.community-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.7;
}
.community-checks svg {
  width: 15px;
}
.share-example {
  padding: 28px;
  background: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 20px;
}
.share-example-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
}
.share-example-title h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
}
.share-example p {
  font-size: 12px;
}
.share-example dl {
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 18px;
  font-size: 12px;
  padding-top: 20px;
  border-top: 1px solid #52525b;
  line-height: 1.6;
}
.share-example dt {
  color: #a1a1aa;
}
.share-example dd {
  margin: 0;
}
.share-example-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a1a1aa;
  font-size: 10px;
  border-top: 1px solid #52525b;
  padding-top: 18px;
  margin-top: 25px;
  line-height: 1.6;
}
@media (max-width: 950px) {
  .example-process {
    grid-template-columns: 1fr 1.2fr;
  }
  .example-result {
    grid-column: 1/-1;
    border-left: 0;
    border-top: 1px solid #52525b;
    padding: 22px 0 0;
  }
  .sales-handoff,
  .community-showcase {
    gap: 35px;
  }
}
@media (max-width: 650px) {
  .sales-page {
    padding: 20px 20px 45px;
  }
  .sales-hero {
    padding: 28px 0 40px;
  }
  .sales-hero h1 {
    font-size: 44px;
  }
  .sales-hero > p {
    font-size: 15px;
  }
  .sales-actions {
    gap: 20px;
  }
  .sales-reassurance {
    gap: 12px 18px;
    font-size: 10px;
  }
  .sales-section {
    padding: 35px 0;
  }
  .example-tabs {
    gap: 8px;
  }
  .example-tabs label > span {
    padding: 10px 12px;
    font-size: 11px;
    gap: 7px;
  }
  .example-intro {
    padding: 24px 20px;
  }
  .example-intro h3 {
    font-size: 21px;
  }
  .example-process {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 20px 22px;
    gap: 24px;
  }
  .example-actions {
    border-top: 1px solid #52525b;
    padding-top: 22px;
  }
  .example-result {
    grid-column: 1;
  }
  .example-footer {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }
  .example-footer .button {
    white-space: normal;
  }
  .sales-three {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .sales-three article > span {
    margin-bottom: 15px;
  }
  .sales-handoff,
  .community-showcase {
    grid-template-columns: 1fr;
    padding: 35px 0;
    gap: 25px;
  }
  .sales-ready {
    padding: 30px 22px;
  }
  .sales-ready h2 {
    font-size: 25px;
  }
  .build-guide {
    padding-top: 40px;
  }
  .build-guide .legal-content {
    padding: 15px 4px;
  }
  .community-showcase h2 {
    font-size: 30px;
  }
}

/* Current V5 reference: dark zinc surfaces, blue controls, compact workspace. */
:root {
  --canvas: #09090b;
  --surface: #111114;
  --brand: #3b82f6;
  --brand-hover: #60a5fa;
  --line: #ffffff14;
  --green: #60a5fa;
}
body,
.public-site,
.auth-page,
.onboarding-page,
.studio-page {
  background: var(--canvas);
}
.brand img {
  filter: none;
}
button.primary,
.button.primary {
  background: #3b82f6;
  border-color: #60a5fa80;
  color: white;
  box-shadow:
    inset 0 1px #ffffff24,
    0 4px 24px #2563eb15;
}
input,
select,
textarea {
  background: #ffffff04;
  border-color: #ffffff16;
}
input:focus,
select:focus,
textarea:focus {
  outline: 1px solid #60a5fa;
  border-color: #60a5fa;
}
input[type="radio"],
input[type="checkbox"] {
  accent-color: #3b82f6;
}
.eyebrow {
  color: #60a5fa;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
  font-weight: 650;
}
.public-site {
  background-color: #030303;
  background-image:
    radial-gradient(ellipse at 78% 8%, #3b5aea19, transparent 34%),
    linear-gradient(#ffffff06 1px, transparent 1px),
    linear-gradient(90deg, #ffffff06 1px, transparent 1px);
  background-size:
    auto,
    48px 48px,
    48px 48px;
}
.site-header {
  max-width: 1440px;
  margin: auto;
  border-bottom: 1px solid #ffffff0b;
  background: #03030380;
}
.site-footer {
  background: #09090bf2;
}
.panel,
.card,
.empty,
.market-card,
.auth-card,
.onboarding-panel {
  background: #101013;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px #ffffff03;
}
.auth-page,
.onboarding-page {
  background:
    radial-gradient(ellipse at 50% 15%, #1d4ed818, transparent 55%), #09090b;
}
.auth-layout {
  padding-top: 70px;
}
.auth-card {
  border-radius: 22px;
  padding: 38px;
}
.auth-card h1 {
  font-size: 32px;
  line-height: 1.15;
}
.auth-card > .eyebrow {
  display: none;
}
.auth-card > p {
  font-size: 14px;
}
.onboarding-panel {
  border-radius: 22px;
  box-shadow:
    0 30px 100px #0008,
    0 0 100px #2563eb09;
}
.onboarding-brand .brand {
  font-size: 29px;
}
.onboarding-brand .brand img {
  width: 44px;
  height: 44px;
}
.onboarding-progress .current {
  color: #93c5fd;
}
.onboarding-progress .current span {
  background: #3b82f6;
  border-color: #60a5fa;
  color: #fff;
}
.onboarding-progress .complete span {
  background: #1d4ed822;
  color: #93c5fd;
}
.choice-card:has(input:checked),
.acceptance {
  background: #3b82f60b;
  border-color: #3b82f65c;
}
.choice-card:has(input:checked) .choice-icon {
  color: #93c5fd;
  background: #3b82f622;
}
.onboarding-coach {
  display: flex;
  background: radial-gradient(ellipse at 50% 35%, #2563eb1f, transparent 70%);
}
.onboarding-coach img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  align-self: center;
  margin: 0 0 20px;
}
.platform-choices {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}
.platform-choices .choice-card {
  align-items: center;
  padding: 22px;
}
.platform-symbol {
  display: inline-grid;
  place-items: center;
  font-size: 25px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #3b82f612;
  color: #93c5fd;
  flex-shrink: 0;
  font-family: ui-monospace, monospace;
}
.platform-symbol.make {
  color: #c084fc;
  background: #a855f717;
}
.platform-symbol.n8n {
  color: #fb7185;
  background: #fb718514;
}
.layout {
  display: block;
  min-height: 100dvh;
}
.studio-sidebar {
  display: none;
}
.studio-header {
  padding: 16px 28px;
  border-bottom: 1px solid #ffffff0a;
  background: #09090bf5;
  gap: 25px;
}
.studio-header > .brand {
  display: flex;
}
.studio-header .brand img {
  display: block;
  width: 30px;
  height: 30px;
}
.studio-header .brand span {
  color: #fafafa;
  font-size: 20px;
  font-weight: 650;
}
.global-search {
  max-width: 500px;
  flex: 1;
}
.global-search input {
  border-radius: 10px;
  background: #ffffff03;
  border-color: #ffffff0b;
}
.header-tools {
  margin-left: auto;
}
.header-tools > button {
  border-radius: 8px;
}
.header-tools .header-profile,
.header-tools .header-runs {
  background: transparent;
  border-color: #ffffff10;
}
.sidebar-toggle {
  display: none;
}
.content {
  max-width: 1700px;
  padding: 32px 28px 70px;
  margin: auto;
}
.dashboard-columns {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}
.section-heading h2 {
  font-size: 21px;
  font-weight: 650;
}
.section-heading .count {
  font-size: 11px;
  background: #ffffff07;
}
.filter-tabs {
  border-bottom: 1px solid #ffffff0b;
}
.filter-tabs button {
  border-radius: 6px;
  font-size: 11px;
}
.filter-tabs button.active {
  background: #3b82f614;
  color: #93c5fd;
}
.saved-flow-card {
  padding: 20px;
  border-radius: 14px;
}
.flow-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}
.flow-avatar {
  color: #93c5fd;
  background: #3b82f613;
  border: 1px solid #3b82f61f;
  border-radius: 14px;
  width: 48px;
  height: 48px;
}
.flow-name {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  font-size: 16px;
  font-weight: 650;
  white-space: normal;
}
.flow-replay-status {
  font-size: 11px;
  color: #71717a;
  padding-left: 62px;
}
.flow-replay-status.success {
  color: #4ade80;
}
.flow-profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
}
.flow-schema {
  padding: 12px;
  margin: 0 0 12px;
  background: #0003;
  border: 1px solid #ffffff08;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  font-size: 10px;
}
.flow-schema b {
  color: #71717a;
  font-size: 9px;
}
.flow-schema span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 6px;
}
.flow-schema i {
  font-style: normal;
  color: #52525b;
}
.flow-schema .schema-api {
  margin-left: auto;
  color: #c4b5fd;
}
.flow-integrate {
  width: 100%;
  margin: 0 0 12px;
  background: #3b82f60b;
  border-color: #3b82f626;
  color: #93c5fd;
  border-radius: 8px;
}
.flow-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 8px;
}
.flow-card-actions button {
  font-size: 11px;
  padding: 9px 8px;
  border-radius: 7px;
  color: #93c5fd;
  background: #3b82f60b;
  border-color: #3b82f620;
}
.flow-card-actions button:nth-child(2) {
  color: #d8b4fe;
  background: #a855f70b;
  border-color: #a855f720;
}
.flow-card-actions button:nth-child(3) {
  color: #86efac;
  background: #22c55e0b;
  border-color: #22c55e20;
}
.flow-card-actions button.danger {
  color: #fda4af;
  background: #f43f5e0b;
  border-color: #f43f5e20;
}
.market-card {
  border-radius: 14px;
}
.studio-footer {
  padding: 16px 28px;
  border-top: 1px solid #ffffff09;
  background: #09090b;
}
.dialog-backdrop {
  backdrop-filter: blur(8px);
  background: #000b;
}
.dialog {
  border: 1px solid #ffffff18;
  border-radius: 16px;
  background: #09090b;
  box-shadow: 0 28px 90px #0009;
}
.dialog-header {
  border-bottom: 1px solid #ffffff12;
}
.builder-backdrop {
  padding: 28px;
}
.builder-backdrop .dialog {
  width: min(1320px, 100%);
  max-width: none;
  max-height: 94dvh;
  border-radius: 14px;
}
.builder-backdrop .dialog-header {
  padding: 20px 26px;
}
.builder-backdrop .dialog-header .eyebrow {
  display: none;
}
.builder-backdrop .dialog-header h2 {
  font-size: 15px;
}
.builder-backdrop .dialog-header h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}
.builder-backdrop .dialog-header h2 > i {
  font-size: 18px;
  color: #93c5fd;
}
.builder-backdrop .dialog-header [aria-label="Close dialog"] > i {
  font-size: 20px;
}
.builder-backdrop .dialog > form {
  padding: 0;
  overflow: auto;
}
.builder-backdrop .form-error:not([hidden]) {
  margin: 20px 30px 0;
}
.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  min-height: 450px;
}
.builder-content {
  min-width: 0;
  padding: 36px;
}
.builder-title {
  border-bottom: 1px solid #ffffff10;
  padding-bottom: 24px;
  margin-bottom: 28px;
}
.builder-title h3 {
  font-size: 26px;
  line-height: 1.25;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.builder-title p {
  color: #71717a;
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}
.builder-content > label {
  color: #d4d4d8;
  font-size: 13px;
}
.builder-content > input {
  padding: 15px 17px;
  border-radius: 14px;
  font-family: ui-monospace, monospace;
}
.builder-content > p.muted {
  font-size: 12px;
  line-height: 1.7;
}
.builder-content .actions {
  border-top: 1px solid #ffffff10;
  padding-top: 22px;
  margin-top: 32px;
}
.builder-content .actions .primary {
  padding: 13px 26px;
}
.builder-rail {
  list-style: none;
  padding: 30px 20px;
  margin: 0;
  border-left: 1px solid #ffffff0d;
  background: #ffffff01;
}
.builder-rail li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  position: relative;
  color: #52525b;
  font-size: 12px;
  font-weight: 600;
}
.builder-rail li:not(:last-child)::after {
  content: "";
  width: 1px;
  background: #ffffff0c;
  position: absolute;
  top: 46px;
  left: 14px;
  bottom: -12px;
}
.builder-rail li > span {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff13;
  flex-shrink: 0;
  background: #09090b;
}
.builder-rail li > div {
  padding-top: 5px;
}
.builder-rail small {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 400;
  color: #52525b;
  margin-top: 5px;
}
.builder-rail li.current {
  color: #e4e4e7;
}
.builder-rail li.current > span {
  background: #3b82f620;
  border-color: #60a5fa;
  color: #93c5fd;
  box-shadow: 0 0 25px #3b82f619;
}
.builder-rail li.complete > span {
  color: #60a5fa;
  border-color: #3b82f633;
}
.builder-switch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border: 1px solid #ffffff0b;
  background: #ffffff03;
  border-radius: 12px;
  margin-top: 18px;
  gap: 14px;
}
.builder-switch input {
  width: 16px;
  margin: 0;
}
.login-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.login-options .choice-card {
  margin: 0;
  padding: 22px 16px;
  min-height: 125px;
  align-items: center;
}
.login-options .choice-card input {
  flex-shrink: 0;
}
.login-options .choice-icon {
  display: none;
}
#builder-profile {
  margin-top: 24px;
}
.loading-backdrop .dialog {
  width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  height: calc(100dvh - 24px);
}
.loading-backdrop .dialog-header,
.loading-backdrop .builder-rail {
  display: none;
}
.loading-backdrop .dialog > form,
.loading-backdrop .builder-layout {
  height: 100%;
}
.loading-backdrop .builder-layout {
  grid-template-columns: 1fr;
}
.loading-backdrop .builder-content {
  display: grid;
  place-items: center;
  padding: 0;
}
.browser-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  text-align: center;
  min-height: 380px;
  width: 100%;
  padding: 40px 20px;
  overflow: hidden;
}
.loader-aura {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    ellipse at 50% 50%,
    #3b82f621 0%,
    #8b5cf60c 25%,
    transparent 60%
  );
  animation: loader-breathe 4s ease-in-out infinite;
}
.loader-orbits {
  width: 170px;
  height: 170px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
}
.loader-orbits > i {
  position: absolute;
  border: 1px solid #60a5fa19;
  border-top-color: #93c5fd;
  border-radius: 50%;
  inset: 0;
  animation: loader-orbit 3s linear infinite;
}
.loader-orbits > i:nth-child(2) {
  inset: 18px;
  border-top-color: #a78bfa;
  animation-direction: reverse;
  animation-duration: 4s;
  transform: rotate(50deg);
}
.loader-orbits > i:nth-child(3) {
  inset: 35px;
  border-color: #60a5fa33;
  animation: loader-breathe 2s ease-in-out infinite;
}
.loader-orbits > span {
  display: grid;
  place-items: center;
  background: #3b82f61a;
  width: 70px;
  height: 70px;
  border-radius: 22px;
  box-shadow: 0 0 60px #3b82f633;
}
.loader-orbits svg {
  width: 30px;
  height: 30px;
  color: #bfdbfe;
}
.browser-loader h3 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.loader-caption {
  color: #93c5fd;
  font-size: 10px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  line-height: 1.8;
}
.browser-loader p {
  color: #52525b;
  font-size: 12px;
  margin-top: 28px;
}
.loader-track {
  width: 180px;
  height: 2px;
  background: #ffffff08;
  margin-top: 28px;
  overflow: hidden;
}
.loader-track i {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, #60a5fa, transparent);
  animation: loader-track 1.9s ease-in-out infinite;
}
@keyframes loader-orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes loader-breathe {
  50% {
    opacity: 0.45;
    transform: scale(0.94);
  }
}
@keyframes loader-track {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(350%);
  }
}
.recording-page .studio-header,
.recording-page .studio-footer {
  display: none;
}
.recording-page .content {
  padding: 14px;
  max-width: none;
}
.recording-page .topline {
  margin: 0 0 12px;
  padding: 0 8px;
  align-items: center;
}
.recording-page .topline .eyebrow,
.recording-page .topline .subtitle {
  display: none;
}
.recording-page .topline h1 {
  font-size: 14px;
}
.recording-page .recorder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}
.recording-page .browser {
  border: 1px solid #ffffff14;
  border-radius: 12px;
  overflow: hidden;
  background: #101013;
}
.recording-page .browserbar {
  background: #111114;
  padding: 10px;
}
.recording-page .browserbar input {
  background: #ffffff04;
  border-color: #ffffff0a;
}
.recording-page .browser-screen {
  background: #09090b;
}
.recording-page .browserfoot {
  padding: 10px;
  background: #111114;
  flex-wrap: wrap;
}
.recording-page .browserfoot input {
  flex: 1;
  min-width: 120px;
}
.recording-page .recorder-coach {
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(150deg, #17171d, #0d0d10);
  border-color: #ffffff1a;
}
.coach-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.coach-heading img {
  width: 65px;
  height: 75px;
  object-fit: contain;
}
.coach-heading h3 {
  font-size: 14px;
  margin: 6px 0;
}
.coach-heading p {
  font-size: 11px;
  color: #a1a1aa;
  line-height: 1.6;
  margin: 0;
}
.coach-heading .eyebrow {
  font-size: 8px;
}
.recorder-coach .tools {
  gap: 7px;
}
.recorder-coach .tools button {
  font-size: 11px;
  border-radius: 8px;
}
.recorder-coach > .primary {
  width: 100%;
  margin-top: 18px;
}
.recorder-timeline {
  padding: 16px;
  background: #0d0d10;
  border-radius: 14px;
}
.recorder-intro {
  align-items: flex-start;
  padding-top: 90px;
  background: #0007;
  backdrop-filter: blur(5px);
}
.recorder-intro .dialog {
  width: min(580px, calc(100% - 40px));
  overflow: visible;
  margin-left: 80px;
  border-radius: 24px;
  background: #121216;
}
.recorder-intro .dialog-header {
  border: 0;
  padding: 25px 30px 0;
}
.recorder-intro .dialog-header .eyebrow {
  display: none;
}
.recorder-intro .dialog-header h2 {
  font-size: 21px;
  line-height: 1.4;
}
.recorder-intro .dialog > form {
  padding: 14px 30px 25px;
}
.recorder-intro p {
  color: #a1a1aa;
  line-height: 1.8;
  font-size: 13px;
}
.intro-robot {
  position: absolute;
  left: -150px;
  top: 0;
  width: 145px;
  height: 180px;
  object-fit: contain;
}
.validation-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: #a1a1aa;
  font-size: 12px;
  margin: 24px 0;
}
.validation-summary span {
  display: flex;
  gap: 8px;
  align-items: center;
}
.validation-summary svg {
  width: 16px;
  height: 16px;
  color: #93c5fd;
}
.captured-output {
  background: #0004;
  border: 1px solid #ffffff12;
  padding: 18px;
  border-radius: 14px;
}
.captured-output h4 {
  margin: 0;
  font-size: 13px;
}
.captured-output pre {
  max-height: 340px;
  overflow: auto;
  background: transparent;
  border: 0;
  color: #c4b5fd;
}
.connect-platforms {
  display: flex;
  gap: 10px;
  margin: 28px 0 10px;
}
.connect-platforms span {
  border: 1px solid #ffffff16;
  padding: 12px 18px;
  border-radius: 9px;
  color: #a1a1aa;
  font-size: 12px;
}
.integration-backdrop .dialog {
  width: 800px;
  max-width: 100%;
}
.integration-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.integration-tabs button {
  display: flex;
  flex-direction: column;
  padding: 18px 8px;
  border-radius: 12px;
}
.integration-tabs button[aria-pressed="true"] {
  border-color: #a855f766;
  background: #a855f70d;
}
.integration-title {
  font-size: 22px;
  margin-bottom: 24px;
}
.integration-step {
  display: flex;
  gap: 15px;
  border: 1px solid #ffffff10;
  background: #ffffff02;
  border-radius: 14px;
  padding: 20px;
  margin: 12px 0;
}
.integration-step > b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  color: #c4b5fd;
  background: #8b5cf617;
  font-size: 12px;
}
.integration-step > div {
  flex: 1;
  min-width: 0;
}
.integration-step h3 {
  font-size: 14px;
  margin: 4px 0 10px;
}
.integration-step p {
  font-size: 12px;
  color: #a1a1aa;
  line-height: 1.8;
  margin: 0;
}
.integration-step label {
  font-size: 11px;
}
.integration-step input {
  font-size: 12px;
}
@media (min-width: 1100px) {
  .marketplace-column .flow-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1000px) {
  .header-profile,
  .header-runs {
    display: none !important;
  }
  .sidebar-toggle {
    display: flex;
  }
  .studio-header {
    gap: 14px;
    padding: 16px;
  }
  .navigation-open .studio-sidebar {
    display: flex;
    position: absolute;
    top: 75px;
    left: 12px;
    width: 250px;
    height: auto;
    max-height: 80dvh;
    border: 1px solid #ffffff20;
    border-radius: 12px;
    box-shadow: 0 20px 80px #000b;
  }
  .navigation-open .studio-sidebar .sidebar-brand,
  .navigation-open .studio-sidebar .sidebar-recents,
  .navigation-open .studio-sidebar .sidebar-bottom {
    display: none;
  }
  .navigation-open .content {
    display: block;
  }
  .recording-page .recorder {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}
@media (max-width: 720px) {
  .studio-header {
    flex-wrap: wrap;
    gap: 12px;
  }
  .studio-header > .brand {
    flex: 1;
  }
  .global-search {
    flex-basis: 100%;
    max-width: none;
    order: 5;
  }
  .studio-header .header-tools {
    flex: none;
  }
  .content {
    padding: 24px 16px 60px;
  }
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
  .flow-card-actions {
    grid-template-columns: 1fr 1fr;
  }
  .flow-card-actions button {
    font-size: 12px;
  }
  .builder-backdrop {
    padding: 8px;
  }
  .builder-backdrop .dialog {
    max-height: calc(100dvh - 16px);
  }
  .builder-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .builder-rail {
    grid-row: 1;
    display: flex;
    justify-content: space-between;
    border-left: 0;
    border-bottom: 1px solid #ffffff10;
    padding: 10px 18px;
  }
  .builder-rail li {
    padding: 0;
  }
  .builder-rail li > div,
  .builder-rail li::after {
    display: none;
  }
  .builder-content {
    padding: 24px 20px;
  }
  .builder-title h3 {
    font-size: 22px;
  }
  .login-options {
    grid-template-columns: 1fr;
  }
  .login-options .choice-card {
    min-height: 85px;
  }
  .builder-content .actions {
    justify-content: space-between;
    gap: 10px;
  }
  .recording-page .recorder {
    grid-template-columns: 1fr;
  }
  .recording-page .recorder > aside {
    display: grid;
    grid-template-columns: 1fr;
  }
  .recorder-intro {
    padding-top: 145px;
  }
  .recorder-intro .dialog {
    margin: 0;
    width: calc(100% - 24px);
  }
  .intro-robot {
    width: 85px;
    height: 110px;
    left: 20px;
    top: -107px;
  }
  .recorder-intro .dialog-header h2 {
    font-size: 18px;
  }
  .recorder-intro .actions {
    flex-wrap: wrap;
  }
  .auth-card {
    padding: 28px;
  }
  .integration-tabs {
    gap: 8px;
  }
  .integration-tabs button {
    font-size: 11px;
  }
  .integration-step {
    padding: 14px;
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }
}
.reference-hero {
  text-align: center;
  max-width: 1180px;
  margin: auto;
  padding: 85px 28px 35px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px 8px 8px;
  border: 1px solid #ffffff16;
  border-radius: 50px;
  background: #ffffff04;
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.hero-badge img {
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 50%;
  background: #3b82f617;
}
.reference-hero h1 {
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.065em;
  max-width: 1040px;
  margin: 30px auto 24px;
  font-weight: 720;
}
.reference-hero > p {
  color: #a1a1aa;
  font-size: 19px;
  line-height: 1.7;
  margin: 0 auto 28px;
}
.reference-hero > p strong {
  color: #e4e4e7;
  font-weight: 500;
}
.reference-hero .hero-links {
  justify-content: center;
  gap: 22px;
  margin-bottom: 44px;
}
.reference-hero .hero-links a {
  font-size: 13px;
}
.pattern-demo {
  padding: 20px;
  border-radius: 26px;
  background: radial-gradient(ellipse at 50% 50%, #3b82f619, transparent 75%);
}
.demo-browser {
  border: 1px solid #ffffff20;
  border-radius: 17px;
  overflow: hidden;
  background: linear-gradient(120deg, #12141b, #090b10);
  text-align: left;
  box-shadow:
    0 30px 100px #0008,
    0 0 80px #3b82f609;
}
.demo-chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  font-size: 10px;
  color: #52525b;
  border-bottom: 1px solid #ffffff0b;
}
.demo-chrome > span:nth-child(2) {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0003;
  border: 1px solid #ffffff08;
  padding: 7px 65px;
  border-radius: 6px;
  color: #a1a1aa;
}
.demo-chrome svg {
  width: 11px;
  height: 11px;
}
.demo-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 30px;
  padding: 36px;
}
.demo-website {
  padding-top: 8px;
}
.demo-site-name {
  display: block;
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 22px;
}
.demo-search {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  border: 1px solid #ffffff12;
  border-radius: 7px;
  color: #71717a;
  font-size: 11px;
  background: #ffffff03;
}
.demo-table {
  margin-top: 20px;
  font-size: 10px;
}
.demo-table > div {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 10px;
  padding: 12px 10px;
  border-bottom: 1px solid #ffffff09;
}
.demo-table b {
  color: #71717a;
  font-weight: 500;
}
.demo-table .demo-row {
  animation: demo-row 6s ease-in-out infinite;
  animation-delay: calc(var(--row) * 0.8s);
  border: 1px solid transparent;
  border-bottom-color: #ffffff09;
  border-radius: 5px;
}
.demo-label {
  display: block;
  color: #52525b;
  font-size: 9px;
  margin-top: 17px;
}
.demo-coach {
  border: 1px solid #ffffff12;
  border-radius: 18px;
  background: #15151b;
  padding: 23px;
  position: relative;
}
.demo-coach img {
  position: absolute;
  width: 86px;
  height: 100px;
  object-fit: contain;
  top: -45px;
  right: 15px;
}
.demo-coach h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 14px 0 20px;
}
.demo-coach > div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a1a1aa;
  font-size: 10px;
  margin: 14px 0;
}
.demo-coach > div span {
  color: #93c5fd;
  font-size: 9px;
  padding: 5px;
  border-radius: 6px;
  background: #3b82f616;
}
.demo-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  background: #ffffff02;
  border-top: 1px solid #ffffff0a;
  color: #71717a;
  font-size: 10px;
}
.demo-status i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #60a5fa;
  margin-right: 7px;
}
@keyframes demo-row {
  35%,
  65% {
    border-color: #3b82f64d;
    background: #3b82f60a;
  }
}
.reference-hero .intro-shortcuts {
  margin: 28px auto 0;
  gap: 12px;
}
.reference-hero .intro-shortcuts a {
  font-size: 11px;
  border-color: #ffffff12;
  padding: 10px 16px;
}
.reference-integrations {
  max-width: 1000px;
  margin: 45px auto 0;
  text-align: center;
  padding: 55px 20px 90px;
}
.reference-integrations h2,
.reference-section-title h2 {
  font-size: 44px;
  margin: 15px 0 30px;
}
.reference-integrations p {
  font-size: 13px;
  color: #71717a;
  line-height: 1.9;
  margin: 28px 0 0;
}
.integration-bridge {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.integration-bridge a {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #ffffff16;
  border-radius: 16px;
  padding: 15px 22px;
  background: #111116;
  font-size: 16px;
  color: #e4e4e7;
}
.reference-features {
  max-width: 1150px;
  margin: auto;
  padding: 0 25px;
}
.reference-section-title {
  text-align: center;
}
.reference-usecases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 40px 0;
}
.reference-usecases article {
  padding: 24px;
  background: linear-gradient(140deg, #14161cb8, #080a0f9e);
  border: 1px solid #ffffff16;
  border-radius: 18px;
}
.reference-usecases article > svg {
  color: #60a5fa;
  width: 23px;
  height: 23px;
  margin-bottom: 18px;
}
.reference-usecases h3 {
  font-size: 16px;
  margin: 0 0 12px;
}
.reference-usecases p {
  font-size: 12px;
  line-height: 1.8;
  color: #a1a1aa;
  margin: 0;
}
.reference-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 85px 30px;
  border-bottom: 1px solid #ffffff12;
}
.reference-feature-row h2 {
  font-size: 48px;
  line-height: 1.1;
  margin: 15px 0 22px;
}
.reference-feature-row h2 span {
  color: #60a5fa;
}
.reference-feature-row p {
  color: #a1a1aa;
  line-height: 1.8;
  font-size: 15px;
  max-width: 420px;
  margin-bottom: 25px;
}
.reference-feature-row a {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #93c5fd;
  font-size: 12px;
}
.profile-illustration {
  border: 1px solid #ffffff16;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(145deg, #14161cb8, #080a0f9e);
}
.profile-illustration h3 {
  font-size: 13px;
  margin: 0 0 20px;
}
.profile-illustration > div {
  display: flex;
  gap: 13px;
  align-items: center;
  border: 1px solid #ffffff0a;
  background: #ffffff03;
  padding: 16px;
  margin: 9px 0;
  border-radius: 13px;
}
.profile-illustration > div:first-of-type {
  border-color: #60a5fa40;
  background: #3b82f619;
}
.profile-illustration svg {
  width: 24px;
  height: 24px;
  color: #93c5fd;
}
.profile-illustration strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.profile-illustration small {
  display: block;
  font-size: 10px;
  color: #71717a;
  margin-top: 5px;
}
.profile-illustration b {
  margin-left: auto;
  color: #6ee7b7;
}
.profile-illustration > small {
  text-align: center;
  margin-top: 16px;
  font-size: 9px;
}
.reference-feature-row.reverse > div:first-child {
  grid-column: 2;
  grid-row: 1;
}
.reference-timeline {
  display: grid;
  gap: 10px;
}
.reference-timeline > div {
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid #ffffff12;
  background: #101014;
  padding: 18px;
  border-radius: 12px;
}
.reference-timeline span {
  color: #93c5fd;
  background: #3b82f61a;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 11px;
}
.reference-timeline strong {
  font-size: 12px;
  font-weight: 500;
}
.reference-timeline svg {
  margin-left: auto;
  color: #52525b;
  width: 15px;
}
.reference-community {
  text-align: center;
  padding: 120px 25px;
  background: radial-gradient(ellipse at 50% 55%, #8b5cf610, transparent 60%);
}
.reference-community h2 {
  font-size: 64px;
  line-height: 1.08;
  margin: 22px 0;
}
.reference-community h2 span {
  color: #71717a;
}
.reference-community p {
  color: #a1a1aa;
  font-size: 17px;
  line-height: 1.8;
}
.reference-community .hero-links {
  justify-content: center;
  margin-top: 30px;
}
@media (max-width: 850px) {
  .reference-usecases {
    grid-template-columns: 1fr 1fr;
  }
  .reference-feature-row {
    gap: 25px;
    padding: 55px 0;
  }
  .reference-feature-row h2 {
    font-size: 36px;
  }
  .demo-body {
    gap: 20px;
    padding: 24px;
  }
  .demo-coach img {
    width: 65px;
    height: 75px;
    top: -30px;
  }
  .demo-coach {
    padding: 18px;
  }
}
@media (max-width: 600px) {
  .reference-hero {
    padding: 50px 16px 20px;
  }
  .reference-hero h1 {
    font-size: 43px;
  }
  .reference-hero > p {
    font-size: 15px;
  }
  .reference-hero .hero-links {
    flex-direction: column;
    gap: 16px;
  }
  .pattern-demo {
    padding: 0;
  }
  .demo-body {
    grid-template-columns: 1fr;
    padding: 22px 16px;
  }
  .demo-chrome {
    padding: 10px;
  }
  .demo-chrome > span:nth-child(2) {
    padding: 6px 10px;
    font-size: 9px;
  }
  .demo-coach {
    margin-top: 16px;
  }
  .demo-status > span:last-child {
    display: none;
  }
  .demo-coach h3 {
    font-size: 18px;
  }
  .demo-coach > div {
    font-size: 11px;
  }
  .reference-integrations {
    padding: 45px 16px;
    margin: 0 auto;
  }
  .reference-integrations h2,
  .reference-section-title h2 {
    font-size: 32px;
  }
  .integration-bridge {
    gap: 8px;
  }
  .integration-bridge a {
    flex-direction: column;
    font-size: 12px;
    padding: 12px 17px;
    gap: 10px;
  }
  .reference-usecases {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 25px 0;
  }
  .reference-usecases article {
    padding: 22px;
  }
  .reference-feature-row {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 0;
  }
  .reference-feature-row.reverse > div:first-child {
    grid-column: auto;
    grid-row: auto;
  }
  .reference-community {
    padding: 65px 20px;
  }
  .reference-community h2 {
    font-size: 43px;
  }
  .reference-community p {
    font-size: 14px;
  }
  .reference-community .hero-links {
    flex-direction: column;
    gap: 18px;
  }
}
.onboarding-panel.platform-panel {
  display: block;
  max-width: 800px;
  margin: 0 auto;
}
.platform-panel .platform-choices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.platform-panel .choice-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  position: relative;
  padding: 20px;
  min-width: 0;
}
.platform-panel .choice-card input {
  position: absolute;
  top: 18px;
  right: 18px;
}
.platform-panel .choice-card .platform-symbol {
  margin-bottom: 12px;
}
@media (max-width: 600px) {
  .platform-panel .platform-choices {
    grid-template-columns: 1fr;
  }
  .platform-panel .choice-card {
    padding: 18px;
  }
}
.saved-flow-card {
  gap: 0;
}
.saved-flow-card .flow-replay-status {
  margin: 12px 0 3px;
}
.saved-flow-card .flow-profile-row {
  margin: 8px 0 16px;
}
.builder-content .actions {
  justify-content: flex-end;
}
.builder-content .actions > button:first-child:not(.primary) {
  margin-right: auto;
}
.builder-content input:not([type="checkbox"]):not([type="radio"]),
.builder-content select {
  background: #ffffff04;
}
.onboarding-wrap {
  max-width: 1100px;
}
.onboarding-panel:not(.terms-panel):not(.platform-panel) {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
}
.onboarding-panel:not(.terms-panel):not(.platform-panel) form {
  padding: 38px;
}
.onboarding-coach {
  justify-content: center;
  border-left: 1px solid #ffffff08;
  padding: 35px;
}
.onboarding-coach h2 {
  font-size: 27px;
}
.onboarding-coach p {
  line-height: 1.8;
  font-size: 12px;
}
@media (max-width: 720px) {
  .onboarding-panel:not(.terms-panel):not(.platform-panel) {
    grid-template-columns: 1fr;
  }
  .onboarding-panel:not(.terms-panel):not(.platform-panel) form {
    padding: 24px;
  }
  .onboarding-coach {
    display: none;
  }
}
/* The viewer stays central; the coach can move out of the way of any website. */
.loading-backdrop {
  padding: 12px;
}
.loading-backdrop .dialog {
  width: 100%;
}
.recording-page .recorder {
  display: block;
}
.recording-page .recorder > aside {
  display: contents;
}
.recording-page .browser-screen {
  width: min(100%, calc((100dvh - 380px) * 1.53846));
  margin: 0 auto;
  min-height: 0;
}
.recording-page .recorder-coach {
  position: fixed;
  z-index: 50;
  top: 82px;
  right: 22px;
  width: 315px;
  max-height: calc(100dvh - 120px);
  overflow: auto;
  box-shadow: 0 14px 55px #0008;
}
.coach-controls {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
  margin: -10px -10px 5px 0;
}
.coach-controls button {
  width: 26px;
  height: 26px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #71717a;
  font-size: 18px;
}
.coach-controls svg {
  width: 12px;
  height: 12px;
}
#move-coach {
  cursor: move;
  touch-action: none;
}
.recorder-coach.is-minimized > :not(.coach-controls):not(.coach-heading) {
  display: none;
}
.recorder-coach.is-minimized .coach-heading {
  margin-bottom: 0;
}
.recorder-coach.is-minimized .coach-heading p {
  display: none;
}
.recorder-coach.is-minimized .coach-heading img {
  width: 42px;
  height: 48px;
}
.recording-page .recorder-timeline {
  margin-top: 12px;
  padding: 14px 16px;
}
.recorder-timeline h3 {
  font-size: 11px;
  color: #a1a1aa;
  margin: 0 0 12px;
}
.recorder-timeline #steps {
  display: flex;
  gap: 10px;
  overflow: auto;
  max-height: 180px;
  padding-bottom: 6px;
}
.recorder-timeline .step {
  flex: 0 0 250px;
  margin: 0;
  font-size: 11px;
}
.recorder-timeline .step .small {
  font-size: 10px;
  padding: 5px 8px;
}
@media (max-width: 720px) {
  .recording-page .browser-screen {
    width: 100%;
  }
  .recording-page .recorder-coach {
    position: static;
    width: auto;
    max-height: none;
    margin-top: 12px;
  }
  #move-coach {
    display: none;
  }
  .recorder-timeline .step {
    flex-basis: 230px;
  }
}
