/*
 * FPV Design Studio styles
 * Scope: .fpvds
 * Override the custom properties on your page to match the FPV Club design system.
 */
.fpvds {
  --fpvds-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --fpvds-bg: #f4f6f8;
  --fpvds-surface: #ffffff;
  --fpvds-surface-soft: #f8fafb;
  --fpvds-surface-strong: #17202a;
  --fpvds-text: #17202a;
  --fpvds-muted: #64717e;
  --fpvds-line: #dce2e7;
  --fpvds-line-strong: #bdc8d2;
  --fpvds-accent: #e5522f;
  --fpvds-accent-dark: #b8381d;
  --fpvds-accent-soft: #fff0eb;
  --fpvds-focus: #1e6fba;
  --fpvds-confirmed: #1b7a4b;
  --fpvds-confirmed-soft: #eaf7f0;
  --fpvds-recommendation: #2563a8;
  --fpvds-recommendation-soft: #edf5ff;
  --fpvds-verify: #a35a00;
  --fpvds-verify-soft: #fff5df;
  --fpvds-conflict: #b3261e;
  --fpvds-conflict-soft: #fff0ef;
  --fpvds-radius-sm: 10px;
  --fpvds-radius: 16px;
  --fpvds-radius-lg: 24px;
  --fpvds-shadow: 0 12px 36px rgba(23, 32, 42, 0.08);
  --fpvds-shadow-soft: 0 4px 16px rgba(23, 32, 42, 0.06);
  --fpvds-max-width: 1560px;
  color: var(--fpvds-text);
  font-family: var(--fpvds-font);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

.fpvds [hidden] {
  display: none !important;
}

.fpvds button,
.fpvds input,
.fpvds select,
.fpvds textarea {
  font: inherit;
}

.fpvds button,
.fpvds select,
.fpvds input[type="radio"],
.fpvds input[type="checkbox"],
.fpvds summary,
.fpvds a {
  -webkit-tap-highlight-color: transparent;
}

.fpvds button,
.fpvds a,
.fpvds input,
.fpvds select,
.fpvds summary {
  outline: none;
}

.fpvds button:focus-visible,
.fpvds a:focus-visible,
.fpvds input:focus-visible,
.fpvds select:focus-visible,
.fpvds summary:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fpvds-focus) 30%, transparent);
  outline: 2px solid var(--fpvds-focus);
  outline-offset: 2px;
}

.fpvds h1,
.fpvds h2,
.fpvds h3,
.fpvds h4,
.fpvds p {
  margin-top: 0;
}

.fpvds h1,
.fpvds h2,
.fpvds h3 {
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.fpvds h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 4.7vw, 4.75rem);
  font-weight: 800;
}

.fpvds h2 {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.fpvds h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.fpvds-app {
  position: relative;
  overflow: clip;
  width: 100%;
  background: var(--fpvds-bg);
}

.fpvds-kicker {
  margin-bottom: 10px;
  color: var(--fpvds-accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fpvds-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.fpvds-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(30px, 6vw, 100px);
  min-height: min(720px, 88vh);
  padding: clamp(44px, 7vw, 110px) max(24px, calc((100vw - var(--fpvds-max-width)) / 2));
  color: #f7f8fa;
  background:
    radial-gradient(circle at 80% 20%, rgba(229, 82, 47, 0.22), transparent 35%),
    linear-gradient(145deg, #111820 0%, #202d39 100%);
}

.fpvds-hero__content > p:not(.fpvds-kicker) {
  max-width: 760px;
  margin-bottom: 30px;
  color: #cbd4dc;
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
}

.fpvds-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fpvds-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--fpvds-radius-sm);
  color: var(--fpvds-text);
  background: var(--fpvds-surface);
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.fpvds-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--fpvds-shadow-soft);
}

.fpvds-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.fpvds-button--primary {
  color: #fff;
  background: var(--fpvds-accent);
}

.fpvds-button--primary:hover {
  background: var(--fpvds-accent-dark);
}

.fpvds-button--secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.fpvds-button--ghost {
  border-color: var(--fpvds-line);
  background: transparent;
}

.fpvds-button--small {
  min-height: 42px;
  padding: 9px 14px;
  font-size: 0.9rem;
}

.fpvds-button--wide {
  width: 100%;
}

.fpvds-hero__visual {
  display: flex;
  min-height: 320px;
  align-items: center;
  justify-content: center;
  color: #f1f4f7;
}

.fpvds-drone {
  width: min(100%, 600px);
  filter: drop-shadow(0 28px 45px rgba(0, 0, 0, 0.3));
}

.fpvds-drone__props {
  color: var(--fpvds-accent);
  animation: fpvds-prop-pulse 2.8s ease-in-out infinite alternate;
}

.fpvds-restore {
  display: flex;
  max-width: var(--fpvds-max-width);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  margin: 20px auto 0;
  border: 1px solid var(--fpvds-line);
  border-radius: var(--fpvds-radius);
  background: var(--fpvds-surface);
  box-shadow: var(--fpvds-shadow-soft);
}

.fpvds-restore > div:first-child {
  display: grid;
  gap: 3px;
}

.fpvds-restore span {
  color: var(--fpvds-muted);
}

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

.fpvds-workspace {
  width: min(100%, var(--fpvds-max-width));
  padding: 28px 20px 80px;
  margin: 0 auto;
  scroll-margin-top: 20px;
}

