/* ── Design Tokens ─────────────────────────────────────────── */
.hundredp-wrap {
  --hundredp-bg:           #F8FAFC;
  --hundredp-surface:      #FFFFFF;
  --hundredp-border:       #EAEAEA;
  --hundredp-text:         #0F172A;
  --hundredp-muted:        #64748B;
  --hundredp-accent:       #0369A1;
  --hundredp-accent-hover: #0284C7;
  --hundredp-success:      #16A34A;
  --hundredp-warning:      #D97706;
  --hundredp-danger:       #DC2626;
  --hundredp-radius:       8px;
  --hundredp-radius-lg:    12px;
  --hundredp-font:         'Plus Jakarta Sans', -apple-system, sans-serif;
  --hundredp-mono:         'Geist Mono', 'SF Mono', monospace;
  --hundredp-shadow:       0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
}

/* ── Base layout override ─────────────────────────────────────── */
.wrap.hundredp-wrap {
  background: var(--hundredp-bg);
  min-height: calc(100vh - 40px);
  padding: 0;
  margin: 10px 20px 0 0;
  font-family: var(--hundredp-font);
  color: var(--hundredp-text);
  border: 1px solid var(--hundredp-border);
  border-radius: var(--hundredp-radius-lg);
  overflow: hidden;
  box-shadow: var(--hundredp-shadow);
}

.hundredp-wrap * {
  box-sizing: border-box;
}

/* ── Page header ─────────────────────────────────────────────── */
.hundredp-page-header {
  background: var(--hundredp-surface);
  border-bottom: 1px solid var(--hundredp-border);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hundredp-page-header h1 {
  font-family: var(--hundredp-font);
  font-size: 20px;
  font-weight: 700;
  color: var(--hundredp-text);
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

.hundredp-page-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-width: 0;
}

.hundredp-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hundredp-header-actions .hundredp-btn {
  padding: 7px 10px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .hundredp-page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .hundredp-page-header-right {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .hundredp-header-actions {
    justify-content: flex-start;
  }
}

/* ── Welcome Banner ──────────────────────────────────────────── */
.hundredp-welcome-banner {
  background: var(--hundredp-surface);
  border-bottom: 1px solid var(--hundredp-border);
  padding: 24px 28px;
  position: relative;
}

.hundredp-welcome-banner h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hundredp-welcome-banner p {
  color: var(--hundredp-muted);
  font-size: 14px;
  margin: 0 0 16px 0;
  max-width: 600px;
}

.hundredp-welcome-banner-actions {
  display: flex;
  gap: 12px;
}

.hundredp-welcome-dismiss {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--hundredp-muted);
}

.hundredp-welcome-dismiss:hover {
  color: var(--hundredp-text);
}

/* ── Status bar ──────────────────────────────────────────────── */
.hundredp-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--hundredp-muted);
}

.hundredp-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.hundredp-status-dot.is-free { background: var(--hundredp-muted); }
.hundredp-status-dot.is-connected { background: var(--hundredp-success); }
.hundredp-status-dot.is-error { background: var(--hundredp-danger); }

/* ── Stat cards ──────────────────────────────────────────────── */
.hundredp-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 24px 28px;
}

@media (max-width: 1024px) {
  .hundredp-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hundredp-stat-grid {
    grid-template-columns: 1fr;
  }
}

.hundredp-stat-card {
  background: var(--hundredp-surface);
  border: 1px solid var(--hundredp-border);
  border-radius: var(--hundredp-radius);
  padding: 20px 24px;
  box-shadow: var(--hundredp-shadow);
  display: flex;
  flex-direction: column;
}

.hundredp-stat-card h3 {
  font-size: 12px;
  font-weight: 500;
  color: var(--hundredp-muted);
  margin: 0 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hundredp-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--hundredp-text);
  line-height: 1;
  margin: 0;
}

/* ── 2 Column Dashboard Section ──────────────────────────────── */
.hundredp-dashboard-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  padding: 0 28px 28px 28px;
}

@media (max-width: 900px) {
  .hundredp-dashboard-body {
    grid-template-columns: 1fr;
  }
}

