.ept-start-policy {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.ept-start-policy__item {
  background: var(--ept-surface-soft);
  border: 1px solid var(--ept-border);
  border-radius: 14px;
  padding: 11px 12px;
}

.ept-start-policy__item strong,
.ept-start-policy__item span {
  display: block;
}

.ept-start-policy__item strong {
  font-size: 0.84rem;
}

.ept-start-policy__item span {
  color: var(--ept-muted);
  font-size: 0.76rem;
  margin-top: 3px;
}

.ept-dropzone[role="button"] {
  cursor: pointer;
}

.ept-dropzone.is-validating {
  border-color: var(--ept-primary);
  box-shadow: 0 12px 30px rgba(23, 105, 255, 0.12);
}

.ept-dropzone.is-invalid {
  background: var(--ept-error-bg);
  border-color: var(--ept-error-border);
}

.ept-dropzone.is-ready {
  background: var(--ept-success-bg);
  border-color: var(--ept-success-border);
}

.ept-start-state {
  color: var(--ept-text);
  font-weight: 850;
  margin: 2px 0 6px;
}

.ept-start-detail {
  color: var(--ept-muted);
  margin: 0 0 16px;
  max-width: 620px;
}

.ept-start-file-summary {
  align-items: center;
  background: #fff;
  border: 1px solid var(--ept-border);
  border-radius: 14px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 14px;
  padding: 9px 12px;
}

.ept-start-file-summary strong {
  max-width: min(420px, 72vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ept-start-file-summary span {
  color: var(--ept-muted);
  font-size: 0.84rem;
}

.ept-validation-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  width: 100%;
}

.ept-validation-item {
  align-items: center;
  background: var(--ept-surface-soft);
  border: 1px solid var(--ept-border);
  border-radius: 12px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
  padding: 8px 10px;
}

.ept-validation-item span,
.ept-validation-item strong {
  font-size: 0.76rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ept-validation-item strong {
  text-transform: uppercase;
}

.ept-validation-item.is-pass {
  background: var(--ept-success-bg);
  border-color: var(--ept-success-border);
  color: var(--ept-success-text);
}

.ept-validation-item.is-fail {
  background: var(--ept-error-bg);
  border-color: var(--ept-error-border);
  color: var(--ept-error-text);
}

.ept-validation-item.is-warning {
  background: var(--ept-warning-bg);
  border-color: var(--ept-warning-border);
  color: var(--ept-warning-text);
}

@media (max-width: 820px) {
  .ept-start-policy,
  .ept-validation-list {
    grid-template-columns: 1fr;
  }
}

/* START-2 — Shared Start Validation State Design Parity.
 * Premium shared validation feedback for the production Start upload surface.
 * This remains shared start styling; tools only provide content/config.
 */
.ept-bench.ept-mode-production .ept-start-final .ept-start-upload-feedback {
  align-items: center;
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(191, 219, 254, 0.70) !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.055) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin: 18px auto 0 !important;
  max-width: 720px !important;
  padding: 15px 18px 16px !important;
  position: relative !important;
  width: min(100%, 720px) !important;
  z-index: 1 !important;
}

.ept-bench.ept-mode-production .ept-start-final .ept-start-upload-feedback::before {
  align-items: center !important;
  background: #eff6ff !important;
  border: 1px solid #dbeafe !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.10) !important;
  color: #2563eb !important;
  content: "PDF" !important;
  display: inline-flex !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  height: 34px !important;
  justify-content: center !important;
  letter-spacing: -0.02em !important;
  line-height: 1 !important;
  margin-bottom: 2px !important;
  width: 44px !important;
}

.ept-bench.ept-mode-production .ept-flow-start.is-dragover {
  border-color: rgba(37, 99, 235, 0.92) !important;
  box-shadow:
    0 30px 96px rgba(37, 99, 235, 0.18),
    inset 0 0 0 2px rgba(37, 99, 235, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;
}

.ept-bench.ept-mode-production .ept-flow-start.is-validating .ept-start-upload-feedback {
  border-color: rgba(37, 99, 235, 0.78) !important;
  background: linear-gradient(180deg, rgba(239,246,255,0.92), rgba(255,255,255,0.82)) !important;
}

.ept-bench.ept-mode-production .ept-flow-start.is-validating .ept-start-upload-feedback::before {
  animation: eptStartValidationPulse 1.15s ease-in-out infinite;
  content: "•••" !important;
}

.ept-bench.ept-mode-production .ept-flow-start.is-ready .ept-start-upload-feedback,
.ept-bench.ept-mode-production .ept-flow-start.is-warning .ept-start-upload-feedback {
  border-color: rgba(34, 197, 94, 0.44) !important;
  background: linear-gradient(180deg, rgba(240,253,244,0.90), rgba(255,255,255,0.84)) !important;
}

.ept-bench.ept-mode-production .ept-flow-start.is-ready .ept-start-upload-feedback::before {
  background: #dcfce7 !important;
  border-color: #bbf7d0 !important;
  color: #15803d !important;
  content: "✓" !important;
  font-size: 16px !important;
}

.ept-bench.ept-mode-production .ept-flow-start.is-warning .ept-start-upload-feedback {
  border-color: rgba(245, 158, 11, 0.48) !important;
  background: linear-gradient(180deg, rgba(255,251,235,0.92), rgba(255,255,255,0.84)) !important;
}

.ept-bench.ept-mode-production .ept-flow-start.is-warning .ept-start-upload-feedback::before {
  background: #fef3c7 !important;
  border-color: #fde68a !important;
  color: #b45309 !important;
  content: "!" !important;
  font-size: 16px !important;
}

.ept-bench.ept-mode-production .ept-flow-start.is-invalid .ept-start-upload-feedback {
  border-color: rgba(239, 68, 68, 0.48) !important;
  background: linear-gradient(180deg, rgba(254,242,242,0.92), rgba(255,255,255,0.84)) !important;
}

.ept-bench.ept-mode-production .ept-flow-start.is-invalid .ept-start-upload-feedback::before {
  background: #fee2e2 !important;
  border-color: #fecaca !important;
  color: #b91c1c !important;
  content: "!" !important;
  font-size: 16px !important;
}

.ept-bench.ept-mode-production .ept-start-final .ept-start-state {
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.28 !important;
  margin: 0 !important;
  max-width: 620px !important;
}

.ept-bench.ept-mode-production .ept-start-final .ept-start-detail {
  color: #64748b !important;
  font-size: 12.8px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  margin: 0 !important;
  max-width: 620px !important;
}

.ept-bench.ept-mode-production .ept-start-final .ept-start-file-summary {
  background: rgba(255, 255, 255, 0.90) !important;
  border: 1px solid rgba(203, 213, 225, 0.76) !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05) !important;
  gap: 7px !important;
  margin: 4px 0 0 !important;
  padding: 7px 10px !important;
}

.ept-bench.ept-mode-production .ept-start-final .ept-start-file-summary strong {
  color: #0f172a !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  max-width: min(360px, 62vw) !important;
}

.ept-bench.ept-mode-production .ept-start-final .ept-start-file-summary span {
  color: #64748b !important;
  font-size: 11.5px !important;
  font-weight: 750 !important;
}

.ept-bench.ept-mode-production .ept-start-final .ept-validation-list {
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  margin: 7px 0 0 !important;
  max-width: 640px !important;
  width: 100% !important;
}

.ept-bench.ept-mode-production .ept-start-final .ept-validation-list[hidden] {
  display: none !important;
}

.ept-bench.ept-mode-production .ept-start-final .ept-validation-item {
  align-items: center !important;
  background: rgba(248, 250, 252, 0.86) !important;
  border: 1px solid rgba(226, 232, 240, 0.92) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  color: #475569 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  justify-content: center !important;
  min-height: 54px !important;
  padding: 8px 9px !important;
  text-align: center !important;
}

.ept-bench.ept-mode-production .ept-start-final .ept-validation-item__label,
.ept-bench.ept-mode-production .ept-start-final .ept-validation-item__status {
  display: block !important;
  line-height: 1.05 !important;
  overflow-wrap: anywhere !important;
}

.ept-bench.ept-mode-production .ept-start-final .ept-validation-item__label {
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.ept-bench.ept-mode-production .ept-start-final .ept-validation-item__status {
  color: #334155 !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: .035em !important;
  text-transform: uppercase !important;
}

.ept-bench.ept-mode-production .ept-start-final .ept-validation-item.is-pass {
  background: rgba(240, 253, 244, 0.90) !important;
  border-color: rgba(187, 247, 208, 0.92) !important;
}

.ept-bench.ept-mode-production .ept-start-final .ept-validation-item.is-pass .ept-validation-item__status {
  color: #15803d !important;
}

.ept-bench.ept-mode-production .ept-start-final .ept-validation-item.is-warning,
.ept-bench.ept-mode-production .ept-start-final .ept-validation-item.is-pending {
  background: rgba(255, 251, 235, 0.88) !important;
  border-color: rgba(253, 230, 138, 0.92) !important;
}

.ept-bench.ept-mode-production .ept-start-final .ept-validation-item.is-warning .ept-validation-item__status,
.ept-bench.ept-mode-production .ept-start-final .ept-validation-item.is-pending .ept-validation-item__status {
  color: #b45309 !important;
}

.ept-bench.ept-mode-production .ept-start-final .ept-validation-item.is-fail {
  background: rgba(254, 242, 242, 0.88) !important;
  border-color: rgba(254, 202, 202, 0.96) !important;
}

.ept-bench.ept-mode-production .ept-start-final .ept-validation-item.is-fail .ept-validation-item__status {
  color: #b91c1c !important;
}

@keyframes eptStartValidationPulse {
  0%, 100% { opacity: .76; transform: scale(.98); }
  50% { opacity: 1; transform: scale(1.04); }
}

@media (max-width: 760px) {
  .ept-bench.ept-mode-production .ept-start-final .ept-start-upload-feedback {
    border-radius: 18px !important;
    margin-top: 14px !important;
    padding: 13px 12px 14px !important;
  }

  .ept-bench.ept-mode-production .ept-start-final .ept-validation-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 420px) {
  .ept-bench.ept-mode-production .ept-start-final .ept-validation-list {
    grid-template-columns: 1fr !important;
  }

  .ept-bench.ept-mode-production .ept-start-final .ept-start-file-summary {
    align-items: center !important;
    border-radius: 16px !important;
    flex-direction: column !important;
  }
}

/* START-4 — Shared Start Responsive QA + Final Polish.
 * Final responsive polish for the shared start surface. Keeps the minimal
 * idle design from START-2.1/START-3.1 while making validation, drag/drop,
 * keyboard focus, long filenames and mobile layout production-safe.
 */
.ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-shell {
  width: min(1120px, calc(100vw - 36px)) !important;
  max-width: min(1120px, calc(100vw - 36px)) !important;
}

.ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-flow-start {
  isolation: isolate !important;
}

.ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-flow-start h3,
.ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-flow-start p,
.ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-flow-benefit b,
.ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-flow-benefit span {
  overflow-wrap: anywhere !important;
}

.ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-start-file-summary,
.ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-validation-list,
.ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-start-upload-feedback {
  max-width: min(100%, 680px) !important;
}

.ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-start-file-summary strong {
  max-width: min(430px, 74vw) !important;
}

.ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-validation-item {
  min-width: 0 !important;
}

.ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-flow-start[data-ept-dropzone]:focus-visible {
  outline: 0 !important;
}

@media (max-width: 980px) {
  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-shell {
    width: min(100%, calc(100vw - 28px)) !important;
    max-width: min(100%, calc(100vw - 28px)) !important;
    margin-top: 18px !important;
    padding: 18px !important;
    border-radius: 28px !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-flow-start {
    min-height: 520px !important;
    padding: 58px 24px 42px !important;
    border-radius: 28px !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-flow-start h3 {
    font-size: clamp(30px, 5vw, 40px) !important;
    max-width: 680px !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-flow-start p {
    max-width: 600px !important;
  }
}

@media (max-width: 760px) {
  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-shell {
    width: min(100%, calc(100vw - 20px)) !important;
    max-width: min(100%, calc(100vw - 20px)) !important;
    margin-top: 12px !important;
    padding: 14px !important;
    border-radius: 24px !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-flow-start {
    min-height: 0 !important;
    padding: 42px 18px 26px !important;
    border-radius: 24px !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-flow-start::before {
    height: 118px !important;
    top: 12px !important;
    width: min(360px, 80%) !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-flow-start__orbital {
    height: 96px !important;
    margin-bottom: 16px !important;
    width: 128px !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-flow-start__sheet {
    height: 48px !important;
    width: 76px !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-flow-start__sheet--left {
    transform: translate(-45px, -50%) rotate(-10deg) !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-flow-start__sheet--right {
    transform: translate(45px, -50%) rotate(10deg) !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-flow-start__hero-icon {
    border-radius: 20px !important;
    font-size: 22px !important;
    height: 70px !important;
    width: 70px !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-flow-start__hero-icon::after {
    bottom: -7px !important;
    height: 28px !important;
    min-width: 28px !important;
    right: -7px !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-local-pill {
    margin-bottom: 16px !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-flow-start h3 {
    font-size: clamp(26px, 8vw, 34px) !important;
    line-height: 1.08 !important;
    margin-bottom: 9px !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-flow-start p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 18px !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-start-cta,
  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final button.ept-start-cta {
    min-height: 54px !important;
    min-width: min(100%, 244px) !important;
    padding: 14px 22px !important;
    width: min(100%, 244px) !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-flow-benefits {
    gap: 9px !important;
    margin-top: 18px !important;
    max-width: 420px !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-flow-benefit {
    min-height: 58px !important;
    padding: 10px 12px !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-start-upload-feedback {
    margin-top: 14px !important;
    padding: 12px !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-validation-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-shell {
    border-radius: 20px !important;
    padding: 10px !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-flow-start {
    padding: 34px 14px 22px !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-flow-start::before {
    width: min(310px, 88%) !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-flow-start h3 {
    font-size: clamp(24px, 9vw, 30px) !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-flow-start p {
    font-size: 13.4px !important;
    max-width: 315px !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-flow-benefit {
    grid-template-columns: 24px minmax(0, 1fr) !important;
    text-align: left !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-start-file-summary {
    border-radius: 16px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-start-file-summary strong {
    max-width: 100% !important;
    white-space: normal !important;
  }

  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-validation-list {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-flow-start,
  .ept-bench.ept-mode-production[data-ept-context-type="tool"][data-ept-production-state="start"] .ept-start-final .ept-start-upload-feedback::before {
    animation: none !important;
    transition: none !important;
  }
}