.fpvds-projectbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid var(--fpvds-line);
  border-radius: 0 0 var(--fpvds-radius) var(--fpvds-radius);
  background: color-mix(in srgb, var(--fpvds-surface) 94%, transparent);
  box-shadow: var(--fpvds-shadow-soft);
  backdrop-filter: blur(16px);
}

.fpvds-projectbar__eyebrow {
  margin-bottom: 2px;
  color: var(--fpvds-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.fpvds-projectbar strong {
  font-size: clamp(0.9rem, 1.6vw, 1.08rem);
}

.fpvds-projectbar__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.fpvds-icon-button,
.fpvds-link-button {
  min-height: 42px;
  padding: 8px 11px;
  border: 0;
  border-radius: 8px;
  color: var(--fpvds-recommendation);
  background: transparent;
  font-weight: 750;
  cursor: pointer;
}

.fpvds-icon-button:hover,
.fpvds-link-button:hover {
  background: var(--fpvds-recommendation-soft);
}

.fpvds-link-button {
  min-height: 36px;
  padding: 5px 7px;
  font-size: 0.82rem;
}

.fpvds-modebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px;
  margin: 16px 0 8px;
  border: 1px solid var(--fpvds-line);
  border-radius: var(--fpvds-radius);
  background: var(--fpvds-surface);
}

.fpvds-modebar button {
  min-height: 42px;
  padding: 8px 14px;
  border: 0;
  border-radius: 9px;
  color: var(--fpvds-muted);
  background: transparent;
  font-weight: 750;
  cursor: pointer;
}

.fpvds-modebar button[aria-pressed="true"] {
  color: #fff;
  background: var(--fpvds-surface-strong);
}

.fpvds-modebar__note {
  margin-left: auto;
  color: var(--fpvds-muted);
  font-size: 0.84rem;
}

.fpvds-live {
  min-height: 44px;
  padding: 11px 14px;
  margin-bottom: 14px;
  border-left: 4px solid var(--fpvds-accent);
  border-radius: 0 var(--fpvds-radius-sm) var(--fpvds-radius-sm) 0;
  color: var(--fpvds-muted);
  background: var(--fpvds-accent-soft);
  font-size: 0.9rem;
}

.fpvds-studio {
  display: grid;
  grid-template-columns: minmax(290px, 330px) minmax(430px, 1fr) minmax(300px, 350px);
  align-items: start;
  gap: 14px;
}

.fpvds-panel,
.fpvds-dashboard,
.fpvds-checks,
.fpvds-next {
  border: 1px solid var(--fpvds-line);
  border-radius: var(--fpvds-radius-lg);
  background: var(--fpvds-surface);
  box-shadow: var(--fpvds-shadow-soft);
}

.fpvds-panel {
  min-width: 0;
}

.fpvds-panel--project {
  overflow: clip;
}

.fpvds-panel--map,
.fpvds-panel--result {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.fpvds-panel--map {
  min-height: 690px;
}

.fpvds-panel__heading,
.fpvds-section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.fpvds-guided-progress {
  padding: 16px 18px 8px;
  color: var(--fpvds-muted);
  font-size: 0.85rem;
}

.fpvds-progress {
  overflow: hidden;
  height: 5px;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--fpvds-line);
}

.fpvds-progress span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: var(--fpvds-accent);
  transition: width 250ms ease;
}

.fpvds-step {
  padding: 20px 18px 22px;
  border-top: 1px solid var(--fpvds-line);
  transition: background 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.fpvds[data-mode="learning"] .fpvds-step:not(.is-current) {
  opacity: 0.74;
}

.fpvds[data-mode="learning"] .fpvds-step.is-current {
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, var(--fpvds-accent-soft), var(--fpvds-surface) 45%);
  box-shadow: inset 4px 0 0 var(--fpvds-accent);
  opacity: 1;
}

