/* Orbit Design Partner Program — light Pajamas theme */

:root {
  --purple-50: #f7f5ff;
  --purple-100: #f0ebff;
  --purple-400: #9b7feb;
  --purple-500: #7b4fea;
  --purple-600: #6e49cb;
  --purple-700: #380d75;
  --purple-800: #21084d;
  --purple-900: #1a0a2e;
  --orange-100: #fff4ed;
  --orange-400: #fd8c49;
  --orange-500: #fc6d26;
  --blue-100: #e9f3fc;
  --blue-500: #428fdc;
  --blue-600: #1f75cb;
  --green-100: #ecfeed;
  --green-500: #2da160;
  --green-600: #108548;
  --red-100: #fdd4cd;
  --red-500: #dd2b0e;
  --gray-50: #f5f5f7;
  --gray-100: #ececef;
  --gray-200: #dbdbde;
  --gray-300: #bfbfc3;
  --gray-400: #89888d;
  --gray-500: #737278;
  --gray-700: #404049;
  --gray-800: #2e2a35;
  --gray-900: #171321;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(23, 19, 33, 0.08);
  --shadow-md: 0 6px 24px rgba(23, 19, 33, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  color: var(--gray-800);
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: var(--gray-900);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav__orb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--orange-400), var(--purple-600) 70%);
  box-shadow: 0 0 0 3px var(--purple-100);
}

.nav__brand small {
  font-weight: 500;
  color: var(--gray-500);
  font-size: 12px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links a {
  color: var(--gray-700);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
}

.nav__links a:hover { color: var(--purple-600); }

.nav__links a.nav__cta {
  background: var(--purple-600);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.nav__links a.nav__cta:hover { background: var(--purple-500); color: #fff; }

@media (max-width: 720px) {
  .nav__links { gap: 16px; }
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--purple-50) 0%, #fff 100%);
  padding: 96px 0 84px;
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 58% 72% at 50% 46%, rgba(249, 248, 255, 0.94) 34%, rgba(249, 248, 255, 0) 78%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-100);
  border: 1px solid rgba(252, 109, 38, 0.35);
  color: #b74e12;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-500);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

h1 {
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--gray-900);
  max-width: 820px;
  margin: 0 auto 20px;
}

h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--orange-500) 20%, var(--purple-500) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  font-size: 19px;
  color: var(--gray-500);
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  transition: background 0.15s, transform 0.15s;
}

.btn--primary { background: var(--purple-600); color: #fff; }
.btn--primary:hover { background: var(--purple-500); transform: translateY(-1px); }
.btn--ghost {
  background: #fff;
  color: var(--purple-600);
  border: 1px solid var(--gray-200);
}
.btn--ghost:hover { border-color: var(--purple-400); background: var(--purple-50); }

/* ---------- Sections ---------- */

.section { padding: 80px 0; }
.section--light { background: var(--gray-50); }
.section--purple { background: var(--purple-900); color: #fff; }

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: var(--orange-500);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--gray-900);
  margin-bottom: 14px;
  line-height: 1.2;
}

.section--purple h2 { color: #fff; }

.section__lead {
  font-size: 17.5px;
  color: var(--gray-500);
  max-width: 720px;
  margin-bottom: 44px;
}

.section--purple .section__lead { color: var(--purple-100); }

/* ---------- Cards & grids ---------- */

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

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

.card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.card p { font-size: 15px; color: var(--gray-500); }

.agent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.agent-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
}

.agent-chip img { display: block; }

.agent-chip--open {
  border-style: dashed;
  color: var(--gray-500);
  font-weight: 500;
}

.card .prompt {
  display: block;
  margin-top: 14px;
  background: var(--gray-50);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--gray-700);
  font-style: italic;
}

/* ---------- Week strip ---------- */

.weeks {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 8px;
}

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

.week {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
}

.week__num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--purple-600);
  background: var(--purple-100);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.week h3 { font-size: 15px; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.week p { font-size: 13px; color: var(--gray-500); line-height: 1.5; }

/* ---------- Commitment two-column ---------- */

.commit-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}