.hundredp-panel {
  background: var(--hundredp-surface);
  border: 1px solid var(--hundredp-border);
  border-radius: var(--hundredp-radius);
  padding: 24px;
  box-shadow: var(--hundredp-shadow);
}

.hundredp-panel h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--hundredp-text);
}

/* ── Template card grid ──────────────────────────────────────── */
.hundredp-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 24px 28px;
}

.hundredp-template-card {
  background: var(--hundredp-surface);
  border: 1px solid var(--hundredp-border);
  border-radius: var(--hundredp-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--hundredp-shadow);
  transition: box-shadow 200ms ease, transform 200ms ease;
  position: relative;
}

.hundredp-template-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.hundredp-template-thumbnail {
  width: 100%;
  aspect-ratio: 16/10;
  background: #F1F5F9;
  border-bottom: 1px solid var(--hundredp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hundredp-template-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hundredp-template-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hundredp-template-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--hundredp-text);
}

.hundredp-template-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hundredp-template-vars {
  font-size: 11px;
  color: var(--hundredp-muted);
  font-family: var(--hundredp-mono);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.hundredp-var-chip {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid var(--hundredp-border);
  border-radius: 4px;
  padding: 2px 6px;
}

.hundredp-template-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.hundredp-btn {
  font-family: var(--hundredp-font);
  font-weight: 500;
  font-size: 13px;
  border-radius: 6px;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 150ms ease, transform 100ms ease;
  line-height: 1;
  text-decoration: none;
}

.hundredp-btn:active {
  transform: scale(0.98);
}

.hundredp-btn-primary {
  background: var(--hundredp-accent);
  color: #FFFFFF;
}

.hundredp-btn-primary:hover {
  background: var(--hundredp-accent-hover);
}

.hundredp-btn-ghost {
  background: transparent;
  border: 1px solid var(--hundredp-border);
  color: var(--hundredp-text);
}

.hundredp-btn-ghost:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.hundredp-btn-danger {
  background: transparent;
  border: 1px solid var(--hundredp-border);
  color: var(--hundredp-danger);
}

.hundredp-btn-danger:hover {
  background: #FEF2F2;
  border-color: #FCA5A5;
}

.hundredp-btn-full {
  width: 100%;
}

/* ── Status badges ───────────────────────────────────────────── */
.hundredp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.hundredp-badge-success { background: #EDF3EC; color: #346538; }
.hundredp-badge-warning { background: #FBF3DB; color: #956400; }
.hundredp-badge-error   { background: #FDEBEC; color: #9F2F2D; }
.hundredp-badge-neutral { background: #F1F5F9; color: #475569; }

/* ── Form components ─────────────────────────────────────────── */
.hundredp-form-group {
  margin-bottom: 20px;
}

.hundredp-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--hundredp-text);
  margin-bottom: 6px;
}

.hundredp-form-group select,
.hundredp-form-group input[type="text"],
.hundredp-form-group input[type="password"] {
  width: 100%;
  font-family: var(--hundredp-font);
  font-size: 13px;
  border: 1px solid var(--hundredp-border);
  border-radius: 6px;
  padding: 8px 12px;
  outline: none;
  background: var(--hundredp-surface);
  color: var(--hundredp-text);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.hundredp-form-group select:focus,
.hundredp-form-group input[type="text"]:focus,
.hundredp-form-group input[type="password"]:focus {
  border-color: var(--hundredp-accent);
  box-shadow: 0 0 0 2px rgba(3, 105, 161, 0.12);
}

.hundredp-form-desc {
  font-size: 12px;
  color: var(--hundredp-muted);
  margin-top: 4px;
}

/* ── Connections Screen UI ────────────────────────────────────── */
.hundredp-connections-wrap {
  max-width: 540px;
  margin: 40px auto;
  padding: 0 20px;
}

/* ── Help / Diagnostic screen ────────────────────────────────── */
.hundredp-status-table {
  width: 100%;
  border-collapse: collapse;
}

.hundredp-status-table td {
  padding: 12px;
  border-bottom: 1px solid var(--hundredp-border);
  font-size: 13px;
}

.hundredp-status-table tr:last-child td {
  border-bottom: none;
}

.hundredp-diagnostic-dump {
  font-family: var(--hundredp-mono);
  font-size: 12px;
  background: #F1F5F9;
  border: 1px solid var(--hundredp-border);
  border-radius: 6px;
  padding: 16px;
  white-space: pre-wrap;
  color: #475569;
  margin-top: 16px;
}

/* ── Dialog Drawers ──────────────────────────────────────────── */
.hundredp-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  background: var(--hundredp-surface);
  border-left: 1px solid var(--hundredp-border);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.06);
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hundredp-drawer.is-open {
  transform: translateX(0);
}

.hundredp-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--hundredp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hundredp-drawer-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--hundredp-text);
}

.hundredp-drawer-body {
  padding: 24px;
  flex-grow: 1;
  overflow-y: auto;
}

.hundredp-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--hundredp-muted);
  font-size: 20px;
}