.fpvds-step__heading {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.fpvds-step__heading > span {
  display: flex;
  flex: 0 0 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: var(--fpvds-accent);
  background: var(--fpvds-accent-soft);
  font-size: 0.77rem;
  font-weight: 850;
}

.fpvds-step__heading h2 {
  margin-bottom: 5px;
  font-size: 1.13rem;
}

.fpvds-step__heading p {
  margin-bottom: 0;
  color: var(--fpvds-muted);
  font-size: 0.84rem;
}

.fpvds fieldset {
  min-width: 0;
  padding: 0;
  margin: 0 0 18px;
  border: 0;
}

.fpvds legend,
.fpvds-field > span {
  display: block;
  margin-bottom: 8px;
  color: var(--fpvds-text);
  font-size: 0.82rem;
  font-weight: 750;
}

.fpvds-choice-grid {
  display: grid;
  gap: 8px;
}

.fpvds-choice-grid--missions {
  grid-template-columns: 1fr;
}

.fpvds-choice-grid--sizes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fpvds-choice-grid--inline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fpvds-choice,
.fpvds-profile {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.fpvds-choice input,
.fpvds-profile input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.fpvds-choice__body,
.fpvds-profile {
  min-height: 48px;
  border: 1px solid var(--fpvds-line);
  border-radius: var(--fpvds-radius-sm);
  background: var(--fpvds-surface-soft);
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.fpvds-choice__body {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
}

.fpvds-choice__body strong {
  font-size: 0.9rem;
}

.fpvds-choice__body small,
.fpvds-profile small {
  color: var(--fpvds-muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.fpvds-choice:hover .fpvds-choice__body,
.fpvds-profile:hover {
  transform: translateY(-1px);
  border-color: var(--fpvds-line-strong);
}

.fpvds-choice input:checked + .fpvds-choice__body,
.fpvds-profile:has(input:checked) {
  border-color: var(--fpvds-accent);
  background: var(--fpvds-accent-soft);
  box-shadow: inset 0 0 0 1px var(--fpvds-accent);
}

.fpvds-choice input:focus-visible + .fpvds-choice__body,
.fpvds-profile:has(input:focus-visible) {
  outline: 2px solid var(--fpvds-focus);
  outline-offset: 2px;
}

.fpvds-choice--size .fpvds-choice__body,
.fpvds-choice--small .fpvds-choice__body {
  align-content: center;
  justify-items: center;
  text-align: center;
}

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

.fpvds-form-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fpvds-field {
  display: block;
  min-width: 0;
  margin-bottom: 14px;
}

.fpvds-field input[type="number"],
.fpvds-field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--fpvds-line-strong);
  border-radius: 9px;
  color: var(--fpvds-text);
  background: var(--fpvds-surface);
}

.fpvds-field input[type="number"]:hover,
.fpvds-field select:hover {
  border-color: var(--fpvds-muted);
}

.fpvds-field small {
  display: block;
  margin-top: 6px;
  color: var(--fpvds-muted);
  font-size: 0.74rem;
}

.fpvds-help {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--fpvds-recommendation);
  background: var(--fpvds-recommendation-soft);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: help;
}

.fpvds-profile-grid {
  display: grid;
  gap: 8px;
}

.fpvds-profile {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
}

.fpvds-profile__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fpvds-profile__header span {
  color: var(--fpvds-accent);
  font-size: 0.78rem;
  font-weight: 850;
}

.fpvds-field--ratio input[type="range"] {
  width: 100%;
  accent-color: var(--fpvds-accent);
}

.fpvds-field--ratio > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.fpvds-field--ratio strong {
  color: var(--fpvds-accent);
}

.fpvds-equation {
  display: grid;
  gap: 6px;
  padding: 14px;
  margin: 8px 0 12px;
  border-radius: var(--fpvds-radius-sm);
  color: #fff;
  background: var(--fpvds-surface-strong);
  font-size: 0.82rem;
}

.fpvds-equation span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.fpvds-equation span + span {
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.fpvds-callout {
  padding: 12px 13px;
  margin-bottom: 0;
  border-radius: var(--fpvds-radius-sm);
  font-size: 0.78rem;
}

.fpvds-callout--info {
  color: #194e7f;
  background: var(--fpvds-recommendation-soft);
}

.fpvds-checkbox {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--fpvds-muted);
  font-size: 0.78rem;
  cursor: pointer;
}

.fpvds-checkbox input,
.fpvds-task-list input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--fpvds-accent);
}

.fpvds-verification {
  margin-bottom: 10px;
  border: 1px solid var(--fpvds-line);
  border-radius: var(--fpvds-radius-sm);
  background: var(--fpvds-surface-soft);
}

.fpvds-verification summary {
  min-height: 46px;
  padding: 12px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.fpvds-verification[open] summary {
  border-bottom: 1px solid var(--fpvds-line);
}

.fpvds-verification > .fpvds-form-grid {
  padding: 14px 14px 4px;
}

.fpvds-guided-actions {
  position: sticky;
  z-index: 5;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--fpvds-line);
  background: color-mix(in srgb, var(--fpvds-surface) 95%, transparent);
  backdrop-filter: blur(12px);
}

.fpvds[data-mode="quick"] .fpvds-guided-progress,
.fpvds[data-mode="quick"] .fpvds-guided-actions {
  display: none;
}

.fpvds-causal-wrap {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
}

.fpvds-causal-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 430px;
}

.fpvds-causal-fallback {
  margin: 10px 0 0;
  color: var(--fpvds-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.fpvds-causal-explain {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--fpvds-line);
  border-radius: var(--fpvds-radius-sm);
  background: var(--fpvds-line);
}

.fpvds-causal-explain > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  color: var(--fpvds-muted);
  background: var(--fpvds-surface);
  font-size: 0.76rem;
  line-height: 1.38;
}

.fpvds-causal-explain strong {
  color: var(--fpvds-text);
  font-size: 0.78rem;
}

.fpvds-causal-explain__focus {
  background: var(--fpvds-recommendation-soft) !important;
}

.fpvds-causal {
  display: block;
  width: 100%;
  max-height: 450px;
}

.fpvds-causal__edges {
  color: var(--fpvds-line-strong);
}

.fpvds-causal__edges path {
  transition: color 180ms ease, stroke-width 180ms ease, filter 180ms ease;
}

.fpvds-causal__node rect {
  fill: var(--fpvds-surface-soft);
  stroke: var(--fpvds-line-strong);
  stroke-width: 2;
  transition: fill 180ms ease, stroke 180ms ease, filter 180ms ease, transform 180ms ease;
}

.fpvds-causal__node text {
  fill: var(--fpvds-text);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.fpvds-causal__node[data-status="confirmed"] rect {
  fill: var(--fpvds-confirmed-soft);
  stroke: var(--fpvds-confirmed);
}

.fpvds-causal__node[data-status="recommendation"] rect {
  fill: var(--fpvds-recommendation-soft);
  stroke: var(--fpvds-recommendation);
}

.fpvds-causal__node[data-status="verify"] rect {
  fill: var(--fpvds-verify-soft);
  stroke: var(--fpvds-verify);
}

.fpvds-causal__node[data-status="conflict"] rect {
  fill: var(--fpvds-conflict-soft);
  stroke: var(--fpvds-conflict);
}

.fpvds-causal__node.is-affected rect {
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--fpvds-accent) 70%, transparent));
  stroke: var(--fpvds-accent);
  stroke-width: 4;
  transform: scale(1.03);
  transform-origin: center;
}