.commit-card ul { list-style: none; margin-top: 14px; }

.commit-card li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  font-size: 15px;
  color: var(--gray-700);
}

.commit-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--green-600);
}

.commit-card--you li::before { color: var(--purple-600); }

/* ---------- Fit list ---------- */

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

.fit h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }

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

.chip {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-600);
  border: 1px solid rgba(16, 133, 72, 0.25);
}

.chip--no {
  background: var(--gray-50);
  color: var(--gray-500);
  border-color: var(--gray-200);
}

.chip-toggle {
  cursor: pointer;
  background: #fff;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  user-select: none;
  transition: border-color 0.15s, background 0.15s;
}

.chip-toggle input { display: none; }

.chip-toggle:hover { border-color: var(--purple-400); }

.chip-toggle.is-selected {
  background: var(--purple-100);
  color: var(--purple-700);
  border-color: var(--purple-500);
}

/* ---------- CTA band ---------- */

.cta-band { text-align: center; }

.cta-band p {
  color: var(--purple-100);
  max-width: 620px;
  margin: 0 auto 30px;
  font-size: 17px;
}

.cta-band .fineprint {
  font-size: 13.5px;
  color: var(--purple-400);
  margin-top: 18px;
  margin-bottom: 0;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--gray-100);
  padding: 32px 0;
  font-size: 13.5px;
  color: var(--gray-400);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer a { color: var(--gray-500); text-decoration: none; margin-left: 18px; }
.footer a:hover { color: var(--purple-600); }

/* ---------- Forms ---------- */

.form-wrapper {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 720px) { .form-wrapper { padding: 24px 18px; } }

.form-section { margin-bottom: 40px; }
.form-section:last-of-type { margin-bottom: 24px; }

.form-section__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--gray-900);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--purple-100);
  margin-bottom: 20px;
}

.form-section__hint {
  font-size: 14px;
  color: var(--gray-500);
  margin: -12px 0 20px;
}

.form-grid { display: grid; gap: 18px; }
.form-grid--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-grid--2 { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 18px; }
.form-grid .form-field { margin-bottom: 0; }

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 7px;
}

.form-required { color: var(--red-500); }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font-family);
  color: var(--gray-900);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px var(--purple-100);
}

.form-textarea { min-height: 110px; resize: vertical; }

.form-error {
  display: none;
  font-size: 12.5px;
  color: var(--red-500);
  margin-top: 5px;
}

.form-field.has-error .form-error { display: block; }
.form-field.has-error .form-input,
.form-field.has-error .form-select,
.form-field.has-error .form-textarea { border-color: var(--red-500); }

/* Radios and checkboxes */

.form-radio-group, .form-check-group { display: flex; flex-direction: column; gap: 9px; }

.form-radio, .form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--gray-700);
  cursor: pointer;
  padding: 10px 13px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, background 0.15s;
}

.form-radio:hover, .form-check:hover { border-color: var(--purple-400); }

.form-radio input, .form-check input {
  accent-color: var(--purple-600);
  margin-top: 3px;
  flex-shrink: 0;
}

.form-radio.is-checked, .form-check.is-checked {
  border-color: var(--purple-500);
  background: var(--purple-50);
}

.form-check__desc { display: block; font-size: 12.5px; color: var(--gray-400); margin-top: 2px; }

/* Slot grid */

.slot-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

@media (max-width: 900px) { .slot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .slot-grid { grid-template-columns: 1fr; } }

.slot-grid .form-radio { flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 8px; }
.slot-grid .form-radio input { margin: 0 0 4px; }
.slot-grid .slot-day { font-weight: 700; font-size: 14px; color: var(--gray-900); }
.slot-grid .slot-time { font-size: 12.5px; color: var(--gray-500); }

/* Inline notice */

.form-notice {
  display: none;
  background: var(--blue-100);
  border: 1px solid rgba(31, 117, 203, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--blue-600);
  margin-top: 12px;
}

.form-notice.is-visible { display: block; }

/* Use case counter */

.uc-counter {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-500);
  margin-bottom: 14px;
}

