/* ==========================================================================
   /ai-md/ Service-Specific Styles (inherits portal.css tokens)
   ========================================================================== */

/* Converter pages: key color hue shifted to green */
:root {
  --accent: #3f8459;
  --accent-strong: #2f6b47;
  --accent-hover: #234f35;
  --accent-text: #2b6342;
  --accent-soft: rgba(47, 107, 71, 0.08);
}

:root[data-theme="dark"] {
  --accent: #6cc08f;
  --accent-strong: #5fb383;
  --accent-hover: #79c99a;
  --accent-text: #7fd0a0;
  --accent-soft: rgba(108, 192, 143, 0.13);
}

:root[data-theme="dark"] .btn-primary { color: #0f1a13; }

.dropzone-idle { border-color: rgba(47, 107, 71, 0.40); }
:root[data-theme="dark"] .dropzone-idle { border-color: rgba(108, 192, 143, 0.40); }

/* keep offline dot distinguishable from green accent */
.status-dot { background: #b8862b; }
.status-dot.is-online { background: var(--green); }

.step-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.step-pill {
  padding: 11px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.step-pill.done {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.step-pill.current {
  border-color: var(--accent-strong);
  background: var(--accent-soft);
  color: var(--accent-text);
}

.badge-mono {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-muted);
  color: var(--accent-text);
}

.preview-frame {
  width: 100%;
  height: 540px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.pricing-table th,
.pricing-table td {
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
}

.pricing-table th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--text);
}

.pricing-table td.price-col {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-text);
  white-space: nowrap;
}

.upgrade-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
}

@media (max-width: 720px) {
  .step-badges {
    grid-template-columns: repeat(2, 1fr);
  }
  .upgrade-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .pricing-table {
    border: none;
    background: transparent;
  }
  .pricing-table thead {
    display: none;
  }
  .pricing-table tbody {
    display: grid;
    gap: 10px;
  }
  .pricing-table tr {
    display: block;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
  }
  .pricing-table td {
    display: block;
    border-bottom: none;
    padding: 3px 0;
  }
  .pricing-table td.price-col {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    font-size: 16px;
  }
}