.fpvds-causal__edges path.is-affected {
  color: var(--fpvds-accent);
  stroke-width: 5;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--fpvds-accent) 50%, transparent));
}

.fpvds-affected-list {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--fpvds-radius-sm);
  background: var(--fpvds-accent-soft);
  font-size: 0.8rem;
}

.fpvds-affected-list span {
  color: var(--fpvds-muted);
}

.fpvds-working-point {
  margin-top: 12px;
}

.fpvds-empty-state {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px dashed var(--fpvds-line-strong);
  border-radius: var(--fpvds-radius-sm);
  background: var(--fpvds-surface-soft);
}

.fpvds-empty-state__icon {
  display: flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--fpvds-verify);
  background: var(--fpvds-verify-soft);
  font-weight: 900;
}

.fpvds-empty-state strong {
  display: block;
  margin-bottom: 4px;
}

.fpvds-empty-state p {
  margin-bottom: 0;
  color: var(--fpvds-muted);
  font-size: 0.8rem;
}

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

.fpvds-point-card > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--fpvds-line);
  border-radius: var(--fpvds-radius-sm);
  background: var(--fpvds-surface-soft);
}

.fpvds-point-card span:first-child {
  color: var(--fpvds-muted);
  font-size: 0.7rem;
}

.fpvds-point-card strong {
  font-size: 1.05rem;
}

.fpvds-result-stack {
  display: grid;
  gap: 9px;
}

.fpvds-result-mini {
  padding: 12px;
  border: 1px solid var(--fpvds-line);
  border-radius: var(--fpvds-radius-sm);
  background: var(--fpvds-surface-soft);
}

.fpvds-result-mini__head,
.fpvds-result-mini__foot,
.fpvds-dashboard-card__head,
.fpvds-dashboard-card__foot,
.fpvds-check-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fpvds-result-mini p {
  margin: 10px 0;
  font-size: 0.9rem;
  font-weight: 750;
}

.fpvds-status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.fpvds-status__icon {
  display: inline-flex;
  width: 19px;
  height: 19px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 0.75rem;
}

.fpvds-status--compact .fpvds-status__text {
  display: none;
}

.fpvds-status--confirmed {
  color: var(--fpvds-confirmed);
  background: var(--fpvds-confirmed-soft);
}

.fpvds-status--confirmed .fpvds-status__icon {
  background: var(--fpvds-confirmed);
}

.fpvds-status--recommendation {
  color: var(--fpvds-recommendation);
  background: var(--fpvds-recommendation-soft);
}

.fpvds-status--recommendation .fpvds-status__icon {
  background: var(--fpvds-recommendation);
}

.fpvds-status--verify {
  color: var(--fpvds-verify);
  background: var(--fpvds-verify-soft);
}

.fpvds-status--verify .fpvds-status__icon {
  background: var(--fpvds-verify);
}

.fpvds-status--conflict {
  color: var(--fpvds-conflict);
  background: var(--fpvds-conflict-soft);
}

.fpvds-status--conflict .fpvds-status__icon {
  background: var(--fpvds-conflict);
}

.fpvds-evidence {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid var(--fpvds-line-strong);
  border-radius: 5px;
  color: var(--fpvds-muted);
  background: var(--fpvds-surface);
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  line-height: 1.1;
}

.fpvds-evidence--unknown {
  border-style: dashed;
}

.fpvds-evidence--measured,
.fpvds-evidence--thrust-table {
  color: var(--fpvds-confirmed);
  border-color: color-mix(in srgb, var(--fpvds-confirmed) 45%, var(--fpvds-line));
  background: var(--fpvds-confirmed-soft);
}

.fpvds-evidence--estimate {
  color: var(--fpvds-verify);
  border-color: color-mix(in srgb, var(--fpvds-verify) 45%, var(--fpvds-line));
  background: var(--fpvds-verify-soft);
}

.fpvds-check-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 12px 0;
  margin: 12px 0;
  border-top: 1px solid var(--fpvds-line);
  border-bottom: 1px solid var(--fpvds-line);
}

.fpvds-check-summary > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  text-align: center;
}

.fpvds-check-summary span {
  color: var(--fpvds-muted);
  font-size: 0.64rem;
}

.fpvds-check-summary strong {
  font-size: 1.12rem;
}

.fpvds-dashboard,
.fpvds-checks,
.fpvds-next {
  padding: clamp(20px, 3vw, 34px);
  margin-top: 18px;
}

.fpvds-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.fpvds-dashboard-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 17px;
  border: 1px solid var(--fpvds-line);
  border-radius: var(--fpvds-radius);
  background: var(--fpvds-surface-soft);
}

.fpvds-dashboard-card__value {
  margin: 14px 0 8px;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-weight: 800;
}

.fpvds-dashboard-card > p:not(.fpvds-dashboard-card__value) {
  margin-bottom: 14px;
  color: var(--fpvds-muted);
  font-size: 0.82rem;
}

.fpvds-dashboard-card__foot {
  margin-top: auto;
}

.fpvds-checks__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 24px;
  margin-top: 20px;
}

.fpvds-check-list {
  display: grid;
  gap: 9px;
}