.uc-counter.is-met { background: var(--green-100); color: var(--green-600); }

.custom-uc { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }

/* Submit */

.form-submit { text-align: center; margin-top: 8px; }

.form-submit .btn { width: 100%; padding: 15px; font-size: 16.5px; }

.form-submit__note { font-size: 13px; color: var(--gray-400); margin-top: 12px; }

.form-toperror {
  display: none;
  background: var(--red-100);
  border: 1px solid rgba(221, 43, 14, 0.35);
  color: #a02000;
  font-size: 14px;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 18px;
}

.form-toperror.is-visible { display: block; }

/* Success panel */

.success {
  display: none;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  box-shadow: var(--shadow-md);
}

.success.is-visible { display: block; }

.success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-600);
  font-size: 30px;
  line-height: 64px;
  margin: 0 auto 22px;
}

.success h2 { margin-bottom: 12px; }

.success p { color: var(--gray-500); font-size: 15.5px; margin-bottom: 10px; }

.success ol {
  text-align: left;
  max-width: 480px;
  margin: 22px auto;
  padding-left: 22px;
  color: var(--gray-700);
  font-size: 15px;
}

.success ol li { margin-bottom: 9px; }

/* ---------- Page header (subpages) ---------- */

.page-header {
  background: linear-gradient(180deg, var(--purple-50) 0%, #fff 100%);
  padding: 60px 0 44px;
  text-align: center;
}

.page-header h1 { font-size: clamp(30px, 4vw, 42px); }

.page-header p { color: var(--gray-500); font-size: 17px; max-width: 640px; margin: 14px auto 0; }

/* ---------- Resource cards ---------- */

.resource-card {
  display: flex;
  flex-direction: column;
}

.resource-card__tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--purple-600);
  background: var(--purple-100);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.resource-card p { flex: 1; margin-bottom: 18px; }

.resource-card__links {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: -6px 0 18px;
  font-size: 13px;
}

.resource-card__links a {
  color: var(--purple-600);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.resource-card__links a:hover { text-decoration: underline; }

.install-block {
  background: #1a1630;
  border-radius: 8px;
  padding: 12px 14px;
  margin: -4px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.install-block__label {
  font-size: 12px;
  color: #8a87a0;
}

.install-block__label code { color: #a989f5; font-size: 11.5px; }

.install-block > code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.6;
  color: #e8e6f0;
  overflow-wrap: anywhere;
}

.copy-btn {
  align-self: flex-start;
  border: 1px solid #3a3558;
  background: #221e3a;
  color: #e8e6f0;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.copy-btn:hover { border-color: #a989f5; }

.resource-card__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.resource-card__actions .btn { padding: 9px 18px; font-size: 14px; }

.doclinks { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

.doclink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 12px 18px;
  text-decoration: none;
  color: var(--gray-800);
  font-size: 14.5px;
  font-weight: 600;
}

.doclink:hover { border-color: var(--purple-400); background: var(--purple-50); }

.doclink span { color: var(--gray-400); font-weight: 400; font-size: 13px; }

/* ---------- Step card visuals (looping, 9s cycle) ---------- */

.viz { margin: 2px 0 18px; }

/* Onboard: settings toggle -> indexing -> live */
.viz-setting {
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--gray-50);
}

.viz-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
}

.viz-toggle {
  width: 34px; height: 20px;
  border-radius: 999px;
  background: var(--gray-200);
  position: relative;
  flex-shrink: 0;
  animation: vtOn 9s infinite;
}

.viz-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
  animation: vtKnob 9s infinite;
}

@keyframes vtOn { 0%, 8% { background: var(--gray-200); } 12%, 96% { background: var(--green-500); } 100% { background: var(--gray-200); } }
@keyframes vtKnob { 0%, 8% { left: 2px; } 12%, 96% { left: 16px; } 100% { left: 2px; } }

.viz-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--gray-100);
  margin: 12px 0 10px;
  overflow: hidden;
}

.viz-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange-500), var(--purple-500));
  animation: vFill 9s infinite;
}