.hundredp-drawer-close:hover {
  color: var(--hundredp-text);
}

.hundredp-drawer-preview {
  width: 100%;
  aspect-ratio: 16/10;
  border: 1px solid var(--hundredp-border);
  border-radius: var(--hundredp-radius);
  background: #F8FAFC;
  margin-bottom: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Toast Notifications ─────────────────────────────────────── */
.hundredp-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 200000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Templates Page Specifics ────────────────────────────────── */
.hundredp-section-header {
  padding: 24px 28px 16px;
}

.hundredp-section-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hundredp-section-header p {
  font-size: 14px;
  color: var(--hundredp-muted);
  margin: 0;
}

.hundredp-divider {
  border: none;
  border-top: 1px solid var(--hundredp-border);
  margin: 16px 28px;
}

.hundredp-badge-bundled { background: #F1F5F9; color: #475569; }
.hundredp-badge-output { background: #E0E7FF; color: #3730A3; }
.hundredp-badge-cloud { background: #DBEAFE; color: #1E40AF; }

.hundredp-capitalize { text-transform: capitalize; }

/* ── Premium Empty State ─────────────────────────────────────── */
.hundredp-premium-empty-state {
  margin: 24px 28px;
  padding: 48px;
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 1px dashed var(--hundredp-border);
  border-radius: var(--hundredp-radius-lg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hundredp-empty-state-content {
  max-width: 420px;
  text-align: center;
}

.hundredp-empty-state-icon {
  width: 64px;
  height: 64px;
  background: var(--hundredp-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}

.hundredp-empty-state-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.hundredp-empty-state-content p {
  font-size: 15px;
  color: var(--hundredp-muted);
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.hundredp-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.hundredp-feature-list li {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
}

.hundredp-feature-list li i {
  color: var(--hundredp-success);
}

/* ── Premium Status Badge & Dot ──────────────────────────────── */
.hundredp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #F1F5F9;
  color: #475569;
}

.hundredp-status-badge.is-connected {
  background: #EDF3EC;
  color: #346538;
}

.hundredp-status-badge.is-disconnected {
  background: #FDEBEC;
  color: #9F2F2D;
}

.hundredp-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.hundredp-status-dot.is-connected {
  background: var(--hundredp-success);
}

.hundredp-status-dot.is-disconnected {
  background: var(--hundredp-danger);
}

/* ── Workspace Header Card ───────────────────────────────────── */
.hundredp-workspace-header-card {
  margin: 24px 28px;
  padding: 24px;
  background: var(--hundredp-surface);
  border: 1px solid var(--hundredp-border);
  border-radius: var(--hundredp-radius-lg);
  box-shadow: var(--hundredp-shadow);
}

.hundredp-workspace-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hundredp-border);
}

.hundredp-workspace-title h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hundredp-workspace-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hundredp-filter-select {
  font-family: var(--hundredp-font);
  font-size: 13px;
  border: 1px solid var(--hundredp-border);
  border-radius: 6px;
  padding: 8px 12px;
  outline: none;
  background: var(--hundredp-surface);
  color: var(--hundredp-text);
  cursor: pointer;
}

.hundredp-filter-select:focus {
  border-color: var(--hundredp-accent);
  box-shadow: 0 0 0 2px rgba(3, 105, 161, 0.12);
}

.hundredp-workspace-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .hundredp-workspace-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hundredp-header-stat-item {
  display: flex;
  flex-direction: column;
}

.hundredp-header-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--hundredp-muted);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.hundredp-header-stat-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--hundredp-text);
}

/* ── Workspace Summary ───────────────────────────────────────── */
.hundredp-workspace-summary {
  display: flex;
  gap: 32px;
  padding: 16px 28px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--hundredp-border);
}

.hundredp-summary-item {
  display: flex;
  flex-direction: column;
}

.hundredp-summary-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--hundredp-muted);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.hundredp-summary-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--hundredp-text);
}