.fpvds-check-item {
  padding: 14px;
  border: 1px solid var(--fpvds-line);
  border-left-width: 4px;
  border-radius: var(--fpvds-radius-sm);
  background: var(--fpvds-surface-soft);
}

.fpvds-check-item--confirmed {
  border-left-color: var(--fpvds-confirmed);
}

.fpvds-check-item--recommendation {
  border-left-color: var(--fpvds-recommendation);
}

.fpvds-check-item--verify {
  border-left-color: var(--fpvds-verify);
}

.fpvds-check-item--conflict {
  border-left-color: var(--fpvds-conflict);
}

.fpvds-check-item > strong {
  display: block;
  margin: 10px 0 5px;
}

.fpvds-check-item p {
  margin-bottom: 9px;
  color: var(--fpvds-muted);
  font-size: 0.8rem;
}

.fpvds-check-item__severity {
  color: var(--fpvds-muted);
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.fpvds-task-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.fpvds-task-list label {
  display: flex;
  min-height: 46px;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--fpvds-line);
  border-radius: var(--fpvds-radius-sm);
  background: var(--fpvds-surface-soft);
  font-size: 0.82rem;
  cursor: pointer;
}

.fpvds-task-list input:checked + span {
  color: var(--fpvds-muted);
  text-decoration: line-through;
}

.fpvds-next {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1.45fr);
  gap: 24px;
  color: #f4f7f9;
  background: var(--fpvds-surface-strong);
}

.fpvds-next > div:first-child p:not(.fpvds-kicker) {
  color: #aebbc6;
}

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

.fpvds-next-card {
  display: grid;
  min-height: 100px;
  align-content: center;
  gap: 5px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--fpvds-radius);
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.fpvds-next-card:hover {
  transform: translateY(-2px);
  border-color: var(--fpvds-accent);
  background: rgba(255, 255, 255, 0.09);
}

.fpvds-next-card span {
  color: #adbac4;
  font-size: 0.78rem;
}

.fpvds-safety {
  padding: 18px 20px;
  margin-top: 18px;
  border: 1px solid color-mix(in srgb, var(--fpvds-verify) 35%, var(--fpvds-line));
  border-radius: var(--fpvds-radius);
  color: #744100;
  background: var(--fpvds-verify-soft);
  font-size: 0.84rem;
}

.fpvds-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 40px));
  padding: 0;
  border: 1px solid var(--fpvds-line);
  border-radius: var(--fpvds-radius-lg);
  color: var(--fpvds-text);
  background: var(--fpvds-surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.fpvds-dialog::backdrop {
  background: rgba(17, 24, 32, 0.64);
  backdrop-filter: blur(4px);
}

.fpvds-dialog__head {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--fpvds-line);
}

.fpvds-dialog__head button {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: var(--fpvds-text);
  background: var(--fpvds-surface-soft);
  font-size: 1.5rem;
  cursor: pointer;
}

.fpvds-dialog__body {
  overflow: auto;
  max-height: calc(100vh - 140px);
  padding: 20px;
}

.fpvds-dialog__body p,
.fpvds-dialog__body li {
  color: var(--fpvds-muted);
}

.fpvds-dialog__body .fpvds-evidence {
  color: inherit;
}

.fpvds-toast {
  position: fixed;
  z-index: 1000;
  right: 22px;
  bottom: 22px;
  max-width: min(440px, calc(100vw - 44px));
  padding: 14px 18px;
  border-radius: var(--fpvds-radius-sm);
  color: #fff;
  background: var(--fpvds-surface-strong);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
  font-size: 0.88rem;
  font-weight: 700;
}