@keyframes vFill { 0%, 12% { width: 0; } 55%, 96% { width: 100%; } 100% { width: 0; } }

.viz-status {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green-600);
  opacity: 0;
  animation: vs2 9s infinite;
}

/* Terminal mock (orbit-story style) */
.viz-term {
  background: #1a1630;
  border: 1px solid #2e2a48;
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
}

.viz-term__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid #2e2a48;
}

.viz-term__dot { width: 9px; height: 9px; border-radius: 50%; }
.viz-term__dot--r { background: #f46262; }
.viz-term__dot--y { background: #febc2e; }
.viz-term__dot--g { background: #52cc80; }

.viz-term__tab { margin-left: 8px; font-size: 10.5px; color: #8a87a0; letter-spacing: 0.4px; }

.viz-term__body {
  padding: 12px 14px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  line-height: 1.8;
  color: #e8e6f0;
  min-height: 96px;
}

.viz-line { display: flex; gap: 7px; white-space: nowrap; overflow: hidden; }
.viz-line .prompt-mark { color: #8a87a0; }

.viz-type {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  vertical-align: bottom;
  border-right: 1px solid #a989f5;
  animation: vType 9s infinite;
}

@keyframes vType { 0%, 4% { width: 0; } 30%, 96% { width: var(--w); } 100% { width: 0; } }

/* sequenced line slots */
.vspin { color: #8a87a0; opacity: 0; animation: vspin 9s infinite; }
@keyframes vspin { 0%, 34% { opacity: 0; } 38%, 56% { opacity: 1; } 60%, 100% { opacity: 0; } }

.vs2 { opacity: 0; animation: vs2 9s infinite; }
@keyframes vs2 { 0%, 58% { opacity: 0; } 63%, 96% { opacity: 1; } 100% { opacity: 0; } }

.vs3 { opacity: 0; animation: vs3 9s infinite; }
@keyframes vs3 { 0%, 68% { opacity: 0; } 73%, 96% { opacity: 1; } 100% { opacity: 0; } }

/* A/B bars */
.viz-bar { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #8a87a0; }
.viz-bar b { color: #e8e6f0; font-weight: 600; width: 96px; flex-shrink: 0; }
.viz-bar em { font-style: normal; width: 46px; text-align: right; }
.viz-track { flex: 1; height: 7px; border-radius: 999px; background: #221e3a; overflow: hidden; }
.viz-fill { display: block; height: 100%; border-radius: 999px; }
.viz-fill--a { background: #52cc80; width: 0; animation: vfa 9s infinite; }
.viz-fill--b { background: #5a5770; width: 0; animation: vfb 9s infinite; }
@keyframes vfa { 0%, 38% { width: 0; } 46%, 96% { width: 16%; } 100% { width: 0; } }
@keyframes vfb { 0%, 38% { width: 0; } 62%, 96% { width: 88%; } 100% { width: 0; } }

@media (prefers-reduced-motion: reduce) {
  .viz * , .viz-toggle, .viz-toggle::after { animation: none !important; }
  .viz-toggle { background: var(--green-500); }
  .viz-toggle::after { left: 16px; }
  .viz-progress span { width: 100%; }
  .viz-status, .vs2, .vs3 { opacity: 1; }
  .vspin { opacity: 0; }
  .viz-type { width: var(--w); }
  .viz-fill--a { width: 16%; }
  .viz-fill--b { width: 88%; }
}

/* ---------- Document modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(23, 19, 33, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay[hidden] { display: none; }

.modal {
  width: min(880px, 100%);
  height: min(88vh, 1000px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(23, 19, 33, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
}

.modal__title { font-weight: 700; font-size: 16px; color: var(--gray-900); }

.modal__actions { display: flex; align-items: center; gap: 10px; }

.modal__actions .btn { padding: 8px 16px; font-size: 13.5px; }

.modal__close {
  border: none;
  background: var(--gray-50);
  color: var(--gray-500);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
}

.modal__close:hover { background: var(--gray-100); color: var(--gray-900); }

.modal__frame { flex: 1; width: 100%; border: none; }