/* ── Modal Dialog ────────────────────────────────────────────── */
.hundredp-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.hundredp-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.hundredp-modal {
  width: 100%;
  max-width: 440px;
  background: var(--hundredp-surface);
  border-radius: var(--hundredp-radius-lg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: scale(0.95) translateY(10px);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.hundredp-modal-overlay.is-open .hundredp-modal {
  transform: scale(1) translateY(0);
}

.hundredp-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--hundredp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hundredp-modal-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.hundredp-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--hundredp-muted);
  font-size: 18px;
}

.hundredp-modal-close:hover {
  color: var(--hundredp-danger);
}

.hundredp-modal-body {
  padding: 24px;
}

/* ── Accessibility ───────────────────────────────────────────── */
*:focus-visible {
  outline: 2px solid var(--hundredp-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ── Spinner Animation ───────────────────────────────────────── */
@keyframes hundredp-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Dashboard story */
.hundredp-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 32px;
  align-items: center;
  padding: 32px 28px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--hundredp-border);
}

.hundredp-dashboard-hero-copy {
  max-width: 600px;
}

.hundredp-dashboard-kicker,
.hundredp-step-count {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid var(--hundredp-border);
  border-radius: 999px;
  background: #F8FAFC;
  color: var(--hundredp-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 6px 10px;
  text-transform: uppercase;
}

.hundredp-dashboard-hero h2 {
  color: var(--hundredp-text);
  font-size: 30px;
  font-weight: 750;
  line-height: 1.12;
  margin: 14px 0 12px;
  max-width: 620px;
}

.hundredp-dashboard-hero p,
.hundredp-panel-heading p {
  color: var(--hundredp-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.hundredp-dashboard-hero-actions,
.hundredp-action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hundredp-flow-visual {
  position: relative;
  min-height: 320px;
  border: 1px solid var(--hundredp-border);
  border-radius: var(--hundredp-radius-lg);
  background: #F8FAFC;
  overflow: hidden;
}

.hundredp-flow-node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border: 3px solid #D7DCE2;
  border-radius: 50%;
  background: #FFFFFF;
  color: #334155;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12), 0 1px 2px rgba(15, 23, 42, 0.06);
  font-size: 30px;
  font-weight: 800;
  z-index: 2;
}

.hundredp-flow-node-source {
  left: 10%;
  top: 50%;
  border-color: #BBF7D0;
  transform: translateY(-50%);
}

.hundredp-flow-node-core {
  left: 46%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.hundredp-flow-line {
  position: absolute;
  height: 4px;
  background: #D7DCE2;
  transform-origin: left center;
  z-index: 1;
}

.hundredp-flow-line-main {
  left: calc(10% + 74px);
  right: 54%;
  top: 50%;
}

.hundredp-flow-branches span {
  position: absolute;
  left: calc(46% + 30px);
  top: 50%;
  width: 30%;
  height: 4px;
  background: #D7DCE2;
  transform-origin: left center;
  z-index: 1;
}

.hundredp-flow-branches span:nth-child(1) { transform: rotate(-46deg); }
.hundredp-flow-branches span:nth-child(2) { transform: rotate(-24deg); }
.hundredp-flow-branches span:nth-child(3) { transform: rotate(0deg); }
.hundredp-flow-branches span:nth-child(4) { transform: rotate(24deg); }
.hundredp-flow-branches span:nth-child(5) { transform: rotate(46deg); }

.hundredp-flow-targets .hundredp-flow-node {
  left: 76%;
  width: 62px;
  height: 62px;
  font-size: 24px;
}

.hundredp-flow-targets .hundredp-flow-node:nth-child(1) { top: 11%; }
.hundredp-flow-targets .hundredp-flow-node:nth-child(2) { top: 28%; }
.hundredp-flow-targets .hundredp-flow-node:nth-child(3) { top: 45%; }
.hundredp-flow-targets .hundredp-flow-node:nth-child(4) { top: 62%; }
.hundredp-flow-targets .hundredp-flow-node:nth-child(5) { top: 79%; }

.hundredp-social.facebook { color: #1877F2; }
.hundredp-social.instagram { color: #C13584; }
.hundredp-social.x { color: #111111; }
.hundredp-social.linkedin { color: #0A66C2; }
.hundredp-social.file { color: var(--hundredp-accent); }

.hundredp-dashboard-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 28px 0;
  border: 1px solid var(--hundredp-border);
  border-radius: var(--hundredp-radius);
  background: var(--hundredp-border);
  overflow: hidden;
}

.hundredp-dashboard-strip div {
  min-width: 0;
  background: #FFFFFF;
  padding: 16px;
}

.hundredp-dashboard-strip span {
  display: block;
  color: var(--hundredp-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.hundredp-dashboard-strip strong {
  display: block;
  color: var(--hundredp-text);
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hundredp-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 24px;
  padding: 24px 28px;
}

.hundredp-story-panel,
.hundredp-action-panel,
.hundredp-setup-panel {
  overflow: hidden;
}

.hundredp-panel-heading {
  margin-bottom: 20px;
}

.hundredp-panel-heading h2 {
  font-size: 18px;
  margin: 12px 0 8px;
}

.hundredp-step-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
}

.hundredp-step-item {
  position: relative;
  min-height: 190px;
  padding: 16px;
  border: 1px solid var(--hundredp-border);
  border-radius: var(--hundredp-radius);
  background: #FBFBFA;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.hundredp-step-item:hover,
.hundredp-setup-card:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
  background: #FFFFFF;
}

.hundredp-step-marker,
.hundredp-setup-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #EEF6FB;
  color: var(--hundredp-accent);
  font-size: 22px;
  margin-bottom: 18px;
}

.hundredp-step-item span,
.hundredp-setup-card span {
  color: var(--hundredp-muted);
  display: block;
  font-family: var(--hundredp-mono);
  font-size: 11px;
  margin-bottom: 8px;
}

.hundredp-step-item h3,
.hundredp-setup-card h3 {
  color: var(--hundredp-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
}

.hundredp-step-item p,
.hundredp-setup-card p {
  color: var(--hundredp-muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}

.hundredp-action-stack {
  flex-direction: column;
}

.hundredp-action-stack .hundredp-btn {
  width: 100%;
}

.hundredp-setup-panel {
  margin: 0 28px 28px;
}

.hundredp-setup-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hundredp-setup-card {
  min-height: 170px;
  padding: 16px;
  border: 1px solid var(--hundredp-border);
  border-radius: var(--hundredp-radius);
  background: #FBFBFA;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.hundredp-analytics-empty {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed #CBD5E1;
  border-radius: var(--hundredp-radius);
  background: #F8FAFC;
  padding: 32px;
}

.hundredp-analytics-empty i {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #EEF6FB;
  color: var(--hundredp-accent);
  font-size: 30px;
  margin-bottom: 16px;
}

.hundredp-analytics-empty h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.hundredp-analytics-empty p {
  color: var(--hundredp-muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 auto 18px;
  max-width: 420px;
}

@media (max-width: 1180px) {
  .hundredp-dashboard-hero,
  .hundredp-story-grid {
    grid-template-columns: 1fr;
  }

  .hundredp-step-list,
  .hundredp-setup-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hundredp-dashboard-hero {
    padding: 24px 18px;
  }

  .hundredp-dashboard-hero h2 {
    font-size: 24px;
  }

  .hundredp-flow-visual {
    min-height: 260px;
  }

  .hundredp-dashboard-strip,
  .hundredp-story-grid,
  .hundredp-setup-panel {
    margin-left: 18px;
    margin-right: 18px;
  }

  .hundredp-dashboard-strip,
  .hundredp-step-list,
  .hundredp-setup-rail {
    grid-template-columns: 1fr;
  }

  .hundredp-story-grid {
    padding-left: 0;
    padding-right: 0;
  }
}