@keyframes fpvds-prop-pulse {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

@media (max-width: 1279px) {
  .fpvds-studio {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  }

  .fpvds-panel--result {
    position: static;
    grid-column: 1 / -1;
  }

  .fpvds-result-stack {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .fpvds-check-summary {
    max-width: 620px;
  }
}

@media (max-width: 1023px) {
  .fpvds-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .fpvds-hero__visual {
    min-height: 240px;
  }

  .fpvds-studio {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  }

  .fpvds-panel--map {
    min-height: 620px;
  }

  .fpvds-dashboard__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fpvds-checks__layout,
  .fpvds-next {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .fpvds button,
  .fpvds a,
  .fpvds summary,
  .fpvds select,
  .fpvds input[type="number"] {
    min-height: 44px;
  }

  .fpvds-help {
    width: 44px;
    height: 44px;
    margin: -10px 0 -10px 4px;
  }

  .fpvds h1 {
    font-size: clamp(2.1rem, 12vw, 3.35rem);
  }

  .fpvds-hero {
    gap: 10px;
    padding: 48px 18px 32px;
  }

  .fpvds-hero__actions,
  .fpvds-hero__actions .fpvds-button {
    width: 100%;
  }

  .fpvds-hero__actions .fpvds-button {
    min-height: 54px;
  }

  .fpvds-hero__actions .fpvds-button span {
    display: none;
  }

  .fpvds-hero__visual {
    min-height: 190px;
  }

  .fpvds-restore {
    align-items: stretch;
    flex-direction: column;
    margin: 14px 12px 0;
  }

  .fpvds-restore__actions .fpvds-button {
    flex: 1 1 auto;
  }

  .fpvds-workspace {
    padding: 16px 10px 60px;
  }

  .fpvds-projectbar {
    align-items: flex-start;
    padding: 12px;
  }

  .fpvds-projectbar__actions .fpvds-icon-button {
    min-width: 44px;
    overflow: hidden;
    padding: 8px;
    font-size: 0;
  }

  .fpvds-projectbar__actions .fpvds-icon-button::first-letter {
    font-size: 0.78rem;
  }

  .fpvds-projectbar__actions [data-action="share"]::after { content: "↗"; font-size: 1rem; }
  .fpvds-projectbar__actions [data-action="download-json"]::after { content: "{}"; font-size: 0.78rem; }
  .fpvds-projectbar__actions [data-action="reset"]::after { content: "↺"; font-size: 1rem; }

  .fpvds-modebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .fpvds-modebar__note {
    grid-column: 1 / -1;
    margin: 4px 4px 0;
  }

  .fpvds-studio {
    grid-template-columns: 1fr;
  }

  .fpvds-panel--map,
  .fpvds-panel--result {
    position: static;
  }

  .fpvds-panel--map {
    min-height: auto;
    order: 2;
  }

  .fpvds-panel--project {
    order: 1;
  }

  .fpvds-panel--result {
    order: 3;
  }

  .fpvds-causal-wrap {
    display: block;
    padding: 8px 0 0;
  }

  .fpvds-causal-canvas,
  .fpvds-causal-fallback {
    display: none;
  }

  .fpvds-causal-explain {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .fpvds-result-stack {
    grid-template-columns: 1fr;
  }

  .fpvds-form-grid,
  .fpvds-form-grid--three {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .fpvds-dashboard__grid,
  .fpvds-next__links {
    grid-template-columns: 1fr;
  }

  .fpvds-checks__layout {
    gap: 18px;
  }

  .fpvds-point-card {
    grid-template-columns: 1fr;
  }

  .fpvds-dashboard,
  .fpvds-checks,
  .fpvds-next {
    padding: 19px 14px;
  }

  .fpvds-toast {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }
}

@media (max-width: 389px) {
  .fpvds-choice-grid--sizes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fpvds-projectbar__actions {
    gap: 2px;
  }

  .fpvds-panel--map,
  .fpvds-panel--result {
    padding: 16px 13px;
  }
}

/* FPV Club embedded layout v2: compact first screen and real progressive disclosure. */
.fpvds--embedded {
  --fpvds-bg: #0a131c;
  --fpvds-surface: #101c28;
  --fpvds-surface-soft: #152634;
  --fpvds-surface-strong: #1d303e;
  --fpvds-text: #edf4f8;
  --fpvds-muted: #a7b9c6;
  --fpvds-line: #243b4b;
  --fpvds-line-strong: #466477;
  --fpvds-accent: #45d0cf;
  --fpvds-accent-dark: #2ca8ad;
  --fpvds-accent-soft: #102e37;
  --fpvds-focus: #85e7ee;
  --fpvds-confirmed: #69d39a;
  --fpvds-confirmed-soft: #153a2d;
  --fpvds-recommendation: #82b9ff;
  --fpvds-recommendation-soft: #122f4d;
  --fpvds-verify: #ffc66b;
  --fpvds-verify-soft: #3c2c17;
  --fpvds-conflict: #ff8c86;
  --fpvds-conflict-soft: #401c20;
  --fpvds-shadow: 0 12px 36px rgba(0, 0, 0, 0.34);
  --fpvds-shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.24);
}

.fpvds--embedded .fpvds-app {
  overflow: visible;
  background: transparent;
}

.fpvds--embedded:not(.is-started) .fpvds-workspace {
  display: none;
}

.fpvds--embedded .fpvds-hero {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 210px);
  gap: clamp(18px, 4vw, 42px);
  min-height: 0;
  padding: clamp(24px, 4vw, 38px);
  margin-bottom: 16px;
  border: 1px solid var(--fpvds-line);
  border-radius: 20px;
  color: var(--fpvds-text);
  background:
    radial-gradient(circle at 92% 10%, rgba(69, 208, 207, 0.16), transparent 34%),
    linear-gradient(135deg, #122331 0%, #0c1722 100%);
  box-shadow: var(--fpvds-shadow-soft);
}

.fpvds--embedded .fpvds-hero h2 {
  max-width: 680px;
  margin-bottom: 10px;
  font-size: clamp(1.65rem, 3.4vw, 2.55rem);
}

.fpvds--embedded .fpvds-hero__content > p:not(.fpvds-kicker) {
  max-width: 680px;
  margin-bottom: 20px;
  color: var(--fpvds-muted);
  font-size: clamp(0.94rem, 1.4vw, 1.06rem);
}

.fpvds--embedded .fpvds-hero__visual {
  min-height: 0;
  color: var(--fpvds-text);
}

.fpvds--embedded .fpvds-drone {
  width: min(100%, 190px);
  filter: drop-shadow(0 14px 24px rgba(23, 32, 42, 0.14));
}

.fpvds--embedded .fpvds-button--secondary {
  color: var(--fpvds-text);
  border-color: var(--fpvds-line-strong);
  background: var(--fpvds-surface);
  backdrop-filter: none;
}

.fpvds--embedded.is-started .fpvds-hero {
  display: block;
  padding: 16px 20px;
}

.fpvds--embedded.is-started .fpvds-hero__visual,
.fpvds--embedded.is-started .fpvds-hero__actions {
  display: none;
}

.fpvds--embedded.is-started .fpvds-hero .fpvds-kicker {
  margin-bottom: 4px;
}

.fpvds--embedded.is-started .fpvds-hero h2 {
  margin-bottom: 5px;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
}

.fpvds--embedded.is-started .fpvds-hero__content > p:not(.fpvds-kicker) {
  max-width: 900px;
  margin-bottom: 0;
  font-size: 0.88rem;
}

.fpvds--embedded .fpvds-workspace {
  padding: 0 0 52px;
}

.fpvds--embedded .fpvds-projectbar {
  min-height: 66px;
  border-radius: var(--fpvds-radius);
}

.admin-bar .fpvds--embedded .fpvds-projectbar {
  top: 32px;
}

.fpvds--embedded .fpvds-modebar {
  padding: 7px;
  margin: 10px 0 7px;
  border-radius: 12px;
}

.fpvds--embedded .fpvds-modebar button {
  min-height: 38px;
  padding: 7px 12px;
}

.fpvds--embedded .fpvds-live {
  min-height: 0;
  padding: 9px 11px;
  margin-bottom: 8px;
  border-left-width: 3px;
  font-size: 0.8rem;
}

.fpvds--embedded .fpvds-safety-brief {
  padding: 9px 11px;
  margin: 0 0 10px;
  border: 1px solid color-mix(in srgb, var(--fpvds-verify) 28%, var(--fpvds-line));
  border-radius: 10px;
  color: var(--fpvds-verify);
  background: var(--fpvds-verify-soft);
  font-size: 0.78rem;
}

.fpvds--embedded .fpvds-panel,
.fpvds--embedded .fpvds-dashboard,
.fpvds--embedded .fpvds-checks,
.fpvds--embedded .fpvds-next {
  border-radius: 16px;
}

.fpvds--embedded .fpvds-safety {
  color: var(--fpvds-verify);
}

.fpvds--embedded[data-mode="learning"] .fpvds-step:not(.is-current) {
  display: none;
}

.fpvds--embedded[data-mode="learning"]:not([data-current-step="5"]) .fpvds-dashboard,
.fpvds--embedded[data-mode="learning"]:not([data-current-step="5"]) .fpvds-checks,
.fpvds--embedded[data-mode="learning"]:not([data-current-step="5"]) .fpvds-next,
.fpvds--embedded[data-mode="learning"]:not([data-current-step="5"]) .fpvds-safety {
  display: none;
}

.fpvds--embedded[data-mode="learning"] .fpvds-step.is-current {
  background: linear-gradient(90deg, var(--fpvds-accent-soft), var(--fpvds-surface) 28%);
}

@media (max-width: 1023px) {
  .fpvds--embedded .fpvds-studio {
    grid-template-columns: 1fr;
  }

  .fpvds--embedded .fpvds-panel--project { order: 1; }
  .fpvds--embedded .fpvds-panel--result { order: 2; }
  .fpvds--embedded .fpvds-panel--map { order: 3; }

  .fpvds--embedded[data-mode="learning"] .fpvds-panel--map {
    display: none;
  }

  .fpvds--embedded .fpvds-panel--map,
  .fpvds--embedded .fpvds-panel--result {
    position: static;
    min-height: 0;
  }

  .fpvds--embedded .fpvds-result-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fpvds--embedded .fpvds-choice-grid--missions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .fpvds--embedded .fpvds-hero {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .fpvds--embedded .fpvds-hero__visual {
    display: none;
  }

  .fpvds--embedded.is-started .fpvds-hero {
    padding: 13px 15px;
  }

  .fpvds--embedded .fpvds-workspace {
    padding: 0 0 44px;
  }

  .fpvds--embedded .fpvds-projectbar {
    top: 0;
  }

  .admin-bar .fpvds--embedded .fpvds-projectbar {
    top: 46px;
  }

  .fpvds--embedded .fpvds-result-stack,
  .fpvds--embedded .fpvds-choice-grid--missions {
    grid-template-columns: 1fr;
  }

  .fpvds--embedded .fpvds-projectbar__actions .fpvds-icon-button::first-letter {
    font-size: 0;
  }

  .fpvds--embedded .fpvds-guided-actions {
    padding: 10px 12px;
  }
}

/* Keep the embed readable against Astra's light/dark global typography rules. */
.fpvds--embedded h1,
.fpvds--embedded h2,
.fpvds--embedded h3,
.fpvds--embedded h4 {
  color: var(--fpvds-text) !important;
}

.fpvds--embedded .fpvds-kicker {
  color: var(--fpvds-accent) !important;
}

.fpvds--embedded .fpvds-hero__content > p:not(.fpvds-kicker),
.fpvds--embedded .fpvds-step__heading p,
.fpvds--embedded .fpvds-panel__subhead,
.fpvds--embedded .fpvds-causal-fallback,
.fpvds--embedded .fpvds-causal-explain > div,
.fpvds--embedded .fpvds-result-mini > p,
.fpvds--embedded .fpvds-modebar__note {
  color: var(--fpvds-muted) !important;
}

.fpvds--embedded .fpvds-causal-explain strong {
  color: var(--fpvds-text) !important;
}

.fpvds--embedded .fpvds-safety-brief {
  color: var(--fpvds-verify) !important;
}

.fpvds--embedded .fpvds-panel__subhead {
  margin: -2px 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.fpvds--embedded .fpvds-causal__stages text {
  fill: var(--fpvds-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.fpvds--embedded .fpvds-causal__edges {
  color: var(--fpvds-line-strong);
  stroke-width: 2.5;
}

.fpvds--embedded .fpvds-causal__edges path[data-kind="support"] {
  stroke-dasharray: 6 5;
  opacity: 0.78;
}

.fpvds--embedded .fpvds-causal__edges path.is-affected {
  stroke-dasharray: none;
  opacity: 1;
}

/* Catalog stays inside the existing Design Studio tokens; it is not a second UI system. */
.fpvds-catalog {
  display: none;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--fpvds-line, #d9e2ec);
  border-radius: var(--fpvds-radius, 16px);
  background: var(--fpvds-surface-soft, #f7fafc);
}
.fpvds--embedded.is-started[data-mode="quick"] .fpvds-catalog,
.fpvds--embedded.is-started[data-mode="learning"][data-current-step="2"] .fpvds-catalog {
  display: block;
}
.fpvds-catalog--wide {
  width: 100%;
  box-sizing: border-box;
}
.fpvds-catalog__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.fpvds-catalog__heading h3 {
  margin: 0;
  color: var(--fpvds-text);
  font-size: 1.15rem;
}
.fpvds-catalog__heading h2 {
  margin: 0;
  color: var(--fpvds-text);
  font-size: 1.24rem;
}
.fpvds-catalog__heading p:not(.fpvds-kicker) {
  max-width: 660px;
  margin: 7px 0 0;
  color: var(--fpvds-muted);
  font-size: .83rem;
  line-height: 1.45;
}
.fpvds-catalog__status {
  flex: 0 0 auto;
  color: var(--fpvds-recommendation, #2563a8);
  font-size: .76rem;
  font-weight: 800;
  text-align: right;
}
.fpvds-catalog__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.fpvds-catalog__field {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--fpvds-line, #d9e2ec);
  border-radius: var(--fpvds-control-radius, 11px);
  background: var(--fpvds-surface, #fff);
}
.fpvds-catalog__field > span { display: grid; gap: 2px; }
.fpvds-catalog__field strong { color: var(--fpvds-text); font-size: .82rem; }
.fpvds-catalog__field small { color: var(--fpvds-muted); font-size: .68rem; line-height: 1.3; }
.fpvds-catalog__field select {
  width: 100%;
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid var(--fpvds-line, #bdc8d2);
  border-radius: var(--fpvds-control-radius, 11px);
  color: var(--fpvds-text);
  background: var(--fpvds-surface, #fff);
  font: inherit;
  font-size: .8rem;
}
.fpvds-catalog__field select:focus-visible {
  outline: 3px solid var(--fpvds-focus, rgba(37, 99, 168, .28));
  outline-offset: 2px;
}
.fpvds-catalog__checks { margin-top: 13px; }
.fpvds-catalog__check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.fpvds-catalog__check {
  display: grid;
  gap: 3px;
  padding: 9px 11px;
  border-left: 3px solid var(--fpvds-muted, #64717e);
  border-radius: 8px;
  background: var(--fpvds-surface, #fff);
  color: var(--fpvds-muted);
  font-size: .72rem;
  line-height: 1.35;
}
.fpvds-catalog__check strong { color: var(--fpvds-text); font-size: .74rem; }
.fpvds-catalog__check--pass { border-left-color: var(--fpvds-confirmed, #1b7a4b); }
.fpvds-catalog__check--warning { border-left-color: var(--fpvds-verify, #a35a00); }
.fpvds-catalog__check--error { border-left-color: var(--fpvds-conflict, #b3261e); }
.fpvds-catalog__check--unknown { border-left-color: var(--fpvds-muted, #64717e); }
.fpvds-catalog__empty { margin: 0; color: var(--fpvds-muted); font-size: .76rem; }
.fpvds-catalog__sources { margin-top: 11px; }
.fpvds-catalog__source-line {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  padding-top: 9px;
  border-top: 1px solid var(--fpvds-line, #d9e2ec);
  color: var(--fpvds-muted);
  font-size: .7rem;
  line-height: 1.35;
}
.fpvds-catalog__source-line a { color: var(--fpvds-recommendation, #2563a8); }
.fpvds-manual-fields {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px dashed var(--fpvds-line, #bdc8d2);
  border-radius: var(--fpvds-control-radius, 11px);
  background: var(--fpvds-surface-soft, #f7fafc);
}
.fpvds-manual-fields summary {
  color: var(--fpvds-recommendation, #2563a8);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
}
.fpvds-manual-fields[open] summary { margin-bottom: 12px; }

@media (max-width: 620px) {
  .fpvds-catalog { padding: 14px; }
  .fpvds-catalog__heading { display: grid; gap: 7px; }
  .fpvds-catalog__status { text-align: left; }
  .fpvds-catalog__grid { grid-template-columns: 1fr; }
  .fpvds-catalog__check-list { grid-template-columns: 1fr; }
}

@media (min-width: 621px) and (max-width: 1040px) {
  .fpvds-catalog__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 621px) and (max-width: 760px) {
  .fpvds-catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fpvds-catalog__check-list { grid-template-columns: 1fr; }
}

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

@media print {
  .fpvds-hero,
  .fpvds-modebar,
  .fpvds-guided-actions,
  .fpvds-projectbar__actions,
  .fpvds-next,
  .fpvds-toast {
    display: none !important;
  }

  .fpvds-app,
  .fpvds-workspace {
    background: #fff;
  }

  .fpvds-projectbar,
  .fpvds-panel--map,
  .fpvds-panel--result {
    position: static;
  }

  .fpvds-studio,
  .fpvds-dashboard__grid,
  .fpvds-checks__layout {
    grid-template-columns: 1fr;
  }

  .fpvds-panel,
  .fpvds-dashboard,
  .fpvds-checks {
    break-inside: avoid;
    box-shadow: none;
  }
}
